Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display numpy array using picamera #690

Open
watchever opened this issue Jun 4, 2021 · 3 comments
Open

Display numpy array using picamera #690

watchever opened this issue Jun 4, 2021 · 3 comments

Comments

@watchever
Copy link

I really like the display get through start_preview, because it is simple and low level (so probably fast).
Is it also possible to display a fixe image like numpy or any other output through picamera api ?
At present I use matplotlib but would really prefer to use picamera.

Thanks for your help

@6by9
Copy link
Collaborator

6by9 commented Jun 4, 2021

@watchever
Copy link
Author

Thanks a lot for your reply, exactly what I need.

@watchever
Copy link
Author

Hu... Sorry another question I use add_overlay to display a new fixed image each n seconds. But after few iterations I got an Out of Memory error. In fact only the last overlay interest me. Is there a smart way to free memory ?
Following is the last exception line.

File "/usr/lib/python3/dist-packages/picamera/exc.py", line 184, in mmal_check
raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Unable to enable port vc.ril.camera:out:2: Out of memory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants