Label updating method and device, electronic equipment and storage medium
Through an annotation update method for the model updated, manual and automatic annotation information are updated respectively, and combined with the updated target model query of the associated model object, the problem of manual annotation information being overwritten is solved, achieving the accuracy and efficiency of annotation update.
Patent Information
- Application Number
- CN202311567512.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-22
- Publication Date
- 2025-05-23
AI Technical Summary
After the model is updated, manual labeling information is easily overwritten by automatic labeling information, resulting in the loss of manually adjusted labeling content and affecting labeling efficiency.
Provide a label update method, which updates manual label information and automatic label information in historical label information respectively. By obtaining the updated target model, updating it based on automatic labeling information, and querying the updated target model in combination with the associated model object. If the associated model object is not updated, manual labeling information is retained.
This method is compatible with manual labeling information, ensuring the accuracy of labeling updates, improving the efficiency of labeling, and avoiding the loss of manual labeling content.
Smart Images

Figure CN120030022A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for updating annotations. Background Art
[0002] After the model is designed, it needs to be annotated to clearly represent each part. If the model is modified after annotation, the annotation needs to be updated. Summary of the invention
[0003] In view of this, the present disclosure provides a labeling update method, device, electronic device and storage medium to solve the labeling update problem of the model.
[0004] In a first aspect, the present disclosure provides a method for updating annotations, the method comprising:
[0005] Acquire historical annotation information of the target model, wherein the historical annotation information includes manual annotation information and automatic annotation information;
[0006] Obtaining the updated target model to obtain updated annotation information;
[0007] Updating the automatic annotation information based on the updated annotation information to obtain updated automatic annotation information;
[0008] Querying the updated target model based on the associated model object corresponding to the manual annotation information;
[0009] If the associated model object is not updated in the updated target model, the manual annotation information is retained.
[0010] In a second aspect, the present disclosure provides a label update device, the device comprising:
[0011] A historical annotation information acquisition module is used to acquire historical annotation information of a target model, wherein the historical annotation information includes manual annotation information and automatic annotation information;
[0012] A model acquisition module is used to acquire the updated target model to obtain updated annotation information;
[0013] An automatic annotation information updating module, used for updating the automatic annotation information based on the updated annotation information to obtain updated automatic annotation information;
[0014] A query module, configured to query the updated target model based on the associated model object corresponding to the manual annotation information;
[0015] The manual annotation retaining module is used to retain the manual annotation information if the associated model object is not updated in the updated target model.
[0016] In a third aspect, the present disclosure provides an electronic device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the annotation update method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0017] In a fourth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the annotation update method of the first aspect or any corresponding embodiment thereof.
[0018] The annotation update method provided by the embodiment of the present disclosure adopts different methods to update the manual annotation information and automatic annotation information in the historical annotation information. The automatic annotation information is automatically updated by adopting the updated annotation information. The manual annotation information is updated in combination with its corresponding associated model object. If the associated model object is not updated, there is no need to update the manual annotation information. Therefore, the manual annotation information can be compatible with the annotation update process, thereby ensuring the accuracy of the annotation update. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 is a flowchart of a method for updating annotations according to an embodiment of the present disclosure;
[0021] Figure 2 is a flowchart of another annotation updating method according to an embodiment of the present disclosure;
[0022] Figure 3 is a flowchart of another annotation update method according to an embodiment of the present disclosure;
[0023] Figure 4 is a structural block diagram of a label updating device according to an embodiment of the present disclosure;
[0024] Figure 5 It is a schematic diagram of the hardware structure of the electronic device according to the embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0026] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0027] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0028] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0029] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0030] In the related art, after the target model is updated, the annotation of the updated target model is generated through manual adjustment. Alternatively, the corresponding annotation information is generated based on the updated target model, and the historical annotation information is updated based on the annotation information. However, after the automatic annotation, there may be a situation where the annotation is manually adjusted. For the manually adjusted annotation, after the model is updated, the manually adjusted annotation will be overwritten with the generated annotation information, resulting in the loss of the manually adjusted annotation content. If the manual adjustment is to data that conforms to the current annotation environment, for example, adjusting 123 meters to 123.0 meters, this modification does not change the essence of the annotation content, but is an adjustment made to conform to the current annotation environment. If this adjustment is overwritten, it still needs to be manually edited later, resulting in low annotation efficiency.
[0031] Based on this, an embodiment of the present disclosure provides a method for updating annotations, which updates annotations for manual annotation information and automatic annotation information respectively, thereby being compatible with manual annotation information and improving annotation efficiency.
[0032] It should be noted that the application scenario of the annotation update method provided in the embodiment of the present disclosure is not limited in any way, and can be applied to home decoration scenarios, three-dimensional design scenarios, etc. The specific application scenario is not limited in any way, and can be set according to actual needs.
[0033] According to an embodiment of the present disclosure, an embodiment of a label update method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0034] In this embodiment, a method for updating a label is provided, which can be used in electronic devices such as mobile phones, tablet computers, etc. Figure 1 is a flowchart of a method for updating annotations according to an embodiment of the present disclosure. Figure 1 As shown, the process includes the following steps:
[0035] Step S101, obtaining historical annotation information of the target model.
[0036] The historical annotation information includes manual annotation information and automatic annotation information.
[0037] The historical annotation information of the target model is the annotation information before the update, wherein the manual annotation information includes the annotation information obtained after manual modification based on the automatic annotation and the manually annotated information, etc., and there is no specific limitation. The automatic annotation information is the annotation information automatically generated based on the target model. For example, after the target model is generated, the annotation information of each model object is generated by analyzing the model objects in the target model, and the annotation information is displayed on the model object accordingly.
[0038] Whether it is manual annotation information or automatic annotation information, it includes the corresponding associated model object and annotation content. Specifically, the associated model object is used to indicate which model object is annotated, such as a window, a door opening, a door panel, etc. The annotation content is used to indicate the size or description information of the model object, etc. Of course, the annotation information can also include an annotation style to indicate the form of the annotation.
[0039] In some optional implementations, after the annotation information of each model object is generated, the annotation information may be displayed as needed instead of displaying all the annotation information.
[0040] Step S102, acquiring an updated target model to obtain updated annotation information.
[0041] The target model can be updated by editing the target model in a third-party device and then synchronizing it to the local device, or by updating the target model through interaction with the target model, etc. After the updated target model is obtained, the updated annotation information is generated by analyzing the model objects of the updated target model.
[0042] For example, if the target model is a floor plan in a home decoration scene, after editing the size of the window in the floor plan, the size of the associated model objects (including but not limited to walls, etc.) will also change accordingly. Therefore, after the floor plan is updated, the updated annotation information needs to be regenerated.
[0043] Step S103: updating the automatic annotation information based on the updated annotation information to obtain updated automatic annotation information.
[0044] For the automatic annotation information in the historical annotation information, the updated annotation information is used to update it. When updating, the incremental update method can be used to query the changed annotation information in the automatic annotation information and then update it, while the other unchanged annotation information remains unchanged. The full update method can also be used to update all the automatic annotation information to obtain the updated automatic annotation information.
[0045] Since the updated annotation information may also include annotation information corresponding to the manual annotation information, this part of the annotation information can be retained first and not involved in the update of the automatic annotation information to ensure the accuracy of the annotation update.
[0046] Step S104: querying the updated target model based on the associated model object corresponding to the manual annotation information.
[0047] As described above, the manual annotation information corresponds to the associated model object, and the associated model object has a unique identifier in the target model. The updated target model is queried through the associated model object corresponding to the manual annotation information to obtain the representation of the associated model object corresponding to the manual annotation information in the updated target model.
[0048] For example, the associated model objects corresponding to the manually labeled information include windows, and the window is identified as 001. The model object identified as 001 is queried in the updated target model, and the representation of the window identified as 001 in the updated target model is obtained to obtain the query result.
[0049] Step S105: If the associated model object is not updated in the updated target model, the manual annotation information is retained.
[0050] The queried associated model object is compared with the associated model object corresponding to the manual annotation information. If no change occurs, the associated model object is marked as not updated. Accordingly, the manual annotation information does not need to be updated, and the corresponding manual annotation information in the historical annotation information can be retained. Among them, the associated model object not updated here includes the size of the associated model object not updated, and the size of the associated model object can be queried from the annotation information updated in the above step S102, or obtained by comparing the key points of the associated model object, etc. There is no limitation on the method of determining whether the associated model object is updated, and it can be set according to actual needs.
[0051] It should be noted that retaining the manual annotation information means that the corresponding manual annotation information remains unchanged when the annotation is automatically updated, and does not limit the manual annotation information to remain unchanged. For example, if the manual annotation information cannot meet the current needs after the annotation is automatically updated, the manual annotation information is updated through interactive operations.
[0052] The annotation update method provided in this embodiment adopts different methods to update the manual annotation information and automatic annotation information in the historical annotation information. The automatic annotation information is automatically updated by adopting the updated annotation information. The manual annotation information is updated in combination with its corresponding associated model object. If the associated model object is not updated, there is no need to update the manual annotation information. Therefore, the manual annotation information can be compatible with the annotation update process, thereby ensuring the accuracy of the annotation update.
[0053] In this embodiment, a method for updating a label is provided, which can be used in electronic devices such as mobile phones, tablet computers, etc. Figure 2 is a flowchart of a method for updating annotations according to an embodiment of the present disclosure. Figure 2 As shown, the process includes the following steps:
[0054] Step S201, obtaining historical annotation information of the target model.
[0055] Among them, historical annotation information includes manual annotation information and automatic annotation information. For details, please refer to Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0056] Step S202: Obtain the updated target model to obtain updated annotation information. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.
[0057] Step S203: updating the automatic annotation information based on the updated annotation information to obtain updated automatic annotation information.
[0058] Specifically, the above step S203 includes:
[0059] Step S2031 , based on the associated model object corresponding to the manual annotation information, the updated annotation information is screened to obtain target annotation information related to the automatic annotation.
[0060] The updated annotation information includes annotation information of multiple model objects, and each model object has a unique identifier. Based on this, the identifier of the associated model object corresponding to the manual annotation information is compared with the identifier of the model object in the updated annotation information, and the annotation information corresponding to the associated model object of the manual annotation information is screened out in the updated annotation information. Since the screened annotation information corresponds to the manual annotation information, these annotation information do not need to participate in the subsequent update of the automatic annotation information. For the convenience of description, after removing these annotation information from the updated annotation information, the remaining annotation information is called target annotation information. Among them, the target annotation information is related to the automatic annotation.
[0061] Specifically, after the screening process, the updated annotation information is divided into target annotation information related to the automatic annotation information and other annotation information related to the manual annotation information.
[0062] Step S2032: based on the associated model object corresponding to the target annotation information and the associated model object corresponding to the automatic annotation information, the automatic annotation information is updated to obtain updated automatic annotation information.
[0063] Among them, the number of associated model objects corresponding to the target annotation information and the number of associated model objects corresponding to the automatic annotation information may be the same or different. If some model objects are deleted in the updated target model, the number of associated model objects corresponding to the target annotation information will be less than the number of associated model objects corresponding to the automatic annotation information; if some model objects are added to the updated target model, the number of associated model objects corresponding to the target annotation information will be more than the number of associated model objects corresponding to the automatic annotation information; if only some model objects are edited in the updated target model, the number of associated model objects corresponding to the target annotation information and the number of associated model objects corresponding to the automatic annotation information will be the same.
[0064] By comparing the associated model object corresponding to the target annotation information with the associated model object corresponding to the automatic annotation information, the difference of the associated model object is obtained, and then the automatic annotation information is updated based on the difference to obtain the updated automatic annotation information.
[0065] In some optional implementations, the above step S2032 includes:
[0066] Step a1: compare the associated model object corresponding to the target annotation information with the associated model object corresponding to the automatic annotation information to determine the same first associated model object.
[0067] Step a2: based on the target annotation information corresponding to the first associated model object, update the corresponding automatic annotation information.
[0068] Step a3: for the second associated model object that exists in the target annotation information but does not exist in the automatic annotation information, annotate it based on the target annotation information corresponding to the second associated model object.
[0069] Step a4: for a third associated model object that does not exist in the target annotation information but exists in the automatic annotation information, delete the automatic annotation information corresponding to the third associated model object.
[0070] The associated model objects corresponding to the target annotation information are compared with the associated model objects corresponding to the automatic annotation information, so that the associated model objects corresponding to the target annotation objects are divided into three types. That is, the same first associated model object, the second associated model object that exists in the target annotation information but does not exist in the automatic annotation information (i.e., the newly added model object), and the third associated model object that does not exist in the target annotation information but exists in the automatic annotation information (i.e., the deleted model object). Among them, for the first associated model object, it is sufficient to use its corresponding automatic annotation information for annotation update; for the second associated model object, it is sufficient to use its corresponding automatic annotation information for annotation; for the third associated model object, delete its corresponding automatic annotation information. For the update of automatic annotation information, an incremental update method is adopted to improve the update efficiency.
[0071] Step S204: querying the updated target model based on the associated model object corresponding to the manual annotation information.
[0072] Specifically, the above step S204 includes:
[0073] Step S2041, obtaining the annotation points in the associated model object corresponding to the manual annotation information and the initial positions of the annotation points.
[0074] For manual annotation information, query the corresponding associated model object in the target model to obtain the annotation points in the associated model object and the initial position of the annotation points. The annotation point is the annotation endpoint corresponding to the associated model object, and the initial position of the annotation point is the position of the annotation endpoint of the associated model object in the target model.
[0075] Step S2042, querying the position of the annotation point in the updated target model.
[0076] Since the annotation point is related to the associated model object, the associated model object is queried in the updated target model to obtain the position of the annotation point in the updated target model. Of course, the annotation point may not exist in the updated target model, which means that the associated model object corresponding to the annotation point has been deleted in the updated target model.
[0077] Step S2043, based on the queried position and the initial position of the annotation point, determine the query result of the associated model object.
[0078] If the position of the annotation point can be found in the updated target model, the queried position is compared with the initial position of the marker point to determine whether the annotation point has changed, thereby determining the query result of the associated model object. If the position of the annotation point is not found, it means that the associated model object corresponding to the annotation point has been deleted.
[0079] Step S205: If the associated model object is not updated in the updated target model, the manual annotation information is retained. Figure 1 Step S105 of the illustrated embodiment will not be described in detail here.
[0080] Step S206: if the associated model object is updated in the updated target model, the manual annotation information is updated based on the queried position.
[0081] Updates to associated model objects include, but are not limited to, dimension updates and deletions. For associated model objects with dimension updates, the manual annotation information is updated using the dimensions represented by the positions of the annotation points; for deleted associated model objects, the corresponding manual annotation information is deleted.
[0082] The annotation update method provided in this embodiment uses the associated model object corresponding to the manual annotation information to filter the updated annotation information, thereby filtering out the annotation information related to the manual annotation information, so as to update the automatic annotation information more accurately and quickly. If the associated model object is updated, the position of the corresponding annotation point will also be updated. Therefore, by comparing the initial position of the annotation point with its position in the updated target model, the query result of the associated model object can be accurately obtained, thereby determining whether the associated model object has been updated. After the associated model object is updated, the queried position is directly used to update the manual annotation information, which simplifies the update method of the manual annotation information and improves the annotation efficiency.
[0083] In this embodiment, a method for updating a label is provided, which can be used in electronic devices such as mobile phones, tablet computers, etc. Figure 3 is a flowchart of a method for updating annotations according to an embodiment of the present disclosure. Figure 3 As shown, the process includes the following steps:
[0084] Step S301, obtaining historical annotation information of the target model.
[0085] The historical annotation information includes manual annotation information and automatic annotation information.
[0086] Specifically, the above step S301 includes:
[0087] Step S3011, query the annotation type identifier in the historical annotation information.
[0088] The annotation information obtained by different annotation methods has different annotation type identifiers, that is, different annotation type identifiers are used to distinguish manual annotation from automatic annotation.
[0089] Step S3012: determining the manual annotation information and the automatic annotation information in the historical annotation information based on the annotation type identifier.
[0090] After the historical annotation information is acquired, the annotation type identification of each annotation information is queried to determine whether the identification information is manual annotation information or automatic annotation information.
[0091] Step S3013, obtaining the modification result of the automatic annotation information.
[0092] If the annotation result of the automatic annotation information cannot meet the current needs, the automatic annotation information is modified by interaction with the automatic annotation information to obtain the modified result. The modification method includes but is not limited to the annotation content, annotation style, etc., and there is no specific limitation on it, and it can be processed according to actual needs.
[0093] Step S3014: update the automatic annotation information based on the modification result, and adjust the annotation type identifier of the automatic annotation information to manual annotation.
[0094] After obtaining the modification result, the automatic annotation information is updated. Since the update of the automatic annotation information is based on manual modification, the annotation type identifier of the automatic annotation information is adjusted to manual annotation. When the annotation is updated later, the annotation information will be treated as manual annotation information.
[0095] Step S302: Obtain the updated target model to obtain updated annotation information. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.
[0096] Step S303: Update the automatic annotation information based on the updated annotation information to obtain updated automatic annotation information. Figure 2 Step S203 of the illustrated embodiment will not be described in detail here.
[0097] Step S304: query the updated target model based on the associated model object corresponding to the manually labeled information. Figure 2 Step S204 of the illustrated embodiment will not be described in detail here.
[0098] Step S305: If the associated model object is not updated in the updated target model, the manual annotation information is retained. Figure 1 Step S105 of the illustrated embodiment will not be described in detail here.
[0099] In the annotation update method provided in this embodiment, the annotation type in the historical annotation information is distinguished by the annotation type identifier, so as to accurately distinguish the manual annotation information from the automatic annotation information in the historical annotation information. After the automatic annotation information is modified, its annotation content is updated, and accordingly, the annotation type of the automatic annotation information is modified to determine it as manual annotation information.
[0100] As a specific application embodiment of the disclosed embodiment, in a home decoration scenario, after the interior modeling and design, the model data obtained includes but is not limited to the indoor apartment layout, room height, apartment square meters and the square meters of each room, the name type of each room, the correlation between each apartment, etc. After entering the floor plan mode, the model data is parsed and then converted into the data required for drawing display for drawing display, that is, the target model and the annotation information of the target model are displayed on the page. By interacting with the annotation information, it is edited, so that manual annotation information and automatic annotation information can be obtained. After the floor plan is updated, these manual annotation information and automatic annotation information are referred to as historical annotation information. For the updated floor plan, the updated annotation information is generated. The annotation information of the updated floor plan is updated in the above manner.
[0101] In this embodiment, a label update device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0102] This embodiment provides a label update device, such as Figure 4 As shown, including:
[0103] The historical annotation information acquisition module 401 is used to acquire the historical annotation information of the target model, where the historical annotation information includes manual annotation information and automatic annotation information.
[0104] The model acquisition module 402 is used to acquire the updated target model to obtain updated annotation information.
[0105] The automatic annotation information updating module 403 is used to update the automatic annotation information based on the updated annotation information to obtain the updated automatic annotation information.
[0106] The query module 404 is used to query the updated target model based on the associated model object corresponding to the manual annotation information.
[0107] The manual annotation retaining module 405 is used to retain the manual annotation information if the associated model object is not updated in the updated target model.
[0108] In some optional implementations, the query module 404 includes:
[0109] The initial position acquisition unit is used to acquire the annotation points in the associated model object corresponding to the manual annotation information and the initial positions of the annotation points.
[0110] The position query unit is used to query the position of the annotation point in the updated target model.
[0111] The query result determination unit is used to determine the query result of the associated model object based on the queried position and the initial position of the annotation point.
[0112] In some optional embodiments, the device further comprises:
[0113] The manual annotation information updating module is used to update the manual annotation information based on the queried position if the associated model object is updated in the updated target model.
[0114] In some optional implementations, the automatic annotation information updating module 403 includes:
[0115] The screening unit is used to screen the updated annotation information based on the associated model object corresponding to the manual annotation information to obtain target annotation information related to the automatic annotation.
[0116] The automatic annotation information updating unit is used to update the automatic annotation information based on the associated model object corresponding to the target annotation information and the associated model object corresponding to the automatic annotation information to obtain updated automatic annotation information.
[0117] In some optional implementations, the automatic annotation information updating unit includes:
[0118] The comparison subunit is used to compare the associated model object corresponding to the target annotation information with the associated model object corresponding to the automatic annotation information to determine the same first associated model object.
[0119] The updating subunit is used to update the corresponding automatic annotation information based on the target annotation information corresponding to the first associated model object.
[0120] The annotation subunit is used to annotate the second associated model object that exists in the target annotation information but does not exist in the automatic annotation information based on the target annotation information corresponding to the second associated model object.
[0121] The deleting subunit is used to delete the automatic annotation information corresponding to the third associated model object which does not exist in the target annotation information but exists in the automatic annotation information.
[0122] In some optional implementations, the historical annotation information acquisition module 401 includes:
[0123] The annotation type identification query unit is used to query the annotation type identification in the historical annotation information.
[0124] The annotation information determining unit is used to determine the manual annotation information and the automatic annotation information in the historical annotation information based on the annotation type identifier.
[0125] In some optional implementations, the historical annotation information acquisition module 401 further includes:
[0126] The modification result obtaining unit is used to obtain the modification result of the automatic annotation information.
[0127] The annotation content updating unit is used to update the automatic annotation information based on the modification result, and adjust the annotation type identifier of the automatic annotation information to manual annotation.
[0128] The annotation update device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0129] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0130] The present disclosure also provides an electronic device having the above Figure 4 The annotation update device shown.
[0131] See also Figure 5 , Figure 5 is a schematic diagram of the structure of an electronic device provided by an optional embodiment of the present disclosure, such as Figure 5As shown, the electronic device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.
[0132] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0133] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0134] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0135] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0136] The electronic device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0137] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0138] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0139] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for updating annotations, It is characterized in that The method comprises: Acquire historical annotation information of the target model, wherein the historical annotation information includes manual annotation information and automatic annotation information; Obtaining the updated target model to obtain updated annotation information; Updating the automatic annotation information based on the updated annotation information to obtain updated automatic annotation information; Querying the updated target model based on the associated model object corresponding to the manual annotation information; If the associated model object is not updated in the updated target model, the manual annotation information is retained.
2. The method according to claim 1, It is characterized in that The querying the updated target model based on the associated model object corresponding to the manual annotation information includes: Obtaining the annotation points in the associated model object corresponding to the manual annotation information and the initial positions of the annotation points; Querying the position of the annotation point in the updated target model; Based on the queried position and the initial position of the annotation point, a query result of the associated model object is determined.
3. The method according to claim 2, It is characterized in that The method further comprises: If the associated model object is updated in the updated target model, the manual annotation information is updated based on the queried position.
4. The method according to claim 1, It is characterized in that The updating of the automatic annotation information based on the updated annotation information to obtain the updated automatic annotation information includes: Based on the associated model object corresponding to the manual annotation information, the updated annotation information is screened to obtain target annotation information related to the automatic annotation; Based on the associated model object corresponding to the target annotation information and the associated model object corresponding to the automatic annotation information, the automatic annotation information is updated to obtain updated automatic annotation information.
5. The method according to claim 4, It is characterized in that The updating of the automatic annotation information based on the associated model object corresponding to the target annotation information and the associated model object corresponding to the automatic annotation information to obtain updated automatic annotation information includes: Comparing the associated model object corresponding to the target annotation information with the associated model object corresponding to the automatic annotation information to determine the same first associated model object; Based on the target annotation information corresponding to the first association model object, the corresponding automatic annotation information is updated; For a second associated model object that exists in the target annotation information but does not exist in the automatic annotation information, annotating based on the target annotation information corresponding to the second associated model object; For a third associated model object that does not exist in the target annotation information but exists in the automatic annotation information, the automatic annotation information corresponding to the third associated model object is deleted.
6. The method according to any one of claims 1 to 5, It is characterized in that The obtaining of historical annotation information of the target model includes: Querying the annotation type identifier in the historical annotation information; Based on the annotation type identifier, the manual annotation information and the automatic annotation information in the historical annotation information are determined.
7. The method according to claim 6, It is characterized in that The step of obtaining the historical annotation information of the target model further includes: Obtaining a modification result of the automatic annotation information; The automatic annotation information is updated based on the modification result, and the annotation type identifier of the automatic annotation information is adjusted to manual annotation.
8. A marking update device, It is characterized in that The device comprises: A historical annotation information acquisition module is used to acquire historical annotation information of a target model, wherein the historical annotation information includes manual annotation information and automatic annotation information; A model acquisition module is used to acquire the updated target model to obtain updated annotation information; An automatic annotation information updating module, used for updating the automatic annotation information based on the updated annotation information to obtain updated automatic annotation information; A query module, configured to query the updated target model based on the associated model object corresponding to the manual annotation information; The manual annotation retaining module is used to retain the manual annotation information if the associated model object is not updated in the updated target model.
9. An electronic device, It is characterized in that include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the annotation update method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the annotation update method according to any one of claims 1 to 7.