-
Notifications
You must be signed in to change notification settings - Fork 356
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
Overlay Text with OpenCV in CustomEncoder #338
Comments
See my issue #337 on removing the indexing error. |
So basically adding |
The interactive help identifies key=0, but this may be a default. For me the removal of [0] after buf was sufficient. |
Ahhh now I see! 👍 Thanks a lot :) |
If you just want to overlay text, see the Unfortunately what you're trying to do (modify the image in the encoder class) isn't going to work: the encoder callback is at the very end of the pipeline after the image has been encoded and is about to be written to the output. What I think you're wanting to do is modify the image before it gets to the encoder; that's not (currently, easily) possible with picamera. |
Is it possible to overlay a given Text with a CustomEncoder?
This is a snippet of what I'm trying to do:
With that code "camera.stop_recording()" raises "TypeError: 'MMALBuffer' object does not support indexing".
Or is there an easier way of doing what I'm trying to do here?
The text was updated successfully, but these errors were encountered: