Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

NI Vision Edge detection systematical scans Error

Hallo NI-Forum,

 

I’m working on an edge detection app that has some systematical Error I’m not figuring out. The goal is a just-in-time curvature analysis of extruded bar out of a machine. Therefor the app is running in an eternal loop and only gives same alert if curvature limit is exceeded. Here is my approach:

  • Grab image

  • Set ROI

  • Extract ROI

  • Use IMAG Rake 3 to detect edge

  • (…)

  • Get the curvature

As you can see on the screenshot, the approach is working well and I’m getting the curvature.

But the detection (red layer) seems to not scan the whole ROI. It always stops at the same point. I change the camera, the resolution and the ROI but this “undetected” part always stay proportional to the giving ROI or resolution.

Is there any better use of the IMAG Rake 3 function? or am I missing anything?

 

Thank for your help

Error_Block_Dia.PNGError_Front.png

 

 

0 Kudos
Message 1 of 7
(5,160 Views)

Hello,

 

I tried your image and cannot reproduce your problem. The edges seem to be detected along entire ROI (the edges points are shown in red, they are visible if you look closely and they go from start to the end):

 

edges points.png

 

Also, the curve plot seems ok:

 

xy plot.png

 

The code (edge options are same as yours):

 

code.png

 

Am I not interpreting your problem correctly?

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 2 of 7
(5,150 Views)

Using 8.5 and can also confirm that i dont see the problem

0 Kudos
Message 3 of 7
(5,147 Views)

@muks wrote:

Using 8.5 and can also confirm that i dont see the problem


Yeah, forgot this important piece of information 🙂

 

Using LV 2013...

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 4 of 7
(5,142 Views)

Thank for the answers,

 

On my system I can reproduce this error. Not only this, it seems to lose some pixel like you can see on the Graph. I did some filtering to eliminate the loss of Pixel bit but Im not really figuring out where these effect are coming from.

Error_Front_2.PNG

 

Thanks

0 Kudos
Message 5 of 7
(5,135 Views)

@Klemen wrote:

@muks wrote:

Using 8.5 and can also confirm that i dont see the problem


Yeah, forgot this important piece of information 🙂

 

Using LV 2013...

 

Best regards,

K


Klemen it shows in your code snippet that you have used 2013Smiley Wink

0 Kudos
Message 6 of 7
(5,129 Views)

Hahaha, yes it does! 🙂


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 7 of 7
(5,126 Views)