Positioning method and device for monitoring, storage medium and computer equipment
Technical Field
The present invention relates to the field of positioning and monitoring applications, and in particular, to a positioning method and apparatus, a storage medium, and a computer device for monitoring.
Background
At present, special crowds need to be monitored in many times, and the position information of the monitored crowds needs to be obtained in real time. For example, parents and teachers need to be responsible for the safety of children, children and nursing home managers need to be responsible for the safety of the old, police or prison law enforcement personnel need to know the real-time location of criminals or need to limit the activities of criminals in restricted areas, and other people need to know the location of objects to be monitored in real time or need to have objects to be monitored in restricted areas. The object at the monitored position is recorded as a person under guardianship, and the object which monitors the position of the person under guardianship and receives alarm information is recorded as a guardian. In the current society, a real-time position monitoring and safety warning mechanism for a group to be monitored is relatively lacked, and monitoring means in the prior art are many, but the problems of high cost of monitoring equipment, long monitoring implementation period, relatively dependence on manpower and the like generally exist.
Disclosure of Invention
The embodiment of the invention provides a positioning method and device for monitoring, a storage medium and computer equipment, which aim to solve the problems that although the existing methods for monitoring the real-time position of a monitored person are many in the prior art, the methods generally have high monitoring equipment cost, long monitoring implementation period and high dependence on manpower.
In order to solve the above technical problem, a first technical solution adopted in the embodiments of the present invention is as follows:
a positioning method for monitoring, comprising: acquiring current corresponding spatial position data and wireless spatial signal data of a monitored person, wherein the wireless spatial signal data comprises GPS signal data; judging whether the monitored person is located in a preset safety area or not according to the space position data and the wireless space signal data; if not, alarm information is sent out, and the alarm information comprises information for requiring the monitored person to return to the preset safety zone.
Optionally, the acquiring the current corresponding spatial position data and wireless spatial signal data of the monitored person includes: and acquiring the current corresponding spatial position data and wireless spatial signal data of the monitored person at intervals of preset interval duration.
Optionally, the acquiring the current corresponding spatial position data and wireless spatial signal data of the monitored person includes: detecting whether the walking steps of the monitored person exceed a preset step threshold value; and if so, acquiring the current corresponding spatial position data and wireless spatial signal data of the monitored person.
Optionally, the determining whether the monitored person is located within a preset safety region according to the spatial position data and the wireless spatial signal data includes: associating the wireless spatial signal data with the spatial position data, and taking the wireless spatial signal data as a target fingerprint of the spatial position data; acquiring fingerprint data stored in a fingerprint signal base, and acquiring a second fingerprint with the highest matching degree with the target fingerprint in the fingerprint data; taking the spatial position corresponding to the POI corresponding to the second fingerprint as the spatial position corresponding to the monitored person; the fingerprint signal base stores a plurality of fingerprint data and a plurality of spatial position data, and the plurality of fingerprint data and the plurality of spatial position data are matched in a one-to-one correspondence mode.
Optionally, the sending the alarm information includes: and sending alarm notification information to the mobile terminal carried by the person under guardianship, wherein the alarm notification information can enable the mobile terminal carried by the person under guardianship to ring, vibrate and play voice.
Optionally, after the sending the alarm information, the method includes: and sending a notification short message to a mobile terminal carried by the guardian, wherein the notification short message comprises information notifying that the monitored person exceeds the preset safe area.
Optionally, the sending the alarm information includes: and sending alarm information to a third-party safety mechanism, wherein the alarm information comprises information that the monitored person exceeds the preset safety area.
In order to solve the above technical problem, a second technical solution adopted in the embodiments of the present invention is as follows:
a positioning device for monitoring, comprising: the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring current corresponding spatial position data and wireless spatial signal data of a monitored person, and the wireless spatial signal data comprises GPS signal data; the judging module is used for judging whether the monitored person is positioned in a preset safety region or not according to the spatial position data and the wireless spatial signal data; and the alarm module is used for sending out alarm information when the monitored person is not located in a preset safety zone, wherein the alarm information comprises information for requiring the monitored person to return to the preset safety zone.
In order to solve the above technical problem, a third technical solution adopted in the embodiments of the present invention is as follows:
a computer-readable storage medium, on which a computer program is stored which, when executed, implements a positioning method for monitoring as described above.
In order to solve the above technical problem, a fourth technical solution adopted in the embodiments of the present invention is as follows:
a computer apparatus comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the positioning method for monitoring as described above when executing the computer program.
The embodiment of the invention has the beneficial effects that: different from the situation in the prior art, the embodiment of the invention obtains the current corresponding spatial position data and wireless spatial signal data of the monitored person, judges whether the monitored person is located in the preset safe region according to the spatial position data and the wireless spatial signal data, and sends out the alarm information when the monitored person is not located in the preset safe region, thereby solving the problems that the existing methods for monitoring the real-time position of the monitored person in the prior art are high in cost of monitoring equipment, long in monitoring implementation period and relatively dependent on manpower.
Drawings
Fig. 1 is a flowchart illustrating an implementation of an embodiment of a positioning method for monitoring according to a first embodiment of the present invention;
FIG. 2 is a partial structural frame diagram of an embodiment of a positioning apparatus for monitoring according to a second embodiment of the present invention;
FIG. 3 is a partial structural framework diagram of an embodiment of a computer-readable storage medium according to a third embodiment of the present invention;
fig. 4 is a partial structural framework diagram of an embodiment of a computer device according to a fourth embodiment of the present invention.
Detailed Description
Example one
Referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of a positioning method for monitoring according to an embodiment of the present invention, which can be obtained by referring to fig. 1, and the positioning method for monitoring according to the present invention includes the following steps:
step S101: acquiring current corresponding spatial position data and wireless spatial signal data of a monitored person, wherein the wireless spatial signal data comprises GPS signal data.
In this step, the positioning algorithm adopts a digital self-owned indoor positioning method based on a space clutter signal, which can realize accurate positioning of 5 to 10 meters in a complex indoor environment, wherein the space clutter comprises wireless space signals which are common in daily life scenes and have wide coverage, such as WiFi, base station signals, bluetooth signals, geomagnetic signals, light intensity signals, GPS signals and the like.
In this step, the acquired data includes two types, one type is wireless space signal data, including data that can be simply acquired by a sensor, such as WiFi signals, bluetooth signals, base station signals, geomagnetic signals, and GPS signals; one type is the location description information of the current collection point, which contains and possibly contains more location description information, such as description information of province, street, business district, building, floor and other points.
In this step, the device for acquiring signals is a terminal device which can be connected to the internet and is provided with a sensor capable of acquiring wireless space signals. The sensors include or partially include but are not limited to a WiFi search and connection module, a bluetooth search and connection module, a base station search and connection module, a geomagnetic sensor, a height sensor, a light intensity sensor, a GPS search and connection module, and the like.
Step S102: and judging whether the monitored person is located in a preset safety region or not according to the spatial position data and the wireless spatial signal data.
In this step, the guardian can define a safety zone suitable for the monitored object in advance according to the requirement of the guardian. For example, parents of children can define their own homes or buildings and districts as safe areas of children, children can define their homes, buildings and districts as safe areas for old people, teachers can define schools as safe activity areas for students, and policemen can define the activity range of criminals as a certain city or a certain area.
In this step, after defining the safety area, the mobile terminal may be used to collect the wireless spatial signal data at certain distance intervals in the safety area. The distance between every position of gathering is decided according to the demand precision, and if the teacher will strictly restrict the student and can only move in the school scope in the period of having a lesson, can carry out intensive collection to the school, and the position distance of every collection shortens, gathers more points in same space, can promote the sensitivity of position control like this. If the police monitors whether the criminal has a city or a political region in the range of action, relatively large positioning errors are allowed, and a sparse acquisition mode can be adopted to save labor and time cost.
Step S103: and if the monitored person is not located in a preset safety zone, sending alarm information, wherein the alarm information comprises information for requiring the monitored person to return to the preset safety zone.
Step S104: and if the monitored person is located in the preset safety zone, not sending out alarm information, and continuously judging whether the monitored person is located in the preset safety zone.
In this embodiment, optionally, the acquiring the current corresponding spatial position data and wireless spatial signal data of the monitored person includes: and acquiring the current corresponding spatial position data and wireless spatial signal data of the monitored person at intervals of preset interval duration, so that the monitored person does not need to be monitored in real time, and the monitoring cost is reduced.
In this embodiment, optionally, the acquiring the current corresponding spatial position data and wireless spatial signal data of the monitored person includes:
firstly, detecting whether the walking steps of the monitored person exceed a preset step threshold value,
secondly, if the walking steps of the monitored person exceed a preset step threshold, acquiring the current corresponding spatial position data and wireless spatial signal data of the monitored person. The walking distance of the monitored person can be indirectly obtained by detecting the walking step number of the monitored person, and when the walking distance of the monitored person exceeds a preset distance threshold value, the current corresponding spatial position data and wireless spatial signal data need to be obtained so as to judge whether the monitored person walks out of a preset safety region.
In this embodiment, optionally, the determining, according to the spatial position data and the wireless spatial signal data, whether the monitored person is located within a preset safety region includes:
first, the wireless spatial signal data and the spatial location data are associated, and the wireless spatial signal data is used as a target fingerprint of the spatial location data.
Secondly, fingerprint data stored in a fingerprint signal base are obtained, and a second fingerprint with the highest matching degree with the target fingerprint in the fingerprint data is obtained.
And thirdly, taking the spatial position corresponding to the POI corresponding to the second fingerprint as the spatial position corresponding to the monitored person. The fingerprint signal base stores a plurality of fingerprint data and a plurality of spatial position data, and the plurality of fingerprint data and the plurality of spatial position data are matched in a one-to-one correspondence mode.
In this embodiment, optionally, the sending the alarm information includes: and sending alarm notification information to the mobile terminal carried by the person under guardianship, wherein the alarm notification information can enable the mobile terminal carried by the person under guardianship to ring, vibrate and play voice.
In this embodiment, optionally, after the sending the alarm information, the method includes: and sending a notification short message to a mobile terminal carried by the guardian, wherein the notification short message comprises information notifying that the monitored person exceeds the preset safe area.
In this embodiment, optionally, the sending the alarm information includes: and sending alarm information to a third-party safety mechanism, wherein the alarm information comprises information that the monitored person exceeds the preset safety area.
According to the embodiment of the invention, the current corresponding spatial position data and wireless spatial signal data of the monitored person are obtained, whether the monitored person is located in the preset safety region is judged according to the spatial position data and the wireless spatial signal data, and when the monitored person is not located in the preset safety region, the alarm information is sent out, so that the problems that in the prior art, although the existing methods for monitoring the real-time position of the monitored person are many, the monitoring equipment cost is high, the monitoring implementation period is long and the monitoring implementation period is dependent on manpower are solved.
Example two
Referring to fig. 2, fig. 2 is a partial structural frame diagram of a positioning apparatus for monitoring according to an embodiment of the present invention, which can be obtained by referring to fig. 2, wherein the positioning apparatus 100 for monitoring according to the present invention includes:
the acquiring module 110 is configured to acquire current corresponding spatial position data and wireless spatial signal data of a monitored person, where the wireless spatial signal data includes GPS signal data.
The judging module 120 is configured to judge whether the monitored person is located within a preset safety region according to the spatial position data and the wireless spatial signal data.
An alarm module 130, configured to send out alarm information when the monitored person is not located in a preset safety zone, where the alarm information includes information that the monitored person is required to return to the preset safety zone.
According to the embodiment of the invention, the current corresponding spatial position data and wireless spatial signal data of the monitored person are obtained, whether the monitored person is located in the preset safety region is judged according to the spatial position data and the wireless spatial signal data, and when the monitored person is not located in the preset safety region, the alarm information is sent out, so that the problems that in the prior art, although the existing methods for monitoring the real-time position of the monitored person are many, the monitoring equipment cost is high, the monitoring implementation period is long and the monitoring implementation period is dependent on manpower are solved.
EXAMPLE III
Referring to fig. 3, a computer-readable storage medium 10 according to an embodiment of the present invention can be seen, where the computer-readable storage medium 10 includes: ROM/RAM, magnetic disks, optical disks, etc., on which a computer program 11 is stored, which computer program 11, when executed, implements a positioning method for monitoring as described in the first embodiment. Since the positioning method for monitoring has already been described in detail in the first embodiment, the description is not repeated here.
According to the positioning method for monitoring, which is implemented by the embodiment of the invention, whether the monitored person is located in a preset safety region is judged by acquiring the current corresponding spatial position data and wireless spatial signal data of the monitored person and according to the spatial position data and the wireless spatial signal data, and when the monitored person is not located in the preset safety region, alarm information is sent out, so that the problems that in the prior art, although the existing methods for monitoring the real-time position of the monitored person are many, the monitoring equipment cost is high, the monitoring implementation period is long and the monitoring implementation period is relatively dependent on manpower are solved.
Example four
Referring to fig. 4, a computer device 20 according to an embodiment of the present invention includes a processor 21, a memory 22, and a computer program 221 stored in the memory 22 and executable on the processor 21, wherein the processor 21 executes the computer program 221 to implement the positioning method for monitoring according to an embodiment. Since the positioning method for monitoring has already been described in detail in the first embodiment, the description is not repeated here.
According to the positioning method for monitoring, which is implemented by the embodiment of the invention, whether the monitored person is located in a preset safety region is judged by acquiring the current corresponding spatial position data and wireless spatial signal data of the monitored person and according to the spatial position data and the wireless spatial signal data, and when the monitored person is not located in the preset safety region, alarm information is sent out, so that the problems that in the prior art, although the existing methods for monitoring the real-time position of the monitored person are many, the monitoring equipment cost is high, the monitoring implementation period is long and the monitoring implementation period is relatively dependent on manpower are solved.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.