Insta360Develop / Insta360_OSC

36 stars 4 forks source link

How to get insp type image? #28

Open eungyoda opened 1 year ago

eungyoda commented 1 year ago

Hi. I'm making a code to take an image on insta360 rs 1 inch.

I changing to OSC mode because MediaSDK is ARM platform not supported. However, only jpg is created in camera.takePicture command.

Please advise what option or command to use to get insp.

step 1. set insp file format

curl -X POST -H "Content-Type: application/json" -d '{ "name": "camera.setOptions", "parameters": { "options": { "fileFormat": "insp" }
}
}' http://192.168.42.1/osc/commands/execute

response is OK. {"name":"camera.setOptions","state":"done"}

step2 . check format option.

curl -X POST -H "Content-Type: application/json" -d '{ "name":"camera.getOptions", "parameters": { "optionNames": [ "fileFormat" ] } }' http://192.168.42.1/osc/commands/execute

The fileFormat option is fixed to jpg. {"name":"camera.getOptions","state":"done","results":{"options":{"fileFormat":{"type":"jpg","width":6080,"height":3040}}}}

How can I save as insp?

thanks.

Tianweihaihaihai commented 1 year ago

osc method cannot get insp file, jpg is the same with insp.

eungyoda commented 1 year ago

@Tianweihaihaihai But jpg does not support stitching in media sdk. https://github.com/Insta360Develop/MediaSDK-Cpp/issues/18