CN109343777B - Labeling method and system - Google Patents
Labeling method and system Download PDFInfo
- Publication number
- CN109343777B CN109343777B CN201811058690.0A CN201811058690A CN109343777B CN 109343777 B CN109343777 B CN 109343777B CN 201811058690 A CN201811058690 A CN 201811058690A CN 109343777 B CN109343777 B CN 109343777B
- Authority
- CN
- China
- Prior art keywords
- plan
- element mark
- safety element
- coordinate
- view
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
Abstract
The embodiment of the invention provides a labeling method and a labeling system. The method comprises the following steps: calling a plan and a safety element mark set from a database according to a received calling instruction, and respectively displaying the plan and the safety element mark set in respective corresponding preset areas; according to the obtained dragging operation, moving the safety element marks in the safety element mark set into the plan along a dragging track so as to cover corresponding areas in the plan; and according to the received saving instruction, saving all the secure element marks in the plan view in order to realize the marking of the plan view. The method and the system provided by the embodiment of the invention abandon the traditional method of marking on the drawing, simplify the operation of marking the safety elements, enable a user to quickly mark the plane drawing on the webpage, and carry out marking operation by dragging the mouse, thereby enabling the marking operation to be more flexible and improving the user experience.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a labeling method and system.
Background
The safety elements comprise safety risks (such as a transformer substation), potential safety hazards (such as an elevator which is not patrolled and maintained on time), emergency materials (such as fire extinguishers) and other safety production related elements. The annotation mainly relates to webpage operation and database storage. Typically all data information is stored in a database, including the floor plan and the indicia used by the security elements. When element labeling is needed, required data is called from the database, the plan view is labeled to form an element labeling view, and new data is stored in the database after the element labeling is completed.
The existing element labeling method mainly adopts the main modes of off-line drawing and cursor selection of image-text files. The method comprises the following steps:
the first method is as follows: marking the element on a plan by adopting an off-line drawing tool, and uniformly uploading the drawn plan;
the second method comprises the following steps: opening a graphic file, selecting a marking key element in the graphic file by using a cursor, confirming on a window interface of a graphic element interaction device, opening an address graphic element browser by using the graphic element interaction device, opening the graphic file by using the browser, and finally marking the selected coordinate position in the graphic file. See the geological element labeling method in Chinese patent "CN 201611250880.3".
For the first mode, the interaction effect of the offline drawing tool is not good enough, and flexible adjustment cannot be supported.
For the second mode, the geological element marking method is complicated to operate, multiple supporting tools are needed, and the universality is weak; and the element labeling process needs the support of specific file opening software, a primitive interaction device and a drawing browser; and the key elements need to be written to the primitive interactor by input.
Disclosure of Invention
The embodiment of the invention provides a labeling method and a labeling system, which are used for overcoming the defects that the labeling method in the prior art cannot give consideration to flexible adjustment and is simple to implement, improving the flexibility of adjustment in the labeling process, enabling the implementation to be simpler and more convenient and improving the user experience.
The embodiment of the invention provides a labeling method, which comprises the following steps:
calling a plan and a safety element mark set from a database according to a received calling instruction, and respectively displaying the plan and the safety element mark set in respective corresponding preset areas;
according to the obtained dragging operation, moving the safety element marks in the safety element mark set into the plan along a dragging track so as to cover corresponding areas in the plan;
and according to the received saving instruction, saving all the secure element marks in the plan view in order to realize the marking of the plan view.
An embodiment of the present invention provides a labeling system, including:
the calling module is used for calling the plan and the safety element mark set from the database according to the received calling instruction and respectively displaying the plan and the safety element mark set in the corresponding preset areas;
the dragging module is used for moving the secure element marks in the secure element mark set into the plan view along a dragging track so as to cover corresponding areas in the plan view;
and the storage module is used for storing all the security element marks in the plan view so as to realize the marking of the plan view.
The embodiment of the invention provides a marking device, which comprises a memory and a processor, wherein the processor and the memory finish mutual communication through a bus; the memory stores program instructions executable by the processor, which when called by the processor are capable of performing the methods described above.
Embodiments of the present invention provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the above-described method.
According to the labeling method and system provided by the embodiment of the invention, a traditional method for labeling on a drawing is abandoned, the operation of labeling the safety elements is simplified, a user can label a plane drawing on a webpage quickly, and the labeling operation is carried out by dragging a mouse, so that the labeling operation is more flexible, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flowchart of an annotation method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a labeling method according to another embodiment of the present invention;
FIG. 3 is a flowchart of a method for determining a boundary according to an embodiment of the present invention;
fig. 4 is a block diagram of a structure of a labeling apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of an annotation method according to an embodiment of the present invention, as shown in fig. 1, the method includes:
102, moving the safety element marks in the safety element mark set into a plan view along a dragging track according to the obtained dragging operation so as to cover corresponding areas in the plan view;
and 103, storing all the safety element marks in the plan view according to the received storage instruction so as to realize the marking of the plan view.
It should be noted that the plan view mentioned in the embodiment of the present invention may be a map or an internal area schematic view of public places such as schools, units, and shopping malls. Due to the large number of people in the public places, once a safety accident occurs, situations such as execution confusion or misoperation can happen inevitably in the process of personnel evacuation or accident handling of emergency personnel. For better personnel evacuation or accident handling, it is important to label the map or the interior area schematic diagram of the public place in advance, for example, if the staff in the public place learns the label diagram in advance, or even compares the label diagram with the scene to perform personnel evacuation or accident handling work when an accident occurs, the whole scene work will be performed in a non-turbulent manner, and the consequences caused by the accident are greatly reduced. The embodiment of the invention provides a labeling method and a labeling system aiming at the labeling process, and the detailed description is carried out.
Specifically, the method can be executed by intelligent devices such as a mobile terminal, a tablet computer and a computer. The method will be described with the intelligent device, preferably a computer, performing the method. The computer receives a calling instruction of a user, calls a plan and a security element mark set from the database, and respectively displays the plan and the security element mark set in a first area and a second area, so that the user can select any security element mark from the security element mark set in the second area through a mouse and drag the security element mark set to the plan of the first area, wherein the first area and the second area are two areas without intersection in a webpage. It will be appreciated that dragging a security element tag into the plan view will overlay the corresponding area of the plan view. If the computer receives a storage instruction of a user, all the safety element marks in the plan view are stored in the plan view so as to realize the marking of the plan view.
The method provided by the embodiment of the invention abandons the traditional method for marking on the drawing, simplifies the operation of marking the safety elements, enables a user to quickly mark the plane graph on the webpage, and enables the marking operation to be more flexible by dragging the mouse, thereby improving the user experience.
Based on the above embodiment, according to the received call instruction, the plan view and the security element mark set are called from the database and are respectively displayed in the corresponding preset areas, and the method further includes:
recording basic information of each security element mark;
binding each safety element mark with the basic information of the safety element mark to enable each safety element mark to carry the basic information of the safety element mark;
and storing a plurality of security element marks carrying basic information into a database as a security element mark set.
Specifically, before labeling the plan view, basic information of the security element label may be set on a computer through online input, a CSS file, or a Config file, wherein the basic information includes a type, a paraphrase, and a constraint. It should be noted that the types are the types to which the safety element marks belong, such as safety risk types (e.g. a substation, a distribution room), safety hazard types (e.g. an elevator is not patrolled and maintained on time) and emergency material types (e.g. a fire extinguisher), etc.; paraphrasing is the specific meaning represented by the security element indicia; the constraint conditions are dependence and mutual exclusion relations of the safety element marks, for example, the position distances between the mutually exclusive safety element marks cannot be adjacent, and the safety risk safety element marks need to be provided with corresponding emergency material safety element marks.
And binding each safety element mark with the basic information of the safety element mark, so that each safety element mark carries the basic information of the safety element mark. And storing a plurality of security element marks carrying basic information into a database as a security element mark set. So that the user can retrieve the security element mark set from the database when labeling the plan graph subsequently. It can be understood that, since each secure element tag in the secure element tag set carries its own basic information, the user can view the basic information carried by the secure element tag during the tagging process, so as to reduce the error rate of tagging.
According to the method provided by the embodiment of the invention, basic information such as the type, explanation and restriction conditions of the safety element mark is set on a computer through online input, a CSS (cascading style sheets) file or a Config file, and the basic information and the safety element mark are bound and then stored in a database, so that a user can check the basic information carried by the safety element mark in the subsequent process of marking a plan view, and the error rate of marking is reduced.
Based on the above embodiment, according to the received saving instruction, saving all the secure element marks located in the plan view to implement labeling of the plan view, and then further including:
the floor plan, all the secure element marks, and the location coordinates of each secure element mark relative to the floor plan are saved to a database.
Specifically, if the computer receives a save instruction from the user, the plan view, all the secure element marks, and the position coordinates of each secure element mark relative to the plan view are saved in the database, so that the plan view is opened again next time to directly display the secure element marks in the plan view.
According to the method provided by the embodiment of the invention, if the computer receives the storage instruction of the user, the plan, all the safety element marks and the position coordinates of each safety element mark relative to the plan are stored in the database, so that the plan is opened next time and the safety element marks are directly displayed in the plan, and the user experience is improved.
Based on the foregoing embodiment, the method provided in the embodiment of the present invention further includes:
and clearing at least one safety element mark positioned in the plan view according to the received reset instruction.
Specifically, the annotator can select one, a plurality of or all of the security element marks and perform a reset operation, for example, when the computer determines that a certain security element mark needs to be reset, the reset security element mark is cleared.
Based on the foregoing embodiment, the method provided in the embodiment of the present invention further includes:
and if the cursor is judged and known to be in the preset area where the safety element mark is located, displaying the basic information of the safety element mark.
Specifically, the preset area may be set in advance, and only when the computer determines that the cursor of the mouse is located in the preset area where the security element mark is located, the type, definition, constraint condition, and the like of the security element mark may be displayed in the web page.
Based on the foregoing embodiment, the method provided in the embodiment of the present invention moves the secure element tag in the secure element tag set into the plan view along the dragging track according to the obtained dragging operation, and further includes:
acquiring a first position coordinate of the plan;
calculating a second position coordinate of the safety element mark in real time in the process of moving the safety element mark to the plane graph along the dragging track;
and when the dragging is judged and known to be completed, if the position relation between the second position coordinate of the safety element mark and the first position coordinate of the plan does not meet the preset condition, adaptively adjusting the second position coordinate of the safety element mark so as to enable the safety element mark to be positioned in the plan.
It should be noted that the first position coordinate includes a first horizontal coordinate of the left side edge, a second horizontal coordinate of the right side edge, a first vertical coordinate of the top edge, and a second vertical coordinate of the bottom edge, and the second position coordinate includes a horizontal coordinate and a vertical coordinate.
During the labeling process, the position coordinates of the plan view and the position coordinates of the dragged safety element mark need to be calculated and compared in real time to ensure that the safety element mark is moved into the plan view.
The preset condition means that the horizontal coordinate is between the first horizontal coordinate and the second horizontal coordinate, and the vertical coordinate is between the first vertical coordinate and the second vertical coordinate.
According to the method provided by the embodiment of the invention, the position coordinate of the plan view and the position coordinate of the dragged safety element mark are compared in real time in the dragging process, so that the safety element mark is prevented from being placed in an area outside the plan view due to errors in the operation process of a marking person on the plan view.
Based on the foregoing embodiment, the method provided in the embodiment of the present invention is a method for adaptively adjusting a second position coordinate of a security element mark if a position relationship between the second position coordinate of the security element mark and a first position coordinate of a plan view does not satisfy a preset condition, and the method further includes:
if the horizontal coordinate is smaller than the first horizontal coordinate, taking the first horizontal coordinate as the horizontal coordinate of the safety element mark;
if the horizontal coordinate is larger than the second horizontal coordinate, taking the second horizontal coordinate as the horizontal coordinate of the safety element mark;
if the vertical coordinate is smaller than the first vertical coordinate, taking the first vertical coordinate as the vertical coordinate of the safety element mark;
and if the vertical coordinate is larger than the second vertical coordinate, taking the second vertical coordinate as the vertical coordinate of the safety element mark.
Specifically, in the process of dragging the safety element mark, a horizontal coordinate (lmin) of the left side of the parent element (plan view) from the current window and a horizontal coordinate (lmax) of the right side of the parent element from the current window are calculated, and a vertical coordinate (tmin) of the top side of the parent element from the current window and a vertical coordinate (tmax) of the bottom side of the parent element from the current window are also calculated. Then respectively and continuously calculating the horizontal coordinate (l) and the vertical coordinate (t) of the dragged safety element mark relative to the distance between the left side edge and the top edge and the current window, and finally continuously comparing whether the value of the dragged element l is between lmin and lmax, if l is smaller than lmin, assigning the value of lmin to l, and if l is larger than lmax, assigning the value of lmax to l to ensure that the horizontal distance of the dragged safety element mark does not separate from the left side and the right side of the parent element; and continuously comparing whether the value of t is between tmin and tmax, if t is smaller than tmin, assigning tmin to t, and if t is larger than tmax, assigning tmax to t, so as to ensure that the dragged safety element mark does not depart from the parent element in the vertical distance. The two calculation methods are carried out simultaneously, and the dragged safety element mark is prevented from being separated from the plan view.
Based on the above embodiments, the method provided by the embodiments of the present invention is further described below by specific examples, and fig. 2 is a flowchart of a labeling method provided according to another embodiment of the present invention, as shown in fig. 2, the whole flow of the method is described by taking a user to mark a plan view through a computer as an example:
1) basic information of the security element mark is preset, wherein the basic information comprises types, paraphrases and constraint conditions.
2) And opening the security element mark-up labeling page by using the browser.
3) A plan view and a security element label are obtained.
4) Clicking on the secure element tag looks at the detailed information represented by the tag.
5) And dragging the various safety element marks to the corresponding positions of the plane graph by using a mouse.
6) And clicking to store the safety element marks on the plan to form a labeled graph, and storing the plan, all the safety element marks and the position coordinates of each safety element mark relative to the plan into a database.
7) Clicking to reset, emptying all the safety element marks on the plan and simultaneously restoring the marks to the positions to be used.
8) The marked plan can control the size of the plan by using a mouse wheel, and the basic information marked by the safety elements can be checked;
a) the security elements include risk elements of various risk types;
b) the safety element marks in the steps 3) and 4) correspond to a type and basic information thereof;
c) the step 5) comprises the following specific processes:
i. clicking the safety element mark through a mouse and dragging the safety element mark into a plane graph range;
calculating the distance of the safety element mark relative to the boundary of the plan view while dragging the safety element mark in the plan view, and ensuring that the safety element is always within the range of the plan view;
dragging the safe element mark to the position to be represented, releasing the mouse to place the mark on the plan view, simultaneously calculating the distance of the safe element relative to the upper boundary and the left boundary of the plan view, and storing the data.
After the safety element mark is put down, the position can be changed by continuously clicking and dragging;
d) the saving process in step 6) saves the position of the various security element markers stored in step 5) relative to the boundaries of the plan view and the unique markers of the security elements themselves by sending them to the database for the next time the plan view is opened to directly display the security element markers on the plan view.
e) And 7) sending a request to the database in the resetting process in the step 7), clearing all information stored on the plan, and simultaneously displaying all the safety element marks on the plan at the positions to be marked on the side edge.
f) And 8) realizing the magnification and the reduction of the label graph, and controlling the planar graph and the safety element mark to simultaneously magnify and reduce in proportion by controlling the magnification and the reduction to check the label graph.
Fig. 3 is a flowchart of a method for determining a boundary according to an embodiment of the present invention, as shown in fig. 3:
in the dragging process, the horizontal coordinate (lmin) of the left side of the parent element (base map) from the current window and the horizontal coordinate (lmax) of the right side of the parent element from the current window are calculated, and the vertical coordinate (tmax) of the top (tmin) and the bottom of the parent element from the current window are also calculated. Continuously calculating a horizontal coordinate (l) and a vertical coordinate (t) of the current window of the distance between the dragging element and the left side edge and the top edge, and finally continuously comparing whether the value of the dragging element l is between lmin and lmax, if l is smaller than lmin, assigning the value of lmin to l, and if l is larger than lmax, assigning the value of lmax to l, so as to ensure that the horizontal distance of the dragging element is not separated from the left side and the right side of the parent element; and continuously comparing whether the value of t is between tmin and tmax, if t is smaller than tmin, assigning tmin to t, and if t is larger than tmax, assigning tmax to t, so as to ensure that the drag element does not depart from the parent element in the vertical distance. The two calculation methods are carried out simultaneously, and the four corners are prevented from being separated.
The method for setting the labeling characteristics and the constraints of the safety elements comprises the following steps:
the element type and the representation form are set by the online input and CSS file, the element type and the constraint condition can also be configured in a centralized way by the Config file, and the set content comprises element dependence and mutual exclusion relations, such as: the mutual exclusion elements cannot be closely adjacent in position, and the safety risk elements need to be equipped with corresponding emergency resource elements. A rationality constraint is provided for the overall presentation of the plan view.
In conclusion, the technical scheme provided by the invention simplifies the operation of the safety element labeling diagram, directly shows the safety information through the safety element, and abandons the traditional method for labeling on the drawing. All information is conveniently and quickly stored through the database. The setting of the element characteristics and the display constraint further standardizes the display method. The method has the advantages that the display constraints among the features of the safety elements and the elements and among different labels of the same element can be set, the labeling of the safety elements can be directly realized through mouse dragging operation, the safety elements can directly check basic information carried by the elements, and data are stored on the network and can be checked and edited at any time; the method can support the enlargement and reduction of the view of the annotation graph; compared with the prior art, the method provided by the embodiment of the invention simplifies the operation of labeling the drawing, directly displays the safety information through the safety element mark, and abandons the traditional method of labeling on the drawing. All information is conveniently and quickly stored through the database. The setting of the element characteristics and the display constraint further standardizes the display method.
An embodiment of the present invention provides a labeling system, including: the calling module is used for calling the plan and the safety element mark set from the database according to the received calling instruction and respectively displaying the plan and the safety element mark set in the corresponding preset areas;
the dragging module is used for moving the secure element marks in the secure element mark set into the plan view along a dragging track so as to cover corresponding areas in the plan view;
and the storage module is used for storing all the security element marks in the plan view so as to realize the marking of the plan view.
It should be noted that the system according to the embodiment of the present invention may be used to implement the technical solution of the embodiment of the labeling method shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Based on the foregoing embodiment, the system provided in the embodiment of the present invention further includes:
the calling module is used for calling the plan and the safety element mark set from the database according to the received calling instruction and respectively displaying the plan and the safety element mark set in the corresponding preset areas;
the dragging module is used for moving the secure element marks in the secure element mark set into the plan view along a dragging track so as to cover corresponding areas in the plan view;
and the storage module is used for storing all the security element marks in the plan view so as to realize the marking of the plan view.
Fig. 4 is a block diagram of a structure of an annotating device according to an embodiment of the present invention, as shown in fig. 4, the device includes: a processor (processor)401, a memory (memory)402, and a bus 403; wherein, the processor 401 and the memory 402 complete communication with each other through the bus 403; the processor 401 is configured to call the program instructions in the memory 402 to execute the methods provided by the above-mentioned method embodiments, for example, including: calling a plan and a safety element mark set from a database according to a received calling instruction, and respectively displaying the plan and the safety element mark set in respective corresponding preset areas; according to the obtained dragging operation, moving the safety element marks in the safety element mark set into the plan along a dragging track so as to cover corresponding areas in the plan; and according to the received saving instruction, saving all the secure element marks in the plan view in order to realize the marking of the plan view.
An embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer can execute the methods provided by the above method embodiments, for example, the method includes: calling a plan and a safety element mark set from a database according to a received calling instruction, and respectively displaying the plan and the safety element mark set in respective corresponding preset areas; according to the obtained dragging operation, moving the safety element marks in the safety element mark set into the plan along a dragging track so as to cover corresponding areas in the plan; and according to the received saving instruction, saving all the secure element marks in the plan view in order to realize the marking of the plan view.
Embodiments of the present invention provide a non-transitory computer-readable storage medium, which stores computer instructions, where the computer instructions cause the computer to perform the methods provided by the above method embodiments, for example, the methods include: calling a plan and a safety element mark set from a database according to a received calling instruction, and respectively displaying the plan and the safety element mark set in respective corresponding preset areas; according to the obtained dragging operation, moving the safety element marks in the safety element mark set into the plan along a dragging track so as to cover corresponding areas in the plan; and according to the received saving instruction, saving all the secure element marks in the plan view in order to realize the marking of the plan view.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (7)
1. A method of labeling, comprising:
calling a plan and a safety element mark set from a database according to a received calling instruction, and respectively displaying the plan and the safety element mark set in respective corresponding preset areas;
according to the obtained dragging operation, moving the safety element marks in the safety element mark set into the plan along a dragging track so as to cover corresponding areas in the plan;
according to the received storage instruction, storing all the safety element marks in the plan view so as to realize the marking of the plan view;
according to the acquired dragging operation, moving the secure element mark in the secure element mark set to the plan view along the dragging track, further comprising:
acquiring a first position coordinate of the plan;
calculating a second position coordinate of the safety element mark in real time in the process of moving the safety element mark to the plane graph along the dragging track;
when the dragging is judged and known to be completed, if the position relation between the second position coordinate of the safety element mark and the first position coordinate of the plan does not meet the preset condition, the second position coordinate of the safety element mark is adjusted in a self-adaptive mode, so that the safety element mark is located in the plan;
if the position relationship between the second position coordinate of the security element mark and the first position coordinate of the plan view does not satisfy the preset condition, adaptively adjusting the second position coordinate of the security element mark, further comprising:
if the horizontal coordinate is smaller than the first horizontal coordinate, taking the first horizontal coordinate as the horizontal coordinate of the safety element mark;
if the horizontal coordinate is larger than the second horizontal coordinate, taking the second horizontal coordinate as the horizontal coordinate of the safety element mark;
if the vertical coordinate is smaller than the first vertical coordinate, taking the first vertical coordinate as the vertical coordinate of the safety element mark;
if the vertical coordinate is larger than the second vertical coordinate, taking the second vertical coordinate as the vertical coordinate of the safety element mark;
according to the received calling instruction, calling a plan view and a safety element mark set from a database, and respectively displaying the plan view and the safety element mark set in respective corresponding preset areas, wherein the method also comprises the following steps:
recording basic information of each security element mark;
binding each safety element mark with the basic information of the safety element mark to enable each safety element mark to carry the basic information of the safety element mark;
taking a plurality of security element marks carrying basic information as a security element mark set and storing the security element marks into a database;
wherein the basic information comprises a type, a paraphrase and a constraint condition; the type is the category to which the security element mark belongs; paraphrasing is the specific meaning represented by the security element indicia; the constraints are the dependence and mutual exclusion relationships of the security element tags.
2. The method of claim 1, wherein all the secure element tags located in the plan view are saved in the plan view according to the received saving instruction, so as to realize the tagging of the plan view, and then further comprising:
the floor plan, all the secure element marks, and the location coordinates of each secure element mark relative to the floor plan are saved to a database.
3. The method of claim 1, further comprising:
and clearing at least one safety element mark positioned in the plan view according to the received reset instruction.
4. The method of claim 2, further comprising:
and if the cursor is judged and known to be in the preset area where the safety element mark is located, displaying the basic information of the safety element mark.
5. An annotation system, comprising:
the calling module is used for calling the plan and the safety element mark set from the database according to the received calling instruction and respectively displaying the plan and the safety element mark set in the corresponding preset areas;
the dragging module is used for moving the secure element marks in the secure element mark set into the plan view along a dragging track so as to cover corresponding areas in the plan view;
the storage module is used for storing all the safety element marks in the plan view so as to realize the marking of the plan view;
the dragging module is specifically used for acquiring a first position coordinate of the plan; calculating a second position coordinate of the safety element mark in real time in the process of moving the safety element mark to the plane graph along the dragging track; when the dragging is judged and known to be completed, if the position relation between the second position coordinate of the safety element mark and the first position coordinate of the plan does not meet the preset condition, the second position coordinate of the safety element mark is adjusted in a self-adaptive mode, so that the safety element mark is located in the plan;
if the position relationship between the second position coordinate of the security element mark and the first position coordinate of the plan view does not satisfy the preset condition, adaptively adjusting the second position coordinate of the security element mark, further comprising:
if the horizontal coordinate is smaller than the first horizontal coordinate, taking the first horizontal coordinate as the horizontal coordinate of the safety element mark;
if the horizontal coordinate is larger than the second horizontal coordinate, taking the second horizontal coordinate as the horizontal coordinate of the safety element mark;
if the vertical coordinate is smaller than the first vertical coordinate, taking the first vertical coordinate as the vertical coordinate of the safety element mark;
if the vertical coordinate is larger than the second vertical coordinate, taking the second vertical coordinate as the vertical coordinate of the safety element mark;
the system further comprises:
the recording module is used for recording the basic information of each safety element mark;
the binding module is used for binding each security element mark with the basic information of the security element mark so that each security element mark carries the basic information of the security element mark;
the storage module is used for storing a plurality of security element marks carrying basic information into a database as a security element mark set;
wherein the basic information comprises a type, a paraphrase and a constraint condition; the type is the category to which the security element mark belongs; paraphrasing is the specific meaning represented by the security element indicia; the constraints are the dependence and mutual exclusion relationships of the security element tags.
6. The marking device is characterized by comprising a memory and a processor, wherein the processor and the memory are communicated with each other through a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 4.
7. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811058690.0A CN109343777B (en) | 2018-09-11 | 2018-09-11 | Labeling method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811058690.0A CN109343777B (en) | 2018-09-11 | 2018-09-11 | Labeling method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109343777A CN109343777A (en) | 2019-02-15 |
CN109343777B true CN109343777B (en) | 2020-05-05 |
Family
ID=65305032
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811058690.0A Active CN109343777B (en) | 2018-09-11 | 2018-09-11 | Labeling method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109343777B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111104032A (en) * | 2019-12-11 | 2020-05-05 | 万翼科技有限公司 | CAD drawing processing method and related device |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05120528A (en) * | 1991-07-19 | 1993-05-18 | Matsushita Refrig Co Ltd | Drink can and device for automatic vending machine with induction heater |
EP1818844B1 (en) * | 2006-02-10 | 2013-03-13 | Secunet Security Networks Aktiengesellschaft | Method for using security tokens |
US8286081B2 (en) * | 2009-04-30 | 2012-10-09 | Apple Inc. | Editing and saving key-indexed geometries in media editing applications |
US8839349B2 (en) * | 2011-10-18 | 2014-09-16 | Mcafee, Inc. | Integrating security policy and event management |
US8973147B2 (en) * | 2011-12-29 | 2015-03-03 | Mcafee, Inc. | Geo-mapping system security events |
CN103425690A (en) * | 2012-05-22 | 2013-12-04 | 湖南家工场网络技术有限公司 | Picture information labeling and displaying method based on cascading style sheets |
CN104658028B (en) * | 2013-11-18 | 2019-01-22 | 清华大学 | The method and apparatus of Fast Labeling object in 3-D image |
CN104574966B (en) * | 2015-01-14 | 2018-02-16 | 深圳市城市交通规划设计研究中心有限公司 | Variable information identity device and variable information identification method |
CN107273492B (en) * | 2017-06-15 | 2021-07-23 | 复旦大学 | Interaction method for processing image annotation task based on crowdsourcing platform |
CN108037891B (en) * | 2017-12-26 | 2022-04-01 | 深圳开立生物医疗科技股份有限公司 | Annotation method, system, equipment and computer storage medium |
CN108446693B (en) * | 2018-03-08 | 2020-05-12 | 上海扩博智能技术有限公司 | Marking method, system, equipment and storage medium of target to be identified |
-
2018
- 2018-09-11 CN CN201811058690.0A patent/CN109343777B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109343777A (en) | 2019-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5577188A (en) | Method to provide for virtual screen overlay | |
US20200012416A1 (en) | Providing graphical indication of label boundaries in digital maps | |
CN104298422A (en) | Information processing apparatus and method | |
CN107368996B (en) | Method/system for problem handling/supervision of field project, storage medium, terminal | |
CA2716434A1 (en) | Systems and methods for determining positioning and sizing of graphical elements | |
US20130325673A1 (en) | Coordinate model for inventory visualization in conjunction with physical layout | |
CN109213470B (en) | Cursor control method based on voice recognition | |
CN109976614B (en) | Method, device, equipment and medium for marking three-dimensional graph | |
CN107977342B (en) | Document comparison method and device | |
US20160266734A1 (en) | Conference support apparatus, conference support system, and computer-readable recording medium storing conference support program | |
US20160224534A1 (en) | Grid-based user interface system | |
CN106843663B (en) | Method, device, equipment and medium for positioning pre-jump position in page | |
CN109343777B (en) | Labeling method and system | |
JPH02140822A (en) | Multi-window display system | |
CN116075816A (en) | Map data visualization with multiple overlay mark layers | |
CN112416332B (en) | Graphical programming interface display method, device, equipment and medium | |
CN111836093A (en) | Video playing method, device, equipment and medium | |
CN105787568A (en) | IDC machine room equipment presenting method | |
CN108920230B (en) | Response method, device, equipment and storage medium for mouse suspension operation | |
CN111414443A (en) | Method, device, equipment and medium for plotting processing of blocked area map | |
CN111368234A (en) | Window adjusting method, device and storage medium | |
JP2019082927A (en) | Information processing apparatus, information processing method, and program | |
US10922546B2 (en) | Real-time location tagging | |
JP2017191509A (en) | Electronic book device and program | |
JP6914810B2 (en) | Program and terminal device control method |
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 | ||
GR01 | Patent grant |