Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,14 +35,14 @@ def predict(image, threshold=0.25, model_id=None):
|
|
35 |
output_image = Image.fromarray(numpy_image)
|
36 |
predictions = results.pred[0]
|
37 |
print(predictions[:, :4])
|
38 |
-
x1 = predictions[0]
|
39 |
-
y1 = predictions[1]
|
40 |
-
x2 = predictions[2]
|
41 |
-
y2 = predictions[3]
|
42 |
#print(predictions)
|
43 |
-
print("Das Kennzeichen befindet sich im Rechteck zwischen den folgenden Punkten:")
|
44 |
-
print("X1: " + x1 + "Y1: " + y1)
|
45 |
-
print("X2: " + x2 + "Y2: " + y2)
|
46 |
return output_image
|
47 |
|
48 |
|
|
|
35 |
output_image = Image.fromarray(numpy_image)
|
36 |
predictions = results.pred[0]
|
37 |
print(predictions[:, :4])
|
38 |
+
#x1 = predictions[0]
|
39 |
+
#y1 = predictions[1]
|
40 |
+
#x2 = predictions[2]
|
41 |
+
#y2 = predictions[3]
|
42 |
#print(predictions)
|
43 |
+
#print("Das Kennzeichen befindet sich im Rechteck zwischen den folgenden Punkten:")
|
44 |
+
#print("X1: " + x1 + "Y1: " + y1)
|
45 |
+
#print("X2: " + x2 + "Y2: " + y2)
|
46 |
return output_image
|
47 |
|
48 |
|