Vehicle type identification device, vehicle type identification model generation device, and vehicle type identification model generation method

The vehicle type identification system addresses the limitation of rough vehicle type identification by calculating cutout areas based on license plate coordinates and using machine learning to accurately identify vehicle models.

JP2024127101APending Publication Date: 2024-09-20NISSIN ELECTRIC CO LTD

Patent Information

Application Number
JP2023035991
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-08
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing vehicle identification systems can only roughly identify vehicle types based on license plate information, failing to accurately distinguish between detailed vehicle types such as specific vehicle names.

Method used

A vehicle type identification system that calculates a cutout area size based on license plate position coordinates, uses a clipping processing unit to extract vehicle images, and employs a learning model trained with convolutional neural networks to identify vehicle models.

Benefits of technology

Accurately identifies vehicle types by cutting out relevant images from license plates and using machine learning to distinguish between different vehicle models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024127101000001
    Figure 2024127101000001
Patent Text Reader

Abstract

To provide a technology capable of accurately identifying a vehicle type.SOLUTION: A cut-out region size calculation unit (21) calculates a cut-out region size on the basis of position coordinates of a license plate in a photographed image of a self vehicle. A cut-out processing unit (23) cuts out, according to the cut-out region size calculated by the cut-out region size calculation unit (21), an image for identifying a vehicle type from the photographed image. Then, an identification unit (24) identifies, using a learning model that has learnt a relation between a learning image and a label for identifying the vehicle type, the vehicle type from the image cut out by the cut-out processing unit (23).SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a vehicle type identification device, a vehicle type identification model generating device, and a vehicle type identification model generating method. [Background technology]

[0002] For example, there is a vehicle number reader that uses an ITV (Industrial Television) camera to continuously capture images of vehicles that enter its field of view while traveling, and detects images of the vehicle's license plate based on the image information captured by the ITV camera through computer processing, and identifies the vehicle by reading the text information in the license plate. A related technology is the invention disclosed in Patent Document 1 below.

[0003] Patent Document 1 discloses a focus evaluation unit that identifies the horizontal edge position of a symbol on a license plate from a binary image obtained by binarizing a grayscale image of the license plate obtained by an imaging camera, sets a gradient value measurement range and a reference value measurement range that are offset horizontally to the left and right by a specified number of pixels centered on the horizontal edge position of the symbol, calculates the gradient value of the grayscale density within the gradient value measurement range as a measurement value, calculates a contrast value within the reference value measurement range as a reference value, and calculates the ratio of the measurement value to the reference value as a focus evaluation value. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2009-140160 A (Published June 25, 2009) Summary of the Invention [Problem to be solved by the invention]

[0005] A vehicle license plate reader can read the text information in a vehicle's license plate to manage entrance and exit to parking lots and premises, and to track suspicious vehicles on the roads. License plate information is sufficient for management because it can uniquely identify a vehicle, but if vehicle model information is available in addition to license plate information, it will be easier for managers and supervisors to visually find the vehicle in question.

[0006] However, license plate information can only roughly distinguish vehicle types (passenger cars, light cars, etc.), and cannot identify detailed vehicle models (vehicle names). This problem cannot be solved even if the above-mentioned Patent Document 1 is used.

[0007] An object of one aspect of the present invention is to provide a technique capable of accurately identifying the vehicle model of an automobile. [Means for solving the problem]

[0008] In order to solve the above problems, a vehicle model identification device according to one embodiment of the present invention includes a cut-out area size calculation unit that calculates a cut-out area size based on license plate position coordinates in a captured image of an automobile, a cut-out processing unit that cuts out an image for identifying the automobile model from the captured image in accordance with the cut-out area size calculated by the cut-out area size calculation unit, and an identification unit that identifies the automobile model from the image cut out by the cut-out processing unit using a learning model that has learned the relationship between learning images and labels for identifying the automobile model.

[0009] In order to solve the above problems, a vehicle model identification model generation device according to one embodiment of the present invention includes an image processing unit that generates a second training image by performing image processing on a first training image for identifying a vehicle model, and a learning unit that learns the relationship between the first training image and the second training image and a label to generate a learning model.

[0010] In order to solve the above problems, a vehicle model identification model generation method according to one embodiment of the present invention includes a step of generating a second training image by performing image processing on a first training image for identifying a vehicle model, and a step of learning the relationship between the first training image and the second training image and a label to generate a training model. Effect of the Invention

[0011] According to one aspect of the present invention, it is possible to accurately identify the type of automobile. [Brief description of the drawings]

[0012] [Figure 1] 1 is a block diagram showing a schematic configuration of a vehicle type identification system according to an embodiment of the present invention; [Diagram 2] FIG. 2 is a diagram for explaining license plate position coordinates. [Diagram 3] 13 is a table showing the relationship between the Y coordinate of the license plate position coordinates and the size of the cut-out region. [Figure 4] FIG. 13 is a diagram showing an example of an excision region. [Diagram 5] FIG. 11 is a diagram showing an example of an image cut out by a cut-out processing unit. [Figure 6] 4 is a flowchart for explaining the processing steps of a cut-out region size calculation unit and a cut-out processing unit of the vehicle type identification device according to one embodiment of the present invention. [Figure 7] 5 is a flowchart for explaining a processing procedure of an identification unit of the vehicle type identification device according to one embodiment of the present invention. [Figure 8] 1 is a block diagram showing a schematic configuration of a vehicle model identification model generating device according to an embodiment of the present invention; [Figure 9] 4 is a flowchart illustrating a processing procedure of the vehicle model identification model generating device according to an embodiment of the present invention. [Figure 10] 10 is a flowchart for explaining details of the image processing shown in FIG. 9. [Figure 11]11 is a flowchart for explaining details of the transformation matrix creation process shown in FIG. 10. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] (Example of the configuration of the vehicle type identification system 100) FIG. 1 is a block diagram showing a schematic configuration of a vehicle type identification system 100 according to an embodiment of the present invention. The vehicle type identification system 100 includes an imaging device 1 and a vehicle type identification device 2. This vehicle type identification system 100 can capture an image of a vehicle traveling on a road and extract an image for identifying the vehicle type. The vehicle type identification system 100 may also capture an image of a vehicle entering or leaving a parking lot and extract an image for identifying the vehicle type. Note that the vehicle type refers not only to vehicle types such as trucks and light vehicles, but also to the vehicle name (nickname) of the vehicle. Therefore, the vehicle type identification device 2 extracts an image so that the vehicle name can be identified, and identifies the vehicle type from the extracted image using a learning model that has been trained in advance.

[0014] The imaging device 1 includes an imaging unit 11 and a position coordinate detection unit 12. The imaging unit 11 is composed of a camera or the like, and captures an image of a traveling automobile. The imaging unit 11 is installed at a height of, for example, about 6 m, and captures an image of the front (front part) of the traveling automobile from diagonally above. The imaging unit 11 may also capture an image of the back of the traveling automobile.

[0015] The position coordinate detection unit 12 detects the image portion of the license plate from the captured image of the front of the automobile. The part of the image that is the subject of the vehicle is extracted, and the coordinates of the license plate position are detected. The detection of the coordinates of the license plate position will be explained with reference to FIG.

[0016] FIG. 2 is a diagram for explaining license plate position coordinates. As shown in FIG. 2, the license plate has a line showing the area name "Kyoto" and the classification number "XXX", and a line showing the use "A" and the serial number "XX-XXX". The position coordinate detection unit 12 detects the coordinates of a point P that is between the line showing the area name and the classification number and the line showing the use and the serial number and is in the center of the width as the license plate position coordinates, and outputs the coordinates to the vehicle type identification device 2. Note that the license plate position coordinates are not limited to this, and may be other coordinates based on the license plate.

[0017] As shown in Figure 2, the length from point P to the left edge of the license plate is W L The length from point P to the right edge of the license plate is W R Then, the position coordinate detection unit 12 calculates W L =W R Point P is determined so that: The coordinates of point P in the image captured by imaging unit 11 are the license plate position coordinates. Hereinafter, the license plate position coordinates, i.e., the coordinates of point P, are referred to as P(x, y). Note that the license plate position coordinates P(x, y) are the position coordinates of the license plate when the captured image is expressed in XY coordinates.

[0018] An image processing device (not shown) can obtain vehicle license plate information by reading character information in the vehicle license plate with reference to the image captured by the imaging unit 11 and the license plate position coordinates. Therefore, the image captured by the imaging unit 11 can be used both to obtain vehicle license plate information and to cut out an image for identifying the vehicle model.

[0019] Returning to the explanation of Fig. 1, the vehicle type identification device 2 includes a cutout region size calculation unit 21, a setting file 22, a cutout processing unit 23, and an identification unit 24. Note that input and output of information between the imaging device 1 and the vehicle type identification device 2 may be wired communication or wireless communication, and is not particularly limited.

[0020] The cut-out region size calculation unit 21 calculates the cut-out region size when the Y coordinate of the license plate position coordinates P(x, y) output from the position coordinate detection unit 12 matches the Y coordinate of the reference license plate position coordinates stored in the setting file 22. The reference license plate position coordinates are position coordinates that serve as a reference when the cut-out processing unit 23 cuts out an image, and are determined in advance.

[0021] As described above, the imaging unit 11 is installed at a height of about 6 m and captures the front of the car from above, so if the car is far away, the Y coordinate (coordinate in the height direction) of the license plate position coordinate P(x, y) will be located at the top in the captured image. As the car approaches, the license plate position coordinate P(x, y) moves downward, and when the distance between the car and the imaging unit 11 becomes a predetermined distance, the license plate position coordinate and the reference license plate position coordinate will match. The captured image (still image) at this time is the image to be cropped.

[0022] The setting file 22 defines information such as the size of the captured image (number of pixels in the vertical and horizontal directions), the coordinates of the reference license plate position, and the parameters α, β, γ used when calculating the size of the cut-out region.

[0023] α is the vertical size (number of pixels in the vertical direction) of the image to be processed (for example, it may be the entire photographed image or a part of the photographed image). β is the size of the cutout area when the Y coordinate of the license plate position coordinate P(x, y) is maximum. γ is the number of pixels in the number plate position coordinate P(x, y). This is the size of the cropped area when the Y coordinate of the rate position coordinate P(x, y) is the smallest. Note that the cropped area size will be described as a square with the same vertical and horizontal sizes, but it may be a rectangle with different vertical and horizontal sizes, and is not particularly limited. In the following, the case where the image to be processed is the entire captured image will be described.

[0024] For example, assume that the size of the image to be processed is 1024 x 768, the size of the cropped region when the Y coordinate of the license plate position coordinate P(x, y) is maximum is 300 x 300, and the size of the cropped region when the Y coordinate of the license plate position coordinate P(x, y) is minimum is 200 x 200. In this case, α = 768, β = 300, and γ = 200. These parameters are predefined in the setting file 22. Note that, when the upper left corner of the target image to be processed is taken as the origin, the minimum Y coordinate of the license plate position coordinate P(x, y) is "0" and the maximum is "767".

[0025] The cut-out region size calculation unit 21 uses the parameters α, β, and γ to calculate the cut-out region size L×L corresponding to the Y coordinate of the license plate position coordinates according to the following formula (Formula 1), and defines it in the setting file 22 as a cut-out region size table.

[0026] L=(β-γ)×y / α+γ (Formula 1) The origin of the image to be processed is the upper left corner. Therefore, the Y coordinate of the top of the image to be processed is "0", and the Y coordinate of the bottom of the image to be processed is "767".

[0027] Moreover, substituting the values ​​of the parameters α, β, and γ into the above (Equation 1) results in the following equation (Equation 2): The clipping region size calculation unit 21 may calculate the clipping region size using the following equation (Equation 2).

[0028] L=0.13×Y+200 (Formula 2) Fig. 3 is a table showing the relationship between the Y coordinate of the license plate position coordinates and the cut-out region size. As shown in Fig. 3, when the Y coordinate of the license plate position coordinates is the minimum "0", the cut-out region size is 200 x 200, and the cut-out region size gradually increases as the Y coordinate increases. And when the Y coordinate of the license plate position coordinates is the maximum "767", the cut-out region size is 300 x 300.

[0029] In this way, when the distance from the imaging device 1 to the automobile is large, the cropping area size is reduced. Also, when the distance from the imaging device 1 to the automobile is small, the cropping area size is increased. This results in an image being cropped to include the same portion of the front of the automobile. Note that, when the reference license plate position coordinates are fixed, the cropping area size calculation unit 21 may calculate only the cropping area size corresponding to the reference license plate position coordinates, and define this value in the setting file 22.

[0030] The cut-out region size calculation unit 21 outputs to the cut-out processing unit 23 the captured image, the license plate position coordinates, and the cut-out region size when the Y coordinate of the license plate position coordinates and the Y coordinate of the reference license plate position coordinates match.

[0031] The cut-out processing unit 23 uses the captured image, license plate position coordinates, and cut-out area size output from the cut-out area size calculation unit 21 to cut out an image of a cut-out area for identifying the vehicle type from the image to be processed, and outputs the image to the identification unit 24.

[0032] The identification unit 24 inputs the image cut out by the cutout processing unit 23 into a learning model that is machine-learned by a vehicle type identification model generation device described later using a convolutional neural network (CNN), thereby identifying the vehicle type from the cut out image. As described below, the system is trained to learn the relationship between learning images and labels for identifying car models.

[0033] Note that the machine learning is not limited to CNN, but may be a general NN, RNN, DNN, R-CNN, Fast R-CNN, Faster R-CNN, SegNet, U-Net, U-Net++, etc.

[0034] 4 is a diagram showing an example of a cut-out region. As shown in FIG. 4, for example, the license plate position coordinates P(x, y) are used as a reference, and W L ':WR The cutout area is determined so that W ' = 1:1. L ' is the size (number of pixels) from the X coordinate of the license plate position coordinate to the left edge, and W R ' is the size (number of pixels) from the X coordinate of the license plate position coordinate to the right edge. L ' and W R The ratio to ' may be other values.

[0035] In addition, in the vertical direction (y direction), H U :H L The cutout area is determined so that H = 3:1. U is the size (number of pixels) from the Y coordinate of the license plate position coordinate to the top edge, and H L is the size (number of pixels) from the Y coordinate of the license plate position coordinate to the bottom edge. U and H L The ratio may be any other value.

[0036] If the cut-out region exceeds the range of the captured image, the cut-out processing unit 23 may pad the portion that exceeds the range of the captured image with black to maintain the square shape.

[0037] Fig. 5 is a diagram showing an example of an image cut out by the cut-out processing unit 23. As shown in Fig. 5, the front of the car is cut out to a size that does not include the background. The setting file 22 defines the reference license plate position coordinates α, β, and γ so that the background image of the car is not included.

[0038] (Processing flow of the cut-out region size calculation unit 21 and the cut-out processing unit 23) 6 is a flowchart for explaining the processing procedure of the cut-out region size calculation unit 21 and the cut-out processing unit 23 of the vehicle type identification device 2 according to one embodiment of the present invention. First, a captured image and license plate position coordinates are input to the cut-out region size calculation unit 21 (S1).

[0039] Next, the cutout region size calculation unit 21 judges whether the Y coordinate of the license plate position coordinates matches the Y coordinate of the reference license plate position coordinates defined in the setting file (S2). If the Y coordinate of the license plate position coordinates does not match the Y coordinate of the reference license plate position coordinates (S2, No), the process returns to step S1 and repeats the subsequent processes.

[0040] Furthermore, if the Y coordinate of the license plate position coordinates matches the Y coordinate of the reference license plate position coordinates (S2, Yes), the cut-out area size calculation unit 21 selects the captured image (still image) to be cut-out processed by the above-mentioned method, and calculates the cut-out area size (S3).

[0041] Finally, the cut-out processing unit 23 uses the captured image, license plate position coordinates, and cut-out area size output from the cut-out area size calculation unit 21 to cut out an image of the cut-out area for identifying the vehicle type from the image to be processed, and outputs the image to the identification unit 24 (S4).

[0042] (Processing flow of the recognition unit 24) FIG. 7 illustrates a processing procedure of the identification unit 24 of the vehicle type identification device 2 according to an embodiment of the present invention. 1 is a flowchart for explaining a process for extracting an image from a plurality of images, the image extracting unit 24 receives an image extracted by the extraction unit 23 (S11).

[0043] Next, the identification unit 24 inputs a learning model generated by a vehicle type identification model generating device described later (S12).The identification unit 24 then inputs the image cut out by the cut-out processing unit 23 to the learning model, thereby identifying the vehicle type from the image (S13), outputting the identification result (S14), and ending the process.

[0044] (Effect of vehicle type identification device 2) As described above, according to the vehicle type identification device 2 of this embodiment, the cut-out processing unit 23 cuts out an image for identifying the vehicle type from the captured image according to the cut-out region size calculated by the cut-out region size calculation unit 21. Then, the identification unit 24 identifies the vehicle type from the image cut out by the cut-out processing unit 23 using a learning model that has learned the relationship between learning images for identifying the vehicle type and labels. Therefore, the image captured by the imaging unit 11 can be used both to obtain license plate information of the vehicle and to cut out an image for identifying the vehicle type.

[0045] Furthermore, the cutout processing unit 23 cuts out the image based on the license plate position coordinates so that the vertical and horizontal sizes of the cutout region size calculated by the cutout region size calculation unit 21 have a predetermined ratio. Therefore, the cutout processing unit 23 can cut out the image so as to include the same part of the front of the automobile, which enables the identification unit 24 to accurately identify the type of automobile.

[0046] (Example of configuration of vehicle type identification model generating device 3) 8 is a block diagram showing a schematic configuration of a vehicle type identification model generating device 3 according to an embodiment of the present invention. The vehicle type identification model generating device 3 includes a training image input unit 31, an image processing unit 32, a training unit 33, and a training model output unit 34.

[0047] The training image storage unit 4 stores a plurality of training images to be used in advance to identify vehicle models, and stores, for example, pairs of images of various vehicle models taken from the front and labels corresponding to the images as training data.

[0048] The training image input unit 31 inputs, as training data, a pair of one training image and a label corresponding to that image from the training image storage unit 4, and outputs the pair of the training image and the label to the image processing unit 32.

[0049] A learning image is required when identifying a vehicle type by machine learning or the like, but since the environment such as the installation angle of the imaging device 1 differs for each installation location of the imaging device 1, it is difficult to prepare the learning image. Therefore, the image processing unit 32 performs image processing on the learning image taking into consideration the operational environment and outputs the image to the learning unit 33. Specifically, since the environment such as the installation angle of the imaging device 1 and the surrounding brightness differs for each installation location of the imaging device 1, the image processing unit 32 performs image processing such as coordinate transformation using a homography transformation matrix, brightness correction, and color correction on the learning image, and generates multiple learning images (second learning images) from one learning image (first learning image). Note that the image processing unit 32 performs similar image processing on the learning images of various vehicle types stored in the learning image storage unit 4.

[0050] The learning unit 33 learns the relationship between the learning images (first learning image, second learning image) generated by the image processing unit 32 and the labels corresponding to the learning images by machine learning, and generates a learning model. Note that the same label as that assigned to the first learning image is also assigned to the second learning image generated by image processing.

[0051] The learning model output unit 34 outputs the learning model learned by the learning unit 33 to the learning model storage unit 5, and stores the learned learning model in the learning model storage unit 5. This learning model is a model that has learned all of the relationships between the learning images (first learning images) of various types of automobiles stored in the learning image storage unit 4 and the learning images (second learning images) generated by image processing, and the corresponding labels.

[0052] (Processing flow of the vehicle type identification model generating device 3) 9 is a flowchart for explaining the processing procedure of the vehicle model identification model generating device 3 according to one embodiment of the present invention. First, the training image input unit 31 inputs a pair of a training image and a label corresponding to the image as training data from the training image storage unit 4 (S21).

[0053] Next, the image processing unit 32 performs image processing such as coordinate transformation using a homography transformation matrix, brightness correction, and color correction on the learning image to generate multiple learning images (second learning images) from one learning image (first learning image) (S22). Details of the processing in step S22 will be described later.

[0054] Next, the learning unit 33 learns the relationship between the first training image and the second training image generated by the image processing unit 32, and the label corresponding to the first image, through machine learning, to generate a learning model (S23).

[0055] Finally, the learning model output unit 34 outputs the learned learning model generated by the learning unit 33 to the learning model storage unit 5 (S24), and the process ends. Note that the processes of steps S21 to S24 are performed on all of the learning images of various types of automobiles stored in the learning image storage unit 4.

[0056] Fig. 10 is a flowchart for explaining the details of the image processing (S22) shown in Fig. 9. First, the image processing unit 32 resizes the input learning image to generate an image of the same size as the image cut out by the cut-out processing unit 23 of the vehicle type identification device 2 (S31). For example, the image processing unit 32 resizes the learning image so that the number of pixels of the image after resizing is the same as the number of pixels of the image cut out by the cut-out processing unit 23.

[0057] Next, the image processing unit 32 duplicates the resized learning image (S32). The image processing unit 32 inverts the color of one of the two learning images obtained by the duplication (S33), and performs the processes in and after step S34 on the other learning image without color inversion. For example, if the learning image is a color image, the RGB values ​​of each pixel of the learning image are set to R, i,j , G i,j , B i,j (However, if the vertical and horizontal sizes of the learning image are N and M, respectively, then i ∈ N, j ∈ M).

[0058] If the RGB values ​​are expressed as 0 to 255, the RGB values ​​of each pixel after color inversion (R' i,j ,G' i,j ,B' i,j ) can be expressed by the following equation (Equation 3).

[0059] R' i,j =255-R i,j G' i,j =255-G i,j B' i,j =255-B i,j ...(Formula 3) However, even if the learning image is color-inverted by this method, it cannot be converted to an arbitrary color, so if you want to convert to an arbitrary color, you can also use this method. Also, after converting a color image to a gray image, the gray image may be inverted. .

[0060] Next, the image processing unit 32 performs brightness correction on each of the color-inverted learning image and the non-color-inverted learning image (S34). This brightness correction can reduce the influence of the amount of light due to the shooting time (day or night) of the vehicle to be imaged.

[0061] The RGB values ​​of each pixel in the training image are i,j =(R i,j , G i,j , B i,j ), then the RGB value of each pixel in the training image after brightness correction is img' i,j =(R' i,j , G' i,j , B' i,j ) is as shown in the following equation (Equation 4). Here, α' is a parameter called gain that adjusts the contrast of the image, and β' is a parameter called bias that adjusts the brightness of the image. Additionally, the int(x) function is a function that converts the argument into an integer type, and the clip(dst, min, max) function is a function that changes the value to min if the dst value is smaller than min, and changes the value to max if the dst value is larger than max.

[0062] img' i,j =α'×img i,j +β' int(clip(img' i,j ,0,255)) (Equation 4) The image processor 32 may perform other image processing such as adding noise or correcting brightness using a different algorithm.

[0063] Next, the image processing unit 32 creates a transformation matrix for performing homography transformation on the learning image (S35). Note that the details of the process of step S35 will be described later.

[0064] Finally, the image processing unit 32 performs homography transformation on the training image after the brightness correction (S36), and ends the process.

[0065] Fig. 11 is a flowchart for explaining the details of the transformation matrix creation process (S35) shown in Fig. 10. First, the image processing unit 32 creates a first transformation matrix that randomly shifts the learning image left and right (S41). The homography transformation matrix is ​​as shown in the following formula (Formula 5). (x, y) are the coordinates of each pixel of the learning image before transformation, (x', y') are the coordinates of each pixel of the learning image after transformation, and s is a proportionality constant.

[0066]

number

[0067] For example, when creating a first transformation matrix, the image processing unit 32 sets the elements of the homography transformation matrix as a=e=1, b=d=f=g=h=0, and c as an arbitrary value within a predetermined range. This allows the image processing unit 32 to create a first transformation matrix that randomly shifts the learning image left and right. The second to fourth transformation matrices described below can also be created in a similar manner.

[0068] Next, the image processing unit 32 creates a second transformation matrix that randomly shifts the learning image up and down within a predetermined range (S42), creates a third transformation matrix that randomly performs keystone correction on the learning image within a predetermined range (S43), and creates a fourth transformation matrix that randomly enlarges or reduces the learning image within a predetermined range (S44). Note that in steps S41 to S44, various transformation matrices can be created by randomly changing the elements of the homography transformation matrix. By using these, various learning images can be created.

[0069] Next, the image processing unit 32 randomly rearranges the four transformation matrices (the first transformation matrix to the fourth transformation matrix) that have been created (S45). Finally, the image processing unit 32 calculates the matrix product of the four transformation matrices (the first transformation matrix to the fourth transformation matrix) (S46) and ends the process.

[0070] The eight elements a to h of the homography transformation matrix shown in (Equation 5) can be found as a solution to a simultaneous equation with eight unknowns by determining four pairs of coordinates in the learning image before and after transformation. The image processing using the homography transformation matrix described above determines the transformation matrix by determining four pairs of coordinates in the image before and after transformation in each image processing so as to achieve a specified image processing. Such homography transformation can reduce the influence of the installation location and installation angle of the imaging device 1, the distance between the imaging device 1 and the vehicle to be imaged, and the like.

[0071] (Effects of vehicle type identification model generation device 3) As described above, according to the vehicle type identification model generating device 3 of this embodiment, the image processing unit 32 generates a second training image by performing image processing on the first training image. Then, the learning unit 33 learns the relationship between the first training image and the second training image and the corresponding labels to generate a learning model. Therefore, the identification unit 24 of the vehicle type identification device 2 uses the learning model trained by the vehicle type identification model generating device 3 to identify the vehicle type from the image cut out by the cut-out processing unit 23, making it possible to accurately identify the vehicle type.

[0072] In addition, since the image processing unit 32 generates a second training image for the first training image using a homography transformation matrix, the training unit 33 can create a training model that can reduce the influence of the installation location and installation angle of the imaging device 1, the distance between the vehicle to be imaged and the imaging device 1, etc.

[0073] In addition, since the image processing unit 32 performs brightness correction on the first training image to generate a second training image, the learning unit 33 can create a learning model that can reduce the influence of brightness due to the time of day at the location where the imaging device 1 is installed, etc.

[0074] [Software implementation example] The control blocks of the vehicle type identification device 2 and the vehicle type identification model generation device 3 (in particular, the cut-out area size calculation unit 21, the cut-out processing unit 23, the identification unit 24, the image processing unit 32, and the learning unit 33) may be realized by a logic circuit (hardware) formed in an integrated circuit (IC chip) or the like, or may be realized by software.

[0075] In the latter case, the vehicle model identification device 2 and the vehicle model identification model generating device 3 are equipped with a computer that executes instructions of a program, which is software that realizes each function. This computer is equipped with, for example, one or more processors, and a computer-readable recording medium that stores the program. In the computer, the processor reads the program from the recording medium and executes it, thereby achieving the object of the present invention. The processor may be, for example, a CPU (Central Processing The recording medium may be a "non-transitory tangible medium", such as a ROM (Read Only Memory) or a tape, disk, card, semiconductor memory, programmable logic circuit, or the like. The computer may further include a RAM (Random Access Memory) into which the program is expanded. The program may be supplied to the computer via any transmission medium capable of transmitting the program (such as a communication network or broadcast waves). One aspect of the present invention is that the program is stored in an electronic It may also be realized in the form of a data signal embedded in a carrier wave, embodied by electronic transmission.

[0076] 〔summary〕 The vehicle type identification device according to aspect 1 of the present invention includes a cut-out area size calculation unit that calculates a cut-out area size based on license plate position coordinates in a captured image of an automobile, a cut-out processing unit that cuts out an image for identifying the automobile type from the captured image according to the cut-out area size calculated by the cut-out area size calculation unit, and an identification unit that identifies the automobile type from the image cut out by the cut-out processing unit using a learning model that has learned the relationship between learning images and labels for identifying the automobile type.

[0077] A vehicle model identification device according to a second aspect of the present invention is the above-mentioned first aspect, wherein the learning images include a first learning image and a second learning image obtained by performing image processing on the first learning image.

[0078] A vehicle type identification device according to a third aspect of the present invention is in accordance with the second aspect, wherein the second training image is an image obtained by transforming the first training image using a homography transformation matrix.

[0079] A vehicle model identification device according to a fourth aspect of the present invention is an image obtained by transforming the first learning image using at least one of a first transformation matrix for shifting an image left and right, a second transformation matrix for shifting an image up and down, a third transformation matrix for performing keystone correction on the image, and a fourth transformation matrix for enlarging or reducing the image, in the above-mentioned third learning image.

[0080] A vehicle model identification device according to a fifth aspect of the present invention is configured as in the above-mentioned fourth aspect, wherein the training images include a plurality of second training images transformed using a matrix product in which the order of a plurality of transformation matrices among the first transformation matrix, the second transformation matrix, the third transformation matrix, and the fourth transformation matrix is ​​rearranged for the first training image.

[0081] A sixth aspect of the present invention provides a vehicle type identification device in any one of the second to fifth aspects, wherein the second learning image is an image obtained by performing brightness correction on the first learning image.

[0082] A vehicle type identification device according to a seventh aspect of the present invention is in any one of the second to sixth aspects, wherein the second learning image is an image obtained by performing color inversion on the first learning image.

[0083] A vehicle model identification device according to aspect 8 of the present invention is, in any one of aspects 1 to 7 above, wherein the cut-out area size calculation unit calculates the cut-out area size when the height coordinate of the license plate position coordinate coincides with the height coordinate of the reference license plate position coordinate that serves as the basis when the cut-out processing unit cuts out an image.

[0084] In the vehicle model identification device of aspect 9 of the present invention, in any of aspects 1 to 8 above, when the height coordinate of the license plate position coordinate is Y coordinate, the vertical size of the captured image is α, the cut-out region size when the Y coordinate is maximum is β, and the cut-out region size when the Y coordinate is minimum is γ, the cut-out region size calculation unit calculates the cut-out region size L×L using the following formula (formula 1a).

[0085] L=(β-γ)×y / α+γ (Equation 1a) A vehicle type identification model generating device according to a tenth aspect of the present invention is an image processing device that generates a second learning image by performing image processing on a first learning image for identifying a vehicle type. a learning unit that learns the relationship between the first training image and the second training image and a label to generate a learning model.

[0086] A vehicle model identification model generation method according to aspect 11 of the present invention includes a step of generating a second training image by performing image processing on a first training image for identifying a vehicle model, and a step of learning the relationship between the first training image and the second training image and labels to generate a training model.

[0087] [Additional Notes] The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope of the claims. Embodiments obtained by appropriately combining the technical means disclosed in different embodiments are also included in the technical scope of the present invention. [Explanation of symbols]

[0088] 1. Imaging device 2 Vehicle identification device 3. Vehicle identification model generation device 4. Learning image storage 5 Learning model storage 11 Imaging unit 12 Position coordinate detection unit 21 Extraction area size calculation unit 22 Configuration Files 23 Extraction processing section 24 Identification section 31 Learning image input unit 32 Image processing section 33 Learning Department 34 Learning model output section 100 Vehicle Identification System

Claims

1. a cut-out region size calculation unit that calculates a cut-out region size based on a license plate position coordinate in a captured image of a vehicle; a cut-out processing unit that cuts out an image for identifying the vehicle model from the captured image in accordance with the cut-out region size calculated by the cut-out region size calculation unit; A vehicle type identification device comprising: an identification unit that identifies the vehicle type from the image cut out by the cut-out processing unit using a learning model that has learned the relationship between learning images and labels for identifying the vehicle type.

2. The vehicle type identification device according to claim 1 , wherein the learning images include a first learning image and a second learning image obtained by performing image processing on the first learning image.

3. The vehicle type identification device according to claim 2 , wherein the second training image is an image obtained by transforming the first training image using a homography transformation matrix.

4. 4. The vehicle type identification device according to claim 3, wherein the second learning image is an image transformed from the first learning image using at least one of a first transformation matrix for shifting an image left and right, a second transformation matrix for shifting an image up and down, a third transformation matrix for keystone correction of the image, and a fourth transformation matrix for enlarging or reducing the image.

5. 5. The vehicle type identification device according to claim 4, wherein the learning images include a plurality of the second learning images transformed using a matrix product in which the order of a plurality of transformation matrices among the first transformation matrix, the second transformation matrix, the third transformation matrix, and the fourth transformation matrix is ​​rearranged with respect to the first learning image.

6. 6. The vehicle type identification device according to claim 2, wherein the second learning image is an image obtained by performing brightness correction on the first learning image.

7. 6. The vehicle type identification device according to claim 2, wherein the second learning image is an image obtained by performing color inversion on the first learning image.

8. The cut-out area size calculation unit calculates the cut-out area size when the height coordinate of the license plate position coordinates and the height coordinate of the reference license plate position coordinates that are the reference when the cut-out processing unit cuts out the image coincide with each other. A vehicle type identification device as described in any one of claims 1 to 5.

9. The vehicle model identification device of claim 8, wherein the height coordinate of the license plate position coordinate is the Y coordinate, the vertical size of the captured image is α, the cut-out region size when the Y coordinate is maximum is β, and the cut-out region size when the Y coordinate is minimum is γ. The cut-out region size calculation unit calculates the cut-out region size L × L by the following formula (Formula 1a). L=(β-γ)×y / α+γ...(Formula 1a)

10. an image processing unit that performs image processing on a first learning image for identifying a vehicle model to generate a second learning image; a learning unit that learns the relationship between the first training image and the second training image and a label to generate a learning model.

11. generating a second learning image by performing image processing on a first learning image for identifying a vehicle model; and generating a learning model by learning a relationship between the first training image and the second training image and a label.

Citation Information

Patent Citations

  • Method for automatically identifying vehicle type based on vehicle frontal image and template matching

    CN103324920A

  • Automatic teacher data generation device, automatic teacher data generation method, and automatic teacher data generation program

    JP7197042B1

  • Method and system for utilizing transformation matrices to process rasterized image data

    US20100156938A1

  • Devices and methods for determining region of interest for object detection in camera images

    US20210309221A1

  • Method and apparatus for training image processing model

    US20230028237A1

Cited By

  • Vehicle body information determining device, vehicle body information determining method, and program

    JP2026104191A