CN110751663A - Image annotation method and device - Google Patents

Image annotation method and device Download PDF

Info

Publication number
CN110751663A
CN110751663A CN201911035643.9A CN201911035643A CN110751663A CN 110751663 A CN110751663 A CN 110751663A CN 201911035643 A CN201911035643 A CN 201911035643A CN 110751663 A CN110751663 A CN 110751663A
Authority
CN
China
Prior art keywords
boundary
coincident point
shared
point
coordinate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911035643.9A
Other languages
Chinese (zh)
Inventor
肖苗苗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Yunju Intelligent Technology Co Ltd
Original Assignee
Beijing Yunju Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Yunju Intelligent Technology Co Ltd filed Critical Beijing Yunju Intelligent Technology Co Ltd
Priority to CN201911035643.9A priority Critical patent/CN110751663A/en
Publication of CN110751663A publication Critical patent/CN110751663A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/12Edge-based segmentation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an image labeling method and device, wherein the method comprises the following steps: acquiring an initial coincident point coordinate and an ending coincident point coordinate of a shared boundary to be marked of a first object in a target image; determining whether the initial coincident point and the termination coincident point of the shared boundary to be labeled are on the boundary of a second object based on the initial coincident point coordinate, the termination coincident point coordinate and the coordinate data of the boundary of the second object, wherein the second object is an object of which the boundary labeling is already finished in the target image; if so, marking the sharing boundary to be marked based on the boundary of the second object between the starting coincident point and the ending coincident point. The method and the device can simplify the labeling operation of the shared boundary between the adjacent objects and improve the image labeling efficiency.

Description

Image annotation method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to an image annotation method and apparatus.
Background
Image semantic segmentation (semantic segmentation) refers to a method of segmenting an image according to the semantics of the image (in general, different objects in the image have different semantics).
At present, the boundary of an object in an image is drawn manually by means of own vision and a polygon marking method, and then different colors are filled in different polygons to achieve the purpose of image segmentation. When different objects in the image are adjacent to each other, such as a road surface, a vehicle and a pedestrian are adjacent to each other, a building, a tree and the sky are adjacent to each other, a shared boundary between the adjacent objects is repeatedly drawn for many times, and it is required to ensure that the drawn boundaries can be well overlapped each time. However, because the manual drawing is inevitable to have visual errors and errors, the operation of labeling the shared boundary is complicated, and the efficiency is low.
Disclosure of Invention
The embodiment of the application provides an image annotation method and device, and aims to solve the problems of complex operation and low efficiency when the shared boundary between adjacent objects is annotated by the conventional image annotation method.
In a first aspect, an embodiment of the present application provides an image annotation method, where the method includes:
acquiring an initial coincident point coordinate and an ending coincident point coordinate of a shared boundary to be marked of a first object in a target image;
determining whether the initial coincident point and the termination coincident point of the shared boundary to be labeled are on the boundary of a second object based on the initial coincident point coordinate, the termination coincident point coordinate and the coordinate data of the boundary of the second object, wherein the second object is an object of which the boundary labeling is already finished in the target image;
if the initial coincident point and the termination coincident point of the shared boundary to be labeled are on the boundary of the second object, labeling the shared boundary to be labeled based on the boundary of the second object between the initial coincident point and the termination coincident point.
In a second aspect, an embodiment of the present application further provides an image annotation device, where the device includes:
the coordinate acquisition module is used for acquiring an initial coincident point coordinate and a termination coincident point coordinate of a shared boundary to be marked of the first object in the target image;
a judging module, configured to determine whether the initial coincidence point and the ending coincidence point of the shared boundary to be labeled are on the boundary of a second object based on the initial coincidence point coordinate, the ending coincidence point coordinate, and coordinate data of the boundary of the second object, where the second object is an object in the target image for which the boundary labeling has been completed;
and the first labeling module is used for labeling the shared boundary to be labeled based on the boundary of the second object between the initial coincident point and the termination coincident point if the initial coincident point and the termination coincident point of the shared boundary to be labeled are on the boundary of the second object.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method according to the first aspect.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method according to the first aspect.
According to the at least one technical scheme adopted by the embodiment of the application, when the initial coincident point and the ending coincident point of the shared boundary to be marked of the first object are on the boundary of the second object of which the boundary marking is finished, the shared boundary to be marked is the shared boundary of the first object and the second object, so that after the initial coincident point coordinate and the ending coincident point coordinate of the shared boundary to be marked are obtained, the marking of the shared boundary to be marked can be finished automatically according to the coordinate data of the boundary of the second object which is marked, the marking operation of the shared boundary between adjacent objects is simplified, and the marking efficiency is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart of an image annotation method according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a target image provided in an embodiment of the present application.
Fig. 3 is a second flowchart of an image annotation method according to the embodiment of the present application.
Fig. 4 is a third schematic flowchart of an image annotation method according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of an image annotation device according to an embodiment of the present application.
Fig. 6 is a second schematic structural diagram of an image annotation apparatus according to an embodiment of the present application.
Fig. 7 is a third schematic structural diagram of an image annotation apparatus according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of an electronic device 800 according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to solve the problems of complicated operation and low efficiency when the existing image annotation method annotates a shared boundary of an adjacent object, an embodiment of the present application provides an image annotation method and apparatus, where an execution main body of the method may include, but is not limited to, at least one of a Personal Computer (PC), a mobile phone, an IPAD, a tablet Computer, a wearable device, and the like, which can be configured as a terminal for executing the method provided by the embodiment of the present application, or the execution main body of the method may also be a client itself capable of executing the method.
An image annotation method provided in the embodiments of the present application is first described below.
As shown in fig. 1, an image annotation method provided in an embodiment of the present application may include the following steps:
step 101, obtaining a starting coincident point coordinate and an ending coincident point coordinate of a shared boundary to be marked of a first object in a target image.
The target image refers to the image that is desired or being annotated. A plurality of objects may be included in the target image. The first object may be any object in the target image. The shared boundary to be annotated may be a boundary between the first object and any second object in the target image.
As shown in fig. 2, the target image may include a plurality of objects such as a road surface 21, a first car 22, a second car 23, a mountain 24, a third car 25, and a tree 26. The first object may be a road surface 21. The shared boundary to be marked may include a first boundary AB, a second boundary CD, and a third boundary EF of the road surface 21.
Alternatively, in practical applications, step 101 may obtain the coordinates of the starting coincident point and the coordinates of the ending coincident point of a plurality of shared boundaries to be labeled of one first object at a time. Alternatively, in step 101, the coordinates of the starting coincidence point and the coordinates of the ending coincidence point of a plurality of to-be-labeled shared boundaries of a plurality of first objects may be acquired at a time. That is, in step 101, the number of the first objects is multiple, and/or the number of the shared boundaries to be labeled is multiple, so as to complete labeling of multiple shared boundaries through one labeling process, thereby further improving the efficiency of labeling the image.
As a detailed example, step 101 may include: receiving the labeling operation of a user on an initial coincident point and a termination coincident point of a shared boundary to be labeled of a first object in a target image; and acquiring the initial coincident point coordinate and the termination coincident point coordinate based on the labeling operation. For example, as can be seen from fig. 2, a click operation of a user clicking on the start coincident point a and the end coincident point B may be received, and then based on the click position, the coordinates of the start coincident point a and the coordinates of the end coincident point B of the boundary AB of the road surface 21 in the target image may be determined. Of course, the coordinates of the initial coincidence point a and the final coincidence point B of the boundary AB of the road surface 21 in the target image may also be obtained directly by receiving the coordinates of the initial coincidence point a and the final coincidence point B input by the user.
Step 102, determining whether the initial coincident point and the termination coincident point of the shared boundary to be labeled are on the boundary of the second object or not based on the initial coincident point coordinate, the termination coincident point coordinate and the coordinate data of the boundary of the second object, if so, executing step 103, wherein the second object is the object of which the boundary labeling is already finished in the target image.
The second object may be one or more objects of the target image, except the first object, for which the boundary labeling has been completed. Optionally, the second object is one or more objects with completed boundary labeling adjacent to the first object in the target image. It can be understood that, when the second object is an object adjacent to the first object, the step 102 may be enabled to more quickly determine whether the start coincidence point and the end coincidence point of the shared boundary to be annotated are on the boundary of the second object, so as to further increase the annotation speed of the image, thereby improving the annotation efficiency of the image.
As a detailed example, step 102 may include: reading coordinate data of a boundary of a second object stored in advance; judging whether the coordinate data of the boundary of the second object contains the initial coincident point coordinate and the ending coincident point coordinate of the shared boundary to be marked; if so, determining that the initial coincident point and the termination coincident point of the shared boundary to be marked are on the boundary of the second object, otherwise, determining that the initial coincident point and the termination coincident point of the shared boundary to be marked are not on the boundary of the second object.
It can be understood that if the starting coincidence point and the ending coincidence point of the to-be-labeled shared boundary are on the boundary of the second object, it is indicated that the to-be-labeled shared boundary is the shared boundary of the first object and the second object.
As shown in fig. 2, if the first object is a road surface 21, the starting coincident point and the ending coincident point of the shared boundary to be marked may respectively include: { A, B }, { C, D }, and { E, F }, and the second object includes the first, second, and third automobiles 22, 23, 25, then { A, B } is on the boundary of the first automobile 22, { C, D } is on the boundary of the second automobile 23, and { E, F } is on the boundary of the third automobile 25, based on the coordinate data of { A, B }, { C, D }, and { E, F }, and the coordinate data of the boundaries of the first, second, and third automobiles 22, 23, 25; further, it can be determined that the shared boundaries AB, CD, and EF to be labeled are the shared boundaries of the road surface 21 and the first, second, and third automobiles 22, 23, and 25 in sequence.
Step 103, marking the sharing boundary to be marked based on the boundary of the second object between the starting coincident point and the ending coincident point.
Specifically, step 103 may include:
determining coordinate data of a target boundary, the target boundary being a boundary of the second object between the starting coincident point and the ending coincident point;
and marking the shared boundary to be marked based on the coordinate data of the target boundary, namely drawing the shared boundary to be marked by using the coordinate data of the target boundary to finish marking the shared boundary to be marked.
For example, as shown in fig. 2, if the first object is a road surface 21, the starting coincident point to be marked as a and ending coincident point as B, and a and B are determined to be on the boundary of the first car 22 (the second object), that is, the boundary AB is determined to be the shared boundary between the road surface 21 and the first car 22, so that the coordinates of the marked boundary AB of the first car 22 can be copied to draw the boundary AB of the road surface 21.
Further, the boundary of the second object is usually a closed polygon, which makes the target boundary two.
In view of this, in one embodiment, the determining the coordinate data of the target boundary may include:
determining a shorter one of two boundaries of the second object between the starting coincident point and the ending coincident point as the target boundary.
For example, as shown in fig. 2, the boundary of the first car 22 between a and B indicated by a solid line is determined as the target boundary, instead of the boundary of the first car 22 between a and B indicated by a broken line as the target boundary.
In another embodiment, the determining the coordinate data of the target boundary may include:
selecting coordinate data for determining a target boundary from two boundaries of the second object between the start coincident point and the end coincident point based on a selection operation of a user.
For example, as shown in fig. 2, instead of determining the boundary of the first car 22 between a and B as the target boundary, the boundary of the first car 22 between a and B as the solid line may be determined as the target boundary based on the user's selection.
It can be understood that after the boundary of the second object is marked before, the coordinate data of the boundary of the second object is stored, so that when the shared boundary of the first object and the second object is marked, after the initial coincidence point and the final coincidence point of the shared boundary (the shared boundary to be marked) of the first object and the second object are determined, the coordinate data of the section of the boundary of the second object can be automatically copied to mark the section of the boundary of the first object, which can simplify the marking operation of the shared boundary of the first object and the second object and improve the image marking efficiency.
In summary, according to the image annotation method provided in the embodiment of the present application, when the initial coincidence point and the termination coincidence point of the to-be-annotated shared boundary of the first object are on the boundary of the second object whose boundary annotation has been completed, after the initial coincidence point coordinate and the termination coincidence point coordinate of the to-be-annotated shared boundary are obtained, the annotation of the to-be-annotated shared boundary can be completed automatically according to the coordinate data of the boundary of the second object which has been annotated, so that the annotation operation of the shared boundary between adjacent objects is simplified, and the image annotation efficiency is improved.
In addition, when the boundary shared by the first object and the second object is marked, the boundary is drawn by copying the coordinate data of the boundary on the second object, so that the image marking method provided by the embodiment of the application can also make the coordinate data of the shared boundary of the adjacent objects drawn for multiple times consistent, make the shared boundary drawn for each time completely overlapped, and solve the problem that the shared boundary drawn for the adjacent objects manually for multiple times is not completely overlapped.
Optionally, as shown in fig. 3, before step 101, an image annotation method provided in an embodiment of the present application may further include:
and 104, receiving the labeling operation of the user on the boundary of the second object.
And 105, determining and storing the coordinate data of the boundary of the second object based on the labeling operation.
It can be understood that after the boundary of the second object is labeled, the coordinate data of the boundary of the second object is stored, and preparation can be made for automatically labeling the shared boundary of the first object and the second object in the next step, so that the labeling operation of the whole target image is simplified, and the labeling efficiency of the target image is improved.
Optionally, as shown in fig. 4, in the image annotation method provided in this embodiment of the present application, if it is determined in step 102 that the starting coincidence point and the ending coincidence point of the shared boundary to be annotated are not on the boundary of the second object, the method may further include:
and 106, reminding the user to re-label the initial coincident point and the termination coincident point of the to-be-labeled sharing boundary based on a preset reminding mode, and returning to execute the step 101.
The preset reminding mode includes but is not limited to at least one of modes of outputting prompt information, giving out prompt sound, highlighting, outputting warning information and the like.
It can be understood that if the starting coincident point and the ending coincident point of the shared boundary to be labeled are not located on the boundary of the second object, it is indicated that at least one of the coordinates of the starting coincident point and the coordinates of the ending coincident point of the shared boundary to be labeled, which are labeled (or input) by the user, is incorrect, the user needs to be reminded to label (or input) again, the automatic labeling of the shared boundary to be labeled is completed, and the labeling efficiency is improved.
Optionally, in the image annotation method provided in this embodiment of the present application, if it is determined in step 102 that the starting coincidence point and the ending coincidence point of the to-be-annotated shared boundary are not on the boundary of the second object, the method may further include:
and receiving the marking operation of the user on the shared boundary to be marked.
And based on the marking operation, marking the shared boundary to be marked and storing the coordinate data of the shared boundary to be marked.
It can be understood that, if the initial coincidence point and the termination coincidence point of the shared boundary to be labeled are not on the boundary of the second object, and the initial coincidence point and the termination coincidence point which are input again by the user for multiple times are not on the boundary of the second object, which indicates that the shared boundary to be labeled is not the shared boundary of the first object and the second object, the shared boundary to be labeled may be labeled according to a labeling method in the related art, and the coordinate data of the shared boundary to be labeled is stored after the labeling is completed, so as to be used as a basis for labeling the shared boundary of the next first object.
The image annotation method provided in the embodiments of the present application is described above, and an image annotation apparatus corresponding to the image annotation method is described below with reference to the accompanying drawings.
As shown in fig. 5, in an image annotation apparatus 500 provided in the embodiment of the present application, in a software implementation, the apparatus 500 may include: a coordinate obtaining module 501, a judging module 402 and a first labeling module 503.
A coordinate obtaining module 501, configured to obtain a starting coincidence point coordinate and an ending coincidence point coordinate of a to-be-labeled shared boundary of a first object in a target image.
The target image refers to the image that is desired or being annotated. A plurality of objects may be included in the target image. The first object may be any object in the target image. The shared boundary to be annotated may be a boundary between the first object and any second object in the target image.
Alternatively, in practical applications, the coordinate obtaining module 501 may obtain the coordinates of the starting coincident point and the coordinates of the ending coincident point of a plurality of shared boundaries to be labeled of one first object at a time. Alternatively, the coordinate obtaining module 501 may obtain the coordinates of the starting coincidence point and the ending coincidence point of the multiple to-be-labeled shared boundaries of multiple first objects at a time. That is, the number of the first objects is multiple, and/or the number of the shared boundaries to be labeled is multiple, so that labeling of multiple shared boundaries is completed through one labeling process, and the labeling efficiency of the image is further improved.
As an example, the coordinate acquisition module 501 may be specifically configured to:
receiving the labeling operation of a user on an initial coincident point and a termination coincident point of a shared boundary to be labeled of a first object in a target image;
and acquiring the initial coincident point coordinate and the termination coincident point coordinate based on the labeling operation.
A determining module 502, configured to determine whether the initial coincidence point and the ending coincidence point of the shared boundary to be labeled are on the boundary of the second object based on the initial coincidence point coordinate, the ending coincidence point coordinate, and coordinate data of the boundary of the second object, where the second object is an object in the target image for which the boundary labeling has been completed.
The second object may be one or more objects of the target image, except the first object, for which the boundary labeling has been completed. Optionally, the second object is one or more objects with completed boundary labeling adjacent to the first object in the target image. It can be understood that, when the second object is an object adjacent to the first object, the determining module 502 can determine whether the initial overlapping point and the ending overlapping point of the shared boundary to be annotated are on the boundary of the second object more quickly, so as to further increase the annotation speed of the image, thereby improving the annotation efficiency of the image.
As a detailed example, the determining module 502 may be configured to: reading coordinate data of a boundary of a second object stored in advance; judging whether the coordinate data of the boundary of the second object contains the initial coincident point coordinate and the ending coincident point coordinate of the shared boundary to be marked; if so, determining that the initial coincident point and the termination coincident point of the shared boundary to be marked are on the boundary of the second object, otherwise, determining that the initial coincident point and the termination coincident point of the shared boundary to be marked are not on the boundary of the second object.
It can be understood that if the starting coincidence point and the ending coincidence point of the to-be-labeled shared boundary are on the boundary of the second object, it is indicated that the to-be-labeled shared boundary is the shared boundary of the first object and the second object.
A first labeling module 503, configured to label the to-be-labeled shared boundary based on the boundary of the second object between the starting coincidence point and the ending coincidence point if the starting coincidence point and the ending coincidence point of the to-be-labeled shared boundary are on the boundary of the second object.
As an example, the first labeling module 503 may be specifically configured to:
determining coordinate data of a target boundary, the target boundary being a boundary of the second object between the starting coincident point and the ending coincident point;
and marking the to-be-marked shared boundary based on the coordinate data of the target boundary.
Further, the boundary of the second object is usually a closed polygon, which makes the target boundary two.
In view of this, in one embodiment, the first labeling module 503 is specifically configured to:
determining a shorter one of two boundaries of the second object between the starting coincident point and the ending coincident point as the target boundary.
In another embodiment, the first labeling module 503 is specifically configured to:
selecting coordinate data for determining a target boundary from two boundaries of the second object between the start coincident point and the end coincident point based on a selection operation of a user.
According to the image annotation device 500 provided by the embodiment of the application, when the initial coincident point and the termination coincident point of the to-be-annotated shared boundary of the first object are on the boundary of the second object with the boundary annotation completed, after the initial coincident point coordinate and the termination coincident point coordinate of the to-be-annotated shared boundary are obtained, the annotation of the to-be-annotated shared boundary can be completed automatically according to the coordinate data of the boundary of the second object with the annotation, so that the annotation operation of the shared boundary between adjacent objects is simplified, and the image annotation efficiency is improved.
In addition, when the boundary shared by the first object and the second object is marked, the boundary is drawn by copying the coordinate data of the boundary on the second object, so that the image marking device 500 provided by the embodiment of the application can also make the coordinate data of the shared boundary of the adjacent objects drawn for multiple times consistent, make the shared boundary drawn for each time completely coincide, and solve the problem that the shared boundary drawn for the adjacent objects manually for multiple times does not completely coincide.
Optionally, as shown in fig. 6, the image annotation apparatus 500 provided in the embodiment of the present application may further include:
the first receiving module 504 is configured to receive a labeling operation performed by a user on a boundary of the second object before the coordinate obtaining module 501 obtains a starting coincident point coordinate and a terminating coincident point coordinate of a to-be-labeled shared boundary of the first object in the target image.
And a first determining module 505, configured to determine and store coordinate data of the boundary of the second object based on the labeling operation.
It can be understood that after the boundary of the second object is labeled, the coordinate data of the boundary of the second object is stored, and preparation can be made for automatically labeling the shared boundary of the first object and the second object in the next step, so that the labeling operation of the whole target image is simplified, and the labeling efficiency of the target image is improved.
Optionally, as shown in fig. 7, the image annotation apparatus 500 provided in the embodiment of the present application may further include:
a reminding module 506, configured to remind a user to re-label the initial coincidence point and the termination coincidence point of the to-be-labeled shared boundary based on a preset reminding manner and re-trigger the coordinate obtaining module 501 when the initial coincidence point and the termination coincidence point of the to-be-labeled shared boundary are not on the boundary of the second object.
It can be understood that if the starting coincident point and the ending coincident point of the shared boundary to be labeled are not located on the boundary of the second object, it is indicated that at least one of the coordinates of the starting coincident point and the coordinates of the ending coincident point of the shared boundary to be labeled, which are labeled (or input) by the user, is incorrect, the user needs to be reminded to label (or input) again, the automatic labeling of the shared boundary to be labeled is completed, and the labeling efficiency is improved.
Optionally, the image annotation apparatus 500 provided in this embodiment of the present application may further include:
and the second receiving module is used for receiving the marking operation of the user on the sharing boundary to be marked under the condition that the starting coincident point and the ending coincident point of the sharing boundary to be marked are not on the boundary of the second object.
And the second labeling module is used for labeling the shared boundary to be labeled and storing the coordinate data of the shared boundary to be labeled based on the labeling operation.
It can be understood that, if the shared boundary to be labeled is not the shared boundary of the first object and the second object, the shared boundary to be labeled may be labeled according to a labeling method in the related art, and the coordinate data of the shared boundary to be labeled is stored after the labeling is completed, so as to be used as a basis for labeling the shared boundary of the next first object.
It should be noted that, since the device embodiments are executed in a manner similar to the method embodiments, the device embodiments are described in a simplified manner, and reference is made to the method embodiments for relevant points.
Fig. 8 shows a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 8, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (peripheral component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 8, but that does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form the image annotation device on the logic level. And the processor is used for executing the program stored in the memory and is specifically used for executing the image annotation method provided by the embodiment of the application.
The method executed by the image annotation device disclosed in the embodiment of fig. 8 of the present application can be applied to a processor, or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The embodiment of the present application also provides a computer-readable storage medium, which stores one or more programs, where the one or more programs include instructions, which when executed by an electronic device including a plurality of application programs, enable the electronic device to perform the method performed by the image annotation device in the embodiment shown in fig. 8, and are specifically configured to perform the image annotation method provided in the embodiment of the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that all the embodiments in the present application are described in a related manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. An image annotation method, characterized in that the method comprises:
acquiring an initial coincident point coordinate and an ending coincident point coordinate of a shared boundary to be marked of a first object in a target image;
determining whether the initial coincident point and the termination coincident point of the shared boundary to be labeled are on the boundary of a second object based on the initial coincident point coordinate, the termination coincident point coordinate and the coordinate data of the boundary of the second object, wherein the second object is an object of which the boundary labeling is already finished in the target image;
if the initial coincident point and the termination coincident point of the shared boundary to be labeled are on the boundary of the second object, labeling the shared boundary to be labeled based on the boundary of the second object between the initial coincident point and the termination coincident point.
2. The method according to claim 1, wherein the obtaining of the coordinates of the starting coincident point and the coordinates of the ending coincident point of the shared boundary to be labeled of the first object in the target image comprises:
receiving the labeling operation of a user on an initial coincident point and a termination coincident point of a shared boundary to be labeled of a first object in a target image;
and acquiring the initial coincident point coordinate and the termination coincident point coordinate based on the labeling operation.
3. The method according to claim 1, wherein the labeling the shared boundary to be labeled based on the boundary of the second object between the starting coincident point and the ending coincident point comprises:
determining coordinate data of a target boundary, the target boundary being a boundary of the second object between the starting coincident point and the ending coincident point;
and marking the to-be-marked shared boundary based on the coordinate data of the target boundary.
4. The method of claim 3, wherein determining the coordinate data of the target boundary comprises:
determining a shorter one of two boundaries of the second object between the starting coincident point and the ending coincident point as the target boundary.
5. The method according to claim 1, wherein before the determining whether the starting coincidence point and the ending coincidence point of the shared boundary to be labeled are on the boundary of the second object, the method further comprises:
receiving labeling operation of a user on the boundary of the second object;
and determining and saving the coordinate data of the boundary of the second object based on the labeling operation.
6. The method of claim 1, further comprising:
if the initial coincident point and the ending coincident point of the shared boundary to be marked are not on the boundary of the second object, reminding a user to mark the initial coincident point and the ending coincident point of the shared boundary to be marked again based on a preset reminding mode, and returning to the step of acquiring the initial coincident point coordinate and the ending coincident point coordinate of the shared boundary to be marked of the first object in the target image.
7. The method according to any one of claims 1 to 6,
the number of the first objects is multiple, and/or the number of the shared boundaries to be labeled is multiple.
8. An image annotation apparatus, characterized in that the apparatus comprises:
the coordinate acquisition module is used for acquiring an initial coincident point coordinate and a termination coincident point coordinate of a shared boundary to be marked of the first object in the target image;
a judging module, configured to determine whether the initial coincidence point and the ending coincidence point of the shared boundary to be labeled are on the boundary of a second object based on the initial coincidence point coordinate, the ending coincidence point coordinate, and coordinate data of the boundary of the second object, where the second object is an object in the target image for which the boundary labeling has been completed;
and the first labeling module is used for labeling the shared boundary to be labeled based on the boundary of the second object between the initial coincident point and the termination coincident point if the initial coincident point and the termination coincident point of the shared boundary to be labeled are on the boundary of the second object.
9. The apparatus of claim 8,
the coordinate acquisition module is specifically configured to:
receiving the labeling operation of a user on an initial coincident point and a termination coincident point of a shared boundary to be labeled of a first object in a target image;
and acquiring the initial coincident point coordinate and the termination coincident point coordinate based on the labeling operation.
10. The apparatus of claim 8,
the first labeling module is specifically configured to:
determining coordinate data of a target boundary, the target boundary being a boundary of the second object between the starting coincident point and the ending coincident point;
and marking the to-be-marked shared boundary based on the coordinate data of the target boundary.
CN201911035643.9A 2019-10-29 2019-10-29 Image annotation method and device Pending CN110751663A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911035643.9A CN110751663A (en) 2019-10-29 2019-10-29 Image annotation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911035643.9A CN110751663A (en) 2019-10-29 2019-10-29 Image annotation method and device

Publications (1)

Publication Number Publication Date
CN110751663A true CN110751663A (en) 2020-02-04

Family

ID=69280688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911035643.9A Pending CN110751663A (en) 2019-10-29 2019-10-29 Image annotation method and device

Country Status (1)

Country Link
CN (1) CN110751663A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114821107A (en) * 2022-05-09 2022-07-29 北京深度搜索科技有限公司 Contour determination method, contour labeling method and device shared by adjacent objects in a picture
CN115359251A (en) * 2022-07-05 2022-11-18 武汉光庭信息技术股份有限公司 Method and system for calculating common edges of multiple contours in visual sensor data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103364380A (en) * 2013-06-04 2013-10-23 清华大学 Method for marking and identifying target objects
CN107273937A (en) * 2017-07-10 2017-10-20 北京工业大学 Target any angle labeling method in a kind of video and image
EP3486863A1 (en) * 2016-07-30 2019-05-22 Huawei Technologies Co., Ltd. Image recognition method and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103364380A (en) * 2013-06-04 2013-10-23 清华大学 Method for marking and identifying target objects
EP3486863A1 (en) * 2016-07-30 2019-05-22 Huawei Technologies Co., Ltd. Image recognition method and terminal
CN107273937A (en) * 2017-07-10 2017-10-20 北京工业大学 Target any angle labeling method in a kind of video and image

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
FISHER YU等: "BDD100K:A Diverse Driving Video Database with Scalable Annotation Tooling", 《HTTPS://UDPARTY.COM/PHP/UPLOAD/20180627/153006477668DDB6563DF254A8.PDF》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114821107A (en) * 2022-05-09 2022-07-29 北京深度搜索科技有限公司 Contour determination method, contour labeling method and device shared by adjacent objects in a picture
CN114821107B (en) * 2022-05-09 2025-09-12 北京深度搜索科技有限公司 Method for determining shared contours of adjacent objects in a picture, method for marking contours, and device for marking contours
CN115359251A (en) * 2022-07-05 2022-11-18 武汉光庭信息技术股份有限公司 Method and system for calculating common edges of multiple contours in visual sensor data

Similar Documents

Publication Publication Date Title
KR101899530B1 (en) Techniques for distributed optical character recognition and distributed machine language translation
WO2019062742A1 (en) Method and apparatus for improving vehicle loss assessment image identification result, and server
CN112560530B (en) Two-dimensional code processing method, device, medium and electronic device
CN108491209B (en) Method and device for extracting public codes in html page
CN106528791A (en) Method and device for pushing notification messages
CN112214782A (en) Electronic document signature method, device and equipment
CN110751663A (en) Image annotation method and device
CN112699043A (en) Method and device for generating test case
CN113868350A (en) A parking lot map processing method, vehicle and equipment
CN113256989B (en) Driving warning method and device, vehicle-mounted terminal and storage medium
CN110097108B (en) Method, device, equipment and storage medium for identifying non-motor vehicle
CN111339944A (en) Decoration style identification method and device and electronic equipment
CN106548647A (en) Record parking information, the method for parking spot navigation, apparatus and system
CN114492492A (en) Two-dimensional code scanning method and device, storage medium and electronic equipment
CN108280135B (en) Method and device for realizing visualization of data structure and electronic equipment
CN111213118B (en) Location identification method and terminal
CN109063085B (en) Thumbnail generating method and device
CN111291649A (en) Image recognition method and device and electronic equipment
CN108733796B (en) Searching method, device and electronic device for vehicle accessories
US9840072B2 (en) Method for arranging joints to 3D model, arranging apparatus for the method, and application program for using the same
CN104298418A (en) Displaying method and device for application program and terminal
CN114020636B (en) An application APP testing method, device, electronic device and storage medium
CN109934232A (en) Vehicle identification method, computer installation and computer readable storage medium
CN114332928A (en) Image segmentation method and device, electronic equipment and storage medium
CN113157566A (en) Screen control method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200204

RJ01 Rejection of invention patent application after publication