mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
fix bugs + release version 0.0.4
This commit is contained in:
@@ -69,7 +69,6 @@ else:
|
||||
|
||||
|
||||
def detection(image, conf_threshold=0.3):
|
||||
print("running detection")
|
||||
image = cv2.resize(image, (model.input_width, model.input_height))
|
||||
new_image = model.detect_objects(image, conf_threshold)
|
||||
return cv2.resize(new_image, (500, 500))
|
||||
|
||||
Reference in New Issue
Block a user