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.
scanning pixels on a live camera view image
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: scanning pixels on a live camera view image
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.
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
Thanks. Much appreciated.