CN112348315A - Target portrait generation method and device, electronic equipment and computer storage medium - Google Patents

Target portrait generation method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN112348315A
CN112348315A CN202011091565.7A CN202011091565A CN112348315A CN 112348315 A CN112348315 A CN 112348315A CN 202011091565 A CN202011091565 A CN 202011091565A CN 112348315 A CN112348315 A CN 112348315A
Authority
CN
China
Prior art keywords
target
information
tag
state information
data request
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
Application number
CN202011091565.7A
Other languages
Chinese (zh)
Inventor
赵瑞祥
章玮旭
倪清逸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qing Yanxun Technology Beijing Co ltd
Original Assignee
Qing Yanxun Technology Beijing Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Qing Yanxun Technology Beijing Co ltd filed Critical Qing Yanxun Technology Beijing Co ltd
Priority to CN202011091565.7A priority Critical patent/CN112348315A/en
Publication of CN112348315A publication Critical patent/CN112348315A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling

Abstract

The application provides a target portrait generation method and device, electronic equipment and a computer storage medium, and relates to the field of computers. The method comprises the following steps: acquiring state information associated with a target label based on a received data request, wherein the data request is used for requesting to view a target portrait containing the state information within a preset time period, and the state information at least comprises one of the following: tag state information of the target tag, state information of the target object associated with the target tag; a target portrait is generated based on the status information. By the method and the device, the technical problem that the monitoring performance of the monitoring system in the related technology is low is solved.

Description

Target portrait generation method and device, electronic equipment and computer storage medium
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for generating a target representation, an electronic device, and a computer storage medium.
Background
With the rise and development of intelligent communication technology and internet of things technology, more and more demands are placed on positioning of personnel, equipment and the like in the fields of industry, agriculture, logistics, military and the like. Although the current positioning system has realized high-precision positioning of personnel or equipment, the monitoring of the personnel and the equipment by the current monitoring system is limited to the positioning of the personnel and the equipment, the monitoring performance is low, and the user experience is poor.
Disclosure of Invention
In view of the above, the present application is provided to provide a method and apparatus for generating a target representation, an electronic device, and a computer storage medium that overcome or at least partially solve the above problems. The technical scheme is as follows:
in a first aspect, a method for generating a target representation is provided, the method comprising:
obtaining state information associated with a target label based on a received data request, wherein the data request is used for requesting to view a target portrait containing the state information within a preset time period, and the state information at least comprises one of the following: tag state information of the target tag, state information of a target object associated with the target tag;
and generating the target portrait according to the state information.
In one possible implementation, before obtaining the status information associated with the target tag based on the received data request, the method further includes:
querying first attribute information of the target tag and second attribute information of the target object based on the data request;
wherein the first attribute information includes at least one of: the first ID of the target tag, the tag electric quantity of the target tag, the working state of the target tag and the application scene of the target tag;
the second attribute information includes at least one of: a second ID of the target object, an avatar of the target object, and a functional department in which the target object works.
In another possible implementation manner, the generating the target representation according to the state information includes:
and generating the target portrait according to the first attribute information, the second attribute information and the state information.
In another possible implementation manner, the obtaining of the status information associated with the target tag based on the received data request includes at least one of:
obtaining location information associated with the target tag based on the data request;
acquiring alarm information associated with a target label based on the data request;
acquiring mileage data associated with the target tag based on the data request;
acquiring heart rate information associated with the target tag based on the data request;
acquiring attendance information associated with the target tag based on the data request;
acquiring man-hour information associated with the target tag based on the data request;
task information associated with the target tag is obtained based on the data request.
In another possible implementation manner, the obtaining of the state information associated with the target tag based on the received data request includes:
querying a database for the status information based on the data request;
reading the state information by calling an Application Program Interface (API);
the state information stored in the database is uploaded by the associated positioning base station and/or uploaded by the server; the state information in the positioning base station is periodically uploaded through the target label; the state information in the server is uploaded by the target tag through a connected network.
In another possible implementation, the state information includes at least two types of state information, and generating the target representation according to the state information includes:
reading a display sequence of the at least two types of state information, wherein the display sequence is stored in a database associated with the target tag;
and generating the target portrait according to the display sequence and the at least two kinds of state information.
In another possible implementation manner, if the state information includes position information, generating the target portrait according to the state information includes:
if the number of the position coordinate points contained in the position information is not larger than a first preset number, drawing a heat map of the target label on a preset map associated with the target label based on the position information;
if the number of the position coordinate points is larger than the first preset number, the execution comprises the following steps:
a1, acquiring the position coordinates of the first preset number, and drawing a heat map of the target label on the preset map based on the position coordinates of the first preset number;
step a2, if the number of the remaining position coordinate points contained in the position information is greater than the first preset number, circularly executing the step a1 until the number of the remaining position coordinate points contained in the position information is not greater than the first preset number;
if the number of the remaining position coordinate points contained in the position information is not greater than the first preset number, drawing a heat map of the target label based on the remaining position coordinates contained in the position information;
and using the drawn heat map as the target portrait.
In another possible implementation manner, if the state information includes warning information, the generating the target representation according to the state information includes:
determining the total alarm number contained in the alarm information;
counting the alarm number corresponding to each sub-time period in the preset time period, and generating an alarm number statistical chart based on the total alarm number and the alarm number corresponding to each sub-time period according to a first preset form; and/or generating an alarm type proportion chart based on the total alarm number and the preset alarm types according to a second preset form;
and taking the alarm quantity statistical chart and/or the alarm type proportion chart as the target portrait.
In another possible implementation manner, if the status information includes heart rate information, the obtaining the status information associated with the target tag based on the received data request includes:
and receiving a heart rate value pushed by a server through a websocket protocol based on the data request, wherein the heart rate value is uploaded to the server by the target label through a target network.
In another possible implementation manner, if the state information includes mileage data, the generating the target representation according to the state information includes:
determining mileage data of the target tag within the preset time period, wherein the mileage data comprises at least one of the following items: the total mileage data in the preset time period and the sub-mileage data corresponding to each sub-time period in the preset time period respectively;
generating a mileage detail chart of the target label based on the mileage data according to a third preset form;
and taking the mileage detail chart as the target portrait.
In another possible implementation manner, if the state information includes attendance information, generating the target portrait according to the state information includes:
determining at least one of a first attendance record and the second attendance record;
generating an attendance chart of the target tag based on at least one of the first attendance record and the second attendance record;
taking the attendance chart as the target portrait;
the first attendance record is an attendance record of the target tag within a preset time period, and the first attendance record comprises at least one of the following: attendance, late arrival, early exit and absence;
the second attendance record is an attendance record corresponding to the target tag in the current time period, and the second attendance record comprises at least one of the following: the time of arriving at the preset attendance area, the time of leaving the preset attendance area and the respective corresponding attendance states.
In another possible implementation manner, if the state information includes man-hour information, the man-hour information includes working areas where the target tag enters within a preset time period, and corresponding duration information in each working area;
generating the target representation from the state information comprises:
generating a working hour statistical chart of the target label based on the working hour information according to a sixth preset form;
and taking the working hour statistical chart as the target portrait.
In another possible implementation manner, if the state information includes task information, generating the target representation according to the state information includes:
inquiring the task information of the target label in the task information within the preset time period and/or the task information within the current time period;
and generating the target portrait based on the task information of the target label in the preset time period and/or the task information in the current time period.
In another possible implementation manner, the triggering manner of the data request includes at least one of the following:
receiving a data request triggered by a user;
a preset time interval is reached.
In another possible implementation, after generating the target representation according to the state information, the method further includes:
and periodically updating the target portrait according to a third preset time.
In a second aspect, an apparatus for generating a target representation is provided, the apparatus comprising:
an obtaining module, configured to obtain status information associated with a target tag based on a received data request, where the data request is used to request to view a target portrait including the status information within a preset time period, and the status information at least includes one of: tag state information of the target tag, state information of a target object associated with the target tag;
and the generating module is used for generating the target portrait according to the state information.
In one possible implementation, the apparatus further includes:
the query module is used for querying first attribute information of a target label and second attribute information of the target object based on a data request before acquiring state information associated with the target label based on the received data request;
wherein the first attribute information includes at least one of: the first ID of the target tag, the tag electric quantity of the target tag, the working state of the target tag and the application scene of the target tag;
the second attribute information includes at least one of: a second ID of the target object, an avatar of the target object, and a functional department in which the target object works.
In another possible implementation manner, the generating module is specifically configured to:
and generating the target portrait according to the first attribute information, the second attribute information and the state information.
In another possible implementation manner, the obtaining module specifically includes at least one of:
a first obtaining unit configured to obtain location information associated with a target tag based on a data request;
the second acquisition unit is used for acquiring alarm information associated with the target label based on the data request;
a third obtaining unit, configured to obtain mileage data associated with the target tag based on the data request;
the fourth acquisition unit is used for acquiring the heart rate information associated with the target label based on the data request;
the fifth acquisition unit is used for acquiring attendance information associated with the target tag based on the data request;
a sixth acquiring unit configured to acquire man-hour information associated with the target tag based on the data request;
and the seventh acquisition unit is used for acquiring the task information associated with the target label based on the data request.
In another possible implementation manner, the obtaining module specifically includes:
a first query unit, configured to query the database for the status information based on the data request;
the first reading unit is used for reading the state information by calling an Application Program Interface (API);
the state information stored in the database is uploaded by the associated positioning base station and/or uploaded by the server; the state information in the positioning base station is periodically uploaded through the target label; the state information in the server is uploaded by the target tag through a connected network.
In another possible implementation manner, the state information includes at least two kinds of state information, and the generating module specifically includes:
a second reading unit, configured to read a display order of the at least two types of status information, where the display order is stored in a database associated with the target tag;
and the first display unit is used for generating the target portrait according to the display sequence and the at least two kinds of state information.
In another possible implementation manner, when the state information includes location information, the generating module specifically includes:
the drawing unit is used for drawing a heat map of the target label on a preset map associated with the target label based on the position information when the number of position coordinate points contained in the position information is not more than a first preset number;
the drawing unit is further configured to, when the number of the position coordinate points is greater than the first preset number, execute the following steps:
a1, acquiring the position coordinates of the first preset number, and drawing a heat map of the target label on the preset map based on the position coordinates of the first preset number;
step a2, when the number of the remaining position coordinate points contained in the position information is larger than the first preset number, circularly executing the step a1 until the number of the remaining position coordinate points contained in the position information is not larger than the first preset number;
when the number of the remaining position coordinate points contained in the position information is not more than the first preset number, drawing a heat map of the target label based on the remaining position coordinates contained in the position information;
a first determining unit configured to use the drawn heat map as the target representation.
In another possible implementation manner, when the state information includes alarm information, the generating module specifically includes:
the second determining unit is used for determining the total alarm number contained in the alarm information;
the first generating unit is used for counting the alarm number corresponding to each sub-time period in the preset time period and generating an alarm number statistical chart based on the total alarm number and the alarm number corresponding to each sub-time period according to a first preset form; and/or generating an alarm type proportion chart based on the total alarm number and the preset alarm types according to a second preset form;
and the third determining unit is used for taking the alarm quantity statistical chart and/or the alarm type proportion chart as the target portrait.
In another possible implementation manner, when the state information includes heart rate information, the obtaining module is specifically configured to:
and receiving a heart rate value pushed by a server through a websocket protocol based on the data request, wherein the heart rate value is uploaded to the server by the target label through a target network.
In another possible implementation manner, when the state information includes mileage data, the generating module specifically includes:
a fourth determining unit, configured to determine mileage data of the target tag within the preset time period, where the mileage data includes at least one of: the total mileage data in the preset time period and the sub-mileage data corresponding to each sub-time period in the preset time period respectively;
the second generation unit is used for generating a mileage detail chart of the target label based on the mileage data according to a third preset form;
and the fifth determining unit is used for taking the mileage detail chart as the target portrait.
In another possible implementation manner, when the status information includes attendance information, the generating module specifically includes:
a sixth determining unit, configured to determine at least one of the first attendance record and the second attendance record;
a third generation unit, configured to generate an attendance chart of the target tag based on at least one of the first attendance record and the second attendance record;
a seventh determining unit, configured to use the attendance chart as the target portrait;
the first attendance record is an attendance record of the target tag within a preset time period, and the first attendance record comprises at least one of the following: attendance, late arrival, early exit and absence;
the second attendance record is an attendance record corresponding to the target tag in the current time period, and the second attendance record comprises at least one of the following: the time of arriving at the preset attendance area, the time of leaving the preset attendance area and the respective corresponding attendance states.
In another possible implementation manner, when the state information includes man-hour information, the man-hour information includes work areas where the target tag enters within a preset time period, and corresponding duration information in each work area;
the generating module specifically includes:
a fourth generating unit, configured to generate a working hour statistical chart of the target label based on the working hour information according to a sixth preset form;
an eighth determining unit, configured to use the labor hour statistical chart as the target portrait.
In another possible implementation manner, when the state information includes task information, the generating module specifically includes:
the second query unit is used for querying the task information of the target tag in the task information within the preset time period and/or the task information within the current time period;
and the fifth generating unit is used for generating the target portrait based on the task information of the target label in the preset time period and/or the task information in the current time period.
In another possible implementation manner, the triggering manner of the data request includes at least one of the following:
receiving a data request triggered by a user;
a preset time interval is reached.
In another possible implementation manner, the apparatus further includes:
and the updating module is used for periodically updating the target portrait according to a third preset time.
In a third aspect, an electronic device is provided, comprising a processor and a memory, wherein the memory has a computer program stored therein, and the processor is configured to execute the computer program to perform any of the above-mentioned target representation generation methods.
In a fourth aspect, a computer storage medium is provided, the computer storage medium storing a computer program, wherein the computer program is configured to execute any of the above-mentioned target representation generation methods when running.
With the above technical solution, the target portrait generation method provided in the embodiment of the present application obtains the designated status information associated with the target tag based on the received data request, where the designated status information includes at least one of the following items: the tag state information of the target tag and the state information of the target object associated with the target tag can acquire the designated state information of personnel and equipment associated with the target tag, and then the target portrait corresponding to the target tag and the target object is generated based on the designated state information, so that the target portrait can be used for intuitively and real-timely monitoring various states of the target tag, the personnel and the equipment, problems can be found in time, and the technical problem of low monitoring performance of a monitoring system in the related technology is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
FIG. 1 is an architectural diagram of a positioning system provided in accordance with an embodiment of the present application;
FIG. 2 is a flow diagram of a method for generating a target representation according to an embodiment of the present application;
FIG. 3 is a schematic diagram of providing basic information of a person representation according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a list of names in a target representation provided in accordance with an embodiment of the present application;
FIG. 5 is a schematic diagram of a target representation with location information provided in accordance with an embodiment of the present application;
FIG. 6 is a schematic diagram of a target representation with alerting information provided in accordance with an embodiment of the present application;
FIG. 7 is a schematic diagram of a target representation containing heart rate information provided in accordance with an embodiment of the present application;
FIG. 8 is a schematic diagram of a target representation including mileage information provided in accordance with an embodiment of the present application;
FIG. 9 is a schematic diagram of a target representation with attendance information provided in accordance with an embodiment of the present application;
FIG. 10 is a schematic diagram of a target representation including man-hour information provided in accordance with an embodiment of the invention;
FIG. 11 is a schematic diagram of a target representation including a patrol task provided in accordance with an embodiment of the present application;
FIG. 12 is a schematic diagram of a target representation including roll call information according to an embodiment of the present application;
FIG. 13 is a block diagram of an apparatus for generating a target representation according to an embodiment of the present application;
FIG. 14 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that such uses are interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the term "include" and its variants are to be read as open-ended terms meaning "including, but not limited to".
In order to solve the technical problems of the related art, a method for generating a target representation is provided in the present embodiment. The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
As shown in fig. 1, an architecture diagram of a positioning system provided in an embodiment of the present application includes a positioning hardware layer, a network connection layer, a data resolving layer, and an application layer. Specifically, the method comprises the following steps:
the positioning hardware layer comprises a positioning base station and a positioning label, the position of the positioning base station is known and can be used as a reference point for positioning a target object, and the positioning label is carried on the target object such as a product, a worker and the like. The positioning label and the positioning base station are in wireless communication, the positioning label can send position data to the positioning base station at regular time or periodically, and the positioning base station provides the position data sent by the positioning label to the data resolving layer through the network connection layer.
The network connection layer may include a wireless AP (Access Point), a switch, a network cable, and the like, where the wireless AP receives the location data from the positioning base station and transmits the location data back to the data resolving layer through the switch.
The data resolving layer mainly comprises a database engine and a resolving engine, and the resolving engine resolves the position data of the positioning tag in real time according to a positioning algorithm to obtain the high-precision position of the positioning tag; the database engine is used for storing relevant data required by the resolving engine when resolving the position data of the positioning tag, and the relevant data is called when the resolving engine resolves.
The Application layer mainly implements the part of the positioning system software function interacting with the user and presenting to the user, and may include Application software, open API (Application Program Interface), etc., and the Application software may implement the corresponding function according to the user's requirement; the open API interface can be provided for external system calls, so that the external system can realize the application function corresponding to the API. In addition, the application software may be installed on a server, a personal computer, a smart phone, a tablet computer, a smart watch, and other devices, which is not limited in this application.
The embodiment of the present application provides a possible implementation manner, and the positioning tag and the positioning base station perform Wireless communication, and may adopt technologies such as UWB (Ultra Wide Band), WiFi (Wireless Fidelity), bluetooth, RFID (Radio Frequency Identification), ultrasonic waves, and a geomagnetic field.
The embodiment of the application provides a possible implementation manner, and the positioning tag and the positioning base station perform wireless communication by adopting an Ultra Wide Band (UWB) technology, which is a novel wireless communication technology. UWB communication does not require the use of carriers in conventional communication regimes, but transmits data by transmitting and receiving extremely narrow pulses having nanosecond or subnanosecond levels, and thus has a bandwidth on the order of GHz. The UWB technology has the advantages of strong penetrating power, good multipath resistance effect, high safety, low system complexity and the like, and can realize accurate positioning of objects such as products, personnel and the like.
In the embodiment of the present application, a possible implementation manner is provided, where the solution engine calculates the position data of the location tag in real Time according to a location algorithm, where the location algorithm may be an AOA (Angle of Arrival) location algorithm, a TOA (Time of Arrival) location algorithm, a TDOA (Time difference of Arrival) location algorithm, an RSSI (Received Signal Strength fingerprint), and the like, and the embodiment of the present application does not limit this.
FIG. 2 is a flowchart of a method for generating a target representation according to an embodiment of the present application, as shown in FIG. 2, the flowchart includes the following steps:
step S201, acquiring status information associated with a target tag based on a received data request, where the data request is used to request to view a target portrait containing status information within a preset time period, and the status information at least includes one of: tag state information of the target tag, state information of the target object associated with the target tag;
in step S202, a target image is generated based on the status information.
The target portrait generation method provided by the embodiment of the application obtains the designated state information associated with the target tag based on the received data request, wherein the designated state information includes at least one of the following items: the tag state information of the target tag and the state information of the target object associated with the target tag can acquire the designated state information of personnel and equipment associated with the target tag, and then the target portrait corresponding to the target tag and the target object is generated based on the designated state information, so that various states of the target tag, the personnel and the equipment can be visually monitored in real time through the target portrait, problems can be found in time, and the technical problem of monitoring performance of a monitoring system in the related technology is solved.
In the embodiment of the present application, a possible implementation manner is provided, as introduced in the foregoing positioning system, in step S201, the state information associated with the target tag is obtained based on the received data request, and the UWB positioning tag is used to obtain the state information of the tag and the state information of the target object. The UWB positioning tag may be a portable tag only including an ultra-wideband UWB module, for example, the portable tag may be worn on a user helmet or mounted on a mechanical device such as a forklift; or by integrating the UWB module on other devices (such as mobile phones, wearable devices, etc.); the positioning is carried out based on the UWB module, so that the real-time effectiveness of the information of the positioning label and the detailed reliability of the displayed information are ensured.
In this embodiment, according to the positioning system described above, the UWB positioning tag uploads the state information of the tag and the target object to the UWB positioning base station in real time or at intervals, the UWB positioning base station uploads the state information to the data settlement layer through the network connection layer, and the data settlement layer stores the data obtained by analyzing the state information in the database, so as to facilitate the software system call of user interaction; and based on the received data request, checking feature data in a preset time period in the database, wherein the preset time period can be selected from time periods in units of days, weeks and months or self-defined time periods. By the embodiment, the state information of the label and the target object can be flexibly, accurately and quickly acquired.
A possible implementation manner is provided in the embodiment of the present application, in step S202, a visual target representation may be generated by a software system interacting with a user based on a tag and state information of a target object, where the target representation in this embodiment may be a user representation, also called a user role, and the user may be a human or an animal, or a mechanical device, etc.; the user representation is formed by associating attributes and behaviors of a user wearing a positioning tag with expectations through a delineation tool to serve as a virtual representation of an actual user, thereby representing a user character. By means of the embodiment, various tendencies of personnel and equipment can be intuitively presented on the user management system (i.e. the software system interacting with the user). Preferably, the user management system can be installed on any monitoring computer, so that monitoring personnel can perform operations such as checking user figures of the target object, setting and the like.
The embodiment of the present application provides a possible implementation manner, and before acquiring the state information associated with the target tag based on the received data request, the implementation manner further includes: querying first attribute information of a target label and second attribute information of a target object based on the data request; wherein the first attribute information includes at least one of: the method comprises the following steps of firstly, identifying a first ID of a target label, the label electric quantity of the target label, the working state of the target label and the application scene of the target label; the second attribute information includes at least one of: a second ID of the target object, an avatar of the target object, and a functional department in which the target object works.
In this embodiment, the generated target representation further includes attribute information (e.g., ID of the location tag) of the location tag (i.e., the target tag), status information (e.g., remaining power of the location tag) currently presented by the location tag, attribute (e.g., user ID) of the user bound to the location tag, and behavior information (e.g., user track) of the user. Before acquiring the state information associated with the target tag, the positioning tag (i.e., the target tag) is bound with the user (i.e., the target object), so that the basic information of the positioning tag (i.e., the first attribute information) and the basic information of the user (i.e., the second attribute information) are acquired in real time or at regular intervals, and the basic information of the positioning tag and the basic information of the user are associated.
In one example, as shown in fig. 3, fig. 3 is a schematic diagram for providing basic information of a person portrait according to an embodiment of the present application, and the basic information of the tag includes at least one of the following: the status of the tag (such as online (i.e., active status), or offline (i.e., inactive status)), the usage status of the tag (such as current remaining power, e.g., 100%), the tag ID (such as code 111); the basic information of the user includes at least one of: person head, name of person (e.g. zhang san, code 111), contact address of person (e.g. cell phone number xxxxxxxx), department to which person belongs (e.g. default grouping) (i.e. functional department where the above object works), etc.
The embodiment of the present application provides a possible implementation manner, generating a target portrait according to state information, including: a target representation is generated based on the first attribute information, the second attribute information, and the status information.
In this embodiment, the user profile finally generated includes the basic information of the tag, the basic information of the user, and the tag and the status information of the user in the preset time period.
The embodiment of the present application provides a possible implementation manner, and the obtaining of the state information associated with the target tag based on the received data request includes at least one of the following (step a1, step a2, step A3, step a4, step a5, and step a 6):
step a1 (not shown in the figure), obtaining location information associated with the target tag based on the data request;
step A2 (not shown in the figure), acquiring alarm information associated with the target label based on the data request;
step a3 (not shown in the figure), obtaining mileage data associated with the target tag based on the data request;
step a4 (not shown in the figure), obtaining heart rate information associated with the target label based on the data request;
step a5 (not shown in the figure), acquiring attendance information associated with the target tag based on the data request;
step a6 (not shown in the figure), obtaining the man-hour information associated with the target label based on the data request; task information associated with the target tag is obtained based on the data request.
In a possible implementation manner, the embodiment of the application is applied to a user management system, where the user management system includes a web front end and a background server, the web front end includes a user operation interface and can be used to display a target portrait, the background server can be used to obtain status information, and the server is used to obtain information of at least one of the following: location information of tag movement; alarm information generated by the tag; mileage information of label statistics; if the target object bound with the label is a living being with vital signs, such as a human or an animal, heart rate information of the living being can be acquired; attendance information, work hour information, completed task information and the like of personnel or mechanical equipment bound with the tag can be acquired; the corresponding chart is then rendered based on the corresponding state information and the generated chart is sent to the web front end, thereby forming a user representation.
In an example of the foregoing embodiment, the data request is used to request to view a target portrait including one or more items of specified state information within a preset time period, that is, the data request carries request information of key features that users are interested in, and obtain feature data that one or more items of users are interested in within the preset time period according to the data request; and finally, generating a target portrait according to the characteristic data, so that a person portrait which is concerned by a user is generated flexibly, and the user experience is improved.
In one embodiment, if the target object is a non-patrol person, the non-patrol person does not need to pay attention to the characteristic of the patrol task, so that when the non-patrol person bound with the tag ID is identified, the state information related to the patrol task does not need to be acquired when the person portrait is generated, and the person portrait corresponding to the state information of the patrol task does not need to be generated; the polling task can be closed without displaying, so that the time is saved, the generated employee portrait is more accurate, and the signaling interaction is reduced. In the embodiment of the application, the determination can be based on information such as a department to which a person belongs in the user basic information.
In one example, if the target object is a constructor in a tunnel, the data request requests to obtain a person representation of the constructor: firstly, each constructor wears a positioning label, and the basic information of the constructor and the basic information of the positioning label are stored in a database through a user management system or the positioning label so as to associate the constructor and the positioning label; then, the positioning tag acquires attendance information, position information, heart rate information, working hour information and other information of personnel, and the information is periodically uploaded to a database for storage through a UWB module in the positioning tag; based on the data request, requesting to view people portrait of the constructor about attendance information and labor hour information (namely the specified important characteristics of interest of one or more users) in the last month; and finally, displaying the basic information of the label and the constructor, the attendance information and the labor hour information in a chart form without acquiring heart rate information, position information and the like by drawing a chart containing the attendance information and the labor hour information.
In another embodiment, the collaboration user may also be presented with an open API, and select a feature of interest, and then generate a people profile based on the selected feature of interest.
In addition, the cooperative user can fill in scenes (such as various application scenes of factories, prisons, tunnels, warehouses, ports, workshops, troops and the like) suitable for the personnel portrait, then adaptively recommend the features which the cooperative user needs to pay attention to through a user management system when the personnel portrait is obtained, further acquire the related information of the features, and generate the personnel portrait.
In another example, setting applicable scenes as vehicles in a factory, that is, setting target objects as vehicles, and setting features of interest in the vehicle image in advance as follows: the method comprises the following steps of analyzing vehicle information, a heat map of the vehicle, alarming records of the vehicle, mileage, attendance records, working hour statistics and electronic roll calling, wherein obviously, the vehicle does not have heart rate information and routing inspection records, and does not generate a vehicle figure corresponding to the heart rate information or the routing inspection records; when a time period request sent by a front-end user operation interface is received, the background server side obtains characteristic data concerned with the vehicle portrait from the database, and heart rate information and routing inspection records do not need to be obtained from the database, so that data transmission time is saved, and operation efficiency is improved.
In this embodiment, by counting various information of the tag and presenting the information at the front end, the user can conveniently and quickly know various information of the user, and then corresponding measures are taken according to the various information.
The embodiment of the present application provides a possible implementation manner, and acquiring state information associated with a target tag based on a received data request includes: querying the database for status information based on the data request; reading the state information by calling an Application Program Interface (API); the state information stored in the database is uploaded by the associated positioning base station and/or uploaded by the server; the state information in the positioning base station is periodically uploaded through a target label; the state information in the server is uploaded by the target tag over the connected network.
In an example of the application, the state information of the tag and the target object can be uploaded to the positioning base station by the target tag in real time or at intervals, and then the state information is stored in the database by the positioning base station, so that the user can conveniently interact with the software system to inquire and invoke. In another example of the present application, an execution subject of the present application is application software interacting with a user, the application software may be installed on an electronic device such as a smart phone, a tablet computer, or a smart watch, a target tag and the application software access to the same network, the target tag directly uploads state information to a server of the application software, and the server may store the state information in a database, so as to facilitate a user to interact with a software system to query and invoke.
In a possible implementation manner of the present application, the embodiment of the present application is applied to a user management system (i.e., the application software interacting with the user), where a background server of the user management system receives a data request from a web front end of the user management system, where the data request specifies a database to be accessed, feature data to be obtained, and a corresponding application program interface API to be called; then calling a specified API interface to a specified database to inquire specified characteristic data and reading the characteristic data.
The embodiment of the present application provides a possible implementation manner, where the state information includes at least two kinds of state information, and generating the target portrait according to the state information includes: reading a display sequence of at least two kinds of state information, wherein the display sequence is stored in a database associated with the target tag; and generating a target portrait according to the display sequence and the at least two kinds of state information.
In this embodiment, if the data request includes a target portrait for viewing a plurality of status information, where the plurality of status information at least includes 3 types of status information, a preset display order of the plurality of status information may be stored in the database as a default display order of the plurality of status information; after the data request is received, reading a display sequence in the database by calling an API (application programming interface) interface, and displaying the plurality of state information according to the display sequence. Further, the display sequence can be used to indicate an arrangement sequence of name lists of a plurality of status information, where the display of the name lists can be referred to in fig. 4, and fig. 4 is a schematic diagram of the name lists in the target representation provided according to an embodiment of the present application; the presentation order may also indicate an arrangement order of the visualization views corresponding to the plurality of status information.
Optionally, since the target representation is a representation in which a page displays a plurality of status information about the positioning tag, for example, a name list in which a plurality of status information are arranged longitudinally, the display order can be set by user-defining on the front-end operation interface, and can be adjusted arbitrarily, and after adjustment, the current display order is stored in the database. In one embodiment, behavior operations executed on a name list on a front-end operation interface are monitored, wherein the behavior operations at least comprise: dragging operation and top setting operation; if the target name in the name list is monitored to be dragged, moving the target name to a target position based on the target position in the name list indicated in the dragging operation; or if the object name is monitored to be subjected to the top setting operation, moving the object name to the top position of the name list; after the target name updates the location, the current rank order of the name list is saved.
For example, as shown in fig. 4, the name list includes personnel information, heat map analysis, alarm records, heart rate, mileage, attendance records, labor statistics, electronic roll names, and routing inspection records, and if the most interesting user is the labor statistics, the user can click the arrow pattern of "top" indicated by the name "labor statistics" by a mouse, move the "labor statistics" to the top position of the name list, or drag the moving block of the "labor statistics" to a target position by the mouse to change the sequence of the moving block, thereby facilitating the user to operate and look up.
In one example, at least two visual views corresponding to at least two pieces of state information are generated through a view model, the name arrangement sequence of the at least two pieces of state information stored in the database is read through calling an Application Program Interface (API), and the visual views are displayed according to the name list sequence.
In the above embodiment, the display order of the plurality of visual views is adjusted at any time according to the arrangement order in the name list, or the arrangement order of the names in the name list is adjusted by adjusting the display order of the visual views.
The embodiment of the present application provides a possible implementation manner, and if the state information includes position information, generating a target portrait according to the state information includes: if the number of the position coordinate points contained in the position information is not larger than a first preset number, drawing a heat map of the target label on a preset map associated with the target label based on the position information; if the number of the position coordinate points is larger than a first preset number, the execution comprises the following steps: a1, acquiring a first preset number of position coordinates, and drawing a heat map of the target label on a preset map based on the first preset number of position coordinates; step a2, if the number of the remaining position coordinate points contained in the position information is larger than a first preset number, circularly executing the step a1 until the number of the remaining position coordinate points contained in the position information is not larger than the first preset number; if the number of the remaining position coordinate points contained in the position information is not more than a first preset number, drawing a heat map of the target label based on the remaining position coordinates contained in the position information; the drawn heat map is used as a target image.
In one implementation manner of the scheme, the target tag is a UWB tag, after the background server acquires location point information, the location point information of the positioning tag in a time period (i.e., the preset time period) is returned to the front-end user operation interface, the UWB tag periodically sends the location point information to the UWB base station, and then the location point information is provided to the server through the network connection layer and periodically uploaded to the database through the server, wherein the UWB base station, the server, and the user management system are connected to the same network segment; searching the map, returning a plurality of position points (namely the first preset number) (for example, 5 ten thousand position points) each time, and if the number of the position coordinate points contained in the position information is judged not to be less than 5W, finishing searching all the position points; if the number of the next 5W points is not inquired, the reason for doing so is that the drawing of the heat map points has related performance problems, if a large amount of data is returned at one time, such as hundreds of thousands of data points, the problems of drawing blockage and the like can occur, and if the 5W points are divided into batches for inquiry and drawing, the drawing of the heat map points can be optimized; the personnel heat map is formed through the position data, and the distribution situation and the difference situation of the position data are visually known through the visualization of the heat map. For example, fig. 5 is a schematic diagram of a target portrait containing location information according to an embodiment of the present application, and as shown in fig. 5, a heat map analysis of a target tag requesting to acquire a preset time period of 16 # 06/2020 (the preset time period is in units of days) is requested, and the frequency of the tag activity area is visually shown by a color-progressive color bar.
In one embodiment of the present disclosure, if the status information includes warning information, generating a target representation according to the status information includes: determining the total alarm number contained in the alarm information; counting the alarm number corresponding to each sub-time period in a preset time period, and generating an alarm number statistical chart based on the total alarm number and the alarm number corresponding to each sub-time period according to a first preset form; and/or generating an alarm type proportion chart based on the total alarm number and the preset alarm types according to a second preset form; and taking the alarm quantity statistical chart and/or the alarm type proportion chart as a target portrait.
In one embodiment, the alarm information includes all the alarm numbers generated by the target tag in the time period, and the segmentation of the line graph point data is performed (i.e. the first preset form); and grouping according to the alarm types, and displaying the proportion of each alarm type by adopting a pie chart (namely the second preset form). Fig. 6 is a schematic diagram of a target portrait containing alarm information according to an embodiment of the present application, as shown in fig. 6, a person portrait requesting to generate target tag 111 No. 09/14 (a preset time period is in units of days) 2020 is required to count the total number of alarms of the target tag in the day by 2, then count the number of alarms generated every 3 hours (i.e., each sub-time period) in the day, display the number of alarms at about 3 pm by 2, and then display the number of alarms in each sub-time period in the day in a broken line graph manner; in addition, the preset alarm type at least comprises one of the following types: classifying all alarm numbers according to preset alarm types, obtaining 2 alarm numbers at 3 pm, namely an SOS alarm and a cut alarm, calculating the proportion of the occurrence frequency of each alarm to the total alarm number, and displaying the proportion through a pie chart (for example, the SOS alarm and the cut alarm respectively account for 50%); and displaying the alarm tag details of the 2 alarm quantities in a list mode, and exporting a corresponding Excel (table) file.
In one example, an electronic fence (e.g., a dangerous area or other prohibited area) is set, and when a person with a positioning tag enters the electronic fence, the base station detects that the location of the tag is in the electronic fence, and triggers an alarm to notify the user management system that a person enters the electronic fence at a certain time, so as to provide an important reference for a manager using the user management system.
In another example, when the remaining power of the location tag is less than a threshold (for example, 20%), an alarm message is triggered and notified to the administrator using the user management system through the server, and the tag needs to be charged, so that the administrator can know the power state of the tag at any time.
In another example, when a certain area of the plant (e.g., a crowd area, triggering a crowd alarm) limits a maximum of 5 people, and when 6 or more people (each wearing a tag) are present, the UWB base station detects that data from 6 or more tags is received, the base station automatically triggers the crowd alarm and sends the crowd alarm to the tags, records the alarm event, and then periodically uploads the alarm event to a database or a background server of the user management system.
In another example, if a certain area is provided with a plurality of UWB base stations, and one of the UWB base stations is disconnected, the positioning tag can only upload tag data to the other UWB base stations, and then an alarm event is automatically triggered to notify the UWB base station of the disconnection and report the disconnection to the database.
The embodiment of the present application provides a possible implementation manner, and if the state information includes heart rate information, acquiring state information associated with a target tag based on a received data request includes: and receiving a heart rate value pushed by the server through a websocket protocol based on the data request, wherein the heart rate value is uploaded to the server by the target label through the target network.
In one possible implementation, fig. 7 is a schematic diagram of a target representation with heart rate information provided according to an embodiment of the present application, and as shown in fig. 7, a positioning tag corresponding to all heart rates of a target object within a database time period (in units of days) is queried and shown in the form of a heart rate box graph. Specifically, 00 of a target object corresponding to a certain positioning label in 2019-08-09-2019-08-10: heart rate of 00, heart rate of 02:00 … 22:00, 24:00 by display; and the target subject is shown with 18 abnormal heart rates, the target subject's real-time heart rate is shown, e.g., currently 114/min, and a heart rate alarm threshold may also be shown, e.g., 46-120.
Generally, the normal value range of the heart rate is 60-100 times/minute, the real-time heart rate is obtained through a websocket of a server, and the specific steps are as follows: the positioning tag transmits heart rate information to a background server through a communication network in real time or at intervals, the server converts the heart rate information (such as byte arrays) transmitted by analysis hardware (namely the positioning tag) into specific tag ID and heart rate value which can be understood, associates the heart rate value and the tag ID, and stores the heart rate value and the tag ID into a database; after receiving a data request, pushing the data request to a web end of a user management system through a websocket (a full-duplex communication protocol based on TCP, which realizes full-duplex communication between a browser and a server); or, based on the received data request, reading the heart rate value from the database by calling the API.
In a possible implementation manner, the server side can perform operations such as increasing, deleting, modifying, checking and the like on the heart rate value through operating the database; then, the edited heart rate value is pushed to a web end of a user management system through a websocket protocol; in another implementation, the web side can operate the database, perform operations such as adding, deleting, modifying, checking and the like on the heart rate value, and then read the modified heart rate value in the database by calling the API interface based on the data request.
And inquiring the abnormal heart rate alarm frequency of the label in the database based on the heart rate statistic alarm threshold value. In this embodiment, the heart rate threshold of the tag may be set in advance and recorded in the database; the heart rate threshold value can also be the heart rate threshold value of the label which is continuously changed by the server according to the change of the real-time heart rate of the label through learning and then stored in the database.
The embodiment of the present application provides a possible implementation manner, and if the state information includes mileage data, generating a target portrait according to the state information includes: determining mileage data of the target label in a preset time period, wherein the mileage data comprises at least one of the following items: the total mileage data in a preset time period and the sub-mileage data corresponding to each sub-time period in the preset time period are respectively obtained; generating a mileage detail chart of the target label based on the mileage data according to a third preset form; and taking the mileage detail chart as a target portrait.
In one example, the mileage broken line graph of the positioning tag in the preset time period (i.e. the third preset form) is generated, the mileage information in the database is queried, and the set of the mileage data of the positioning tag and the mileage data corresponding to each time point (i.e. each sub-time period in the preset time period) are counted; and locating the mileage of the tag today (the current time period), and then generating a chart form to visually display the mileage details. For example, fig. 8 is a schematic diagram of a target portrait including mileage information according to an embodiment of the present application, as shown in fig. 8, if a person portrait of No. 9/14/2020 (the preset time period may be a custom time period, and may be a unit of day) is requested to be obtained, after receiving a data request, a total mileage of the tag in No. 9/2020 and a mileage of each sub-time period in the day are requested to be queried, and the total mileage of the day is displayed; the background server acquires that the total mileage of a positioning tag (such as a bracelet) in 14 th 9/2020 is 9.399KM, generates mileage of each sub-time period of 14 th day in a line graph form, and counts that the total mileage of the current time period of this day is 0.113 KM.
In an embodiment of the present application, a possible implementation manner is provided, where if the state information includes attendance information, generating a target portrait according to the state information, including: determining at least one of the first attendance record and the second attendance record; generating an attendance chart of the target label based on at least one of the first attendance record and the second attendance record; taking the attendance chart as a target portrait; the first attendance record is an attendance record of the target tag within a preset time period, and the first attendance record comprises at least one of the following: attendance, late arrival, early exit and absence; the second attendance record is an attendance record corresponding to the target tag in the current time period, and the second attendance record comprises at least one of the following: the time of arriving at the preset attendance area, the time of leaving the preset attendance area and the respective corresponding attendance states.
In this embodiment, attendance recording is performed on a target person (i.e., the target object), the target person wears a positioning tag, and a target area is set as an attendance area; if the person wearing the positioning tag enters the attendance checking area in each sub-time period of the preset time period, the position information of the person can be uploaded through the positioning tag, a first attendance record of the person entering the preset attendance checking area is calculated through the server, and the attendance checking area at least comprises at least one of the following items: attendance times, absence times, late arrival times and early exit times; and saving the first attendance state record in a database. Whether a positioning tag (namely a target person) reaches an attendance checking area within attendance checking time is recorded in a database, and attendance conditions, absence conditions, late arrival conditions or early exit conditions of the tag are counted; after the data request is received, the database is inquired, an attendance list is generated according to the attendance record, and the attendance list is displayed at the front end, so that the attendance condition of the personnel is monitored.
In an example, fig. 9 is a schematic diagram of a target representation containing attendance information according to an embodiment of the present application, and as shown in fig. 9, the attendance of a positioning tag in a certain month (a preset time period is in units of months) is counted, wherein the number of attendance is 23, the number of absence is 2, the number of early-return is 6, and the number of late-return is 9; in addition, the attendance checking condition (namely the second attendance record) of the current day (namely the current time period) of the positioning tag is counted, the actual arrival time 08:45:00 (normal) and the actual exit time 18:17:00 (normal) of the person reaching the attendance checking area on the current day are recorded, and a person image of the person on the attendance checking on the current day is generated and displayed on a web end.
The embodiment of the application provides a possible implementation manner, if the state information includes the working hour information, the working hour information includes working areas where the target tag enters within a preset time period, and corresponding duration information in each working area; generating the target representation from the state information includes: generating a working hour statistical chart of the target label based on the working hour information according to a sixth preset form; the man-hour statistical chart is used as a target image.
In this embodiment, if the target person is subjected to the man-hour statistics, the target person wears the positioning tag, and sets the target area (i.e., the preset work area) as the work area; if the person wearing the positioning tag enters the target area, the position information of the person can be uploaded through the positioning tag, whether the person is located in the target area is judged based on the position information of the person, if yes, the starting time of the target person entering the target area and the ending time of the target person leaving the target area are recorded, then the times of the target person entering the target area and the time span of each time are counted, and the times of the target person entering the target area and the time span of each time are recorded in a database; after receiving the data request, inquiring the man-hour information, generating a corresponding chart, and deriving an attendance Excel table, wherein the table lists information such as the ID, the man-hour counting date, the week, the man-hour counting time period, the position, the working area, the entering time, the late time, the leaving time, the man-hour counting and the like of the target object.
In one possible implementation manner, if a target person enters a plurality of working areas within a preset time period, counting working hours respectively corresponding to the target person in the plurality of working areas, and then selecting a preset plurality of working areas from the plurality of working areas, wherein the preset working areas are used for indicating that the working hours of the target person staying in the preset working areas are greater than or equal to the preset duration or reserving a preset number of working areas; and then generating a person portrait of the target person in the forms of a histogram, a pie chart, a table and the like based on the preset work areas and the stay time information of the preset work areas.
In a preferred embodiment, fig. 10 is a schematic diagram of an object image containing man-hour information provided according to an embodiment of the present invention, and as shown in fig. 10, the man-hour information is shown by a time histogram and a pie chart (i.e., the sixth preset form). When the time span from the time when the query tag 111 is requested at 2020/09/14 (the preset time period is in days), after the data request is received, the time span from the time when the tag enters the work area to the time when the tag leaves the work area is queried, and if the time span of the time when the tag stays in one work area exceeds 30 seconds is obtained, the time span information when the time span of the time when the tag stays in one work area is not concerned, the method is not limited in this embodiment of the present application, and the time when the tag stays in the work area may be concerned, and the time when the tag stays in the work area is not limited. Shown in FIG. 10 are workplace 1 and workplace 2 (i.e., the target areas described above), sorted and displayed in reverse order; counting the total time of the tag personnel in all the working areas and the working hours of each working area, namely, the number of times that the target personnel stay in the working area 1 is 3, the stay time of each time is 7s, 6s and 17s, and the total stay time in the working area 1 is 30 s; the total time of staying in the working area 2 is 4min 2 s; and then calculating the proportion of the working hours of each working area to the total time, generating a pie chart and working hour statistics, sequencing in a reverse order and exporting the results through an excel table.
The embodiment of the present application provides a possible implementation manner, and if the state information includes task information, generating the target portrait according to the state information includes: inquiring task information of a target label in the task information within a preset time period and/or task information within a current time period; and generating the target portrait based on the task information of the target label in the preset time period and/or the task information in the current time period.
In a possible implementation manner of the scheme, by taking the inspection task of a target person wearing a label as an example, the number of all inspection tasks related to the label in a certain month (a preset time period can be in the unit of month, week and day) is inquired, if the label enters all inspection points related to the inspection tasks, the inspection tasks are finished, otherwise, the inspection tasks are not finished; inquiring the total record of the time of the label for entering and exiting the inspection point of each inspection task in a preset time period so as to carry out inspection result statistics; the export button can be manually clicked, and the inspection result is exported to an Excel file to serve as an important basis for quantitative management and performance assessment.
In an example, fig. 11 is a schematic diagram of a target image including a polling task according to an embodiment of the present application, and as shown in fig. 11, the query tag 111 indicates a polling task completion status in No. 09/14 of 2020, where the total polling task number is 2, the completed task number is 1, and if the completed task number is 1, the task completion rate is 50%, a polling record detail list is counted, task names (test polling, polling 2) of the tag 111 are listed, polling time is checked, if a task is completed, task execution time, task execution status, polling status, and the like are recorded, and Excel is derived through an Excel table.
In another possible implementation manner of the present disclosure, taking a roll call task of a target person wearing a tag as an example, a task completion state corresponding to each sub-time period of the target tag in a time period of the day is queried, where the task completion state at least includes one of the following items: not started, not completed, and completed; and generating a task detail chart of the target label based on the task completion state according to a preset form to obtain the target portrait.
In another example, taking the example of roll calling a target person wearing a positioning tag, the target person may obtain check-in information (i.e. roll calling result) of the target person by operating the positioning tag, for example, by voice input or entering a target network area, and the like, where the check-in information includes at least one of the following items: the system comprises a tag name, a task date, a task name (middle class, night class and the like), a task roll calling time, a roll calling place, a roll calling state, a roll calling completion time and the like, and uploads sign-in information to a database. After receiving the data request, inquiring the electronic roll-call result. Fig. 12 is a schematic diagram of a target image containing roll call information according to an embodiment of the present application, as shown in fig. 12, all roll call tasks related to positioning tags today query whether the tags are successful in roll call, whether the tags have reached the target area, the roll call times, the number of completed tasks, and the number of uncompleted tasks, generate a detailed list of roll call results, derive the roll call list Excel file, and display the states of reached, not reached, and not started at the front end. For example, in fig. 12, the middle shift and the early shift are both incomplete, the late shift is not started, and the number of the tasks for roll call, the number of the completed tasks, and the number of the incomplete tasks of the target object (zhao worker) in this month are 43, 10, and 33, respectively; and displaying the electronic roll call detail in this month.
The embodiment of the application provides a possible implementation manner, and the triggering manner of the data request includes at least one of the following: receiving a data request triggered by a user; a preset time interval is reached. In this embodiment, a user may request to view a target portrait by operating on a front-end operation interface, for example, setting a trigger button, and after receiving a data request, a background of the user management system triggers the background to read data in the data, so as to generate the target portrait; optionally, a trigger condition for generating the target portrait at regular time is set on the front-end operation interface, and after the current time reaches the set time, the state information of the preset time period is automatically acquired, and the target portrait is generated.
The embodiment of the present application provides a possible implementation manner, and after generating a target portrait according to state information, the implementation manner further includes: and periodically updating the target image according to a third preset time. To reduce memory, after the target representation is periodically generated, the target representation is periodically updated based on user requirements, the final target representation is displayed at the front end of the display, and the finally generated target representation is saved.
According to the embodiment, after the person portrait is obtained, corresponding operations (which can be directed to different scenes) can be performed according to the person portrait: (1) after the personnel portraits of the personnel are obtained, post scheduling, task allocation, personnel investigation and the like can be carried out according to the personnel portraits of the personnel; (2) for example, in the product of the self-service public inspection method, the police officer distribution situation of each region can be determined based on the personnel portrait of each criminal, and corresponding management suggestions for each criminal are generated.
Preferably, the embodiment of the present application may store the basic information into the database through a CS (Client Server) architecture, and display a final result obtained by querying, combining, and calculating the database data through a BS (Browser Server) structure. In another embodiment, the data is queried and displayed through the CS end and is pushed to the BS end through the websocket for displaying.
Through the embodiment, the personnel portrait is a visual interface for rapidly knowing, counting and calculating personnel attributes in the positioning industry at present, and the personnel portrait is not compared on site by manpower, so that the personnel portrait is calculated in a more convenient and accurate mode. The system longitudinally displays the selected personnel information in the form of portrait, and comprises: personnel information, heat map analysis, alarm recording, heart rate, mileage, attendance recording, working hour statistics, electronic roll calling and routing inspection recording. The multiple information of the statistical label is convenient for a user to know various information of personnel more conveniently and make corresponding measures. Compared with the prior art, the method and the device have the advantages that the page display is more perfect, and the information is more detailed and clear at a glance. And performing later research and discussion on key data in a mode of exporting Excel through a data list. The method is more convenient on the basis of back-end implementation, and the result is obtained by directly inquiring the database without directly communicating with hardware.
It should be noted that, in practical applications, all the possible embodiments described above may be combined in a combined manner at will to form possible embodiments of the present application, and details are not described here again.
It should be noted that the presentation form of the target representation is not limited in the embodiment of the present application, and any possible presentation form is within the protection scope of the embodiment of the present application.
Based on the method for generating the target portrait provided by the above embodiments, the embodiment of the present application further provides a device for generating the target portrait based on the same inventive concept.
FIG. 13 is a block diagram of an apparatus for generating a target representation according to an embodiment of the present application, as shown in FIG. 13, the apparatus including:
an obtaining module 130, configured to obtain status information associated with the target tag based on a received data request, where the data request is used to request to view a target portrait including status information within a preset time period, and the status information at least includes one of: tag state information of the target tag, state information of the target object associated with the target tag;
the generating module 132 is connected to the acquiring module 130, and is used for generating the target portrait according to the status information.
A possible implementation manner is provided in the embodiment of the present application, and the apparatus further includes:
the query module is used for querying first attribute information of the target tag and second attribute information of the target object based on the data request before acquiring the state information associated with the target tag based on the received data request;
wherein the first attribute information includes at least one of: the method comprises the following steps of firstly, identifying a first ID of a target label, the label electric quantity of the target label, the working state of the target label and the application scene of the target label;
the second attribute information includes at least one of: a second ID of the target object, an avatar of the target object, and a functional department in which the target object works.
A possible implementation manner is provided in the embodiment of the present application, and the generating module 132 is specifically configured to:
a target representation is generated based on the first attribute information, the second attribute information, and the status information.
The embodiment of the present application provides a possible implementation manner, and the obtaining module 130 specifically includes at least one of the following:
a first obtaining unit configured to obtain location information associated with a target tag based on a data request;
the second acquisition unit is used for acquiring alarm information associated with the target label based on the data request;
a third obtaining unit, configured to obtain mileage data associated with the target tag based on the data request;
the fourth acquisition unit is used for acquiring the heart rate information associated with the target label based on the data request;
the fifth acquisition unit is used for acquiring attendance information associated with the target tag based on the data request;
a sixth acquiring unit configured to acquire man-hour information associated with the target tag based on the data request;
and the seventh acquisition unit is used for acquiring the task information associated with the target label based on the data request.
A possible implementation manner is provided in the embodiment of the present application, and the obtaining module 130 specifically includes:
the first query unit is used for querying the state information in the database based on the data request;
the first reading unit is used for reading the state information by calling an Application Program Interface (API);
the state information stored in the database is uploaded by the associated positioning base station and/or uploaded by the server; the state information in the positioning base station is periodically uploaded through a target label; the state information in the server is uploaded by the target tag over the connected network.
A possible implementation manner is provided in the embodiment of the present application, where the state information includes at least two kinds of state information, and the generating module 132 specifically includes:
the second reading unit is used for reading the display sequence of at least two kinds of state information, wherein the display sequence is stored in a database associated with the target tag;
the first display unit is used for generating a target portrait according to the display sequence and at least two kinds of state information.
In the embodiment of the present application, a possible implementation manner is provided, and when the state information includes the position information, the generating module 132 specifically includes:
the drawing unit is used for drawing a heat map of the target label on a preset map associated with the target label based on the position information when the number of position coordinate points contained in the position information is not more than a first preset number;
the drawing unit is further used for executing the following steps when the number of the position coordinate points is larger than a first preset number:
a1, acquiring a first preset number of position coordinates, and drawing a heat map of the target label on a preset map based on the first preset number of position coordinates;
step a2, when the number of the remaining position coordinate points contained in the position information is larger than a first preset number, circularly executing the step a1 until the number of the remaining position coordinate points contained in the position information is not larger than the first preset number;
when the number of the remaining position coordinate points contained in the position information is not more than a first preset number, drawing a heat map of the target label based on the remaining position coordinates contained in the position information;
a first determination unit configured to take the drawn heat map as a target representation.
In the embodiment of the present application, a possible implementation manner is provided, and when the state information includes the warning information, the generating module 132 specifically includes:
the second determining unit is used for determining the total alarm number contained in the alarm information;
the first generation unit is used for counting the alarm number corresponding to each sub-time period in the preset time period and generating an alarm number statistical chart based on the total alarm number and the alarm number corresponding to each sub-time period according to a first preset form; and/or the presence of a gas in the gas,
generating an alarm type proportion chart based on the total alarm number and the preset alarm types according to a second preset form;
and the third determining unit is used for taking the alarm quantity statistical chart and/or the alarm type proportion chart as a target portrait.
A possible implementation manner is provided in the embodiment of the present application, and when the state information includes heart rate information, the obtaining module 130 is specifically configured to:
and receiving a heart rate value pushed by the server through a websocket protocol based on the data request, wherein the heart rate value is uploaded to the server by the target label through the target network.
In the embodiment of the present application, a possible implementation manner is provided, and when the state information includes mileage data, the generating module 132 specifically includes:
a fourth determining unit, configured to determine mileage data of the target tag within a preset time period, where the mileage data includes at least one of: the total mileage data in a preset time period and the sub-mileage data corresponding to each sub-time period in the preset time period are respectively obtained;
the second generation unit is used for generating a mileage detail chart of the target label based on the mileage data according to a third preset form;
and a fifth determining unit for using the mileage detail chart as a target portrait.
A possible implementation manner is provided in the embodiment of the present application, and when the state information includes attendance information, the generating module 132 specifically includes:
a sixth determining unit, configured to determine at least one of the first attendance record and the second attendance record;
the third generation unit is used for generating an attendance chart of the target label based on at least one of the first attendance record and the second attendance record;
a seventh determining unit, configured to take the attendance chart as a target portrait;
the first attendance record is an attendance record of the target tag within a preset time period, and the first attendance record comprises at least one of the following: attendance, late arrival, early exit and absence;
the second attendance record is an attendance record corresponding to the target tag in the current time period, and the second attendance record comprises at least one of the following: the time of arriving at the preset attendance area, the time of leaving the preset attendance area and the respective corresponding attendance states.
In the embodiment of the present application, a possible implementation manner is provided, when the state information includes man-hour information, the man-hour information includes working areas where the target tag enters within a preset time period, and duration information respectively corresponding to each working area, and the generating module 132 specifically includes:
a fourth generation unit, configured to generate a labor hour statistical chart of the target label based on the labor hour information according to a sixth preset form;
and an eighth determining unit, configured to use the labor hour statistical chart as a target portrait.
In the embodiment of the present application, a possible implementation manner is provided, and when the state information includes task information, the generating module 132 specifically includes:
the second query unit is used for querying the task information of the target tag in the task information within a preset time period and/or the task information within the current time period;
and the fifth generating unit is used for generating the target portrait based on the task information of the target label in the preset time period and/or the task information in the current time period.
The embodiment of the present application provides a possible implementation manner, and the apparatus is further configured to:
inquiring task completion states corresponding to the sub-time periods of the target tag in the current day time period, wherein the task completion states at least comprise one of the following items: not started, not completed, and completed; generating a second task detail chart of the target label based on the task completion state according to an eighth preset form; and taking the second task detail chart as a target portrait.
The embodiment of the application provides a possible implementation manner, and the triggering manner of the data request includes at least one of the following: receiving a data request triggered by a user; a preset time interval is reached.
A possible implementation manner is provided in the embodiment of the present application, and the apparatus further includes: and the updating module is used for periodically updating the target image according to a third preset time.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Based on the same inventive concept, the embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the computer program to perform the target representation generating method of any one of the above embodiments.
In an exemplary embodiment, there is provided an electronic device, as shown in fig. 14, an electronic device 1400 shown in fig. 14 including: a processor 1401, and a memory 1403. Wherein the processor 1401 and the memory 1403 are connected, such as via a bus 1402. Optionally, the electronic device 1400 may also include a transceiver 1404. It should be noted that the transceiver 1404 is not limited to one in practical application, and the structure of the electronic device 1400 is not limited to the embodiment of the present application.
Processor 1401 may be a CPU (Central Processing Unit), general purpose Processor, DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), FPGA (Field Programmable Gate Array), or other Programmable logic device, transistor logic, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 1401 may also be a combination that performs a computing function, e.g., comprising one or more microprocessors, a combination of DSPs and microprocessors, etc.
Bus 1402 may include a path that conveys information between the aforementioned components. The bus 1402 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 1402 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 14, but this is not intended to represent only one bus or type of bus.
The Memory 1403 may be, but is not limited to, a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 1403 is used for storing application code for performing the present solution and is controlled in execution by the processor 1401. The processor 1401 is arranged to execute application program code stored in the memory 1403 to implement the content shown in the previous method embodiments.
Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 14 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
Based on the same inventive concept, the present application further provides a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the target representation generating method of any one of the above embodiments when running.
It can be clearly understood by those skilled in the art that the specific working processes of the system, the apparatus, and the module described above may refer to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, the detailed description is omitted here.
Those of ordinary skill in the art will understand that: the technical solution of the present application may be essentially or wholly or partially embodied in the form of a software product, where the computer software product is stored in a storage medium and includes program instructions for enabling an electronic device (e.g., a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application when the program instructions are executed. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Alternatively, all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (an electronic device such as a personal computer, a server, or a network device) associated with program instructions, which may be stored in a computer-readable storage medium, and when the program instructions are executed by a processor of the electronic device, the electronic device executes all or part of the steps of the method described in the embodiments of the present application.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments can be modified or some or all of the technical features can be equivalently replaced within the spirit and principle of the present application; such modifications or substitutions do not depart from the scope of the present application.

Claims (10)

1. A method for generating a target representation, comprising:
obtaining state information associated with a target label based on a received data request, wherein the data request is used for requesting to view a target portrait containing the state information within a preset time period, and the state information at least comprises one of the following: tag state information of the target tag, state information of a target object associated with the target tag;
and generating the target portrait according to the state information.
2. The method of claim 1, wherein prior to obtaining the status information associated with the target tag based on the received data request, the method further comprises:
querying first attribute information of the target tag and second attribute information of the target object based on the data request;
wherein the first attribute information includes at least one of: the first ID of the target tag, the tag electric quantity of the target tag, the working state of the target tag and the application scene of the target tag;
the second attribute information includes at least one of: a second ID of the target object, an avatar of the target object, and a functional department in which the target object works.
3. The method of claim 2, wherein said generating the target representation from the state information comprises:
and generating the target portrait according to the first attribute information, the second attribute information and the state information.
4. The method according to any of claims 1-3, wherein the obtaining of the status information associated with the target tag based on the received data request comprises at least one of:
obtaining location information associated with the target tag based on the data request;
acquiring alarm information associated with a target label based on the data request;
acquiring mileage data associated with the target tag based on the data request;
acquiring heart rate information associated with the target tag based on the data request;
acquiring attendance information associated with the target tag based on the data request;
acquiring man-hour information associated with the target tag based on the data request;
task information associated with the target tag is obtained based on the data request.
5. The method of any of claims 1-4, wherein obtaining the status information associated with the target tag based on the received data request comprises:
querying a database for the status information based on the data request;
reading the state information by calling an Application Program Interface (API);
the state information stored in the database is uploaded by the associated positioning base station and/or uploaded by the server; the state information in the positioning base station is periodically uploaded through the target label; the state information in the server is uploaded by the target tag through a connected network.
6. The method of claim 4, wherein the status information includes at least two types of status information, and wherein generating the target representation from the status information includes:
reading a display sequence of the at least two types of state information, wherein the display sequence is stored in a database associated with the target tag;
and generating the target portrait according to the display sequence and the at least two kinds of state information.
7. The method according to any of claims 1-6, wherein if the status information comprises location information,
generating the target representation based on the status information, including:
if the number of the position coordinate points contained in the position information is not larger than a first preset number, drawing a heat map of the target label on a preset map associated with the target label based on the position information;
if the number of the position coordinate points is larger than the first preset number, the execution comprises the following steps:
a1, acquiring the position coordinates of the first preset number, and drawing a heat map of the target label on the preset map based on the position coordinates of the first preset number;
step a2, if the number of the remaining position coordinate points contained in the position information is greater than the first preset number, circularly executing the step a1 until the number of the remaining position coordinate points contained in the position information is not greater than the first preset number;
if the number of the remaining position coordinate points contained in the position information is not greater than the first preset number, drawing a heat map of the target label based on the remaining position coordinates contained in the position information;
and using the drawn heat map as the target portrait.
8. An apparatus for generating a target image, comprising:
an obtaining module, configured to obtain status information associated with a target tag based on a received data request, where the data request is used to request to view a target portrait including the status information within a preset time period, and the status information at least includes one of: tag state information of the target tag, state information of a target object associated with the target tag;
and the generating module is used for generating the target portrait according to the state information.
9. An electronic device comprising a processor and a memory, wherein the memory has stored therein a computer program, the processor being configured to execute the computer program to perform the target representation generation method of any of claims 1 to 7.
10. A computer storage medium, in which a computer program is stored, wherein the computer program is configured to execute the target representation generation method of any one of claims 1 to 7 when running.
CN202011091565.7A 2020-10-13 2020-10-13 Target portrait generation method and device, electronic equipment and computer storage medium Pending CN112348315A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011091565.7A CN112348315A (en) 2020-10-13 2020-10-13 Target portrait generation method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011091565.7A CN112348315A (en) 2020-10-13 2020-10-13 Target portrait generation method and device, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN112348315A true CN112348315A (en) 2021-02-09

Family

ID=74360720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011091565.7A Pending CN112348315A (en) 2020-10-13 2020-10-13 Target portrait generation method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN112348315A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580625A (en) * 2021-06-17 2023-01-06 中移雄安信息通信科技有限公司 Base station data sharing method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580625A (en) * 2021-06-17 2023-01-06 中移雄安信息通信科技有限公司 Base station data sharing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
EP2481236B1 (en) Method to reduce database load in real time location systems
CN107370983B (en) method and device for acquiring track of video monitoring system
TW563039B (en) Method, system, and program for mining data in a personal information manager database
Do et al. The places of our lives: Visiting patterns and automatic labeling from longitudinal smartphone data
US10524093B2 (en) User description based on contexts of location and time
CN111654823B (en) Information pushing method and device
KR102121361B1 (en) Method and device for identifying the type of geographic location where the user is located
CN103994764B (en) Portable positioning system
US9307356B2 (en) User description based on a context of travel
US10433151B2 (en) Method for recognizing a mobile device in a site
US9154609B2 (en) Remote virtual supervision system
CN106663258A (en) Measurement of multi-screen internet user profiles, transactional behaviors and structure of user population through a hybrid census and user based measurement methodology
US9462416B2 (en) Information processing system, management server and information processing method
CN110545317B (en) Grid-perception-based power-assisted region division small service method and device
CN103209386B (en) For pointing out the tracked mobile terminal of user and method thereof
CN108494965A (en) Based reminding method, device and computer readable storage medium
CN112348315A (en) Target portrait generation method and device, electronic equipment and computer storage medium
US20170308597A1 (en) Systems and methods for enabling situational awareness for events via data visualization
Mazokha et al. MobIntel: Sensing and analytics infrastructure for urban mobility intelligence
CN110516017A (en) Location information processing method, device, electronic equipment and storage medium based on terminal device
CN115017400A (en) Application APP recommendation method and electronic equipment
CN113743547A (en) Asset supervision method and platform based on RFID (radio frequency identification) tag and storage medium
CN105592547A (en) Data generation method, server and positioning method
CN111698645A (en) Position information acquisition method and device, computer equipment and storage medium
CN109039827B (en) Social software hotspot acquisition system and method based on positions

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