01-08-2025 10:59 AM
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.
01-08-2025 11:21 AM
If you have NI IMAQ, take a look the Line Profile example.
01-08-2025 11:26 AM
Thanks George, I have NI IMAQ but I couldn't find line profile example.
01-08-2025 11:35 AM
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.
01-08-2025 02:14 PM
Like this:
01-09-2025 03:19 AM
Thanks Paul. I did yours and resulting wrong.
01-09-2025 05:02 AM
@Omar-Abdelhameed wrote:
Thanks Paul. I did yours and resulting wrong.
It seems to be you need something like that, isn't?
By the way, the contrast of first mark is too low, you need better and uniform lighting.
What is your expected result?
01-09-2025 08:06 AM
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 ?
01-09-2025 08:31 AM
@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:
01-09-2025 11:24 AM
@Omar-Abdelhameed wrote:
Thanks Paul. I did yours and resulting wrong.
Sorry. I misunderstood what you were asking.