XML message about hard hat detection capability
<SafetyHelmetDetectionCap version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema"> <normalizedScreenSize><!--optional, ro, normalized value--> <normalizedScreenWidth> <!--required, xs:integer--> </normalizedScreenWidth> <normalizedScreenHeight> <!--required, xs:integer--> </normalizedScreenHeight> </normalizedScreenSize> <enabled opt="true,false"/><!--optional, xs:boolean, whether to enable the rule: "true"-yes (default), "false"-no--> <SafetyHelmetDetectionRegionList size="8"> <SafetyHelmetDetectionRegion> <id><!--optional, xs:string, ID--></id> <RegionCoordinatesList size=""><!--opt--> <RegionCoordinates><!--opt--> <positionX> <!--required, xs:integer, X-coordinate--> </positionX> <positionY> <!--required, xs:integer, Y-coordinate--> </positionY> </RegionCoordinates> </RegionCoordinatesList> <minRegionCoordinatesNum> <!--optional, minimum number of nodes--> </minRegionCoordinatesNum> <maxRegionCoordinatesNum> <!--optional, maximum number of nodes--> </maxRegionCoordinatesNum> </SafetyHelmetDetectionRegion> </SafetyHelmetDetectionRegionList><!--opt--> <stackTarget opt="true,false"> <!--required, xs:boolean, whether to overlay alarm target frame: "true"-yes, "false"-no--> </stackTarget> <stackRule opt="true,false"> <!--required, xs:boolean, whether to overlay alarm rule frame: "true"-yes, "false"-no--> </stackRule> <alarmLinkageDuration opt="5,10,30,60,120,300,600"> <!--required, xs:string, alarm linkage duration, unit: second--> </alarmLinkageDuration> <ImageParam> <ResolutionList size="3"> <Resolution> <id> <!--required, xs:string--> </id> <name> <!--required, xs:string, opt="1080p, 720p, D1"--> </name> <value> <!--required, xs:string, opt="1920*1080, 1280*720, 740*576"--> </value> </Resolution> </ResolutionList> <quality opt="best,good,general"> <!--required, xs:string, picture quality: "best", "good", "general"-normal--> </quality> <alarmUpload opt="true,false"> <!--required, xs:boolean, whether to upload alarm picture: "true"-yes, "false"-no"--> </alarmUpload> <localStorage opt="true,false"> <!--optional, xs:boolean, whether to store pictures locally: "true"-yes "false"-no--> </localStorage> </ImageParam> <AdvanceConfiguration><!--opt--> <headSensitivity min="1" max="5" def="3"><!--optional, xs:integer, head detection sensitivity, larger value indicates more sensitive detection--></headSensitivity> <humanSensitivity min="1" max="5" def="3"><!--optional, xs:integer, human body detection sensitivity, larger value indicates more sensitive detection--></humanSensitivity> <alarmAnalysisFrame min="1" max="50" def="12"><!--optional, xs:integer, number of frames required for alarm analysis, larger value indicates that more frames are needed to be analyzed and more slowly the alarm will be triggered--></alarmAnalysisFrame> <FDLibList size=""><!--optional, channel's linked face picture library list--> <FDLib><!--list--> <id min="" max=""><!--required, ro, xs:integer, No. of items in the list--></id> <FDID min="" max=""><!--required, ro, xs:string, face picture library ID--></FDID> <thresholdValue min="" max=""><!--optional, xs:integer, similarity threshold for comparison, which is between 0 and 100, the higher the threshold is, the more accurate the comparison is. If the threshold for all libraries is enabled, then threshold for single library will not take effect--></thresholdValue> <customFaceLibID min="" max=""><!--optional, xs:string, custom face picture library ID, custom ID has priority over the FDID--></customFaceLibID> </FDLib> </FDLibList> </AdvanceConfiguration> <SearchDescriptionCap><!--optional, ability of searching for safety helmet event--> <timeSpanMaxNum><!--required, xs:integer, the maximum number of time periods in which search can be conducted simultaneously--></timeSpanMaxNum> <resultMaxNum><!--required, xs:integer, the maximum number of items that can be searched for at a time--></resultMaxNum> <faceContrastResult opt="all,success,failed"><!--required, xs:string, comparison result: all-all are succeeded or failed; success, failed--></faceContrastResult> <FDLibList size=""><!--optional, list library--> <FDLib><!--list--> <FDID min="" max=""><!--required, read-only, xs:string, list library ID--></FDID> </FDLib> </FDLibList> <name min="" max=""><!--optional, xs:string, name; this node is valid when the FDLibList does exist--></name> </SearchDescriptionCap> <videoOverlay><!--video overlay parameters--> <stackTarget opt="true,false"><!--required, xs:boolean, whether to overlay the target frame--></stackTarget> <stackRule opt="true,false"><!--required, xs:boolean, whether to overlay rule frame--></stackRule> </videoOverlay> <analysisMode opt="realTimeMode,autoSwitchMode"> <!--optional, string, ro, analysis mode: "realTimeMode"-real time, "autoSwitchMode"-auto switch. The engine also has its analysis mode (refer to the <analysisMode> node in /ISAPI/Intelligent/analysisEngines/<ID>). The device will be added to the engine with the same analysis mode via the load balancing method. If the engine is not configured correspondingly, this node will be failed to e returned, and the error code of taskNotMatchEngine will be returned-->test </analysisMode> </SafetyHelmetDetectionCap>