微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Java Onvif Soup 响应“具有请求名称的分析模块不存在”

如何解决Java Onvif Soup 响应“具有请求名称的分析模块不存在”

我尝试使用 Onvif 协议更改运动检测中的 activeCells。我成功获得“VideoAnalyticsConfiguration”并更改参数,然后通过“SetVideoAnalyticsConfiguration”发布。但是肥皂消息告诉我:

<env:Reason><env:Text xml:lang="en">The analytics module with the requested name does not exist</env:Text>

我使用函数

List<VideoAnalyticsConfiguration> compatibleVideoAnalyticsConfigurations = mediaDevices.getCompatibleVideoAnalyticsConfigurations(profiletoken);
VideoAnalyticsConfiguration videoAnalyticsConfiguration = compatibleVideoAnalyticsConfigurations.get(0);
mediaDevices.setVideoAnalyticsConfiguration(videoAnalyticsConfiguration)

我的请求汤消息:

Request SOAP Message (SetVideoAnalyticsConfiguration): <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><env:Header><wsse:Security><wsse:Usernametoken><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">hz9KPmwtQQfnvZMG35TwS0wJ0bE=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">NjU4NzM1Mzk4</wsse:Nonce><wsu:Created>2021-04-29T10:46:37Z</wsu:Created></wsse:Usernametoken></wsse:Security></env:Header><env:Body><ns2:SetVideoAnalyticsConfiguration xmlns:ns2="http://www.onvif.org/ver10/media/wsdl" xmlns:ns3="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns4="http://www.onvif.org/ver10/schema" xmlns:ns5="http://docs.oasis-open.org/wsn/b-2" xmlns:ns6="http://www.w3.org/2005/08/addressing" xmlns:ns7="http://docs.oasis-open.org/wsrf/bf-2" xmlns:ns8="http://docs.oasis-open.org/wsn/t-1" xmlns:ns9="http://www.w3.org/2004/08/xop/include" xmlns:xmime="http://www.w3.org/2005/05/xmlmime"><ns2:Configuration token="VideoAnalyticsToken"><ns4:Name>VideoAnalyticsName</ns4:Name><ns4:UseCount>3</ns4:UseCount><ns4:AnalyticsEngineConfiguration><ns4:AnalyticsModule Name="xxxxxx"><ns4:Parameters><ns4:SimpleItem Name="Sensitivity" Value="50"/><ns4:ElementItem Name="Layout"><tt:CellLayout xmlns:tt="http://www.onvif.org/ver10/schema" Columns="22" Rows="18"><tt:Transformation><tt:Translate x="-1.000000" y="-1.000000"/><tt:Scale x="0.090909" y="0.111111"/>
</tt:Transformation>
</tt:CellLayout></ns4:ElementItem></ns4:Parameters></ns4:AnalyticsModule><ns4:AnalyticsModule Name="MyLineDetectorModule"><ns4:Parameters><ns4:SimpleItem Name="Sensitivity" Value="87"/><ns4:ElementItem Name="Layout"><tt:Transformation xmlns:tt="http://www.onvif.org/ver10/schema"><tt:Translate x="-1.000000" y="-1.000000"/><tt:Scale x="0.002000" y="0.002000"/>
</tt:Transformation></ns4:ElementItem><ns4:ElementItem Name="Field"><tt:polygonConfiguration xmlns:tt="http://www.onvif.org/ver10/schema"><tt:polygon><tt:Point x="0" y="0"/><tt:Point x="0" y="1000"/><tt:Point x="1000" y="1000"/><tt:Point x="1000" y="0"/>
</tt:polygon>
</tt:polygonConfiguration></ns4:ElementItem></ns4:Parameters></ns4:AnalyticsModule><ns4:AnalyticsModule Name="MyFieldDetectorModule"><ns4:Parameters><ns4:SimpleItem Name="Sensitivity" Value="100"/><ns4:ElementItem Name="Layout"><tt:Transformation xmlns:tt="http://www.onvif.org/ver10/schema"><tt:Translate x="-1.000000" y="-1.000000"/><tt:Scale x="0.002000" y="0.002000"/>
</tt:Transformation></ns4:ElementItem><ns4:ElementItem Name="Field"><tt:polygonConfiguration xmlns:tt="http://www.onvif.org/ver10/schema"><tt:polygon><tt:Point x="0" y="0"/><tt:Point x="0" y="1000"/><tt:Point x="1000" y="1000"/><tt:Point x="1000" y="0"/>
</tt:polygon>
</tt:polygonConfiguration></ns4:ElementItem></ns4:Parameters></ns4:AnalyticsModule><ns4:AnalyticsModule Name="MyTamperDetecModule"><ns4:Parameters><ns4:SimpleItem Name="Sensitivity" Value="100"/><ns4:ElementItem Name="Transformation"><tt:Transformation xmlns:tt="http://www.onvif.org/ver10/schema"><tt:Translate x="-1.000000" y="-1.000000"/><tt:Scale x="0.002841" y="0.003472"/>
</tt:Transformation></ns4:ElementItem><ns4:ElementItem Name="Field"><tt:polygonConfiguration xmlns:tt="http://www.onvif.org/ver10/schema"><tt:polygon><tt:Point x="0" y="0"/><tt:Point x="0" y="576"/><tt:Point x="704" y="576"/><tt:Point x="704" y="0"/>
</tt:polygon>
</tt:polygonConfiguration></ns4:ElementItem></ns4:Parameters></ns4:AnalyticsModule><ns4:AnalyticsModule Name="MyCountAggregationModule"><ns4:Parameters><ns4:SimpleItem Name="Sensitivity" Value="0"/><ns4:ElementItem Name="Layout"><tt:Transformation xmlns:tt="http://www.onvif.org/ver10/schema"><tt:Translate x="-1.000000" y="-1.000000"/><tt:Scale x="0.002000" y="0.002000"/>
</tt:Transformation></ns4:ElementItem><ns4:ElementItem Name="Field"><tt:polygonConfiguration xmlns:tt="http://www.onvif.org/ver10/schema"><tt:polygon><tt:Point x="0" y="0"/><tt:Point x="0" y="1000"/><tt:Point x="1000" y="1000"/><tt:Point x="1000" y="0"/>
</tt:polygon>
</tt:polygonConfiguration></ns4:ElementItem></ns4:Parameters></ns4:AnalyticsModule></ns4:AnalyticsEngineConfiguration><ns4:RuleEngineConfiguration><ns4:Rule Name="MyMotionDetectorRule"><ns4:Parameters><ns4:SimpleItem Name="MinCount" Value="5"/><ns4:SimpleItem Name="AlarmOnDelay" Value="1000"/><ns4:SimpleItem Name="AlarmOffDelay" Value="1000"/><ns4:SimpleItem Name="ActiveCells" Value="zwA="/></ns4:Parameters></ns4:Rule><ns4:Rule Name="MyLineDetector1"><ns4:Parameters><ns4:SimpleItem Name="Direction" Value="Any"/><ns4:ElementItem Name="Segments"><ns4:polyline><ns4:Point x="500.0" y="250.0"/><ns4:Point x="501.0" y="823.0"/></ns4:polyline></ns4:ElementItem></ns4:Parameters></ns4:Rule><ns4:Rule Name="MyFieldDetector1"><ns4:Parameters><ns4:ElementItem Name="Field"><ns4:polygon><ns4:Point x="117.0" y="823.0"/><ns4:Point x="872.0" y="808.0"/><ns4:Point x="843.0" y="147.0"/><ns4:Point x="125.0" y="185.0"/></ns4:polygon></ns4:ElementItem></ns4:Parameters></ns4:Rule><ns4:Rule Name="MyTamperDetectorRule"><ns4:Parameters><ns4:ElementItem Name="Field"><tt:polygonConfiguration xmlns:tt="http://www.onvif.org/ver10/schema"><tt:polygon><tt:Point x="417" y="14"/><tt:Point x="685" y="14"/><tt:Point x="685" y="338"/><tt:Point x="417" y="338"/>
</tt:polygon>
</tt:polygonConfiguration></ns4:ElementItem></ns4:Parameters></ns4:Rule><ns4:Rule Name="MyCountAggregation1"><ns4:Parameters><ns4:SimpleItem Name="ReportTimeInterval" Value="PT15M"/><ns4:SimpleItem Name="ResetTimeInterval" Value="PT30M"/><ns4:SimpleItem Name="Direction" Value="Right"/><ns4:ElementItem Name="Linesegments"><tt:polylineArrayConfiguration xmlns:tt="http://www.onvif.org/ver10/schema"><tt:polylineArray><tt:polyline><tt:Point x="0.000000" y="1000.000000"/><tt:Point x="0.000000" y="1000.000000"/><tt:Point x="0.000000" y="1000.000000"/><tt:Point x="0.000000" y="1000.000000"/>
</tt:polyline>
</tt:polylineArray>
</tt:polylineArrayConfiguration></ns4:ElementItem></ns4:Parameters></ns4:Rule></ns4:RuleEngineConfiguration></ns2:Configuration><ns2:ForcePersistence>true</ns2:ForcePersistence></ns2:SetVideoAnalyticsConfiguration></env:Body></env:Envelope>

问题出在哪里?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?