Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,10 @@ 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 |
-
print(predictions)
|
|
|
|
|
|
|
39 |
return output_image
|
40 |
|
41 |
|
|
|
35 |
output_image = Image.fromarray(numpy_image)
|
36 |
predictions = results.pred[0]
|
37 |
print(predictions[:, :4])
|
38 |
+
#print(predictions)
|
39 |
+
print("Das Kennzeichen befindet sich im Rechteck zwischen den folgenden Punkten:")
|
40 |
+
print("X1: " + predictions[0] + "Y1: " + predictions[1])
|
41 |
+
print("X2: " + predictions[2] + "Y2: " + predictions[3])
|
42 |
return output_image
|
43 |
|
44 |
|