设备网络SDK开发使用手册


<?xml version="1.0" encoding="utf-8"?>
<!--req, 设备报警事件处理能力集描述 -->
<!--req, EventAbility:异常、报警输入输出报警处理能力-->
<!--req, 对于该能力中的ExceptionAlarm、AlarmIn、AlarmOut节点,从设备获取能力,如果设备支持能力按能力解析;
若设备不支持按SDK接口全部显示,即异常类型全部显示,报警输入和报警输出的布防时间段为8,报警输出延时以SDK定义的全值显示。-->

<EventAbility version="2.0">
  <channelNO>1</channelNO><!--req,通道号-->
  <ExceptionAlarm>
    <exceptionType opt="diskFull,diskError,nicBroken,ipConflict,illAccess,videoMismatch,
                   badVideo,recordingFailure,raid,resolutionMismatch,spareException,POEPoweException"/>
    <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
    <!--req,异常联动功能细化,解析到下面能力的,则优先处理按照下面异常报警类型处理;
    没有解析到,则按照上述alarmHandleType 节点处理-->
    <alarmRelateAct opt="ftp,email"/>
    <!--req, 报警联动动作:ftp- 抓图上传FTP, email- Jpeg抓图上传Email-->
    <DetailedExceptionAlarm>
      <DiskFull>
        <!--req, 硬盘满-->
        <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
      </DiskFull>
      <DiskError><!--req, 硬盘错误-->
        <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
      </DiskError>
      <NicBroken><!--req, 网线断-->
        <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
      </NicBroken>
      <IPConflict><!--req, IP冲突-->
        <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
      </IPConflict>
      <IllAccess><!--req, 非法访问-->
        <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
      </IllAccess>
      <BadVideo><!--req, 视频丢失-->
        <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
      </BadVideo>
      <VideoMismatch><!--req, 视频不匹配-->
        <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
      </VideoMismatch>
      <RecordingFailure><!--req, 录像异常-->
        <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
      </RecordingFailure>
      <Raid><!--req, 阵列异常-->
        <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
      </Raid>
      <ResolutionMismatch><!--req, 分辨率不匹配-->
        <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
      </ResolutionMismatch>
      <SpareException><!--req, 热备异常-->
        <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
      </SpareException>
      <TemperatureException><!--req, 温度异常-->
        <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
      </TemperatureException>
      <SubsystemException><!--req, 子系统异常-->
        <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
      </SubsystemException>
      <FanException><!--req, 风扇异常-->
        <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
      </FanException>
   </DetailedExceptionAlarm>
  </ExceptionAlarm>
  <AlarmIn>
    <alarmTime>8</alarmTime>
    <!--req,布防时间段个数-->
    <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp,uploadcloud"/>
    <!--req,处理类型-->
    <notSupportPTZLinkage>true</notSupportPTZLinkage>
    <!--req,之前设备不返回PTZ联动能力,客户端默认显示,现在根据能力动态显示-->
    <RelatePTZ>
      <!--req,之前设备不返回PTZ联动能力具体信息,现在根据能力动态显示-->
      <presetNo  min="" max=""/>
      <!--req,关联支持的预置点号-->
      <CruiseNo  min="" max=""/>
      <!--req,关联支持的巡航路径号-->
      <ptzTrackNo  min="" max=""/>
      <!--req,关联支持的云台的轨迹序号-->
      <presetDurationTime min="0" max="20"/>
      <!--opt,云台预置点停留时间 -->
    </RelatePTZ>
    <inputType opt="switch,signal"/>
    <!--opt,报警输入类型: switch-开关量,signal-脉冲信号-->
    <alarmRelateAct opt="ftp,email"/>
    <!--req, 报警联动动作:ftp- 抓图上传FTP, email- Jpeg抓图上传Email-->
  </AlarmIn>
  <AlarmOut>
    <alarmTime>8</alarmTime>
    <!--req,输出激活时间段个数-->
    <pulseDuration opt="5,10,30,60,120,300,600,manual"/>
    <!--req,报警输出延时,单位:s-->
  </AlarmOut>
  <FaceDetection>
    <!--req,人脸侦测-->
    <detectFaceEnable opt="true,false"/>
    <!--req,是否启用, true-启用,false-不启用-->
    <detectFaceSensitive min="0" max="9"/>
    <!--req,灵敏度-->
    <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp, uploadcloud"/>
    <!--req,处理类型-->
    <triggerRecord>true</triggerRecord >
    <!--req,触发录像, true-支持,false-不支持-->
    <mutexAbility opt="traversingVirtualPlane,fieldDetection"/>
    <!--req,互斥能力越界侦测,区域入侵-->
    <alarmRelateAct opt="ftp,email"/>
    <!--req, 报警联动动作:ftp- 抓图上传FTP, email- Jpeg抓图上传Email-->
  </FaceDetection>
  <Track>
    <!--req,智能跟踪-->
    <trackEnable opt="true,false"/>
    <!--req,支持智能跟踪是否启用配置, true-启用,false-不启用-->
    <stopTrackWhenFindFace opt="true,false"/>
    <!--req发现人脸时,是否停止跟踪-->
    <stopTrackThreshold min="1" max="100"/><!--req停止跟踪阈值,支持该功能必须有该节点-->

    <ManualTrace>
      <!--opt,支持手动跟踪定位,对应结构体NET_DVR_PTZ_MANUALTRACE-->
      <enabled>true</enabled>
      <!--req,若支持该节点必须存在-->
      <trackType opt="normalTrack,highSpeedRoadTrack,urbanRoadTrack"/>
      <!--req, 跟踪类型,支持必须有该节点, 0-普通跟踪normalTrack,1- 高速道路跟踪highSpeedRoadTrack, 2- 城市道路跟踪urbanRoadTrack-->
      <linkageTrack opt="ipd"/>
      <!--opt,"ipd 含义表示联动球机跟踪"-->
    </ManualTrace>
  </Track>
  <VoiceDetection>
    <!--req,声音异常侦测-->
    <enable opt="true,false"/>
    <!--req,是否启用, true-启用,false-不启用-->
    <Abnormal>
      <sensitivityLevel min="1" max="100"/>
      <!--req,灵敏度-->
      <audioMode opt="0,1,2"/>
      <!--req,声音检测模式,0:启用灵敏度检测;1:启用分贝阈值检测,2:灵敏度和阈值检测同时启用-->
      <enable opt="true,false"/>
      <!--req,是否启用, true-启用,false-不启用-->
      <threshold min="1" max="100"/>
      <!--req,声音阈值-->
    </Abnormal>
    <alarmTime>8</alarmTime>
    <!--req,输出激活时间段个数-->
    <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp,uploadcloud"/>
    <!--req,处理类型-->
    <audioSteepDrop>
      <!--声强突变,陡降-->
    <enable opt="true,false"/><!--req,是否启用,true-启用,false-不启用-->
      <sensitivityLevel min="1" max="100"/>
      <!--req,灵敏度-->
    </audioSteepDrop>
  </VoiceDetection >
  <TraversingVirtualPlane>
    <!--req, 越界侦测能力-->
    <enable opt="true,false"/>
    <!--req, false:不使能, true:使能-->
    <enableDualVca opt="true,false"/>
    <!--req, 启用支持智能后检索,是否启用:true-启用,false-不启用-->
    <alertlineNum>8</alertlineNum><!--req,越界侦测支持的最大警戒线个数-->
    <AlertLine>
      <!--req, 根据ALERTLINENum的值,本节点会有相应的个数-->
      <ID>1</ID>
      <crossDirection opt="0,1,2"/>
      <!--req, 警戒面支持的跨越方向: 0-双向,1-从左到右2-从右到左-->
      <sensitivityLevel min="0" max="100"/>
      <!--req, 灵敏度-->
    </AlertLine>
    <alarmTime>8</alarmTime>
    <!--req, 布防时间段个数-->
    <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp,ptztrack,uploadcloud"/>
    <!--req, 处理类型,picture:抓图并邮件(此处由于早期能力缺少uploadftp,后才加上,此处若解析不到该字符串,
    判断是否支持抓图传FTP再解析设备软硬件能力中的UploadFTP节点)-->
    <supportLogNotCfg>true</supportLogNotCfg><!--req, 支持日志但不支持配置,不返回表示既支持配置也支持日志-->
    <holidayTimeSlotNum>8</holidayTimeSlotNum> <!--req,越界侦测支持的假日时间段个数 -->
    <mutexAbility opt="faceDetection,19-1920*1080@50fps,20-1920*1080@60fps,PDC,videoFrameRate50,videoFrameRate60,recordPlan"/>
    <!--req, 互斥能力,人脸侦测、CaptureMode 1920*1080@50fps、CaptureMode 1920*1080@60fps、PDC、videoFrameRate50、videoFrameRate60、计划录像-->
    <recogRuleType opt="vectorMode,slopeMode"/>
    <!--req, 越界侦测的运动方向的判断方式:向量方式还是斜率方式 -->
    <triggerRecord>true</triggerRecord >
    <!--req, 是否启用触发录像功能:true-支持,false-不支持-->
    <alarmRelateAct opt="ftp,email"/>
    <!--req, 报警联动动作:ftp- 抓图上传FTP, email- Jpeg抓图上传Email-->
    <isSupportHumanMisinfoFilter>
      <!--opt, xs:boolean, "是否支持人体去误报功能, 支持返回true, 不支持不返回"-->
    </isSupportHumanMisinfoFilter>
    <isSupportVehicleMisinfoFilter>
      <!--opt, xs:boolean,"是否支持车辆去误报, 支持返回true, 不支持不返回"-->
    </isSupportVehicleMisinfoFilter>
  </TraversingVirtualPlane>
  <FieldDetection>
    <!--req,区域入侵侦测-->
    <enable opt="true,false"/>
    <!--req,false:不使能,true:使能-->
    <enableDualVca opt="true,false"/>
    <!--req启用支持智能后检索,是否启用:true-启用,false-不启用-->
    <intrusiongionNum>8</intrusiongionNum>
    <!--req,区域入侵侦测支持的最大警戒线个数 -->
    <Intrusiongion>
      <!--req,INTRUSIONREGIONNum,本节点会有相应的个数-->
      <ID>1</ID>
      <regionNum min="3" max="10"/>
      <!--req,每个区域入侵侦测支持的有效点个数-->
      <duration min="1" max="100"/>
      <!--req,触发时间阈值-->
      <sensitivityLevel min="0" max="100"/>
      <!--req,灵敏度-->
      <rate min = "0" max = "100"/>
      <!--req, 占比:区域内所有未报警目标尺寸目标占区域面积的比重-->
    </Intrusiongion>
    <alarmTime>8</alarmTime>
    <!--req,布防时间段个数-->
    <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp,ptztrack,uploadcloud"/>
    <!--req,处理类型,picture:抓图并邮件(此处由于早期能力缺少uploadftp,后才加上,此处若解析不到该字符串,判断是否支持抓图传FTP再解析设备软硬件能力中的UploadFTP节点)-->
    <holidayTimeSlotNum>8</holidayTimeSlotNum>
    <!--req,区域入侵侦测支持的假日时间段个数 -->
    <mutexAbility opt="faceDetection,19-1920*1080@50fps,20-1920*1080@60fps,PDC,videoFrameRate50,videoFrameRate60,recordPlan"/>
    <!--req, 互斥能力,人脸侦测、CaptureMode 1920*1080@50fps、CaptureMode 1920*1080@60fps、PDC、videoFrameRate50、videoFrameRate60、计划录像-->
    <triggerRecord>true</triggerRecord >
    <!--req,是否启用触发录像功能:true-支持,false-不支持-->
    <alarmRelateAct opt="ftp,email"/>
    <!--req, 报警联动动作:ftp- 抓图上传FTP, email- Jpeg抓图上传Email-->
    <isSupportHumanMisinfoFilter>
      <!--opt, xs:boolean,"是否支持人体去误报功能, 支持返回true, 不支持不返回"-->
    </isSupportHumanMisinfoFilter>
    <isSupportVehicleMisinfoFilter>
      <!--opt, xs:boolean,"是否支持车辆去误报, 支持返回true, 不支持不返回"-->
    </isSupportVehicleMisinfoFilter>
  </FieldDetection>
  <DefousDetection>
    <!--req,虚焦侦测-->
    <enable opt="true,false"/>
    <!--req,false:不使能,true:使能-->
    <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp,focus"/>
    <!--req,处理类型,picture:抓图并邮件(此处由于早期能力缺少uploadftp,后才加上,此处若解析不到该字符串,判断是否支持抓图传FTP再解析设备软硬件能力中的UploadFTP节点)-->
    <sensitivityLevel min="1" max="100"/>
    <!--req,灵敏度-->
    <alarmRelateAct opt="ftp,email"/>
    <!--req, 报警联动动作:ftp- 抓图上传FTP, email- Jpeg抓图上传Email-->
  </DefousDetection>
  <SceneChangeDetection>
    <!--req,场景变更侦测 -->
    <enable opt="true,false"/>
    <!--req,false:不使能,true:使能 -->
    <sensitiveLevel min="1" max="100"/>
    <!--req,灵敏度-->
    <alarmTime>8</alarmTime>
    <!--req,布防时间段个数-->
    <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp,uploadcloud"/>
    <!--req,处理类型-->
    <sceneChangeDetectionRecord>true</sceneChangeDetectionRecord >
    <!--req关联录像-->
    <alarmRelateAct opt="ftp,email"/>
    <!--req, 报警联动动作:ftp- 抓图上传FTP, email- Jpeg抓图上传Email-->
  </SceneChangeDetection>
  <AudioLimitAlarm>
    <!--req,声音超限报警-->
    <enable opt="true,false"/><!--req,false:不使能,true:使能-->
    <!--req,分贝告警阀值,单位:分贝-->
    <decibelLimit min="50" max="70"/>
    <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
    <!--req,处理类型,picture:抓图并邮件(此处由于早期能力缺少uploadftp,后才加上,此处若解析不到该字符串,判断是否支持抓图传FTP再解析设备软硬件能力中的UploadFTP节点)-->
  </AudioLimitAlarm>
  <ButtonDownAlarm>
    <enable opt="true,false"/>
    <!--req,false:不使能,true:使能-->
    <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
    <!--req,处理类型,picture:抓图并邮件(此处由于早期能力缺少uploadftp,后才加上,此处若解析不到该字符串,判断是否支持抓图传FTP再解析设备软硬件能力中的UploadFTP节点)-->
   </ButtonDownAlarm>
  <VCADetection>
    <!--req, 智能侦测-->
    <enable opt="true,false"/>
    <!--req,false:不使能,true:使能-->
    <alarmTime>8</alarmTime>
    <!--req,布防时间段个数-->
    <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/>
    <!--req,处理类型,picture:抓图并邮件(此处由于早期能力缺少uploadftp,后才加上,此处若解析不到该字符串,
    判断是否支持抓图传FTP再解析设备软硬件能力中的UploadFTP节点)-->
    <preset>true</preset>
    <!--预置点, 不支持则不返回-->
    <cruise>true</cruise>
    <!--巡航点, 不支持则不返回-->
    <ptzTrack>true</ptzTrack >
    <!--云台轨迹, 不支持则不返回-->
    <holidaySched>true</holidaySched>
    <!--假日计划, 不支持则不返回-->
    <alarmRelateAct opt="ftp,email"/>
    <!--req, 报警联动动作:ftp- 抓图上传FTP, email- Jpeg抓图上传Email-->
  </VCADetection>
  <VehicleDetection>
    <DetectVehicleCalibration>
      <!--req,检测车辆标定能力-->
      <widePixels>400</widePixels>
      <highPixels>400</highPixels>
    </DetectVehicleCalibration>
    <TriggerCond>
      <channel min="" max=""/>
      <!--req,通道号-->
      <detSenceID min="" max=""/>
      <!--req,检测场景号-->
      <triggerMode opt="postIOSpeed,postSingleIO,postRS485,postRS485Radar,postVirtualcoil,
                 epoliceIoTrafficLights,epoliceRS485,peRS485,videoEpolice,postMPR,viaVtCoil,ipcHVT"/>
      <!--req,触发模式-->
    </TriggerCond>
    <TriggerCfg>
      <enable opt="disable,enable"/>
      <!--req,是否启用该触发模式-->
      <triggerType opt="postIOSpeed,postSingleIO,postRS485,postRS485Radar,postVirtualcoil,
                 epoliceIoTrafficLights,epoliceRS485,peRS485,videoEpolice,postMPR,viaVtCoil,ipcHVT"/>
      <!--req,触发模式-->
      <TriggerParam>
        <PostMPR>
          <!--req,卡口多帧检测触发参数-->
          <enable opt="disable,enable"/>
          <!--req,使能-->
          <laneNum min="" max=""/>
          <!--req,车道数-->
          <sourceType opt="MPR,IO,RS485"/>
          <!--req,信号触发源-->
          <LaneBoundaryLine>
            <Line>
              <Start>
                <x min="0.001" max="1"/>
                <!--req,X轴坐标, 0.001~1-->
                <y min="0.001" max="1"/>
                <!--req,Y轴坐标, 0.001~1-->
              </Start>
              <End>
                <x min="0.001" max="1"/>
                <!--req,X轴坐标, 0.001~1-->
                <y min="0.001" max="1"/>
                <!--req,Y轴坐标, 0.001~1-->
              </End>
            </Line>
          </LaneBoundaryLine>
          <PlateRecogParam>
            <defaultCHNLen min="0" max="3"/>
            <!--req,设备运行省份的汉字简写字符串长度-->
            <province opt="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,0xff"/>
            <!--req,省份索引-->
            <enable opt="disable,enable"/>
            <!--req,是否启用该区域牌识-->
            <!--req,识别的类型-->
            <RecogMode>
              <plateRecogPos opt="fromFront,fromBack"/>
              <!--req,车牌识别位置,fromFront-正向识别,fromBack-背向识别-->
              <plateRecogType opt="big,little"/>
              <!--req,车牌识别类型,big-大车牌,little-小车牌-->
              <vechileColorRecog opt="true,false"/>
              <!--req,车身颜色识别:0-不采用车身颜色识别,在背向识别或小车牌识别时禁止启用,1-车身颜色识别-->
              <farmVehicleRecog opt="true,false"/>
              <!--req,农用车识别-->
              <blurRecog opt="true,false"/>
              <!--req,模糊识别-->
              <locationType opt="frameLocation,sceneLocation"/>
              <!--req,定位类型,frameLocation-帧定位,sceneLocation-场定位-->
              <recogType opt="frameRecognition,sceneRecognition"/>
              <!--req,识别类型,frameRecognition-帧识别,sceneRecognition-场识别-->
              <recogTime opt="daytime,night"/>
              <!--req,识别时间,daytime-白天,night-晚上-->
              <motorCarRecog opt="true,false"/>
              <!--req,摩托车识别识别-->
              <sceneType opt="epolice,gate"/>
              <!--req,场景类型,EPolice-电警/多帧,gate-卡口-->
              <microPlateRecog opt="true,false"/>
              <!--req,微小车牌识别-->
              <region opt="Res,EU,ER,EUAndCIS"/>
              <!--req,区域索引:0-保留,1-欧洲(EU),2-俄罗斯(ER),3-欧洲&俄罗斯(EU&CIS)  -->
              <platePixelWidthMin min="" max=""/>
              <!--req,车牌识别像素宽度值,对应结构体NET_ITC_PLATE_RECOG_PARAM中的字段wPlatePixelWidthMin-->
              <platePixelWidthMax min="" max=""/>
              <!--req,车牌识别像素宽度值,对应结构体NET_ITC_PLATE_RECOG_PARAM中的字段wPlatePixelWidthMax -->
            </RecogMode>
            <vehicleLogoRecog opt="disable,enable"/>
            <!--req,车标识别-->
          </PlateRecogParam>
          <maxLaneLineNum min="0" max="6"/>
          <!--req,支持的最大车道线数-->
          <LaneParam>
            <laneNO min="" max=""/>
            <!--req,关联车道号-->
            <TssParamInfo>
              <IO>
                <no min="" max=""/>
                <triggerType opt="fallEdge,riseEdge"/>
              </IO>
              <RS485>
                <relateChan min="" max=""/>
              </RS485>
            </TssParamInfo>
            <carDriveDirection opt="unknown,uptodown,downtoup"/>
            <!--车辆行驶方向,unknown-未知,uptodown-下行,downtoup-上行-->
            <LaneLine>
              <Line>
                <Start>
                  <x min="0.001" max="1"/>
                  <!--req,X轴坐标, 0.001~1-->
                  <y min="0.001" max="1"/>
                  <!--req,Y轴坐标, 0.001~1-->
                </Start>
                <End>
                  <x min="0.001" max="1"/>
                  <!--req,X轴坐标, 0.001~1-->
                  <y min="0.001" max="1"/>
                  <!--req,Y轴坐标, 0.001~1-->
                </End>
                <lineType opt="unknown,ordinaryLanes,busLanes,fastLane,slowLane,motorcycleLane,
                        nonmotorVehicleLane,reversedLane,banTrucksLane,mixLane"/>
                <!--req,车道线类型 0-未知,1-车道间的白实线,2-车道停止线,3-单黄线,4-双黄线,
              5-车道线上有护栏,6-车辆无法跨越的车道线,7-虚线-->
              </Line>
            </LaneLine>
            <PlateRecog>
              <pointNum min="3" max="20"/>
              <!--req,有效点 大于等于3,若是3点在一条线上认为是无效区域,线交叉认为是无效区域,最大支持20个点-->
              <Pos>
                <x min="0.001" max="1"/>
                <!--req,X轴坐标, 0.001~1-->
                <y min="0.001" max="1"/>
                <!--req,Y轴坐标, 0.001~1-->
              </Pos>
            </PlateRecog>
          </LaneParam>
          <autoBuildRecogArea>true</autoBuildRecogArea>
          <!--opt,客户端界面自动生成识别区域, SDK接口没有对应的字段信息-->
          <brokenNetHttp>true</brokenNetHttp>
          <!--opt,车辆识别是否支持断网续传-->
          <RodeType>            
            <type opt="entrance,city,custom,alarmInput"/>
            <!--opt,道路类型: entrance-出入口, city-城市道路, custom-自定义, alarmInput-报警输入-->
            <Custom>
              <delayTime min="0" max="15000"/>
              <delayTimeUnit opt="ms"/>
            </Custom>
          </RodeType>
          
          <brokenNetHttp>true</brokenNetHttp>
          <!--opt,车辆识别是否支持断网续传-->
          
          <SnapLine>
            <!--opt, 抓拍线-->
            <Line>
              <Start>
                <x min="0.001" max="1"/>
                <!--req, X轴坐标, 0.001~1-->
                <y min="0.001" max="1"/>
                <!--req, Y轴坐标, 0.001~1-->
              </Start>
              <End>
                <x min="0.001" max="1"/>
                <!--req, X轴坐标, 0.001~1-->
                <y min="0.001" max="1"/>
                <!--req, Y轴坐标, 0.001~1-->
              </End>
            </Line>
          </SnapLine>
        </PostMPR>
      </TriggerParam>
    </TriggerCfg>

    <!--req,抓拍触发模式支持关联布防时间段和上传中心-->
    <GuardCond>
      <channel min="" max=""/>
      <!--req,通道号-->
      <relateType opt="MPR"/>
      <!--req,关联类型-->
    </GuardCond>
    <GuardCfg>
      <detSenceID min="" max=""/>
      <!--req,检测场景号-->
      <alarmSchedDays min="0" max="7"/>
      <!--req,布防天数,最大支持一周7天-->
      <alarmSchedTimes min="0" max="8"/>
      <!--req,布防时间段,最大支持一天8个时间段-->
      <AlarmSched>
        <startHour min="0" max="24"/>
        <!--req,布防开始时间-->
        <startMin min="0" max="60"/>
        <!--req,布防开始时间-->
        <stopHour min="0" max="24"/>
        <!--req,布防结束时间-->
        <stopMin min="0" max="60"/>
        <!--req,布防结束时间-->
      </AlarmSched>
      <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp,focus,PTZ,uploadcloud"/>
      <!--req,处理类型-->
      <maxAlarmOutChannelNum min="0" max="64"/>
      <!--req,设备支持的最大可触发的报警输出通道数-->
      <alarmOutChannelNum min="" max=""/>
      <!--req,当前实际设置的报警触发通道数-->
      <alarmOutTriggeredChannel min="" max=""/>
      <!--req,触发报警通道-->
      <direction>
        <!--opt,xs:string,"both,forward,reverse",触发方向-->
      </direction>
    </GuardCfg>
    
    <OverlapCond>
      <!--req,OSD字符叠加(支持独立图和合成图信息叠加)配置条件能力-->
      <channel min="" max=""/>
      <!--req,通道号-->
      <configMode opt="terminal,camera"/>
      <!--req,配置模式,0-终端,1-前端(直连前端或终端接前端)-->
      <picModeType opt="smallPicture,bigPicture"/>
      <!--req,图片类型;0-表示小图(独立图),1-表示大图(合成图)-->
      <relateType opt="MPR,HVT"/>
      <!--req,没有该节点返回的时候,默认是MPR-->
    </OverlapCond>
    <OverlapCfg>
      <!--req,字符叠加配置参数能力-->
      <enable opt="disable,enable"/>
      <!--req,是否启用,0-不启用,1-启用-->
      <OverlapItemParam>
        <overlapItemNum min="0" max="50"/>
        <!--req,最大字符数为50条-->
        <SingleItem>
          <itemType opt="unknown,place,crossingNo,deviceNo,directionNo,direction,laneNo,lane,captureTime,
                  captureTimeWithMS,plateNo,vehicleColor,vehicleType,vehicleBrand,vehicleSpeed,speedLimitSign,
                  vehicleLength,illegalcode,monitorInfo,illegalActivities,superSpeedRatio,redStartTime,
                  redStopTime,redBrightTime,securityCode,captureNo,safeBelt,monitorNo,sunVisor,laneDirection,
                  licensePlateColor,sceneNumber,sceneName,,yellowSignCar,dangerousCar,carSubBrand,vehicleDirection, validity"/>
          <!--req,字符类型,0-未知,1-地点,2-路口编号,3-设备编号,4-方向编号,5-方向,6-车道号,7-车道,8-抓拍时间(不带毫秒),
        9-抓拍时间(带毫秒),10-车牌号,11-车身颜色,12-车辆类型,13-车辆品牌,14-车辆速度,15-限速标志,16-车辆长度1~99m,
        17-违法代码(违法代码叠加应该没用的,应该直接叠加违法信息,比如正常、低速、超速、逆行、闯红灯、占道、压黄线等),
        18-监测点信息,19-违法行为,20-超速比,21-红灯开始时间,22-灯结束时间,23-红灯已亮时间,24-防伪码,25-抓拍编号,
        26-安全带,27-监测点编号, 28-遮阳板,29-车道行驶方向,30-车牌颜色,31-场景编号,32-场景名称,33-黄标车,34-危险品车,35-车辆子品牌,36-车辆方向,38-置信度-->
          <changeLineNum min="0" max="10"/>
          <!--req,叠加项后的换行数[0-10](默认0)-->
          <spaceNum min="0" max="255"/>
          <!--req,叠加项后的空格数[0-255](默认0)-->
          <enablePos opt="0,1 "/>
          <!--req,是否启用坐标显示,0-不显示,1-显示-->
          <startPosTop min="0" max="2448"/>
          <!--req,起始上坐标,只对图片内部叠加有效[0~2448](默认0)-->
          <startPosLeft min="0" max="2448"/>
          <!--req,起始左坐标,只对图片内部叠加有效[0~2448](默认0)-->
        </SingleItem>
        <linePercent min="0" max="100"/>
        <!--req,叠加行百分比(0-100),(默认100)-->
        <itemsStlye opt="0,1"/>
        <!--req,叠加方式:0-横排,1-竖排(默认横排)-->
        <startPosTop min="0" max="2448"/>
        <!--req,起始上坐标,只对图片内部叠加有效[0~2448](默认0)-->
        <startPosLeft min="0" max="2448"/>
        <!--req,起始左坐标,只对图片内部叠加有效[0~2448](默认0)-->
        <charStyle opt="0,1"/>
        <!--req,字体类型,0-宋体1-魏体(默认)-->
        <charSize min="" max=""/>
        <!--req,字符长度-->
        <charInterval min="0" max=""/>
        <!--req,字符间距,[0~16],可设单位:像素(默认)-->
        <foreClorRGB opt="B,G,R,White"/>
        <!--req,前景色的RGB值 bit0-7:(B) bit8-15:(G) bit16-23:(R) (默认0x00FFFFFF-白)-->
        <backClorRGB opt="B,G,R,Black"/>
        <!--req,背景色的RGB值,只对图片外叠加有效bit0-7:(B) bit8-15:(G) bit16-23:(R) (默认x00000000-黑-->
        <colorAdapt opt="disable,enable"/>
        <!--req,颜色是否自适应0-否1-是-->
        <paramFillZeroEnble opt="disable,enable"/>
        <!--req,参数补零使能 0-补零, 1-不补零(详细注释)速度,限速值 不足3位补0-->
        <plateLeftCornerEnable opt="disable,enable"/>
        <!--req,车牌小图叠加左上角使能 0-不叠加, 1-叠加-->
        <startSPicPosTop min="0" max="2448"/>
        <!--req,起始上坐标,只对图片内部叠加有效[0~2448](默认0)-->
        <startSPicPosLeft min="0" max="2448"/>
        <!--req,起始左坐标,只对图片内部叠加有效[0~2448](默认0)-->
        <osdLocate opt="inside,upper,lower"/>
        <!--req,OSD叠加位置  0-图片内,1-图片上边缘,2-图片下边缘(合成图专用的是上边缘外)-->
      </OverlapItemParam>
      <OverlapInfoParam>
        <siteLen min="0" max="128"/>
        <!--req,地点描述长度-->
        <roadNumLen min="0" max="32"/>
        <!--req,路口编号长度-->
        <instrumentNumLen min="0" max="32"/>
        <!--req,设备编号长度-->
        <directionLen min="0" max="32"/>
        <!--req,方向编号长度-->
        <directionDescLen min="0" max="32"/>
        <!--req,方向描述长度-->
        <laneDesLen min="0" max="32"/>
        <!--req,车道描述长度-->
        <monitoringSite1Len min="0" max="44"/>
        <!--req,监测点1信息长度-->
        <monitoringSite2Len min="0" max="32"/>
        <!--req,监测点2信息长度-->
      </OverlapInfoParam>
    </OverlapCfg>

    <!--req,监测点参数配置-->
    <MonitorCfg>
      <deviceType opt="camera,coilTriggeringCamera,videoAnalysisCamera,ITC"/>
      <!--req,设备类型,0-监控用相机;1-线圈触发相机;2-视频分析用相机,3-一体机(ITC)-->
      <monitoringSiteIDLen min="0" max="48"/>
      <!--req,监测点编号长度-->
      <deviceIDLen min="0" max="48"/>
      <!--req,设备编号长度-->
      <directionNo min="" max=""/>
      <!--req,监测方向编号-->
      <monitoringSInfoLen min="0" max="48"/>
      <!--req,监测点信息描述长度-->
    </MonitorCfg>

    <!--req,手动触发抓拍-->
    <ManualSnap>
      <enabled opt="disable,enable"/>
      <!--req, 是否支持手动触发抓拍,不支持不显示-->
      <osdEnable opt="disable,enable"/>
      <!--req,OSD使能 false-不关闭(默认),true-关闭-->
    </ManualSnap>

    <!--req,抓拍图片参数配置-->
    <SnapPicInfoCfg>
      <picSize min="64" max="2048"/>
      <!--req,图片大小[64k,2048k]-->
      <picQuality min="1" max="100"/>
      <!--req,图片质量[1,100]-->
    </SnapPicInfoCfg>
    <mutexAbility opt="stream3,hvtVehicleDetection,heatMap"/>
    <!--req,互斥能力:stream3(码流3)、混行车辆检测、热度图 -->
  </VehicleDetection>
  <HVTVehicleDetection>
    <DetectVehicleCalibration>
      <!--req,检测车辆标定能力-->
      <widePixels>400</widePixels>
      <highPixels>400</highPixels>
    </DetectVehicleCalibration>
    <TriggerCond>
      <channel min="" max=""/>
      <!--req 通道号-->
      <detSenceID min="" max=""/>
      <!--req 检测场景号-->
      <triggerMode opt="postIOSpeed,postSingleIO,postRS485,postRS485Radar,postVirtualcoil,epoliceIoTrafficLights,
                 epoliceRS485,peRS485,videoEpolice,postMPR,viaVtCoil,ipcHVT"/>
      <!--req, 触发模式-->
    </TriggerCond>
    <TriggerCfg>
      <enable opt="disable,enable"/>
      <!--req,是否启用该触发模式-->
      <triggerType opt="postIOSpeed,postSingleIO,postRS485,postRS485Radar,postVirtualcoil,epoliceIoTrafficLights,
                 epoliceRS485,peRS485,videoEpolice,postMPR,viaVtCoil,ipcHVT"/>
      <!--req, 触发模式 -->
      <TriggerParam>
        <PostIPCHVT>
          <enable opt="disable,enable"/>
          <!--req,使能-->
          <laneNum min="" max=""/>
          <!--req,车道数-->
          <LaneBoundaryLine>
            <Line>
              <Start>
                <x min="0.001" max="1"/>
                <!--req, X轴坐标, 0.001~1-->
                <y min="0.001" max="1"/>
                <!--req, Y轴坐标, 0.001~1-->
              </Start>
              <End>
                <x min="0.001" max="1"/>
                <!--req, X轴坐标, 0.001~1-->
                <y min="0.001" max="1"/>
                <!--req, Y轴坐标, 0.001~1-->
              </End>
            </Line>
          </LaneBoundaryLine>
          <PlateRecogParam>
            <defaultCHNLen min="0" max="3"/>
            <!--req, 设备运行省份的汉字简写字符串长度-->
            <province opt="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,0xff"/>
            <!--req 省份索引-->
            <enable opt="disable,enable"/>
            <!--req, 是否启用该区域牌识-->
            <!--识别的类型-->
            <RecogMode>
              <plateRecogPos opt="fromFront,fromBack"/>
              <!--车牌识别位置,fromFront-正向识别,fromBack-背向识别-->
              <plateRecogType opt="big,little"/>
              <!--车牌识别类型,big-大车牌,little-小车牌-->
              <vechileColorRecog opt="true,false"/>
              <!--车身颜色识别:0-不采用车身颜色识别,在背向识别或小车牌识别时禁止启用,1-车身颜色识别-->
              <farmVehicleRecog opt="true,false"/>
              <!--农用车识别-->
              <blurRecog opt="true,false"/>
              <!--模糊识别-->
              <locationType opt="frameLocation,sceneLocation"/>
              <!--定位类型,frameLocation-帧定位,sceneLocation-场定位-->
              <recogType opt="frameRecognition,sceneRecognition"/>
              <!--识别类型,frameRecognition-帧识别,sceneRecognition-场识别-->
              <recogTime opt="daytime,night"/>
              <!--识别时间,daytime-白天,night-晚上-->
              <motorCarRecog opt="true,false"/>
              <!--摩托车识别识别-->
              <sceneType opt="epolice,gate"/>
              <!--场景类型,EPolice-电警/多帧,gate-卡口-->
              <microPlateRecog opt="true,false"/>
              <!--微小车牌识别-->
              <region opt="Res,EU,ER"/>
              <!--req,区域索引:0-保留,1-欧洲(EU),2-俄罗斯(ER)-->
            </RecogMode>
            <vehicleLogoRecog opt="disable,enable"/>
            <!--车标识别-->
          </PlateRecogParam>
          <maxLaneLineNum min="0" max="6"/>
          <!--req支持的最大车道线数-->
          <LaneParam>
            <laneNO min="" max=""/>
            <!--req 关联车道号-->
            <carDriveDirection opt="unknown,uptodown,downtoup"/>
            <!--车辆行驶方向,unknown-未知,uptodown-下行,downtoup-上行-->
            <LaneLine>
              <Line>
                <Start>
                  <x min="0.001" max="1"/>
                  <!--req X轴坐标, 0.001~1-->
                  <y min="0.001" max="1"/>
                  <!--req Y轴坐标, 0.001~1-->
                </Start>
                <End>
                  <x min="0.001" max="1"/>
                  <!--req X轴坐标, 0.001~1-->
                  <y min="0.001" max="1"/>
                  <!--req Y轴坐标, 0.001~1-->
                </End>
              </Line>
            </LaneLine>
            <PlateRecog>
              <!--req, 牌识区域-->
              <pointNum min="3" max="20"/>
              <!--req, 有效点,大于等于3,若是3点在一条线上认为是无效区域,线交叉认为是无效区域,最大支持20个点-->
              <Pos>
                <x min="0.001" max="1"/>
                <!--req, X轴坐标, 0.001~1-->
                <y min="0.001" max="1"/>
                <!--req, Y轴坐标, 0.001~1-->
              </Pos>
            </PlateRecog>
          </LaneParam>
          <SnapLine>
            <!--opt, 抓拍线-->
            <Line>
              <Start>
                <x min="0.001" max="1"/>
                <!--req X轴坐标, 0.001~1-->
                <y min="0.001" max="1"/>
                <!--req, Y轴坐标, 0.001~1-->
              </Start>
              <End>
                <x min="0.001" max="1"/>
                <!--req, X轴坐标, 0.001~1-->
                <y min="0.001" max="1"/>
                <!--req, Y轴坐标, 0.001~1-->
              </End>
            </Line>
          </SnapLine>
        </PostIPCHVT>
      </TriggerParam>
    </TriggerCfg>

    <!--req,抓拍触发模式支持关联布防时间段和上传中心-->
    <GuardCond>
      <channel min="" max=""/>
      <!--req,通道号-->
      <relateType opt="MPR"/>
      <!--req,关联类型-->
    </GuardCond>
    <GuardCfg>
      <detSenceID min="" max=""/>
      <!--req,检测场景号-->
      <alarmSchedDays min="0" max="7"/>
      <!--req,布防天数,最大支持一周7天-->
      <alarmSchedTimes min="0" max="8"/>
      <!--req,布防时间段,最大支持一天8个时间段-->
      <AlarmSched>
        <startHour min="0" max="24"/>
        <!--req,布防开始时间-->
        <startMin min="0" max="60"/>
        <!--req,布防开始时间-->
        <stopHour min="0" max="24"/>
        <!--req,布防结束时间-->
        <stopMin min="0" max="60"/>
        <!--req,布防结束时间-->
      </AlarmSched>
      <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp,focus,PTZ"/>
      <!--req,处理类型-->
      <maxAlarmOutChannelNum min="0" max="64"/>
      <!--req, 设备支持的最大可触发的报警输出通道数-->
      <alarmOutChannelNum min="" max=""/>
      <!--req, 当前实际设置的报警触发通道数-->
      <alarmOutTriggeredChannel min="" max=""/>
      <!--req, 触发报警通道-->
      <direction>
        <!--opt,xs:string,"both,forward,reverse",触发方向-->
      </direction>
    </GuardCfg>

    <!--req,OSD字符叠加(支持独立图和合成图信息叠加)-->
    <OverlapCond>
      <channel min="" max=""/>
      <!--req 通道号-->
      <configMode opt="terminal,camera"/>
      <!--req 配置模式,0-终端,1-前端(直连前端或终端接前端)-->
      <picModeType opt="smallPicture,bigPicture"/>
      <!--req 图片类型;0-表示小图(独立图),1-表示大图(合成图)-->
      <relateType opt="MPR,HVT"/>
      <!-- 没有该节点返回的时候,默认是MPR-->
    </OverlapCond>
    <OverlapCfg>
      <enable opt="disable,enable"/>
      <!--req 是否启用,0-不启用,1-启用-->
      <OverlapItemParam>
        <overlapItemNum min="0" max="50"/>
        <!--req 最大字符数为50条-->
        <SingleItem>
          <itemType opt="unknown,place,crossingNo,deviceNo,directionNo,direction,laneNo,lane,
                  captureTime,captureTimeWithMS,plateNo,vehicleColor,vehicleType,vehicleBrand,
                  vehicleSpeed,speedLimitSign,vehicleLength,illegalcode,monitorInfo,illegalActivities,
                  superSpeedRatio,redStartTime,redStopTime,redBrightTime,securityCode,captureNo,
                  safeBelt,monitorNo,sunVisor,laneDirection,licensePlateColor,sceneNumber,sceneName,
                  vehicleDirection,validity"/>
          <!--req 字符类型,0-未知,1-地点,2-路口编号,3-设备编号,4-方向编号,5-方向,6-车道号,7-车道,
          8-抓拍时间(不带毫秒),9-抓拍时间(带毫秒),10-车牌号,11-车身颜色,12-车辆类型,13-车辆品牌,
          14-车辆速度,15-限速标志,16-车辆长度1~99m,17-违法代码(违法代码叠加应该没用的,应该直接叠加违法信息,
          比如正常、低速、超速、逆行、闯红灯、占道、压黄线等),18-监测点信息,19-违法行为,20-超速比,
          21-红灯开始时间,22-灯结束时间,23-红灯已亮时间,24-防伪码,25-抓拍编号,26-安全带,27-监测点编号,
          28-遮阳板,29-车道行驶方向,30-车牌颜色,31-场景编号,32-场景名称,36-车辆方向,38-置信度-->
          <changeLineNum min="0" max="10"/>
          <!--req 叠加项后的换行数[0-10](默认0)-->
          <spaceNum min="0" max="255"/>
          <!--req 叠加项后的空格数[0-255](默认0)-->
          <enablePos opt="0,1 "/>
          <!--req 是否启用坐标显示,0-不显示,1-显示-->
          <startPosTop min="0" max="2448"/>
          <!--req 起始上坐标,只对图片内部叠加有效[0~2448](默认0)-->
          <startPosLeft min="0" max="2448"/>
          <!--req 起始左坐标,只对图片内部叠加有效[0~2448](默认0)-->
        </SingleItem>
        <linePercent min="0" max="100"/>
        <!--req 叠加行百分比(0-100),(默认100)-->
        <itemsStlye opt="0,1"/>
        <!--req 叠加方式:0-横排,1-竖排(默认横排)-->
        <startPosTop min="0" max="2448"/>
        <!--req 起始上坐标,只对图片内部叠加有效[0~2448](默认0)-->
        <startPosLeft min="0" max="2448"/>
        <!--req 起始左坐标,只对图片内部叠加有效[0~2448](默认0)-->
        <charStyle opt="0,1"/>
        <!--req 字体类型,0-宋体1-魏体(默认)-->
        <charSize min="" max=""/>
        <!--req 字符长度-->
        <charInterval min="0" max=""/>
        <!--req 字符间距,[0~16],可设单位:像素(默认)-->
        <foreClorRGB opt="B,G,R,White"/>
        <!--req 前景色的RGB值 bit0-7:(B) bit8-15:(G) bit16-23:(R) (默认0x00FFFFFF-白)-->
        <backClorRGB opt="B,G,R,Black"/>
        <!--req 背景色的RGB值,只对图片外叠加有效bit0-7:(B) bit8-15:(G) bit16-23:(R) (默认x00000000-黑-->
        <colorAdapt opt="disable,enable"/>
        <!--req 颜色是否自适应0-否1-是-->
        <paramFillZeroEnble opt="disable,enable"/>
        <!--req 参数补零使能 0-补零, 1-不补零(详细注释)速度,限速值 不足3位补0-->
        <plateLeftCornerEnable opt="disable,enable"/>
        <!--req 车牌小图叠加左上角使能 0-不叠加, 1-叠加-->
        <startSPicPosTop min="0" max="2448"/>
        <!--req 起始上坐标,只对图片内部叠加有效[0~2448](默认0)-->
        <startSPicPosLeft min="0" max="2448"/>
        <!--req 起始左坐标,只对图片内部叠加有效[0~2448](默认0)-->
        <osdLocate opt="inside,upper,lower"/>
        <!--req OSD叠加位置  0-图片内,1-图片上边缘,2-图片下边缘(合成图专用的是上边缘外)-->
      </OverlapItemParam>
      <OverlapInfoParam>
        <siteLen min="0" max="128"/>
        <!--req, 地点描述长度-->
        <roadNumLen min="0" max="32"/>
        <!--req, 路口编号长度-->
        <instrumentNumLen min="0" max="32"/>
        <!--req, 设备编号长度-->
        <directionLen min="0" max="32"/>
        <!--req, 方向编号长度-->
        <directionDescLen min="0" max="32"/>
        <!--req, 方向描述长度-->
        <laneDesLen min="0" max="32"/>
        <!--req, 车道描述长度-->
        <monitoringSite1Len min="0" max="44"/>
        <!--req, 监测点1信息长度-->
        <monitoringSite2Len min="0" max="32"/>
        <!--req, 监测点2信息长度-->
      </OverlapInfoParam>
    </OverlapCfg>

    <!--req,监测点参数配置-->
    <MonitorCfg>
      <deviceType opt="camera,coilTriggeringCamera,videoAnalysisCamera,ITC"/>
      <!--req, 设备类型,0-监控用相机;1-线圈触发相机;2-视频分析用相机,3-一体机(ITC)-->
<monitoringSiteIDLen min="0" max="48"/><!--req 监测点编号长度-->
      <deviceIDLen min="0" max="48"/>
      <!--req, 设备编号长度-->
      <directionNo min="" max=""/>
      <!--req, 监测方向编号-->
      <monitoringSInfoLen min="0" max="48"/>
      <!--req, 监测点信息描述长度-->
    </MonitorCfg>

    <!--req,手动触发抓拍-->
    <ManualSnap>
      <enabled opt="disable,enable"/>
      <!--req, 是否支持手动触发抓拍,不支持不显示-->
      <osdEnable opt="disable,enable"/>
      <!--req, OSD使能 false-不关闭(默认),true-关闭-->
    </ManualSnap>

    <!--req,抓拍图片参数配置-->
    <SnapPicInfoCfg>
      <picSize min="64" max="2048"/>
      <!--req 图片大小[64k,2048k]-->
      <picQuality min="1" max="100"/>
      <!--req 图片质量[1,100]-->
    </SnapPicInfoCfg>
    <mutexAbility opt="stream3,vehicleDetection"/>
    <!--req 互斥能力:stream3(码流3), 混行车辆检测 -->
  </HVTVehicleDetection>
  <!--req,默认支持获取当前触发模式,返回该节点则表示设备,支持功能细化,界面显示按照能力-->
  <CurVehicleDetection>
    <getCfg>true</getCfg>
    <setCfg>true</setCfg>
  </CurVehicleDetection>

</EventAbility>