-
Notifications
You must be signed in to change notification settings - Fork 27
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
Report motion vectors #22
Comments
Hey @fhunleth I've been playing around with picam recently and I'm interested in helping out with this effort. I've never worked with hardware encoding before, but I can learn new stuff 😄 . Do you have any suggestions for where I should start? Maybe a library that implements this for some other use-case? Or the name of the c libraries for interacting with the encoding that happens in hardware? |
Maybe this is a good place to start? https://picamera.readthedocs.io/en/release-1.13/recipes2.html?highlight=vectors#recording-motion-vector-data |
Hi @mmmries!!! Sorry for the late response. I think that you found a good place to start. I vaguely remember finding information about this by reading the MMAL header files. Unfortunately, I forgot which one and would need to do it again. I suspect that you might have found a better location anyway. I hope that this doesn't come across as discouragement, but I think the days of |
That's super helpful context @fhunleth. Maybe I'll take a look at |
A side effect of encoding video is calculating motion vectors in hardware. It would be nice to get the motion vectors in Elixir to support things like simple motion detection and optical flow calculations. It wouldn't be as good as what can be done with OpenCV, but it's computationally cheap and would provide for some fun experiments.
The text was updated successfully, but these errors were encountered: