LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Live Pattern Matching

Hi all,

I have to make a program for controll moving particles captured live with webcam LogitechC310 (at least 30fps). Process is following:

1) Start - live video in image window by IMAQdx Grab.vi

2) Pause video - to choose right moment for marking some moving particle

3) Load - using ROI to select particle - pattern is saved

4) Play video, Start Matching - looking patterns in live video

 

- now error occured: "Incompatible image type" from IMAQ Match Pattern 3 - I understand, what is happening, pictures from webcam aren´t in Grayscale(U8), I tried to convert video in realtime (http://digital.ni.com/public.nsf/allkb/ED42C55C29B9B34C862570A60079952E) but then is video too slow (actually most of the time is Image window with live video empty, sometimes flashs grayscale picture.

So, is ti possibe to get live video from this webcam straight in Grayscale, without conversion?


- second idea was, use IMAQ Match Color Pattern, now another error came: "The input image must be a color image" from IMAQ Learn Color Pattern. I can load pattern from .bmp, .png, .jpg - still the same error. I have setted Image Type RGB in IMAQ Create, I´ve checked it several times. Even, when I use Image window, loaded picture is RGB. I don´t understand this error at all.

 

Do you have any idea, how to solve this problem? The best possibility would be use video in grayscale mode, because of contrast... Actually, color of moving particles can change. In the worst case I can use Color Pattern Recognition but tis is not the best solution at all.

 

0 Kudos
Message 1 of 1
(2,371 Views)