Image processing device, method, and program

The image processing device allows for continuous inspection of roller chains by detecting and measuring roller components from moving images, addressing the limitations of conventional methods and enhancing operational efficiency.

JP7552176B2Active Publication Date: 2024-09-18CASIO COMPUTER CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
JP2020154065
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-09-14
Publication Date
2024-09-18
Estimated Expiration
2040-09-14

AI Technical Summary

Technical Problem

Conventional roller chain inspection methods require disassembly and manual measurement, leading to operational stoppages and increased costs, and do not adequately address wear of rollers affecting sprocket engagement.

Method used

An image processing device that detects and measures roller components from moving images, using template matching and edge detection to assess wear without stopping equipment operation.

Benefits of technology

Enables continuous inspection of roller chains, reducing downtime and costs by providing accurate wear assessment of rollers, allowing for early detection of abnormalities and improving equipment availability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007552176000009
    Figure 0007552176000009
  • Figure 0007552176000010
    Figure 0007552176000010
  • Figure 0007552176000015
    Figure 0007552176000015
Patent Text Reader

Abstract

To acquire information necessary for inspection of a component without stopping operation of a device.SOLUTION: An image processing apparatus performs processing of detecting an object from an image of a subject captured during movement of the object in a first direction, acquiring a plurality of pieces of edge candidate position data in the first direction of the object from an object image including the detected object, and determining an edge position in the first direction of the detected object on the basis of size data in the first direction of the object and the plurality of acquired pieces of edge candidate position data.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The disclosure of this specification relates to an image processing device, a method, and a program. [Background technology]

[0002] An endless roller chain, with both ends connected by coupling links, moves around a circular path by applying torque to a specific sprocket while wrapped around two or more sprockets. Because of their characteristic of moving linearly between the sprockets, such roller chains are used in industrial equipment such as conveyors, elevators, and other lifting machines.

[0003] In general, proper management of industrial equipment is effective in avoiding downtime due to breakdowns and increasing the operating rate. However, conventional roller chain inspection requires disassembling the roller chain and measuring each part one by one with tools such as calipers, which requires the equipment to be shut down, which is one of the factors that reduces the operating rate. In addition, the need for manual work also creates the problem of high inspection costs.

[0004] A technology related to such an issue is described, for example, in Patent Document 1. By using the technology described in Patent Document 1, it is possible to detect the elongation of a roller chain and inspect the roller chain without stopping the operation of the equipment. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] Japanese Patent Application Publication No. 10-332342 Summary of the Invention [Problem to be solved by the invention]

[0006] By the way, when inspecting roller chains, roller wear is also a major inspection item in addition to the elongation of the chain. This is because if the rollers become worn, the meshing between the sprocket and the rollers will be impaired, which can result in, for example, the torque of the sprocket not being transmitted sufficiently to the roller chain.

[0007] In view of the above circumstances, an object of one aspect of the present invention is to provide a technique for acquiring information required for inspecting parts without stopping operation of equipment. [Means for solving the problem]

[0008] An image processing device according to one aspect of the present invention detects an object from an image of a subject captured while the object is moving in a first direction, and acquires a plurality of edge candidate position data of the object in the first direction from an object image including the detected object; Dividing the target image including the detected object in a direction perpendicular to the first direction, and for each of a plurality of divided images obtained by dividing the target image, Determine an edge position in the first direction of the detected object based on size data in the first direction of the object and the acquired plurality of edge candidate position data. death , determining a state of the object based on data of the edge positions determined in each of the plurality of divided images; Execute the process. Effect of the Invention

[0009] According to the above aspect, it is possible to provide a technique for acquiring information required for inspecting a part without stopping operation of the device. [Brief description of the drawings]

[0010] [Figure 1] 1 is a diagram illustrating a configuration of a system 1 according to a first embodiment. [Diagram 2] FIG. 2 is a block diagram illustrating the configuration of an image processing device 50. [Diagram 3] 13 is a flowchart showing an example of image processing performed by the image processing device 50. [Figure 4] 2 is a diagram for explaining image processing performed by the image processing device 50. FIG. [Diagram 5]10 is a flowchart illustrating an example of a part inspection procedure. [Figure 6] FIG. 11 is a diagram for explaining a method of creating a reference image. [Figure 7] 13 is a flowchart showing an example of a measurement process performed by the image processing device 50. [Figure 8] FIG. 11 is a diagram for explaining a method of trimming a frame image. [Figure 9] 13 is a flowchart showing an example of an object detection process performed by the image processing device 50. [Figure 10] FIG. 13 is a diagram illustrating an example of a template matching result using two reference images. [Figure 11] 13 is a flowchart showing an example of a candidate detection process performed by the image processing device 50. [Figure 12] FIG. 11 is a diagram for explaining a method for detecting edge candidates. [Figure 13] 11A and 11B are diagrams for explaining a method for detecting an edge from among edge candidates. [Figure 14] 13 is a flowchart showing an example of an object measurement process performed by the image processing device 50. [Figure 15] FIG. 13 is a diagram for explaining another method of quality measurement. [Figure 16] FIG. 1 is a diagram illustrating a configuration of a system 100 according to a second embodiment. [Figure 17] FIG. 11 is a diagram illustrating a configuration of a system 200 according to a third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] [First embodiment] Fig. 1 is a diagram illustrating a configuration of a system 1 according to this embodiment. Fig. 2 is a block diagram illustrating a configuration of an image processing device 50. Hereinafter, the configurations and operations of the system 1 and the image processing device 50 will be described with reference to Figs. 1 and 2.

[0012] The system 1 is a system for inspecting a roller chain 10 included in an apparatus 2. The system 1 includes an imaging device 40 that images the roller chain 10, and an image processing device 50 that processes the image of the roller chain 10.

[0013] The equipment 2 having the roller chain 10 is not particularly limited, but may be, for example, an indoor or outdoor stationary equipment such as a belt conveyor or elevator that uses the roller chain 10. However, the equipment 2 is not limited to stationary equipment, and may be, for example, a mobility such as a forklift that uses a roller chain to raise and lower the forks.

[0014] The subject of the photograph, roller chain 10, includes multiple rollers 12 arranged in the conveying direction indicated by arrow A in Fig. 1. More specifically, roller chain 10 is a chain in which inner links 11 and outer links 13 are alternately connected, as shown in Fig. 1, and has rotatable rollers 12 fitted into bushings of the inner links 11. Endless roller chain 10, with both ends of the chain joined by coupling links, is stretched across two or more sprockets (drive sprocket 20, driven sprocket 30) provided on equipment 2.

[0015] In the device 2, the driving sprocket 20 rotates due to torque transmitted from a power source (not shown), and the roller chain 10 meshed with the driving sprocket 20 is transported on the circular running path formed by the driving sprocket 20 and the driven sprocket 30 and moves around. As long as the roller chain 10 moves around, the number of sprockets over which the roller chain 10 is stretched is not limited to two as illustrated in FIG. 1, and may be three or more. In addition, the roller chain 10 may be provided with a mark for identifying the start end of the rotating roller chain 10. The mark provided on the roller chain 10 is typically any visible mark such as a color or pattern, but may also be an invisible mark using magnetism or a combination thereof.

[0016] The photographing device 40 includes an optical system 41 and an image sensor 42, and is disposed so that the circulating path of the roller chain 10 intersects with the optical axis of the optical system 41. The optical system 41 includes one or more lenses and forms an optical image of the roller chain 10. The image sensor 42 is an image sensor that converts the optical image formed by the optical system 41 into an electrical signal, and is, for example, a CCD (Charge Coupled Devices) image sensor or a CMOS (Complementary Metal Oxide Semiconductor) image sensor. The photographing device 40 may further include an AFE (Analog Front End) that processes an analog signal from the image sensor. The photographing device 40 generates an image of the roller chain 10 based on the signal output from the image sensor, and outputs the image to the image processing device 50.

[0017] The photographing device 40 sequentially photographs the roller chain 10 going around on the circular traveling path. More specifically, the photographing device 40 sequentially photographs the roller chain 10 so that all rollers 12 included in the roller chain 10 are photographed while the roller chain 10 goes around on the circular traveling path. The photographing device 40 may sequentially photograph the multiple rollers 12 by taking a video or may sequentially photograph the multiple rollers 12 by taking still images. In the following, an example will be described in which the photographing device 40 takes a video of the roller chain 10.

[0018] The image processing device 50 is, for example, a standard computer and, as shown in FIG. 2, has one or more processors 51, one or more memory devices 52, an input device 53, a display device 54, and a communication device 55, which are connected via a bus 56.

[0019] Each of the one or more processors 51 is hardware including, for example, a CPU (Central Processing Unit) and executes a program 52a stored in the storage device 52. Note that the one or more processors 51 may include any electric circuit such as a GPU (Graphics processing unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a DSP (Digital Signal Processor).

[0020] Each of the one or more storage devices 52 is a non-transitory computer-readable medium, for example, any semiconductor memory. The one or more storage devices 52 include a volatile memory such as a random access memory (RAM), a read only memory (ROM), a non-volatile memory such as a flash memory, etc. The storage devices 52 may also include a magnetic storage device, an optical storage device, or other types of storage devices. At least one of the one or more storage devices 52 stores a program 52a that is a set of instructions for measuring the roller 12. That is, the program 52a is a roller measurement program, and is executed by the one or more processors 51 to cause the one or more processors 51 to perform the operations shown in FIG. 3, which will be described later.

[0021] The input device 53 is a device that is directly operated by the user, and includes, for example, a keyboard, a mouse, a touch panel, etc. The input device 53 may include a voice input device such as a microphone, or may include other types of input devices. The display device 54 is a device that displays an image of the roller chain 10 generated by the photographing device 40, an image including the measurement results measured by the image processing device 50, etc. The display device 54 may be, for example, a liquid crystal display, an organic EL display, a plasma display, a CRT display, a matrix LED panel, etc.

[0022] The communication device 55 is a device that receives images of the roller chain 10 from the photographing device 40. The communication device 55 is, for example, a wireless communication device such as a Wi-Fi (registered trademark) module, but may be a wired communication device as long as it can receive images from the photographing device 40. In addition, the photographing device 40 and the image processing device 50 may communicate with each other via the Internet, for example. Note that the image processing device 50 does not necessarily need to include the communication device 55, and in that case, the image processing device 50 may acquire images generated by the photographing device 40 via a recording medium or the like.

[0023] The image processing device 50 performs image processing shown in Figs. 3 and 4 (described later) based on the image of the roller chain 10 generated by the photographing device 40 by the processor 51 executing the program 52a stored in the storage device 52, and measures the multiple rollers 12 included in the roller chain 10. Fig. 3 is a flowchart showing an example of the image processing performed by the image processing device 50. Fig. 4 is a diagram for explaining the image processing performed by the image processing device 50. The image processing method performed by the image processing device 50 will be explained below with reference to Figs. 3 and 4.

[0024] When the image processing shown in FIG. 3 and FIG. 4 is started, the processor 51 first performs object detection (step S1). In step S1, the processor 51 detects the roller 12 as an object from an image of the roller chain 10 obtained by the imaging device 40 sequentially photographing the roller chain 10 while the roller chain 10 is being transported in a first direction (transport direction) on the circular travel path. In other words, the processor 51 detects the roller 12 as an object from an image of the roller chain 10 as a subject photographed while the roller 12 as an object is moving in the first direction. More specifically, the processor 51 performs object detection targeting the roller 12 for each frame of the video output from the imaging device 40, for example. As a result, when the roller 12 is captured in the frame image, the position of the roller 12 in the frame image is detected, and position information of the roller 12 is generated.

[0025] In addition, it is preferable to use template matching in the object detection in step S1. In particular, it is preferable to photograph the rollers 12 included in the roller chain 10 in advance before object detection, and perform template matching using the resulting image of the rollers 12 as a reference image. Furthermore, it is preferable to cut out a portion of the frame image similar to the reference image as a target image based on the result of a collation process by template matching between the reference image and the frame image.

[0026] The specific template matching technique is not particularly limited, but examples that can be used include SSD (Sum of Squared Difference), which evaluates similarity based on the sum of the squares of pixel value differences, SAD (Sum of Absolute Difference), which evaluates similarity based on the sum of the absolute values ​​of pixel value differences, NCC (Normalized Cross Correlation), which evaluates similarity based on normalized cross correlation, and ZNCC (Zero means Normalized Cross Correlation), which evaluates similarity based on zero mean normalized cross correlation.

[0027] By photographing the roller 12 itself, which is the measurement target, and using the image as a reference image, it becomes possible to inspect any roller chain 10 regardless of the size or material of the roller 12. In addition, by using an image photographed at the site where the measurement is performed as a reference image, the difference between the environment when the reference image is photographed (for example, lighting conditions, etc.) and the environment when the image used for the measurement is photographed becomes small. This makes it possible to suppress deterioration of detection accuracy caused by the photographing environment. Furthermore, since lubricating oil is used in the roller chain 10, dirt is likely to adhere to the surface, but the degree of dirt adhering to the roller 12 may also differ depending on the site environment and usage conditions. In this regard, by performing template matching using an image photographed at the site as a reference image, it becomes possible to suppress deterioration of detection accuracy caused by differences in the degree of dirt.

[0028] However, the object detection in step S1 is not limited to template matching, and any other method may be adopted. For example, the object detection may be performed according to a predetermined rule for identifying the roller 12, or the object detection may be performed using a trained model constructed by deep learning.

[0029] Processor 51 further performs candidate detection (step S2). In step S2, processor 51 detects a plurality of edge candidates of roller 12 from the target image in which roller 12 was detected in step S1. Note that candidate detection may be performed on the frame image itself instead of the target image cut out from the frame image. That is, the frame image in which roller 12 was detected may be regarded as the target image in which roller 12 was detected. However, in terms of reducing calculation costs, it is desirable to perform candidate detection on the target image cut out from the frame image.

[0030] Since the orientation of the (radial) edge of the roller 12 is perpendicular to the conveying direction, the approximate orientation of the edge of the roller 12 on the target image is also known. In step S2, it is desirable to detect edge candidates while keeping calculation costs down by utilizing this fact.

[0031] Specifically, it is preferable that the processor 51 calculates a representative value for each pixel row consisting of pixels aligned in a direction perpendicular to the conveying direction included in the target image, and detects a plurality of edge candidates based on the representative values ​​of the plurality of pixel rows. More specifically, it is preferable that the processor 51 detects a plurality of edge candidates based on a distribution of the plurality of representative values. As a result, position information of the edge candidates (pixel rows) is generated. In other words, in step S2, the processor 51 acquires a plurality of edge candidate position data in the first direction of the target roller 12 from the target image (image of the roller chain 10) including the detected target object (roller 12).

[0032] The process of detecting edge candidates using such representative values ​​of pixel rows can significantly reduce calculation costs compared to general edge detection (contour detection) processes using, for example, the Canny method.

[0033] However, the candidate detection in step S2 is not limited to a detection method using a representative value of a pixel row, and any other method may be adopted, and any edge detection process including the Canny method described above may be performed.

[0034] The representative value of a pixel row used in candidate detection is, for example, the sum of the pixel values ​​of the pixels that make up the pixel row. However, the representative value may be anything that appropriately represents the magnitude of the pixel values ​​of the pixels included in the pixel row, and may be, for example, the average value or median value of the pixel values.

[0035] When the object detection and candidate detection are completed, the processor 51 further performs edge detection using the results of the object detection and the candidate detection (step S3). In step S3, the processor 51 detects one or more edges of the roller 12 from among the multiple edge candidates detected in step S2 based on the position information of the roller 12 obtained in the object detection in step S1. More specifically, the processor 51 estimates a range in which the edge of the roller 12 exists based on the diameter of the roller 12 when it is unused and the position information of the roller 12, and detects the edge candidates within the estimated range as edges. Thereby, the position of the edge of the roller 12 in the image is detected, and edge position information is generated. In other words, in step S3, the processor 51 determines the edge position in the first direction of the roller 12, which is the object detected in step S1, based on the size data in the first direction of the roller 12, which is the object, (i.e., the roller diameter) and the multiple edge candidate position data acquired in step S2.

[0036] In order to measure the diameter of roller 12 in step S4 described below, it is desirable to detect two edges aligned in the conveying direction in step S3. However, it is not necessary to measure the roller diameter in step S4, and therefore it is sufficient to detect one or more edges of roller 12 in step S3.

[0037] When the edge detection is completed, the processor 51 performs object measurement (step S4). In step S4, the processor 51 measures the roller 12 based on the position information of one or more edges obtained by the edge detection in step S3. More specifically, the processor 51 may measure the size of the roller 12 in the conveying direction, i.e., the diameter of the roller 12, based on the position information of two edges obtained by the edge detection. In other words, in step S4, the processor 51 may determine the size of the roller 12, which is the object detected in step S1, in the first direction based on the edge position data determined in step S3, and more specifically, the processor 51 may calculate the distance between the edges from the position information of the two edges and measure the calculated distance as the diameter of the roller 12.

[0038] Also, in step S4, the processor 51 may determine whether the roller 12 is normal or abnormal based on the position information of the two edges obtained by the edge detection. In other words, the processor 51 may determine whether the roller 12, which is the target, is normal or abnormal based on the edge position data determined in step S3. More specifically, the diameter of the roller 12 may be measured based on the position information of the two edges, and the normality or abnormality may be determined based on the measured diameter of the roller 12. That is, it may be determined based on the diameter of the roller 12 whether the wear of the roller 12 has progressed beyond an allowable level, and the normality / abnormality of the roller 12 may be determined based on the determination result.

[0039] Thus, the object measurement in step S4 may include a size measurement for measuring the size of the object, and may also include a quality measurement for measuring the quality of the object, such as whether the object is normal or abnormal. It is desirable for the object measurement to include at least one of a size measurement and a quality measurement.

[0040] Finally, the processor 51 outputs the measurement results obtained in the object measurement (step S5), and ends the image processing shown in Figures 3 and 4. In step S5, the processor 51 outputs the measurement results to the storage device 52, which stores the measurement results in a non-volatile manner. The measurement results may include size information (diameter information) of the roller 12 obtained in the size measurement in step S4, and may also include quality information (normal or abnormal) of the roller 12 obtained in the quality measurement in step S4.

[0041] As described above, by performing the image processing shown in FIG. 3 and FIG. 4, the image processing device 50 can detect the edge of the roller 12 from the image taken during the rotation of the roller chain 10. This makes it possible to measure the diameter of the roller 12 from the image and obtain information necessary for inspecting the roller 12. Therefore, according to the system 1, it is possible to grasp the progress of wear of the roller 12 without stopping the operation of the device 2 having the roller chain 10, and it is possible to inspect the roller chain 10 without reducing the operating rate of the device 2. In addition, since the inspection can be performed without worrying about a decrease in the operating rate, it is possible to perform the inspection at a relatively short period of time and to find and deal with an abnormality or a sign of an abnormality in the roller chain 10 at an early stage. Therefore, it is expected that the operating rate of the device 2 will be further improved.

[0042] Moreover, by continuously photographing the roller chain 10 for a certain period of time while it is moving around, images of all the rollers 12 can be obtained. Therefore, all the rollers 12 can be inspected without omission by image processing by the image processing device 50. Also, by identifying the start end of the roller chain 10 by the mark attached to the roller chain 10, it is also possible to identify the roller 12 in which an abnormality has been detected from the image. Therefore, it is possible to quickly identify and repair the roller 12 in which an abnormality has been detected, and the downtime of the equipment 2 can be minimized.

[0043] Furthermore, in the above-mentioned image processing, all edge candidates that may be the edge of the roller 12 are detected, and an edge is selected from the edge candidates using the position information of the roller 12 identified by object detection. According to this method, it is sufficient to detect edge candidates with a recognition accuracy that does not miss the edge from the image, and further, the edge can be identified from the detected edge candidates using known information (reference roller diameter). Therefore, reliable edge detection with high robustness is possible without incurring a relatively low calculation cost. Therefore, the edge can be detected even under a situation where edge detection is difficult due to dirt on the roller 12. Also, by detecting edge candidates using known information such as the edge direction, it is possible to detect the edge while significantly reducing the calculation cost required for image processing. Therefore, it is also possible to perform inspection in real time while taking a video.

[0044] Furthermore, in the above-mentioned image processing, the rollers 12 are measured based on the position information of the detected edge, and the results are output to the storage device 52 or the like. This allows the user to check the measurement results at any time. In particular, when size measurement is performed, information on the diameter of each roller is output, so that the degree of wear of each roller can be grasped in concrete numerical values. When quality measurement is performed, information indicating whether each roller is normal or abnormal is output, so that even a user without specialized knowledge can easily determine whether or not the rollers need to be replaced. Furthermore, by accumulating the measurement results, not only the current state of the rollers 12 but also changes from past measurements can be known. This makes it possible to detect and deal with signs of abnormality early.

[0045] FIG. 5 is a flowchart showing an example of a part inspection procedure. FIG. 6 is a diagram for explaining a method for creating a reference image. FIG. 7 is a flowchart showing an example of a measurement process performed by the image processing device 50. FIG. 8 is a diagram for explaining a method for trimming a frame image. FIG. 9 is a flowchart showing an example of an object detection process performed by the image processing device 50. FIG. 10 is a diagram illustrating a template matching result using two reference images. FIG. 11 is a flowchart showing an example of a candidate detection process performed by the image processing device 50. FIG. 12 is a diagram for explaining a method for detecting an edge candidate. FIG. 13 is a diagram for explaining a method for detecting an edge from among edge candidates. FIG. 14 is a flowchart showing an example of an object measurement process performed by the image processing device 50. Hereinafter, the inspection method for the roller chain 10 will be described in more detail and specifically with reference to FIG. 5 to FIG. 14.

[0046] The inspection of the roller chain 10 includes four steps shown in Fig. 5. In the first step, preparatory photography (step S11), the user uses the photography device 40 to take a video of the roller chain 10 to be inspected. The taken video is output to the image processing device 50 and recorded in the storage device 52.

[0047] Next, the user creates a template to be used in the measurement process described below (step S12). Here, the user selects a frame in which the roller 12 to be measured appears from the video captured in step S11 and displayed on the display device 54, and selects an area including the roller 12 from the frame image. In response to this, the processor 51 cuts out the selected area from the frame image and records it as a reference image (template) in the storage device 52. Note that it is preferable to create two or more reference images, and it is preferable that the two or more reference images are images of different rollers 12.

[0048] 6 illustrates how frames F1 and FX in which the roller 12 appears approximately at the center of the image are selected from the frames of the video (frames F1, F2, ..., frame FX...), the range including the roller 12 appearing near the center of these frames is specified as the region of interest ROI, and the images of the region of interest ROI are cut out as reference images R1 and R2. The reason for cutting out the reference images from near the center of the frame is that the aberration of the optical system 41 is relatively small near the center of the frame, and images of good image quality can be obtained.

[0049] When the template creation is completed, the user starts measurement photography using the photographing device 40 (step S13). It is desirable that the measurement photography is performed under the same conditions as the preparatory photography in the above-mentioned step S11 as much as possible. Specifically, it is desirable that the photographing magnification, frame rate, photographing position (illumination conditions), etc. of the photographing device 40 are the same as those in the preparatory photography.

[0050] However, in order to capture images of all the rollers 12 included in the roller chain 10, it is preferable that the measurement photography continues for the time it takes the roller chain 10 to move around the circular path at least once, and it is even more preferable that the photography continues for the time it takes the roller chain 10 to move around two or more times, regardless of the photography time during the preparation photography. This makes it possible to obtain multiple images of different parts of the surface of each roller 12, thereby reducing the possibility of overlooking local wear or cracks on the surface of the roller 12 in the measurement process described below.

[0051] When the measurement photography is completed and the image photographed by the photographing device 40 is input to the image processing device 50, the user operates the image processing device 50 to cause the image processing device 50 to perform the measurement process shown in FIG. 7 (step S14).

[0052] When the measurement process is started, the processor 51 first sets a reference image (step S21). Here, the processor 51 sets the reference image stored in the storage device 52 in step S12 as a template to be used in object detection, which will be described later. Specifically, the processor 51 sets the reference image R1 created in step S12 as a first reference image, and the reference image R2 as a second reference image.

[0053] Next, processor 51 reads frame images one by one from the video captured for measurement in step S13 (step S22), crops the center of the read images (step S23), and performs object detection processing shown in Figure 9 on the cropped images, targeting roller 12 (step S24).

[0054] The image range to be trimmed in step S23 is at least a range larger than the region of interest ROI cut out from the reference image in step S12. More specifically, for example, an area about 5 times the roller diameter in the conveying direction and about 1.5 times the roller length in the direction perpendicular to the conveying direction may be trimmed. This makes it possible to reduce the image size while reliably including the roller 12 near the center of the image, where image quality degradation is minimal, within the image, thereby making it possible to reduce the calculation cost for object detection.

[0055] 8 shows an example of a frame F11 in which the roller 12 cannot be detected from the trimming range T, and an example of a frame F12 in which the roller 12 can be detected. When the entire roller 12 does not fall within the trimming range T, as in the case of frame F11, the roller 12 cannot be detected, whereas when the entire roller 12 falls within the trimming range T, as in the case of frame F12, the roller 12 can be detected. The object detection in step S24 will be described in further detail below.

[0056] In object detection, the processor 51 first performs image conversion on the cropped image (step S31). The image conversion is performed to remove noise contained in the image to improve matching accuracy. Specifically, the processor 51 converts the cropped image into a grayscale image, and then performs noise removal processing using a spatial filter. The spatial filter used for the noise removal processing is not particularly limited, but may be, for example, a smoothing filter such as a Gaussian filter or a median filter. In step S31, the same image conversion processing may also be performed on the reference image.

[0057] Next, the processor 51 performs a first matching process using the image converted in step S31 (hereinafter, referred to as the matching target image) and the first reference image (step S32). Here, the processor 51 calculates the similarity by performing template matching such as SSD using the first reference image. Furthermore, the processor 51 specifies the most similar part of the matching target image as a part similar to the first reference image based on the calculated similarity, and detects it as a first candidate for the target image that is the subject of the candidate detection process described later. In other words, the processor 51 detects the part similar to the first reference image as the first candidate based on the result of the comparison process between the first reference image and the matching target image.

[0058] When the first candidate is detected, the processor 51 judges whether the first candidate is sufficiently similar to the first reference image (step S33) and whether the position of the first candidate is appropriate (step S34). In step S33, if the similarity of the first candidate is below a predetermined threshold, it is judged to be not similar, and in step S34, if the first candidate is located at the edge of the matching target image, it is judged to be not appropriate, and the object detection process is terminated.

[0059] On the other hand, if it is determined that the first candidate is similar to the first reference image and is detected at the correct position (steps S33 and S34: YES), the processor 51 performs a second matching process using the matching target image and the second reference image (step S35). The process of step S35 is the same as the process of step S31, except that the second reference image is used instead of the first reference image. That is, in step S35, the processor 51 detects a portion similar to the second reference image as the second candidate based on the result of the comparison process between the second reference image and the matching target image.

[0060] When the second candidate is detected, the processor 51 judges whether the second candidate is sufficiently similar to the second reference image (step S36) and whether the position of the second candidate is appropriate (step S37). In step S36, if the similarity of the second candidate is below a predetermined threshold, it is judged to be not similar, and in step S37, if the second candidate is located at the edge of the matching target image, it is judged to be not appropriate, and the object detection process is terminated.

[0061] If it is determined that the second candidate is similar to the second reference image and is detected at the correct position (step S36 and step S37: YES), the processor 51 determines whether the positional relationship between the first candidate and the second candidate is correct (step S38). Specifically, the processor 51 determines whether the positional relationship between the first candidate and the second candidate satisfies a predetermined condition. The predetermined condition may be, for example, whether the distance between the first candidate and the second candidate is less than a threshold. The threshold may be a distance sufficiently close that it can be determined that the first candidate and the second candidate are substantially the same thing.

[0062] 10 shows that a matching position P1, which is the position of the matching area M1 (first candidate) detected in the first matching process, and a matching position P2, which is the position of the matching area M2 (second candidate) detected in the second matching process, are misaligned. In this way, when the matching position P1 and the matching position P2 do not match (step S38 NO), the processor 51 determines that the positional relationship is not appropriate, and ends the object detection process.

[0063] When it is determined in step S38 that the positional relationship is appropriate (step S38 YES), the processor 51 determines the position of the target object (step S39) and ends the object detection process. Specifically, the processor 51 may determine the first candidate position (matching position P1) as the position of the roller 12, or may determine the second candidate position (matching position P2) as the position of the roller 12. Furthermore, the processor 51 may determine the midpoint between the first candidate position (matching position P1) and the second candidate position (matching position P2) as the position of the roller 12. Note that the position determined in step S39 indicates the center of the roller 12, i.e., the position of the rotation axis of the roller 12.

[0064] Also, in step S39, the processor 51 may generate a target image that is a target of a candidate detection process described later. More specifically, the processor 51 cuts out a target image from the matching target image based on the position of the first candidate and the position of the second candidate. For example, the processor 51 may cut out a matching region M1 as a target image, or may cut out a matching region M2 as a target image. In other words, the processor 51 may compare a first reference image and a second reference image obtained by photographing in advance any two of the rollers 12 that are multiple objects with the image of the roller chain 10 that is the photographed object (steps 32 and S35), and may cut out the roller 12 that is a target image from the image of the roller chain 10 that is the photographed object based on the comparison result (step S39).

[0065] When the object detection is completed, the processor 51 determines whether or not the roller 12, which is the target object, has been detected in the object detection (step S25). If the roller 12 has not been detected, the frame images are read in order and the processes from step S22 to step S25 are repeated until the roller 12 is detected.

[0066] If it is determined in step S25 that the roller 12 has been detected, the processor 51 performs a candidate detection process shown in FIG. 11 (step S26).

[0067] In the candidate detection process, the processor 51 first performs image conversion on the target image (step S41). The image conversion is performed to reduce the calculation cost required for candidate detection. Specifically, the processor 51 converts the target image into a grayscale image.

[0068] Next, the processor 51 calculates a representative value of the luminance for each pixel row perpendicular to the transport direction (step S42). Here, the processor 51 may calculate, for example, the sum of the pixel values ​​of each pixel row as the representative value.

[0069] After the representative value is calculated, the processor 51 calculates a differential value of the representative value with respect to the position in the transport direction (hereinafter simply referred to as a differential value) (step S43). Here, the processor 51 calculates the differential value based on the representative value calculated for each pixel column in step S43.

[0070] Finally, the processor 51 detects a plurality of edge candidates based on the differential values ​​calculated in step S43 (step S44), and ends the candidate detection process. Here, the processor 51 may detect a pixel row in which the absolute value of the differential value is a maximum value as an edge candidate, or may detect a pixel row in which the absolute value of the differential value is a maximum value and is equal to or greater than a threshold value TH as an edge candidate.

[0071] 12 shows an example in which a graph 61 showing the absolute value of the differential value in each pixel row is superimposed on a target image 60. In this example, pixel rows in which the absolute value of the differential value is a local maximum and is equal to or greater than a threshold value TH are detected as edge candidates (edge ​​candidates C1 to C8).

[0072] When the candidate detection process is completed, the processor 51 performs an edge detection process (step S27). Here, the processor 51 detects one or more edges from among the multiple edge candidates detected in step S44, based on information about the position of the roller 12 determined in the object detection process shown in Fig. 9 (hereinafter, simply referred to as position information).

[0073] Because the position information indicates the center of the roller 12, the processor 51 can use the position information to calculate the distance from the center of the roller 12 to each of the multiple edge candidates. Because the approximate distance from the center of the roller 12 to the edge is known, the processor 51 can detect one or more edges from the multiple edge candidates based on the distance from the center of the roller 12. That is, in step S27, the processor 51 may determine the edge position in the first direction based on the position information indicating the center of the roller 12, which is the object detected in step S24.

[0074] Figure 13 shows an example in which two edges (edge ​​candidate C2, edge candidate C7) are detected by excluding edge candidates detected in areas (non-target area 62, non-target area 64) that are too far from the target position (center of roller 12) and areas (non-target area 63) that are too close from the target position (center of roller 12).

[0075] When an edge is detected, the processor 51 performs an object measurement process shown in FIG. 14 (step S28).

[0076] In the object measurement process, the processor 51 first measures the size of the roller 12 (step S51). Here, the processor 51 measures the diameter of the roller 12 based on the position information of the two edges aligned in the transport direction detected in step S27, for example.

[0077] Processor 51 further measures the quality of roller 12 (step S52). Here, processor 51 measures the quality of roller 12 by determining whether roller 12 is normal or abnormal based on the diameter of roller 12 measured in step S51 and the diameter of roller 12 when unused, for example. In this case, if the diameter of roller 12 is smaller than the diameter when roller 12 is unused by exceeding an allowable value, processor 51 determines that roller 12 is abnormal.

[0078] When the size and quality measurements are completed, the processor 51 outputs the measurement results (step S53) and ends the object measurement process. The output measurement results are stored in the storage device 52. The measurement results include information such as the diameter of the roller 12 and whether the roller 12 is normal or abnormal, but are not limited to these pieces of information and may include any information about the roller 12. For example, the measurement results may include information indicating the number of the roller 12 counting from the starting end, information indicating whether the roller 12 needs to be replaced, and the like.

[0079] When the object measurement process is completed, the processor 51 determines whether or not to continue the measurement process shown in Fig. 7 (step S29). Here, the processor 51 determines, for example, whether or not all captured images have been read, and if not, repeats the processes from step S22 to step S29 until all images have been read. Then, when it is determined that all images have been read, the processor 51 ends the measurement process shown in Fig. 7.

[0080] As described above, the image processing device 50 performs the measurement process shown in Fig. 7, thereby making it possible to obtain information necessary for inspecting parts such as the rollers 12 without stopping the operation of the device 2. In particular, the measurement process shown in Fig. 7 uses pattern matching for object detection, and uses two reference images of the rollers 12 included in the roller chain 10 for the pattern matching. This method makes it possible to detect the position of an object with high accuracy in object detection targeting the rollers 12. Therefore, it is possible to detect a true edge from among multiple edge candidates, without using conventional contour detection, which has high calculation costs.

[0081] Fig. 15 is a diagram for explaining another method of quality measurement. In the above-mentioned embodiment, the process of determining whether roller 12 is normal / abnormal based on the measured diameter of roller 12 is exemplified as the quality measurement, but the method of quality measurement is not limited to this example. Quality measurement may be performed by the method shown in Fig. 15 described below.

[0082] In the quality measurement method shown in FIG. 15, in the candidate detection process, the processor 51 first divides the target image into a plurality of parts in a direction perpendicular to the conveying direction, and defines a plurality of element images (also referred to as a plurality of divided images). In other words, the processor 51 divides the target image including the roller 12, which is the detected object, in a direction perpendicular to the first direction, and defines a plurality of element images (a plurality of divided images). It is not necessary to define all images obtained by dividing the target image as element images, and only the image of the area where the roller 12 exists may be defined as an element image. For example, as shown in FIG. 15, when the target image 60 is divided into five images, the middle three of the five images may be defined as element images (element image 70, element image 80, element image 90), and the other two images may not be defined as element images.

[0083] Thereafter, the processor 51 detects one or more edge candidates of the target object from each of the multiple element images. The method of detecting edge candidates is the same as in the above-described embodiment in which edge candidates are detected without dividing the target image. That is, the processor 51 calculates a representative value of brightness for each pixel row of the element images perpendicular to the transport direction, calculates a differential value of the representative value with respect to the position in the transport direction, and performs a process of detecting edge candidates based on the calculated differential value for each element image.

[0084] FIG. 15 shows graphs (graph 71, graph 81, graph 91) showing differential values ​​in each pixel column superimposed on element images (element image 70, element image 80, element image 90).

[0085] Furthermore, the processor 51 detects one or more edges of the roller 12 from one or more edge candidates detected from each of the multiple elemental images based on the position information of the roller 12. The method of detecting the edges is the same as that of the above-mentioned embodiment in which edges are detected without dividing the target image. That is, the processor 51 determines the edge position in the first direction of the roller 12, which is the target, for each of the multiple divided images obtained by dividing.

[0086] Finally, processor 51 measures the quality of roller 12 by judging whether roller 12 is normal or abnormal based on position information of multiple edges detected from multiple elemental images. More specifically, when roller 12 is normal, the positions of edges detected from multiple elemental images will be substantially the same, and based on this, processor 51 judges that there is an abnormality in roller 12 when the difference in edge positions between elemental images is equal to or greater than a tolerance. Note that with this method, diameter measurement is not necessarily required, and the quality of roller 12 can be measured directly from edge position information.

[0087] By using the quality measurement method shown in Fig. 15, it is possible to detect local wear occurring on the roller 12. Note that the quality measurement method shown in Fig. 15 may be performed instead of the quality measurement method of the above-mentioned embodiment, or may be performed together with the quality measurement method of the above-mentioned embodiment.

[0088] [Second embodiment] 16 is a diagram illustrating the configuration of a system 100 according to this embodiment. Like the system 1, the system 100 is a system for inspecting a roller chain 10 included in a device 2. Like the system 1, the system 100 is equipped with an imaging device 40 that images the roller chain 10, and an image processing device 50 (not shown) that processes images of the roller chain 10.

[0089] System 100 differs from system 1, which uses natural light or light from fluorescent lamps permanently installed indoors, in that system 100 is provided with light sources for illumination (light source 101, light source 102). Light source 101 and light source 102 are arranged in approximately the same direction as image capture device 40 with respect to roller 12 in order to illuminate roller 12 from the observation direction.

[0090] The system 100 is particularly effective in inspecting the roller chain 10 that is transported on the rail 110. With this configuration, when the roller chain 10 is illuminated with light L1 from the observation direction, the reflected light L2 from the roller 12 is detected by the imaging device 40, and an intensity distribution in which the intensity gradually decreases from the center of the roller 12 toward the edge of the roller 12 is obtained. Furthermore, for the area further outside the edge, the reflected light L3 from the rail 110 is detected by the imaging device 40, and an intensity distribution having a higher intensity than the reflected light L2 from the vicinity of the edge of the roller 12 is obtained. Therefore, since a large change occurs in the intensity distribution near the edge, it becomes possible to appropriately detect the edge by the above-mentioned method of detecting edge candidates using the brightness difference.

[0091] According to the system 100 configured as described above, it is possible to obtain an image with contrast near the edge of the roller 12 regardless of the weather or the indoor lighting environment. Also, in the system 100, by the image processing device 50 executing the same process as in the first embodiment, it is possible to obtain information required for inspecting parts such as the roller 12 without stopping the operation of the device 2.

[0092] [Third embodiment] 17 is a diagram illustrating the configuration of a system 200 according to this embodiment. Like the systems 1 and 100, the system 200 is a system that inspects a roller chain 10 of a device 2. The system 200 is similar to the system 100, except that the arrangement of the light source 101 and the light source 102 is different.

[0093] In system 100, the illumination light sources (light source 101, light source 102) are positioned to illuminate roller 12 from the observation direction, whereas in system 200, the illumination light sources (light source 101, light source 102) are positioned to illuminate roller 12 from the side of roller 12.

[0094] The system 200 is particularly effective in inspecting the roller chain 10 that is transported without a rail underneath. With this configuration, when the roller chain 10 is illuminated with light L11 and light L12 from the side, the reflected light L14 and reflected light L15 from the roller 12 are detected by the imaging device 40, and an intensity distribution with a certain degree of intensity is obtained even near the edge of the roller 12. On the other hand, unlike the system 100, no reflected light is detected on the outside of the edge because there is no rail. Therefore, a large change occurs in the intensity distribution near the edge, and it becomes possible to properly detect the edge by the above-mentioned method of detecting edge candidates using the brightness difference. The reflected light L13 shown in FIG. 17 is light reflected from outside light, etc.

[0095] According to the system 200 configured as described above, it is possible to obtain an image with contrast near the edge of the roller 12 regardless of the weather or the indoor lighting environment. Also, in the system 200, the image processing device 50 executes the same process as in the first embodiment, so that it is possible to obtain information required for inspecting parts such as the roller 12 without stopping the operation of the device 2.

[0096] The above-mentioned embodiments are specific examples shown to facilitate understanding of the invention, and the present invention is not limited to these embodiments, and should be understood as including various modifications and alternative forms of the above-mentioned embodiments. For example, it will be understood that each embodiment can be embodied by modifying the components within the scope of the spirit and scope of the embodiment. It will also be understood that various embodiments can be implemented by appropriately combining multiple components disclosed in the above-mentioned embodiments. Furthermore, it will be understood by those skilled in the art that various embodiments can be implemented by deleting some components from all the components shown in the embodiment, or by adding some components to the components shown in the embodiment. That is, the image processing device, image processing method, and program can be variously modified and changed within the scope of the claims.

[0097] In the above-described embodiment, an example was shown in which the photographing device 40 and the image processing device 50 are different devices, but the photographing device 40 and the image processing device 50 may be configured as a single device. Also, in the above-described embodiment, an example was shown in which the image processing device 50 is a single device, but the image processing device 50 may be a collection of multiple computers.

[0098] In the above-mentioned embodiment, an example of measuring the roller 12 of the roller chain 10 as a measurement target is shown, but the measurement target is not limited to the roller 12 of the roller chain 10. For example, the measurement may be performed on the bush of a bushed chain. In addition, an example of measuring the diameter of the roller 12 is shown, but the length (in the axial direction) of the roller 12 may be measured instead of the diameter of the roller 12. Furthermore, in the above-mentioned embodiment, an example of measuring the roller chain 10 as a subject is shown, but the subject is not limited to the roller chain 10, and may be, for example, the above-mentioned bushed chain, or may be other products transported in a certain direction, not limited to chains. Therefore, the subject or object may be, for example, a car (including a four-wheeled vehicle, a two-wheeled vehicle, etc.) transported by a belt conveyor or the like, or a part thereof (for example, a tire, etc.), and the subject or object exemplified in the above-mentioned embodiment is not intended to limit the spirit of the invention defined based on the description of the claims.

[0099] In the above embodiment, an example was shown in which the image processing device 50 measures the roller 12, but the image processing device 50 may perform up to edge detection, and the processing after edge detection may be performed by another system. This is because as long as edge detection can be performed, the minimum information required for inspection can be obtained.

[0100] In this specification, the expression "based on A" does not mean "based only on A" but means "based on at least A." That is, "based on A" may be based on B in addition to A.

[0101] As used herein, the terms "first," "second," and the like, modifying a noun do not limit the quantity or order of the elements described by the noun. These terms are used to distinguish between two or more elements, not less, not more. Thus, the specification of a "first" and a "second" element does not imply that the "first" element precedes the "second" element, nor does it negate the presence of a "third" element.

[0102] The invention as described in the claims of the original application is set forth below. [Appendix 1] Detecting an object from an image of a subject captured while the object is moving in a first direction; acquiring a plurality of edge candidate position data in the first direction of the detected object from an object image including the detected object; determining an edge position in the first direction of the detected object based on size data in the first direction of the object and the acquired plurality of edge candidate position data; An image processing device that performs the processing. [Appendix 2] determining a size of the detected object in the first direction based on the determined edge position data; 2. An image processing device according to claim 1, for executing processing. [Appendix 3] determining whether the object is normal or abnormal based on the determined edge position data; 3. An image processing device according to claim 1 or 2, which executes processing. [Appendix 4] Dividing the target image including the detected object in a direction perpendicular to the first direction; determining an edge position in the first direction of the object for each of a plurality of divided images obtained by dividing the object; 4. An image processing device according to claim 1, which executes a process. [Appendix 5] A first reference image and a second reference image obtained by photographing any two of a plurality of objects in advance are compared with the photographed image of the object; extracting the target image from the photographed image of the subject based on the comparison result; 5. An image processing device according to claim 1, which executes a process. [Appendix 6] The edge position in the first direction is determined based on position information indicating a center of the detected object. 6. An image processing device according to claim 1, which executes a process. [Appendix 7] A method for causing a computer to execute each process of the image processing device according to any one of Supplementary Note 1 to Supplementary Note 6. [Appendix 8] A program for causing a computer to execute each process of the image processing device according to any one of Supplementary Note 1 to Supplementary Note 6. [Explanation of symbols]

[0103] 1, 100, 200 systems 2 equipment 10 Roller Chain 12 Roller 40 Imaging Equipment 50 Image processing device 51 Processors 52 Storage device 52a Program 53 Input Devices 54 Display device 55 Communication Equipment 60 Target Images 70, 80, 90 element images 101, 102 light source 110 Rail R1, R2 reference images

Claims

1. Detecting an object from an image of a subject captured while the object is moving in a first direction; acquiring a plurality of edge candidate position data in the first direction of the detected object from an object image including the detected object; Dividing the target image including the detected object in a direction perpendicular to the first direction; determining an edge position in the first direction of the detected object based on size data in the first direction of the object and the acquired edge candidate position data for each of a plurality of divided images obtained by dividing the object; determining a state of the object based on data of the edge positions determined in each of the plurality of divided images; An image processing device that performs the processing.

2. determining a size of the detected object in the first direction based on the determined edge position data; The image processing apparatus according to claim 1 , which performs processing.

3. determining whether the object is normal or abnormal based on the determined edge position data; 3. The image processing device according to claim 1, further comprising:

4. A first reference image and a second reference image obtained by photographing any two of a plurality of objects in advance are compared with the photographed image of the object; extracting the target image from the photographed image of the subject based on the comparison result; The image processing device according to claim 1 , which executes processing.

5. The edge position in the first direction is determined based on position information indicating a center of the detected object. The image processing device according to claim 1 , which executes processing.

6. A roller included in the roller chain is detected as the target object from an image of the roller chain which is the subject. The image processing device according to claim 1 , which executes processing.

7. A method for executing each process of the image processing device according to any one of claims 1 to 6 by a computer.

8. A program for causing a computer to execute each process of the image processing device according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Size measuring device

    JP1994174428A

  • Running lane recognizing device

    JP1996261756A

  • Method and device for detecting degree of chain extension

    JP1998030923A

  • Roller chain wear detecting method and device

    JP1998300426A

  • Detecting method for chain extension rate and its detecting device

    JP1998332342A