BrunoMelicio commited on
Commit
3e1778b
·
1 Parent(s): 8f51a4b

bug fix color

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -48,9 +48,8 @@ def analyze_image(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
 
53
- return rgb_annotated_image
54
 
55
  img_in = gr.Image()
56
  #img_out = gr.Image()
 
48
 
49
  image_copy = np.copy(mp_image.numpy_view())
50
  annotated_image = visualize(image_copy, detection_result)
 
51
 
52
+ return annotated_image
53
 
54
  img_in = gr.Image()
55
  #img_out = gr.Image()