×

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

Bi-monthly release with minor bug fixes and improvements

Wrong image size from GPhoto (Canon 1100D) on RPi

  • Posts: 47
  • Thank you received: 0
Hi,

I'm trying to get my setup working on version 1.0.0 on RPi. I use eqmod, SX lodestar, GPhoto (Canon 1100D) and FCUSB (Shoestring). Everything is working fine when I use a labtop (xubuntu 14.10) as server.

I have tried to get everything working on RPi and all seems to work except that the reported image size from ekos is not right when i have downloaded an image from my Canon 1100D using indi_gphoto_ccd driver on RPi. I don't have problems with SX.

Ekos is reporting and showing an image size of approx. half the right size. What can I do to test this further? I have read somewhere on the forum, that there could be an issue with dcraw sometimes returning bogus results especially on RPi.

/steen
9 years 1 month ago #3470

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

Quickest way to test. Set UPLOAD MODE to "Local", then capture an image, it will save it on the RPI. Run dcraw on that image and check the output size, does it check out?
9 years 1 month ago #3472

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

  • Posts: 47
  • Thank you received: 0
Ok,

Here is the output:

pi@raspberrypi ~ $ dcraw -i -v IMAGE_04.cr2

Raw photo decoder "dcraw" v8.99
by Dave Coffin, dcoffin a cybercom o net

Filename: IMAGE_04.cr2
Timestamp: Tue Mar 10 17:17:45 2015
Camera: Canon EOS 600D
ISO speed: 800
Shutter: 32.0 sec
Aperture: f/8.0
Focal length: 17.0 mm
Embedded ICC profile: no
Number of raw images: 1
Thumb size: 5184 x 3456
Full size: 1336 x 3516
Image size: 1336 x 3516
Output size: 1336 x 3516
Raw colors: 3
Filter pattern: RGGBRGGBRGGBRGGB
Daylight multipliers: 2.186432 0.928015 1.023826
Camera multipliers: 2101.000000 1024.000000 1586.000000 1024.000000

It seems that the right size is saved under Thumb size? And Ekos is using reported Image size of 1336x3516 ??

/steen
Last edit: 9 years 1 month ago by Steen.
9 years 1 month ago #3497

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

  • Posts: 47
  • Thank you received: 0
It seems that the right size is reported under Thumb size. When I run dcraw on my labtop I get this result:

steen@steen-HPE-432sc:~$ dcraw -i -v IMAGE_01.cr2

Raw photo decoder "dcraw" v9.21
by Dave Coffin, dcoffin a cybercom o net

Filename: IMAGE_01.cr2
Timestamp: Tue Mar 10 17:31:58 2015
Camera: Canon EOS 600D
ISO speed: 400
Shutter: 32.0 sec
Aperture: f/8.0
Focal length: 17.0 mm
Embedded ICC profile: no
Number of raw images: 1
Thumb size: 5184 x 3456
Full size: 5344 x 3516
Image size: 5202 x 3465
Output size: 5202 x 3465
Raw colors: 3
Filter pattern: RGGBRGGBRGGBRGGB
Daylight multipliers: 2.339939 0.935795 1.311823
Camera multipliers: 2101.000000 1024.000000 1586.000000 1024.000000

It seems here again that the size is wrong for Full/Image/Output size, but here it is very close to the real size, so that I havn't noticed it before and this is the size (Image size) also reported in Ekos when setting "Upload" to "Client".

Maybe using reported Thumb size could work?

/steen
Last edit: 9 years 1 month ago by Steen.
9 years 1 month ago #3498

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

  • Posts: 31
  • Thank you received: 2
Hallo! I have the same problem. The image is cropped like in this topic. I hope this will be solved off course. I have av Canon 600D. Following this thread with interest.
Erland
9 years 1 month ago #3501

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

Please svn up and build under RPi again, I made it use Thumb size if it is under arm, please check if it works.
9 years 1 month ago #3502

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

  • Posts: 31
  • Thank you received: 2
Ok! Will do that tomorrow. Already gone to bed. So good night and sleep well :-)..
Erland
9 years 1 month ago #3503

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

  • Posts: 47
  • Thank you received: 0
Tried to test an got the following when Indi tries to handle the raw image:

2015-03-11T06:54:08: Driver indi_gphoto_ccd: Reading exposure 5184 x 3456
2015-03-11T06:54:23: Driver indi_gphoto_ccd: read_ppm: Expected (5184 x 3456) but image is actually (1336 x 3516)

So it seems that the new build take the size from Thumb size, but the actual size delivered from dcraw is still 1336x3516. So it is properly an error in dcraw :-(

Ther verison of dcraw used on RPi is much older than the version on ubuntu - this could be an explanation! Will try to see if I can build a new version of dcraw on RPi...

Anyway I think you should stay with getting the image size from dcraw as you did before...
9 years 1 month ago #3508

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

  • Posts: 47
  • Thank you received: 0
Ok, solution found!

If you install liblcms2-dev and libjasper-dev and compile latest dcraw from source on RPi (from here www.cybercom.net/~dcoffin/dcraw/archive/) , you can get i working:

pi@raspberrypi ~ $ dcraw -i -v IMAGE_01.CR2

Raw photo decoder "dcraw" v9.24
by Dave Coffin, dcoffin a cybercom o net

Filename: IMAGE_01.CR2
Timestamp: Wed Mar 11 07:50:39 2015
Camera: Canon EOS 600D
ISO speed: 800
Shutter: 16.0 sec
Aperture: f/9.1
Focal length: 17.0 mm
Embedded ICC profile: no
Number of raw images: 1
Thumb size: 5184 x 3456
Full size: 5344 x 3516
Image size: 5202 x 3465
Output size: 5202 x 3465
Raw colors: 3
Filter pattern: RG/GB
Daylight multipliers: 2.339939 0.935795 1.311823
Camera multipliers: 2101.000000 1024.000000 1586.000000 1024.000000

Still there is som croping/resizing from the right size (5184x3456 to 5202x3465), but it has been working for me.

I don't know how to get dcraw fixed so it dont crop and/or resize...


/steen
9 years 1 month ago #3509

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

Time to create page: 1.843 seconds