Skip to content
New issue

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

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

Already on GitHub? # to your account

Question: High speed motion vector output similiar to raspivid -x #7

Closed
baesek opened this issue Sep 14, 2022 · 3 comments
Closed

Question: High speed motion vector output similiar to raspivid -x #7

baesek opened this issue Sep 14, 2022 · 3 comments

Comments

@baesek
Copy link

baesek commented Sep 14, 2022

Hi, sorry that I ask my question here, in the issues, i did not find any other option.
I am actually searching for ways to get the motion_vectors of the pi camera with the smallest possible latency for an interactive art installation.

I already asked here: waveform80/picamera#725

I wonder if I can use this (fork-raspiraw) to modify one sensor modes framerate of either the pi camera v1 or v2 and then use picamera as an option to read the motion_vector data with the modified sensor mode?
How does it work? Does the Data stay in the register after modification with raspiraw command or do I have to run the command everytime after booting to get the modified framerate?
If I understood right it is also possible to just record every second line of the image to save data, would that help in getting the motion_vector / macroblock data as fast as possible?
I just bought a camera v2, is this gonna be better than the v1 version for this, or does it make no difference? I already build a housing for the v1 camera, thats why i am asking.

Thank you for any help, this project made my hope grow that it is possible to have nice realtime motion_detection for the art installation.

best,
Paul

@vonj
Copy link

vonj commented Sep 14, 2022 via email

@baesek
Copy link
Author

baesek commented Sep 17, 2022

Mh. I just read this from 2014 https://www.raspberrypi.com/news/vectors-from-coarse-motion-estimation/
which is implemented here (it uses raspivid with the -x parameter).
https://github.com/YggdrasiI/RPIMotionDetection/blob/f07e53ff9777c6ecb81319fd06e8f631c3354b0e/apps/raspicam/start
I am still not 100% sure, but i have the feeling that your project could also be somehow used to get the motion vector data at high framerates and thus with low latency. Isn't it?

@baesek baesek changed the title Question: Increasing framerate and then use with picamera? Question: High speed motion vector output similiar to raspivid -x Sep 17, 2022
@Hermann-SW
Copy link
Owner

I learned from 6by9 that motion vectors can only be retrieved with legacy camera stack at that time. Perhaps libcamera can as well. Definitely raspiraw cannot, it just captures raw frames.

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

No branches or pull requests

3 participants