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

grab jpeg #43

Open
gmke opened this issue Jul 5, 2023 · 3 comments
Open

grab jpeg #43

gmke opened this issue Jul 5, 2023 · 3 comments

Comments

@gmke
Copy link

gmke commented Jul 5, 2023

would it be possible to get a jpeg image instead of the raw format? I have a PiHQ camera and during daylight I would save some processing getting the nice jpegs the camera makes.

CS, Markus

@scriptorron
Copy link
Owner

I would need to find out how the INDI protocol handles JPG images. Implementation will need some time. Sorry.

@scriptorron
Copy link
Owner

Hi Markus,

I searched internet and tried to understand the source code of other indi drivers (webcam and DSLR) to find out how this is done for other cameras. Unfortunately it seems that the INDI protocol supports raw (Bayer pattern) and RGB images only. The other drivers I have seen capture JPG but than they convert JPG to RGB for transmission.

The indi_pylibcamera driver already has the option to transmit RGB pictures: in tab "Image settings" is a driver control "Frame type" which can be set to "Processed". This will give better RGB images than configuring the image processor to make a JPG (and loosing data) and converting the JPG back to RGB.

For astro-photography the raw Bayer pattern format is still better than the RGB: it has higher dynamic range and does not suffer from rounding errors.

Please correct me, but I believe what you really need is RGB capture with automatic exposure control and white balance. The present driver implementation has both disabled to allow stacking of images. But this is not practical when you just want to do single shots under good light conditions. In next driver version I will add controls to allow enabling of automatic exposure control and white balance.

Regards,
Ronald

@scriptorron
Copy link
Owner

I just released v2.1.0 which has now the low level camera controls available. To get pictures with automatic exposure control and AWB please do:

  • enable "Frame type" "Processed"
  • set "Processed frame" size (picture will be scaled to this size; the full sized picture of the HQ camera would have about 36MByte and take long to process and transmit!)
  • in tab "Camera controls" enable "AeEnable" and "AwbEnable"
  • if needed you can fine tune white balance with "AwbMode"

Regards,
Ronald

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