06-05-2019 03:27 AM
Hello,everyone,i use eos sdk(3.6) ,i want save picture to my pc when i take picture,but i can't find any picture in my pc.below is my code,please give me advice ,thank you so much!
-----------C++ code
EdsOpenSession(camera);
EdsInt32 SaveTarget = kEdsSaveTo_Host;
edsErr = EdsSetPropertyData(camera, kEdsPropID_SaveTo, 0, sizeof(SaveTarget), &SaveTarget);
EdsCapacity cappppp = { 0x7FFFFFFF, 0x1000, 1 };
edsErr = EdsSetCapacity(camera, cappppp);
EdsStreamRef stream = NULL;
std::string str_path = "D:\\1.jpg";
const char* ch_dest = str_path.c_str();
edsErr=EdsCreateFileStream(ch_dest, kEdsFileCreateDisposition_CreateAlways, kEdsAccess_ReadWrite, &stream);
edsErr = EdsSendCommand(camera, kEdsCameraCommand_TakePicture, 0);
EdsOpenSession(camera);
-----------------
so cute is that there is no error at above codes !
06-05-2019 05:31 AM
OK,i have found a good method.u can refer:
https://windows-hexerror.linestarve.com/q/so18267636-Canon-SDK-Take-picture-from-camera
01/27/2025: New firmware updates are available.
12/18/2024: New firmware updates are available.
EOS C300 Mark III - Version 1..0.9.1
EOS C500 Mark II - Version 1.1.3.1
12/05/2024: New firmware updates are available.
EOS R5 Mark II - Version 1.0.2
09/26/2024: New firmware updates are available.
EOS R6 Mark II - Version 1.5.0
Canon U.S.A Inc. All Rights Reserved. Reproduction in whole or part without permission is prohibited.