Image processing device, overload detection system, image processing method, and image processing program
The image processing device uses Hough transform and differential image processing to accurately identify tire portions in vehicle images, addressing the challenge of distinguishing tire outlines from other vehicle components and enhancing overload detection accuracy.
Patent Information
- Application Number
- JP2020209602
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-12-17
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2040-12-17
AI Technical Summary
Existing image processing techniques struggle to accurately distinguish tire outlines from other vehicle components in captured images, leading to incorrect tire detection and subsequent errors in overload determination.
An image processing device that utilizes Hough transform to identify tire portions by detecting pairs of circles or ellipses with specific radius ratios and center coordinate distances, combined with different image processing methods to enhance accuracy.
Accurately extracts tire portions from vehicle images, enabling precise overload detection by distinguishing tire and rim outlines, thereby improving the reliability of overload determination systems.
Smart Images

Figure 0007533195000008 
Figure 0007533195000006 
Figure 0007533195000001
Abstract
Description
[Technical field]
[0001] The present invention relates to an image processing device, an overload detection system, an image processing method, and an image processing program, and in particular to an image processing device that identifies tire portions corresponding to the vehicle's tires in an image obtained by imaging a vehicle, an overload detection system equipped with the image processing device, an image processing method executed by the image processing device, and an image processing program that causes a computer to execute the image processing method. [Background technology]
[0002] There is known a technology for determining whether a vehicle is overloaded from the deformation of the tires based on the shape of the tires of a passing vehicle.For example, Japanese Patent Application Laid-Open No. 2002-228423 discloses a tire detection method that captures an image of the vicinity of the tires of a passing vehicle from diagonally above and to the side with an imaging device, detects edges in the obtained image to detect tire contour information, defines a pseudo-Hough transform process to detect ellipses for the detected tire contour information, and performs voting process in the parameter space of the Hough transform at edge points of the edge detection image to detect the tires.
[0003] However, the portion extracted as an edge from the image captured by the imaging device is not limited to the outline of the tire, and may include the outline of parts other than the tire, such as the body or other parts, which may result in the body or other parts of the vehicle being erroneously extracted as the tire. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2002-228423 A Summary of the Invention [Problem to be solved by the invention]
[0005] The present invention has been made to solve the above-mentioned problems, and one of the objects of the present invention is to provide an image processing device capable of accurately extracting tire portions corresponding to the vehicle tires from an image obtained by imaging a vehicle.
[0006] Another object of the present invention is to provide an overload detection system capable of detecting an overload of a vehicle from an image obtained by imaging the vehicle.
[0007] It is still another object of the present invention to provide an image processing method capable of accurately extracting tire portions corresponding to the tires of a vehicle from an image obtained by imaging the vehicle.
[0008] It is still another object of the present invention to provide an image processing program capable of accurately extracting tire portions corresponding to the tires of a vehicle from an image obtained by imaging the vehicle. [Means for solving the problem]
[0009] In order to achieve the above-mentioned object, according to one aspect of the present invention, an image processing device includes: an acquisition means for acquiring a captured image obtained by photographing a side of a vehicle; a shape extraction means for extracting a circle or an ellipse by subjecting an edge included in the captured image to a Hough transform; a pair detection means for determining a pair of two circles or ellipses having a distance between center coordinates equal to or smaller than a threshold value from among the plurality of circles or ellipses extracted by the shape extraction means; and an identification means for identifying a tire portion in the captured image corresponding to a tire of the vehicle based on the two circles or ellipses determined as a pair. The pair detection means further determines pairs of two circles or ellipses whose radius ratios are within a predetermined range. do.
[0010] According to this aspect, a pair of two circles or ellipses whose center coordinates are a distance less than or equal to a threshold value are determined from among a plurality of circles or ellipses extracted by performing a Hough transform on edges included in an image obtained by photographing the side of a vehicle, and a tire portion corresponding to the tire of the vehicle in the image is identified based on the two circles or ellipses. The tire is mounted on a rim that is mounted on the vehicle. Since the tire and the rim have the same center of rotation, the outline of the tire and the outline of the rim are represented in the image as two circles or ellipses whose center coordinates are a distance less than or equal to a threshold value. Therefore, it is possible to provide an image processing device that can accurately extract a tire portion corresponding to the tire of the vehicle from an image obtained by photographing the vehicle.
[0012] Also Since the tire to rim radius ratio is vehicle specific, the tire portion can be extracted more accurately if the vehicle is specified. According to another aspect of the present invention, an image processing device includes an acquisition means for acquiring an image obtained by photographing the side of a vehicle, a shape extraction means for extracting a circle or an ellipse by performing a Hough transform on edges included in the captured image, a pair detection means for determining a pair of two circles or ellipses from among the multiple circles or ellipses extracted by the shape extraction means, the distance between center coordinates of which is equal to or less than a threshold value, an identification means for identifying a tire portion in the captured image corresponding to the vehicle's tire based on the two circles or ellipses determined as a pair, a first processing means for performing a first image processing on the captured image, and a second processing means for performing a second image processing different from the first image processing on the captured image, wherein the shape extraction means includes a first extraction means for extracting a first circle or ellipse by performing a Hough transform on edges included in a first image on which the first image processing has been performed, and a second extraction means for extracting a second circle or ellipse by performing a Hough transform on edges included in a second image on which the second image processing has been performed, and the pair detection means further determines a pair of the first circle or ellipse and the second circle or ellipse. According to this aspect, a first circle or ellipse is extracted by performing a Hough transform on an edge extracted from an image obtained by performing a first image processing on a captured image, and a second circle or ellipse is extracted by performing a Hough transform on an edge extracted from an image obtained by performing a second image processing on a captured image. Then, a tire portion corresponding to a tire of a vehicle in a captured image is specified based on a pair of the first circle or ellipse and the second circle or ellipse. Since the first image processing and the second image processing are different, the edge extracted from an image obtained by performing the first image processing on a captured image and the edge extracted from an image obtained by performing the second image processing on a captured image may be the same or different. If the first image processing is a processing in which a portion corresponding to the outline of a tire of a vehicle in a captured image is likely to appear as an edge, a first circle or ellipse including a portion corresponding to the outline of a tire is likely to be extracted. Also, if the second image processing is a processing in which a portion corresponding to the outline of a rim of a vehicle in a captured image is likely to appear as an edge, a second circle or ellipse including a portion corresponding to the outline of a rim is likely to be extracted. Therefore, it is possible to provide an image processing device capable of accurately extracting tire portions corresponding to the vehicle's tires from a captured image obtained by capturing an image of the vehicle.
[0013] Preferably, the predetermined range is determined based on the respective radii of the tire and rim mounted on the vehicle.
[0014] According to this aspect, since the respective radii of the tire and rim are determined by the vehicle, when the vehicle is specified, the radius ratio can be accurately determined and the tire portion can be extracted more accurately.
[0015] Preferably, the vehicle further comprises a determination means for determining whether or not the vehicle is overloaded based on the tire portion identified by the identification means.
[0016] According to this aspect, it is possible to easily determine whether the vehicle is overloaded from the captured image.
[0019] According to another aspect of the present invention, an overload detection system includes the above-mentioned image processing device, and an imaging unit that captures an image of a vehicle and outputs the image to the image processing device as a captured image.
[0020] According to this aspect, it is possible to provide an overload detection system capable of easily predicting the weight of a vehicle.
[0021] According to yet another aspect of the present invention, an image processing method includes an image processing device that executes the following steps: acquiring a captured image obtained by photographing a side of a vehicle; a shape extraction step of extracting a circle or an ellipse by subjecting edges included in the captured image to a Hough transform; a pair detection step of determining a pair of two circles or ellipses whose center coordinates have a distance equal to or smaller than a threshold value from among the plurality of circles or ellipses extracted in the shape extraction step; and a specification step of specifying a tire portion in the captured image that corresponds to the tire of the vehicle based on the two circles or ellipses determined as a pair. The pair detection step further includes determining a pair of two circles or ellipses whose radius ratios are within a predetermined range. . According to yet another aspect of the present invention, an image processing method includes an acquisition step of acquiring a captured image obtained by photographing a side of a vehicle, a shape extraction step of extracting a circle or an ellipse by subjecting an edge included in the captured image to a Hough transform, a pair detection step of determining a pair of two circles or ellipses having a distance between center coordinates equal to or less than a threshold value from among the plurality of circles or ellipses extracted in the shape extraction step, a specification step of specifying a tire portion in the captured image corresponding to a tire of the vehicle based on the two circles or ellipses determined as a pair, a first processing step of executing a first image processing on the captured image, and and a second processing step of performing a second image processing different from the first image processing on the image, wherein the shape extraction step includes a first extraction step of extracting a first circle or ellipse by applying a Hough transform to edges included in the first image on which the first image processing has been performed, and a second extraction step of extracting a second circle or ellipse by applying a Hough transform to edges included in the second image on which the second image processing has been performed, and the pair detection step further includes determining a pair of the first circle or ellipse extracted in the first extraction step and the second circle or ellipse extracted in the second extraction step.
[0022] According to this aspect, it is possible to provide an image processing method capable of accurately extracting tire portions corresponding to the tires of a vehicle from a captured image obtained by capturing an image of the vehicle.
[0023] According to yet another aspect of the present invention, an image processing program causes a computer to execute an acquisition step of acquiring a captured image obtained by photographing a side of a vehicle, a shape extraction step of extracting circles or ellipses by subjecting edges included in the captured image to a Hough transform, a pair detection step of determining a pair of two circles or ellipses whose center coordinates have a distance equal to or smaller than a threshold value from among the plurality of circles or ellipses extracted in the shape extraction step, and an identification step of identifying a tire portion in the captured image corresponding to the tire of the vehicle based on the two circles or ellipses determined as a pair. The pair detection step further includes determining a pair of two circles or ellipses whose radius ratios are within a predetermined range. . According to yet another aspect of the present invention, an image processing program includes an acquisition step of acquiring a captured image obtained by photographing a side of a vehicle, a shape extraction step of extracting circles or ellipses by subjecting edges included in the captured image to a Hough transform, a pair detection step of determining a pair of two circles or ellipses having a distance between center coordinates equal to or less than a threshold value from among the plurality of circles or ellipses extracted in the shape extraction step, a specification step of specifying a tire portion in the captured image corresponding to a tire of the vehicle based on the two circles or ellipses determined as a pair, a first processing step of executing a first image processing on the captured image, and and a second processing step of performing a second image processing on the image different from the first image processing, wherein the shape extraction step includes a first extraction step of extracting a first circle or ellipse by applying a Hough transform to edges included in the first image on which the first image processing has been performed, and a second extraction step of extracting a second circle or ellipse by applying a Hough transform to edges included in the second image on which the second image processing has been performed, and the pair detection step further includes determining a pair of the first circle or ellipse extracted in the first extraction step and the second circle or ellipse extracted in the second extraction step.
[0024] According to this aspect, it is possible to provide an image processing program capable of accurately extracting tire portions corresponding to the tires of a vehicle from a captured image obtained by capturing an image of the vehicle. [Brief description of the drawings]
[0025] [Figure 1] 1 is a diagram showing an example of an overall overview of an overload detection system according to an embodiment of the present invention; [Diagram 2] FIG. 2 is a block diagram showing an example of a hardware configuration of the imaging apparatus. [Diagram 3] FIG. 2 is a block diagram showing an example of a hardware configuration of the image processing device. [Figure 4] 2 is a diagram illustrating an example of functions of a CPU included in the image processing device according to the present embodiment. FIG. [Diagram 5] 10 is a diagram showing an example of a relationship between a tire portion included in a captured image and a circle or an ellipse extracted by a Hough transform; [Figure 6] 10A and 10B are diagrams illustrating a tire deformation determination amount. [Figure 7] 13 is a flowchart showing an example of the flow of an overload detection process. [Figure 8] 10 is a flowchart showing an example of the flow of a tire portion extraction process. [Figure 9] 13 is a flowchart showing an example of the flow of an edge extraction process. [Figure 10] FIG. 11 illustrates an example of functions of a CPU included in an image processing device according to a second embodiment. [Figure 11] FIG. 11 is a diagram showing differences in parameters used in the first image processing and the second image processing. [Figure 12] FIG. 4 is a diagram showing an example of a first extraction condition and a second extraction condition. [Figure 13] 10 is a flowchart showing an example of the flow of a tire portion extraction process in the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0026] Hereinafter, an image processing device according to an embodiment of the present invention and an overload detection system including the image processing device will be described with reference to the drawings. In the following description, the same components are given the same reference numerals. Their names and functions are also the same. Therefore, detailed descriptions thereof will not be repeated.
[0027] <First embodiment> Fig. 1 is a diagram showing an example of an overall outline of an overload detection system in this embodiment. The overload detection system 1 includes an imaging device 10 and an image processing device 20. The imaging device 10 is provided, for example and not limited to, at a fixed position beside an entrance / exit lane of a motorway such as an expressway in a fixed orientation, and captures images of vehicles entering or exiting the motorway. The imaging device 10 includes a camera 11 (see Fig. 2). The camera 11 outputs a captured image obtained by capturing an image of a vehicle traveling on a travel road RW.
[0028] The image processing device 20 acquires the captured image from the imaging device 10, processes the image, and judges whether the vehicle is overloaded based on the deformation amount of the tires of the vehicle. The image processing device 20 judges whether the weight of the vehicle, including the weight of the load, exceeds a predetermined standard corresponding to the vehicle.
[0029] Although FIG. 1 shows a case where only one side of the vehicle is photographed, both sides of the vehicle may be photographed in order to improve measurement accuracy.
[0030] FIG. 2 is a block diagram showing an example of a hardware configuration of an imaging device. Referring to FIG. 2, imaging device 10 includes a camera 11, a control unit 12, a storage unit 13, and a communication unit 14. Control unit 12 is a central processing unit (CPU) that controls the entire imaging device 10. Storage unit 13 is a hard disk drive (HDD) capable of storing data in a non-volatile manner. Note that storage unit 13 may be a semiconductor memory such as a flash memory. Communication unit 14 is an interface for communicating with image processing device 20. Communication unit 14 may be connected to image processing device 20 by wire or wirelessly. Communication unit 14 may also be connected to image processing device 20 via a network such as the Internet.
[0031] The camera 11 includes an optical device that guides visible light input from the outside to each pixel position, and a detection unit that detects the amount of incident light of each color of RGB at each pixel position. The light collected by the optical device is imaged on the detection unit. The detection unit has photoelectric conversion elements arranged two-dimensionally, and performs photoelectric conversion on the received light to output a captured image made up of pixel values of a plurality of pixels arranged two-dimensionally. The captured image may be a color image made up of the brightness of each color of RGB, or a monochrome image made up of the brightness of one color. The photoelectric conversion elements are CMOS (Complementary Metal Oxide Semiconductor) sensors, CCD (Charge Coupled Device) sensors, etc.
[0032] The captured image output from the camera 11 is stored in the storage unit 13. The control unit 12 outputs the captured image temporarily stored in the storage unit 13 to the image processing device 20 via the communication unit 14 at an appropriate timing. The captured image may be a still image obtained by capturing an image of the vehicle at a certain point in time, or a video obtained by capturing an image of the vehicle for a continuous period of time.
[0033] When the captured images are still images, the imaging device 10 may output the still images at a predetermined time interval. When the captured images are moving images, the frame rate and the predetermined time interval may be such that at least a plurality of frames (e.g., 3 to 6 frames) can be obtained for each vehicle passing within the angle of view, and may be changeable according to the installation position of the imaging device 10 and the expected traveling speed of the vehicle within the angle of view of the camera 11.
[0034] Fig. 3 is a block diagram showing an example of a hardware configuration of an image processing device. Referring to Fig. 3, the image processing device 20 is a computer that performs arithmetic processing, and includes a CPU 201 for controlling the entire image processing device 20, a ROM (Read Only Memory) 202 that stores programs executed by the CPU 201, a RAM (Random Access Memory) 203 used as a working area for the CPU 201, an HDD 204 that stores data in a non-volatile manner, a communication unit 205 that connects the CPU 201 to a network, a display unit 206 that displays information, an operation unit 207 that accepts input of a user's operation, and an external storage device 210.
[0035] The communication unit 205 is an interface for connecting the image processing device 20 to a network. The network includes the Internet. Therefore, the CPU 201 can communicate with a computer connected to the Internet via the communication unit 205. The communication unit 205 is also an interface for communicating with an external device. The external device to which the communication unit 205 is communicatively connected may be, in addition to the imaging device 10, for example, a notification device that performs a notification operation for a driver of an overloaded vehicle, an operation control device for a crossing gate that blocks the passage of an overloaded vehicle, or a monitoring device for a monitor of an overloaded vehicle.
[0036] The CPU 201 downloads a program from a computer connected to a network such as the Internet and stores the program in the HDD 204. When a computer connected to the network writes a program to the HDD 204, the program is stored in the HDD 204. The CPU 201 loads the program stored in the HDD 204 into the RAM 203 and executes it.
[0037] A CD-ROM (Compact Disk Read Only Memory) 211 is attached to the external storage device 210. In this embodiment, an example will be described in which the CPU 201 executes a program stored in the ROM 202 or the HDD 204. The CPU 201 may control the external storage device 210 to read a program to be executed by the CPU 201 from the CD-ROM 211, and store the read program in the RAM 203 for execution.
[0038] The recording medium for storing the program executed by CPU 201 is not limited to CD-ROM 211, but may be a flexible disk, a cassette tape, an optical disk (MO (Magnetic Optical Disc) / MD (Mini Disc) / DVD (Digital Versatile Disc)), an IC card, an optical card, a mask ROM, an EPROM (Erasable Programmable ROM), or other semiconductor memory. The program here includes not only a program that can be directly executed by CPU 201, but also a source program, a compressed program, an encrypted program, and the like.
[0039] The HDD 204 stores vehicle information in addition to the programs executed by the CPU 201. The programs stored in the HDD 204 include an overload detection program. A non-volatile memory such as a flash memory may be used instead of the HDD 204. The programs and vehicle information may be stored in the ROM 202.
[0040] The vehicle information includes a specification database and a judgment reference value. The specification database includes data used to identify the type of tire and the type of vehicle. Specifically, the specification database includes the diameter of the tire mounted on the vehicle and the diameter of the rim mounted on the vehicle. The specification database may include the number of axles of the vehicle, the number of tires, the type of tire, the dry weight of the vehicle, and the like. The judgment reference value is, for example, a deformation judgment amount for a maximum vehicle weight predetermined for the vehicle. The deformation judgment amount is a value indicating the degree to which the tire deforms due to differences in vehicle weight. The judgment reference value is a threshold value used to determine whether or not there is an overload, and is a value determined for each type of vehicle and tire. The deformation judgment amount and the judgment reference value will be described in detail later.
[0041] The HDD 204 may further store captured images and their analysis results. The captured images and their analysis results are overwritten and updated in order from the oldest data within a predetermined capacity. The captured images and their analysis results may be deleted a predetermined time after they are stored in the HDD 204, and new captured images and their analysis results may be stored in the freed area. In particular, the captured images determined to be overloaded may be held until they are separately obtained from the outside via the communication unit 23 or the like.
[0042] Fig. 4 is a diagram showing an example of functions of a CPU included in the image processing device in this embodiment. The functions shown in Fig. 4 are realized by the CPU 201 included in the image processing device 20 by executing an overload detection program stored in the ROM 202, the HDD 204, or the CD-ROM 211. Referring to Fig. 4, the CPU 201 includes an acquisition unit 251 that acquires a captured image output by the camera 11 from the imaging device 10 by capturing an image of a subject, a vehicle information detection unit 253 that detects information about the subject vehicle, an edge image generation unit 265 that generates an edge image from the captured image, a shape extraction unit 261 that extracts a circular or elliptical shape from the edge image, a set detection unit 263, an identification unit 255 that identifies a tire portion corresponding to the tire of the subject vehicle in the captured image, a determination unit 257 that determines whether the state of the vehicle is overloaded or not, and an output unit 259 that notifies when it is determined that the vehicle is overloaded.
[0043] The acquisition unit 251 acquires from the imaging device 10 an image captured by the camera 11 of the imaging device 10, the image captured by the camera 11 capturing an image of a subject and outputting the image. The imaging device 10 captures an image of the vehicle as a subject while the vehicle passes through an imaging range. Since the imaging device 10 captures an image of the vehicle as a subject, the captured image includes a portion corresponding to the vehicle as the subject. The acquisition unit 251 outputs the captured image acquired from the imaging device 10 to the vehicle information detection unit 253, the identification unit 255, and the edge image generation unit 265. The captured image may be a moving image or a still image. When the captured image is a moving image, the acquisition unit 251 outputs one or more still images selected from a plurality of frames included in the moving image.
[0044] The vehicle information detection unit 253 detects vehicle information related to the vehicle. For example, the vehicle information detection unit 253 extracts a portion corresponding to the license plate of the vehicle included in the captured image, and extracts information written on the license plate by character recognition of the extracted portion. Then, the vehicle information detection unit 253 searches for vehicle information stored in advance in the HDD 204 using the information written on the license plate, and acquires vehicle information of the vehicle included as a subject in the captured image. Also, the vehicle type may be detected from the portion of the vehicle included in the captured image. The vehicle information includes a specification database and a judgment reference value. The specification database includes the diameter of the tire mounted on the vehicle and the diameter of the rim mounted on the vehicle. The judgment reference value is a deformation judgment amount for a maximum vehicle weight predetermined for the vehicle. The vehicle information detection unit 253 outputs the detected vehicle information to the condition determination unit 267 and the judgment unit 257.
[0045] In this embodiment, an example in which the vehicle information is stored in the HDD 204 will be described, but the vehicle information may be stored in a computer other than the image processing device 20. For example, when the vehicle information is stored in a server connected to the image processing device 20 via a network so as to be able to communicate with the image processing device 20, the vehicle information detection unit 253 transmits information written on the license plate to the server and acquires the vehicle information of the subject vehicle from the server. The vehicle information specification database and the judgment reference value may be stored in a separate computer. For example, the specification database may be stored in a server, and the judgment reference value may be stored in the image processing device 20.
[0046] The edge image generating unit 265 generates an edge image by performing image processing on the captured image input from the acquiring unit 251. The edge image is an image including edges included in the captured image. The edge image generating unit 265 generates an edge image by performing image processing on the captured image. The edge image generating unit 265 outputs the edge image to the shape extracting unit 261.
[0047] The image processing executed by the edge image generating unit 265 includes a smoothing process for smoothing the captured image, a differential image generating process for generating a differential image by differentiating the smoothed image, and a binarization process for binarizing the differential image. The smoothing process is a process for reducing the difference in pixel value between adjacent pixels for each of a plurality of pixels in an image. For example, the smoothing process is a process for performing a convolution operation on the image to be processed using a smoothing filter. When different smoothing filters are used, the degree of smoothing differs.
[0048] The differential image generation process is a process of generating a differential image showing the difference in pixel value between each of a plurality of pixels in an image and adjacent pixels. For example, the differential image generation process is a process of performing a convolution operation on the processing target image using a differential filter. The differential filter may be a first-order differential filter or a second-order differential filter.
[0049] The binarization process is a process of binarizing the differential image generated by the differential image generation process. For example, the binarization process is a process of comparing pixel values of multiple pixels in the differential image with a binarization threshold value to distinguish between edge pixels and non-edge pixels. If the binarization threshold value is different, the degree of binarization will be different.
[0050] Although the edge image generating unit 265 performs the smoothing process in the following description, the edge image generating unit 265 may perform the reduction process instead of the smoothing process or in addition to the smoothing process. The reduction process can provide the same effect as the smoothing process.
[0051] The shape extraction unit 261 extracts a circle or ellipse shape from the edge image. The shape extraction unit 261 may extract all circles or ellipses included in the edge image. In addition, since the diameter of the tire and the diameter of the rim mounted on the vehicle are known from the vehicle information, the shape extraction unit 261 may extract a circle or ellipse corresponding to the diameter of the tire and the diameter of the rim. The first diameter information and the second diameter information are determined from the ratio between the length of a reference part of the vehicle determined by the vehicle information and the diameters of the tire and the rim of the vehicle. The first diameter information is a diameter within a predetermined range from the diameter of the tire part of the vehicle in the captured image, and the second diameter information is a diameter within a predetermined range from the diameter of the rim part in the captured image. The first diameter information is set as a condition for extracting a circle or ellipse corresponding to the outer edge of the tire part, and the second diameter information is set as a condition for extracting a circle or ellipse corresponding to the outer edge of the rim part.
[0052] The reference portion of the vehicle may be previously determined as a portion that is easily extracted from the captured image. For example, the reference portion of the vehicle may be the height of the vehicle or the length of the vehicle. When the reference portion of the vehicle is the height of the vehicle, the diameter of the tire portion included in the captured image is determined from the height of the portion of the vehicle included in the captured image and the ratio of the height of the vehicle defined in the vehicle information to the diameter of the tire. Similarly, the diameter of the rim portion included in the captured image is determined from the height of the portion of the vehicle included in the captured image and the ratio of the height of the vehicle defined in the vehicle information to the diameter of the rim.
[0053] Here, the center of the ellipse is the point where the major axis and minor axis of the ellipse intersect. Depending on the positional relationship between the tire and the camera 11, the tire part and the rim part in the captured image may be a circle or an ellipse. When the optical axis of the camera 11 coincides with the direction of the axle passing through the center of the tire, the tire part and the rim part in the captured image become a circle, and when the optical axis of the camera 11 intersects with the direction of the axle passing through the center of the tire, the tire part and the rim part in the captured image become an ellipse. When the camera 11 is installed so that the optical axis of the camera 11 is at the same height as the axle passing through the center of the tire, the optical axis of the camera 11 and the axle passing through the center of the tire intersect in the horizontal direction. In this case, the tire part and the rim part in the captured image become an ellipse, but the vertical length does not change. For this reason, the diameter of the ellipse may be the major axis.
[0054] Furthermore, the shape extraction unit 261 may determine the threshold value of the voting value in the Hough transform according to the diameter of the tire portion and the diameter of the rim portion. The voting value voted for each pixel in the Hough transform increases as the radius of the circle or ellipse increases. Therefore, the threshold value may be determined using a table or an arithmetic expression that predetermines the relationship between the diameter of the circle or ellipse and the threshold value.
[0055] The threshold value may be corrected according to the diameter of the tire portion and the diameter of the rim portion included in the captured image. The tire portion in the captured image does not necessarily include the entire outer edge of the tire, and similarly, the rim portion in the captured image does not necessarily include the entire outer edge of the rim. For this reason, the threshold value may be corrected using a correction value obtained by an experiment or the like. The correction value is preferably determined based on the degree of smoothing processing and the threshold value of the binarization processing.
[0056] The pair detection unit 263 detects a pair of two circles or ellipses whose center coordinates are within a predetermined range from among the multiple circles or ellipses extracted from the edge image by the shape extraction unit 261. The rotation axis of the tire and the rotation axis of the rim coincide. Therefore, the center of a first circle or ellipse including the outer edge of the tire portion and the center of a second circle or ellipse including the outer edge of the rim portion in the captured image should coincide. Therefore, there is a high probability that a pair of two circles or ellipses whose center coordinates are within a predetermined range corresponds to a pair of a circle or ellipse including the outer edge of the tire portion and a circle or ellipse including the outer edge of the rim portion.
[0057] Furthermore, the pair detection unit 263 determines a pair of two circles or ellipses whose radius ratios are within a predetermined range. The radius ratio between the tire and the rim is determined by the vehicle. Therefore, when there are multiple circles or ellipses whose center coordinate distances are within a predetermined range, it is possible to identify a pair of two circles or ellipses whose radius ratios are within a predetermined range. Therefore, when a vehicle is identified, it is possible to more accurately extract a pair of two circles or ellipses that respectively correspond to the outer edge of the tire portion and the outer edge of the rim portion.
[0058] The pair detection unit 263 determines the radius ratio based on the respective radii of the tire and the rim defined in the vehicle information, so that the radius ratio is determined accurately.
[0059] FIG. 5 is a diagram showing an example of the relationship between a tire portion included in a captured image and a circle or ellipse extracted by a Hough transform. Referring to FIG. 5, the outer edge of the tire portion and the outer edge of the rim portion included in the captured image are indicated by thin solid lines. Circles extracted by the Hough transform are indicated by dotted lines or dashed lines. In addition to a first circle indicated by a thin dotted line relative to the outer edge of the tire portion and a second circle indicated by a thick dotted line relative to the outer edge of the rim portion, two circles indicated by thick dashed lines are included as circles extracted by the Hough transform. Of these four circles, a pair of two circles whose center coordinates are within a predetermined range is the first circle corresponding to the outer edge of the tire portion indicated by a thin dotted line and the second circle corresponding to the outer edge of the rim portion indicated by a thick dotted line. The two circles indicated by the dashed lines are circles that are erroneously detected by the Hough transform.
[0060] Returning to FIG. 4, the identification unit 255 receives the captured image from the acquisition unit 251 and the set of two circles or ellipses from the set detection unit 263. The identification unit 255 identifies the tire part in the captured image. Specifically, the identification unit 255 identifies the outer edge of the tire part in the captured image based on the first circle or ellipse with a large diameter included in the set input from the set detection unit 263, and identifies the outer edge of the rim part in the captured image based on the second circle or ellipse with a small diameter included in the set input from the set detection unit 263. The identification unit 255 identifies an edge included in a predetermined range from the first circle or ellipse as a part of the outer edge of the tire part in the captured image. In addition, the identification unit 255 determines an edge continuous with an edge constituting a part of the outer edge of the identified tire part as a part of the outer edge of the tire part. The part of the tire that comes into contact with the ground may not be included in a predetermined range from the first circle or ellipse in the captured image. Since the portion of the tire that does not contact the ground is included within a predetermined range from the first circle or ellipse in the captured image, the edge that is continuous with the edge corresponding to the portion of the tire that does not contact the ground is set as the outer edge of the tire portion, and the outer edge of the tire portion for the portion of the tire that contacts the ground is determined. The identification unit 255 outputs the outer edge of the tire portion in the captured image to the determination unit 257. Note that, within the first circle or ellipse, an edge that is parallel to the road surface in the captured image may be determined as the outer edge of the tire portion.
[0061] The determination unit 257 receives the outer edge of the tire portion in the captured image from the identification unit 255 and the vehicle information from the vehicle information detection unit 253. The determination unit 257 determines whether the vehicle is overloaded or not based on the shape of the outer edge of the tire portion and the vehicle information. For example, the determination unit 257 determines the center, radius, and deformation judgment amount of the tire portion based on the outer edge of the tire portion, and determines whether the deformation judgment amount exceeds a judgment reference value corresponding to the load limit weight of the vehicle. If the deformation judgment amount exceeds the judgment reference value, the determination unit 257 determines that the vehicle is overloaded, and outputs a warning instruction to the output unit 259.
[0062] In response to the input of the warning instruction, the output unit 259 outputs warning information. For example, the output unit 259 displays a warning message on the display unit 206. Also, a warning sound may be generated. Furthermore, a gate may be closed to prevent the passage of vehicles.
[0063] FIG. 6 is a diagram for explaining the deformation determination amount of a tire. Referring to FIG. 6, a tire T is attached to a rim R of a wheel of a wheel. Although the tire T has a structure such as a recess on its surface, to be precise, the following description will be given assuming that a circle including the outer edge of the tire is detected from a front image of the tire T viewed from the rotation axis direction, ignoring the structure such as the recess. Here, the horizontal direction is indicated as the x-axis direction, and the vertical direction is indicated as the y-axis direction. The road surface on which the tire touches the ground is assumed to be substantially horizontal and extends along the x-axis direction. Although not particularly limited, the following description will be given assuming that the shooting range of the camera 11 is a rectangular area, and the vertical and horizontal directions of the captured image are respectively along the y-axis direction and the x-axis direction. The origin position of each axis may be arbitrarily determined, for example, at the lower left end of the image or the center position of the image.
[0064] The tire T has a diameter L2t when not deformed. The tire T is deformed into a planar shape along the road surface by the weight of the vehicle, and is compressed vertically by a compression width dLy. In the front image, the part where the tire T comes into contact with the road surface is called the ground line. The ground width Lcx between both ends of the ground line becomes longer as the weight of the vehicle including the load weight increases, if the tire air pressure, material, and structure are constant. Accordingly, the distance Lcy from the rotation axis position OR, which is the center of rotation of the tire T, to the road surface and the vertical width L2cy of the tire also become shorter. In other words, the shape of the tire T is a combination of the ground line whose bottom surface is linear over the ground width Lcx and the arc part that does not come into contact with the ground and does not deform. Therefore, if the parameters indicating the ground part and the parameters indicating the arc part are obtained, the shape of the tire T can be specified. On the other hand, the rim R does not deform from a perfect circle shape due to the weight of the vehicle, so the rim radius Lr does not change in the x-axis direction and the y-axis direction.
[0065] Here, in order to determine whether or not there is an overload, the contact width Lcx is set as a deformation value as a parameter indicating the contact portion of the tire T, the radius Lth of the tire T is set as a tire reference value as a parameter indicating the arc portion of the tire T, and the ratio of the deformation value to the tire reference value is set as a deformation judgment amount. The greater the weight of the vehicle, the greater the deformation judgment amount. The presence or absence of an overload is determined by determining whether or not the deformation judgment amount of the tire T exceeds a judgment reference value corresponding to the load limit weight set for the vehicle. The load limit weight set for the vehicle is the maximum weight previously set for the vehicle.
[0066] It should be noted that other combinations of values may be used as the pair of deformation values and tire reference values, so long as the pair includes a value that varies with the vehicle weight and a value that does not vary with the vehicle weight.
[0067] FIG. 7 is a flow chart showing an example of the flow of the overload detection process. The overload detection process is a process executed by the CPU 201 included in the image processing device 20, as the CPU 201 executes an image processing program stored in the ROM 202, the HDD 204, or the CD-ROM 211. Referring to FIG. 7, the CPU 201 included in the image processing device 20 controls the imaging device 10 to cause the camera 11 to capture an image of the vehicle as a subject (step S01). In the next step S02, a captured image obtained by the camera 11 capturing an image of the vehicle is acquired from the imaging device 10, and the process proceeds to step S03. Then, vehicle information is detected. Based on information written on the license plate of the vehicle included in the captured image, vehicle information corresponding to the vehicle is acquired from the vehicle information stored in the HDD 204.
[0068] In step S04, a tire portion extraction process is executed, and the process proceeds to step S05. The tire portion extraction process will be described in detail later, but is a process for extracting a portion of the captured image that corresponds to the tire of the vehicle as a tire portion from the captured image.
[0069] In step S05, it is determined whether the vehicle is overloaded. Based on the shape of the outer edge of the tire portion extracted in step S04 and the vehicle information, it is determined whether the vehicle is overloaded. Specifically, based on the outer edge of the tire portion, a deformation judgment amount is determined from the radius Lth and the contact width Lcx of the tire portion, and it is determined whether the deformation judgment amount exceeds a judgment reference value corresponding to the load limit weight of the vehicle. If the deformation judgment amount exceeds the judgment reference value, it is determined that the vehicle is overloaded, and the process proceeds to step S06, but if not, the process ends.
[0070] In step S06, a warning is output. For example, a warning message is displayed on the display unit 206. Also, a warning sound may be generated. Furthermore, a gate may be closed to prevent the passage of vehicles.
[0071] Fig. 8 is a flowchart showing an example of the flow of the tire portion extraction process. The tire portion extraction process is a process executed in step S04 of the overload detection process. Referring to Fig. 8, the CPU 201 executes an edge extraction process (step S11) and advances the process to step S12. The edge extraction process will be described in detail later, but includes a smoothing process, a differential image generation process, and a binarization process, and is a process for converting a captured image into an edge image.
[0072] In step S12, a Hough transform is performed, and the process proceeds to step S 13. A Hough transform is performed on the edge image generated in step S11 as the processing target.
[0073] In step S13, a pair of the first shape and the second shape is determined, and the process proceeds to step S14. In step S12, the Hough transform is performed to identify a candidate circle or ellipse that includes the outer edge of the tire portion included in the captured image as a part thereof, and a circle or ellipse that includes the outer edge of the rim portion included in the captured image. Therefore, a pair of a first circle or ellipse and a second circle or ellipse whose center coordinate distance is within a predetermined range is determined. Furthermore, when there are multiple circles or ellipses whose center coordinate distance is within a predetermined range, a pair of two circles or ellipses whose radius ratio is within a predetermined range is determined. Therefore, when a vehicle is identified, a pair of two circles or ellipses that respectively correspond to the outer edge of the tire portion and the outer edge of the rim portion can be more accurately extracted. The radius ratio is determined based on the respective radii of the tire and the rim that are determined by the vehicle information. Of the two circles or ellipses whose center coordinate distance is within a predetermined range, the first circle or ellipse with the larger radius is determined as the first shape, and the second circle or ellipse with the smaller radius is determined as the second shape.
[0074] In step S14, the tire portion in the captured image is identified, and the process returns to the overload detection process. Specifically, in the captured image, the portion surrounded by the first shape and the second shape extracted in step S13 is identified as the tire portion.
[0075] FIG. 9 is a flowchart showing an example of the flow of edge extraction processing. The edge extraction processing is processing executed in step S11 of the tire portion extraction processing. Referring to FIG. 9, the CPU 201 executes a smoothing processing on the captured image (step S21), and the processing proceeds to step S22. In step S22, a differential image generating processing is executed, and the processing proceeds to step S23. The smoothed captured image is treated as a processing target and a convolution operation is performed using a differential filter to generate a differential image. In step S23, a binarization processing is executed, and the processing returns to the tire portion extraction processing.
[0076] <Second embodiment> In the overload detection system 1 in the second embodiment, the image processing device 20 performs different image processing on the captured image to extract the tire portion from the captured image from the first image processing, and performs different image processing on the captured image to extract the rim portion from the captured image. The following mainly describes the differences from the overload detection system 1 in the first embodiment.
[0077] Fig. 10 is a diagram showing an example of functions of a CPU included in an image processing device in the second embodiment. The functions shown in Fig. 10 differ from those shown in Fig. 4 in that edge image generating unit 265, shape extracting unit 261 and pair detecting unit 263 are changed to edge image generating unit 265A, shape extracting unit 261A and pair detecting unit 263A, respectively, and in that condition determining unit 267 that determines conditions for extracting a circle or an ellipse from an edge image is added. The other functions are the same as those shown in Fig. 4, and therefore description thereof will not be repeated.
[0078] The edge image generating unit 265A generates an edge image by performing image processing on the captured image input from the acquiring unit 251. The edge image is an image including an edge included in the captured image. The edge image generating unit 265A includes a first processing unit 281 that generates a first edge image by performing a first image processing on the captured image, and a second processing unit 283 that generates a second edge image by performing a second image processing on the captured image. The first processing unit 281 outputs the first edge image to the shape extracting unit 261A, and the second processing unit 283 outputs the second edge image to the shape extracting unit 261A.
[0079] The first image processing performed by the first processing unit 281 and the second image processing performed by the second processing unit 283 each include a smoothing process for smoothing the captured image, a differential image generation process for generating a differential image by differentiating the smoothed image, and a binarization process for binarizing the differential image.
[0080] The first image processing and the second image processing are different processes. FIG. 11 is a diagram showing the difference in parameters used in the first image processing and the second image processing. Referring to FIG. 11, the smoothing process in the first image processing and the smoothing process in the second image processing are different in the degree of smoothing. The smoothing process in the first image processing has a stronger degree of smoothing than the smoothing process in the second image processing. Since smoothing is a process that reduces the difference in pixel values of adjacent pixels, the stronger the degree of smoothing, the less noise is contained in the captured image. Conversely, the lower the degree of smoothing, the less noise is contained in the captured image.
[0081] The binarization process in the first image processing and the binarization process in the second image processing have different binarization thresholds. The threshold of the binarization process in the first image processing is lower than the threshold of the binarization process in the second image processing. A differential image shows the difference in pixel value between adjacent pixels. Therefore, the lower the threshold of the binarization process, the smaller the difference in pixel value between adjacent pixels is extracted. Therefore, the first image processing detects edges with smaller changes in pixel value than the second image processing. Conversely, the higher the threshold of the binarization process, the larger the difference in pixel value between adjacent pixels is extracted. Therefore, the second image processing detects edges with larger changes in pixel value than the first image processing.
[0082] Since the degree of smoothing in the first image processing is stronger than that in the second image processing, the first differential image generated by differentiating the image after the smoothing processing in the first image processing has less noise than the second differential image generated by differentiating the image after the smoothing processing in the second image processing. Therefore, the threshold value for binarization in the first image processing can be set to a lower value than the threshold value for binarization in the second image processing. As a result, edges with small changes in brightness in the captured image are extracted from the first differential image generated by the first image processing. Therefore, the first edge image obtained by binarizing the first differential image by the first processing unit 281 includes edges with small changes in brightness than the second edge image obtained by binarizing the second differential image by the second processing unit 283.
[0083] Furthermore, the second differential image generated by the second image processing has more noise than the first differential image generated by the first image processing, but since the binarization threshold in the second image processing is higher than the binarization threshold in the first image processing, it is possible to prevent noise from being erroneously detected as an edge, and only edges with large changes in brightness in the captured image are extracted from the first differential image generated by the second image processing. Therefore, the second edge image generated by the second processing unit 283 includes edges with larger changes in brightness than the first edge image generated by the first processing unit 281.
[0084] In the captured image, the vehicle tire often has a small difference in brightness from the surrounding area of the tire. On the other hand, the vehicle rim is surrounded by tires, so the difference in brightness between the rim and the surrounding tires is often large. For this reason, the first image processing generates a first edge image suitable for extracting a portion corresponding to the outer edge of the vehicle tire from the captured image, and the second image processing generates a second edge image suitable for extracting a portion corresponding to the outer edge of the vehicle rim from the captured image.
[0085] 10, the shape extraction unit 261A extracts a circular or elliptical shape from the edge image in accordance with the condition determined by the condition determination unit 267. The shape extraction unit 261A includes a first extraction unit 271 that extracts a first circular or elliptical shape from the first edge image input from the first processing unit 281, and a second extraction unit 273 that extracts a second circular or elliptical shape from the second edge image input from the second processing unit 283.
[0086] The condition determination unit 267 includes a first setting unit 285 and a second setting unit 287. The first setting unit 285 sets a first extraction condition for the first extraction unit 271 to extract a portion corresponding to the outer edge of the tire of the vehicle in the captured image as a first circle or ellipse based on the vehicle information. Specifically, the first setting unit 285 determines first diameter information and a threshold value of a voting value in the Hough transform. The first diameter information is a diameter within a predetermined range from the diameter of the tire part of the vehicle in the captured image. The first setting unit 285 determines the diameter of the tire part of the vehicle in the captured image from the ratio between the length of the reference part of the vehicle determined by the vehicle information and the diameter of the tire of the vehicle. The reference part of the vehicle may be previously determined as a part that is easy to extract from the captured image. For example, the reference part of the vehicle may be the height of the vehicle or the length of the vehicle. When the reference part of the vehicle is the vehicle height, the first setting unit 285 determines the diameter of the tire part included in the captured image from the height of the vehicle part included in the captured image and the ratio of the vehicle height and tire diameter defined in the vehicle information. The first setting unit 285 sets the first diameter information as a condition for extracting a first circle or ellipse corresponding to the outer edge of the tire part.
[0087] The voting value voted for each pixel in the Hough transform increases as the radius of the circle or ellipse increases. Therefore, the condition determination unit 267 determines a threshold value according to the first diameter information. The threshold value is determined using a table or an arithmetic expression that predetermines the relationship between the first diameter information and the threshold value. The first setting unit 285 sets the first diameter information to the diameter of the first circle or ellipse to be extracted by the Hough transform, and sets the threshold value determined for the diameter to the threshold value used for judgment in the Hough transform.
[0088] Here, the center of the ellipse is the point where the major axis and minor axis of the ellipse intersect. Depending on the positional relationship between the tire and the camera 11, the tire portion in the captured image may be a circle or an ellipse. When the optical axis of the camera 11 coincides with the direction of the axle passing through the center of the tire, the tire portion in the captured image becomes a circle, and when the optical axis of the camera 11 intersects with the direction of the axle passing through the center of the tire, the tire portion becomes an ellipse. When the camera 11 is installed so that the optical axis of the camera 11 is at the same height as the axle passing through the center of the tire, the optical axis of the camera 11 and the axle passing through the center of the tire intersect in the horizontal direction. In this case, the tire portion in the captured image becomes an ellipse, but the vertical length does not change. For this reason, the diameter of the ellipse may be the major axis.
[0089] The second setting unit 287 sets a second extraction condition for the second extraction unit 273 to extract a portion corresponding to the outer edge of the vehicle rim in the captured image as a second circle or ellipse based on the vehicle information. Specifically, the second setting unit 287 determines the second diameter information and a threshold value of the voting value in the Hough transform. The second diameter information is a diameter within a predetermined range from the diameter of the rim portion of the vehicle in the captured image. The second setting unit 287 determines the diameter of the rim portion of the vehicle in the captured image from the ratio between the length of the reference portion of the vehicle defined by the vehicle information and the diameter of the rim of the vehicle. When the reference portion of the vehicle is the height of the vehicle, the second setting unit 287 determines the diameter of the rim portion included in the captured image from the height of the portion of the vehicle included in the captured image and the ratio between the height of the vehicle defined by the vehicle information and the diameter of the rim. The second setting unit 287 sets the second diameter information to the diameter of the second circle or ellipse to be extracted by the Hough transform, and sets the threshold value determined for the second diameter information to the threshold value used for judgment in the Hough transform. The threshold value is determined using a table or an arithmetic expression that defines a relationship between the second diameter information and the threshold value in advance. The threshold value may be determined using a table or an arithmetic expression that defines a relationship between the diameter of the rim portion of the vehicle in the captured image and the threshold value in advance.
[0090] The first setting unit 285 may correct the threshold value according to the diameter of the tire portion included in the captured image, and the second setting unit 287 may correct the threshold value according to the diameter of the rim portion included in the captured image. The tire portion in the captured image does not necessarily include the entire outer edge of the tire, and similarly, the rim portion in the captured image does not necessarily include the entire outer edge of the rim. For this reason, the threshold value may be corrected using a correction value obtained by experiment or the like. The correction value is preferably determined based on the degree of smoothing processing and the threshold value of binarization processing.
[0091] 12 is a diagram showing an example of a first extraction condition and a second extraction condition, in which the radius of the circle or ellipse is larger than that of the second extraction condition, and the threshold value is smaller than that of the second extraction condition.
[0092] Returning to FIG. 10, the shape extraction unit 261A includes a first extraction unit 271 and a second extraction unit 273. The first extraction unit 271 extracts a first circle or ellipse by performing a Hough transform on the first edge image input from the first processing unit 281 according to the first extraction condition set by the first setting unit 285. Since the first extraction condition is a value for extracting a tire portion corresponding to the tire of the vehicle, which is the subject, from the captured image, the first circle or ellipse is extracted as a candidate for the outer edge of the tire portion included in the captured image. There are cases where a plurality of first circles or ellipses are extracted. The first extraction unit 271 outputs a pair of the center coordinates and the radius of the first circle or ellipse to the identification unit 255.
[0093] The second extraction unit 273 extracts a second circle or ellipse by performing a Hough transform on the second edge image input from the second processing unit 283 according to the second extraction conditions set by the second setting unit 287. Since the second extraction conditions are values for extracting a rim portion corresponding to the rim of the vehicle, which is the subject, from the captured image, the second circle or ellipse is extracted as a candidate for the outer edge of the rim portion included in the captured image. There are cases where multiple second circles or ellipses are extracted. The second extraction unit 273 outputs a pair of the center coordinates and radius of the second circle or ellipse to the identification unit 255.
[0094] The set detection unit 263A receives one or more first circles or ellipses from the first extraction unit 271 and one or more second circles or ellipses from the second extraction unit 273. The set detection unit 263A detects a set of a first circle or ellipse and a second circle or ellipse whose center coordinates are within a predetermined range from the one or more first circles or ellipses and the one or more second circles or ellipses. The rotation axis of the tire and the rotation axis of the rim coincide with each other. Therefore, the first circle or ellipse included in the set detected by the set detection unit 263 corresponds to the outer edge of the tire portion, and the second circle or ellipse corresponds to the outer edge of the rim portion.
[0095] The set detection unit 263A receives one or more pairs of the center coordinates and radius of a first circle or ellipse from the first extraction unit 271, and receives one or more pairs of the center coordinates and radius of a second circle or ellipse from the second extraction unit 273. Specifically, the set detection unit 263A determines a set of a first circle or ellipse and a second circle or ellipse whose center coordinates are within a predetermined range as a target set. When there are multiple sets of a first circle or ellipse and a second circle or ellipse whose center coordinates are within a predetermined range, the set detection unit 263A determines a set of two circles or ellipses whose radius ratios are within a predetermined range. Since the radius ratio between the tire and the rim is determined by the vehicle, when the vehicle is specified, it is possible to more accurately extract a set of two circles or ellipses that respectively correspond to the outer edge of the tire part and the outer edge of the rim part. The set detection unit 263A determines the radius ratio based on the radii of the tire and the rim determined by the vehicle information. Therefore, the radius ratio is accurately determined.
[0096] In the image processing device in the second embodiment, the overload detection process shown in FIG. 7 is executed. FIG. 13 is a flowchart showing an example of the flow of the tire portion extraction process in the second embodiment. The tire portion extraction process is a process executed in step S04 of the overload detection process. With reference to FIG. 13, the CPU 201 determines a first condition (step S31). The first condition is a condition determined for detecting the outer edge of the tire portion included in the captured image. The first condition includes parameters for image processing and parameters used in the Hough transform. The parameters for image processing include parameters for determining the degree of smoothing processing and parameters for determining the threshold value for binarization processing. The parameters used in the Hough transform include the diameter of the circle or ellipse and a threshold value to be compared with the voting value. In addition, a correction value for correcting the threshold value may be determined.
[0097] In step S32, a first edge extraction process is executed, and the process proceeds to step S33. In step S32, the edge extraction process shown in Fig. 9 is executed using the image processing parameters determined as the first condition in step S31. The edge extraction process includes a smoothing process, a differential image generation process, and a binarization process, and is a process for converting the captured image into a first edge image.
[0098] In step S33, a first Hough transform is performed, and the process proceeds to step S34. The first edge image generated in step S32 is treated as a processing target, and the Hough transform is performed using the parameters used for the Hough transform determined as the first conditions in step S31.
[0099] In step S34, a first shape is extracted. In step S33, the Hough transform is performed to identify candidates for a circle or ellipse that includes the outer edge of the tire portion included in the captured image, and the first shape is extracted based on edges included in the area of the identified circle or ellipse in the captured image. The outer edge of the tire portion is the subject of extraction, and the portion where the tire contacts the ground is a horizontal straight line, so a shape composed of edges in the captured image that overlap with the identified circle or ellipse and horizontal edges located near and above the lowest point of the identified circle or ellipse is extracted as the first shape.
[0100] In step S35, a second condition is determined. The second condition is a condition determined to detect the outer edge of the rim portion included in the captured image. The second condition includes image processing parameters and parameters used in the Hough transform. The image processing parameters include a parameter that determines the degree of smoothing processing and a parameter that determines a threshold value of binarization processing. The smoothing processing parameters included in the second condition are parameters that provide a lower degree of smoothing than the parameters in the first condition. The binarization processing parameters included in the second condition are parameters that provide a higher degree of binarization than the parameters in the first condition, in other words, parameters that have a larger value.
[0101] In step S36, a second edge extraction process is executed, and the process proceeds to step S37. In step S36, the edge extraction process shown in Fig. 9 is executed using the image processing parameters determined as the second condition in step S35. The edge extraction process includes a smoothing process, a differential image generation process, and a binarization process, and is a process for converting the captured image into a second edge image.
[0102] In step S37, a second Hough transform is performed, and the process proceeds to step S38. The second edge image generated in step S36 is treated as a processing target, and the Hough transform is performed using the parameters used for the Hough transform determined as the second conditions in step S35.
[0103] In step S38, the second shape is extracted, and the process proceeds to step S13. By performing the Hough transform, a candidate circle or ellipse that includes the outer edge of the rim portion included in the captured image is identified, and the second shape is extracted based on the edges included in the area within the identified circle or ellipse in the captured image. Since the outer edge of the rim is the subject of extraction, a shape formed by edges that overlap with the identified circle or ellipse is extracted as the second shape.
[0104] In step S13, a pair of the first shape and the second shape is determined, and the process proceeds to step S14. Among the first shape extracted in step S34 and the second shape extracted in step S38, a pair of the first shape and the second shape whose center coordinate distance is within a predetermined range is determined. Furthermore, when there are a plurality of pairs of the first shape and the second shape whose center coordinate distance is within a predetermined range, a pair of the first shape and the second shape whose radius ratio is within a predetermined range is determined. Therefore, when a vehicle is specified, a pair of the first shape and the second shape corresponding to the outer edge of the tire portion and the outer edge of the rim portion, respectively, can be extracted more accurately. The radius ratio is determined based on the radius of each of the tire and the rim determined in the vehicle information.
[0105] In step S14, the tire portion in the captured image is identified, and the process returns to the overload detection process. Specifically, in the captured image, the portion surrounded by the first shape and the second shape extracted in step S13 is identified as the tire portion.
[0106] As described above, in the overload detection system 1 in the first embodiment, the image processing device 20 includes an acquisition unit 251 that acquires a captured image obtained by photographing the side of the vehicle, a shape extraction unit 261 that extracts a circle or an ellipse by performing a Hough transform on an edge included in the captured image, a pair detection unit 263 that determines a pair of two circles or ellipses in which the difference in distance between center coordinates is equal to or less than a threshold value from among the extracted circles or ellipses, and an identification unit 255 that identifies a tire portion corresponding to the tire of the vehicle in the captured image based on the two circles or ellipses determined as the pair. The tire is mounted on a rim that is mounted on the vehicle. Since the tire and the rim have the same center of rotation, the outline of the tire and the outline of the rim are represented in the captured image as two circles or ellipses in which the distance between the center coordinates is equal to or less than a threshold value. Therefore, the tire portion corresponding to the tire of the vehicle can be accurately extracted from the captured image obtained by photographing the vehicle.
[0107] In addition, the image processing device 20 determines a pair of two circles or ellipses whose radius ratios are within a predetermined range. Since the radius ratio between the tire and the rim is determined by the vehicle, the tire part can be extracted more accurately when the vehicle is specified.
[0108] In particular, the predetermined range is determined based on the respective radii of the tire and the rim mounted on the vehicle, and therefore, since the respective radii of the tire and the rim are determined depending on the vehicle, it is possible to extract the tire portion more accurately when the vehicle is specified.
[0109] Furthermore, the image processing device 20 judges whether the vehicle is overloaded or not based on the tire portion identified in the captured image, so that it is possible to easily judge whether the vehicle is overloaded from the captured image.
[0110] The image processing device 20 in the second embodiment further includes a first processing unit 281 that performs a first image processing on the captured image and a second processing unit 283 that performs a second image processing on the captured image, which is different from the first image processing, and extracts a first circle or ellipse by performing a Hough transform on the edges included in the first image on which the first image processing has been performed, extracts a second circle or ellipse by performing a Hough transform on the edges included in the second image on which the second image processing has been performed, and determines a pair of the first circle or ellipse and the second circle or ellipse. Since the first image processing and the second image processing are different, the edges extracted from the image on which the first image processing has been performed on the captured image and the edges extracted from the image on which the second image processing has been performed on the captured image may be the same or different. If the first image processing is a processing in which a portion corresponding to the tire contour of the vehicle is likely to appear as an edge in the captured image, the first circle or ellipse including the portion corresponding to the tire contour is likely to be extracted. Furthermore, if the second image processing is a process that makes the portion of the captured image that corresponds to the outline of the vehicle rim appear as an edge, the second circle or ellipse that includes the portion that corresponds to the outline of the rim can be easily extracted. This makes it possible to accurately extract the tire portion that corresponds to the tire of the vehicle from the captured image obtained by capturing an image of the vehicle.
[0111] In the image processing executed by the image processing device 20 in the second embodiment, the degree of smoothing in the smoothing process included in the first image processing is greater than the degree of smoothing in the smoothing process included in the second image processing, and the binarization threshold in the binarization process included in the first image processing is smaller than the binarization threshold in the binarization process included in the second image processing. Therefore, the differential image generated by the first image processing has less noise than the differential image generated by the second image processing, and edges with small changes in brightness in the captured image can be extracted from the differential image generated by the first image processing. At this time, since the differential image generated by the first image processing has less noise than the differential image generated by the second image processing, it is possible to prevent noise from being erroneously detected as an edge. Furthermore, the differential image generated by the second image processing has more noise than the differential image generated by the first image processing. However, since the binarization threshold in the second image processing is larger than the binarization threshold in the first image processing, it is possible to prevent the noise from being erroneously detected as an edge, and it is possible to extract only edges with large changes in brightness in the captured image from the differential image generated by the second image processing.
[0112] In addition, in the image processing executed by the image processing device 20 in the second embodiment, reduction processing may be performed instead of or in addition to the smoothing processing.
[0113] Moreover, the image processing device 20 in the first and second embodiments sets the first diameter information determined based on the size of the tire mounted on the vehicle as the first condition, and sets the second diameter information determined based on the size of the rim mounted on the vehicle as the second condition. Therefore, the part corresponding to the outer edge of the tire can be extracted as a first circle or ellipse, and the part corresponding to the outer edge of the rim can be extracted as a second circle or ellipse.
[0114] Furthermore, the image processing device 20 in the first and second embodiments sets a first threshold determined by the first diameter information as a first condition to be compared with the voting result in the Hough transform, and sets a second threshold determined by the second diameter information as a second condition to be compared with the voting result in the Hough transform. Therefore, a first circle or ellipse corresponding to the diameter of the outer edge of the tire and a second circle or ellipse corresponding to the diameter of the outer edge of the rim can be extracted from the captured image.
[0115] In this embodiment, an example is shown in which the camera 11 outputs a captured image obtained by photoelectrically converting visible light, but it may also be possible to output a captured image obtained by photoelectrically converting infrared light. As the temperature of the tires increases when the vehicle runs, it becomes easier to identify the tire part by extracting a part where infrared light is detected at a predetermined value or more from the captured image.
[0116] The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present invention is defined by the claims, not the above description, and is intended to include all modifications within the meaning and scope of the claims. [Explanation of symbols]
[0117] 1 overload detection system, 10 imaging device, 11 camera, 12 control unit, 13 memory unit, 14 communication unit, 20 image processing device, 23 communication unit, 201 CPU, 202 ROM, 203 RAM, 204 HDD, 205 communication unit, 206 display unit, 207 operation unit, 210 external storage device, 211 CD-ROM, 251 acquisition unit, 253 vehicle information detection unit, 255 identification unit, 257 judgment unit, 259 output unit, 261, 261A shape extraction unit, 263, 263A set detection unit, 265, 265A edge image generation unit, 267 condition determination unit, 271 first extraction unit, 273 second extraction unit, 281 first processing unit, 283 second processing unit, 285 first setting unit, 287 second setting unit.
Claims
1. An acquisition means for acquiring an image obtained by photographing a side of a vehicle; a shape extraction means for extracting a circle or an ellipse by subjecting edges included in the captured image to a Hough transform; a pair detection means for determining a pair of two circles or ellipses, the distance between the center coordinates of which is equal to or smaller than a threshold value, from among the plurality of circles or ellipses extracted by the shape extraction means; and an identification means for identifying a tire portion in the captured image that corresponds to a tire of the vehicle based on the two circles or ellipses determined in the set, The pair detection means further determines a pair of two circles or ellipses whose radius ratio is within a predetermined range.
2. An acquisition means for acquiring an image obtained by photographing a side of a vehicle; a shape extraction means for extracting a circle or an ellipse by subjecting edges included in the captured image to a Hough transform; a pair detection means for determining a pair of two circles or ellipses, the distance between the center coordinates of which is equal to or smaller than a threshold value, from among the plurality of circles or ellipses extracted by the shape extraction means; a tire portion that corresponds to the tire of the vehicle in the captured image based on the two circles or ellipses determined in the pair; a first processing means for executing a first image processing on the captured image; a second processing means for executing a second image processing different from the first image processing on the captured image, the shape extraction means includes a first extraction means for extracting a first circle or an ellipse by performing a Hough transform on an edge included in the first image on which the first image processing has been performed; and second extraction means for extracting a second circle or ellipse by performing a Hough transform on an edge included in the second image on which the second image processing has been performed, The pair detection means further determines a pair of the first circle or ellipse extracted by the first extraction means and the second circle or ellipse extracted by the second extraction means.
3. The image processing device according to claim 1 , wherein the predetermined range is determined based on the respective radii of a tire and a rim mounted on the vehicle.
4. 4. The image processing apparatus according to claim 3, further comprising a determination unit that determines whether or not the vehicle is overloaded based on the tire portion identified by the identification unit.
5. An image processing device according to any one of claims 1 to 4, an imaging means for imaging the vehicle and outputting the image obtained as the captured image to the image processing device, said overload detection system comprising:
6. An acquisition step of acquiring an image obtained by photographing a side of a vehicle; a shape extraction step of extracting a circle or an ellipse by performing a Hough transform on edges included in the captured image; a pair detection step of determining a pair of two circles or ellipses, the distance between the center coordinates of which is equal to or less than a threshold value, from among the plurality of circles or ellipses extracted in the shape extraction step; a step of identifying a tire portion in the captured image corresponding to a tire of the vehicle based on the two circles or ellipses determined in the set; The image processing method, wherein the pair detection step further includes determining a pair of two circles or ellipses whose radius ratio is within a predetermined range.
7. An acquisition step of acquiring an image obtained by photographing a side of a vehicle; a shape extraction step of extracting a circle or an ellipse by performing a Hough transform on edges included in the captured image; a pair detection step of determining a pair of two circles or ellipses, the distance between the center coordinates of which is equal to or less than a threshold value, from among the plurality of circles or ellipses extracted in the shape extraction step; a step of identifying a tire portion in the captured image corresponding to a tire of the vehicle based on the two circles or ellipses determined in the set; a first processing step of performing a first image processing on the captured image; a second processing step of performing a second image processing on the captured image, the second image processing being different from the first image processing; The shape extraction step includes a first extraction step of extracting a first circle or an ellipse by performing a Hough transform on an edge included in the first image on which the first image processing has been performed; a second extraction step of extracting a second circle or ellipse by performing a Hough transform on edges included in the second image on which the second image processing has been performed; The image processing method, wherein the pair detection step further includes determining a pair of the first circle or ellipse extracted in the first extraction step and the second circle or ellipse extracted in the second extraction step.
8. An acquisition step of acquiring an image obtained by photographing a side of a vehicle; a shape extraction step of extracting a circle or an ellipse by performing a Hough transform on edges included in the captured image; a pair detection step of determining a pair of two circles or ellipses, the distance between the center coordinates of which is equal to or less than a threshold value, from among the plurality of circles or ellipses extracted in the shape extraction step; and a step of identifying a tire portion in the captured image corresponding to a tire of the vehicle based on the two circles or ellipses determined in the set, The pair detection step further includes determining a pair of two circles or ellipses whose radius ratio is within a predetermined range.
9. An acquisition step of acquiring an image obtained by photographing a side of a vehicle; a shape extraction step of extracting a circle or an ellipse by performing a Hough transform on edges included in the captured image; a pair detection step of determining a pair of two circles or ellipses, the distance between the center coordinates of which is equal to or less than a threshold value, from among the plurality of circles or ellipses extracted in the shape extraction step; a step of identifying a tire portion in the captured image corresponding to a tire of the vehicle based on the two circles or ellipses determined in the set; a first processing step of performing a first image processing on the captured image; a second processing step of performing a second image processing on the captured image, the second image processing being different from the first image processing; The shape extraction step includes a first extraction step of extracting a first circle or an ellipse by performing a Hough transform on an edge included in the first image on which the first image processing has been performed; a second extraction step of extracting a second circle or ellipse by performing a Hough transform on edges included in the second image on which the second image processing has been performed; The pair detection step further includes determining a pair of the first circle or ellipse extracted in the first extraction step and the second circle or ellipse extracted in the second extraction step.
Citation Information
Patent Citations
Method used for detecting concentric circle of industrial part
CN101699217A
Tyre safety detecting method and tyre safety detecting system
CN105172494A
Circular shape extractor
JP1991239902A
Pattern recognizing device
JP1995021381A
Tire detecting method and device
JP2002228423A
