Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5066

Camera board • Re: Picamera2 save cropped(?) raw/dng

$
0
0
Hey,
sorry for not replying earlier. I did what you suggested, managed to crop an image and then save it as png. Then I decided I'd just use the supported resolutions and postponed the whole thing. Now I have an entirely different issue that probably demands a new thread...

I'm in the process of finishing a frame-by-frame scanner for Super 8 film (and wanted to be efficient with storage - hence my initial question). Everything is running, but I can't seem to figure out when exactly an image is captured. A stepper motor moves the film forward, stops when a perforation hole is detected via laser, camera captures, motor moves to the next frame, etc.. I've discovered that the moment the image is captured(?) is not necessary the moment the motor has actually stopped (or maybe it has and the motor starts again before capturing completes), so the images have very sublte motion blur (some not so subtle). When I insert a small delay before capturing, images seem to be okay, but that's not really a solution.

Right now I'm only changing a few still_configuration parameters (raw.size, main.size, colour_space and raw.format) and a view controls (ExposureTime, AwbMode, AwbEnable, AeEnable), then start a preview window with no specific config selected (but the window title tells me my controls were set). The preview window keeps running during the entire motor-capture-motor process.

It's possible that, when the motor stops, there's a little hitch that's actually responsible for creating the blurs. But maybe it's actually because the motor starts again before the capture was done? What's a good way to figure out the timing of everything? I wish the documentation was more clear (to me, at least)

:-)

Statistics: Posted by verlakasalt — Wed Jul 24, 2024 2:15 pm



Viewing all articles
Browse latest Browse all 5066

Trending Articles