CN110659340A - Electronic fence generation method, device, medium and electronic equipment - Google Patents

Electronic fence generation method, device, medium and electronic equipment Download PDF

Info

Publication number
CN110659340A
CN110659340A CN201810691950.1A CN201810691950A CN110659340A CN 110659340 A CN110659340 A CN 110659340A CN 201810691950 A CN201810691950 A CN 201810691950A CN 110659340 A CN110659340 A CN 110659340A
Authority
CN
China
Prior art keywords
electronic fence
point data
data set
generating
positioning point
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.)
Granted
Application number
CN201810691950.1A
Other languages
Chinese (zh)
Other versions
CN110659340B (en
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 Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810691950.1A priority Critical patent/CN110659340B/en
Publication of CN110659340A publication Critical patent/CN110659340A/en
Application granted granted Critical
Publication of CN110659340B publication Critical patent/CN110659340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides a method, a device, a medium and electronic equipment for generating an electronic fence, wherein the method comprises the following steps: acquiring a positioning point data set; based on a preset electronic fence generating condition, evaluating the positioning point data set to obtain an evaluation result; if the evaluation result is that the electronic fence passes, defining an electronic fence area according to the pre-input electronic fence setting parameters; and extracting the outermost periphery shape of the electronic fence area to generate the electronic fence. According to the technical scheme of the embodiment of the invention, the existing position data can be utilized, the electronic fence with high accuracy is generated, the cost is saved, and the error is reduced.

Description

Electronic fence generation method, device, medium and electronic equipment
Technical Field
The invention relates to the technical field of positioning and computers, in particular to a method, a device, a medium and electronic equipment for generating an electronic fence.
Background
In the current logistics field, the method of setting the electronic fence is generally to manually circle an area on an electronic map, and the electronic fence is set based on the area.
However, in the above method for setting the electronic fence by manually defining an area on the electronic map, due to the scale and other reasons, the defined area is often larger than the actual area, which is prone to cause a certain error.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present invention and therefore may include information that does not constitute prior art known to a person of ordinary skill in the art.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a method, an apparatus, a medium, and an electronic device for generating an electronic fence, so as to overcome at least to some extent one or more of the problems of low accuracy and large consumption of manpower and material resources in setting an electronic fence on an electronic map due to limitations and defects of the related art.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the invention.
According to a first aspect of the embodiments of the present invention, there is provided a method for generating an electronic fence, including:
acquiring a positioning point data set;
based on preset electronic fence generating conditions, evaluating the positioning point data set to obtain an evaluation result;
if the evaluation result is passed, defining an electronic fence area according to the pre-input electronic fence setting parameters;
and extracting the outermost periphery shape of the electronic fence area to generate the electronic fence.
According to an embodiment of the present invention, based on the foregoing scheme, the acquiring a set of anchor point data includes:
receiving position data uploaded by positioning equipment;
and generating a positioning point data set based on the position data.
According to an embodiment of the present invention, based on the above scheme, the evaluating the positioning point data set based on a preset fence generating condition to obtain an evaluation result includes:
counting the number of positioning points in the positioning point data set to obtain the number of the positioning points;
when the number of the positioning points is smaller than a preset first threshold value, ending the current evaluation process;
when the number of the positioning points is greater than or equal to a preset first threshold value, calculating the average value of the longitude and the latitude of the positioning points in the positioning point data set;
determining the variance of the positioning point data set based on the average value;
comparing the variance with a preset second threshold;
and when the variance is larger than the second threshold value, removing the outlier locating point in the locating point data set to obtain an effective locating point data set, and generating an evaluation result of the effective locating point data set.
And when the variance is less than or equal to the second threshold, determining the positioning point data set as an effective positioning point data set, and generating an evaluation result of the positioning point data set passing evaluation.
According to an embodiment of the present invention, based on the foregoing solution, the removing outlier anchor points in the anchor point data set to obtain an effective anchor point data set includes:
sequentially removing a positioning point in the positioning point data set, and calculating the variance of the positioning point data set after one positioning point is removed;
comparing the minimum variance obtained by calculation with the second threshold;
when the variance is less than or equal to the second threshold, determining the positioning point data set as an effective positioning point data set
And when the variance is larger than the second threshold, continuously removing the outlier anchor points in the anchor point data set.
According to an embodiment of the present invention, based on the foregoing solution, the setting parameters of the electronic fence according to the pre-input includes:
providing an electronic fence shape, wherein said electronic fence shape is provided in the shape of a circle, rectangle, etc., and/or
Setting whether to enlarge or reduce the generated electronic fence by a preset multiple, and/or
And setting an evaluation threshold value, wherein the evaluation threshold value at least comprises a first threshold value and a second threshold value.
According to an embodiment of the present invention, based on the foregoing solution, the enclosing an electronic fence area according to pre-input electronic fence setting parameters includes:
generating an electronic fence area range according to the electronic fence shape in the electronic fence setting parameters, wherein the electronic fence area range comprises positioning points in the positioning point data set;
and amplifying or reducing the range of the electronic fence area according to the preset amplification or reduction times in the electronic fence setting parameters to generate the electronic fence area.
According to an embodiment of the present invention, after the extracting the outermost peripheral shape of the fence area and generating the fence based on the above scheme, the method further includes: and generating and transmitting the notification information generated by the electronic fence.
According to a second aspect of the embodiments of the present invention, there is provided an electronic fence generating apparatus, including: the acquisition module is used for acquiring a positioning point data set;
the evaluation module is used for evaluating the positioning point data set based on a preset electronic fence generation condition to obtain an evaluation result;
the determining module is used for determining an electronic fence area according to the pre-input electronic fence setting parameters if the evaluation result is that the electronic fence passes;
and the generating module is used for extracting the outermost periphery shape of the electronic fence area and generating the electronic fence.
According to a third aspect of embodiments of the present invention, there is provided a computer-readable medium, on which a computer program is stored, which when executed by a processor, implements the method for loading static web resources as in the first aspect of the embodiments described above.
According to a fourth aspect of embodiments of the present invention, there is provided an electronic apparatus, including: one or more processors; a storage device for storing one or more programs which, when executed by one or more processors, cause the one or more processors to implement the method for loading static web resources as described in the first aspect of the embodiments above.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the technical solutions provided by some embodiments of the present invention, a set of anchor point data is obtained; based on preset electronic fence generating conditions, evaluating the positioning point data set to obtain an evaluation result; if the evaluation result is passed, defining an electronic fence area according to the pre-input electronic fence setting parameters; and extracting the outermost periphery shape of the electronic fence area to generate the electronic fence. Therefore, the technical scheme of the embodiment of the invention can utilize the existing position data to generate the electronic fence with high accuracy, thereby saving the cost and reducing the error
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
fig. 1 schematically shows a flow chart of a method of generating an electronic fence according to an embodiment of the invention;
FIG. 2 schematically shows a flow diagram for evaluating a set of positioning point data according to an embodiment of the invention;
fig. 3 schematically shows a flow chart of generating an electronic fence according to an embodiment of the invention;
fig. 4 schematically shows a block diagram of an electronic fence generating apparatus according to an embodiment of the present invention;
fig. 5 schematically shows a structural diagram of a computer system of the electronic device according to an embodiment of the present invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations or operations have not been shown or described in detail to avoid obscuring aspects of the invention.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Fig. 1 schematically shows a flow chart of a method of generating an electronic fence according to an embodiment of the present invention.
Referring to fig. 1, a method for generating an electronic fence according to an embodiment of the present invention includes the following steps:
step S110, acquiring a positioning point data set;
step S120, based on a preset electronic fence generating condition, evaluating a positioning point data set to obtain an evaluation result;
step S130, if the evaluation result is that the electronic fence passes, defining an electronic fence area according to the pre-input electronic fence setting parameters;
in step S140, the outermost shape of the fence region is extracted to generate the fence.
The technical scheme of the embodiment shown in fig. 1 can utilize the existing position data, generate the electronic fence with high accuracy, save the cost and reduce the error.
Implementation details of the various steps shown in FIG. 1 are set forth below:
in step S110, an anchor point data set is obtained.
In one embodiment of the invention, based on the foregoing scheme, the location data uploaded by the positioning device is received; based on the location data, a set of anchor point data is generated.
In an embodiment of the present invention, the positioning point data set may be formed by a certain number of positioning points, and the positioning point data set may be acquired by a positioning device, and the positioning device periodically uploads the acquired positioning point data.
In step S120, based on a preset electronic fence generating condition, a set of positioning point data is evaluated to obtain an evaluation result.
In one embodiment of the invention, if the back-end system already has an electronic fence, the process of evaluating the location point data set can be skipped; and if the back-end system does not generate the electronic fence, periodically evaluating whether the positioning point data set has the condition for generating the electronic fence according to a preset electronic fence generating condition.
In one embodiment of the invention, the number of positioning points in a positioning point data set is counted to obtain the number of the positioning points; when the number of the fixed position points is smaller than a preset first threshold value, ending the current evaluation process; when the number of the positioning points is greater than or equal to a preset first threshold value, calculating the average value of the longitude and the latitude of the positioning points in the positioning point data set; determining the variance of the positioning point data set based on the average value; comparing the variance with a preset second threshold; when the variance is larger than a second threshold value, removing outlier locating points in the locating point data set to obtain an effective locating point data set, and generating an evaluation result of the effective locating point data set passing evaluation; and when the variance is less than or equal to a second threshold value, determining that the positioning point data set is an effective positioning point data set, and generating an evaluation result of the positioning point data set passing evaluation.
In an embodiment of the invention, based on the scheme, one positioning point in the positioning point data set is sequentially removed, and the variance of the positioning point data set after one positioning point is removed is calculated; comparing the minimum variance obtained by calculation with a second threshold; when the variance is less than or equal to a second threshold value, determining that the positioning point data set is an effective positioning point data set; when the variance is larger than a second threshold value, continuously removing the outlier anchor points in the anchor point data set
FIG. 2 schematically shows a flow diagram for evaluating a set of positioning point data according to an embodiment of the invention.
Referring to FIG. 2, evaluating a positioning point data set according to one embodiment of the invention includes the steps of:
step S201, using the positioning point data set as a set C;
step S202, judging the number of the positioning points in the set C, if the number is smaller than a preset first threshold value, determining that the positioning point data set does not have the condition of generating the electronic fence, and ending the evaluation process; if not, executing step S203.
Step S203, respectively calculating the average value of the longitude and the latitude of the positioning point according to the set C as expectation.
In step S204, the variance of the set C is calculated using the average value calculated in step S203.
Step S205, comparing the variance obtained by the calculation in the step S204 with a second threshold value preset by a back-end system; if the difference is greater than the second threshold value, it indicates that the dispersion degree between the anchor points in the set C is large, and outlier position points need to be further removed, and step S206 is executed; if the value is not greater than the second threshold, the comparison and aggregation of the positioning points in the set C are illustrated, and the positioning points can be used as the material for generating the electronic fence.
And step S206, one positioning point in the set C is sequentially removed, and the variance of each time is calculated.
And step S207, taking the set C with the minimum variance, and returning to execute the step S205 based on the set C until the set C can be used as a material for generating the electronic fence.
In step S130, if the evaluation result is pass, an electronic fence area is defined according to the pre-input electronic fence setting parameters.
In one embodiment of the invention, the pre-input electronic fence setting parameters comprise: setting an electronic fence shape, wherein the electronic fence shape is set to be a circle, a rectangle and the like, and/or setting whether to enlarge or reduce the generated electronic fence by a preset multiple, and/or setting an evaluation threshold value, wherein the evaluation threshold value at least comprises a first threshold value and a second threshold value.
In an embodiment of the invention, based on the foregoing scheme, an electronic fence area range is generated according to the electronic fence shape in the electronic fence setting parameters, and the electronic fence area range includes the positioning points in the positioning point data set; and amplifying or reducing the range of the electronic fence area according to the preset amplification or reduction times in the electronic fence setting parameters to generate the electronic fence area.
In step S140, the outermost peripheral shape of the fence region is extracted, and the fence is generated.
In an embodiment of the present invention, after the electronic fence is generated, notification information generated by the electronic fence is generated and sent, and the notification information may be sent to a system administrator in a manner of a short message, a mail, or the like, so as to remind the completion of the setting of the electronic fence, and the electronic fence may enter a stage of using the electronic fence, and may be specifically applied to a substation, a power plant, a water plant, a factory, an industrial area, a mining enterprise, a material warehouse, a residential district, a villa area, a school, an airport, an aquaculture and livestock farm, a government agency, a key cultural place, a military facility, a prison, a guard house, and other places with and requiring an enclosure.
The following describes the generation method of the electronic fence in detail by taking a specific application as an example.
Fig. 3 schematically shows a flow chart of generating an electronic fence according to an embodiment of the invention.
Referring to fig. 3, the generation of the electronic fence according to one embodiment of the present invention includes the steps of:
step S301, setting electronic fence information on a system page;
in one embodiment of the present invention, the electronic fence information may set at least the following:
setting an electronic fence shape, wherein the default is round, and the default is also set to be rectangular and other shapes;
setting whether to enlarge or reduce the generated electronic fence by a certain factor;
setting an evaluation threshold value, including: the number of the positioning points is required to be larger than the first threshold value, and the discrete degree of the position points is required to be smaller than the second threshold value.
In an embodiment of the invention, after the number electronic fence information is set for the first time, the set content can be used for multiple times, and is ready for finally and automatically generating the electronic fence.
Step S302, obtaining positioning point data through a positioning device, communicating with a back-end system, and sending the positioning point data;
in one embodiment of the invention, the positioning point is acquired through positioning equipment such as a GPS and the like, and then the positioning point is communicated with the back-end system and uploaded to the back-end system to be stored.
In one embodiment of the invention, this step may be skipped if the system already has relevant location data.
Step S303, the back-end system saves the received position data;
in one embodiment of the invention, this step may be skipped if the system already has relevant location data.
Step S304, judging whether the electronic fence is generated;
in an embodiment of the present invention, if the backend system does not generate the electronic fence, it needs to periodically evaluate whether the electronic fence has the generation condition according to the preset information.
In step S305, the backend system starts to evaluate whether the electronic fence has the generation condition, and if the preset generation condition is not met, the next step of operation is not required.
And step S306, whether the evaluation is passed or not is judged, and if the preset generation condition is not met, the operation of the next step is not required to be executed.
Step S307, generating an electronic fence;
in one embodiment of the present invention, the generated electronic fence should simultaneously satisfy the following conditions:
the electronic fence area conforms to a preset shape;
the electronic fence area just contains a qualified positioning point set;
the electronic fence area is just enlarged or reduced by a preset multiple;
in one embodiment of the invention, the generated electronic fence area information is saved to the system in preparation for the next use of the electronic fence.
Step S308, notifying system management personnel that the electronic fence information is generated;
in an embodiment of the present invention, this step is optional, and the system administrator is notified (by short message, email, etc.), and the setup of the electronic fence is completed, which can be applied.
And step S309, monitoring and alarming.
In an embodiment of the invention, the specific use mode of the electronic fence is flexibly set according to actual business requirements.
The following describes an embodiment of an apparatus of the present invention, which can be used to execute the above-mentioned loading method for static web resources of the present invention.
Fig. 4 schematically shows a block diagram of an electronic fence generating apparatus according to an embodiment of the present invention.
Referring to fig. 4, an electronic fence generating apparatus 400 according to an embodiment of the present invention includes: an acquisition module 401, an evaluation module 402, a determination module 403, and a generation module 404; wherein the content of the first and second substances,
an obtaining module 401, configured to obtain a set of anchor point data;
an evaluation module 402, configured to evaluate a positioning point data set based on a preset electronic fence generation condition to obtain an evaluation result;
a determining module 403, configured to define an electronic fence area according to pre-input electronic fence setting parameters if the evaluation result is pass;
a generating module 404, configured to extract an outermost shape of the electronic fence area, and generate the electronic fence.
For details that are not disclosed in the embodiments of the apparatus of the present invention, please refer to the above-mentioned embodiment of the method for generating a static electronic fence in the present invention for the details that are not disclosed in the embodiments of the apparatus of the present invention.
Referring now to FIG. 5, shown is a block diagram of a computer system 500 suitable for use in implementing an electronic device of an embodiment of the present invention. The computer system 500 of the electronic device shown in fig. 5 is only an example, and should not bring any limitation to the function and the scope of the use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for system operation are also stored. The CPU501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input section 1206 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The above-described functions defined in the system of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs, which when executed by the electronic device, cause the electronic device to implement the terminal data verification method in the above embodiment.
For example, the electronic device described above may implement as shown in fig. 1: step S110, acquiring a positioning point data set; step S120, based on a preset electronic fence generating condition, evaluating a positioning point data set to obtain an evaluation result; step S130, if the evaluation result is that the electronic fence passes, defining an electronic fence area according to the pre-input electronic fence setting parameters; in step S140, the outermost shape of the fence region is extracted to generate the fence.
As another example, the electronic device described above may implement the steps shown in fig. 2.
As another example, the electronic device described above may implement the steps shown in fig. 3.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the invention. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A method for generating an electronic fence, comprising:
acquiring a positioning point data set;
based on a preset electronic fence generating condition, evaluating the positioning point data set to obtain an evaluation result;
if the evaluation result is that the electronic fence passes, defining an electronic fence area according to pre-input electronic fence setting parameters;
and extracting the outermost periphery shape of the electronic fence area to generate the electronic fence.
2. The method for generating an electronic fence as claimed in claim 1, wherein said obtaining a set of anchor point data comprises:
receiving position data uploaded by positioning equipment;
based on the position data, a set of anchor point data is generated.
3. The method for generating an electronic fence according to claim 1, wherein the evaluating the positioning point data set based on a preset electronic fence generating condition to obtain an evaluation result comprises:
counting the number of positioning points in the positioning point data set to obtain the number of the positioning points;
when the number of the positioning points is smaller than a preset first threshold value, ending the current evaluation process;
when the number of the positioning points is greater than or equal to a preset first threshold value, calculating the average value of the longitude and the latitude of the positioning points in the positioning point data set;
determining the variance of the positioning point data set based on the average value;
comparing the variance with a preset second threshold;
and when the variance is larger than the second threshold value, removing the outlier locating point in the locating point data set to obtain an effective locating point data set, and generating an evaluation result of the effective locating point data set.
And when the variance is less than or equal to the second threshold, determining that the positioning point data set is an effective positioning point data set, and generating an evaluation result of the positioning point data set passing evaluation.
4. The method for generating an electronic fence according to claim 3, wherein said removing outlier anchor points from said anchor point data set to obtain a valid anchor point data set comprises:
sequentially removing one positioning point in the positioning point data set, and calculating the variance of the positioning point data set after one positioning point is removed;
comparing the minimum variance obtained by calculation with the second threshold;
when the variance is less than or equal to the second threshold, determining that the positioning point data set is an effective positioning point data set;
and when the variance is larger than the second threshold value, continuously removing the outlier anchor points in the anchor point data set.
5. The method for generating an electronic fence according to claim 1, wherein the setting parameters of the electronic fence according to the pre-input comprise:
providing an electronic fence shape, wherein the electronic fence shape is provided in a circular, rectangular, etc. shape, and/or
Setting whether to enlarge or reduce the generated electronic fence by a preset multiple, and/or
Setting an evaluation threshold value, wherein the evaluation threshold value at least comprises a first threshold value and a second threshold value.
6. The method for generating an electronic fence according to claim 1, wherein the defining an electronic fence area according to the pre-input electronic fence setting parameters comprises:
generating an electronic fence area range according to the electronic fence shape in the electronic fence setting parameters, wherein the electronic fence area range comprises positioning points in the positioning point data set;
and amplifying or reducing the area range of the electronic fence according to the preset amplification or reduction times in the electronic fence setting parameters to generate an electronic fence area.
7. The method of generating an electronic fence according to claim 1, wherein after extracting an outermost peripheral shape of the area of the electronic fence and generating the electronic fence, the method further comprises: and generating and transmitting the notification information generated by the electronic fence.
8. An electronic fence generation apparatus, comprising:
the acquisition module is used for acquiring a positioning point data set;
the evaluation module is used for evaluating the positioning point data set based on a preset electronic fence generation condition to obtain an evaluation result;
the determining module is used for determining an electronic fence area according to pre-input electronic fence setting parameters if the evaluation result is that the electronic fence area passes;
and the generating module is used for extracting the outermost periphery shape of the electronic fence area and generating the electronic fence.
9. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of generating a sub-fence according to any one of claims 1 to 7.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method of generating a sub-fence of any one of claims 1 to 7.
CN201810691950.1A 2018-06-28 2018-06-28 Electronic fence generation method and device, medium and electronic equipment Active CN110659340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810691950.1A CN110659340B (en) 2018-06-28 2018-06-28 Electronic fence generation method and device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810691950.1A CN110659340B (en) 2018-06-28 2018-06-28 Electronic fence generation method and device, medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110659340A true CN110659340A (en) 2020-01-07
CN110659340B CN110659340B (en) 2024-04-05

Family

ID=69027405

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810691950.1A Active CN110659340B (en) 2018-06-28 2018-06-28 Electronic fence generation method and device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110659340B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422890A (en) * 2020-08-15 2021-02-26 地标班列(北京)科技有限公司 Geographic marking product safety monitoring system based on electronic fence
CN113781646A (en) * 2021-09-14 2021-12-10 销秘(重庆)云计算科技有限公司 Electronic fence generation method and device and storage medium
CN116668951A (en) * 2022-10-26 2023-08-29 荣耀终端有限公司 Method for generating geofence, electronic equipment and storage medium
CN116668951B (en) * 2022-10-26 2024-04-23 荣耀终端有限公司 Method for generating geofence, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104504833A (en) * 2014-12-31 2015-04-08 桂林康思微通信技术有限公司 Smart position sensing fence system
US20150148060A1 (en) * 2013-11-28 2015-05-28 Microsoft Corporation Geofence compositions
CN106652756A (en) * 2015-11-03 2017-05-10 圆通速递有限公司 Polygon accurate drawing method based on electronic map and application method thereof
CN106840139A (en) * 2016-12-29 2017-06-13 深圳众思科技有限公司 The acquisition methods of fence, device and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106980131A (en) * 2016-01-19 2017-07-25 阿里巴巴集团控股有限公司 A kind of localization method, device and intelligent terminal
CN107978110A (en) * 2017-12-06 2018-05-01 中国科学院上海技术物理研究所 Fence intelligence identifying system in place and recognition methods based on images match

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150148060A1 (en) * 2013-11-28 2015-05-28 Microsoft Corporation Geofence compositions
CN104504833A (en) * 2014-12-31 2015-04-08 桂林康思微通信技术有限公司 Smart position sensing fence system
CN106652756A (en) * 2015-11-03 2017-05-10 圆通速递有限公司 Polygon accurate drawing method based on electronic map and application method thereof
CN106840139A (en) * 2016-12-29 2017-06-13 深圳众思科技有限公司 The acquisition methods of fence, device and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422890A (en) * 2020-08-15 2021-02-26 地标班列(北京)科技有限公司 Geographic marking product safety monitoring system based on electronic fence
CN113781646A (en) * 2021-09-14 2021-12-10 销秘(重庆)云计算科技有限公司 Electronic fence generation method and device and storage medium
CN116668951A (en) * 2022-10-26 2023-08-29 荣耀终端有限公司 Method for generating geofence, electronic equipment and storage medium
CN116668951B (en) * 2022-10-26 2024-04-23 荣耀终端有限公司 Method for generating geofence, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110659340B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
CN107809331B (en) Method and device for identifying abnormal flow
CN110608982A (en) Detection method, detection device, mobile equipment, electronic equipment and storage medium
CN110599354B (en) Online checking method, online checking system, computer device and computer readable storage medium
CN110659340B (en) Electronic fence generation method and device, medium and electronic equipment
CN110162518B (en) Data grouping method, device, electronic equipment and storage medium
CN109214578B (en) Electronic device, method for predicting building electric load based on decision tree model and storage medium
CN113076224A (en) Data backup method, data backup system, electronic device and readable storage medium
CN113495825A (en) Line alarm processing method and device, electronic equipment and readable storage medium
CN113535577A (en) Application testing method and device based on knowledge graph, electronic equipment and medium
CN116756616A (en) Data processing method, device, computer readable medium and electronic equipment
CN116541069A (en) Key function evaluation method, device, electronic equipment, medium and program product
CN115562859A (en) Data processing method and device, electronic equipment and computer storage medium
CN110532304B (en) Data processing method and device, computer readable storage medium and electronic device
CN114509791A (en) Satellite positioning error analysis method and device capable of reducing storage
CN110458743B (en) Community management method, device, equipment and storage medium based on big data analysis
CN114138358A (en) Application program starting optimization method, device, equipment and storage medium
CN113052509A (en) Model evaluation method, model evaluation apparatus, electronic device, and storage medium
CN112181750A (en) Method, device and medium for testing stability of industrial control network equipment
CN112948142A (en) Method, apparatus, medium, and program product for determining target feedback information
CN113468053B (en) Application system testing method and device
CN106981034B (en) Method and device for generating housing use information
CN111026571B (en) Processor down-conversion processing method and device and electronic equipment
CN117130873B (en) Task monitoring method and device
US10977341B2 (en) Insolation probability distribution analysis method, insolation probability distribution analysis system, insolation probability distribution analysis program product, insolation normalization statistical analysis method, insolation normalization statistical analysis system, and insolation normalization statistical analysis program product
CN116450622B (en) Method, apparatus, device and computer readable medium for data warehouse entry

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
GR01 Patent grant