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

血红的双手。 提交于 2019-12-04 20:36:33

the canon SDK does not provide any functions to get the size of the live view image. The problem you are facing in your code is that you try to compress the image but you need to decompress it. I suggest you read up on the usage of libjpg turbo. They provide very well documented examples: http://www.libjpeg-turbo.org/Documentation/Documentation

On a sidenote: Is this your real code or just to show? Because the liveview image download has to be in a loop to be called repeatedly, otherwise you will only download a single image and close everything.

Kind regards

If you have an evfImage you can use EdsGetPropertyData to request its kEdsPropID_Evf_CoordinateSystem (type EdsSize). This value contains the width and height of the liveview of last captured frame.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!