BrunoMelicio commited on
Commit
8f51a4b
·
1 Parent(s): 8d420f3
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def analyze_image(image):
46
  with ObjectDetector.create_from_options(options) as detector:
47
  detection_result = detector.detect(mp_image)
48
 
49
- image_copy = np.copy(image.numpy_view())
50
  annotated_image = visualize(image_copy, detection_result)
51
  rgb_annotated_image = cv2.cvtColor(annotated_image, cv2.COLOR_BGR2RGB)
52
 
 
46
  with ObjectDetector.create_from_options(options) as detector:
47
  detection_result = detector.detect(mp_image)
48
 
49
+ image_copy = np.copy(mp_image.numpy_view())
50
  annotated_image = visualize(image_copy, detection_result)
51
  rgb_annotated_image = cv2.cvtColor(annotated_image, cv2.COLOR_BGR2RGB)
52