|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
|||||
|
|||||
|
Re: Calculating distance with an Axis Camera 206
I am not using OpenCV at all, as I am running all of my code on the cRio.
If you are running the vision on the cRio, using NI Vision (CVI) is a much easier way to go, as it is already compiled for VxWorks, all of the supporting code (get image from axis cam) is already written, there is an example to process rectangles, and you can use NI Vision Assistant to automate a bunch of it. |
|
#17
|
||||
|
||||
|
Re: Calculating distance with an Axis Camera 206
I am using the older version because I had big problems with new 2.3.1. I have starting to write the tracking algorithm I have detected the "parallelograms". Now here comes the math.
|
|
#18
|
|||||
|
|||||
|
Re: Calculating distance with an Axis Camera 206
Correct me if im wrong, but cant you use a exponential regression for the correlation from height of rectangle to distance away (at least it seems a exponential regression is the right way to go)
|
|
#19
|
|||
|
|||
|
Re: Calculating distance with an Axis Camera 206
Does OpenCV have a program that will spit out code for you similar to what the NI Vision Assistant program does? It seems like using OpenCV will be easier for my team to implement our rectangle tracking with if it does, as we are having some trouble understanding the code that is spit out by Vision Assistant.
|
|
#20
|
|||
|
|||
|
Re: Calculating distance with an Axis Camera 206
my team uses the axis camera to identify blobs (yes its the technical term for the... blobs that the camera picks up) And then finds the distance based on the pixel distance between top square and bottom square, angle uses trig and distance from side targets, labview can calculate the rest
|
|
#21
|
|||
|
|||
|
Re: Calculating distance with an Axis Camera 206
I have seen a lot of people over look this in past year. Make sure you are converting it to foot and inches or whatever you desire as 1' would be 1.2 as a double.
|
|
#22
|
||||
|
||||
|
Re: Calculating distance with an Axis Camera 206
Quote:
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|