Bloodevil / sony_camera_api

sony camera remote api
http://developer.sony.com/develop/cameras/
MIT License
244 stars 60 forks source link

Noob question - touch focus and take photo #32

Closed ksadil closed 7 years ago

ksadil commented 7 years ago

Hi,

I am trying to understand how to use this software with my qx1. Example work as expected, but I am trying to script touch focus and take picture. My attempt below does not work, can you please help?

if 'setTouchAFPosition' in (mode['result'])[0]: print camera.setTouchAFPosition([{'touchCoordinates': ["30.0,30.0"]}]) time.sleep(5) if 'actTakePicture' in (mode['result'])[0]: print camera.actTakePicture() time.sleep(5)

ksadil commented 7 years ago

the solution is to use code like "camera.setTouchAFPosition([ 50.0, 60.0])"