Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Incorrect output #9

Open
MuhammadAsadJaved opened this issue Nov 27, 2020 · 0 comments
Open

Incorrect output #9

MuhammadAsadJaved opened this issue Nov 27, 2020 · 0 comments

Comments

@MuhammadAsadJaved
Copy link

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.

gauge-2-lines-2

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.

gauge-5-lines-2

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

gauge-6-calibration

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant