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

How to crop & save the .raw frames? #76

Open
liuxinrui0831 opened this issue Aug 24, 2022 · 1 comment
Open

How to crop & save the .raw frames? #76

liuxinrui0831 opened this issue Aug 24, 2022 · 1 comment

Comments

@liuxinrui0831
Copy link

Hi @6by9. Currently, I'm running raspiraw using IMX219 + Pi 4 Model B to capture frames at 640175 @ 500 Hz. In my application, I only need the central part of the frame, so I would like to know if it is possible to crop the raw frame from 640175 to 175*175 (i.e. drop some pixels on the left and right) before writing it to the disk. If it is possible, could you please tell me how to implement this (i.e. how to change this line of code so that only the central part of the frame is written to the disk)? Besides, to make the cropped frame compatible with dcraw, do I need to change the header for the raw frames?

@6by9
Copy link
Collaborator

6by9 commented Aug 24, 2022

https://github.com/raspberrypi/raspiraw/blob/master/imx219_modes.h#L34

// These values are copied from
// https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=162722&p=1052339
// Raspberry Pi can not discuss these settings as we have information from
// Sony under NDA.

// REQUESTS FOR SUPPORT ABOUT THESE REGISTER VALUES WILL
// BE IGNORED BY PI TOWERS.

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