Update app.py
Browse files
app.py
CHANGED
|
@@ -407,17 +407,15 @@ def process_pool_image(image_data):
|
|
| 407 |
ββββββββββββββββββββ
|
| 408 |
π― Cue Detected: {cue_data.get('detected', False)}
|
| 409 |
π Balls Found: {len(balls)}
|
| 410 |
-
β‘ Shot Power: {shot_power:.2f} ({
|
| 411 |
π Shot Angle: {shot_angle:.1f}Β°
|
| 412 |
π Trajectory Points: {len(trajectory)}
|
| 413 |
π Table Bounds: {'Detected' if detector.table_bounds else 'Not Detected'}
|
| 414 |
-
|
| 415 |
Ball Details:
|
| 416 |
-
{
|
| 417 |
-
|
| 418 |
Trajectory Info:
|
| 419 |
-
{
|
| 420 |
-
|
| 421 |
|
| 422 |
return result_image, info_text
|
| 423 |
|
|
|
|
| 407 |
ββββββββββββββββββββ
|
| 408 |
π― Cue Detected: {cue_data.get('detected', False)}
|
| 409 |
π Balls Found: {len(balls)}
|
| 410 |
+
β‘ Shot Power: {shot_power:.2f} ({get_power_level(shot_power)})
|
| 411 |
π Shot Angle: {shot_angle:.1f}Β°
|
| 412 |
π Trajectory Points: {len(trajectory)}
|
| 413 |
π Table Bounds: {'Detected' if detector.table_bounds else 'Not Detected'}
|
|
|
|
| 414 |
Ball Details:
|
| 415 |
+
{format_ball_details(balls)}
|
|
|
|
| 416 |
Trajectory Info:
|
| 417 |
+
{format_trajectory_info(trajectory)}
|
| 418 |
+
"""
|
| 419 |
|
| 420 |
return result_image, info_text
|
| 421 |
|