LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image processing

Hello gents, I want to ask question if someone can help me regarding the idea of calculating the number of lines on picture using LV. example of that is the attached image, what I need is developing a code to calculate 21 which is the number of lines on a picture. 

0 Kudos
Message 1 of 17
(410 Views)

If you have NI IMAQ, take a look the Line Profile example.

 

George Zou
0 Kudos
Message 2 of 17
(401 Views)

Thanks George, I have NI IMAQ but I couldn't find line profile example. 

0 Kudos
Message 3 of 17
(394 Views)

LabVIEW20xx\examples\Vision\2. Functions\Analysis\LineProfile Example.vi

 

If you can't find this example, you probably don't have the Vision Development Module.

 

George Zou
0 Kudos
Message 4 of 17
(389 Views)

Like this:

nol.png

0 Kudos
Message 5 of 17
(360 Views)

Thanks Paul. I did yours and resulting wrong. 1.PNG2.PNGIMG_4239.jpeg

0 Kudos
Message 6 of 17
(327 Views)

@Omar-Abdelhameed wrote:

Thanks Paul. I did yours and resulting wrong. 


It seems to be you need something like that, isn't?

 

Edges Deetction.jpg

 

By the way, the contrast of first mark is too low, you need better and uniform lighting.

What is your expected result?

 

Message 7 of 17
(307 Views)

Thanks Andrey, yes this is what I need and then I can use the result 20 to specific calculations. can you please share how to get that ? 

0 Kudos
Message 8 of 17
(288 Views)

@Omar-Abdelhameed wrote:

Thanks Andrey, yes this is what I need and then I can use the result 20 to specific calculations. can you please share how to get that ? 


If you have fully installed Vision Development Module, then you must have also Vision Assistant which is bundled into installation (32 or 64 bit, I will recommend to install same bitness as used LabVIEW).

This is great tool to prototype and modelling your processing, and once you satisfied with result, you can export complete chain into LabVIEW VI and continue development, modification and fine tuning in LabVIEW, that is:

Screenshot 2025-01-09 15.28.41.png

0 Kudos
Message 9 of 17
(278 Views)

@Omar-Abdelhameed wrote:

Thanks Paul. I did yours and resulting wrong.


Sorry.  I misunderstood what you were asking.

0 Kudos
Message 10 of 17
(243 Views)