CN110035098A - The method for realizing recognition of face terminal data transmission by XML format - Google Patents
The method for realizing recognition of face terminal data transmission by XML format Download PDFInfo
- Publication number
- CN110035098A CN110035098A CN201810030678.2A CN201810030678A CN110035098A CN 110035098 A CN110035098 A CN 110035098A CN 201810030678 A CN201810030678 A CN 201810030678A CN 110035098 A CN110035098 A CN 110035098A
- Authority
- CN
- China
- Prior art keywords
- terminal
- xml format
- data
- recognition
- face
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 30
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000001815 facial effect Effects 0.000 claims abstract description 46
- 238000005538 encapsulation Methods 0.000 claims abstract description 9
- 230000008569 process Effects 0.000 claims description 4
- 241001269238 Data Species 0.000 abstract description 3
- 230000003993 interaction Effects 0.000 abstract description 3
- 101150014742 AGE1 gene Proteins 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses the methods for realizing recognition of face terminal data transmission by XML format, comprising the following steps: terminal carries out recognition of face and obtains facial recognition data;XML format structuring processing is carried out to the facial recognition data of acquisition in terminal;By structuring, treated that facial recognition data is packaged;Terminal sends the facial recognition data after encapsulation to server;Terminal encapsulates recognition of face information by XML format, and by http protocol, is dealt into server;Make the data of transmission more readable using XML format, what is transmitted between network is simple character stream, convenient for the shared and interaction of data between different application systems, facilitates the function of server side to realize, reduces development amount;The format of this structuring can include the various information datas of recognition of face completely, parse and store convenient for server side.
Description
Technical field
The present invention relates to technical field of face recognition, more particularly to realize that recognition of face terminal data passes by XML format
Defeated method.
Background technique
Face identification terminal (hereinafter referred to as terminal) gets people after analyzing the collected realtime graphic of camera
Face information, and carry out Facial Feature Analysis, gets gender, after the data such as age bracket, saves it in this terminal.It is setting
Time interval, recognition of face Analysis server (abbreviation server) can be transmitted these information to.Because each terminal is not
Together, data format is all different, and the interpretation pressure of server is bigger, meanwhile, when transmitting data, communication pressure is also larger.
Summary of the invention
In view of presently, there are above-mentioned deficiency, the present invention provides a kind of by XML format realization recognition of face terminal data
The method of transmission transmits recognition of face information using the structured format appointed, parses and store convenient for server side.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
The method for realizing recognition of face terminal data transmission by XML format, it is described that recognition of face is realized by XML format
The method of terminal data transmission the following steps are included:
Terminal carries out recognition of face and obtains facial recognition data;
XML format structuring processing is carried out to the facial recognition data of acquisition in terminal;
By structuring, treated that facial recognition data is packaged;
Terminal sends the facial recognition data after encapsulation to server.
According to one aspect of the present invention, it is described by structuring treated facial recognition data is packaged include: by
Treated that facial recognition data is encapsulated into HTTP POST request message for structuring.
According to one aspect of the present invention, the facial recognition data after encapsulation is included: by the terminal to server transmission
Terminal to server sends the HTTP POST request message for encapsulating facial recognition data.
It is described that XML format structure is carried out to the facial recognition data of acquisition in terminal according to one aspect of the present invention
Change in treatment process, structuring more changed handling is carried out to the essential information field of terminal.
It is described that XML format structure is carried out to the facial recognition data of acquisition in terminal according to one aspect of the present invention
Change in treatment process, structuring processing is carried out to the facial recognition data for the camera that terminal is analyzed.
According to one aspect of the present invention, the method packet that recognition of face terminal data transmission is realized by XML format
Include: terminal sends the information comprising facial recognition data to server in the time of setting.
According to one aspect of the present invention, one section of XML format structuring is preset in terminal and handles code.
The advantages of present invention is implemented: the side of the present invention that recognition of face terminal data transmission is realized by XML format
Method, comprising the following steps: terminal carries out recognition of face and obtains facial recognition data;To the recognition of face number of acquisition in terminal
According to progress XML format structuring processing;By structuring, treated that facial recognition data is packaged;Terminal is by the people after encapsulation
Face identifies that data are sent to server;Terminal encapsulates recognition of face information by XML format, and by http protocol, is sent out
Into server, when sending face identification information to server by http protocol, by the data format of structuring, pass
Pass the every terms of information of recognition of face;Make the data of transmission more readable using XML format, what is transmitted between network is simple
Character stream facilitate the function of server side to realize convenient for the shared and interaction of data between different application systems, reduce and develop work
It measures;The format of this structuring can include the various information datas of recognition of face completely, parse and store convenient for server side.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is the method schematic diagram of the present invention that recognition of face terminal data transmission is realized by XML format.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
XML (Extensible Markup Language) is extensible markup language, is a kind of for marking electronics literary
Part makes it have structural markup language.
In electronic computer, label refers to computer information symbol to understand, by such label, between computer
It can handle comprising various information such as article etc..It can be used to flag data, define data type, be a kind of to allow to use
The original language that family is defined the markup language of oneself.It is very suitable to network transmission, provide unified method describing and
Exchange is independently of application program or the structural data of supplier.Be in Internet environment it is cross-platform, dependent on content
Technology, and the effective tool of current processing distributed frame information.Early in 1998, W3C just issued XML1.0 specification, made
Simplify the document information transmission of Internet with it.
Based on above-mentioned frontier technology, the embodiment of the present invention is as follows:
As shown in Figure 1, a kind of method for realizing recognition of face terminal data transmission by XML format, described to pass through XML lattice
Formula realize recognition of face terminal data transmission method the following steps are included:
Step S1: terminal carries out recognition of face and obtains facial recognition data;
The step S1 terminal carries out recognition of face and obtains facial recognition data, by camera shooting belonging to terminal
Head obtains image information and is identified that, to obtain facial recognition data, the facial recognition data should include at least:
ID: number of this camera in this equipment, since 1;
IP: the IP address of this camera;
Type: camera types USB Type camera -2, ONVIF type camera -1;
ToTal: this is always into counting;
Male: the male's number identified;
Female: the women number identified;
Age1: the number of 0~2 years old age bracket of this period;
Age2: the number of 4~6 years old age bracket of this period;
Age3: the number of 8~12 years old age bracket of this period;
Age4: the number of 15~20 years old age bracket of this period;
Age5: the number of 25~32 years old age bracket of this period;
Age6: the number of 38~43 years old age bracket of this period;
Age7: the number of 48~53 years old age bracket of this period;
Age8: the number of 60~100 years old age bracket of this period;
Age9: reserved, fixation fills out 0;
Age10: reserved, fixation fills out 0.
Meanwhile terminal should include the related essential information of its equipment, should include at least following content:
DeviceId: device numbering, the system for carrying out recognition of face have unique mark in the server, can set,
When equipment is dispatched from the factory, it is set as equipment production number;
MacAddress: the MAC Address of network interface used in this equipment;
IpAddress: the address IPv4 of the used network interface of the machine;
Version: this device software version number;
CameraNum: the camera number that this equipment is supported;
HwPlatForm: this equipment platform type is HOST if it is host, is AIO (All- if it is integrated machine equipment
The abbreviation of in-One);
Interval: the timing of the machine setting uploads the time interval of identification data, defaults to 5 minutes;
Date: the date where data, format YYYY-MM-DD;
StartTime: the initial time of this identification period, format HH:MM:SS, after starting power up operation if it is system
First, then the value is the real system time of running, otherwise for before current time at the time of Interval minutes;
EndTime: at the time of currently generating the data, format HH:MM:SS.
In practical applications, every message of Date, StartTime and EndTime only occurs once.
Step S2: XML format structuring processing is carried out to the facial recognition data of acquisition in terminal;
It includes: first that the step S2, which carries out XML format structuring processing to the facial recognition data of acquisition in terminal,
One section of XML format structuring is preset in terminal and handles code, and facial recognition data is carried out at XML format structuring with realizing
Reason, the XML format structuring processing code can be as follows:
<? xml version=" 1.0 "?>
<Metrics>
<Properties>
<DeviceId>"face"</DeviceId>
<MacAddress>00:b0:9d:db:54:c5</MacAddress>
<IpAddress>192.168.1.85</IpAddress>
<Version>20170506V1.0</Version>
<CameraNum>8</CameraNum>
<HwPlatform>HOST</HwPlatform>
<Interval>1</Interval>
<Date>2017-05-06</Date>
<StartTime>17:25:00</StartTime>
<EndTime>17:30:00</EndTime>
</Properties>
<ReportData>
<Report>
<Object Id=" 1 " Type=" 1 " IP=" 192.168.1.5 ">
< Count Total=" 0 " Male=" 0 " Female=" 0 " Age1=" 0 " Age2=" 0 " Age3=" 0 " Age4
=" 0 " Age5=" 0 " Age6=" 0 " Age7=" 0 " Age8=" 0 " Age9=" 0 " Age10=" 0 "/>
</Object>
</Report>
</ReportData>
</Metrics>
In practical applications, it needs to carry out structuring more changed handling to the essential information field of terminal.
In practical applications, it needs to carry out structuring more changed handling to the essential information field to terminal.
Step S3: by structuring, treated that facial recognition data is packaged;
Treated that facial recognition data is packaged specifically includes by structuring by the step S3: after structuring is handled
Facial recognition data be encapsulated into HTTP POST request message.
Step S4: terminal sends the facial recognition data after encapsulation to server.
Facial recognition data after encapsulation is included: that terminal to server is sent to server transmission by the step S4 terminal
Encapsulate the HTTP POST request message of facial recognition data.
In practical applications, terminal sends the information comprising facial recognition data to server in the time of setting.
The advantages of present invention is implemented: the side of the present invention that recognition of face terminal data transmission is realized by XML format
Method, comprising the following steps: terminal carries out recognition of face and obtains facial recognition data;To the recognition of face number of acquisition in terminal
According to progress XML format structuring processing;By structuring, treated that facial recognition data is packaged;Terminal is by the people after encapsulation
Face identifies that data are sent to server;Terminal encapsulates recognition of face information by XML format, and by http protocol, is sent out
Into server, when sending face identification information to server by http protocol, by the data format of structuring, pass
Pass the every terms of information of recognition of face;Make the data of transmission more readable using XML format, what is transmitted between network is simple
Character stream facilitate the function of server side to realize convenient for the shared and interaction of data between different application systems, reduce and develop work
It measures;The format of this structuring can include the various information datas of recognition of face completely, parse and store convenient for server side.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those skilled in the art is in technical scope disclosed by the invention, and any changes or substitutions that can be easily thought of, all answers
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be with the scope of protection of the claims
It is quasi-.
Claims (7)
1. the method for realizing recognition of face terminal data transmission by XML format, which is characterized in that described to pass through XML format reality
The method of existing recognition of face terminal data transmission the following steps are included:
Terminal carries out recognition of face and obtains facial recognition data;
XML format structuring processing is carried out to the facial recognition data of acquisition in terminal;
By structuring, treated that facial recognition data is packaged;
Terminal sends the facial recognition data after encapsulation to server.
2. the method according to claim 1 for realizing recognition of face terminal data transmission by XML format, feature exist
In described by structuring, treated that facial recognition data is packaged includes: by structuring treated facial recognition data
It is encapsulated into HTTP POST request message.
3. the method according to claim 2 for realizing recognition of face terminal data transmission by XML format, feature exist
In the facial recognition data after encapsulation is included: that terminal to server transmission encapsulates face to server transmission by the terminal
Identify the HTTP POST request message of data.
4. the method according to claim 1 for realizing recognition of face terminal data transmission by XML format, feature exist
In, it is described that the facial recognition data of acquisition is carried out in XML format structuring treatment process in terminal, to the basic letter of terminal
It ceases field and carries out structuring more changed handling.
5. the method according to claim 1 for realizing recognition of face terminal data transmission by XML format, feature exist
In described analyze terminal in XML format structuring treatment process to the facial recognition data of acquisition in terminal
The facial recognition data of camera carries out structuring processing.
6. the method according to one of claims 1 to 5 that recognition of face terminal data transmission is realized by XML format,
Be characterized in that, the method that recognition of face terminal data transmission is realized by XML format include: terminal setting time to
Server sends the information comprising facial recognition data.
7. the method according to claim 6 for realizing recognition of face terminal data transmission by XML format, feature exist
In default one section of XML format structuring handles code in terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810030678.2A CN110035098A (en) | 2018-01-12 | 2018-01-12 | The method for realizing recognition of face terminal data transmission by XML format |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810030678.2A CN110035098A (en) | 2018-01-12 | 2018-01-12 | The method for realizing recognition of face terminal data transmission by XML format |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110035098A true CN110035098A (en) | 2019-07-19 |
Family
ID=67234785
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810030678.2A Pending CN110035098A (en) | 2018-01-12 | 2018-01-12 | The method for realizing recognition of face terminal data transmission by XML format |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110035098A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101021904A (en) * | 2006-10-11 | 2007-08-22 | 鲍东山 | Video content analysis system |
US20090240735A1 (en) * | 2008-03-05 | 2009-09-24 | Roopnath Grandhi | Method and apparatus for image recognition services |
CN102567720A (en) * | 2011-12-26 | 2012-07-11 | 广州市千钧网络科技有限公司 | Face identification method and face identification device for Flash online video |
CN103294829A (en) * | 2013-06-26 | 2013-09-11 | 公安部第三研究所 | System and method of achieving light-weight video structuralization description based on Android operation system |
CN103632147A (en) * | 2013-12-10 | 2014-03-12 | 公安部第三研究所 | System and method for implementing standardized semantic description of facial features |
CN106850722A (en) * | 2015-12-04 | 2017-06-13 | 上海杰轩智能科技有限公司 | A kind of method that passenger flow counting information is transmitted by HTTP |
-
2018
- 2018-01-12 CN CN201810030678.2A patent/CN110035098A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101021904A (en) * | 2006-10-11 | 2007-08-22 | 鲍东山 | Video content analysis system |
US20090240735A1 (en) * | 2008-03-05 | 2009-09-24 | Roopnath Grandhi | Method and apparatus for image recognition services |
CN102567720A (en) * | 2011-12-26 | 2012-07-11 | 广州市千钧网络科技有限公司 | Face identification method and face identification device for Flash online video |
CN103294829A (en) * | 2013-06-26 | 2013-09-11 | 公安部第三研究所 | System and method of achieving light-weight video structuralization description based on Android operation system |
CN103632147A (en) * | 2013-12-10 | 2014-03-12 | 公安部第三研究所 | System and method for implementing standardized semantic description of facial features |
CN106850722A (en) * | 2015-12-04 | 2017-06-13 | 上海杰轩智能科技有限公司 | A kind of method that passenger flow counting information is transmitted by HTTP |
Non-Patent Citations (1)
Title |
---|
高林: ""基于Android智能终端信息采集***的设计与实现"", 《中国优秀硕士论文全文数据库》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3379511B1 (en) | Internet of things system used for intelligent gas meter and information transmission method for internet of things system | |
CN106131164B (en) | The data processing method and device of protocol analysis are carried out beyond the clouds | |
CN106453766B (en) | Data transmission method, apparatus and system based on virtual machine | |
TWI373606B (en) | Method and system of reading of utility meter data over a network | |
CN109327493A (en) | A kind of remote medical monitoring system based on cloud and monitoring method | |
CN108337236A (en) | A kind of gRPC call methods and device based on Protobuf and HTTP/1.1 | |
DE60230150D1 (en) | METHOD AND DEVICE FOR OBTAINING DATA INFORMATION | |
CN106656953A (en) | Method for realizing safe interface calling between systems based on Internet | |
CN104683407B (en) | A kind of transmission method and equipment of page data and application data | |
CN102137126B (en) | System and method for updating web data | |
TW200614841A (en) | Integrated method and apparatus to manage mobile devices and services | |
CN111294235A (en) | Data processing method, device, gateway and readable storage medium | |
CN113806110B (en) | Event-driven message processing method, device, equipment and storage medium | |
CN107248981A (en) | Internet of Things intelligent equipment protocol storehouse | |
CN108206864A (en) | Information of vehicles based on wechat synchronizes real time inquiry system and information synchronization method | |
CN103297520B (en) | Operation of power networks service system and implementation method | |
CN114172979A (en) | Message parsing method, platform, gateway and storage medium | |
Kim et al. | Enhanced industrial message protocol for real-time IoT platform | |
CN104735151A (en) | Process bar control method, device and system | |
CN110035098A (en) | The method for realizing recognition of face terminal data transmission by XML format | |
EP1624642A3 (en) | Apparatus, method and system for providing information in accordance with one of a plurality of protocols | |
CN104113564A (en) | Hyper text transfer protocol connection multiplexing method, device, system, and terminal | |
CN104217314A (en) | Routing information capturing method and device | |
CN110135222A (en) | A method of realizing the transmission of wisdom commercial circle face characteristic information acquisition terminal data | |
CN107332724A (en) | Server monitoring method, device and system and baseboard management controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190719 |