Method | Description | |
---|---|---|
FaceDetectionandTracking ( this operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void |
<p>Detects and tracks human faces in a video and returns face locations. <br/>• The supported input video formats include MP4, MOV, and WMV. Video file size should be no larger than 100MB. <br/>• The detectable face size range is 24x24 to 2048x2048 pixels. The faces out of this range will not be detected. <br/>• For each video, the maximum number of faces returned is 64. <br/>• Some faces may not be detected due to technical challenges; e.g. very large face angles (head-pose), and large occlusion. Frontal and near-frontal faces have the best results. <br/>• Output files are deleted after 24 hours. </p>
|
|
FaceDetectionandTrackingAsync ( this operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task |
<p>Detects and tracks human faces in a video and returns face locations. <br/>• The supported input video formats include MP4, MOV, and WMV. Video file size should be no larger than 100MB. <br/>• The detectable face size range is 24x24 to 2048x2048 pixels. The faces out of this range will not be detected. <br/>• For each video, the maximum number of faces returned is 64. <br/>• Some faces may not be detected due to technical challenges; e.g. very large face angles (head-pose), and large occlusion. Frontal and near-frontal faces have the best results. <br/>• Output files are deleted after 24 hours. </p>
|
|
GetOperationResult ( this operations, string oid, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void |
Get operation result. If succeeded, this interface returns a JSON that includes time stamps and operation status. Below is an example: Example JSON: <table class="element table"> <thead> </thead> <tbody> <tr> {<br/> "status": "Running",<br/> "createdDateTime": "2015-09-30T01:28:23.4493273Z",<br/> "lastActionDateTime": "2015-09-30T01:32:23.0895791Z",<br/> }<br/> </tr> </tbody> </table> <br/> <p> Possible values of "status" field are:<br/> <b>Not Started</b> - video content is received/uploaded but the process has not started.<br/> <b>Uploading</b> - the video content is being uploaded by the URL client side provides.<br/> <b>Running</b> - the process is running.<br/> <b>Failed</b> - the process is failed. Detailed information will be provided in "message" field.<br/> <b>Succeeded</b> - the process succeeded. In this case, depending on specific operation client side created, the result can be retrieved in following two ways:<br/> </p> <table class="element table"> <thead> <tr><th>Video Operation</th><th>How to Retrieve Result</th></tr> </thead> <tbody> <tr><td>Stabilization</td><td>The result (as a video file) can be retrieved from the URL specified in <b>resourceLocation</b> field.</td></tr> <tr><td>Face Detection and Tracking<br/>Motion Detection </td><td>The result (as a JSON in string) is available in <b>processingResult</b> field.</td></tr> </tbody> </table>
|
|
GetOperationResultAsync ( this operations, string oid, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task |
Get operation result. If succeeded, this interface returns a JSON that includes time stamps and operation status. Below is an example: Example JSON: <table class="element table"> <thead> </thead> <tbody> <tr> {<br/> "status": "Running",<br/> "createdDateTime": "2015-09-30T01:28:23.4493273Z",<br/> "lastActionDateTime": "2015-09-30T01:32:23.0895791Z",<br/> }<br/> </tr> </tbody> </table> <br/> <p> Possible values of "status" field are:<br/> <b>Not Started</b> - video content is received/uploaded but the process has not started.<br/> <b>Uploading</b> - the video content is being uploaded by the URL client side provides.<br/> <b>Running</b> - the process is running.<br/> <b>Failed</b> - the process is failed. Detailed information will be provided in "message" field.<br/> <b>Succeeded</b> - the process succeeded. In this case, depending on specific operation client side created, the result can be retrieved in following two ways:<br/> </p> <table class="element table"> <thead> <tr><th>Video Operation</th><th>How to Retrieve Result</th></tr> </thead> <tbody> <tr><td>Stabilization</td><td>The result (as a video file) can be retrieved from the URL specified in <b>resourceLocation</b> field.</td></tr> <tr><td>Face Detection and Tracking<br/>Motion Detection </td><td>The result (as a JSON in string) is available in <b>processingResult</b> field.</td></tr> </tbody> </table>
|
|
GetResultVideo ( this operations, string oid, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void |
This interface is used for getting result video content. Currently only Stabilization outputs video content as result. The URL to this interface should be retrieved from <b>resourceLocation</b> field of JSON returned from Get Operation Result interface.
|
|
GetResultVideoAsync ( this operations, string oid, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task |
This interface is used for getting result video content. Currently only Stabilization outputs video content as result. The URL to this interface should be retrieved from <b>resourceLocation</b> field of JSON returned from Get Operation Result interface.
|
|
MotionDetection ( this operations, string sensitivityLevel = default(string), double frameSamplingValue = default(double?), string detectionZones = default(string), bool detectLightChange = default(bool?), double mergeTimeThreshold = default(double?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void |
<p>Detects motion in a video, and returns the frame and duration of the motion that was captured. <br/>• The supported input video formats include MP4, MOV, and WMV. Video file size should be no larger than 100MB. <br/>• User can input detection zones to set up as areas to detect motion. <br/>• User can specify motion sensitivity: high, medium, and low. Higher sensitivity means more motions will be detected at a cost that more false alarms will be reported.<br/>• Motion Detection is optimized for stationary background videos. <br/>• User can specify whether light change events should be detected. A light change refers to a change in the frame that was caused by a light turning off and on. Some developers do not want to detect this, as they consider it a false alarm. Other developers want to make sure they capture any change, light changes included.<br/>• User can specify whether successive motions should be merged together by passing in a parameter (mergeTimeThreshold) For example, if a motion happens from 1 to 4 seconds and the next motion happens from 5 to 10 seconds, some developers will want to count that as one instance of motion.<br/>• User can specify which frames to be detected by passing in a parameter (frameSamplingValue).<br/>• Some motion may not be detected due to technical challenges; e.g. semi-transparent objects, and some small objects. <br/>• Output files are deleted after 24 hours. </p>
|
|
MotionDetectionAsync ( this operations, string sensitivityLevel = default(string), double frameSamplingValue = default(double?), string detectionZones = default(string), bool detectLightChange = default(bool?), double mergeTimeThreshold = default(double?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task |
<p>Detects motion in a video, and returns the frame and duration of the motion that was captured. <br/>• The supported input video formats include MP4, MOV, and WMV. Video file size should be no larger than 100MB. <br/>• User can input detection zones to set up as areas to detect motion. <br/>• User can specify motion sensitivity: high, medium, and low. Higher sensitivity means more motions will be detected at a cost that more false alarms will be reported.<br/>• Motion Detection is optimized for stationary background videos. <br/>• User can specify whether light change events should be detected. A light change refers to a change in the frame that was caused by a light turning off and on. Some developers do not want to detect this, as they consider it a false alarm. Other developers want to make sure they capture any change, light changes included.<br/>• User can specify whether successive motions should be merged together by passing in a parameter (mergeTimeThreshold) For example, if a motion happens from 1 to 4 seconds and the next motion happens from 5 to 10 seconds, some developers will want to count that as one instance of motion.<br/>• User can specify which frames to be detected by passing in a parameter (frameSamplingValue).<br/>• Some motion may not be detected due to technical challenges; e.g. semi-transparent objects, and some small objects. <br/>• Output files are deleted after 24 hours. </p>
|
|
Stabilization ( this operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void |
<p>Smooths and stabilizes a video. <br/>• The supported input video formats include MP4, MOV, and WMV. Video file size should be no larger than 100MB. <br/>• Stabilization is optimized for small camera motions, with or without rolling shutter effects (e.g. holding a static camera, and walking with a slow speed). <br/>• Both width and height of the input video must be even numbers. <br/>• The resolution of the input video should be less than or equal to 2160P (4K, 3840 X 2160). <br/>• Output files are deleted after 24 hours.</p>
|
|
StabilizationAsync ( this operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task |
<p>Smooths and stabilizes a video. <br/>• The supported input video formats include MP4, MOV, and WMV. Video file size should be no larger than 100MB. <br/>• Stabilization is optimized for small camera motions, with or without rolling shutter effects (e.g. holding a static camera, and walking with a slow speed). <br/>• Both width and height of the input video must be even numbers. <br/>• The resolution of the input video should be less than or equal to 2160P (4K, 3840 X 2160). <br/>• Output files are deleted after 24 hours.</p>
|
|
Thumbnail ( this operations, double maxMotionThumbnailDurationInSecs = default(double?), bool outputAudio = default(bool?), bool fadeInFadeOut = default(bool?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void |
Generates a motion thumbnail from a video. The Video Thumbnail API provides an automatic summary for videos to let people see a preview or snapshot quickly. Selection of scenes from a video create a preview in form of a short video. <br/> • The supported input video formats include MP4, MOV, and WMV. Video file size should be no larger than 100MB. <br/> • The number of scenes displayed in the thumbnail is either chosen by the user or defaults to the optimal duration supported by the Video API’s algorithm.<br/> • A scene is a collection of indexed frames. Scenes are mapped according to sequence in video. <br/> • Fade in/fade out effects are included in the thumbnail by default, but can be turned off by the user. <br/> • Audio is included by default, but can be turned off by the user. Pauses in audio are detected to divide video into coherent scenes and avoid breaking sentences of speech.<br/> • Output files are deleted after 24 hours.<br/> <br/> * Optimal Duration of Video Thumbnail Supported by Video API shown in table below. <table class="element table"> <thead> </thead> <tbody> <tr> <td>Motion Thumbnail</td> </tr> <tr> <td>Video duration (d)</td> <td>d < 3min</td> <td>3min < d < 15min</td> <td>15min < d < 30min</td> <td>30min < d</td> </tr> <tr> <td>Thumbnail duration</td> <td>15sec (2-3 scenes)</td> <td>30sec (3-5 scenes)</td> <td>60sec (5-10 scenes)</td> <td>90sec (10-15 scenes)</td> </tr> <tbody> </table>
|
|
ThumbnailAsync ( this operations, double maxMotionThumbnailDurationInSecs = default(double?), bool outputAudio = default(bool?), bool fadeInFadeOut = default(bool?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task |
Generates a motion thumbnail from a video. The Video Thumbnail API provides an automatic summary for videos to let people see a preview or snapshot quickly. Selection of scenes from a video create a preview in form of a short video. <br/> • The supported input video formats include MP4, MOV, and WMV. Video file size should be no larger than 100MB. <br/> • The number of scenes displayed in the thumbnail is either chosen by the user or defaults to the optimal duration supported by the Video API’s algorithm.<br/> • A scene is a collection of indexed frames. Scenes are mapped according to sequence in video. <br/> • Fade in/fade out effects are included in the thumbnail by default, but can be turned off by the user. <br/> • Audio is included by default, but can be turned off by the user. Pauses in audio are detected to divide video into coherent scenes and avoid breaking sentences of speech.<br/> • Output files are deleted after 24 hours.<br/> <br/> * Optimal Duration of Video Thumbnail Supported by Video API shown in table below. <table class="element table"> <thead> </thead> <tbody> <tr> <td>Motion Thumbnail</td> </tr> <tr> <td>Video duration (d)</td> <td>d < 3min</td> <td>3min < d < 15min</td> <td>15min < d < 30min</td> <td>30min < d</td> </tr> <tr> <td>Thumbnail duration</td> <td>15sec (2-3 scenes)</td> <td>30sec (3-5 scenes)</td> <td>60sec (5-10 scenes)</td> <td>90sec (10-15 scenes)</td> </tr> <tbody> </table>
|
public static FaceDetectionandTracking ( this operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void | ||
operations | this | /// The operations group for this extension method. /// |
subscriptionKey | string | /// subscription key in url /// |
ocpApimSubscriptionKey | string | /// subscription key in header /// |
return | void |
public static FaceDetectionandTrackingAsync ( this operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task | ||
operations | this | /// The operations group for this extension method. /// |
subscriptionKey | string | /// subscription key in url /// |
ocpApimSubscriptionKey | string | /// subscription key in header /// |
cancellationToken | System | /// The cancellation token. /// |
return | System.Threading.Tasks.Task |
public static GetOperationResult ( this operations, string oid, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void | ||
operations | this | /// The operations group for this extension method. /// |
oid | string | /// OperationId /// |
subscriptionKey | string | /// subscription key in url /// |
ocpApimSubscriptionKey | string | /// subscription key in header /// |
return | void |
public static GetOperationResultAsync ( this operations, string oid, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task | ||
operations | this | /// The operations group for this extension method. /// |
oid | string | /// OperationId /// |
subscriptionKey | string | /// subscription key in url /// |
ocpApimSubscriptionKey | string | /// subscription key in header /// |
cancellationToken | System | /// The cancellation token. /// |
return | System.Threading.Tasks.Task |
public static GetResultVideo ( this operations, string oid, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void | ||
operations | this | /// The operations group for this extension method. /// |
oid | string | /// |
subscriptionKey | string | /// subscription key in url /// |
ocpApimSubscriptionKey | string | /// subscription key in header /// |
return | void |
public static GetResultVideoAsync ( this operations, string oid, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task | ||
operations | this | /// The operations group for this extension method. /// |
oid | string | /// |
subscriptionKey | string | /// subscription key in url /// |
ocpApimSubscriptionKey | string | /// subscription key in header /// |
cancellationToken | System | /// The cancellation token. /// |
return | System.Threading.Tasks.Task |
public static MotionDetection ( this operations, string sensitivityLevel = default(string), double frameSamplingValue = default(double?), string detectionZones = default(string), bool detectLightChange = default(bool?), double mergeTimeThreshold = default(double?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void | ||
operations | this | /// The operations group for this extension method. /// |
sensitivityLevel | string | /// Specify the detection sensitivity level: “low”, “medium”, “high”. Higher /// sensitivity means more motions will be detected at a cost that more false /// alarms will be reported. The default value is “medium”. /// |
frameSamplingValue | double | /// User may skip frames by setting this parameter. It can be used as a /// tradeoff between performance and cost, skipping frames may reduce /// processing time but result in worse detection performance. The default /// value is 1, meaning detecting motion for every frame. If set to 2, then /// the algorithm will detect one frame for every two frames. The upper bound /// is 20. /// |
detectionZones | string | /// User can setup detection zones by passing in a string like /// “detectionZones=0,0;0.5,0;1,0;1,0.5;1,1;0.5,1;0,1;0,0.5 /// |0.3,0.3;0.55,0.3;0.8,0.3; 0.8,0.55;0.8,0.8;0.55,0.8;0.3,0.8;0.3,0.55;| /// 0,0;1,0;1,1;0,1”, each detection zone is separated by a “|” and each /// point is defined by a “x,y” pair and separated by a “;”. At most 8 /// detection zones are supported and each detection zone should be defined /// by at least 3 points and no more than 16 points. The default setting is /// “detectionZones=0,0;0.5,0;1,0;1,0.5;1,1;0.5,1;0,1;0,0.5”, i.e. the whole /// frame defined by an 8-point polygon. /// |
detectLightChange | bool | /// Specify whether light change events should be detected. The default value /// is false. /// |
mergeTimeThreshold | double | /// Specify the threshold on whether successive motions should be merged /// together, if the interval between successive motions is <= /// mergeTimeThreshold, they will be merged. The default value is 0.0 and /// upper bound is 10.0. /// |
subscriptionKey | string | /// subscription key in url /// |
ocpApimSubscriptionKey | string | /// subscription key in header /// |
return | void |
public static MotionDetectionAsync ( this operations, string sensitivityLevel = default(string), double frameSamplingValue = default(double?), string detectionZones = default(string), bool detectLightChange = default(bool?), double mergeTimeThreshold = default(double?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task | ||
operations | this | /// The operations group for this extension method. /// |
sensitivityLevel | string | /// Specify the detection sensitivity level: “low”, “medium”, “high”. Higher /// sensitivity means more motions will be detected at a cost that more false /// alarms will be reported. The default value is “medium”. /// |
frameSamplingValue | double | /// User may skip frames by setting this parameter. It can be used as a /// tradeoff between performance and cost, skipping frames may reduce /// processing time but result in worse detection performance. The default /// value is 1, meaning detecting motion for every frame. If set to 2, then /// the algorithm will detect one frame for every two frames. The upper bound /// is 20. /// |
detectionZones | string | /// User can setup detection zones by passing in a string like /// “detectionZones=0,0;0.5,0;1,0;1,0.5;1,1;0.5,1;0,1;0,0.5 /// |0.3,0.3;0.55,0.3;0.8,0.3; 0.8,0.55;0.8,0.8;0.55,0.8;0.3,0.8;0.3,0.55;| /// 0,0;1,0;1,1;0,1”, each detection zone is separated by a “|” and each /// point is defined by a “x,y” pair and separated by a “;”. At most 8 /// detection zones are supported and each detection zone should be defined /// by at least 3 points and no more than 16 points. The default setting is /// “detectionZones=0,0;0.5,0;1,0;1,0.5;1,1;0.5,1;0,1;0,0.5”, i.e. the whole /// frame defined by an 8-point polygon. /// |
detectLightChange | bool | /// Specify whether light change events should be detected. The default value /// is false. /// |
mergeTimeThreshold | double | /// Specify the threshold on whether successive motions should be merged /// together, if the interval between successive motions is <= /// mergeTimeThreshold, they will be merged. The default value is 0.0 and /// upper bound is 10.0. /// |
subscriptionKey | string | /// subscription key in url /// |
ocpApimSubscriptionKey | string | /// subscription key in header /// |
cancellationToken | System | /// The cancellation token. /// |
return | System.Threading.Tasks.Task |
public static Stabilization ( this operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void | ||
operations | this | /// The operations group for this extension method. /// |
subscriptionKey | string | /// subscription key in url /// |
ocpApimSubscriptionKey | string | /// subscription key in header /// |
return | void |
public static StabilizationAsync ( this operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task | ||
operations | this | /// The operations group for this extension method. /// |
subscriptionKey | string | /// subscription key in url /// |
ocpApimSubscriptionKey | string | /// subscription key in header /// |
cancellationToken | System | /// The cancellation token. /// |
return | System.Threading.Tasks.Task |
public static Thumbnail ( this operations, double maxMotionThumbnailDurationInSecs = default(double?), bool outputAudio = default(bool?), bool fadeInFadeOut = default(bool?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void | ||
operations | this | /// The operations group for this extension method. /// |
maxMotionThumbnailDurationInSecs | double | /// Specifies maximum duration of output video (in seconds). The default value /// is 0, which indicates the duration will be automatically decided by the /// algorithm. /// |
outputAudio | bool | /// Indicates whether output video should include audio track. The default /// value is true. /// |
fadeInFadeOut | bool | /// Indicates whether output video should have fade in/out effect during scene /// changes. The default value is true. /// |
subscriptionKey | string | /// subscription key in url /// |
ocpApimSubscriptionKey | string | /// subscription key in header /// |
return | void |
public static ThumbnailAsync ( this operations, double maxMotionThumbnailDurationInSecs = default(double?), bool outputAudio = default(bool?), bool fadeInFadeOut = default(bool?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task | ||
operations | this | /// The operations group for this extension method. /// |
maxMotionThumbnailDurationInSecs | double | /// Specifies maximum duration of output video (in seconds). The default value /// is 0, which indicates the duration will be automatically decided by the /// algorithm. /// |
outputAudio | bool | /// Indicates whether output video should include audio track. The default /// value is true. /// |
fadeInFadeOut | bool | /// Indicates whether output video should have fade in/out effect during scene /// changes. The default value is true. /// |
subscriptionKey | string | /// subscription key in url /// |
ocpApimSubscriptionKey | string | /// subscription key in header /// |
cancellationToken | System | /// The cancellation token. /// |
return | System.Threading.Tasks.Task |