Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
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(
|
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:
|