WO2020192175A1 - 一种立体图形的标注方法、装置、设备及介质 - Google Patents
一种立体图形的标注方法、装置、设备及介质 Download PDFInfo
- Publication number
- WO2020192175A1 WO2020192175A1 PCT/CN2019/123248 CN2019123248W WO2020192175A1 WO 2020192175 A1 WO2020192175 A1 WO 2020192175A1 CN 2019123248 W CN2019123248 W CN 2019123248W WO 2020192175 A1 WO2020192175 A1 WO 2020192175A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- vertex
- marking
- target
- dimensional
- frame
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04802—3D-info-object: information is displayed on the internal or external surface of a three dimensional manipulable object, e.g. on the faces of a cube that can be rotated by the user
Definitions
- the embodiments of the present invention relate to the technical field of interactive smart tablets, for example, to a method, device, device, and medium for marking stereo graphics.
- presentation software such as whiteboards
- smart interactive devices can display solid geometry through presentation software, and most of the solid geometry displayed is "pseudo-three-dimensional".
- presentation software uses three-dimensional graphics to show solid geometry.
- marking vertices users usually need to drag and drop a "text box" to a vertex of solid geometry, and the user is required to enter the text box Enter the appropriate identification letter for labeling, if the user needs to enter the letter "A" for labeling.
- standing geometry has multiple vertices, for example, for a three-dimensional square, it has eight vertices. The user needs to manually drag and drop the "text box” for each vertex one by one, then adjust the position of the "text box” and enter letters for labeling , The entire operation is time-consuming.
- the present application provides a method, device, equipment and storage medium for annotating three-dimensional graphics to solve the technical problem of low efficiency of annotating three-dimensional graphics vertices in related technologies.
- an embodiment of the present invention provides a method for labeling a three-dimensional figure, including:
- the input information When the input information is received, the input information is displayed in the marking box, and the input information is used to mark the target marking vertex.
- the method before determining the target marking vertices of the three-dimensional graphics, the method further includes: receiving a marking trigger instruction, where the marking trigger instruction is used to start a vertex marking function.
- the determining the target labeling vertex of the three-dimensional graphic includes: determining the labeling position of each vertex of the three-dimensional graphic based on the labeling trigger instruction; and displaying the label of each vertex according to the labeling position of each vertex.
- a frame, and a first marked frame is determined based on the displayed marked frame, so as to determine a vertex corresponding to the first marked frame as the target marked vertex.
- determining the label position of each vertex of the three-dimensional graphic based on the label trigger instruction includes: determining the ridge projection information corresponding to each vertex of the three-dimensional graphic; determining the ridge projection information of each vertex according to the ridge projection information corresponding to each vertex.
- the angle of the ridgeline; the label position of each vertex is determined according to the angle of the ridgeline of each vertex.
- the determining the labeling position of each vertex according to the ridgeline included angle of each vertex includes: for each vertex, selecting a target ridgeline included angle from the ridgeline included angle of the vertex; determining the The angle bisector information corresponding to the included angle of the target ridgeline; based on the angle bisector information, the marking position of the vertex is determined on the angle bisector of the target ridgeline included angle.
- the determining the target marking vertex of the three-dimensional graphic includes: monitoring the cursor position after receiving the marking trigger instruction; when the distance between the cursor position and any vertex position in the three-dimensional graphic is less than a preset When spacing, the vertex corresponding to the vertex position is determined as the target marking vertex of the three-dimensional graphic.
- the method before displaying the cursor in the marking frame corresponding to the target marking vertex, the method further includes: determining ridge projection information corresponding to the target marking vertex, wherein the ridge projection information is used to determine the target marking The angle between at least two ridgelines of a vertex; select a target ridgeline angle from the at least two ridgeline angles; determine the angle bisector information corresponding to the target ridgeline angle, and the angle bisector information uses The marking position is determined on the bisector of the angle between the target ridgeline; the marking frame is displayed, and the marking frame is displayed according to the marking position.
- the method further includes: receiving an annotation vertex switching instruction; and moving the cursor to the second mark of the three-dimensional graphic according to the annotation vertex switching instruction And replace the target marked vertex with the vertex corresponding to the second marked frame.
- the method further includes: when a change in the three-dimensional graphic is detected, a mark frame of the vertex of the three-dimensional graphic is hidden; when the end of the change in the three-dimensional graphic is detected, the label position of the vertex after the change in the three-dimensional graphic is updated, and the The marking frame corresponding to the vertex is displayed according to the updated marking position.
- an embodiment of the present invention also provides a three-dimensional graphic marking device, including:
- the graphics display module is configured to display stereo graphics
- the marking vertex determination module is configured to determine the target marking vertices of the three-dimensional graphics, and to display a cursor in a marking frame corresponding to the target marking vertices, wherein the display position of the marking frame is based on the target marking vertices The ridgeline included angle is determined;
- the information display module is configured to display the input information in the marking box when the input information is received, and the input information is used to mark the target marking vertex.
- an embodiment of the present invention also provides a device, including: a memory, a display screen with touch function, and one or more processors; the memory is used to store one or more programs; when the one Or more programs are executed by the one or more processors, so that the one or more processors implement the following operations:
- the input information When the input information is received, the input information is displayed in the marking box, and the input information is used to mark the target marking vertex.
- an embodiment of the present invention also provides a storage medium containing computer-executable instructions, when the computer-executable instructions are executed by a computer processor, they are used to execute the method for labeling stereo graphics as described in the first aspect. .
- the target annotated vertex of the three-dimensional graphic can be determined, and a cursor is displayed in the mark box corresponding to the target annotated vertex, so that the user can input information in the mark box to mark the target annotated vertex, and
- the display position of the marking frame corresponding to the target marking vertex is determined according to the ridge angle of the target marking vertices, and the user does not need to manually drag and drop the marking frame for the vertices to be marked, which simplifies the vertex marking operation and improves the vertex marking efficiency.
- FIG. 1 is a flowchart of steps of a method for labeling a three-dimensional figure provided by an embodiment of the present invention
- Fig. 2 is a step flow chart of a method for labeling a three-dimensional figure in an optional implementation of this application;
- FIG. 3 is a schematic diagram of determining the marking frame corresponding to the target marking vertex in an example of the present application
- FIG. 4 is a schematic diagram of the mark box where the cursor is switched in an example of the present application
- Fig. 5 is a schematic diagram of adding a mark frame to a vertex in an example of the present application
- Fig. 6 is a schematic diagram of a three-dimensional figure rotation in an example of the present application.
- FIG. 7 is a structural block diagram of a device for labeling three-dimensional graphics in an embodiment of the present invention.
- Fig. 8 is a schematic structural diagram of a device in an embodiment of the present invention.
- Fig. 1 is a step flow chart of a method for labeling a three-dimensional figure provided by an embodiment of the present invention. This embodiment is applicable to the case of labeling three-dimensional geometric vertices.
- the method can be executed by a three-dimensional figure labeling device. It is implemented by software and/or hardware and integrated in the device for executing the method. As shown in Fig. 1, the method may include the following steps:
- Step 110 Display a three-dimensional graphic.
- a three-dimensional figure may refer to a three-dimensional figure displayed by a smart interactive device.
- the three-dimensional figure may also be called a three-dimensional geometric figure or a three-dimensional geometry, such as a cube, a cuboid, etc. displayed on a display screen.
- the smart interactive device can display a three-dimensional graphic on the operating interface through software such as a whiteboard, so that the user can perform various operations on the three-dimensional graphic on the operating interface, such as modifying the shape of the three-dimensional graphic and moving the three-dimensional graphic.
- the operation interface may refer to an interface that can perform various user operations.
- the user can perform operations such as graphics drawing, graphics editing, graphics display, and graphics vertex annotation on the operation interface.
- Step 120 Determine the target annotated vertex of the three-dimensional graphic, and display a cursor in a marker frame corresponding to the target annotated vertex, wherein the display position of the marker frame is determined according to the angle between the ridgeline of the target annotated vertex .
- the vertices that the three-dimensional graphics currently need to be labeled can be determined according to the labeling trigger instruction as the target labeling vertex; subsequently, the target labeling vertex associated edge line can be determined
- the ridgeline included angle is used to determine the display position of the target marking point corresponding to the mark frame based on the ridgeline included angle, and then the mark frame can be displayed on the operation interface based on the display position, and the cursor is displayed in the mark frame, so that The user can input information in the mark box to mark the target marked vertices, avoiding the trouble of dragging and dropping mark boxes for the vertices that need to be marked, which solves the need for users to drag and drop mark boxes one by one for the vertices to be marked in the related technology.
- the resulting cumbersome operation problems provide vertex labeling efficiency.
- the labeling trigger instruction can be used to start the vertex labeling function, so that the smart interactive device or the software in the smart interactive device can perform vertex labeling based on the vertex labeling function.
- the embodiment of the present invention may further include: receiving an annotation trigger instruction.
- the annotation trigger instruction can be directly submitted by the user on the operation interface, or generated based on the vertex annotation triggered by the user.
- the annotation trigger instruction can be automatically generated after the user clicks the vertex annotation button on the software to make smart
- the interactive device can receive the label trigger instruction.
- the labeling trigger instruction may also be automatically generated by software or intelligent interactive equipment according to the vertex labeling requirements.
- Step 130 When the input information is received, the input information is displayed in the marking box, and the input information is used to mark the target marking vertices.
- the user can input information in the marking box for the target marking vertex, so that the intelligent interactive device or the software in the intelligent interactive device can receive the input information, And the input information is displayed in the marking box corresponding to the target marking vertices, so that the input information is used to label the target marking vertices to achieve the purpose of marking the vertices.
- the embodiment of the present invention can determine the target marking vertices of the three-dimensional graphics, and display the cursor in the marking box corresponding to the target marking vertices, so that the user can input information in the marking box to mark the target vertices.
- the display position of the mark frame corresponding to the target mark vertex is determined according to the ridge angle of the target mark vertex, and the user does not need to manually drag and drop the mark frame for the vertices to be marked, which simplifies the vertex marking operation and improves the efficiency of vertex marking.
- mark box in the embodiment of the present invention is also called a mark box, which can be used to mark vertices, and the mark box is associated with the vertices it marks. It can be a "text box” or “text box” on the operation interface. Edit box” etc.
- the implementation of the present invention can start the vertex labeling function based on the labeling trigger instruction after detecting the labeling trigger instruction, and can determine the labeling position of each vertex of the currently displayed three-dimensional graphic based on the labeling triggering instruction as a corresponding label for each vertex
- the display position of the frame can further display the mark box of each vertex according to the mark position of each vertex, so that the user can input information in the mark box of each vertex to mark the vertices, so as to meet the user's vertex marking needs.
- the foregoing determining the target marking vertex of the three-dimensional graphic may include: determining the marking position of each vertex of the three-dimensional graphic based on the marking trigger instruction; and displaying the marking frame of each vertex according to the marking position of each vertex. , And determine a first mark frame based on the displayed mark frame to determine the vertex corresponding to the first mark frame as the target marked vertex.
- the first mark frame may refer to the mark frame of the first vertex that needs to be marked currently.
- the first vertex that currently needs to be marked can be determined
- the vertices are marked for the target, and the marking frame corresponding to the target marking vertex may be determined as the first marking frame, so as to mark the target marking vertices through the first marking frame.
- FIG. 2 there is shown a step flow chart of a method for labeling a three-dimensional figure in an optional implementation of the present application, which may include the following steps:
- Step 210 Display a three-dimensional graphic.
- Step 220 Receive an annotation trigger instruction, where the annotation trigger instruction is used to start a vertex annotation function.
- the user can submit a labeling trigger instruction to the smart interactive device by clicking a button or shortcut on the whiteboard software, so that the smart interactive device starts the whiteboard software according to the labeling triggering instruction
- the vertex labeling function of enters the vertex labeling state.
- Step 230 Determine the label position of each vertex of the three-dimensional graphic based on the label trigger instruction.
- the embodiment of the present invention can enter the vertex labeling state, and can automatically determine the labeling position of each vertex of the three-dimensional graphic based on the received labeling trigger instruction, so as to display the label of each vertex according to the labeling position of each vertex. Box, step 240 is executed.
- the embodiment of the present invention determines the label position of each vertex of the three-dimensional graphic based on the label trigger instruction, which may include: determining the ridge projection information corresponding to each vertex of the three-dimensional graphic; and according to the ridge corresponding to each vertex The projection information determines the ridge angle of each vertex; the label position of each vertex is determined according to the ridge angle of each vertex.
- the ridge projection information may be used to determine the size of the ridge angle of the vertex, and may include projection information corresponding to two or more ridges of the vertex.
- the edge line associated with each vertex of the three-dimensional figure can be found, and its direction on the two-dimensional plane can be calculated through the three-dimensional projection algorithm, as shown in Figure 3, in the projection matrix
- the projections of the three ridgelines of the vertex P0 of M that is, the three-dimensional figure in Figure 3
- the projection coordinates of the two vertices can be subtracted to determine the three vertex P0
- the projection information corresponding to the ridgeline; the projection information can be vector information, which can be used to characterize the direction of the ridgeline.
- the angle between the two vectors can be calculated using the ridge projection information, that is, the angle between every two ridges can be determined, and then the ridge can be determined.
- the mark position of the vertex is automatically set on the angle bisector of the included angle as the display position of the mark box corresponding to the vertex, and the mark box corresponding to the vertex can be displayed according to the display position, without the user manually dragging and dropping the mark box.
- the ridgeline angle with the largest ridgeline angle can be selected from the determined ridgeline angles as the target ridgeline angle, so as to set the display position of the mark frame of the vertex on the angle bisector of the target ridgeline angle. Therefore, it is possible to prevent the mark frame from blocking the edges or vertices of the three-dimensional graphics.
- the foregoing determining the labeling position of each vertex according to the ridge angle of each vertex may include: for each vertex, selecting a target ridgeline included angle from the ridgeline included angle of the vertex; determining the The angle bisector information corresponding to the included angle of the target ridgeline; based on the angle bisector information, the marking position of the vertex is determined on the angle bisector of the target ridgeline included angle.
- the first ridgeline associated with vertex P0 can be recorded as a vector v1
- the second ridgeline associated with vertex P0 Record the ridgeline as vector v2
- the third ridgeline associated with vertex P0 as vector v3
- the angle between every two vectors can be calculated according to the vector dot product formula, and the calculated maximum The included angle is used as the target ridge angle of the vertex P0.
- the included angle between each ridge projection can be calculated counterclockwise, that is, v1v2, v2v3, and v3v1 each constitute an angle, where the angle between v1v2 Maximum, and then the angle between v1v2 can be determined as the target ridge angle, and then the angle bisector of the maximum angle can be calculated according to the vector v1 and vector v2, that is, the angle bisector information corresponding to the target ridge angle can be determined .
- the mark can be set with a fixed R value on the bisector of the maximum included angle The center of the frame, and then a fixed-size marker frame is placed on this center and displayed on the operation interface, so that the user can input information in the marker box to mark the vertex P0.
- Step 240 Display the mark frame of each vertex according to the marking position of each vertex, and determine a first mark frame based on the displayed mark frame, and determine the vertex corresponding to the first mark frame as the target marking vertex.
- this embodiment can automatically determine the labeling position of each vertex of the three-dimensional graphic based on the labeling trigger instruction, so as to display the mark frame of each vertex according to the labeling position of each vertex.
- the whiteboard software can automatically display mark boxes at each vertex of the three-dimensional geometry (that is, three-dimensional graphics); and any one of the mark boxes can be selected as the first mark box from the displayed mark box, and the The vertex corresponding to the first marking box is determined as the target marking vertex. For example, positioning the input cursor in the first displayed marking box to determine the first displayed marking box as the first marking box, so that the user can mark Enter the information in the box to label the target labeled vertices.
- Step 250 When the input information is received, display the input information in a marking box corresponding to the target annotated vertex, and the input information is used to annotate the target annotated vertex.
- the input information when the marking frame corresponding to the target marking vertex is the first marking frame, after the user inputs information, the input information may be displayed in the first marking frame, so as to use the input information to mark the target marking vertices to satisfy the user’s requirements. Vertex labeling requirements.
- the first mark box in this embodiment may also be a mark box other than the first displayed mark box.
- the second or last displayed mark box may be selected as the first mark box according to the display order of the mark boxes.
- the first marker box can also be selected in other ways, for example, the first marker box can be determined based on the cursor position.
- the user can modify the target annotation vertices currently required to be annotated by submitting an annotation switching instruction.
- the embodiment of the present invention may further include: receiving a marking vertex switching instruction; according to the marking vertex switching instruction, moving the cursor to the second of the three-dimensional graphic Marking the frame, and replacing the target marking vertex with the vertex corresponding to the second marking frame.
- the annotation vertex switching instruction can be used to switch the marker frame where the cursor is located to modify the target annotation vertices currently required to be annotated
- the annotation vertex switching instruction can be triggered by a user operation, such as a keyboard operation submitted by the user Or generated by mouse operation or touch operation.
- the user operation may be an operation of clicking the Tab key of the keyboard.
- the user can submit a labeling trigger instruction to the interactive smart tablet by clicking a button or keyboard shortcut displayed on the smart interactive device, so that the smart interactive device enters the vertex labeling state.
- the user can click the "vertex labeling" button displayed on the smart interactive device to trigger the labeling instruction to trigger the smart interactive device to generate and enter the vertex labeling state.
- the user can also trigger the smart interactive device to enter the vertex labeling state by other means, for example, you can quickly enter the vertex labeling state by clicking a preset shortcut key such as "Ctrl+M" on the keyboard.
- the label box When entering the vertex labeling state, the label box can be automatically displayed at the label position of each vertex of the solid geometry, as shown in Figure 4, and the input cursor can be positioned in the first label box, that is, the first displayed label can be set
- the frame is determined as the marked frame corresponding to the target marked vertex, and the cursor is displayed in the marked frame corresponding to the target marked vertex.
- the user can input an annotation vertex switching instruction to the smart interactive device to trigger the smart interactive device to move the cursor to the mark box of another vertex according to the annotation vertex switching instruction to switch the target annotated vertex to another vertex , That is, move the cursor to the second mark frame of the three-dimensional graphic and replace the target marked vertex with the vertex corresponding to the second mark frame.
- the user can submit a label vertex switching instruction to the smart interactive device by pressing the "TAB" key, thereby switching the marker box where the input cursor is located, as shown in Figure 4, moving the cursor from the first marker box to the second marker box To switch the target label vertex to another vertex.
- the mark frame of the vertex of the three-dimensional figure may not be automatically displayed, but the mark frame corresponding to the vertex may be displayed when the mouse moves to the vicinity of a vertex, so as The vertex is determined as the target labeled vertex, and the input cursor can be positioned on the mark box corresponding to the target labeled vertex to determine the mark box corresponding to the target labeled vertex as the first mark box, so that the user can input in the first mark box
- the information labels the target label vertices.
- the above determining the target marking vertex of the three-dimensional graphic includes: monitoring the cursor position after receiving the marking trigger instruction; when the distance between the cursor position and any vertex position in the three-dimensional graphic is less than a preset distance When determining the vertex corresponding to the vertex position as the target marking vertex of the three-dimensional graphic.
- the embodiment of the present invention can enter the vertex labeling state according to the labeling trigger instruction to detect and monitor the cursor position in the vertex labeling state.
- the cursor position can refer to the display position of the input cursor, and the cursor position can be determined by a touch operation or a mouse operation.
- the monitored cursor position can be compared with the position of each vertex of the currently displayed three-dimensional graphic to determine the distance between the cursor position and each vertex of the three-dimensional graphic.
- the vertex corresponding to the vertex position can be determined as the target annotated vertex, and then at least two ridges associated with the target annotated vertex can be determined according to The angle between the ridgelines determines the label position of the target label vertex, so that the label box corresponding to the target label vertex can be displayed according to the label position of the target label vertex, and the cursor can be positioned to the target label vertex
- the corresponding mark box is displayed and displayed to prompt the user to enter information in the mark box to mark the target marked vertices. There is no need for the user to manually drag and drop the "text box" for the vertices to be marked as the mark box, which simplifies user operations and improves vertex marking effectiveness.
- this embodiment may further include: determining the ridge projection information corresponding to the target annotated vertex, wherein the ridge projection information is used to determine the target annotated vertex At least two ridgeline included angles; select the target ridgeline included angle from the at least two ridgeline included angles; determine the angle bisector information corresponding to the target ridgeline included angle, and the angle bisector information is used in The marking position is determined on the corner bisector of the included angle of the target ridge; the marking frame is displayed, and the marking frame is displayed according to the marking position.
- the ridge projection information corresponding to the target labeled vertex can be determined according to the coordinate information corresponding to other vertices adjacent to the target labeled vertex, and then the ridge projection information corresponding to the target labeled vertex can be determined based on the corresponding target labeled vertex.
- the projection information of the ridgeline determines one or more ridgeline included angles of the target marked vertices, and the target ridgeline included angle with the largest included angle can be selected according to the determined ridgeline included angle, so as
- the angle bisector information of the included angle determines the marking position on the angle bisector of the included angle of the target ridgeline, so that the marking frame corresponding to the target marking vertex can be displayed at the marking position.
- the interactive smart tablet when it enters the vertex mark state, it may not automatically display the mark box corresponding to the vertex of the three-dimensional graphic.
- the vertex When the mouse moves to the vicinity of a certain vertex, the vertex can be highlighted, and the vertex A marker box is displayed at the marked position, as shown in Figure 5.
- a marker box can be added to the vertex.
- the input cursor After adding the "marked box", the input cursor can be automatically positioned inside the marked box, so that the user can input the identification letter in the marked box, that is, input information to mark the target marked vertices.
- the interactive smart tablet can confirm the user's input and associate the user's input information with the target marked vertices to complete the marking of the target marked vertices and exit the marking state of the target marked vertices.
- the interactive smart tablet can repeat the above operations to label other vertices.
- the display position of the mark frame corresponding to the vertex can be automatically adjusted according to the change of the three-dimensional graphic, that is, the label position of the vertex can be automatically adjusted to avoid It is troublesome for the user to manually adjust the position of the marker frame after the three-dimensional graphic changes, which simplifies the user's operation.
- this embodiment may further include: when a change in the three-dimensional figure is detected, the marking frame of the vertex of the three-dimensional figure is hidden; when the end of the change in the three-dimensional figure is detected, the mark position of the vertex after the change in the three-dimensional figure is marked Update, and display the marking frame corresponding to the vertex according to the updated marking position.
- this embodiment when the position of the three-dimensional figure or its three-dimensional size and rotation angle change, this embodiment can automatically hide the mark boxes of all vertices when the change starts, and automatically display the mark boxes of all vertices when the change ends, and Automatically adjust the position of the marker frame to prevent the marker frame from being blocked by the changed edge.
- the automatic adjustment of the position of the marker frame can be calculated according to a preset algorithm of the default position of the marker frame.
- the "visibility" of the marker box can be set to "false” in the program of the whiteboard software, so that the whiteboard software hides the marker box corresponding to the vertex during the 3D graphics change, that is, it will not show Mark the frame to achieve the hidden effect; and after the change is over, recalculate the ridge projection information of each vertex to re-determine the position of the mark frame through the projection angle of the vertex ridge line to follow the re-determined position of the mark frame
- the marking frame corresponding to the vertex is displayed to achieve the purpose of automatically adjusting the position of the vertex, without the need for the user to manually adjust the position of the vertex, simplifying user operations, and improving the efficiency of vertex marking after the three-dimensional graphic changes.
- the marking device of the three-dimensional graphics may include the following modules:
- the graphics display module 710 is used to display stereo graphics
- the annotated vertex determination module 720 is configured to determine the target annotated vertices of the three-dimensional graphics, and display a cursor in a marker frame corresponding to the target annotated vertices, wherein the display position of the marker frame is based on the target annotated vertices The ridgeline included angle is determined;
- the information display module 730 is configured to display the input information in the marking box when the input information is received, and the input information is used to mark the target marking vertex.
- the above-mentioned apparatus may further include: a trigger instruction receiving module, configured to receive a labeling trigger instruction.
- the trigger instruction receiving module may receive an annotation trigger instruction before determining the target annotation vertex of the three-dimensional graphic.
- the labeling trigger instruction is used to start the vertex labeling function.
- the labeled vertex determination module 720 may include the following submodules:
- the labeling position determination sub-module is configured to determine the labeling position of each vertex of the three-dimensional graphic based on the labeling trigger instruction;
- the display sub-module is configured to display the mark frame of each vertex according to the mark position of each vertex, and determine the first mark frame based on the displayed mark frame, so as to determine the vertex corresponding to the first mark frame as the The target marks the vertices.
- the marking location determination submodule may include the following units:
- the ridge projection information determining unit is used to determine the ridge projection information corresponding to each vertex of the three-dimensional figure
- the ridgeline included angle determination unit is used to determine the ridgeline included angle of each vertex according to the ridgeline projection information corresponding to each vertex;
- the labeling position determining unit is used to determine the labeling position of each vertex according to the angle of the ridgeline of each vertex.
- the marking position determining unit may be configured to select a target ridgeline included angle from the ridgeline included angles of the vertex for each vertex; and determine the target ridgeline The angle bisector information corresponding to the included angle; and, based on the angle bisector information, the label position of the vertex is determined on the angle bisector of the target ridge included angle.
- the marking vertex determination module 720 includes:
- the cursor position detection sub-module is used to monitor the cursor position after receiving the marking trigger instruction
- the target annotated vertex determination submodule is used to determine the vertex corresponding to the vertex position as the target annotated vertex of the three-dimensional graphic when the distance between the cursor position and any vertex position in the three-dimensional graphic is less than a preset distance .
- annotation vertex determination module 720 may further include the following submodules:
- the ridge projection information determining sub-module is configured to determine the ridge projection information corresponding to the target marked vertices, wherein the ridge projection information is used to determine at least two ridge angles of the target marked vertices;
- the angle bisector information determining sub-module is used to determine the angle bisector information corresponding to the included angle of the target ridgeline, and the angle bisector information is used to determine the marking position on the angle bisector of the target ridge included angle;
- the mark frame display submodule is used to display the mark frame, and the mark frame is displayed according to the marked position.
- the foregoing device may further include the following modules:
- the switching instruction receiving module is used to receive the marking vertex switching instruction
- the switching module is configured to move the cursor to the second mark frame of the three-dimensional figure according to the mark vertex switch instruction, and replace the target mark vertex with the vertex corresponding to the second mark frame.
- the foregoing device may further include the following modules:
- the mark frame hiding module is used to hide the mark frame of the vertex of the three-dimensional graphic when the change of the three-dimensional graphic is detected;
- the display update module is used to update the label position of the vertex after the change of the three-dimensional figure when the end of the change of the three-dimensional figure is detected, and display the mark frame corresponding to the vertex according to the updated label position.
- the device for labeling three-dimensional graphics provided in this embodiment can be used to implement the method for labeling three-dimensional graphics in the foregoing embodiment, and has corresponding functions and beneficial effects.
- the marking device of the three-dimensional graphics in this embodiment may include two parts: the "marking subsystem” and the “automatic adjustment subsystem".
- the "labeling subsystem” can be used to quickly mark the vertices, and can include the trigger command receiving module, the labeling vertex determining module 720, the information display module 730, the switching command receiving module, the switching module, etc.;
- the “subsystem” will automatically adjust the position of the mark according to the change of the solid geometry, which can include a hidden module of the mark frame, a display update module, etc.
- the three-dimensional graphic annotation device provided above can be integrated into a device.
- the device can be composed of two or more physical entities or one physical entity.
- the device can be a computer, a mobile phone, a tablet, or a projector. Or interactive smart tablets, etc.
- the device includes: a processor 80, a memory 81, a display screen 82 with a touch function, an input device 83, an output device 84, and a communication device 85.
- the number of processors 80 in the device may be one or more, and one processor 80 is taken as an example in FIG. 8.
- the number of memories 81 in the device may be one or more.
- One memory 81 is taken as an example in FIG. 8.
- the processor 80, the memory 81, the display screen 82, the input device 83, the output device 84, and the communication device 85 of the device may be connected by a bus or other means.
- the marking device of the stereo graphics may be a smart interactive device such as a computer, a mobile phone, a tablet, a projector, or an interactive smart tablet.
- the device is an interactive smart tablet as an example for description.
- the memory 81 can be used to store software programs, computer-executable programs, and modules, such as the program instructions/modules corresponding to the stereographic annotation method described in any embodiment of the present application (for example, the stereographic The graphic display module 710, the annotation vertex determination module 720, and the information display module 730 in the labeling device, etc.).
- the memory 81 may mainly include a program storage area and a data storage area.
- the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the device, and the like.
- the memory 81 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
- the memory 81 may include a memory remotely provided with respect to the processor 80, and these remote memories may be connected to the device through a network. Examples of the above-mentioned network may include the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
- the display screen 82 is a display screen 82 with a touch function, which may be a capacitive screen, an electromagnetic screen or an infrared screen.
- the display screen 82 is used to display data according to instructions from the processor 80, and is also used to receive touch operations on the display screen 82, and send corresponding signals to the processor 80 or other devices.
- the display screen 82 is an infrared screen, it further includes an infrared touch frame, which is arranged around the display screen 82 and can also be used to receive infrared signals and send the infrared signals to the processor 80 or other equipment.
- the communication device 85 is used to establish a communication connection with other devices, and it may be a wired communication device and/or a wireless communication device.
- the input device 83 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the stereographic annotation device, and can also be a camera for acquiring images and a pickup device for acquiring audio data .
- the output device 84 may include audio equipment such as speakers. It should be noted that the composition of the input device 83 and the output device 84 can be set according to actual conditions.
- the processor 80 executes various functional applications and data processing of the device by running the software programs, instructions, and modules stored in the memory 81, that is, realizes the above-mentioned method for marking the three-dimensional graphics.
- processor 80 executes one or more programs stored in the memory 81, the following operations are specifically implemented:
- the input information When the input information is received, the input information is displayed in the marking box, and the input information is used to mark the target marking vertex.
- the following operations are further implemented: receiving an annotation trigger instruction, where the annotation trigger instruction is used to start a vertex annotation function.
- one or more processors 80 when one or more processors 80 realize the determination of the target marking vertices of the three-dimensional graphics, they may include: determining the marking positions of the vertices of the three-dimensional graphics based on the marking trigger instruction; The marking position of each vertex displays the marking frame of each vertex, and a first marking frame is determined based on the displayed marking frame, so that the vertex corresponding to the first marking frame is determined as the target marking vertex.
- the method may include: determining the ridge projection information corresponding to each vertex of the three-dimensional graphic; The ridge projection information corresponding to each vertex determines the ridge angle of each vertex; the label position of each vertex is determined according to the ridge angle of each vertex.
- one or more processors 80 realize the determination of the label position of each vertex according to the angle of the ridgeline of each vertex, it may include: for each vertex, from the ridgeline of the vertex Select the target ridgeline included angle from the included angle; determine the angle bisector information corresponding to the target ridgeline included angle; determine the vertex on the angle bisector of the target ridgeline included angle based on the angle bisector information The location of the label.
- one or more processors 80 when one or more processors 80 realize the determination of the target annotated vertex of the three-dimensional graphic, it may include: after receiving an annotation trigger instruction, monitoring the cursor position; when the cursor position is When the distance between any vertex position in the three-dimensional figure is less than the preset distance, the vertex corresponding to the vertex position is determined as the target marking vertex of the three-dimensional figure.
- one or more processors 80 implement the following operations before realizing displaying the cursor in the marking frame corresponding to the target marking vertex: determining the target marking Ridgeline projection information corresponding to a vertex, wherein the ridgeline projection information is used to determine at least two ridgeline included angles of the target marked vertex; and the target ridgeline included angle is selected from the at least two ridgeline included angles Determine the angle bisector information corresponding to the included angle of the target ridgeline, and the angle bisector information is used to determine the label position on the angle bisector of the included angle of the target ridgeline; display the mark frame, the mark frame is Displayed according to the marked position.
- the following operations are further implemented: receiving a marking vertex switching instruction; switching according to the marking vertex Instruction to move the cursor to the second mark frame of the three-dimensional figure, and replace the target marked vertex with the vertex corresponding to the second mark frame.
- one or more processors 80 may also realize: when a change in a three-dimensional graphic is detected, the mark frame of the vertex of the three-dimensional graphic is hidden; The label position of the vertex is updated after the graph is changed, and the label frame corresponding to the vertex is displayed according to the updated label position.
- the three-dimensional figure marking device provided above can be used to execute the three-dimensional figure marking method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
- the embodiment of the present invention also provides a storage medium containing computer-executable instructions, when the computer-executable instructions are executed by a computer processor, a method for labeling stereo graphics includes: displaying the stereo graphics; determining the The target of the three-dimensional graphics is marked with a vertex, and a cursor is displayed in a marking frame corresponding to the target marking vertex, wherein the display position of the marking frame is determined according to the angle between the ridgeline of the target marking vertex; when input information is received When, the input information is displayed in the marking box, and the input information is used to mark the target marking vertices.
- a storage medium containing computer-executable instructions provided by an embodiment of the present invention can also perform related operations in the three-dimensional graphic annotation method provided by any embodiment of the present application, and has corresponding The functions and beneficial effects.
- the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, Read-Only Memory (ROM), Random Access Memory (RAM), Flash memory (FLASH), hard disk or optical disk, etc., including several instructions to make a computer device (can be a robot, personal A computer, a server, or a network device, etc.) execute the method for labeling the three-dimensional graphics described in any embodiment of the present application.
- a computer-readable storage medium such as a computer floppy disk, Read-Only Memory (ROM), Random Access Memory (RAM), Flash memory (FLASH), hard disk or optical disk, etc.
- ROM Read-Only Memory
- RAM Random Access Memory
- FLASH Flash memory
- hard disk or optical disk etc.
- a computer device can be a robot, personal A computer, a server, or a network device, etc.
- each part of this application can be implemented by hardware, software, firmware, or a combination thereof.
- multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system.
- a logic gate circuit for implementing logic functions on data signals
- PGA programmable gate array
- FPGA field programmable gate array
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
一种立体图形的标注方法、装置、设备及介质,该方法包括:显示立体图形(110);确定所述立体图形的目标标注顶点,并在所述目标标注顶点对应的标记框中显示光标,其中,所述标记框的显示位置为依据所述目标标注顶点的棱线夹角确定(120);当接收到输入信息时,在所述标记框中显示所述输入信息,所述输入信息用于对所述目标标注顶点进行标注(130)。该方法简化了顶点标注操作,从而提高顶点标注效率。
Description
本公开要求在2019年03月28日提交中国专利局、申请号为201910244737.0的中国专利申请的优先权,以上申请的全部内容通过引用结合在本公开中。
本发明实施例涉及交互智能平板技术领域,例如涉及一种立体图形的标注方法、装置、设备及介质。
随着交互智能平板技术快速发展,基于智能交互设备实现的应用软件越来越普及,给人们的生活、学习及工作带来了极大的便利。
其中,诸如白板等演示类软件作为智能交互设备中的常见应用软件,在演示模式下展现所编辑的文字或绘制的图形。例如,智能交互设备可以通过演示类软件来展现立体几何,其展现的立体几何大多是“伪三维”的。具体而言,相关技术中,演示类软件是通过三维立体图形来展现立体几何,在标记顶点时,通常需要用户拖放一个“文本框”到立体几何某个顶点附近,并需要用户在文本框中输入合适的标识字母进行标注,如需要用户输入字母“A”进行标注。当立几何具有多个顶点,如对立体方而言,其具有八个顶点,需要用户手动为每个顶点逐一地拖放“文本框”,然后调整“文本框”的位置并输入字母进行标注,整个操作比较耗时。
发明内容
本申请提供一种立体图形的标注方法、装置、设备及存储介质,以解决相关技术中立体图形顶点标注效率低的技术问题。
第一方面,本发明实施例提供了一种立体图形的标注方法,包括:
显示立体图形;
确定所述立体图形的目标标注顶点,并在所述目标标注顶点对应的标记框中显示光标,其中,所述标记框的显示位置为依据所述目标标注顶点的棱线夹角确定;
当接收到输入信息时,在所述标记框中显示所述输入信息,所述输入信息用于对所述目标标注顶点进行标注。
可选地,在确定所述立体图形的目标标注顶点之前,还包括:接收标注触发指令,所述标注触发指令用于启动顶点标注功能。
可选地,所述确定所述立体图形的目标标注顶点,包括:基于所述标注触发指令确定立体图形每个顶点的标注位置;分别按照所述每个顶点的标注位置显示每个顶点的标记框,并基于显示的标记框确定出第一标记框,以将所述第一标记框对应的顶点确定为所述目标标注顶点。
可选地,基于所述标注触发指令确定立体图形每个顶点的标注位置,包括:确定立体图形每个顶点对应的棱线投影信息;依据每个顶点对应的棱线投影信息确定每个顶点的棱线夹角;依据每个顶点的棱线夹角确定每个顶点的标注位置。
可选地,所述依据每个顶点的棱线夹角确定每个顶点的标注位置,包括:针对每个顶点,从所述顶点的棱线夹角中选取目标棱线夹角;确定所述目标棱线夹角对应的角平分线信息;基于所述角平分线信息,在所述目标棱线夹角的角平分线上确定所述顶点的标注位置。
可选地,所述确定所述立体图形的目标标注顶点,包括:在接收到标注触发指令后,监测光标位置;当所述光标位置与所述立体图形中任一顶点位置的间距小于预设间距时,将所述顶点位置对应的顶点确定为所述立体图形的目标标注顶点。
可选地,在所述目标标注顶点对应的标记框中显示光标之前,还包括:确定所述目标标注顶点对应的棱线投影信息,其中,所述棱线投影信息用于确定所述目标标注顶点的至少两个棱线夹角;从所述至少两个棱线夹角中选取目标棱线夹角;确定所述目标棱线夹角对应的角平分线信息,所述角平分线信息用于在目标棱线夹角的角平分线上确定标注位置;显示所述标记框,所述标记框为按照所述标注位置进行显示的。
可选地,在所述目标标注顶点对应的标记框中显示光标之后,还包括:接收标注顶点切换指令;依据所述标注顶点切换指令,将所述光标移动至所述立体图形的第二标记框,并将所述目标标注顶点更换为所述第二标记框对应的顶点。
可选地,还包括:当检测到立体图形变化,隐藏所述立体图形的顶点的标记框;当检测到立体图形变化结束时,对所述立体图形变化后顶点的标注位置进行更新,并按照依据更新后的标注位置显示所述顶点对应的标记框。
第二方面,本发明实施例还提供了一种立体图形的标注装置,包括:
图形显示模块,被配置为显示立体图形;
标注顶点确定模块,被配置为确定所述立体图形的目标标注顶点,并在所述目标标注顶点对应的标记框中显示光标,其中,所述标记框的显示位置为依据所述目标标注顶点的棱线夹角确定;
信息显示模块,被配置为当接收到输入信息时,在所述标记框中显示所述输入信息,所述输入信息用于对所述目标标注顶点进行标注。
第三方面,本发明实施例还提供了一种设备,包括:存储器、具有触摸功能的显示屏以及一个或多个处理器;所述存储器,用于存储一个或多个程序;当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如下操作:
显示立体图形;
确定所述立体图形的目标标注顶点,并在所述目标标注顶点对应的标记框中显示光标,其中,所述标记框的显示位置为依据所述目标标注顶点的棱线夹角确定;
当接收到输入信息时,在所述标记框中显示所述输入信息,所述输入信息用于对所述目标标注顶点进行标注。
第四方面,本发明实施例还提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如第一方面所述的立体图形的标注方法。
本发明实施例在显示立体图形后,可确定该立体图形的目标标注顶点,并在该目标标注顶点对应的标记框显示光标,使得用户可以在该标记框输入信息对目标标注顶点进行标注,且目标标注顶点对应标记框的显示位置为依据目标标注顶点的棱线夹角确定,无需用户为待标注的顶点手动拖放标记框,即简化顶点标注操作,提高顶点标注效率。
图1为本发明实施例提供的一种立体图形的标注方法的步骤流程图;
图2是本申请可选实施中的一种立体图形的标注方法的步骤流程图;
图3是本申请一个示例中确定目标标注顶点对应标记框的示意图;
图4是本申请一个示例中切换光标所在的标记框的示意图;
图5是本申请一个示例中为顶点添加标记框的示意图;
图6是本申请一个示例中立体图形旋转的示意图;
图7是本发明实施例中的一种立体图形的标注装置的结构框图;
图8是本发明实施例中的一种设备的结构示意图。
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。
图1为本发明实施例提供的一种立体图形的标注方法的步骤流程图,本实施例可适用于立体几何顶点标注的情况,该方法可以由立体图形的标注装置来执行,该装置可以通过软件和/或硬件的方式来实现,并集成在执行本方法的设备中,如图1所示,该方法可以包括如下步骤:
步骤110、显示立体图形。
本实施例中,立体图形可以是指智能交互设备显示的三维立体图形,该三维立体图形也可以称为立体几何图形或立体几何,如可以是在显示屏幕上展示的立方体、长方体等。
在实现中,智能交互设备可以通过诸如白板等软件,在操作界面上显示立体图形,使得用户可以在该操作界面上对该立体图形进行各种操作,如修改立体图形的形状、移动立体图形的位置等。其中,操作界面可以是指可以进行各种用户操作的界面,如用户可以在操作界面上进行图形绘制、图形编辑、图形显示、图形顶点标注等操作。
步骤120、确定所述立体图形的目标标注顶点,并在所述目标标注顶点对应的标记框中显示光标,其中,所述标记框的显示位置为依据所述目标标注顶点的棱线夹角确定。
本发明实施例在需要对立体图形的顶点进行标注时,可以根据标注触发指令确定出该立体图形当前所需要标注的顶点,以作为目标标注顶点;随后,可根据该目标标注顶点关联棱线确定出棱线夹角,以根据该棱线夹角确定出该目标标注点对应标记框的显示位置,进而可基于该显示位置在操作界面上展示标记框,以及在该标记框里显示光标,使得用户可以在该标记框中输入信息对目 标标注顶点进行标注,避免用户针对需要标注的顶点手段拖放标记框的麻烦,即解决了相关技术中需要用户为立体图形待标注顶点逐一拖放标记框所导致的操作繁琐问题,提供顶点标注效率。
其中,标注触发指令可以用于启动顶点标注功能,使得智能交互设备或该智能交互设备中的软件可在基于该顶点标注功能进行顶点标注。在一些实施例中,本发明实施例在确定立体图形的目标标注顶点之前,还可以包括:接收标注触发指令。该标注触发指令可以是用户直接在操作界面上提交的,也可以是根据用户提交的顶点标注触发擦操作生成的,如可以在用户点击软件上的顶点标注按钮后自动生成标注触发指令,使得智能交互设备可以接收到该标注触发指令。当然,该标注触发指令也可以是有软件或智能交互设备根据顶点标注需求自动生成的。
步骤130、当接收到输入信息时,在所述标记框中显示所述输入信息,所述输入信息用于对所述目标标注顶点进行标注。
本发明实施例中,在目标标注顶点对应的标记框显示后,用户可以针对目标标注顶点在该标记框中输入信息,使得智能交互设备或该智能交互设备中的软件可以接收到该输入信息,并在目标标注顶点对应的标记框中显示该输入信息,以采用该输入信息对目标标注顶点进行标注,达到标注顶点标注的目的。
综上,本发明实施例在显示立体图形后,可确定该立体图形的目标标注顶点,并在该目标标注顶点对应的标记框显示光标,使得用户可以在该标记框输入信息对目标标注顶点进行标注,且目标标注顶点对应标记框的显示位置为依据目标标注顶点的棱线夹角确定,无需用户为待标注的顶点手动拖放标记框,即简化顶点标注操作,提高顶点标注效率。
需要说明的是,本发明实施例中的标记框又称标注框,可以用于对顶点进行标注,且该标记框与其所标注的顶点关联,其可以是操作界面的一个“文本框”、“编辑框”等。
在实现中,本发明实施在检测到标注触发指令后,可以基于该标注触发指令启动顶点标注功能,并可基于标注触发指令确定当前显示的立体图形各顶点的标注位置,以作为各顶点对应标记框的显示位置,进而可以分别按照各顶点的标注位置显示各顶点的标记框,使得用户可以在各顶点的标记框输入信息进行顶点标注,满足用户的顶点标注需求。在一些实施例中,上述确定所述立体图形的目标标注顶点,可以包括:基于所述标注触发指令确定立体图形各顶点 的标注位置;分别按照所述各顶点的标注位置显示各顶点的标记框,并基于显示的标记框确定出第一标记框,以将所述第一标记框对应的顶点确定为所述目标标注顶点。其中,第一标记框可以是指当前所需要标注的第一个顶点的标记框,如在具有两个或多个待标注的顶点的情况下,可以将当前所需要标注的第一个顶点确定为目标标注顶点,并可将该目标标注顶点对应的标记框确定为第一标记框,以通过该第一标记框对目标标注顶点进行标注。
参照图2,示出了本申请可选实施中的一种立体图形的标注方法的步骤流程图,可以包括如下步骤:
步骤210、显示立体图形。
步骤220、接收标注触发指令,所述标注触发指令用于启动顶点标注功能。
例如,在智能交互设备通过白板软件显示立体图形后,用户可以通过点击该白板软件上的按钮或者快捷键方式,向智能交互设备提交标注触发指令,使得智能交互设备依据该标注触发指令启动白板软件的顶点标注功能,进入顶点标注状态。
步骤230、基于所述标注触发指令确定立体图形各顶点的标注位置。
本发明实施例在启动顶点标注功能后,可以进入顶点标注状态,并可基于接收到的标注触发指令自动确定出立体图形各个顶点的标注位置,以分别按照各个顶点的标注位置显示各顶点的标记框,即执行步骤240。
在一种可选实施方式中,本发明实施例基于标注触发指令确定立体图形各顶点的标注位置,可以包括:确定立体图形每个顶点对应的棱线投影信息;依据每个顶点对应的棱线投影信息确定每个顶点的棱线夹角;依据每个顶点的棱线夹角确定每个顶点的标注位置。其中,棱线投影信息可以用于确定顶点的棱线夹角大小,可以包括顶点的两条或两条以上棱线对应的投影信息。
本发明实施例在进入顶点标注状态后,可以找到立体图形的每个顶点关联的棱线,并可通过三维投影算法计算出其在二维平面上的方向,如图3所示,在投影矩阵M(即图3中的立体图形)的顶点P0的三条棱线的投影分别为v1,v2,v3的情况下,可以通过两个顶点的投影坐标相减的方法,确定出出顶点P0的三条棱线对应的投影信息;该投影信息可以是向量信息,可以用于表征棱线的方向。随后,可根据向量点积公式,采用棱线投影信息可以计算出两个向量之间的夹角大小,即确定出每两条棱线之间的棱线夹角,然后可在确定出棱线夹角的角平分线上自动设置顶点的标注位置,以作为顶点对应标记框的显示位 置,进而可按照该显示位置显示顶点对应的标记框,无需用户手动拖放标记框。
本发明实施例可以从确定出的棱线夹角中选择夹角最大的棱线夹角作为目标棱线夹角,以在目标棱线夹角的角平分线上设置顶点的标记框的显示位置,从而能够避免标记框遮挡立体图形的棱线或顶点。可选的,上述依据每个顶点的棱线夹角确定每个顶点的标注位置,可以包括:针对每个顶点,从所述顶点的棱线夹角中选取目标棱线夹角;确定所述目标棱线夹角对应的角平分线信息;基于所述角平分线信息,在所述目标棱线夹角的角平分线上确定所述顶点的标注位置。
例如,从三维到二维存在一个投影矩阵,在确定顶点P0(x,y,z)后,可以获取该顶点P0(x,y,z)的投影坐标信息,记录为P’=P0*M;随后可通过两个顶点的投影坐标信息相减,即可得到棱线的方向,如结合上述例子,可将顶点P0关联的第一条棱线记录为向量v1,将顶点P0关联的第二条棱线记录为向量v2,以及将顶点P0关联的第三条棱线记录为向量v3;随后可根据向量点积公式可以计算出每两个向量之间的夹角,并选择计算出的最大夹角作为该顶点P0的目标棱线夹角,如可以按照逆时针顺次计算各棱线投影间的夹角,即计算出v1v2、v2v3、v3v1各自构成夹角,其中v1v2之间的夹角最大,进而可以将v1v2之间的夹角确定为目标棱线夹角,随后可以根据向量v1和向量v2计算出最大夹角的角平分线,即确定目标棱线夹角对应的角平分线信息,以基于角平分线信息在目标棱线夹角的角平分线上确定顶点P0的标注位置,如图3所示,可以在最大夹角的角平分线上以固定的R值来设定标记框的中心,然后以此中心来放置固定大小的标记框,并显示在操作界面上,使得用户可以在标记框中输入信息对顶点P0进行标注。
步骤240、分别按照所述各顶点的标注位置显示各顶点的标记框,并基于显示的标记框确定出第一标记框,以将所述第一标记框对应的顶点确定为目标标注顶点。
当进入顶点标注状态时,本实施例可以基于该标注触发指令自动确定出立体图形各个顶点的标注位置,以分别按照各个顶点的标注位置显示各顶点的标记框。如图3所示,白板软件可以会自动在立体几何(即立体图形)的各个顶点处显示标记框;并可从显示的标记框中选取其中任意一个标记框作为第一标记框,以该将第一标记框对应的顶点确定为目标标注顶点,如将输入光标定位在首个显示的标记框中,以将首个显示的标记框确定为第一标记框,使得用户 可以在该第一标记框输入信息对目标标注顶点进行标注。
步骤250、当接收到输入信息时,在目标标注顶点对应的标记框中显示所述输入信息,所述输入信息用于对所述目标标注顶点进行标注。
本发明实施例在目标标注顶点对应的标记框为第一标记框时,在用户输入信息后,可以在第一标记框显示输入信息,以采用该输入信息对目标标注顶点进行标注,满足用户的顶点标注需求。
需要说明的是,本实施例中的第一标记框也可以是非首个显示的标记框,如可以是按照标记框显示顺序,选择第二个显示或最后一个显示的标记框作为第一标记框;也可以按照其他方式选择第一标记框,如可以基于光标位置来确定出第一标记框等。
此外,用户可以通过提交标注切换指令,来修改当前所需标注的目标标注顶点。本发明实施例在所述目标标注顶点对应的标记框中显示光标之后,还可以包括:接收标注顶点切换指令;依据所述标注顶点切换指令,将所述光标移动至所述立体图形的第二标记框,并将所述目标标注顶点更换为所述第二标记框对应的顶点。其中,标注顶点切换指令可以用于切换光标所在的标记框,以修改当前所需标注的目标标注顶点,且该标注顶点切换指令可以由用户操作所触发的,如可以是基于用户提交的键盘操作或鼠标操作或触摸操作生成的等。例如,用户操作可以是点击键盘的Tab键的操作。
本实施例中,用户可以通过点击智能交互设备上显示的按钮或键盘快捷键等方式,向交互智能平板提交标注触发指令,使得智能交互设备进入顶点标注状态。例如,用户可以通过点击智能交互设备显示的“顶点标注”按钮,向标注触发指令,以触发智能交互设备生成进入顶点标注状态。当然,用户也可以通过其他方式触发智能交互设备进入顶点标注状态,如可通过点击键盘中诸如“Ctrl+M”键等预设快捷键来快速进入顶点标注状态等。
当进入顶点标注状态时,可以自动在立体几何的各个顶点的标注位置显示标记框,如图4所示,并且可以将输入光标定位在首个标记框中,即可以将第一个显示的标记框确定为目标标注顶点对应的标记框,并在该目标标注顶点对应的标记框中显示光标。
在本实施例中,用户可向智能交互设备输入标注顶点切换指令,以触发智能交互设备依据该标注顶点切换指令将光标移动至另一顶点的标记框,以将目标标注顶点切换至另一顶点,即将光标移动至立体图形的第二标记框和将目标 标注顶点更换为该第二标记框对应的顶点。例如,用户可以通过按下“TAB”键来向智能交互设备提交标注顶点切换指令,从而切换输入光标所在的标记框,如图4所述,将光标从第一标记框移动到第二标记框,以将目标标注顶点切换至另一个顶点。
在本申请一个可选实施例中,在进入标注顶点标记状态时,可以不自动显示立体图形顶点的标记框,而在鼠标移动到某个顶点附近时显示该顶点对应的标记框,以将该顶点确定为目标标注顶点,并可将输入光标定位在该目标标注顶点对应的标记框,以将该目标标注顶点对应的标记框确定为第一标记框,使得用户可以在该第一标记框输入信息对目标标注顶点进行标注。可选的,上述确定所述立体图形的目标标注顶点,包括:在接收到标注触发指令后,监测光标位置;当所述光标位置与所述立体图形中任一顶点位置的间距小于预设间距时,将所述顶点位置对应的顶点确定为所述立体图形的目标标注顶点。
在实现中,本发明实施例在接收到顶点触发指令后,可以根据标注触发指令进入顶点标注状态,以在该顶点标注状态下检测监测光标位置。其中,光标位置可以是指输入光标的显示位置,且该光标位置可以根触摸操作或鼠标操作来确定。随后,可以将监测到的光标位置与当前显示的立体图形各顶点位置进行比较,以确定光标位置与该立体图形的各顶点位置之间的间距。若光标位置与立体图形中一顶点位置的间距小于预设间距,则可将该顶点位置对应的顶点确定为目标标注顶点,随后可以确定与该目标标注顶点关联的至少两条棱线,以根据棱线之间的棱线夹角确定出该目标标注顶点的标注位置,从而可以按照该目标标注顶点的标注位置显示该目标标注顶点对应的标记框中,同时可以将光标定位至该目标标注顶点对应的标记框中并显示,以提示用户在该标记框输入信息对目标标注顶点进行标注,无需用户为待标注的顶点手动拖放“文本框”作为标记框,即简化用户操作,提高顶点标注效率。
本实施例在目标标注顶点对应的标记框中显示光标之前,还可以包括:确定所述目标标注顶点对应的棱线投影信息,其中,所述棱线投影信息用于确定所述目标标注顶点的至少两个棱线夹角;从所述至少两个棱线夹角中选取目标棱线夹角;确定所述目标棱线夹角对应的角平分线信息,所述角平分线信息用于在目标棱线夹角的角平分线上确定标注位置;显示所述标记框,所述标记框为按照所述标注位置进行显示的。
本发明实施例在确定出目标标注顶点时,可以根据与该目标标注顶点相邻 的其他顶点对应的坐标信息,确定出该目标标注顶点对应的棱线投影信息,随后可基于该目标标注顶点对应的棱线投影信息确定出目标标注顶点的一个或多个棱线夹角,并可根据确定出的棱线夹角的大小选取出夹角最大的目标棱线夹角,以根据该目标棱线夹角的角平分线信息在该目标棱线夹角的角平分线上确定标注位置,从而可以在该标注位置上显示该目标标注顶点对应的标记框。
作为本申请的一个示例,交互智能平板进入顶点标记状态时,可以不自动显示立体图形顶点对应的标记框,在鼠标移动到某个定顶点附近时,高亮此顶点,并可在该顶点的标注位置显示一个标记框,如图5所示。此时,若用户点击鼠标左键,即可为该顶点添加一个标记框。在添加“标记框”后,输入光标可以自动定位在该标记框内部,使得用户可以在该标记框中输入标识字母,即输入信息对目标标注顶点进行标注。当用户在标记框外部点击鼠标,交互智能平板即可确认用户完成输入,将用户的输入信息与目标标注顶点进行关联,以完成对该目标标注顶点的标注并退出该目标标注顶点的标记状态。当用户在其它顶点附近移动鼠标时,交互智能平板可以重复执行如上操作,即可对其它顶点进行标注。
本发明实施例在立体图形发生改变时,如图6所示,在立体图形旋转时,可以根据立体图形的变化来自动调整顶点对应标记框的显示位置,即能够自动调整顶点的标注位置,避免用户在立体图形变化后手动调整标记框位置的麻烦,简化用户操作。可选的,本实施例还可以包括:当检测到立体图形变化,隐藏所述立体图形的顶点的标记框;当检测到立体图形变化结束时,对所述立体图形变化后顶点的标注位置进行更新,并按照依据更新后的标注位置显示所述顶点对应的标记框。
在实现中,当立体图形的位置或者其三维尺寸、旋转角度发生变化,本实施例可以在开始变化时自动隐藏所有顶点的标记框,而在变化结束时自动显示所有顶点的标记框,并且可以自动调整标记框的位置,以防标记框被变化后的棱线遮挡。其中,标记框的位置的自动调整可依据预设的标记框默认位置算法来计算。
例如,在立体图形变化过程中,可在白板软件的程序中设置标记框的“可见性”为“false”,使得该白板软件在立体图形变化过程中隐藏顶点对应的标记框,即不会呈现标记框,达到隐藏的效果;而在变化结束后,重新计算各个顶点的棱线投影信息,以通过顶点棱线的投影夹角来重新确定标记框的位置,以按照 重新确定的标记框的位置显示顶点对应的标记框,达到自动调整顶点标注位置的目的,无需用户手动调整顶点标注位置,简化用户操作,以及提高立体图形变化后顶点标注效率。
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。
参照图7,示出了本发明实施例中的一种立体图形的标注装置的结构框图。该立体图形的标注装置可以包括如下模块:
图形显示模块710,用于显示立体图形;
标注顶点确定模块720,用于确定所述立体图形的目标标注顶点,并在所述目标标注顶点对应的标记框中显示光标,其中,所述标记框的显示位置为依据所述目标标注顶点的棱线夹角确定;
信息显示模块730,用于当接收到输入信息时,在所述标记框中显示所述输入信息,所述输入信息用于对所述目标标注顶点进行标注。
在本申请的一个可选实施例中,上述装置还可以包括:触发指令接收模块,用于接收标注触发指令。例如,触发指令接收模块可以在确定所述立体图形的目标标注顶点之前,接收标注触发指令。所述标注触发指令用于启动顶点标注功能。
在本申请的一个可选实施例中,所述标注顶点确定模块720可以包括如下子模块:
标注位置确定子模块,用于基于所述标注触发指令确定立体图形各顶点的标注位置;
显示子模块,用于分别按照所述各顶点的标注位置显示各顶点的标记框,并基于显示的标记框确定出第一标记框,以将所述第一标记框对应的顶点确定为所述目标标注顶点。
在本申请的一个可选实施例中,标注位置确定子模块可以包括如下单元:
棱线投影信息确定单元,用于确定立体图形每个顶点对应的棱线投影信息;
棱线夹角确定单元,用于依据每个顶点对应的棱线投影信息确定每个顶点的棱线夹角;
标注位置确定单元,用于依据每个顶点的棱线夹角确定每个顶点的标注位 置。
在本申请的一个可选实施例中,所述标注位置确定单元,可以用于针对每个顶点,从所述顶点的棱线夹角中选取目标棱线夹角;并确定所述目标棱线夹角对应的角平分线信息;以及,基于所述角平分线信息,在所述目标棱线夹角的角平分线上确定所述顶点的标注位置。
在本申请的一个可选实施例中,标注顶点确定模块720,包括:
光标位置检测子模块,用于在接收到标注触发指令后,监测光标位置;
目标标注顶点确定子模块,用于当所述光标位置与所述立体图形中任一顶点位置的间距小于预设间距时,将所述顶点位置对应的顶点确定为所述立体图形的目标标注顶点。
在本申请的一个可选实施例中,标注顶点确定模块720还可以包括如下子模块:
棱线投影信息确定子模块,用于确定所述目标标注顶点对应的棱线投影信息,其中,所述棱线投影信息用于确定所述目标标注顶点的至少两个棱线夹角;
夹角选取子模块,用于从所述至少两个棱线夹角中选取目标棱线夹角;
角平分线信息确定子模块,用于确定所述目标棱线夹角对应的角平分线信息,所述角平分线信息用于在目标棱线夹角的角平分线上确定标注位置;
标记框显示子模块,用于显示所述标记框,所述标记框为按照所述标注位置进行显示的。
在本申请的一个可选实施例中,上述装置还可以包括如下模块:
切换指令接收模块,用于接收标注顶点切换指令;
切换模块,用于依据所述标注顶点切换指令,将所述光标移动至所述立体图形的第二标记框,并将所述目标标注顶点更换为所述第二标记框对应的顶点。
在本申请的一个可选实施例中,上述装置还可以包括如下模块:
标记框隐藏模块,用于当检测到立体图形变化,隐藏所述立体图形的顶点的标记框;
显示更新模块,用于当检测到立体图形变化结束时,对所述立体图形变化后顶点的标注位置进行更新,并按照依据更新后的标注位置显示所述顶点对应的标记框。
在实现中,本实施例提供的立体图形的标注装置可用于执行上述实施例中立体图形的标注方法,具备相应的功能和有益效果。
本实施例的立体图形的标注装置可以包括“标注子系统”和“自动调整子系统”这两个部分。其中,“标注子系统”可以用于实现顶点的快速标记,可以包括有上述中的触发指令接收模块、标注顶点确定模块720、信息显示模块730、切换指令接收模块、切换模块等;“自动调整子系统”会根据立体几何的变化来自动调整标记的位置,可以包括有标记框隐藏模块、显示更新模块等。
此外,上述提供的立体图形的标注装置可以集成在设备中,该设备可以是两个或多个物理实体构成,也可以是一个物理实体构成,如该设备可以是电脑、手机、平板、投影仪或交互智能平板等。
参照图8,示出了本发明实施例中的一种设备的结构示意图。如图8所示,该设备包括:处理器80、存储器81、具有触摸功能的显示屏82、输入装置83、输出装置84以及通信装置85。该设备中处理器80的数量可以是一个或者多个,图8中以一个处理器80为例。该设备中存储器81的数量可以是一个或者多个,图8中以一个存储器81为例。该设备的处理器80、存储器81、显示屏82、输入装置83、输出装置84以及通信装置85可以通过总线或者其他方式连接,图8中以通过总线连接为例。实施例中,立体图形的标注设备可以是电脑,手机,平板,投影仪或交互智能平板等智能交互设备。实施例中,以设备为交互智能平板为例,进行描述。
存储器81作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请任意实施例所述的立体图形的标注方法对应的程序指令/模块(例如,立体图形的标注装置中的图形显示模块710、标注顶点确定模块720以及信息显示模块730等)。存储器81可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据设备的使用所创建的数据等。此外,存储器81可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器81可包括相对于处理器80远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例可以包括互联网、企业内部网、局域网、移动通信网及其组合。
显示屏82为具有触摸功能的显示屏82,其可以是电容屏、电磁屏或者红外屏。一般而言,显示屏82用于根据处理器80的指示显示数据,还用于接收作用于显示屏82的触摸操作,并将相应的信号发送至处理器80或其他装置。可 选的,当显示屏82为红外屏时,其还包括红外触摸框,该红外触摸框设置在显示屏82的四周,其还可以用于接收红外信号,并将该红外信号发送至处理器80或者其他设备。
通信装置85,用于与其他设备建立通信连接,其可以是有线通信装置和/或无线通信装置。
输入装置83可用于接收输入的数字或者字符信息,以及产生与立体图形的标注设备的用户设置以及功能控制有关的键信号输入,还可以是用于获取图像的摄像头以及获取音频数据的拾音设备。输出装置84可以包括扬声器等音频设备。需要说明的是,输入装置83和输出装置84的组成可以根据实际情况设定。
处理器80通过运行存储在存储器81中的软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述的立体图形的标注方法。
在一些实施例中,处理器80执行存储器81中存储的一个或多个程序时,具体实现如下操作:
显示立体图形;
确定所述立体图形的目标标注顶点,并在所述中显示光标,其中,所述标记框的显示位置为依据所述目标标注顶点的棱线夹角确定;
当接收到输入信息时,在所述标记框中显示所述输入信息,所述输入信息用于对所述目标标注顶点进行标注。
在上述实施例的基础上,一个或多个处理器80在实现确定所述立体图形的目标标注顶点之前,还实现如下操作:接收标注触发指令,所述标注触发指令用于启动顶点标注功能。
在上述实施例的基础上,一个或多个处理器80在实现确定所述立体图形的目标标注顶点时,可以包括:基于所述标注触发指令确定立体图形各顶点的标注位置;分别按照所述各顶点的标注位置显示各顶点的标记框,并基于显示的标记框确定出第一标记框,以将所述第一标记框对应的顶点确定为所述目标标注顶点。
在上述实施例的基础上,一个或多个处理器80在实现基于所述标注触发指令确定立体图形各顶点的标注位置时,可以包括:确定立体图形每个顶点对应的棱线投影信息;依据每个顶点对应的棱线投影信息确定每个顶点的棱线夹角;依据每个顶点的棱线夹角确定每个顶点的标注位置。
在上述实施例的基础上,一个或多个处理器80在实现依据每个顶点的棱线 夹角确定每个顶点的标注位置时,可以包括:针对每个顶点,从所述顶点的棱线夹角中选取目标棱线夹角;确定所述目标棱线夹角对应的角平分线信息;基于所述角平分线信息,在所述目标棱线夹角的角平分线上确定所述顶点的标注位置。
在上述实施例的基础上,一个或多个处理器80在实现确定所述立体图形的目标标注顶点时,可以包括:在接收到标注触发指令后,监测光标位置;当所述光标位置与所述立体图形中任一顶点位置的间距小于预设间距时,将所述顶点位置对应的顶点确定为所述立体图形的目标标注顶点。
在上述实施例的基础上,在上述实施例的基础上,一个或多个处理器80在实现在所述目标标注顶点对应的标记框中显示光标之前,还实现如下操作:确定所述目标标注顶点对应的棱线投影信息,其中,所述棱线投影信息用于确定所述目标标注顶点的至少两个棱线夹角;从所述至少两个棱线夹角中选取目标棱线夹角;确定所述目标棱线夹角对应的角平分线信息,所述角平分线信息用于在目标棱线夹角的角平分线上确定标注位置;显示所述标记框,所述标记框为按照所述标注位置进行显示的。
在上述实施例的基础上,一个或多个处理器80在实现在在所述目标标注顶点对应的标记框中显示光标之后,还实现如下操作:接收标注顶点切换指令;依据所述标注顶点切换指令,将所述光标移动至所述立体图形的第二标记框,并将所述目标标注顶点更换为所述第二标记框对应的顶点。
在上述实施例的基础上,一个或多个处理器80还可以实现:当检测到立体图形变化,隐藏所述立体图形的顶点的标记框;当检测到立体图形变化结束时,对所述立体图形变化后顶点的标注位置进行更新,并按照依据更新后的标注位置显示所述顶点对应的标记框。
上述提供的立体图形的标注设备可用于执行上述任意实施例提供的立体图形的标注方法,具备相应的功能和有益效果。
本发明实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种立体图形的标注方法,包括:显示立体图形;确定所述立体图形的目标标注顶点,并在所述目标标注顶点对应的标记框中显示光标,其中,所述标记框的显示位置为依据所述目标标注顶点的棱线夹角确定;当接收到输入信息时,在所述标记框中显示所述输入信息,所述输入信息用于对所述目标标注顶点进行标注。
当然,本发明实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令,还可以执行本申请任意实施例所提供的立体图形的标注方法中的相关操作,且具备相应的功能和有益效果。
需要说明的是,对于装置、设备、存储介质实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本申请可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是机器人,个人计算机,服务器,或者网络设备等)执行本申请任意实施例所述的立体图形的标注方法。
值得注意的是,上述界面布局装置中,所包括的各个模块和子模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适 的方式结合。
Claims (12)
- 一种立体图形的标注方法,包括:显示立体图形;确定所述立体图形的目标标注顶点,并在所述目标标注顶点对应的标记框中显示光标,其中,所述标记框的显示位置为依据所述目标标注顶点的棱线夹角确定;当接收到输入信息时,在所述标记框中显示所述输入信息,所述输入信息用于对所述目标标注顶点进行标注。
- 根据权利要求1所述立体图形的标注方法,在确定所述立体图形的目标标注顶点之前,所述方法还包括:接收标注触发指令,所述标注触发指令用于启动顶点标注功能。
- 根据权利要求2所述立体图形的标注方法,其中,所述确定所述立体图形的目标标注顶点,包括:基于所述标注触发指令确定立体图形每个顶点的标注位置;分别按照所述每个顶点的标注位置显示每个顶点的标记框,并基于显示的标记框确定出第一标记框,以将所述第一标记框对应的顶点确定为所述目标标注顶点。
- 根据权利要求3所述立体图形的标注方法,其中,基于所述标注触发指令确定立体图形每个顶点的标注位置,包括:确定立体图形每个顶点对应的棱线投影信息;依据每个顶点对应的棱线投影信息确定每个顶点的棱线夹角;依据每个顶点的棱线夹角确定每个顶点的标注位置。
- 根据权利要求4所述立体图形的标注方法,其中,所述依据每个顶点的棱线夹角确定每个顶点的标注位置,包括:针对每个顶点,从所述顶点的棱线夹角中选取目标棱线夹角;确定所述目标棱线夹角对应的角平分线信息;基于所述角平分线信息,在所述目标棱线夹角的角平分线上确定所述顶点的标注位置。
- 根据权利要求1所述立体图形的标注方法,其中,所述确定所述立体图形的目标标注顶点,包括:在接收到标注触发指令后,监测光标位置;当所述光标位置与所述立体图形中任一顶点位置的间距小于预设间距时, 将所述顶点位置对应的顶点确定为所述立体图形的目标标注顶点。
- 根据权利要求1所述立体图形的标注方法,所述在所述目标标注顶点对应的标记框中显示光标之前,所述方法还包括:确定所述目标标注顶点对应的棱线投影信息,其中,所述棱线投影信息用于确定所述目标标注顶点的至少两个棱线夹角;从所述至少两个棱线夹角中选取目标棱线夹角;确定所述目标棱线夹角对应的角平分线信息,所述角平分线信息用于在目标棱线夹角的角平分线上确定标注位置;显示所述标记框,所述标记框为按照所述标注位置进行显示的。
- 根据权利要求3至5任一所述立体图形的标注方法,所述在所述目标标注顶点对应的标记框中显示光标之后,所述方法还包括:接收标注顶点切换指令;依据所述标注顶点切换指令,将所述光标移动至所述立体图形的第二标记框,并将所述目标标注顶点更换为所述第二标记框对应的顶点。
- 根据权利要求1至7任一所述的方法,所述方法还包括:当检测到立体图形变化,隐藏所述立体图形的顶点的标记框;当检测到立体图形变化结束时,对所述立体图形变化后顶点的标注位置进行更新,并按照依据更新后的标注位置显示所述顶点对应的标记框。
- 一种立体图形的标注装置,包括:图形显示模块,被配置为显示立体图形;标注顶点确定模块,被配置为确定所述立体图形的目标标注顶点,并在所述目标标注顶点对应的标记框中显示光标,其中,所述标记框的显示位置为依据所述目标标注顶点的棱线夹角确定;信息显示模块,被配置为当接收到输入信息时,在所述标记框中显示所述输入信息,所述输入信息用于对所述目标标注顶点进行标注。
- 一种设备,包括:存储器、具有触摸功能的显示屏以及一个或多个处理器;所述存储器,用于存储一个或多个程序;当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如下操作:显示立体图形;确定所述立体图形的目标标注顶点,并在所述目标标注顶点对应的标记框中显示光标,其中,所述标记框的显示位置为依据所述目标标注顶点的棱线夹角确定;当接收到输入信息时,在所述标记框中显示所述输入信息,所述输入信息用于对所述目标标注顶点进行标注。
- 一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-9中任一所述立体图形的标注方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910244737.0 | 2019-03-28 | ||
| CN201910244737.0A CN109976614B (zh) | 2019-03-28 | 2019-03-28 | 一种立体图形的标注方法、装置、设备及介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020192175A1 true WO2020192175A1 (zh) | 2020-10-01 |
Family
ID=67081322
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/123248 Ceased WO2020192175A1 (zh) | 2019-03-28 | 2019-12-05 | 一种立体图形的标注方法、装置、设备及介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109976614B (zh) |
| WO (1) | WO2020192175A1 (zh) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109976614B (zh) * | 2019-03-28 | 2021-04-06 | 广州视源电子科技股份有限公司 | 一种立体图形的标注方法、装置、设备及介质 |
| CN110956674B (zh) * | 2019-10-23 | 2022-01-21 | 广州视源电子科技股份有限公司 | 图形调整方法、装置、设备及存储介质 |
| CN113778281B (zh) * | 2021-09-16 | 2024-06-21 | 联想(北京)有限公司 | 辅助信息生成方法、装置及电子设备和存储介质 |
| CN113901535B (zh) * | 2021-10-12 | 2024-12-13 | 广联达科技股份有限公司 | 标记标签的吸附方法、装置、计算机设备及存储介质 |
| CN114663940A (zh) * | 2022-03-17 | 2022-06-24 | 北京玉盛元科技有限公司 | 视频处理方法、装置和设备 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101692287A (zh) * | 2009-09-25 | 2010-04-07 | 南京大学 | 一种基于Mean Shift的三维网格模型关键点检测方法 |
| CN102163340A (zh) * | 2011-04-18 | 2011-08-24 | 宁波万里电子科技有限公司 | 计算机系统中实现三维动态几何图形数据信息标注的方法 |
| US20120245841A1 (en) * | 2011-03-22 | 2012-09-27 | Harman Becker Automotive Systems Gmbh | Digital map labeling system |
| CN107578477A (zh) * | 2017-09-11 | 2018-01-12 | 南京大学 | 一种三维模型部件的自动检测方法 |
| CN109976614A (zh) * | 2019-03-28 | 2019-07-05 | 广州视源电子科技股份有限公司 | 一种立体图形的标注方法、装置、设备及介质 |
Family Cites Families (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4796194B1 (ja) * | 2010-03-31 | 2011-10-19 | 株式会社パスコ | カーソルの表示方法およびカーソルの表示プログラム |
| CN103021029B (zh) * | 2013-01-18 | 2015-03-25 | 南京大学 | 一种三维模型构件类别的自动标注方法 |
| CN104915993B (zh) * | 2015-06-29 | 2018-05-01 | 艾迪普(北京)文化科技股份有限公司 | 一种三维拉伸建模的方法和设备 |
| CN106125177A (zh) * | 2016-08-01 | 2016-11-16 | 擎中科技(上海)有限公司 | 一种光栅结构及其对位方法 |
| CN106920434A (zh) * | 2017-04-28 | 2017-07-04 | 冯杰 | 少年儿童数学早期启蒙教育专用教具 |
| CN107239187B (zh) * | 2017-05-04 | 2020-02-21 | 广州视源电子科技股份有限公司 | 一种立体图形显示的方法、装置及设备 |
| CN107248192A (zh) * | 2017-06-27 | 2017-10-13 | 广州视源电子科技股份有限公司 | 立体图形绘制方法、装置、设备及存储介质 |
| CN107918549B (zh) * | 2017-11-27 | 2021-01-19 | 广州视睿电子科技有限公司 | 立体展开图面的标记方法、装置、计算机设备及存储介质 |
| CN108876934B (zh) * | 2017-12-20 | 2022-01-28 | 北京旷视科技有限公司 | 关键点标注方法、装置和系统及存储介质 |
| US10175697B1 (en) * | 2017-12-21 | 2019-01-08 | Luminar Technologies, Inc. | Object identification and labeling tool for training autonomous vehicle controllers |
| CN108765299B (zh) * | 2018-04-26 | 2022-08-16 | 广州视源电子科技股份有限公司 | 立体图形标记系统及方法 |
-
2019
- 2019-03-28 CN CN201910244737.0A patent/CN109976614B/zh active Active
- 2019-12-05 WO PCT/CN2019/123248 patent/WO2020192175A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101692287A (zh) * | 2009-09-25 | 2010-04-07 | 南京大学 | 一种基于Mean Shift的三维网格模型关键点检测方法 |
| US20120245841A1 (en) * | 2011-03-22 | 2012-09-27 | Harman Becker Automotive Systems Gmbh | Digital map labeling system |
| CN102163340A (zh) * | 2011-04-18 | 2011-08-24 | 宁波万里电子科技有限公司 | 计算机系统中实现三维动态几何图形数据信息标注的方法 |
| CN107578477A (zh) * | 2017-09-11 | 2018-01-12 | 南京大学 | 一种三维模型部件的自动检测方法 |
| CN109976614A (zh) * | 2019-03-28 | 2019-07-05 | 广州视源电子科技股份有限公司 | 一种立体图形的标注方法、装置、设备及介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109976614A (zh) | 2019-07-05 |
| CN109976614B (zh) | 2021-04-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2020192175A1 (zh) | 一种立体图形的标注方法、装置、设备及介质 | |
| CN110703966B (zh) | 文件共享方法、装置、系统、相应设备及存储介质 | |
| US12333137B2 (en) | Configuration of application execution spaces and sub-spaces for sharing data on a mobile touch screen device | |
| US10397643B2 (en) | Electronic device for identifying peripheral apparatus and method thereof | |
| EP3769509B1 (en) | Multi-endpoint mixed-reality meetings | |
| JP6364893B2 (ja) | 端末装置、電子ホワイトボードシステム、電子ホワイトボードの入力支援方法、及びプログラム | |
| CN108932144B (zh) | 显示界面控制方法、装置、设备及存储介质 | |
| US20160004373A1 (en) | Method for providing auxiliary information and touch control display apparatus using the same | |
| CN112907760B (zh) | 三维对象的标注方法及装置、工具、电子设备和存储介质 | |
| US11893206B2 (en) | Transitions between states in a hybrid virtual reality desktop computing environment | |
| CN110045909B (zh) | 基于书写轨迹的椭圆处理方法、装置、设备及存储介质 | |
| US10585581B2 (en) | Controlling display object on display screen | |
| CN110032700B (zh) | 信息发布控制方法、装置、存储介质及电子设备 | |
| US10649615B2 (en) | Control interface for a three-dimensional graphical object | |
| WO2019015582A1 (zh) | 信息提示方法及移动终端 | |
| WO2019105191A1 (zh) | 多元素交互方法、装置、设备和存储介质 | |
| CN112068698A (zh) | 一种交互方法、装置及电子设备、计算机存储介质 | |
| WO2024037415A1 (zh) | 投屏内容显示方法、装置、设备及存储介质 | |
| WO2021068381A1 (zh) | 界面显示方法、装置、设备及存储介质 | |
| WO2021068405A1 (zh) | 元素传递方法、装置、设备及存储介质 | |
| WO2023093694A1 (zh) | 图像处理方法、装置、设备和存储介质 | |
| US10146424B2 (en) | Display of objects on a touch screen and their selection | |
| WO2019218622A1 (zh) | 元素控制方法、装置、设备及存储介质 | |
| CN113672149B (zh) | 一种视图显示方法、装置、电子设备及计算机存储介质 | |
| CN117270719A (zh) | 界面显示方法、装置、电子设备和可读存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19921324 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19921324 Country of ref document: EP Kind code of ref document: A1 |