edsdk

EXC_BAD_ACCESS from Canon's EDSDK EdsInitializeSDK() API

时光怂恿深爱的人放手 提交于 2019-12-11 11:07:03
问题 I'm writing a camera control program in Xcode 7.2 on OS X 10.11.2 and every once and a while my program will crash at EdsInitializeSDK(). Most of the solutions online suggest downloading other EDSDK.framework file, but this hasn't worked for me. Also, most of the solutions were written almost 3 years ago. The thing that doesn't make sense to me is that the program runs most of the time and only occasionally crashes. Has anyone found a work around to prevent the bad access? 回答1: This seems to

problem with download picture from canon camera to pc

自古美人都是妖i 提交于 2019-12-11 05:01:46
问题 i connected a eos canon camera to pc i have an application that i could take picture remotly ,and download image to pc, but when i remove the SD card from camera , i cant download image from buffer to pc // register objceteventcallback err = EDSDK.EdsSetObjectEventHandler(obj.camdevice, EDSDK.ObjectEvent_All, objectEventHandler, new IntPtr(0)); if (err != EDSDK.EDS_ERR_OK) Debug.WriteLine("Error registering object event handler"); /// public uint objectEventHandler(uint inEvent, IntPtr inRef,

EDSDK callbacks not working

左心房为你撑大大i 提交于 2019-12-11 04:24:25
问题 I have a working command line application, using EDSDK v2.13. However, when I register callbacks, there is a burst of property events then nothing. I have remedied this a loop like this: while(!_kbhit()) { EdsOpenSession(camera); Sleep(10); EdsCloseSession(camera); } This seems horribly kludgy. Is the SDK broken, or am I missing something? 回答1: If you're using the EDSDK on Windows, you have to have a Windows message loop in your main thread, otherwise callbacks won't happen. (This is because

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

How to Crop Image without changing the aspect ratio

给你一囗甜甜゛ 提交于 2019-12-10 18:11:11
问题 I need to crop an image without changing its aspect ratio. I am taking picture from CANON1100D using EDSDK. Captured image: Width = 1920 and Height=1280 Aspect ration is 1.5 . but I need picture which aspect ratio is 1.33 . // convert into processing resolution (1600,1200) Image<Bgr, byte> runtime_frm = new Image<Bgr, byte>(frame.ToBitmap(1600,1200)); // also in bitmap processing // Bitmap a = new Bitmap(runtime_frm.ToBitmap()); // Bitmap b = new Bitmap(a, new Size(1600,1200)); It's resizing

Canon EDSDK How can I get width and height of live view images?

夙愿已清 提交于 2019-12-10 00:21:27
问题 I written C++ code to display live view image on monitor. I referred to some code on stackoverflow. Finally, I complete my code, but there are some problem. I want display live view image using opencv, but I don't know to get the width & height of live view image. (maybe it is retrieved by EDSDK function..) please answer for me. (I attached my code, I want suitable answer for my code) (look at "//libjpegTurbo...//, there are manual _width & height. I want to retrieve using function) //

Canon LiveView: image convertion to OpenCV Mat

拜拜、爱过 提交于 2019-12-08 04:55:34
问题 I'm trying to show LiveView image in real time. I use EDSDK 2.14 + Qt5 + opencv+mingw32 under Windows. I'm not very sophisticated in image processing so now I have the following problem. I use example from Canon EDSDK and all was ok until this part of code: // // Display image // I googled a lot of examples but all of them was written on C# or MFC or VB. Also I found advise to use libjpegTurbo for decompressing image and then showing it using opencv. I tried to use libjpegTurbo but failed to

take picture and directly save image to pc using edsdk 2.8

◇◆丶佛笑我妖孽 提交于 2019-12-06 13:13:51
I'm new to the EDSDK 2.8 At the moment, my program can take pictures. However, when a picture is taken, that picture is temporarily stored in a buffer in the Canon camera. I would like to know how to save it directory to the PC? Does anyone have any ideas? Or sample code in c# or vb.net? Here is what I have done: First, you have to register for the callback event when an object is created (ie, a picture). I did this in a registerEvents method that I created: // Register OBJECT events edsObjectEventHandler = new EDSDK.EdsObjectEventHandler(objectEventHandler); error = EDSDK

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 EDSDK How can I get width and height of live view images?

血红的双手。 提交于 2019-12-04 20:36:33
I written C++ code to display live view image on monitor. I referred to some code on stackoverflow. Finally, I complete my code, but there are some problem. I want display live view image using opencv, but I don't know to get the width & height of live view image. (maybe it is retrieved by EDSDK function..) please answer for me. (I attached my code, I want suitable answer for my code) (look at "//libjpegTurbo...//, there are manual _width & height. I want to retrieve using function) // Functions_body bool LiveViewStart() { EdsError err = EDS_ERR_OK; EdsCameraListRef cameraList = NULL;