×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

indi_gphoto_ccd & canon RAW format

  • Posts: 5
  • Thank you received: 0
Hello Folks,

I have trouble getting images in Canon RAW format using KSTARS on a virtual machine and Indiserver running on a Ubuntu Mate Raspi. Telescope control and guiding cam (qhy5-II) work ok so far, getting images as jpeg using gphoto works, too.

Trying to get RAWs from an EOS 6D gives an error message as follows:

2015-07-18T09:26:44: Driver indi_gphoto_ccd: read_ppm: Expected (5472 x 3648) but image is actually (5496 x 3670)

Trying with an EOS 1100D leads to the same message (different image size values, of course).

Using gphoto2 directly like this
"gphoto2 --set-config eosremoterelease=Immediate --wait-event=1s --set-config eosremoterelease=4 --wait-event-and-download=2s --filename=shot.%C --force-overwrite"
works perfect for both cameras when I set them to BULB-Mode.
As said, jpeg download works fine, but when I change the image format to RAW, I get the error mentioned. Any idea whats going wrong?

Thanks in advance,

Peter
8 years 9 months ago #4600

Please Log in or Create an account to join the conversation.

dcraw might return incorrect results. Try to run in your Raspberry PI:
dcraw -i -t 0 -v myimage.raw

On your RAW image and post what results you get. For Raspberry PI, I made it use "Thumb size" since this is by far the actual size, but I guess it could lead to issues with some camera models.
Last edit: 8 years 9 months ago by Jasem Mutlaq.
8 years 9 months ago #4601

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
Here the result for canon eos 6d:

Filename: shot.cr2
Timestamp: Sat Jul 18 13:25:35 2015
Camera: Canon EOS 6D
ISO speed: 400
Shutter: 1/1.1 sec
Aperture: f/5.7
Focal length: 24.0 mm
Embedded ICC profile: no
Number of raw images: 1
Thumb size: 5472 x 3648
Full size: 5568 x 3708
Image size: 5496 x 3670
Output size: 5496 x 3670
Raw colors: 3
Filter pattern: RGGBRGGBRGGBRGGB
Daylight multipliers: 2.093140 0.943072 1.341524
Camera multipliers: 2032.000000 1024.000000 1705.000000 1024.000000

...and 1100D:

Filename: shot.cr2
Timestamp: Sat Jul 18 13:41:41 2015
Camera: Canon EOS 1100D
ISO speed: 200
Shutter: 1.0 sec
Aperture: f/inf
Focal length: 50.0 mm
Embedded ICC profile: no
Number of raw images: 1
Thumb size: 4272 x 2848
Full size: 4352 x 2874
Image size: 4290 x 2856
Output size: 4290 x 2856
Raw colors: 3
Filter pattern: RGGBRGGBRGGBRGGB
Daylight multipliers: 2.353782 0.931874 1.178846
Camera multipliers: 2289.000000 1024.000000 1529.000000 1024.000000

Peter
8 years 9 months ago #4603

Please Log in or Create an account to join the conversation.

and what is your actual image size?
8 years 9 months ago #4604

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
Canon Digital Photo Professional states the values given in Thumb Size as image size. Converting CR2 images to jpeg or bmp results into pixel sizes equal to thumb size.
So the actual image size is thumb size. Hope I got your question right.
8 years 9 months ago #4605

Please Log in or Create an account to join the conversation.

Well, if you open EOS 6d shot.cr2 in any imaging application, you get (5472 x 3648) or (5496 x 3670)? Because the INDI GPhoto driver under Raspberry PI takes the "Thumb size" as the final size for RAW images (first value) but it seems the actual value is the secondary value.
Last edit: 8 years 9 months ago by Jasem Mutlaq.
8 years 9 months ago #4606

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
I tried windows photo viewer and the picture viewer shipped with ubuntu. In all cases and for both cameras I get the thumb size as actual (pixel) size. I never got full size or image/output size as actual picture size. The thumb size is also equal to the official resolution stated by canon. So I have no clue how image size & output size are calculated.

I don't know if it helps. Attached the output from "exiftool -All" on an EOS 6D CR2 file.
8 years 9 months ago #4607
Attachments:

Please Log in or Create an account to join the conversation.

Ok it seems the problem is with DCRaw on raspberry PI, Jensen found the solution long ago here:

indilib.org/forum/ccds-dslrs/644-wrong-i...pi.html?start=6#3509
8 years 8 months ago #4608

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
I fear this is not the solution desired.

After upgrading dcraw to latest version 9.26 using the source code form the dcraw archive page I got the same results / errors. File sizes shown by dcraw remain the same. The thread where Jensen presented a solution is called "Wrong image size from GPhoto (Canon 1100D) on RPi", but infact the camera he used is an EOS 600D.
A brief look on the dcraw source code shows that EOS 600D raw files are handled in a special way (Looks like a quick patch). This might explain why it works for Jensen.
I'd like to play around with the indi_gphoto_ccd driver in order to find a solution, but there seems to be a problem to access the SVN repository. I downloaded a copy from launchpad.net, but cmake complains about missing packages. My linux skills are quite limited, so I got stuck at this point. Since I am busy the for next 5 days I will go ahead trying next week.
8 years 8 months ago #4610

Please Log in or Create an account to join the conversation.

Sourceforge has been down for a few days now so all subversion stuff are not working. Please give it sometime until they restore services.
8 years 8 months ago #4611

Please Log in or Create an account to join the conversation.

  • Posts: 314
  • Thank you received: 34
Hi there,
since I got my Raspberry I face the same problem. I built everything from latest source and I get the same error in Ekos:
I did on the raspberry:
gphoto2 --capture-image-and-download

and draw shows the image as:
pi@rp ~ $ dcraw -i -v capt0000.cr2 
 
Filename: capt0000.cr2
Timestamp: Sun Aug  9 12:57:20 2015
Camera: Canon EOS 700D
ISO speed: 800
Shutter: 1.0 sec
Aperture: f/inf
Focal length: 0.0 mm
Embedded ICC profile: no
Number of raw images: 1
Thumb size:  5184 x 3456
Full size:   5280 x 3528
Image size:  5208 x 3476
Output size: 5208 x 3476
Raw colors: 3
Filter pattern: RG/GB
Daylight multipliers: 2.266767 0.938615 1.281072
Camera multipliers: 2093.000000 1024.000000 1570.000000 1024.000000

EDIT: the hint from indilib.org/forum/ccds-dslrs/644-wrong-i...pi.html?start=6#3509 was involved without success
--= human, without Windows™ =--
pls excuse my bad english! :)
Last edit: 8 years 8 months ago by pauledd.
8 years 8 months ago #4695

Please Log in or Create an account to join the conversation.

  • Posts: 314
  • Thank you received: 34
Iam not very in the coding thing but it looks like "read_ppm: Expected (5184 x 3456)" is taken from the Thumb size which is the non-dcraw'ed / non linux / camera internal / official dimension. The "actually (5208 x 3476)" is the real dcraw processed pixels I allwaysI get on Linux and its bigger because:But I really dont know whats the matter here.
--= human, without Windows™ =--
pls excuse my bad english! :)
8 years 8 months ago #4696

Please Log in or Create an account to join the conversation.

Time to create page: 0.660 seconds