n0no123 commited on
Commit
e386f2d
1 Parent(s): 07aae47

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -4,9 +4,8 @@ import gradio as gr
4
 
5
  def my_app(img):
6
  grayscale_image = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
7
- flipped_image = cv2.flip(grayscale_image, 1)
8
  classifier = cv2.CascadeClassifier('classifier.xml')
9
- analysedData = classifier.detectMultiScale(flipped_image,
10
  minSize=(20, 20))
11
  if len(analysedData) != 0:
12
  for (x, y, width, height) in analysedData:
 
4
 
5
  def my_app(img):
6
  grayscale_image = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
 
7
  classifier = cv2.CascadeClassifier('classifier.xml')
8
+ analysedData = classifier.detectMultiScale(grayscale_image,
9
  minSize=(20, 20))
10
  if len(analysedData) != 0:
11
  for (x, y, width, height) in analysedData: