Javiob commited on
Commit
0dd6786
·
1 Parent(s): eefab63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,11 +61,11 @@ reader = load_model() #load model
61
  if image is not None:
62
 
63
  input_image = input_image = Image.open(image) #read image
64
- input_image = ImageOps.exif_transpose(input_image )
65
  input_image = np.array(input_image )
66
  # Convert RGB to BGR
67
  input_image = input_image[:, :, ::-1].copy()
68
- input_image = cv2.rotate(input_image , cv2.cv2.ROTATE_90_CLOCKWISE)
69
 
70
  with st.spinner("🤖 AI is at Work! "):
71
  result = detect(input_image, reader)
 
61
  if image is not None:
62
 
63
  input_image = input_image = Image.open(image) #read image
64
+ input_image = ImageOps.exif_transpose(input_image)
65
  input_image = np.array(input_image )
66
  # Convert RGB to BGR
67
  input_image = input_image[:, :, ::-1].copy()
68
+
69
 
70
  with st.spinner("🤖 AI is at Work! "):
71
  result = detect(input_image, reader)