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

Incorrect output #9

@MuhammadAsadJaved

Description

@MuhammadAsadJaved

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions