Image target processing method and device, storage medium and electronic device

By first drawing an edge of the rotating marking box on the image annotation interface and determining the third vertex to generate a rotating rectangle, the problem that image object annotation requires multiple adjustments to the rectangle in the prior art is solved, and a simplified labeling process and improvement are achieved. labeling efficiency.

CN114298915BActive Publication Date: 2025-02-07ZHEJIANG DAHUA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111669870.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2025-02-07
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

In the prior art, the labeling method of image objects requires multiple adjustments to the rectangle, resulting in a cumbersome object labeling process.

Method used

By displaying the image to be marked on the target display interface, in response to the user's drawing operation, one edge of the rotating marking box is first drawn and a third vertex is determined on its vertical line, thereby generating a rotating rectangle.

Benefits of technology

It ensures that the annotation box matches the target object during the drawing process, and does not need to adjust the annotation box multiple times, simplifies the process of object annotation and improves efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114298915B_ABST
    Figure CN114298915B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for processing an image target, a storage medium and an electronic device, wherein the method comprises: displaying a first image to be annotated on a target display interface, wherein the first image to be annotated includes a target object to be annotated; in response to a detected first drawing operation, drawing a first side of a rotation annotation box of the target object on the target display interface, wherein the angle of the first side is a target angle, and the first drawing operation is used to indicate the positions of a first vertex and a second vertex corresponding to the first side; in response to a detected second drawing operation, determining a third vertex of the rotation annotation box of the target object, wherein the second drawing operation is used to indicate the position of the third vertex in a target direction starting from the second vertex and perpendicular to the first side; and drawing a rotation annotation box of the target object on the target display interface according to the first side and the third vertex to obtain a target rotation annotation box.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing, and in particular, to a method and device for processing an image target, a storage medium, and an electronic device. Background Art

[0002] In the case of model training or other scenarios where images need to be annotated, images of the required objects need to be provided. Currently, in the process of annotating an object, a rotated annotation box (i.e., a rotated rectangle) can be added to it in the following way: first draw a rectangle based on the upper left vertex and the lower right vertex, and then rotate the rectangle.

[0003] However, for the above object annotation method, the rectangle drawn first may not match the object, and the annotation box needs to be redrawn or adjusted; and in the process of rotating the rectangle, the angle needs to be adjusted multiple times to ensure that the rotated rectangle matches the object. It can be seen that the image object annotation method in the related art has the problem of cumbersome object annotation process caused by multiple rectangle adjustments. Summary of the invention

[0004] The embodiments of the present application provide a method and device for processing an image target, a storage medium, and an electronic device, so as to at least solve the problem that the image object labeling method in the related art needs to adjust the rectangle multiple times, resulting in a cumbersome object labeling process.

[0005] According to one aspect of an embodiment of the present application, a method for processing an image target is provided, comprising: displaying a first image to be annotated on a target display interface, wherein the first image to be annotated includes a target object to be annotated; in response to a detected first drawing operation, drawing a first side of a rotational annotation box of the target object on the target display interface, wherein an angle of the first side is a target angle, and the first drawing operation is used to indicate the positions of a first vertex and a second vertex corresponding to the first side; in response to a detected second drawing operation, determining a third vertex of the rotational annotation box of the target object, wherein the second drawing operation is used to indicate the position of the third vertex in a target direction starting from the second vertex and perpendicular to the first side; and drawing a rotational annotation box of the target object on the target display interface according to the first side and the third vertex to obtain a target rotational annotation box.

[0006] In an exemplary embodiment, in response to a detected first drawing operation, drawing a first side of a rotation annotation box of the target object on the target display interface includes: in response to a detected first sub-drawing operation, drawing the first vertex on the target display interface, wherein the first sub-drawing operation is used to indicate a position of the first vertex; in response to a detected second sub-drawing operation, drawing the first side on the target display interface according to the target angle, wherein the second sub-drawing operation is used to indicate a position of the second vertex.

[0007] In an exemplary embodiment, before drawing the first edge at the target angle on the target display interface, the method further includes: displaying a first moving edge with the first vertex as a starting point on the target display interface, wherein the end point position of the first moving edge moves along with the movement of the input position on the target display interface.

[0008] In an exemplary embodiment, during the process of displaying a first moving edge starting from the first vertex on the target display interface, the method further comprises: displaying a first auxiliary edge starting from the end point of the first moving edge and perpendicular to the first moving edge on the target display interface.

[0009] In an exemplary embodiment, after drawing the first side of the rotated annotation box of the target object on the target display interface, the method further includes: displaying a second moving side with the second vertex as the starting point and a direction perpendicular to the first side on the target display interface, wherein the end point position of the second moving side moves following the input position on the target display interface.

[0010] In an exemplary embodiment, during the process of displaying a second moving edge with the second vertex as a starting point and a direction perpendicular to the first edge on the target display interface, the method further includes: displaying a second auxiliary edge with the end point of the second moving edge as a starting point and a direction perpendicular to the second moving edge on the target display interface.

[0011] In an exemplary embodiment, drawing the rotated annotation box of the target object on the target display interface according to the first side and the third vertex to obtain the target rotated annotation box includes: drawing the second side of the rotated annotation box of the target object between the second vertex and the third vertex on the target display interface; determining the fourth vertex of the rotated annotation box of the target object according to the first vertex, the second vertex and the third vertex; drawing the third side of the rotated annotation box of the target object between the third vertex and the fourth vertex, and drawing the fourth side of the rotated annotation box of the target object between the fourth vertex and the first vertex to obtain the target rotated annotation box.

[0012] In an exemplary embodiment, after drawing a rotated annotation box of the target object on the target display interface according to the first edge and the third vertex to obtain the target rotated annotation box, the method further includes: displaying a second image to be annotated and the target rotated annotation box on the target display interface, wherein the second image to be annotated contains the target object to be annotated, and the second image to be annotated is an image adjacent to the first image to be annotated in the video to be annotated; and in response to a detected association operation, determining the target rotated annotation box as the rotated annotation box of the target object in the second image to be annotated.

[0013] According to another aspect of an embodiment of the present application, a device for processing an image target is also provided, including: a display unit, used to display a first image to be annotated on a target display interface, wherein the first image to be annotated includes a target object to be annotated; a first drawing unit, used to draw a first side of a rotational annotation box of the target object on the target display interface in response to a detected first drawing operation, wherein the angle of the first side is a target angle, and the first drawing operation is used to indicate the positions of a first vertex and a second vertex corresponding to the first side; a first determination unit, used to determine a third vertex of the rotational annotation box of the target object in response to a detected second drawing operation, wherein the second drawing operation is used to indicate the position of the third vertex in a target direction starting from the second vertex and perpendicular to the first side; a second drawing unit, used to draw a rotational annotation box of the target object on the target display interface according to the first side and the third vertex, to obtain a target rotational annotation box.

[0014] In an exemplary embodiment, the first drawing unit includes: a first drawing module, configured to draw the first vertex on the target display interface in response to a detected first sub-drawing operation, wherein the first sub-drawing operation is used to indicate the position of the first vertex; and a second drawing module, configured to draw the first edge on the target display interface according to the target angle in response to a detected second sub-drawing operation, wherein the second sub-drawing operation is used to indicate the position of the second vertex.

[0015] In an exemplary embodiment, the device also includes: a second display unit, used to display a first moving edge with the first vertex as the starting point on the target display interface before drawing the first edge on the target display interface according to the target angle, wherein the end point position of the first moving edge moves following the movement of the input position on the target display interface.

[0016] In an exemplary embodiment, the device also includes: a third display unit, which is used to display a first auxiliary edge with the end point of the first moving edge as the starting point and the direction perpendicular to the first moving edge on the target display interface while displaying the first moving edge with the first vertex as the starting point on the target display interface.

[0017] In an exemplary embodiment, the device also includes: a fourth display unit, which is used to display a second moving edge with the second vertex as the starting point and a direction perpendicular to the first edge on the target display interface after drawing the first edge of the rotated annotation box of the target object on the target display interface, wherein the end point position of the second moving edge moves following the input position on the target display interface.

[0018] In an exemplary embodiment, the device also includes: a fifth display unit, which is used to display a second auxiliary edge with the end point of the second moving edge as the starting point and the direction perpendicular to the second moving edge on the target display interface while displaying a second moving edge with the second vertex as the starting point and the direction perpendicular to the second moving edge on the target display interface.

[0019] In an exemplary embodiment, the second drawing unit includes: a third drawing module, used to draw the second side of the rotation annotation box of the target object between the second vertex and the third vertex on the target display interface; a first determination module, used to determine the fourth vertex of the rotation annotation box of the target object according to the first vertex, the second vertex and the third vertex; a fourth drawing module, used to draw the third side of the rotation annotation box of the target object between the third vertex and the fourth vertex, and to draw the fourth side of the rotation annotation box of the target object between the fourth vertex and the first vertex, so as to obtain the target rotation annotation box.

[0020] In an exemplary embodiment, the device also includes: a sixth display unit, which is used to draw a rotated annotation box of the target object on the target display interface according to the first edge and the third vertex, and after obtaining the target rotated annotation box, display a second image to be annotated and the target rotated annotation box on the target display interface, wherein the second image to be annotated contains the target object to be annotated, and the second image to be annotated is an image adjacent to the first image to be annotated in the video to be annotated; and a second determination unit, which is used to determine the target rotated annotation box as the rotated annotation box of the target object in the second image to be annotated in response to a detected association operation.

[0021] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for processing the image target when running.

[0022] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the image target processing method through the computer program.

[0023] In an embodiment of the present application, a method is adopted in which a side of a rotated annotation box is first drawn, and a third vertex is drawn on a vertical line of the side to generate a rotated rectangle, and a first image to be annotated is displayed on a target display interface, wherein the first image to be annotated includes a target object to be annotated; in response to a detected first drawing operation, a first side of a rotated annotation box of the target object is drawn on the target display interface, wherein an angle of the first side is a target angle, and the first drawing operation is used to indicate positions of a first vertex and a second vertex corresponding to the first side; in response to a detected second drawing operation, a third vertex of the rotated annotation box of the target object is determined, wherein the second drawing operation is used to indicate a position of the third vertex at a point starting from the second vertex and perpendicular to the second vertex. The first side is positioned in the target direction; according to the first side and the third vertex, a rotation annotation box of the target object is drawn on the target display interface to obtain a target rotation annotation box. Since one side of the target angle is drawn first, the rotation angle of the rotation annotation box can be set according to the shape of the target object in this step, and then the third vertex is drawn on the vertical line of the side to generate a rotation annotation box. This can ensure that the drawn annotation box matches the target object during the drawing process, and there is no need to adjust the annotation box multiple times. The technical effect of simplifying the object annotation process and improving the efficiency of object annotation is achieved, thereby solving the problem that the image object annotation method in the related art needs to adjust the rectangle multiple times, which causes the object annotation process to be cumbersome. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0025] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0026] Figure 1is a schematic diagram of a hardware environment of an optional method for processing an image target according to an embodiment of the present application;

[0027] Figure 2 is a flowchart of an optional method for processing an image target according to an embodiment of the present application;

[0028] Figure 3 is a schematic diagram of an optional software architecture according to an embodiment of the present application;

[0029] Figure 4 is a schematic diagram of an optional method for processing an image target according to an embodiment of the present application;

[0030] Figure 5 is a flowchart of another optional method for processing an image target according to an embodiment of the present application;

[0031] Figure 6 is a structural block diagram of an optional image target processing device according to an embodiment of the present application;

[0032] Figure 7 It is a structural block diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0035] According to one aspect of an embodiment of the present application, a method for processing an image target is provided. Optionally, in this embodiment, the method for processing an image target can be applied to Figure 1 In the hardware environment composed of the image annotation device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the image annotation device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104.

[0036] The network may include but is not limited to at least one of the following: a wired network, a wireless network. The wired network may include but is not limited to at least one of the following: a wide area network, a metropolitan area network, a local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The image annotation device 102 may not be limited to a PC, a mobile phone, a tablet computer, etc.

[0037] The image target processing method of the embodiment of the present application may be executed by the server 104, or by the image annotation device 102, or by both the server 104 and the image annotation device 102. The image annotation device 102 may execute the image target processing method of the embodiment of the present application, or the client installed thereon.

[0038] Taking the image tagging device 102 as an example, the image target processing method in this embodiment is executed. Figure 2 is a flow chart of an optional method for processing an image target according to an embodiment of the present application, such as Figure 2 As shown, the process of the method may include the following steps:

[0039] Step S202: displaying a first image to be labeled on a target display interface, wherein the first image to be labeled includes a target object to be labeled.

[0040] The method for processing image targets in this embodiment can be applied to a scenario where annotated targets in an image to be annotated are annotated by an image annotation device, and the target object is annotated by performing corresponding operations on the image annotation device. A target application for image annotation can be run on the image annotation device, and a first image to be annotated can be displayed on the target display interface of the target application, and the first image to be annotated can contain at least one target object to be annotated (i.e., annotated target). The target object can be a moving object, such as a vehicle, a pedestrian, etc. In addition, a drawing tool for assisting in drawing a rotating box can be displayed on the target display interface.

[0041] Step S204, in response to the detected first drawing operation, draw a first side of a rotation annotation box of the target object on the target display interface, wherein the angle of the first side is a target angle, and the first drawing operation is used to indicate the positions of a first vertex and a second vertex corresponding to the first side.

[0042] The marking target can be marked by drawing a rotated rectangle, and the rotated rectangle is a rectangle that allows a certain rotation angle. In the related art, when drawing a rotated rectangle for the marking target, a complete rectangle is usually drawn first according to the upper left vertex and the lower right vertex, and then the drawn rectangle is rotated according to the shape of the marking target (the area occupied), etc., and it can be matched with the marking target after being rotated by a certain angle to obtain the rotated marking frame of the marking target. For the above-mentioned method of drawing the rotating marking frame, the operation process is cumbersome, and it is easy to make mistakes during adaptation (it is easy to rotate too large or too small to cause mismatch with the marking target), and the efficiency is low.

[0043] In order to solve the above problem, in this embodiment, an edge of an arbitrary angle can be drawn first, and then a third vertex can be drawn on the vertical line of the edge to generate a rotated annotation box (a rotated rectangle). The user can view the first image to be annotated and determine the annotation target contained therein, that is, the target object. Optionally, an object range identifier of at least one candidate object identified from the first image to be annotated can be displayed on the first image to be annotated. That is, the first image to be annotated can be preprocessed by an image annotation device or other device, and multiple candidate objects and the object range of each candidate object can be identified from the first image to be annotated, which can include the target object and other misidentified objects. According to the object range of each candidate object, the image annotation device can display the object range identifier of each candidate object on the target display interface.

[0044] The user may perform a first drawing operation on the target display interface, and the first drawing operation is used to trigger drawing of a first side of a rotation annotation box of the target object. The above-mentioned first drawing operation may be an operation performed by the user directly on the image to be annotated displayed on the target display page, or an operation performed on a drawing tool on the display screen that assists in drawing a rotation box. By performing the first drawing operation, the user may indicate the position of the first side of the rotation annotation box of the target object on the target display page, for example, the position of the first vertex and the second vertex may be indicated, and the first side may be drawn according to the positions of the first vertex and the second vertex.

[0045] For example, the first drawing operation performed by the user may be to perform operations such as clicking, double-clicking, sliding, etc. on the image to be annotated displayed on the target display page to indicate the positions of the first vertex and the second vertex. For another example, the user may perform operations on input and output components such as a mouse and a keyboard connected to the image annotation device to indicate the positions of the first vertex and the second vertex, which is not limited in this embodiment.

[0046] The image annotation device can detect a first drawing operation, and in response to the first drawing operation, draw an edge of the annotation box formed by connecting the first vertex and the second vertex on the target display interface, that is, the first edge. The thickness, color, etc. of the first edge can adopt default values ​​and can be adjusted based on the user's configuration. The first edge can be adjustable or fixed. The angle of the drawn first edge is the target angle, which can be the angle formed by the first edge and the horizontal line.

[0047] Step S206 , in response to the detected second drawing operation, determining a third vertex of the rotated annotation box of the target object, wherein the second drawing operation is used to indicate a position of the third vertex in a target direction starting from the second vertex and perpendicular to the first side.

[0048] After drawing the first edge, the user may perform a second drawing operation on the image annotation device. The second drawing operation may be an operation to indicate the position of the third vertex. During the second drawing operation, a line may be displayed on the target display interface starting from the second vertex and perpendicular to the first edge as a reference edge, that is, the edge where the third vertex to be drawn is required to be located. The user may select a suitable position on the reference edge, and the selected position may be marked as the third vertex.

[0049] Similar to or similar to the above embodiment, the image annotation device can detect the second drawing operation, obtain the position of the third vertex, and determine the position of the third vertex as the third vertex of the rotated annotation box to be drawn. Here, the rotated annotation box refers to an annotation box that is allowed to have a certain angle compared to the horizontal line or other reference line.

[0050] Step S208: Draw a rotation annotation box of the target object on the target display interface according to the first side and the third vertex to obtain a target rotation annotation box.

[0051] According to the characteristics of the rectangle, after drawing the third vertex, that is, after determining a side and a vertex (or three vertices) of the rectangle, a rectangle can be directly determined. The way to determine the rectangle can be: determine the fourth vertex, and then determine a rectangle according to the four vertices, or: determine the four sides, and the closed area surrounded by the four sides is the required rectangle. Here, the way to determine the fourth vertex can be: use the line connecting the first vertex and the third vertex as the axis of symmetry, and determine the point symmetrical to the center of the second vertex as the fourth vertex.

[0052] After a rectangle is determined, the determined rectangle is the rotation annotation box of the target object, that is, the target rotation annotation box. The image annotation device can draw a target rotation annotation box on the target display interface. After drawing the target rotation annotation box, the user can determine whether the target rotation annotation box can annotate the target object. For example, it can be determined whether the target object can be placed in the target rotation annotation box. If so, it can be determined that the annotation of the target object in the first image to be annotated is completed. Otherwise, the rotation annotation box of the target object can be redrawn in the same or similar manner as in the aforementioned embodiment, or the target rotation annotation box can be adjusted by operations such as translation until it is determined that the target rotation annotation box can annotate the target object.

[0053] Optionally, after obtaining the target rotation annotation frame, the user can annotate other annotation targets that need to be annotated in the first image to be annotated, or jump to the next image to be annotated in the first image to be annotated and annotate the annotation targets in the next image to be annotated.

[0054] Through the above steps S202 to S208, a first image to be annotated is displayed on a target display interface, wherein the first image to be annotated includes a target object to be annotated; in response to a detected first drawing operation, a first side of a rotational annotation box of the target object is drawn on the target display interface, wherein the angle of the first side is a target angle, and the first drawing operation is used to indicate the positions of a first vertex and a second vertex corresponding to the first side; in response to a detected second drawing operation, a third vertex of the rotational annotation box of the target object is determined, wherein the second drawing operation is used to indicate the position of the third vertex in a target direction starting from the second vertex and perpendicular to the first side; a rotational annotation box of the target object is drawn on the target display interface according to the first side and the third vertex, to obtain a target rotational annotation box, which solves the problem that the image object annotation method in the related art needs to adjust the rectangle multiple times, resulting in a cumbersome object annotation process, simplifies the object annotation process, and improves the efficiency of object annotation.

[0055] In an exemplary embodiment, in response to a detected first drawing operation, drawing a first side of a rotation annotation box of a target object on a target display interface includes:

[0056] S11, in response to the detected first sub-drawing operation, drawing a first vertex on the target display interface, wherein the first sub-drawing operation is used to indicate the position of the first vertex;

[0057] S12, in response to the detected second sub-drawing operation, drawing a first edge on the target display interface according to the target angle, wherein the second sub-drawing operation is used to indicate the position of the second vertex.

[0058] In this embodiment, the first drawing operation may include a first sub-drawing operation and a second sub-drawing operation, respectively for drawing the first vertex and the second vertex. In response to detecting the first sub-drawing operation and the second sub-drawing operation, the image annotation device may draw a first edge on the target display interface, and the drawn first edge may have a target angle.

[0059] Optionally, when the user performs the first sub-drawing operation and the second sub-drawing operation, the image annotation device will issue a prompt to the user (for example, a voice prompt, a pop-up prompt, etc.) to remind the user whether to use the currently drawn point as the first vertex and the second vertex.

[0060] According to this embodiment, the first edge is drawn through different drawing operations, which can improve the flexibility of the first edge drawing and improve the efficiency of object annotation.

[0061] In an exemplary embodiment, before drawing the first edge on the target display interface according to the target angle, the method further includes:

[0062] S21, displaying a first moving edge with a first vertex as a starting point on a target display interface, wherein an end point position of the first moving edge moves along with movement of an input position on the target display interface.

[0063] In this embodiment, due to the uncertainty of the target object (for example, the target object has different shapes), in the process of drawing the first edge, the spacing between the first vertex and the second vertex is set unreasonably, or the angle of the drawn first edge is too small to completely mark the target object, resulting in failure to draw the rotated rectangle. Therefore, when drawing the first edge, the first vertex can be drawn on the target display interface in response to the detected first sub-drawing operation. Then, a moving edge with the first vertex as the starting point is used to assist in determining the drawing position of the second vertex.

[0064] After drawing the first vertex, a first moving edge with the first vertex as the starting point can be displayed on the target display interface. The end point of the first moving edge moves along with the movement of the input position on the target display interface. By adjusting the end point of the first moving point, a suitable angle (i.e., the target angle) can be selected. For example, at the target angle, the first edge will not pass through the target object and has a reasonable distance from the target object. For example, the first edge cannot touch the target object. After finding a suitable position, the user can perform the drawing operation of the second vertex. The specific operation process can refer to the aforementioned embodiment and will not be repeated here.

[0065] Through this embodiment, after a vertex is determined, a moving edge is displayed with the vertex as the starting point and the end point position changes with the input position, which can facilitate finding a suitable drawing angle and improve the efficiency of object annotation.

[0066] In an exemplary embodiment, in the process of displaying the first moving edge starting from the first vertex on the target display interface, the method further includes:

[0067] S31, displaying a first auxiliary edge on the target display interface, which has the end point of the first moving edge as a starting point and is perpendicular to the first moving edge.

[0068] In this embodiment, in order to improve the efficiency of drawing the rotated rectangle, a first auxiliary edge with the end point of the first moving edge (for example, the input position of the target display page) as the starting point and a direction perpendicular to the first moving edge can be displayed at the same time as the first moving edge is displayed. The first auxiliary edge can be a ray shape or a straight line shape, which is not limited in this embodiment.

[0069] Since the annotation target is displayed in two dimensions, if the rectangle (which can be a semi-enclosed structure) formed by the drawn points is not intuitively marked, the rotation matrix drawn based on the information seen will have a poor match with the target object. By adding auxiliary lines, the position of the rotation rectangle to be drawn can be intuitively displayed, improving the efficiency of drawing the rotation inverse matrix.

[0070] Through this embodiment, after a moving edge is displayed, an auxiliary edge corresponding to the moving edge is displayed to assist in object labeling, thereby improving the efficiency of object labeling.

[0071] In an exemplary embodiment, after drawing a first side of a rotation annotation box of the target object on the target display interface, the method further includes:

[0072] S41, displaying a second moving edge with a second vertex as a starting point and a direction perpendicular to the first edge on the target display interface, wherein the end position of the second moving edge moves following the input position on the target display interface.

[0073] In this embodiment, after determining the second vertex and drawing the first side, the user can directly specify the position of the drawn third vertex. In order to ensure the accuracy of object annotation, after drawing the first side, a second moving side can be displayed. The second moving side can be an side starting from the second vertex and perpendicular to the first side. The end position of the second moving side can move with the input position on the target display interface. By adjusting the input position, the length of the second east side can be adjusted to assist in determining the annotation of the target object.

[0074] Through this embodiment, after drawing the first edge, a moving edge is displayed with a vertex of the first edge as the starting point and in a direction perpendicular to the first edge, which can assist in drawing a rotating rectangular box and improve the efficiency of object annotation.

[0075] In an exemplary embodiment, in the process of displaying a second moving edge starting from the second vertex and perpendicular to the first edge on the target display interface, the method further includes:

[0076] S51, displaying a second auxiliary edge on the target display interface, with the end point of the second moving edge as the starting point and the direction perpendicular to the second moving edge.

[0077] In this embodiment, in order to improve the efficiency of drawing the rotated rectangle, a second auxiliary edge with the end point of the second moving edge (for example, the input position of the target display page) as the starting point and a direction perpendicular to the second moving edge can be displayed at the same time as the second moving edge is displayed. The second auxiliary edge can be a ray shape or a straight line shape, which is not limited in this embodiment.

[0078] Since the annotation target is displayed in two dimensions, if the rectangle (which can be a semi-enclosed structure) formed by the drawn points is not intuitively marked, the rotation matrix drawn based on the information seen will have a poor match with the target object. By adding auxiliary lines, the position of the rotation rectangle to be drawn can be intuitively displayed, improving the efficiency of drawing the rotation inverse matrix.

[0079] Through this embodiment, after a moving edge is displayed, an auxiliary edge corresponding to the moving edge is displayed to assist in object labeling, thereby improving the efficiency of object labeling.

[0080] In an exemplary embodiment, drawing a rotation annotation box of the target object on the target display interface according to the first side and the third vertex to obtain the target rotation annotation box includes:

[0081] S61, drawing a second side of a rotation annotation box of the target object between the second vertex and the third vertex on the target display interface;

[0082] S62, determining a fourth vertex of the rotated annotation box of the target object according to the first vertex, the second vertex and the third vertex;

[0083] S63, drawing a third side of the rotated annotation box of the target object between the third vertex and the fourth vertex, and drawing a fourth side of the rotated annotation box of the target object between the fourth vertex and the first vertex, to obtain a target rotated annotation box.

[0084] In this embodiment, after determining the first side and the third vertex, a unique rotated rectangle can be directly determined. For example, the second side of the rotated rectangle can be drawn between the second vertex and the third vertex; then, the fourth vertex of the rotated annotation box of the target object is determined based on the first vertex, the second vertex, and the third vertex. In addition to being obtained by the diagonal line of the rectangle in the aforementioned embodiment, the fourth vertex can also be obtained by drawing a perpendicular line from the first vertex and the third vertex adjacent to the fourth vertex in the direction matching the first side and the second side. Since the four corners of the rectangle are right angles, the intersection of the perpendicular line of the first vertex and the third vertex is the fourth vertex.

[0085] After obtaining the position information of the fourth vertex, the third side of the rotation annotation box of the target object can be drawn between the third vertex and the fourth vertex, and the fourth side of the rotation annotation box of the target object can be drawn between the fourth vertex and the first vertex to obtain the target rotation annotation box.

[0086] Through this embodiment, the fourth vertex is determined according to the vertices at known positions through the geometric relationship of the rectangle, and then the rotated annotation frame of the annotation target can be obtained, thereby improving the efficiency and convenience of object annotation.

[0087] In an exemplary embodiment, after drawing a rotation annotation box of the target object on the target display interface according to the first side and the third vertex and obtaining the target rotation annotation box, the method further includes:

[0088] S71, displaying a second image to be annotated and a target rotation annotation frame on a target display interface, wherein the second image to be annotated includes a target object to be annotated, and the second image to be annotated is an image adjacent to the first image to be annotated in the video to be annotated;

[0089] S72: In response to the detected association operation, determine the target rotated annotation box as the rotated annotation box of the target object in the second image to be annotated.

[0090] In this embodiment, after obtaining the target rotation annotation frame, the user can continue to annotate the next annotation target in the first image to be annotated. Alternatively, the first image to be annotated can be a frame image in the video to be annotated, and the image annotation device can display the next frame image of the first image to be annotated in the video to be annotated on the target display interface, that is, the second image to be annotated.

[0091] When annotating the target in the second image to be annotated, the same or similar method as in the above embodiment can be used for annotation. Optionally, in this embodiment, since there is a certain correlation between the objects contained in adjacent video images in the video to be annotated, the target rotation annotation frame of the first image to be annotated can be displayed together with the second image to be annotated on the target display interface.

[0092] The user can determine whether the target rotated annotation box marks the position of the target object in the second image to be annotated. If so, an association operation can be performed on the target rotated annotation box and the target object to determine the target rotated annotation box as the rotated annotation box of the target object in the second image to be annotated, thereby eliminating the need to draw the annotation box of the target object. Otherwise, the displayed target rotated annotation box can be removed so that the user can re-annotate the target object.

[0093] Through this embodiment, when annotating continuous images, the annotation result of the previous frame of image is combined to assist in object annotation of the next frame, which can reduce the time consumption of annotation and improve the efficiency of object annotation.

[0094] The following is an explanation of the processing method of the image target in the embodiment of the present application in conjunction with an optional example. For ease of understanding, in this optional example, a rotation matrix with a certain angle is directly drawn on the canvas without indicating the association with the labeled target, which can be applied to a variety of application scenarios. In this optional example, the first fixed point is fixed point A, the second fixed point is B, the first moving point is B', the third fixed point is fixed point C, the second moving point is C', and the fourth fixed point is fixed point D.

[0095] This optional example provides a solution for drawing a rotated rectangle, which uses a method without auxiliary lines to draw a rotated rectangle. Figure 3 and Figure 4 As shown, the process of the method for processing an image target in this optional example may include the following steps:

[0096] Step 1, draw the fixed point A;

[0097] Step 2, draw the second moving point B and moving side AB';

[0098] Step 3. After finding the right position, draw the fixed point B, and continue to draw the third moving point C, as well as the moving side BC' (the moving side BC' should always remain perpendicular to the fixed side AB);

[0099] Step 4. After finding the appropriate position, draw the fixed point C. At this time, the rotated rectangle has three fixed points, namely A, B, and C. The position of the fourth fixed point D is also determined, and the rotated rectangle path is closed.

[0100] This optional example also provides a solution for drawing a rotated rectangle, which uses auxiliary lines to draw the rotated rectangle. Figure 5 As shown, the process of the method for processing an image target in this optional example may include the following steps:

[0101] Step 1, first draw a fixed point A on the canvas;

[0102] Step 2, draw the second moving point B and the moving side AB'. At this time, the auxiliary line is B'C' (the auxiliary line B'C' should always be perpendicular to the moving side AB'). The position of the point B to be drawn can be adjusted according to the position of the auxiliary line B'C' and the moving point C'.

[0103] Step 3. After finding the right position, draw the fixed point B, and continue to draw the third moving point C, and the moving side BC' (the moving side BC' should always remain perpendicular to the fixed side AB). At this time, the auxiliary line is C'D' (the auxiliary line C'D' should always remain perpendicular to the moving side BC'). The position of the point D to be drawn can be adjusted according to the position of the auxiliary line C'D' and the moving point D'.

[0104] Step 4. After finding the appropriate position, draw the fixed point C. At this time, the rotated rectangle has three fixed points, namely A, B, and C. The position of the fourth fixed point D is also determined, and the rotated rectangle path is closed.

[0105] Through this optional example, by using auxiliary lines and no auxiliary lines to assist in drawing a rotated rectangle, the applicability of rotating rectangle drawing can be improved.

[0106] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0107] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM (Read-Only Memory) / RAM (Random Access Memory), a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0108] According to another aspect of an embodiment of the present application, a device for processing an image object for implementing the above-mentioned method for processing an image object is also provided. Figure 6 is a structural block diagram of an optional image target processing device according to an embodiment of the present application, such as Figure 6 As shown, the device may include:

[0109] A first display unit 602, configured to display a first image to be annotated on a target display interface, wherein the first image to be annotated includes a target object to be annotated;

[0110] A first drawing unit 604 is connected to the first display unit 602 and is used to draw a first side of a rotation annotation box of a target object on a target display interface in response to a detected first drawing operation, wherein the angle of the first side is a target angle, and the first drawing operation is used to indicate positions of a first vertex and a second vertex corresponding to the first side;

[0111] The first determination unit 606 is connected to the first drawing unit 604, and is used to determine the third vertex of the rotated annotation box of the target object in response to the detected second drawing operation, wherein the second drawing operation is used to indicate the position of the third vertex in the target direction starting from the second vertex and perpendicular to the first side.

[0112] The second drawing unit 608 is connected to the first determining unit 606, and is used to draw a rotation annotation box of the target object on the target display interface according to the first side and the third vertex to obtain a target rotation annotation box.

[0113] It should be noted that the first display unit 602 in this embodiment can be used to execute the above step S202, the first drawing unit 604 in this embodiment can be used to execute the above step S204, the first determination unit 606 in this embodiment can be used to execute the above step S206, and the second drawing unit 608 in this embodiment can be used to execute the above step S208.

[0114] Through the above module, a first image to be annotated is displayed on a target display interface, wherein the first image to be annotated includes a target object to be annotated; in response to a detected first drawing operation, a first side of a rotational annotation box of the target object is drawn on the target display interface, wherein the angle of the first side is a target angle, and the first drawing operation is used to indicate the positions of a first vertex and a second vertex corresponding to the first side; in response to a detected second drawing operation, a third vertex of the rotational annotation box of the target object is determined, wherein the second drawing operation is used to indicate the position of the third vertex in a target direction starting from the second vertex and perpendicular to the first side; and a rotational annotation box of the target object is drawn on the target display interface according to the first side and the third vertex to obtain a target rotational annotation box, thereby solving the problem that the image object annotation method in the related art needs to adjust the rectangle multiple times, resulting in a cumbersome object annotation process, simplifying the object annotation process, and improving the efficiency of object annotation.

[0115] In an exemplary embodiment, the first drawing unit includes:

[0116] A first drawing module, configured to draw a first vertex on a target display interface in response to a detected first sub-drawing operation, wherein the first sub-drawing operation is used to indicate a position of the first vertex;

[0117] The second drawing module is used to draw a first edge on the target display interface according to a target angle in response to a detected second sub-drawing operation, wherein the second sub-drawing operation is used to indicate the position of the second vertex.

[0118] In an exemplary embodiment, the apparatus further comprises:

[0119] The second display unit is used to display a first moving edge with the first vertex as the starting point on the target display interface before drawing the first edge according to the target angle on the target display interface, wherein the end position of the first moving edge moves along with the movement of the input position on the target display interface.

[0120] In an exemplary embodiment, the apparatus further comprises:

[0121] The third display unit is used to display a first auxiliary edge with the end point of the first moving edge as the starting point and the direction perpendicular to the first moving edge on the target display interface during the process of displaying the first moving edge with the first vertex as the starting point on the target display interface.

[0122] In an exemplary embodiment, the above device further comprises:

[0123] The fourth display unit is used to display a second moving edge with a second vertex as a starting point and a direction perpendicular to the first edge on the target display interface after drawing the first edge of the rotated annotation box of the target object on the target display interface, wherein the end point position of the second moving edge moves following the input position on the target display interface.

[0124] In an exemplary embodiment, the above device further comprises:

[0125] The fifth display unit is used to display a second auxiliary edge with the end point of the second moving edge as the starting point and the direction perpendicular to the second moving edge on the target display interface while displaying the second moving edge with the second vertex as the starting point and the direction perpendicular to the first edge on the target display interface.

[0126] In an exemplary embodiment, the second drawing unit includes:

[0127] A third drawing module, used for drawing a second side of the rotation annotation box of the target object between the second vertex and the third vertex on the target display interface;

[0128] A first determination module, used to determine a fourth vertex of a rotation annotation box of the target object according to the first vertex, the second vertex and the third vertex;

[0129] The fourth drawing module is used to draw the third side of the rotation annotation box of the target object between the third vertex and the fourth vertex, and to draw the fourth side of the rotation annotation box of the target object between the fourth vertex and the first vertex, so as to obtain the target rotation annotation box.

[0130] In an exemplary embodiment, the above device further comprises:

[0131] a sixth display unit, configured to draw a rotation annotation frame of the target object on the target display interface according to the first edge and the third vertex, and after obtaining the target rotation annotation frame, display a second image to be annotated and the target rotation annotation frame on the target display interface, wherein the second image to be annotated includes the target object to be annotated, and the second image to be annotated is an image adjacent to the first image to be annotated in the video to be annotated;

[0132] The second determining unit is configured to determine, in response to the detected association operation, the target rotated annotation box as the rotated annotation box of the target object in the second image to be annotated.

[0133] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware, wherein the hardware environment includes a network environment.

[0134] According to another aspect of the embodiments of the present application, a storage medium is further provided. Optionally, in this embodiment, the storage medium can be used to execute the program code of any of the above-mentioned image object processing methods in the embodiments of the present application.

[0135] Optionally, in this embodiment, the storage medium may be located on at least one network device among a plurality of network devices in the network shown in the above embodiment.

[0136] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps:

[0137] S1, displaying a first image to be labeled on a target display interface, wherein the first image to be labeled includes a target object to be labeled;

[0138] S2, in response to the detected first drawing operation, drawing a first side of a rotation annotation box of the target object on the target display interface, wherein the angle of the first side is a target angle, and the first drawing operation is used to indicate positions of a first vertex and a second vertex corresponding to the first side;

[0139] S3, in response to the detected second drawing operation, determining a third vertex of the rotated annotation box of the target object, wherein the second drawing operation is used to indicate a position of the third vertex in a target direction starting from the second vertex and perpendicular to the first side;

[0140] S4, drawing a rotation annotation box of the target object on the target display interface according to the first side and the third vertex to obtain a target rotation annotation box.

[0141] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, which will not be described in detail in this embodiment.

[0142] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a ROM, a RAM, a mobile hard disk, a magnetic disk, or an optical disk.

[0143] According to another aspect of an embodiment of the present application, an electronic device for implementing the above-mentioned image target processing method is also provided. The electronic device may be a server, a terminal, or a combination thereof.

[0144] Figure 7 is a structural block diagram of an optional electronic device according to an embodiment of the present application, such as Figure 7As shown, it includes a processor 702, a communication interface 704, a memory 706 and a communication bus 708, wherein the processor 702, the communication interface 704 and the memory 706 communicate with each other through the communication bus 708, wherein,

[0145] Memory 706, used to store computer programs;

[0146] The processor 702 is used to implement the following steps when executing the computer program stored in the memory 706:

[0147] S1, displaying a first image to be labeled on a target display interface, wherein the first image to be labeled includes a target object to be labeled;

[0148] S2, in response to the detected first drawing operation, drawing a first side of a rotation annotation box of the target object on the target display interface, wherein the angle of the first side is a target angle, and the first drawing operation is used to indicate positions of a first vertex and a second vertex corresponding to the first side;

[0149] S3, in response to the detected second drawing operation, determining a third vertex of the rotated annotation box of the target object, wherein the second drawing operation is used to indicate a position of the third vertex in a target direction starting from the second vertex and perpendicular to the first side;

[0150] S4, drawing a rotation annotation box of the target object on the target display interface according to the first side and the third vertex to obtain a target rotation annotation box.

[0151] Optionally, the communication bus may be a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 The communication interface is used for communication between the electronic device and other devices.

[0152] The memory may include RAM, or may include non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0153] As an example, the memory 706 may include, but is not limited to, the first display unit 602, the first drawing unit 604, the first determination unit 606, and the second drawing unit 608 in the image target processing device. In addition, other module units in the image target processing device may also be included but are not limited to, which will not be described in detail in this example.

[0154] The above-mentioned processor can be a general-purpose processor, which can include but not be limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be DSP (Digital Signal Processing), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0155] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0156] It can be understood by those skilled in the art that Figure 7 The structure shown is for illustration only. The device for implementing the above-mentioned image target processing method may be a terminal device, which may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other terminal devices. Figure 7 The structure of the electronic device is not limited. Figure 7 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 7 Different configurations shown.

[0157] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, which can include: a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.

[0158] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0159] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0160] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0161] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0162] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in this embodiment.

[0163] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist physically separately, or at least two units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0164] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for processing an image target, characterized in that: include: By displaying a first image to be labeled on a target display interface, wherein the first image to be labeled includes a target object to be labeled; In response to the detected first drawing operation, drawing a first side of the rotation annotation box of the target object on the target display interface, wherein the angle of the first side is a target angle, and the first drawing operation is used to indicate the positions of the first vertex and the second vertex corresponding to the first side; In response to the detected second drawing operation, determining a third vertex of the rotated annotation box of the target object, wherein the second drawing operation is used to indicate a position of the third vertex in a target direction starting from the second vertex and perpendicular to the first side; Drawing a rotation annotation frame of the target object on the target display interface according to the first side and the third vertex to obtain a target rotation annotation frame; Wherein, in response to the detected first drawing operation, drawing the first side of the rotation annotation box of the target object on the target display interface includes: in response to the detected first sub-drawing operation, drawing the first vertex on the target display interface, wherein the first sub-drawing operation is used to indicate the position of the first vertex; in response to the detected second sub-drawing operation, drawing the first side on the target display interface according to the target angle, wherein the second sub-drawing operation is used to indicate the position of the second vertex; Among them, drawing the rotated annotation box of the target object on the target display interface according to the first side and the third vertex to obtain the target rotated annotation box includes: drawing the second side of the rotated annotation box of the target object between the second vertex and the third vertex on the target display interface; determining the fourth vertex of the rotated annotation box of the target object according to the first vertex, the second vertex and the third vertex; drawing the third side of the rotated annotation box of the target object between the third vertex and the fourth vertex, and drawing the fourth side of the rotated annotation box of the target object between the fourth vertex and the first vertex to obtain the target rotated annotation box.

2. The method according to claim 1, characterized in that Before drawing the first side according to the target angle on the target display interface, the method further includes: A first moving edge with the first vertex as a starting point is displayed on the target display interface, wherein an end point position of the first moving edge moves following movement of an input position on the target display interface.

3. The method according to claim 2, characterized in that In the process of displaying a first moving edge starting from the first vertex on the target display interface, the method further includes: A first auxiliary edge with an end point of the first moving edge as a starting point and a direction perpendicular to the first moving edge is displayed on the target display interface.

4. The method according to claim 1, characterized in that: After drawing the first side of the rotation annotation box of the target object on the target display interface, the method further includes: A second moving edge with the second vertex as a starting point and a direction perpendicular to the first edge is displayed on the target display interface, wherein an end position of the second moving edge moves following an input position on the target display interface.

5. The method according to claim 4, characterized in that In the process of displaying a second moving edge starting from the second vertex and perpendicular to the first edge on the target display interface, the method further includes: A second auxiliary edge with the end point of the second moving edge as a starting point and a direction perpendicular to the second moving edge is displayed on the target display interface.

6. The method according to any one of claims 1 to 5, characterized in that After drawing a rotation annotation frame of the target object on the target display interface according to the first side and the third vertex to obtain the target rotation annotation frame, the method further includes: Displaying a second image to be annotated and the target rotating annotation frame on the target display interface, wherein the second image to be annotated includes the target object to be annotated, and the second image to be annotated is an image adjacent to the first image to be annotated in the video to be annotated; In response to the detected association operation, the target rotated annotation box is determined as a rotated annotation box of the target object in the second image to be annotated.

7. A device for processing an image target, characterized in that: include: A first display unit, configured to display a first image to be annotated on a target display interface, wherein the first image to be annotated includes a target object to be annotated; A first drawing unit, configured to draw a first side of a rotation annotation box of the target object on the target display interface in response to a detected first drawing operation, wherein the angle of the first side is a target angle, and the first drawing operation is used to indicate positions of a first vertex and a second vertex corresponding to the first side; A first determining unit is configured to determine a third vertex of the rotated annotation box of the target object in response to a detected second drawing operation, wherein the second drawing operation is used to indicate a position of the third vertex in a target direction starting from the second vertex and perpendicular to the first side; A second drawing unit, configured to draw a rotation annotation frame of the target object on the target display interface according to the first side and the third vertex, to obtain a target rotation annotation frame; The first drawing unit includes: a first drawing module, configured to draw the first vertex on the target display interface in response to a detected first sub-drawing operation, wherein the first sub-drawing operation is used to indicate the position of the first vertex; a second drawing module, configured to draw the first edge on the target display interface according to the target angle in response to a detected second sub-drawing operation, wherein the second sub-drawing operation is used to indicate the position of the second vertex; Among them, the second drawing unit includes: a third drawing module, used to draw the second side of the rotation annotation box of the target object between the second vertex and the third vertex on the target display interface; a first determination module, used to determine the fourth vertex of the rotation annotation box of the target object according to the first vertex, the second vertex and the third vertex; a fourth drawing module, used to draw the third side of the rotation annotation box of the target object between the third vertex and the fourth vertex, and draw the fourth side of the rotation annotation box of the target object between the fourth vertex and the first vertex, so as to obtain the target rotation annotation box.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 6 when executed.

9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 6 through the computer program.

Citation Information

Patent Citations

  • Image annotation method and terminal device

    CN108573279A

  • Labeling method and device, electronic equipment and storage medium

    CN112508020A