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