|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Vision Question
I've clicked on the color with out white LED attached to the camera, but the rectangle still doesnt get recognized in color mode, which is why I've been using intensity.
Also with the distance error, I changed the measurement to 1.5ft, and used the y image resolution instead of the default x, yet I still keep getting measurements that are 5 or more feet off. |
|
#2
|
|||
|
|||
|
Re: Vision Question
Ahh. White lighting doesn't have a very distinct color, so yes, intensity is the right solution. If you post the modified distance code or a picture of it, I'm sure someone will be able to help find the issue.
Greg McKaskle |
|
#3
|
|||
|
|||
|
Re: Vision Question
Heres the code for the distance:
![]() |
|
#4
|
|||
|
|||
|
Re: Vision Question
The code you attached is dividing 1.5 by the width (left - right). Change that to use the height of the bounding box.
Greg McKaskle |
|
#5
|
|||
|
|||
|
Re: Vision Question
So if I change left and right to top and bottom it should be fine?
|
|
#6
|
|||
|
|||
|
Re: Vision Question
That is how I'd do it.
Greg Mckaskle |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|