Incorrect output
Opened this issue · 0 comments
MuhammadAsadJaved commented
Hi,
At first, I have tired gauge-2.jpg. But the reading is not right.
It shows the results 21.996410023136274. I passed the values
Min angle (lowest possible angle of dial) - in degrees: 50
Max angle (highest possible angle) - in degrees: 320
Min value: 0
Max value: 200
but the results should not be ~22. it's roundabout 30.
The second problem is I am using some different type of images and the results are far away. How I can improve this project to work on my custom inputs?
Here are the results on my inptus.
and for this kind of inputs, it is throwing errors.
gauge number: 6
Min angle (lowest possible angle of dial) - in degrees: 50
Max angle (highest possible angle) - in degrees: 310
Min value: 0
Max value: 0.6
Enter units: mps
Traceback (most recent call last):
File "analog_gauge_reader.py", line 266, in <module>
main()
File "analog_gauge_reader.py", line 262, in main
val = get_current_value(img, min_angle, max_angle, min_value, max_value, x, y, r, gauge_number, file_type)
File "analog_gauge_reader.py", line 199, in get_current_value
x1 = final_line_list[0][0]
IndexError: list index out of range