AssertionError: Cannot show camera from main UI thread
I'm getting this running my script. I think it has something to do with
photos.capture_imagetriggered by a UI button. How do I get around this?
Note: If I do
ui.load_ui().present()and then do
photos.capture_image()on the next line, it works, I only get this error when it is button-triggered.
Try to see if the
@ui.in_backgrounddecorator helps in this situation.
Thanks a ton.