Hi, colleagues.
I am working with my web camera. And I start grabbing from this camera. But I do it like that:
dev_open_window(0, 0, 640, 480, 'black', WindowHandle)
open_framegrabber ('DirectShow', 1, 1, 0, 0, 0, 0, 'default', \
8, 'rgb', -1, 'false', 'default', \
'[0] Logitech HD Webcam C270', 0, -1, AcqHandle)
status:=true
while (status)
grab_image (Image, AcqHandle)
* Do something
dev_display(Image)
endwhile
close_framegrabber (AcqHandle)
I I need to press any key for quit from 'while' code.
I just want to know: is it possible to stop 'while' the code with key pressing?
Can you help me?
|