silvanmelchior / RPi_Cam_Web_Interface

A web interface for the RPi Cam
MIT License
1.54k stars 493 forks source link

Recording RAW image using Web Interface #626

Open mirzat-aston opened 3 years ago

mirzat-aston commented 3 years ago

Hi folks,

I need help with recording a RAW image instead of JPG format. RAW can be in YUV or RBG format. Kindly guide me on how to use this web interface for recording RAW images.

I would really appreciate your help as I am beginner and trying to learn this platform.

Regards, Taimur

roberttidey commented 3 years ago

There is already a raw layer option under camera settings. When this is on it appends the raw camera data onto the end of the jpeg. The jpeg is still viewable and the raw data may be extracted from the file by various techniques.

See for example https://www.raspberrypi.org/blog/processing-raw-image-files-from-a-raspberry-pi-high-quality-camera/

Note that you could automate the extraction of the raw data by writing a macro command which is executed after each image is taken.

dhruvilkpatel commented 2 years ago

import time import picamera

with picamera.PiCamera() as camera: camera.resolution = (100, 100) camera.start_preview() time.sleep(2) camera.capture('image.data', 'yuv')