canon-sdk

EdsCreateImageRef fails when using MemoryStream

只谈情不闲聊 提交于 2019-12-24 19:08:10
问题 I want to capture RAW images from a Canon Camera (EOS 550D and EOS 1300D) and convert them to RGB without saving them on disk. I was assuming that this should be possible, given the fact that EdsCreateImageRef accepts a StreamRef, which can be either a FileStream or a MemoryStream. However, whenever I use a MemoryStream instead of a FileStream, EdsGetImageRef will return EDS_ERR_FILE_FORMAT_UNRECOGNIZED. I tried several variants: downloading into a MemoryStream and calling EdsGetImageRef

canon SDk Article by Johannes Bildstein

我的梦境 提交于 2019-12-11 19:05:50
问题 In Canon SDK sample, how can I take a photo with certain resolution such as 200-300 dpi or change the resolution programmatically, and save the taken photo in another file type, here I need to save in .TIF format? I can't find any function to do it. 回答1: author of the article here. you can change the image resolution by setting the PropID_ImageQuality with one of the ImageQuality enums. Note that not every camera supports every enum value and the actual image resolution depends on the camera

CANON SDK setting the CUSTOM WHITE BALANCE to the SAVED JPG images

泪湿孤枕 提交于 2019-12-11 13:07:12
问题 a friend of mine and I have been fighting to figure out how to extend the custom white balance that we could succesfully set on the live view, to the saved JPG image . We are using the Canon SDK 2.1.34 and a EOD 600D camera, programming in C#. Apparently this is the same problem/procedure connected to applying the Custom Picture modes to the saved image. For us the manual is cryptic. Has anyone a good example on how to achieve that? Thank you! Federico 回答1: Duplicate from my earlier attempts

SDK Error: 0x8D07, while using Canon SDK in C#

柔情痞子 提交于 2019-12-10 18:44:53
问题 I download the source only tutorial here. When I run it with connect my Canon 70D, I got the error below. What is the point I missed? The Error: The error occurs on this line: And here is how the folder which includes EXE file looks like: 回答1: I fixed this problem by letting the camera know there's enough disk space on the host. Adding the line CameraHandler.SetCapacity(); before CameraHandler.TakePhoto(); should do the trick. 回答2: Error 0x8D07 stands for EDS_ERR_TAKE_PICTURE_CARD_NG I'm not

canon EDSDK saving image in my PC

亡梦爱人 提交于 2019-12-06 08:02:40
问题 I am using EDSDK v2.13 with my EOS 50D camera. I want to save taken pictures in my host. I am using this code (c++): EdsOpenSession(camera); EdsInt32 saveTarget = kEdsSaveTo_Both; err = EdsSetPropertyData( camera, kEdsPropID_SaveTo, 0, 4, &saveTarget ); EdsCapacity newCapacity = {0x7FFFFFFF, 0x1000, 1}; err = EdsSetCapacity(camera, newCapacity); const char* ch_dest = "C:\\photo\\Img.jpg"; EdsCreateFileStreamEx( ch_dest ,kEdsFileCreateDisposition_CreateNew,kEdsAccess_ReadWrite, 0);

Canon Digital SDK (EDSDK) EdsCreateImageRef error

China☆狼群 提交于 2019-12-02 07:44:28
I am trying to use the Canon Eos Digital SDK (EDSDK) to decode a CR2 camera image for display in a desktop GUI. I run the first few methods as follows: err = EDSDK.EdsInitializeSDK(); err = EDSDK.EdsCreateFileStream( fullpath, EDSDK.EdsFileCreateDisposition.OpenExisting, EDSDK.EdsAccess.Read, out inStream); err = EDSDK.EdsCreateImageRef(inStream, out imgRefPtr); And the err variable remains as EDS_ERR_OK until it executes the last line above, where it becomes EDS_ERR_FILE_FORMAT_UNRECOGNIZED. The camera that took the image was a EOS 5DS R, which has been supported from the 3.2.1 release (our