新索尼相机支持哪些API,即A9(ILCE-9),A7r2(ILCE-7rm2),A7m3(ILCE-7m3)?

Kir*_*ril 7 sony sony-camera-api

我查看了索尼的开发者网站(2018年3月3日),虽然设计发生了变化,但内容似乎落后了.

https://developer.sony.com/develop/cameras

我没有看到A9和第三代A7相机的API的任何细节.

我知道这些相机有WiFi和蓝牙.它们可与PlayMemories手机/平板电脑应用程序互操作.我也理解他们从相机本身删除了PlayMemories应用支持(Android应用支持).

我想知道他们是否公开了记录的API?是否有改进或新功能?鉴于该平台已被更改,是否有任何限制?

可以使用低功耗蓝牙从相机获取一些事件吗?

此外,还有用于系绳控制的USB SDK吗?

Kir*_*ril 5

鉴于A7iii/A7M3/ILCE-7M3不是SDK的一部分,我最近得到了它,我开始自己探索API.好消息是API类似于旧相机,开发人员的知识可以立即使用.

似乎API相对于具有基于API子系统的旧相机具有不同的能力,例如A6300,A7R2等.

以下是我使用getAvailableApiList()找到的A7iii API的完整列表

getAvailableApiList
getShootMode
getSupportedShootMode
getAvailableShootMode
setFlashMode
getFlashMode
getSupportedFlashMode
getAvailableFlashMode
setSelfTimer
getSelfTimer
getSupportedSelfTimer
getAvailableSelfTimer
getSupportedMovieQuality
startLiveview
stopLiveview
actTakePicture
startMovieRec
stopMovieRec
awaitTakePicture
getExposureMode
getSupportedExposureMode
getAvailableExposureMode
getSupportedFocusMode
setExposureCompensation
getExposureCompensation
getSupportedExposureCompensation
getAvailableExposureCompensation
setFNumber
getFNumber
getSupportedFNumber
getAvailableFNumber
setWhiteBalance
getWhiteBalance
getSupportedWhiteBalance
getAvailableWhiteBalance
getShutterSpeed
getSupportedShutterSpeed
getAvailableShutterSpeed
setIsoSpeedRate
getIsoSpeedRate
getSupportedIsoSpeedRate
getAvailableIsoSpeedRate
actHalfPressShutter
cancelHalfPressShutter
getSupportedProgramShift
getSupportedMovieFileFormat
setContShootingMode
getContShootingMode
getSupportedContShootingMode
getAvailableContShootingMode
getSupportedViewAngleMode
getSupportedNearModeInPF
setWirelessFlashSetting
getWirelessFlashSetting
getSupportedWirelessFlashSetting
getAvailableWirelessFlashSetting
getApplicationInfo
getEvent
getTemporarilyUnavailableApiList
Run Code Online (Sandbox Code Playgroud)

以前A6300上没有几种新的API可用

awaitTakePicture
getAvailableExposureMode
getAvailableFlashMode
getAvailableWirelessFlashSetting
getFlashMode
getSupportedMovieFileFormat
getSupportedMovieQuality
getSupportedNearModeInPF
getSupportedViewAngleMode
getSupportedWirelessFlashSetting
getTemporarilyUnavailableApiList
getWirelessFlashSetting
setFlashMode
setWirelessFlashSetting
startMovieRec
stopMovieRec
Run Code Online (Sandbox Code Playgroud)

A6300上也存在缺少的API,而A7iii中不再存在这些API

getAvailableCameraFunction
getAvailableFocusMode
getAvailableLiveviewSize
getAvailablePostviewImageSize
getAvailableSilentShootingSetting
getCameraFunction
getFocusMode
getLiveviewFrameInfo
getLiveviewSize
getMethodTypes
getPostviewImageSize
getSilentShootingSetting
getStorageInformation
getSupportedCameraFunction
getSupportedContShootingSpeed
getSupportedLiveviewSize
getSupportedPostviewImageSize
getSupportedSilentShootingSetting
getSupportedZoomSetting
getTouchAFPosition
getVersions
setCameraFunction
setFocusMode
setLiveviewFrameInfo
setPostviewImageSize
setShootMode
setSilentShootingSetting
setTouchAFPosition
startLiveviewWithSize
stopRecMode
Run Code Online (Sandbox Code Playgroud)

我发现startRecMode不是avaialbe或者在发送其他命令之前需要在A7iii上调用.

我似乎无法在LiveView中启用帧信息,因此我的实时视图看起来有点不合格,即没有显示焦点.此外,setTouchAFPosition()已消失,我无法从我的应用程序设置焦点.我正在构建一个小型桌面/笔记本电脑应用程序,模仿索尼的PlayMemories手机应用程序,即一种无线网络共享工具.

我做的一个奇怪的观察是getVersions()从1.0到1.8返回列表.getMethodTypes()似乎只涵盖1.0到1.3.

我希望这有助于任何试图弄清楚应用程序或脚本是否可以运行在最新相机上的人.

PS经过进一步检查后,我注意到getMEthodTypes返回coupe更多的API操作

actZoom
cancelTouchAFPosition
getAvailableFNumber
getAvailableFocusMode
getAvailableMovieQuality
getAvailableViewAngleMode
getFNumber
getFocusMode
getMethodTypes
getMovieQuality
getSupportedFNumber
getVersions
getViewAngleMode
setExposureMode
setFNumber
setFocusMode
setMovieQuality
setShootMode
setShutterSpeed
setViewAngleMode
startBulbShooting
startContShooting
stopBulbShooting
stopContShooting
Run Code Online (Sandbox Code Playgroud)

我认为当相机设置合适时,这些将出现在getAvaialbleApiList中,例如连续拍摄或灯泡模式曝光.


小智 0

感谢您对索尼相机 API 的兴趣!索尼确实生产了许多具有各种功能的相机,但即使相机确实具有 WiFi 功能,也并不一定意味着它将支持相机远程 API。网站上的列表是最新的列表,因此如果相机不在该列表中,那么它很可能不受支持。

https://developer.sony.com/develop/cameras/api-information/supported-devices

该网站还列出了许多支持的功能, https://developer.sony.com/develop/cameras/api-information/supported-features-and-company-cameras

但您必须下载 SDK 才能查看完整的 API 列表。 https://developer.sony.com/file/download/sony-camera-remote-api-beta-sdk/

最后,不幸的是,相机 API 仅支持对 Wifi 的控制,因此您无法使用任何其他方式来访问该 API。

我希望这个对你有用。如果您还有其他问题,请告诉我!