From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image processing

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

0 Kudos
Message 11 of 17
(199 Views)

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
0 Kudos
Message 12 of 17
(190 Views)

@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).

0 Kudos
Message 13 of 17
(162 Views)

Here is one way without using IMAQ:

Untitled.jpg

George Zou
Download All
Message 14 of 17
(131 Views)

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

0 Kudos
Message 15 of 17
(107 Views)

@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

0 Kudos
Message 16 of 17
(100 Views)

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

0 Kudos
Message 17 of 17
(88 Views)