Difference between revisions of "iPi Automation Add-on"
| Line 118: | Line 118: | ||
''set-recorder-props'' command sets properties for setup, background and recording stages. | ''set-recorder-props'' command sets properties for setup, background and recording stages. | ||
| − | + | {{Tip|If property is not specified in command arguments, current value in user interface will be used. }} | |
<table class="wikitable" style="font-size: smaller;"> | <table class="wikitable" style="font-size: smaller;"> | ||
| − | <tr><th>Parameter Name</th><th>Type</th><th>Required</th><th>Allowed Values</th><th>Description</th></tr> | + | <tr><th>Parameter Name</th><th>Type</th><th>Required /<br>Optional</th><th>Allowed Values</th><th>Description</th></tr> |
<tr><td colspan="5" style="background-color: white;">'''Arguments'''</td></tr> | <tr><td colspan="5" style="background-color: white;">'''Arguments'''</td></tr> | ||
| − | <tr><td colspan="5">'''Properties for | + | <tr><td colspan="5">'''Properties for SETUP Stage:'''</td></tr> |
| − | <tr><td><tt>videoMode</tt></td><td>string</td><td>optional</td><td> | + | <tr><td><tt>videoMode</tt></td><td>string</td><td align=center>optional</td><td> |
Available modes depend on camera model. | Available modes depend on camera model. | ||
</td><td> | </td><td> | ||
| − | Setting RGB video mode. You can see available modes in "Video Mode" combobox at | + | Setting RGB video mode. You can see available modes in "Video Mode" combobox at SETUP stage, or get it in the result of '''get-recorder-props''' command. |
</td></tr> | </td></tr> | ||
| − | <tr><td><tt>audioMode</tt></td><td>string</td><td>optional</td><td> | + | <tr><td><tt>audioMode</tt></td><td>string</td><td align=center>optional</td><td> |
Available modes depend on microphone model. | Available modes depend on microphone model. | ||
</td><td> | </td><td> | ||
| − | Setting audio mode. You can see available modes in "Audio Mode" combobox at | + | Setting audio mode. You can see available modes in "Audio Mode" combobox at SETUP stage, or get it in the result of '''get-recorder-props''' command. |
</td></tr> | </td></tr> | ||
| − | <tr><td><tt>globalDeviceProps</tt></td><td>JSON object</td><td>optional</td><td> | + | <tr><td><tt>globalDeviceProps</tt></td><td>JSON object</td><td><center>optional</center></td><td> |
<td> | <td> | ||
| − | Device-specific list of properties visible in “SHARED SETTINGS” section of | + | Device-specific list of properties visible in “SHARED SETTINGS” section of SETUP stage. |
</td></tr> | </td></tr> | ||
| − | <tr><td style="padding-left: 40px;"><tt>PlayStation Eye: Darkening for Calibration''</tt></td><td>string</td><td>optional | + | <tr><td style="padding-left: 40px;"><tt>PlayStation Eye: Darkening for Calibration''</tt></td><td>string</td><td align=center>optional |
</td><td><tt>"None"</tt><br><tt>"Darkening"</tt><br><tt>"Extra Darkening"</tt></td><td> | </td><td><tt>"None"</tt><br><tt>"Darkening"</tt><br><tt>"Extra Darkening"</tt></td><td> | ||
Darkening mode for Sony PS3 Eye cameras | Darkening mode for Sony PS3 Eye cameras | ||
</td></tr> | </td></tr> | ||
| − | <tr><td><tt>screensInRow</tt></td><td>number</td><td>optional</td><td>Integer from 1 to number of cameras<td> | + | <tr><td><tt>screensInRow</tt></td><td>number</td><td align=center>optional</td><td>Integer from 1 to number of cameras<td> |
Setting number of screens in a row for multiple camera video view. | Setting number of screens in a row for multiple camera video view. | ||
</td></tr> | </td></tr> | ||
| − | <tr><td><tt>screenLayout</tt></td><td>string</td><td>optional</td> | + | <tr><td><tt>screenLayout</tt></td><td>string</td><td align=center>optional</td> |
<td> | <td> | ||
For RGB cameras:<br> | For RGB cameras:<br> | ||
| Line 155: | Line 155: | ||
Setting screen layout. | Setting screen layout. | ||
</td></tr> | </td></tr> | ||
| − | <tr><td colspan="5">'''Properties for | + | <tr><td colspan="5">'''Properties for BACKGROUND Stage:'''</td></tr> |
| − | <tr><td><tt>backgroundEvaluationDuration</tt></td><td>number</td><td>optional</td><td>Integer number of seconds from 2 to 10<td> | + | <tr><td><tt>backgroundEvaluationDuration</tt></td><td>number</td><td align=center>optional</td><td>Integer number of seconds from 2 to 10<td> |
Setting duration of background evaluation. | Setting duration of background evaluation. | ||
</td></tr> | </td></tr> | ||
| − | <tr><td><tt>backgroundEvaluationStartDelay</tt></td><td>number</td><td>optional</td><td>Integer number of seconds from 0 to 30<td> | + | <tr><td><tt>backgroundEvaluationStartDelay</tt></td><td>number</td><td align=center>optional</td><td>Integer number of seconds from 0 to 30<td> |
Setting start delay for background evaluation. | Setting start delay for background evaluation. | ||
</td></tr> | </td></tr> | ||
| − | <tr><td><tt>showEvaluatedBackground</tt></td><td>boolean</td><td>optional</td><td><tt>true<br>false</tt><td> | + | <tr><td><tt>showEvaluatedBackground</tt></td><td>boolean</td><td align=center>optional</td><td><tt>true<br>false</tt><td> |
Show background mode on / off. | Show background mode on / off. | ||
</td></tr> | </td></tr> | ||
| − | <tr><td colspan="5">'''Properties for | + | <tr><td colspan="5">'''Properties for RECORD Stage:'''</td></tr> |
| − | <tr><td><tt>recordingStartDelay</tt></td><td>number</td><td>optional</td><td>Integer number of seconds from 0 to 60<td> | + | <tr><td><tt>recordingStartDelay</tt></td><td>number</td><td align=center>optional</td><td>Integer number of seconds from 0 to 60<td> |
Setting start delay for recording. | Setting start delay for recording. | ||
</td></tr> | </td></tr> | ||
| − | <tr><td><tt>hideBackgroundWhenRecording</tt></td><td>boolean</td><td>optional</td><td><tt>true<br>false</tt><td> | + | <tr><td><tt>hideBackgroundWhenRecording</tt></td><td>boolean</td><td align=center>optional</td><td><tt>true<br>false</tt><td> |
Show hide background mode on / off. | Show hide background mode on / off. | ||
</td></tr> | </td></tr> | ||
| − | <tr><td><tt>destinationFilePath</tt></td><td>string</td><td>optional</td><td> | + | <tr><td><tt>destinationFilePath</tt></td><td>string</td><td align=center>optional</td><td> |
Valid file path | Valid file path | ||
</td><td> | </td><td> | ||
Full path to destination file for recording. | Full path to destination file for recording. | ||
</td></tr> | </td></tr> | ||
| − | <tr><td><tt>colorCompression</tt></td><td>string</td><td>optional</td><td> | + | <tr><td><tt>colorCompression</tt></td><td>string</td><td align=center>optional</td><td> |
<tt>"None"</tt><br> | <tt>"None"</tt><br> | ||
<tt>"Background subtraction"</tt><br> | <tt>"Background subtraction"</tt><br> | ||
| Line 184: | Line 184: | ||
Setting RGB video compression mode. | Setting RGB video compression mode. | ||
</td></tr> | </td></tr> | ||
| − | <tr><td><tt>jpegQuality</tt></td><td>number</td><td>optional</td><td>integer from 0 to 100</td><td> | + | <tr><td><tt>jpegQuality</tt></td><td>number</td><td align=center>optional</td><td>integer from 0 to 100</td><td> |
JPEG quality for JPEG compression. | JPEG quality for JPEG compression. | ||
</td></tr> | </td></tr> | ||
| − | <tr><td><tt>depthCompression</tt></td><td>string</td><td>optional</td><td><tt>"None"</tt><br><tt>"Background subtraction"</tt></td><td> | + | <tr><td><tt>depthCompression</tt></td><td>string</td><td align=center>optional</td><td><tt>"None"</tt><br><tt>"Background subtraction"</tt></td><td> |
Setting depth compression mode. | Setting depth compression mode. | ||
</td></tr> | </td></tr> | ||
Revision as of 07:00, 2 December 2015
Contents
Overview
iPi Integration Add-on allows to control iPi Recorder and iPi Mocap Studio from external application by sending JSON commands via Windows dll. It can be used for:
- Using iPi Recorder and iPi Mocap Studio as a part of third-party solution
- Automation of repeatable tasks
- Automation of custom workflow
License and Trial
iPi Integration Add-on requires separate license key, which you need to activate in iPi Mocap Studio. You can order your license here, or activate 30-days free trial. Follow the steps below to start working with iPi Integration Add-on
- Switch to Integration tab.
- Press Activate button
- Press Start 30-days Free Trial Period or Enter Integration License Key and follow further on-screen instructions
Using iPi Integration Add-on
Command Syntax
Commands are strings based on JSON syntax. Commands are submitted via JSON requests that include command name and may optionally include command arguments.
The response is also JSON string. The response include success flag. In case of error the response include error message. In case of success the response may optionally include result that is JSON object.
The response can be synchroneous for commads that are performed fast, or asynchroneous if command takes time to perform.
SYNOPSIS
// Request for command without arguments { "command": "<command_name_string>" } // Request for command with arguments { "command": "<command_name_string>", "arguments": { <arguments_list_json_string> } } // Simple response in case of success { "success": true } // Response including command result field in case of success { "success": true, "result": { <result_json_string> } } // Response in case of error { "success": false, "error": "<error_message_string>" }
iPi Recorder Commands
General Commands
get-app-info
get-app-info command returns the name of application and its version.
SYNOPSIS
// Request { "command":"get-app-info" } // Response { "success":true|false, "result": { "appName":<application_name_string>, "appVersion":<application_version_string> } }
EXAMPLES
// Request { "command":"get-app-info" } // Response { "success":true, "result": { "appName":"iPi Recorder 3", "appVersion":"99.876.543.210" } }
Recording Commands
set-recorder-props
set-recorder-props command sets properties for setup, background and recording stages.
| Parameter Name | Type | Required / Optional | Allowed Values | Description |
|---|---|---|---|---|
| Arguments | ||||
| Properties for SETUP Stage: | ||||
| videoMode | string | optional |
Available modes depend on camera model. |
Setting RGB video mode. You can see available modes in "Video Mode" combobox at SETUP stage, or get it in the result of get-recorder-props command. |
| audioMode | string | optional |
Available modes depend on microphone model. |
Setting audio mode. You can see available modes in "Audio Mode" combobox at SETUP stage, or get it in the result of get-recorder-props command. |
| globalDeviceProps | JSON object |
Device-specific list of properties visible in “SHARED SETTINGS” section of SETUP stage. | ||
| PlayStation Eye: Darkening for Calibration | string | optional | "None" "Darkening" "Extra Darkening" |
Darkening mode for Sony PS3 Eye cameras |
| screensInRow | number | optional | Integer from 1 to number of cameras |
Setting number of screens in a row for multiple camera video view. |
| screenLayout | string | optional |
For RGB cameras: |
Setting screen layout. |
| Properties for BACKGROUND Stage: | ||||
| backgroundEvaluationDuration | number | optional | Integer number of seconds from 2 to 10 |
Setting duration of background evaluation. |
| backgroundEvaluationStartDelay | number | optional | Integer number of seconds from 0 to 30 |
Setting start delay for background evaluation. |
| showEvaluatedBackground | boolean | optional | true false |
Show background mode on / off. |
| Properties for RECORD Stage: | ||||
| recordingStartDelay | number | optional | Integer number of seconds from 0 to 60 |
Setting start delay for recording. |
| hideBackgroundWhenRecording | boolean | optional | true false |
Show hide background mode on / off. |
| destinationFilePath | string | optional |
Valid file path |
Full path to destination file for recording. |
| colorCompression | string | optional |
"None" |
Setting RGB video compression mode. |
| jpegQuality | number | optional | integer from 0 to 100 |
JPEG quality for JPEG compression. |
| depthCompression | string | optional | "None" "Background subtraction" |
Setting depth compression mode. |
| Result | ||||
| Empty result | ||||
EXAMPLES
// Request { "command":"set-recorder-props", "arguments": { "colorCompression":"jpeg", "globalDeviceProps": { "PlayStation Eye: Darkening for calibration":"None" }, "hideBackgroundWhenRecording":true, "recordingStartDelay":0, "videoMode":"640x480 color @ 50Hz" } } // Response { "success":true }