I have a Hikvision IP Camera with built in people counting application. I am trying to build an desktop/web application, which read the number of people passed and process it. I just wanna know how can i catch the number of these people, no mater with what programming language. Camera model is Hikvision iDS-2CD6412FWD/C. Any answer matter. Thank you.
So the endpoint is:
/ISAPI/System/Video/inputs/channels/1/counting/search
and the xml body is:
<?xml version="1.0" encoding="utf-16"?>
<countingStatisticsDescription xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<reportType>daily</reportType>
<timeSpanList>
<timeSpan>
<startTime>2017-05-03T00:00:00</startTime>
<endTime>2017-05-03T23:59:59</endTime>
</timeSpan>
</timeSpanList>
</countingStatisticsDescription>
Related
I am trying to verify a XML response with rest-assured like this:
.then().body("some.xml.path", is("abc"));
However, what I get is a SAXParseException:
DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true.]
Response starts like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.021/cXML.dtd">
<cXML ...
Why am I getting this exception? What should I change?
I am using version 3.2.0 of rest-assured.
A similar question has been answered here. In short, the answer describes to use disableLoadingOfExternalDtd() to have RestAssured ignore the Document Type Definition in your XML.
Normally, the DTD would describe (using the external definition) the structural layout of the element defined as cXML.
I'm using Ephesoft community edition 4.0.2.0 with tif images (tested by ephesoft) the problem that ephesoft can classify or extract data from certain images but from others he can't with no error message in files log, i dont now why.
When i click on Learn files the HOCR and HTML generated files are empty with no data just metadata like this :
Application_Checklist_HOCR.xml :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<HocrPages<HocrPage>
<Title></Title><Spans/>
<HocrContent></HocrContent>
</HocrPage></HocrPages>
But for US-invoice_HOCR.xml ephesoft can learn and the file look like this :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><HocrPages><HocrPage>
<Title></Title><Spans><Span><Value>INVOICE</Value><Coordinates><x0>579</x0>
<y0>247</y0><x1>881</x1><y1>304</y1></Coordinates></Span><Span>
<Value>ACME</Value><Coordinates><x0>168</x0><y0>394</y0><x1>311</x1><y1>431</y1>
</Coordinates></Span><Span><Value>Company</Value><Coordinates><x0>329</x0>
<y0>395</y0><x1>541</x1><y1>442</y1></Coordinates></Span><Span>
<Value>lnvoice</Value><Coordinates>............
You can modify the tesseract config file in /Path-To-Ephesoft/Application/WEB-INF/classes/META-INF/dcma-tesseract/tesseract-reader.properties and comment this line #tesseract.command_parameters=-psm 4 to let tesseract use the default segmentation.
I am wanting to add support to my iOS application to share location data, basically names and latlong coordinates, via a file format that can be emailed, save to dropbox, and can be opened by my application.
Is there a standard file format to share this information? I have done some research, and there doesn't seem to be much, a gpx file seems like overkill. I'd prefer to not make up my own format if one already exists.
I suggest you to use vcard format.
There is a GEO value type for this. vCards are easy machine- and human-readable.
Example:
BEGIN:VCARD
VERSION:3.0
TITLE:My Geo Point
GEO:37.386013;-122.082932
END:VCARD
Alternatively you can use apple vcard format:
BEGIN:VCARD
VERSION:3.0
PRODID:-//Apple Inc.//iOS 8.1//EN
N:;Current geo;;;
FN:Current geo
item1.URL;type=pref:http://maps.apple.com/?ll=55.369117\,39.079991
item1.X-ABLabel:map url
END:VCARD
This vcard may be opened via maps or messages both mac and ios.
Use GPX file format , as below xml format -
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<gpx
xmlns="http://www.topografix.com/GPX/1/1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"
version="1.1"
creator="gpx-poi.com">
<wpt lat="53.140450168" lon="-1.55674562972">
<time>2014-11-28T09:41:05Z</time>
</wpt>
</gpx>
I have a simple XML file like this
<?xml version="1.0"?>
<catalog>
<timezone>
<name>UTC-11:00</name>
<place>
<value>American Samoa</value>
<value>Samoa</value>
</place>
</timezone>
<timezone>
<name>UTC-10:00</name>
<place>
<value>Honolulu</value>
<value>Tahiti</value>
</place>
</timezone>
</catalog>
What is the canonical/standard way to parse this in iOS? I want to save "names" and "places" for each name.
NSXMLParser is already built in. You should look at this article for a more thorough comparison.
http://www.raywenderlich.com/553/xml-tutorial-for-ios-how-to-choose-the-best-xml-parser-for-your-iphone-project
It is NSXMLParser. Official documentation
In this page: http://en.wikipedia.org/wiki/Wikipedia:Picture_of_the_day you can see Wikipedia:POTD and (below) Commons:POTD.
I've found this: Wikipedia API: Cannot query Picture of the Day URL but it is for Commons:POTD.
Is there anything similar for Wikipedia:POTD ?
No, I didn't see anything like that. On enwiki you can get POTD from proper template, e.g.:
<?xml version="1.0"?>
<api>
<expandtemplates xml:space="preserve">[[:Template:Potd/2013-12-29]]</expandtemplates>
</api>