scanning pixels on a live camera view image

Post Reply
sabceo
Posts: 5
Joined: Wed Jan 12, 2022 2:47 am
Flag: United States of America

scanning pixels on a live camera view image

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: scanning pixels on a live camera view image

Post 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.

sabceo
Posts: 5
Joined: Wed Jan 12, 2022 2:47 am
Flag: United States of America

Re: scanning pixels on a live camera view image

Post by sabceo »

Thanks. Much appreciated.

Post Reply