LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview image search

Hello, I did not speak English, so I used Google Translate.

 

AutoHotkey has a command called image search.

 

It is a command to search whether there are 3~4 specific pixels in an image.

 

Can we implement the same method in LabVIEW?

 

Or is there a similar method?

0 Kudos
Message 1 of 2
(650 Views)

My understanding is that the command takes a screenshot and then loads an image from a file and searches for the pixels of that image in the screenshot: https://www.autohotkey.com/docs/v1/lib/ImageSearch.htm

 

Here's code which does most of the heavy lifting (LV 2015, adapted from this example). I'll leave it to you to do the loading of the image and searching inside the array of pixels.

 

Depending on which file type you use, you might also want to implement the *n (variation) option in the AHK function, which doesn't require the color to match exactly. This is more complicated, because it requires handling the color components of the pixels individually.

 

 


___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(608 Views)