Page 1 of 1

scanning pixels on a live camera view image

Posted: Sun Feb 06, 2022 2:19 am
by sabceo
Is it possible with SBasic to scan the pixels on a live camera view image? Either by: 1) Projecting the live camera view on the main graphics layer and scanning or 2) projecting the live camera view on a sprite and scanning or 3) some other way.

Taking a snapshot, saving it and drawing it on the graphics layer works, but, takes too much run time for my application. I can’t determine how to project the live camera view on the main graphics layer I also can’t determine how to scan pixels on an image contained in a sprite. Any suggestions would be appreciated. Thanks.

Re: scanning pixels on a live camera view image

Posted: Sun Feb 06, 2022 7:51 am
by Mr. Kibernetik
Yes, it is possible.

You can examine this example: Interactive Interface/Motion Detector.
This example turns on camera and scans camera live video, frame-by-frame, pixel-by-pixel, detects if there is any motion on these frames, and if motion is detected then it starts video recording to file until motion stops. And these saved video files can be examined later. Also it shows on the screen these live video frames with marked zones where any motion is detected in real time.

Re: scanning pixels on a live camera view image

Posted: Sun Feb 06, 2022 1:18 pm
by sabceo
Thanks. Much appreciated.