Forum Archive

Get camera image without displaying dialog

Webmaster4o

Is it possible, maybe using objc_util, to get what the camera sees as a PIL image without displaying the dialog? I want to have an AR-type deal where I modify the camera's view before displaying it in real time. I need it to go to a PIL image.

ccc

https://forum.omz-software.com/topic/2062/video-preview-inside-ui-view-beta

Webmaster4o

Thanks, I'll take a look. Guess I didn't search for the right thing.

Webmaster4o

Is the fastest way to get a PIL image to call ui.take_snapshot, store in BytesIO, and open that with PIL? Or is there a more direct way.