CN112508293A - Monitoring method and system for monitoring supervision area, computer equipment and storage medium - Google Patents

Monitoring method and system for monitoring supervision area, computer equipment and storage medium Download PDF

Info

Publication number
CN112508293A
CN112508293A CN202011484539.0A CN202011484539A CN112508293A CN 112508293 A CN112508293 A CN 112508293A CN 202011484539 A CN202011484539 A CN 202011484539A CN 112508293 A CN112508293 A CN 112508293A
Authority
CN
China
Prior art keywords
coordinate
monitoring
executing
judgment
judging
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
CN202011484539.0A
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.)
Beijing Teamsun Technology Co ltd
Original Assignee
Beijing Teamsun Technology 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 Beijing Teamsun Technology Co ltd filed Critical Beijing Teamsun Technology Co ltd
Priority to CN202011484539.0A priority Critical patent/CN112508293A/en
Publication of CN112508293A publication Critical patent/CN112508293A/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/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B13/00Burglar, theft or intruder alarms
    • G08B13/02Mechanical actuation
    • G08B13/12Mechanical actuation by the breaking or disturbance of stretched cords or wires
    • G08B13/122Mechanical actuation by the breaking or disturbance of stretched cords or wires for a perimeter fence

Abstract

The application relates to a monitoring method and device for a monitoring area, computer equipment and a storage medium. The method comprises the following steps: acquiring coordinates of a monitoring target; compared with the prior art, the monitoring method provided by the invention not only can monitor the irregular monitoring area, but also has high monitoring precision.

Description

Monitoring method and system for monitoring supervision area, computer equipment and storage medium
Technical Field
The present application relates to the field of positioning alarm technologies, and in particular, to a method and a system for monitoring a monitoring area, a computer device, and a storage medium.
Background
With the development of positioning technology, automatic management is performed on some key supervision areas, and currently, the method for judging whether a vehicle is in the key supervision areas is more limited, for example, the key areas can only be regular areas such as circles and squares, and even if the key areas are polygons, the accuracy is higher only if more points are collected. Therefore, in the related art, the determination accuracy is not high in the case that the coordinate information of the key supervision area is less.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a monitoring method and system, a computer device, and a storage medium for monitoring a monitoring area, which can improve the accuracy of determination when the coordinate information of the key area is less.
A monitoring area monitoring method comprises the steps that a plurality of preset coordinates are connected to form a monitoring area in a surrounding mode, and two preset coordinates are selected to serve as a first coordinate and a second coordinate respectively according to a preset direction; taking the total number of the preset coordinates as the total cycle number; initializing cycle parameters; the method comprises the following steps: acquiring coordinate data of a monitored target;
executing a first judgment step: judging whether the value of the circulation parameter is less than or equal to the total circulation times;
if the first judgment step is yes, executing a second judgment step: judging whether the abscissa of the monitored target is smaller than the minimum abscissas of the first coordinate and the second coordinate or not, or whether the abscissa of the monitored target is larger than the maximum abscissas of the first coordinate and the second coordinate or not;
if the second judgment step is no, executing a third judgment step: judging whether the abscissa of the monitoring target is larger than the minimum abscissas of the first coordinate and the second coordinate and is smaller than the maximum abscissas of the first coordinate and the second coordinate;
if the third judgment step is yes, executing a fourth judgment step: judging whether the ordinate of the monitoring target is less than or equal to the maximum ordinate of the first coordinate and the second coordinate;
if the fourth judgment step is no, executing a circulation step: assigning the current second coordinate as a new first coordinate; selecting a next coordinate according to a preset direction and taking the next coordinate as a new second coordinate; adding 1 to the cycle parameter, and returning to execute the first judgment step;
if the fourth judging step is yes, executing a fifth judging step: judging whether the abscissa of the first coordinate is equal to the abscissa of the second coordinate or not and whether the ordinate of the monitoring target is greater than or equal to the minimum ordinate of the first coordinate and the second coordinate or not;
if yes, the monitoring target is judged to be in the monitoring area.
In one embodiment, after the fifth determining step is executed, the method further includes:
if the fifth judgment step is no, executing a sixth judgment step: judging whether the ordinate of the first coordinate is equal to the ordinate of the second coordinate;
if yes, executing a seventh judging step: judging whether the ordinate of the first coordinate is equal to the ordinate of the monitoring target or not;
if yes, the monitoring target is judged to be in the monitoring area.
In one embodiment, the method further includes:
if the sixth judgment step is no, the judgment parameter is added with 1, and the circulation step is executed
If not, judging that the parameter is increased by 1, and executing the circulating step;
if the first judgment step is no, the judgment parameter is subjected to residue taking for 2 to obtain a remainder, if the remainder is an odd number, the monitoring target is in the monitoring area, and if the remainder is an even number, the monitoring target is not in the monitoring area.
In one embodiment, after the third determining step is executed, the method further includes:
if the third judgment step is no, executing an eighth judgment step: judging whether the abscissa of the monitoring target is equal to the abscissa of the second coordinate or not and whether the ordinate of the monitoring target is less than or equal to the ordinate of the second coordinate or not;
if not, executing the circulation step.
In one embodiment, initializing the judgment parameter, and after executing the eighth judging step, further includes:
if yes, executing a ninth judging step: selecting a next coordinate point according to a preset direction and taking the next coordinate point as a third coordinate, and judging whether the abscissa of the monitoring target is greater than or equal to the minimum abscissas of the first coordinate and the third coordinate and whether the abscissa of the monitoring target is smaller than the maximum abscissas of the first coordinate and the third coordinate;
if yes, judging that the parameter is added with 1, and executing the circulating step;
if not, the judgment parameter is increased by 2, and the circulation step is executed.
If the first judgment step is no, the judgment parameter is subjected to residue taking for 2 to obtain a remainder, if the remainder is an odd number, the monitoring target is in the monitoring area, and if the remainder is an even number, the monitoring target is not in the monitoring area.
In one embodiment, after the first determining step is executed, the method further includes:
judging whether the coordinate data of the monitored target is the same as the value of the first coordinate, and if so, judging that the monitored target is in the monitoring area; and if the coordinate data of the monitoring target is different from the value of the first coordinate, executing a second judgment step.
In one embodiment, the method further comprises the following steps:
if the second judgment step is negative, executing a circulation step.
In one embodiment, the present invention provides a monitoring system for monitoring an area, comprising:
the initialization module is used for determining a supervision area according to the connection of a plurality of preset coordinates, and selecting two preset coordinates as a first coordinate and a second coordinate respectively according to a preset direction; taking the total number of the preset coordinates as the total cycle number; initializing cycle parameters;
and the judging module is used for executing the steps in the monitoring method.
In one embodiment, the present invention provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the monitoring method when executing the computer program.
In one embodiment, the invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the monitoring method described above.
According to the monitoring method and system for the monitoring area, the computer equipment and the storage medium, the coordinates of the monitoring target and the preset coordinates of the plurality of connected monitoring areas are acquired to form the monitoring area; compared with the prior art, the monitoring method provided by the invention not only can monitor the irregular monitoring area, but also has high monitoring precision.
Drawings
FIG. 1 is a flow diagram illustrating a method for supervising an area under supervision, according to one embodiment;
FIG. 2 is a flow diagram illustrating the supervisory region monitoring step in one embodiment;
FIG. 3 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, the supervision area monitoring method provided by the present application includes the following steps:
102, connecting a plurality of preset coordinates to enclose a supervision area, and selecting two preset coordinates as a first coordinate and a second coordinate respectively according to a preset direction; taking the total number of the preset coordinates as the total cycle number; initializing cycle parameters; and acquiring the coordinates of the monitored target.
The supervision area is an area to be set in advance and needing supervision, for example, areas such as government offices, schools, military heavy places and the like, the functions of the supervision area can be forbidden to enter or leave, and the functions of different supervision areas can be determined according to supervision requirements. The area surrounded by the at least three preset coordinates is a supervision area, the supervision area can be a regular or irregular graphic area, and a supervision person can demarcate the preset coordinates of the supervision area.
The embodiment of the invention takes the supervision area function as the example of forbidding entry, and alarms when the monitored target enters the supervision area; and if the function of the supervision area is to forbid leaving, alarming when the monitored target is not in the supervision area.
The monitored target is a target to be monitored, and may be a person, a vehicle, or another monitored target, and this embodiment is not limited herein.
Specifically, the coordinates of the monitored target may be obtained through third-party software, for example, the real-time coordinates of the monitored target may be obtained through radar positioning, or the real-time coordinates of the monitored target may be obtained through other positioning devices. The preset direction can be clockwise or anticlockwise, and two preset coordinates are selected from the monitoring area according to the preset direction and are respectively used as a first coordinate and a second coordinate.
The circulation parameter represents the circulation times, and the data of the first coordinate and the second coordinate are changed in each circulation, so that the position relation between the coordinate of the monitoring target and the first coordinate and the position relation between the coordinate of the monitoring target and the second coordinate are sequentially judged, and whether the monitoring target is in the monitoring area or not is further judged. This embodiment will be described with the cycle parameter initialized to 1.
And taking the total number of the preset coordinates of the supervision area as the total cycle number. For example, if the total number of preset coordinates is 5, the total number of cycles is 5.
Step 104, executing a first judging step: it is determined whether the value of the cycle parameter is less than or equal to the total number of cycles.
Specifically, the first judgment step is an initial condition for entering the judgment, and the second judgment step is entered when the value of the loop parameter is less than or equal to the total loop number.
Step 106, if the first judgment step is yes, executing a second judgment step: and judging whether the abscissa of the monitored target is smaller than the minimum abscissas of the first coordinate and the second coordinate or whether the abscissa of the monitored target is larger than the maximum abscissas of the first coordinate and the second coordinate.
Step 108, if the second judging step is no, executing a third judging step: and judging whether the abscissa of the monitoring target is larger than the minimum abscissas of the first coordinate and the second coordinate and is smaller than the maximum abscissas of the first coordinate and the second coordinate.
Step 110, if the third judging step is yes, executing a fourth judging step: and judging whether the ordinate of the monitored target is less than or equal to the maximum ordinate of the first coordinate and the second coordinate.
Step 112, if the fourth judgment step is no, executing a loop step: assigning the current second coordinate as a new first coordinate; selecting a next coordinate according to a preset direction and taking the next coordinate as a new second coordinate; and adding 1 to the cycle parameter, and returning to execute the first judgment step.
Step 114, if the fourth judging step is yes, executing a fifth judging step: and judging whether the abscissa of the first coordinate is equal to the abscissa of the second coordinate or not and whether the ordinate of the monitoring target is greater than or equal to the minimum ordinate of the first coordinate and the second coordinate or not.
And step 116, if the fifth judgment step is yes, judging that the monitored target is in the monitoring area.
Specifically, if the result of the fifth determination step is yes, it is determined that the monitored target is in the monitoring area, and an alarm signal may be sent to remind the monitored target of being currently in the monitoring area.
In the monitoring method of the supervision area, the coordinates of the monitored target are obtained; compared with the prior art, the monitoring method provided by the invention not only can monitor the irregular monitoring area, but also has high monitoring precision.
In one embodiment, after the fifth determining step is executed, the method further includes:
if the fifth judgment step is no, executing a sixth judgment step: judging whether the ordinate of the first coordinate is equal to the ordinate of the second coordinate;
if yes, executing a seventh judging step 12: judging whether the ordinate of the first coordinate is equal to the ordinate of the monitoring target or not;
if yes, judging that the monitoring target is in the monitoring area.
In addition, in an embodiment, the initialization judgment parameter is 0, and the monitoring method further includes:
if not, adding 1 to the judgment parameter, and executing the circulating step;
if not, adding 1 to the judgment parameter, and executing the circulating step;
if the first judgment step is no, the judgment parameter is subjected to residue taking for 2 to obtain a remainder, if the remainder is an odd number, the monitoring target is in the monitoring area, and if the remainder is an even number, the monitoring target is not in the monitoring area.
The monitoring method is more accurate by adopting the mode of judging the surplus of the judgment parameters and combining the mode of judging the circulation parameters.
In one embodiment, after the third determining step is executed, the method further includes:
if the third judgment step is no, executing an eighth judgment step: judging whether the abscissa of the monitoring target is equal to the abscissa of the second coordinate or not and whether the ordinate of the monitoring target is less than or equal to the ordinate of the second coordinate or not;
and if the eighth judgment step is negative, executing a circulation step.
In one embodiment, after the eighth determining step is executed, the method further includes:
if yes, executing a ninth judging step: selecting a next coordinate point according to a preset direction and taking the next coordinate point as a third coordinate, and judging whether the abscissa of the monitored target is greater than or equal to the minimum abscissas of the first coordinate and the third coordinate and whether the abscissa of the monitored target is smaller than the maximum abscissas of the first coordinate and the third coordinate;
if yes, judging that the parameter is increased by 1, and executing a circulating step;
if not, judging the parameter to be added by 2, and executing a circulating step;
if the first judgment step is no, the judgment parameter is subjected to residue taking for 2 to obtain a remainder, if the remainder is an odd number, the monitoring target is in the monitoring area, and if the remainder is an even number, the monitoring target is not in the monitoring area.
In the embodiment, the monitoring method is more complete, so that the monitoring process is more accurate.
In one embodiment, after the first determining step is executed, the method further includes:
judging whether the coordinate data of the monitored target is the same as the value of the first coordinate, and if so, judging that the monitored target is in the monitoring area; and if the coordinate data of the monitoring target is different from the value of the first coordinate, executing the second judgment step.
Specifically, the embodiment of the present application further includes a method for quickly determining whether the monitored target is in the supervision area, that is, determining whether the coordinate data of the monitored target is the same as the value of the first coordinate parameter, and if so, determining that the monitored target is in the supervision area, and sending an alarm signal to remind the monitored target to leave the supervision area.
In the embodiment, a step of fast judgment is added before the second judgment step, so that the monitoring efficiency can be accelerated to a certain extent.
In one embodiment, if the second determination step is negative, the loop step is executed, so that the whole monitoring step is more complete, and the monitoring accuracy is higher.
And finally, when the value of the cycle parameter is greater than the total cycle times, namely the first judgment step is no, jumping out of the cycle, and obtaining a remainder by taking the judgment parameter for 2, wherein if the remainder is an odd number, the monitored target is in the monitoring area, an alarm signal is sent out to remind the monitored target to leave the monitoring area, and if the remainder is an even number, the monitored target is not in the monitoring area.
In order to easily understand the technical solution provided by the embodiment of the present application, the following briefly describes the monitoring method of the supervision area provided by the embodiment of the present application with a complete alarm determination process in combination with fig. 2, where p in fig. 3 denotes a monitoring target coordinate; p1 denotes a first coordinate; p2 denotes a second coordinate, p3 denotes a third coordinate; i represents a cycle parameter; count represents a judgment parameter; n represents the total number of the preset coordinates, namely the total cycle number; the flag represents whether the monitored target is in the monitoring area, the flag is true and false, and the flag represents that the monitored target is not in the monitoring area:
(1) acquiring a coordinate p of the monitoring target, wherein the coordinate p comprises an abscissa p.x and an ordinate p.y of the monitoring target;
(2) the multiple preset coordinates are connected to form a supervision area, and two preset coordinates are selected as a first coordinate p1 and a second coordinate p2 according to a preset direction (which can be anticlockwise or clockwise).
(3) Initializing a cycle parameter i to 1, and adding 1 to each cycle; the judgment parameter count is initialized to 0 and used for judging whether the monitoring target is in the polygon, wherein the flag represents whether the monitoring target is in the monitoring area, the flag represents true that the monitoring target is in the monitoring area, and the flag represents false that the monitoring target is not in the monitoring area;
(4) judging whether the circulation parameter i is less than or equal to the total circulation times N;
(5) when the value of the circulation parameter is smaller than the total circulation times, judging whether the coordinate data p of the monitoring target is the same as the value of the first coordinate p1, namely p.equals (p 1); if the monitoring target is the same as the monitoring target, judging that the monitoring target is in the monitoring area, and sending an alarm signal; if not, it is determined whether the abscissa p.x of the monitoring target is smaller than the minimum abscissa of the first and second abscissas p1.x and p2.x, i.e., p.x < math.min (p1.x, p2.x), or whether the abscissa p.x of the monitoring target is larger than the maximum abscissa of the first and second abscissas p1.x and p2.x, i.e., p.x > math.max (p1.x, p2. x).
(6) If the judgment result in the step (5) is yes, entering a next cycle, namely selecting a next coordinate point according to a preset direction and using the next coordinate point as a third coordinate, assigning the third coordinate to the second coordinate, namely p2 is p3, using the third coordinate as a new second coordinate, assigning the second coordinate to the first coordinate, namely p1 is p2, using the new first coordinate, adding 1 to a cycle parameter, and returning to execute the step (4); if the determination result of the step (5) is negative, it is determined whether the abscissa p.x of the monitoring target is greater than the smallest abscissa of the abscissas p1.x of the first coordinate and p2.x of the second coordinate and whether the abscissa p.x of the monitoring target is less than the largest abscissa of the abscissas p1.x of the first coordinate and p2.x of the second coordinate.
(7) If the judgment result in the step (6) is negative, entering a step (8); if the determination result in the step (6) is yes, determining whether the ordinate p.y of the monitoring target is less than or equal to the maximum ordinate of the ordinate p1.y of the first coordinate and the ordinate p2.y of the second coordinate, that is, p.y < ═ math.max (p1.y, p2.y), if the determination result is no, entering a next loop, that is, selecting a next coordinate point according to a preset direction and using the next coordinate point as a third coordinate, assigning the third coordinate to the second coordinate, that is, p2 equals p3, assigning the second coordinate to the first coordinate, that is, p1 equals p2, adding 1 to the loop parameter, and returning to the step (4); if yes, it is determined whether the abscissa p1.x of the first coordinate is equal to the abscissa p2.x of the second coordinate and the ordinate p.y of the monitoring target is greater than or equal to the smallest ordinate of the first coordinate p1.y and the second coordinate p2.y, that is, p1.x ═ p2.x & & p.y ═ math.min (p1.y, p2. y).
(8) Judging whether the abscissa p.x of the monitoring target is equal to the abscissa p2.x of the second coordinate and whether the ordinate p.y of the monitoring target is less than or equal to the ordinate p2.y of the second coordinate, that is, p.x ═ p2.x & & p.y < ═ p2.y, if the judgment result is no, entering the next loop, that is, selecting the next coordinate point according to the preset direction and using the next coordinate point as the third coordinate, assigning the third coordinate to the second coordinate, that is, p2 ═ p3, assigning the second coordinate to the first coordinate, that is, p1 ═ p2, adding 1 to the loop parameter, and returning to the executing step (4); if yes, selecting a next coordinate point according to a preset direction and using the next coordinate point as a third coordinate p3, determining whether an abscissa p.x of the monitoring target is greater than or equal to a minimum abscissa of the first and third abscissas p1.x and p3.x, and whether an abscissa p.x of the monitoring target is less than a maximum abscissa of the first and third abscissas p1.x and p3.x, p.x ═ math.min (p1.x, p3.x) & & p.x [ - ] math.max (p1.x, p3.x), if no, adding 2 to the determination parameter, i.e., count + - + 2, adding 1 to the determination parameter, i.e., count, adding p2 +63to the third coordinate, adding p2 to the second coordinate, adding p1 to the first coordinate, i.e., p1, and returning to the step of assigning a value (364).
(9) If the judgment result in the step (7) is yes, judging that the monitored target is in the monitoring area, and sending an alarm signal; if the determination result in the step (7) is no, it is determined whether the ordinate p1.y of the first coordinate is equal to the ordinate p2.y of the second coordinate, that is, p1.y is equal to p2. y. If the judgment result is no, judging that the parameter is added with 1, namely + + count, entering next circulation, namely selecting a next coordinate point according to a preset direction and taking the next coordinate point as a third coordinate, assigning the third coordinate to the second coordinate, namely p2 is p3, assigning the second coordinate to the first coordinate, namely p1 is p2, adding 1 to the circulation parameter, and returning to the step (4); if yes, it is determined whether the ordinate p1.y of the first coordinate is equal to the ordinate p.y of the monitoring target, i.e., p1.y is p.y.
(10) If the judgment result in the step (9) is yes, judging that the monitored target is in the monitoring area, and sending an alarm signal; and (4) if the judgment result in the step (9) is negative, adding 1 to the judgment parameter, namely + + count, entering the next cycle, namely, selecting the next coordinate point according to the preset direction and using the next coordinate point as a third coordinate, assigning the third coordinate to a second coordinate, namely p2 is p3, assigning the second coordinate to the first coordinate, namely p1 is p2, adding 1 to the cycle parameter, and returning to the step (4).
(11) When the value of the cycle parameter is greater than the total cycle times, the judgment parameter is used for subtracting 2, namely, the count% 2 obtains a remainder, if the remainder is an odd number, the monitoring target is in the monitoring area, an alarm signal is sent out, and if the remainder is an even number, the monitoring target is not in the monitoring area.
It should be understood that although the various steps in the flow charts of fig. 1-2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-2 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, the invention provides a monitoring system for a monitoring area, which comprises an initialization module and a judgment module, wherein the initialization module is used for determining the monitoring area according to a plurality of preset coordinate connections, and selecting two preset coordinates as a first coordinate and a second coordinate respectively according to a preset direction; taking the total number of the preset coordinates as the total cycle number; the loop parameters are initialized. And the judging module is used for executing the steps in the monitoring method.
For specific definition of the monitoring system of the monitoring area, reference may be made to the above definition of the monitoring method of the monitoring area, which is not described herein again. The modules in the supervision area monitoring apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 3. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of monitoring a regulatory domain. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A monitoring method for a monitoring area is characterized in that a plurality of preset coordinates are connected to determine the monitoring area, and two preset coordinates are selected according to a preset direction and are respectively used as a first coordinate and a second coordinate; taking the total number of the preset coordinates as the total cycle number; initializing cycle parameters; the method comprises the following steps: acquiring coordinates of a monitoring target;
executing a first judgment step: judging whether the value of the circulation parameter is less than or equal to the total circulation times;
if the first judgment step is yes, executing a second judgment step: judging whether the abscissa of the monitored target is smaller than the minimum abscissas of the first coordinate and the second coordinate or not, or whether the abscissa of the monitored target is larger than the maximum abscissas of the first coordinate and the second coordinate or not;
if the second judgment step is no, executing a third judgment step: judging whether the abscissa of the monitoring target is larger than the minimum abscissas of the first coordinate and the second coordinate and is smaller than the maximum abscissas of the first coordinate and the second coordinate;
if the third judgment step is yes, executing a fourth judgment step: judging whether the ordinate of the monitoring target is smaller than or equal to the maximum ordinate of the first coordinate and the second coordinate;
if not, executing a circulating step: assigning the current second coordinate as a new first coordinate; selecting a next coordinate according to a preset direction and taking the next coordinate as a new second coordinate; adding 1 to the cycle parameter, and returning to execute the first judgment step;
if yes, executing a fifth judgment step: judging whether the abscissa of the first coordinate is equal to the abscissa of the second coordinate or not and whether the ordinate of the monitoring target is greater than or equal to the minimum ordinate of the first coordinate and the second coordinate or not;
and if so, judging that the monitoring target is in the monitoring area.
2. The method according to claim 1, wherein after the step of performing the fifth determination, further comprising:
if not, executing a sixth judgment step: judging whether the ordinate of the first coordinate is equal to the ordinate of the second coordinate;
if yes, executing a seventh judging step: judging whether the ordinate of the first coordinate is equal to the ordinate of the monitoring target or not;
and if so, judging that the monitoring target is in the monitoring area.
3. The method of claim 2, wherein the decision parameter is initialized, the method further comprising:
if not, adding 1 to the judgment parameter, and executing the circulating step;
if not, adding 1 to the judgment parameter, and executing the circulating step;
and if the first judgment step is no, the judgment parameter is subjected to residue operation on 2 to obtain a remainder, if the remainder is an odd number, the monitoring target is in the monitoring area, and if the remainder is an even number, the monitoring target is not in the monitoring area.
4. The method of claim 1, wherein after the performing the third determining step, further comprising:
if not, executing an eighth judging step: judging whether the abscissa of the monitoring target is equal to the abscissa of the second coordinate or not and whether the ordinate of the monitoring target is less than or equal to the ordinate of the second coordinate or not;
and if not, executing the circulating step.
5. The method according to claim 4, wherein the determining parameters are initialized, and after the performing the eighth determining step, the method further comprises:
if yes, executing a ninth judging step: selecting a next coordinate point according to a preset direction and taking the next coordinate point as a third coordinate, and judging whether the abscissa of the monitoring target is greater than or equal to the minimum abscissas of the first coordinate and the third coordinate and whether the abscissa of the monitoring target is smaller than the maximum abscissas of the first coordinate and the third coordinate;
if yes, judging that the parameter is increased by 1, and executing the circulating step;
and if the ninth judgment step is negative, judging that the parameter is increased by 2, and executing the circulation step.
And if the first judgment step is no, the judgment parameter is subjected to residue operation on 2 to obtain a remainder, if the remainder is an odd number, the monitoring target is in the monitoring area, and if the remainder is an even number, the monitoring target is not in the monitoring area.
6. The method of claim 1, wherein after the performing the first determining step, further comprising:
judging whether the coordinate data of the monitored target is the same as the value of the first coordinate, and if so, judging that the monitored target is in the monitoring area; and if the coordinate data of the monitoring target is different from the value of the first coordinate, executing the second judgment step.
7. The method of claim 1, further comprising:
and if the second judgment step is negative, executing the circulation step.
8. A monitoring system for monitoring an area, comprising:
the initialization module is used for determining the supervision area according to the connection of a plurality of preset coordinates, and selecting two preset coordinates as a first coordinate and a second coordinate respectively according to a preset direction; taking the total number of the preset coordinates as the total cycle number; initializing cycle parameters;
a determining module for performing the steps of the monitoring method according to any one of claims 1 to 7.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202011484539.0A 2020-12-16 2020-12-16 Monitoring method and system for monitoring supervision area, computer equipment and storage medium Pending CN112508293A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011484539.0A CN112508293A (en) 2020-12-16 2020-12-16 Monitoring method and system for monitoring supervision area, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011484539.0A CN112508293A (en) 2020-12-16 2020-12-16 Monitoring method and system for monitoring supervision area, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112508293A true CN112508293A (en) 2021-03-16

Family

ID=74972478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011484539.0A Pending CN112508293A (en) 2020-12-16 2020-12-16 Monitoring method and system for monitoring supervision area, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112508293A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101835035A (en) * 2010-06-04 2010-09-15 天津市亚安科技电子有限公司 Regional invasion real-time detection method
CN105225515A (en) * 2015-10-26 2016-01-06 深圳市麦谷科技有限公司 A kind of method for supervising based on fence and system
CN108470058A (en) * 2018-03-22 2018-08-31 浙江科澜信息技术有限公司 Querying method, device, equipment and the computer readable storage medium of objective
CN108549579A (en) * 2018-03-20 2018-09-18 南京朝焱智能科技有限公司 Multiple target region limitation method for early warning based on GPU and device
CN109492548A (en) * 2018-10-24 2019-03-19 广东佳鸿达科技股份有限公司 The preparation method of region mask picture based on video analysis
CN109918468A (en) * 2019-03-21 2019-06-21 四川长虹电器股份有限公司 Internet of things equipment position data region screening technique based on Mercator projection
CN110706305A (en) * 2019-09-24 2020-01-17 上海钧正网络科技有限公司 Method and device for drawing area in map application and computer equipment
CN111131783A (en) * 2019-12-27 2020-05-08 泰斗微电子科技有限公司 Monitoring method and device based on electronic fence, terminal equipment and storage medium
CN111308456A (en) * 2020-04-08 2020-06-19 加特兰微电子科技(上海)有限公司 Target position judging method and device, millimeter wave radar and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101835035A (en) * 2010-06-04 2010-09-15 天津市亚安科技电子有限公司 Regional invasion real-time detection method
CN105225515A (en) * 2015-10-26 2016-01-06 深圳市麦谷科技有限公司 A kind of method for supervising based on fence and system
CN108549579A (en) * 2018-03-20 2018-09-18 南京朝焱智能科技有限公司 Multiple target region limitation method for early warning based on GPU and device
CN108470058A (en) * 2018-03-22 2018-08-31 浙江科澜信息技术有限公司 Querying method, device, equipment and the computer readable storage medium of objective
CN109492548A (en) * 2018-10-24 2019-03-19 广东佳鸿达科技股份有限公司 The preparation method of region mask picture based on video analysis
CN109918468A (en) * 2019-03-21 2019-06-21 四川长虹电器股份有限公司 Internet of things equipment position data region screening technique based on Mercator projection
CN110706305A (en) * 2019-09-24 2020-01-17 上海钧正网络科技有限公司 Method and device for drawing area in map application and computer equipment
CN111131783A (en) * 2019-12-27 2020-05-08 泰斗微电子科技有限公司 Monitoring method and device based on electronic fence, terminal equipment and storage medium
CN111308456A (en) * 2020-04-08 2020-06-19 加特兰微电子科技(上海)有限公司 Target position judging method and device, millimeter wave radar and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JOHNSON8702: "电子围栏的实现(一):矩形、圆与多边形的处理电子围栏如何设置圆形、矩形、多边形", Retrieved from the Internet <URL:https://blog.csdn.net/Johnson8702/article/details/82145220> *

Similar Documents

Publication Publication Date Title
CN108564181B (en) Power equipment fault detection and maintenance method and terminal equipment
US9826355B2 (en) System and method for determining whether a device is located within a geo-fence
CN110608982A (en) Detection method, detection device, mobile equipment, electronic equipment and storage medium
CN112668270B (en) Josephson junction array quantum step determination method, apparatus, device and storage medium
CN115546628A (en) Hydraulic engineering dam crack monitoring method, device, equipment and medium
CN112907281A (en) Engineering cost management method and system based on BIM technology
CN116126947A (en) Big data analysis method and system applied to enterprise management system
CN112508293A (en) Monitoring method and system for monitoring supervision area, computer equipment and storage medium
US20150082176A1 (en) Visual simulator for wireless systems
CN104486353A (en) Security incident detecting method and device based on flow
CN115237097A (en) Automatic driving simulation test method, device, computer equipment and storage medium
CN113886196B (en) On-chip power consumption management method, electronic device and storage medium
CN109543653A (en) A kind of video monitoring security area setting method, system and device
CN112232170A (en) Method and device for determining object behaviors, storage medium and electronic device
CN113609947A (en) Motion trajectory prediction method, motion trajectory prediction device, computer equipment and storage medium
CN113658247A (en) Instrument space prediction method and device, computer equipment and storage medium
CN113656286A (en) Software testing method and device, electronic equipment and readable storage medium
CN113609184A (en) Early warning method, device and equipment for abnormal operation
CN111428182A (en) Evaluation index processing method and device, computer equipment and storage medium
CN112287434B (en) Building line segment generation method and device, computer equipment and storage medium
CN111372278A (en) Passenger flow monitoring method and device, computer equipment and storage medium
CN111310906A (en) Method, device and equipment for calculating layout of cores in neuromorphic chip
CN103778057B (en) LBS method of testings and device
US20230206484A1 (en) System and method for object detection in discontinuous space
CN113660107B (en) Fault locating method, system, computer equipment and storage medium

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