qsitj commited on
Commit
38d0171
·
verified ·
1 Parent(s): 3123f9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,7 +28,7 @@ fdic = {
28
 
29
  def query_data(in_pil_img: Image.Image):
30
  results = detector(in_pil_img)
31
- print(f"检测结果:{results}")
32
  return results
33
 
34
  def get_annotated_image(in_pil_img):
@@ -91,7 +91,7 @@ def process_video(input_video_path):
91
  if bgr_frame.shape[:2] != (height, width):
92
  bgr_frame = cv2.resize(bgr_frame, (width, height))
93
 
94
- print(f"Writing frame of shape {bgr_frame.shape} and type {bgr_frame.dtype}") # 调试信息
95
  out.write(bgr_frame)
96
 
97
  cap.release()
 
28
 
29
  def query_data(in_pil_img: Image.Image):
30
  results = detector(in_pil_img)
31
+ # print(f"检测结果:{results}")
32
  return results
33
 
34
  def get_annotated_image(in_pil_img):
 
91
  if bgr_frame.shape[:2] != (height, width):
92
  bgr_frame = cv2.resize(bgr_frame, (width, height))
93
 
94
+ # print(f"Writing frame of shape {bgr_frame.shape} and type {bgr_frame.dtype}") # 调试信息
95
  out.write(bgr_frame)
96
 
97
  cap.release()