cancel
Showing results for 
Search instead for 
Did you mean: 

Image processing

Re: Image processing

Thank you Andrey. Is there other option to done that without Vision Development Module ?!

GerdW
Knight of NI

Re: Image processing

Hi Omar,

 


@Omar-Abdelhameed wrote:

Is there other option to done that without Vision Development Module ?!


Yes.

Load the JPG image as shown above and analyse the pixmap data on your own.

(You need to re-implement all those IMAQ routines with your own LabVIEW code…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Andrey_Dmitriev
Trusted Enthusiast

Re: Image processing


@Omar-Abdelhameed wrote:

Thank you Andrey. Is there other option to done that without Vision Development Module ?!


Yes, sure, but here you will need to invest more time. You must be able to open the image as a 2D array of pixels, then you can do almost everything — get the line profile along the marks (it's better to do this not at a single line, but average multiple pixels in the opposite direction — this will give you better signal to noise ratio and will remove small dust particles, etc.). Then you will need some kind of edge detector (Sobel/Canny) or peak/valley detector to detect the marks and count them. You don't need to implement Vision Development Functions 1:1 (and you can't, because details of the internal processing are not always known). If you don't have experience with image processing, I would recommend to read some books first (for example, 'Digital Image Processing' by Rafael Gonzalez and Richard Woods).

zou
Trusted Enthusiast
Trusted Enthusiast

Re: Image processing

Message contains an image Message contains an attachment

Here is one way without using IMAQ:

Untitled.jpg

George Zou

Re: Image processing

Thanks Zou, but it didn't count the lines?!

Highlighted
Andrey_Dmitriev
Trusted Enthusiast

Re: Image processing

Message contains an image

@Omar-Abdelhameed wrote:

Thanks Zou, but it didn't count the lines?!


You should simply go through waveform chart and count how many times you changed from 0 to 1.

 

Screenshot 2025-01-15 11.27.51.jpg

Something like that:

 

count.png

Re: Image processing

Thanks Andrey, I got that, sorry but it's my first time use LV with images.