Vehicle labeling method, device, computer equipment and readable storage medium

By generating three-dimensional annotation frames in the vehicle display area and taillight display area, the problem of the inability to reflect the vehicle's three-dimensional information in the existing technology is solved, detailed identification and analysis of the vehicle environment is achieved, and the accuracy and detail of the identification are improved.

CN111767862BActive Publication Date: 2024-09-17GUANGZHOU WERIDE TECH LTD CO
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010615093.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-30
Publication Date
2024-09-17
Estimated Expiration
2040-06-30

AI Technical Summary

Technical Problem

Vehicle annotation in the existing technology cannot reflect the three-dimensional information of the vehicle. Only two-dimensional frame selection annotation is used, which cannot meet the detailed identification needs of the vehicle environment and road driving status.

Method used

By determining the vehicle display area and the taillight display area, it is determined whether to display the two outer surfaces of the vehicle, and the separation line between adjacent outer surfaces is determined according to the taillight display area, thereby generating a three-dimensional labeling frame and realizing three-dimensional labeling of the vehicle.

Benefits of technology

It realizes three-dimensional annotation of vehicles, facilitates users to observe real-time changes in the vehicle environment, supports further image recognition analysis, and improves the accuracy and detail of vehicle status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111767862B
    Figure CN111767862B
Patent Text Reader

Abstract

The present invention proposes a vehicle labeling method, device, computer equipment and computer-readable storage medium, the method comprising: determining a vehicle display area and a taillight display area of ​​a vehicle taillight of at least one vehicle, and labeling each of the vehicle display area and taillight display area with a two-dimensional labeling frame; determining whether the vehicle display area displays at least two outer surfaces of the vehicle; if so, determining a separation line between adjacent outer surfaces according to the taillight display area; generating a three-dimensional labeling frame in the vehicle display area according to the separation line and the two-dimensional labeling frame. The vehicle labeling method provided by the present invention can realize three-dimensional labeling of vehicles.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of graphic recognition, and in particular to a vehicle labeling method, device, computer equipment and computer-readable storage medium. Background Art

[0002] In the prior art, it is often necessary to analyze the environment in which the vehicle is located, the road driving status, etc., and usually a camera installed on the vehicle is used to collect the images around the vehicle in real time for further image recognition to obtain information such as the vehicle's environment and road driving status. Some image recognition requires the annotation of moving or stationary vehicles to facilitate user observation or facilitate further fine image recognition. Existing vehicle annotations are all two-dimensional box selection annotations, which cannot reflect the three-dimensional information of the identified vehicle. Summary of the invention

[0003] The main purpose of the present invention is to provide a vehicle labeling method, device, computer equipment and computer-readable storage medium, aiming to solve the technical problem that the labeling in the prior art cannot provide three-dimensional information.

[0004] To achieve the above object, the present invention provides a vehicle labeling method, the method comprising the steps of:

[0005] Determine a vehicle display area of ​​at least one vehicle and a taillight display area of ​​a vehicle taillight, and mark each of the vehicle display area and taillight display area with a two-dimensional marking frame;

[0006] determining whether the vehicle display area displays at least two outer surfaces of the vehicle;

[0007] If yes, determining a separation line between adjacent outer surfaces according to the taillight display area;

[0008] A three-dimensional annotation frame is generated in the vehicle display area according to the separation line and the two-dimensional annotation frame.

[0009] Preferably, the step of determining a separation line between adjacent outer surfaces according to the taillight display area comprises:

[0010] Determining whether the number of corresponding taillight display areas in the vehicle display area is greater than 1;

[0011] If the number of corresponding taillight display areas in the vehicle display area is one, determining a separation line according to the position of the taillight display area;

[0012] If the number of corresponding taillight display areas in the vehicle display area is greater than 1, the distance between each taillight display area and the midpoint of the vehicle display area is calculated, and the dividing line is determined according to the position of the taillight display area corresponding to the minimum distance.

[0013] Preferably, the step of determining the dividing line according to the position of the taillight display area comprises:

[0014] Obtaining a ratio of a longitudinal side to a transverse side of a two-dimensional annotation frame corresponding to the taillight display area, and determining whether the ratio is greater than 1;

[0015] If the ratio is less than or equal to 1, determining a separation line according to the midpoint of the taillight display area;

[0016] If the ratio is greater than 1, a separation line is determined along any longitudinal edge of the taillight display area.

[0017] Preferably, the step of determining a vehicle display area of ​​at least one vehicle and a taillight display area of ​​a vehicle taillight, and marking each of the vehicle display area and taillight display area with a two-dimensional marking frame comprises:

[0018] Real-time framing and identifying the framing picture to determine the area to be processed of the vehicle in the framing picture and the taillight display area in the area to be processed;

[0019] Determining whether the area to be processed displays a plurality of vehicles that obstruct each other;

[0020] If the area to be processed does not display multiple vehicles that block each other, the area to be processed is set as a vehicle display area corresponding to a single vehicle, and a two-dimensional annotation frame is marked on the vehicle display area and the taillight display area;

[0021] If the area to be processed displays a plurality of vehicles that block each other, the vehicle display area corresponding to each vehicle in the area to be processed is determined, and two-dimensional annotation frames are respectively marked on each of the vehicle display areas and the taillight display area.

[0022] Preferably, the step of determining whether the area to be processed is a plurality of vehicles that block each other comprises:

[0023] Determining whether the outer contour of the area to be processed matches a preset vehicle contour;

[0024] If the outer contour of the area to be processed matches the preset vehicle contour, it is determined that the area to be processed does not display a plurality of vehicles that obstruct each other;

[0025] If the outer contour of the area to be processed does not match the preset vehicle contour, it is determined that the area to be processed displays a plurality of vehicles that occlude each other.

[0026] Preferably, the step of determining whether the area to be processed is a plurality of vehicles that block each other comprises:

[0027] Determine the number of the taillight display areas in the area to be processed;

[0028] When the number of the taillight display areas in the area to be processed is 1, it is determined that the area to be processed does not display a plurality of vehicles that obstruct each other;

[0029] When the number of the taillight display areas in the area to be processed is 2, determining whether the two taillight display areas are symmetrically displayed taillight display areas;

[0030] If the two taillight display areas are symmetrically displayed taillight display areas, determining that the area to be processed does not display a plurality of vehicles that obstruct each other;

[0031] If the two taillight display areas are taillight display areas that are displayed asymmetrically, determining that the area to be processed displays a plurality of vehicles that obstruct each other;

[0032] When the number of the taillight display areas in the area to be processed is greater than 2, it is determined that the area to be processed displays a plurality of vehicles that obstruct each other.

[0033] Preferably, the step of determining the vehicle display area corresponding to each vehicle in the area to be processed and marking each vehicle display area with a two-dimensional marking frame includes:

[0034] The vehicle display area corresponding to each vehicle in the area to be processed is determined according to the color information of each color block in the vehicle display area, and a two-dimensional annotation frame is marked on each vehicle display area.

[0035] Preferably, the step of determining the vehicle display area corresponding to each vehicle in the area to be processed and marking each vehicle display area with a two-dimensional marking frame includes:

[0036] Acquire the taillight display areas that are symmetrically displayed in each of the taillight display areas, and calculate the vehicle display area of ​​the vehicle corresponding to the taillight display area according to a preset mapping table, the distance between the taillight display areas that are symmetrically displayed, and the height of the area to be processed;

[0037] The vehicle display area of ​​the blocked vehicle is determined according to the vehicle display area of ​​the vehicle corresponding to the symmetrically displayed taillight display area and the area to be processed, and a two-dimensional annotation frame is marked on each of the vehicle display areas.

[0038] To achieve the above object, the present invention further provides a marking device, comprising:

[0039] An identification module, used to determine a vehicle display area of ​​at least one vehicle and a taillight display area of ​​a vehicle taillight, and mark each of the vehicle display area and taillight display area with a two-dimensional marking frame;

[0040] A determination module, used to determine whether the vehicle display area displays at least two outer surfaces of the vehicle;

[0041] A labeling module is used to determine a dividing line between adjacent outer surfaces according to the taillight display area if the vehicle display area displays at least two outer surfaces of the vehicle; and to generate a three-dimensional labeling frame in the vehicle display area according to the dividing line and the two-dimensional labeling frame.

[0042] To achieve the above objectives, the present invention also provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the vehicle labeling method described above when executed by the processor.

[0043] To achieve the above object, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the vehicle labeling method described above are implemented.

[0044] The present invention proposes a vehicle labeling method, device, computer equipment and computer-readable storage medium. In the present invention, by judging whether the vehicle display area displays at least two outer surfaces of the vehicle, it is determined whether a three-dimensional labeling frame can be established for the vehicle display area; the dividing line between adjacent outer surfaces is determined by the position of the taillight display area, so that a three-dimensional labeling frame can be further generated in the vehicle display area according to the dividing line and the two-dimensional labeling frame; the staff can further perform further statistics, identification and analysis on the three-dimensional labeling frame and the display area corresponding to the three-dimensional labeling frame, and it can also facilitate users to observe real-time changes in the environment where the vehicle is located. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a flow chart of the first embodiment of the vehicle labeling method of the present invention;

[0046] Figure 2 Detailed flow chart of step S300 of the second embodiment of the vehicle labeling method of the present invention.

[0047] Figure 3 FIG. 1 is a detailed flow chart of step S320 of the third embodiment of the vehicle labeling method of the present invention.

[0048] Figure 4 Detailed flowchart of step S100 of the fourth embodiment of the vehicle labeling method of the present invention is shown in FIG.

[0049] Figure 5 It is a schematic diagram of the module structure of the computer device of the present invention;

[0050] Figure 6 It is a schematic diagram of the module structure of the marking device of the present invention. DETAILED DESCRIPTION

[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0052] The present invention provides a vehicle labeling method, which is applied to an outdoor unit of a computer device. Figure 1 , Figure 1 This is a flow chart of a first embodiment of a vehicle labeling method according to the present invention, wherein the method comprises the following steps:

[0053] Step S100, determining a vehicle display area of ​​at least one vehicle and a taillight display area of ​​a vehicle taillight, and marking each of the vehicle display area and taillight display area with a two-dimensional marking frame;

[0054] The vehicle environment can be captured in real time at preset intervals by a camera installed on the vehicle, or the vehicle environment can be recorded in real time by a camera installed on the vehicle, and each picture in the video can be used as a real-time view. The vehicle and the taillights in the captured picture can be identified by a trained image recognition model to determine the vehicle display area and the taillight display area of ​​at least one vehicle in the captured picture. The recognition model can also be trained using multiple pictures containing different vehicle graphics to obtain a trained image recognition model. Those skilled in the art can select different recognition models for training according to actual needs.

[0055] Step S200, determining whether the vehicle display area displays at least two outer surfaces of the vehicle;

[0056] If yes, execute: step S300;

[0057] If not, it means that the vehicle display area only displays one surface of the vehicle, and the two-dimensional annotation frame and the three-dimensional annotation frame are the same and no processing is performed.

[0058] Step S300, determining a dividing line between adjacent outer surfaces according to the taillight display area;

[0059] Only when the vehicle display area displays at least two outer surfaces of the vehicle can the dividing lines between different outer surfaces be determined according to the color, brightness, vehicle type, light position, wheel position, etc. of the vehicle display area.

[0060] Step S400: generating a three-dimensional annotation frame in the vehicle display area according to the separation line and the two-dimensional annotation frame.

[0061] The intersection points of the two ends of the dividing line and the two-dimensional annotation frame are determined respectively, and the intersection points are used as the vertex angles of the three-dimensional annotation frame, and the dividing line and the two-dimensional annotation frame are used as the sides of the three-dimensional annotation frame.

[0062] In the present invention, whether a three-dimensional annotation frame can be established for the vehicle display area is determined by judging whether the vehicle display area displays at least two outer surfaces of the vehicle; the dividing line between adjacent outer surfaces is determined by the position of the taillight display area, so that a three-dimensional annotation frame can be further generated in the vehicle display area according to the dividing line and the two-dimensional annotation frame; the staff can further perform statistical, identification and analysis on the three-dimensional annotation frame and the display area corresponding to the three-dimensional annotation frame, and it can also facilitate users to observe real-time changes in the environment where the vehicle is located.

[0063] Reference Figure 2 , Figure 2 This is a detailed flow chart of step S300 of the second embodiment of the vehicle labeling method of the present invention. Step S300 includes:

[0064] Step S310, determining whether the number of corresponding taillight display areas in the vehicle display area is greater than 1;

[0065] If the number of corresponding taillight display areas in the vehicle display area is 1, execute:

[0066] Step S320, determining a dividing line according to the position of the taillight display area;

[0067] When there is only one taillight in the vehicle display area, it proves that the camera only captures a part of the vehicle corresponding to the vehicle display area. Since the vehicle taillights are located on both sides of the vehicle, the dividing line between the rear side of the vehicle and the left side or the right side of the vehicle can be directly determined based on the position of the taillight display area.

[0068] If the number of corresponding taillight display areas in the vehicle display area is greater than 1, execute:

[0069] Step S330, calculating the distance between each taillight display area and the midpoint of the vehicle display area, and determining a separation line according to the position of the taillight display area corresponding to the minimum distance.

[0070] Due to the relative arrangement of the vehicle taillights, in the framed image taken by the camera, only one complete taillight and a partial structure of another taillight can be displayed in the vehicle display area, resulting in one taillight being located at the edge of the vehicle display area. The taillight located at the edge of the vehicle display area is itself located at the edge, that is, its position is outside the three-dimensional annotation box, and has no effect on the demarcation of the dividing line. Therefore, by calculating the distance between each taillight display area and the midpoint of the vehicle display area, the taillight display area relatively located in the middle of the vehicle display area can be distinguished, and different vehicle sides can be divided according to the taillight display area.

[0071] Reference Figure 3 , Figure 3This is a detailed flow chart of step S320 of the third embodiment of the vehicle labeling method of the present invention. Step S300 includes:

[0072] Step S321, obtaining a ratio of a longitudinal edge to a transverse edge of a two-dimensional annotation frame corresponding to the taillight display area, and determining whether the ratio is greater than 1;

[0073] The longitudinal edge is the edge in the vertical direction, that is, it corresponds to the direction in which the vehicle is subjected to gravity, and the transverse edge is the edge perpendicular to the longitudinal edge.

[0074] If the ratio is less than or equal to 1, executing step S322, determining a separation line according to the midpoint of the taillight display area;

[0075] If the ratio is greater than 1, step S323 is executed to determine a separation line along any longitudinal edge of the taillight display area.

[0076] When the ratio is less than or equal to 1, it means that the taillights corresponding to the taillight display area are set horizontally, and the taillights can extend very long in the horizontal direction, which will cause differences in the division of the dividing line. The dividing line is determined by the midpoint of the taillight display area to reduce the difference caused by the excessive length of the taillights in the horizontal direction; when the ratio is greater than 1, it means that the taillights corresponding to the taillight display area are set longitudinally, that is, they are extended along the direction of gravity, and the dividing line can be determined by any one side on the left and right sides of the vertically set taillights.

[0077] Reference Figure 4 , Figure 4 This is a detailed flow chart of step S100 of the fourth embodiment of the vehicle labeling method of the present invention. Step S100 includes:

[0078] Step S110, real-time framing and identifying the framing picture, determining the area to be processed of the vehicle in the framing picture and the taillight display area in the area to be processed;

[0079] The area to be processed may specifically be a vehicle display area corresponding to one vehicle, or may be a plurality of vehicle display areas corresponding to a plurality of vehicles that block each other.

[0080] Step S120, determining whether the area to be processed displays a plurality of vehicles that obstruct each other;

[0081] Since different vehicles have different colors, the average block method can be used to compare whether the average color value of each block is greater than a preset threshold to determine whether multiple vehicles that obstruct each other are displayed. The number of vehicle tires can also be identified to determine whether multiple vehicles that obstruct each other are displayed. The outer contour of the area to be processed can also be compared with the preset contour to determine whether multiple vehicles that obstruct each other are displayed.

[0082] If the area to be processed does not display multiple vehicles that block each other, execute:

[0083] Step S130, setting the area to be processed as a vehicle display area corresponding to a single vehicle, and marking the vehicle display area and the taillight display area with a two-dimensional marking frame;

[0084] If the area to be processed displays multiple vehicles that block each other, execute:

[0085] Step S140, determining the vehicle display area corresponding to each vehicle in the area to be processed, and marking each vehicle display area and the taillight display area with a two-dimensional marking frame.

[0086] When the area to be processed is a vehicle display area corresponding to multiple vehicles, it is necessary to first determine the vehicle display area corresponding to each vehicle in the area to be processed, and then mark each vehicle display area and the taillight display area with a two-dimensional marking frame, so as to further generate a three-dimensional marking frame based on each two-dimensional marking frame.

[0087] In another embodiment, the step S140 includes:

[0088] Step S141, determining the vehicle display area corresponding to each vehicle in the area to be processed according to the color information of each color block in the vehicle display area, and marking each vehicle display area with a two-dimensional marking frame.

[0089] Specifically, the vehicle display area is first divided into a plurality of color blocks of the same size, and the vehicle display areas corresponding to different vehicles are determined according to the color tolerance of each color block, while the vehicle display area corresponding to a single vehicle does not need to be further identified, thereby improving the vehicle labeling rate.

[0090] In another embodiment, the step S140 includes:

[0091] Step S142, obtaining the taillight display areas that are symmetrically displayed in each of the taillight display areas, and calculating the vehicle display area of ​​the vehicle corresponding to the taillight display area according to a preset mapping table, the distance between the taillight display areas that are symmetrically displayed, and the height of the area to be processed;

[0092] The preset mapping table stores the vehicle length and vehicle width corresponding to vehicles of different heights. When there are symmetrically displayed taillight display areas in each of the taillight display areas, the width of the vehicle displayed on the vehicle display area can be determined according to the distance between the symmetrically displayed taillight display areas, and the height of the vehicle displayed on the vehicle display area can be determined according to the height of the area to be processed, so that the length corresponding to the ratio of the displayed width and the displayed height can be obtained according to the preset mapping table; and then the corresponding display length of the vehicle on the vehicle display area can be converted according to the preset coefficient. The preset coefficient is calculated by the user in advance according to the camera lens distortion coefficient, the position of the camera on the vehicle, and the camera perspective coefficient.

[0093] Step S143, determining the vehicle display area of ​​the blocked vehicle according to the vehicle display area of ​​the vehicle corresponding to the symmetrically displayed taillight display area and the area to be processed, and marking each of the vehicle display areas with a two-dimensional marking frame.

[0094] The vehicle with the symmetrically displayed taillight display area blocks other vehicles. When the vehicle display area corresponding to the symmetrically displayed taillight display area is determined, the other parts of the area to be processed are the vehicle display areas of the remaining taillight display areas.

[0095] By judging whether the area to be processed displays a plurality of vehicles that occlude each other, the situations of a single vehicle and the situations of occlusion of multiple vehicles are processed respectively.

[0096] In one embodiment, the step S120 includes:

[0097] Step S121, determining whether the outer contour of the area to be processed matches a preset vehicle contour;

[0098] If the outer contour of the area to be processed matches the preset vehicle contour, it is determined that the area to be processed does not display a plurality of vehicles that obstruct each other;

[0099] If the outer contour of the area to be processed does not match the preset vehicle contour, it is determined that the area to be processed displays a plurality of vehicles that occlude each other.

[0100] Those skilled in the art may pre-set the outer contours of multiple individual vehicles at different angles as preset vehicle contours, and quickly determine whether the area to be processed displays multiple vehicles that obstruct each other by matching the outer contour of the area to be processed with the preset vehicle contour.

[0101] In another embodiment, the step S120 includes:

[0102] Step S122, determining the number of the taillight display areas in the area to be processed;

[0103] When the number of the taillight display areas in the area to be processed is 1, it is determined that the area to be processed does not display a plurality of vehicles that obstruct each other;

[0104] When the number of the taillight display areas in the area to be processed is 2, step S123 is executed to determine whether the two taillight display areas are symmetrically displayed taillight display areas;

[0105] Specifically, you can first convert the sizes of the two taillight display areas to be consistent, and then perform a mirror comparison.

[0106] If the two taillight display areas are symmetrically displayed taillight display areas, determining that the area to be processed does not display a plurality of vehicles that obstruct each other;

[0107] If the two taillight display areas are taillight display areas that are displayed asymmetrically, determining that the area to be processed displays a plurality of vehicles that obstruct each other;

[0108] When the number of the taillight display areas in the area to be processed is greater than 2, it is determined that the area to be processed displays a plurality of vehicles that obstruct each other.

[0109] When the number of taillight display areas is 1, it means that the area to be processed contains only one taillight. Even if there are vehicles that block each other, the exposed part of the blocked vehicle is too small, and it is not meaningful to perform three-dimensional annotation. When the number of taillight display areas is 2, it means that the area to be processed can contain two taillights of one vehicle, or one taillight of each of two vehicles. By judging whether to remove the taillights that are displayed symmetrically, the two situations can be distinguished. This embodiment uses the number of taillight display areas to distinguish whether the area to be processed displays multiple vehicles that block each other.

[0110] Reference Figure 6 The present invention also provides a marking device, comprising:

[0111] An identification module 1, used to determine a vehicle display area and a taillight display area of ​​at least one vehicle, and mark each of the vehicle display area and taillight display area with a two-dimensional marking frame;

[0112] A determination module 2, used to determine whether the vehicle display area displays at least two outer surfaces of the vehicle;

[0113] The labeling module 3 is used to determine the dividing line between adjacent outer surfaces according to the taillight display area if the vehicle display area displays at least two outer surfaces of the vehicle; and to generate a three-dimensional labeling frame in the vehicle display area according to the dividing line and the two-dimensional labeling frame.

[0114] Since the present marking device adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here. Each module in the marking device has one or more functional units to implement the steps of the above method embodiments.

[0115] Reference Figure 5 In terms of hardware structure, the computer device includes components such as a communication module 10, a memory 20, and a processor 30. The processor 30 is connected to the memory 20 and the communication module 10 respectively. The memory 20 stores a computer program, which is executed by the processor 30 at the same time. When the computer program is executed, the steps of the above method embodiment are implemented.

[0116] The communication module 10 can be connected to an external communication device through a network. The communication module 10 can receive requests from an external communication device, and can also send requests, instructions and information to the external communication device, which can be other intelligent terminals, infrared remote controllers or Bluetooth remote controllers, such as mobile phones, etc.

[0117] The memory 20 can be used to store software programs and various data. The memory 20 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function (such as an ambient temperature detection program, a compressor control program), etc.; the data storage area can include a database, and the data storage area can store data or information created according to the use of the system, etc. In addition, the memory 20 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0118] The processor 30 is a control center that uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 20, and calling data stored in the memory 20, it performs various functions of the computer device and processes data, thereby monitoring the computer device as a whole. The processor 30 may include one or more processing units; optionally, the processor 30 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 30.

[0119] although Figure 5 Although not shown, the computer device may further include a circuit control module, which is used to connect to a power source to ensure the normal operation of other components. Figure 5The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0120] The present invention also provides a computer-readable storage medium on which a computer program is stored. The computer-readable storage medium may be Figure 5 The memory 20 in the computer device may also be at least one of a ROM (Read-Only Memory) / RAM (Random Access Memory), a magnetic disk, and an optical disk. The computer-readable storage medium includes a number of instructions for enabling a terminal device with a processor (which may be a television, a car, a mobile phone, a computer, a server, a terminal, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0121] In the present invention, the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0122] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0123] Although the embodiments of the present invention have been shown and described above, the scope of protection of the present invention is not limited thereto. It is understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art can change, modify and replace the above embodiments within the scope of the present invention, and these changes, modifications and replacements should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.

Claims

1. A vehicle labeling method, It is characterized in that The method comprises: Determine a vehicle display area of ​​at least one vehicle and a taillight display area of ​​a vehicle taillight, and mark each of the vehicle display area and taillight display area with a two-dimensional marking frame; determining whether the vehicle display area displays at least two outer surfaces of the vehicle; If yes, determining a separation line between adjacent outer surfaces according to the taillight display area; Generating a three-dimensional annotation frame in the vehicle display area according to the separation line and the two-dimensional annotation frame; The step of determining a separation line between adjacent outer surfaces according to the taillight display area comprises: Determining whether the number of corresponding taillight display areas in the vehicle display area is greater than 1; If the number of corresponding taillight display areas in the vehicle display area is one, determining a separation line according to the position of the taillight display area; If the number of corresponding taillight display areas in the vehicle display area is greater than 1, then the distance between each taillight display area and the midpoint of the vehicle display area is calculated, and the separation line is determined according to the position of the taillight display area corresponding to the minimum distance; The step of determining the dividing line according to the position of the taillight display area comprises: Obtaining a ratio of a longitudinal side to a transverse side of a two-dimensional annotation frame corresponding to the taillight display area, and determining whether the ratio is greater than 1; If the ratio is less than or equal to 1, determining a separation line according to the midpoint of the taillight display area; If the ratio is greater than 1, a separation line is determined along any longitudinal edge of the taillight display area.

2. The vehicle labeling method according to claim 1, It is characterized in that The step of determining a vehicle display area of ​​at least one vehicle and a taillight display area of ​​a vehicle taillight, and marking a two-dimensional marking frame on each of the vehicle display area and the taillight display area, comprises: Real-time framing and identifying the framing picture to determine the area to be processed of the vehicle in the framing picture and the taillight display area in the area to be processed; Determining whether the area to be processed displays a plurality of vehicles that obstruct each other; If the area to be processed does not display multiple vehicles that block each other, the area to be processed is set as a vehicle display area corresponding to a single vehicle, and a two-dimensional annotation frame is marked on the vehicle display area and the taillight display area; If the area to be processed displays a plurality of vehicles that block each other, the vehicle display area corresponding to each vehicle in the area to be processed is determined, and two-dimensional annotation frames are respectively marked on each of the vehicle display areas and the taillight display area.

3. The vehicle labeling method according to claim 2, It is characterized in that The step of determining whether the area to be processed is a plurality of vehicles that block each other comprises: Determining whether the outer contour of the area to be processed matches a preset vehicle contour; If the outer contour of the area to be processed matches the preset vehicle contour, it is determined that the area to be processed does not display a plurality of vehicles that obstruct each other; If the outer contour of the area to be processed does not match the preset vehicle contour, it is determined that the area to be processed displays a plurality of vehicles that occlude each other.

4. The vehicle labeling method according to claim 2, It is characterized in that The step of determining whether the area to be processed is a plurality of vehicles that block each other comprises: Determine the number of the taillight display areas in the area to be processed; When the number of the taillight display areas in the area to be processed is 1, it is determined that the area to be processed does not display a plurality of vehicles that obstruct each other; When the number of the taillight display areas in the area to be processed is 2, determining whether the two taillight display areas are symmetrically displayed taillight display areas; If the two taillight display areas are symmetrically displayed taillight display areas, determining that the area to be processed does not display a plurality of vehicles that obstruct each other; If the two taillight display areas are taillight display areas that are displayed asymmetrically, determining that the area to be processed displays a plurality of vehicles that obstruct each other; When the number of the taillight display areas in the area to be processed is greater than 2, it is determined that the area to be processed displays a plurality of vehicles that obstruct each other.

5. The vehicle labeling method according to claim 2, It is characterized in that The step of determining the vehicle display area corresponding to each vehicle in the area to be processed and marking each vehicle display area with a two-dimensional marking frame includes: The vehicle display area corresponding to each vehicle in the area to be processed is determined according to the color information of each color block in the vehicle display area, and a two-dimensional annotation frame is marked on each vehicle display area.

6. The vehicle labeling method according to claim 2, It is characterized in that The step of determining the vehicle display area corresponding to each vehicle in the area to be processed and marking each vehicle display area with a two-dimensional marking frame includes: Acquire the taillight display areas that are symmetrically displayed in each of the taillight display areas, and calculate the vehicle display area of ​​the vehicle corresponding to the taillight display area according to a preset mapping table, the distance between the taillight display areas that are symmetrically displayed, and the height of the area to be processed; The vehicle display area of ​​the blocked vehicle is determined according to the vehicle display area of ​​the vehicle corresponding to the symmetrically displayed taillight display area and the area to be processed, and a two-dimensional annotation frame is marked on each of the vehicle display areas.

7. A marking device, It is characterized in that include: An identification module, used to determine a vehicle display area of ​​at least one vehicle and a taillight display area of ​​a vehicle taillight, and mark each of the vehicle display area and taillight display area with a two-dimensional marking frame; A determination module, used to determine whether the vehicle display area displays at least two outer surfaces of the vehicle; A labeling module, for determining a separation line between adjacent outer surfaces according to the taillight display area if the vehicle display area displays at least two outer surfaces of the vehicle; and for generating a three-dimensional labeling frame in the vehicle display area according to the separation line and the two-dimensional labeling frame; The annotation module is also used for: Determining whether the number of corresponding taillight display areas in the vehicle display area is greater than 1; If the number of corresponding taillight display areas in the vehicle display area is one, determining a separation line according to the position of the taillight display area; If the number of corresponding taillight display areas in the vehicle display area is greater than 1, then the distance between each taillight display area and the midpoint of the vehicle display area is calculated, and the separation line is determined according to the position of the taillight display area corresponding to the minimum distance; The annotation module is also used for: Obtaining a ratio of a longitudinal side to a transverse side of a two-dimensional annotation frame corresponding to the taillight display area, and determining whether the ratio is greater than 1; If the ratio is less than or equal to 1, determining a separation line according to the midpoint of the taillight display area; If the ratio is greater than 1, a separation line is determined along any longitudinal edge of the taillight display area.

8. A computer device, It is characterized in that The computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the vehicle labeling method according to any one of claims 1 to 6 when executed by the processor.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the vehicle labeling method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Object labeling method and device, movement control method and device, equipment and storage medium

    CN110163904A

  • Obstacle information labeling method and device, electronic equipment and storage medium

    CN111046743A

  • Three-dimensional point cloud labeling method, device, equipment and storage medium

    CN111062255A

  • Image labeling method, device, and system

    WO2020088076A1