{ "@apiVersion": "1.1", "name": "CVRHttpExtensionObjectTracking", "properties": { "description": "Continuous video recording and inferencing using HTTP Extension", "parameters": [ { "name": "rtspUserName", "type": "String", "description": "rtsp source user name.", "default": "dummyUserName" }, { "name": "rtspPassword", "type": "String", "description": "rtsp source password.", "default": "dummyPassword" }, { "name": "rtspUrl", "type": "String", "description": "rtsp Url" }, { "name": "inferencingUrl", "type": "String", "description": "inferencing Url", "default": "http://yolov3/score" }, { "name": "inferencingUserName", "type": "String", "description": "inferencing endpoint user name.", "default": "dummyUserName" }, { "name": "inferencingPassword", "type": "String", "description": "inferencing endpoint password.", "default": "dummyPassword" }, { "name": "hubSinkOutputName", "type": "String", "description": "hub sink output name", "default": "inferenceOutput" } ], "sources": [ { "@type": "#Microsoft.VideoAnalyzer.RtspSource", "name": "rtspSource", "transport": "tcp", "endpoint": { "@type": "#Microsoft.VideoAnalyzer.UnsecuredEndpoint", "url": "${rtspUrl}", "credentials": { "@type": "#Microsoft.VideoAnalyzer.UsernamePasswordCredentials", "username": "${rtspUserName}", "password": "${rtspPassword}" } } } ], "processors": [ { "@type": "#Microsoft.VideoAnalyzer.HttpExtension", "name": "httpExtension", "endpoint": { "@type": "#Microsoft.VideoAnalyzer.UnsecuredEndpoint", "url": "${inferencingUrl}", "credentials": { "@type": "#Microsoft.VideoAnalyzer.UsernamePasswordCredentials", "username": "${inferencingUserName}", "password": "${inferencingPassword}" } }, "image": { "scale": { "mode": "pad", "width": "416", "height": "416" }, "format": { "@type": "#Microsoft.VideoAnalyzer.ImageFormatBmp" } }, "inputs": [ { "nodeName": "rtspSource", "outputSelectors": [ { "property": "mediaType", "operator": "is", "value": "video" } ] } ], "samplingOptions": { "skipSamplesWithoutAnnotation": "false", "maximumSamplesPerSecond": "2" } }, { "@type":"#Microsoft.VideoAnalyzer.ObjectTrackingProcessor", "name":"objectTracker", "inputs":[ { "nodeName":"httpExtension" } ] } ], "sinks": [ { "@type": "#Microsoft.VideoAnalyzer.IotHubMessageSink", "name": "hubSink", "hubOutputName": "${hubSinkOutputName}", "inputs": [ { "nodeName": "objectTracker" } ] }, { "@type": "#Microsoft.VideoAnalyzer.VideoSink", "name": "videoSink", "videoName": "sample-cvr-inference-metadata", "inputs": [ { "nodeName": "rtspSource", "outputSelectors": [ { "property": "mediaType", "operator": "is", "value": "video" } ] }, { "nodeName":"objectTracker" } ], "videoCreationProperties": { "title": "sample-cvr-with-inference-metadata", "description": "Sample video recording where inferencing metadata (generated via a HTTP extension and object tracking) is recorded along with media", "segmentLength": "PT30S" }, "localMediaCachePath": "/var/lib/videoanalyzer/tmp/", "localMediaCacheMaximumSizeMiB": "2048" } ] } }