Image processing device and image processing method

The image processing device generates a representative image using statistical models to address disturbances, enhancing the robustness and accuracy of detection target positioning.

JP2024133706AActive Publication Date: 2024-10-02KYOCERA CORP +1

Patent Information

Application Number
JP2024112040
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-08-27
Filing Date
2024-07-11
Publication Date
2024-10-02
Estimated Expiration
2042-07-08

AI Technical Summary

Technical Problem

Existing image processing methods struggle to accurately recognize the position of detection targets within arbitrary regions due to disturbances such as changes in sunlight illuminance, camera position, and manual handling, which affect the appearance of the detection targets, leading to reduced robustness and efficiency.

Method used

An image processing device that generates a representative image based on a template image group, using statistical models to determine similarity and account for disturbance factors, thereby improving robustness and accuracy in detecting the position of detection targets.

Benefits of technology

The device enhances the robustness and accuracy of detection by continuously identifying detection targets despite frequent disturbances, reducing processing load and improving detection efficiency with a smaller number of learning images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024133706000001_ABST
    Figure 2024133706000001_ABST
Patent Text Reader

Abstract

To provide an image processing device and an image processing method.SOLUTION: In a target operating system 11 comprising a camera 12, an image processing device 10, and an operating apparatus 13, the image processing device 10 has a memory 17, a communication unit 16, and a control unit 18. The memory stores a template image group including a plurality of images of detection objects 14. The communication unit acquires an entire image including a collation object from the camera 12. The control unit acquires a representative image based on a part of the template image group. The control unit determines the similarity between at least part of the entire image and the representative image.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application claims priority to Patent Application No. 2021-139428, filed in Japan on August 27, 2021, the entire disclosure of which is incorporated herein by reference. [Technical field]

[0002] The present disclosure relates to an image processing device and an image processing method. [Background technology]

[0003] It is necessary to recognize the position of a detection target from an image in a given area. For example, in a factory where detection targets are manufactured, when a robot is required to operate the detection targets placed on a tray, it is necessary to recognize the position of the detection target.

[0004] Template matching is known, which uses an image of a detection target as a template image and detects the position of the detection target from within an image of an arbitrary region. The appearance of the detection target placed in an arbitrary region may vary from a fixed template image due to various disturbance factors such as changes in illuminance of sunlight, the position of a camera capturing an image of the arbitrary region, and manual handling of the detection target. Therefore, it has been proposed to perform template matching that is robust against disturbance factors (see Non-Patent Documents 1 to 3). [Prior art documents] [Non-patent literature]

[0005] [Non-Patent Document 1] Masataka Saito, Manabu Hashimoto, "Robust Image Matching for Illumination Changes Using Stable Pixels Based on Gray-Level Co-occurrence Analysis," IPSJ Technical Report, Vol. 2012-CVIM-182, No. 17, 2012 [Non-Patent Document 2] Masataka Saito, Manabu Hashimoto, "Robust Image Matching Based on Disturbance Pixel Estimation Using Statistical Intensity Fluctuation Analysis", Vision Technology Practical Use Workshop (ViEW2013), IS2-d8 [Non-Patent Document 3] Nobuyuki Shinohara, Manabu Hashimoto, "Updated template matching based on statistical estimation of disturbance pixels", Journal of the Japan Society for Precision Engineering, Vol. 83, No. 12, pp. 11178-1183, 2017 Summary of the Invention

[0006] An image processing device according to a first aspect of the present invention comprises: A memory that stores a template image group including a plurality of images of detection targets; An acquisition unit that acquires an entire image including a matching target; The image processing device further includes a control unit configured to obtain a representative image based on a portion of the group of template images and to determine a similarity between at least a portion of the entire image and the representative image.

[0007] An image processing device according to a second aspect of the present invention comprises: A memory that stores a template image group including a plurality of images of detection targets; An acquisition unit that acquires an entire image including a matching target; a control unit that acquires a representative image based on a part of the template image group and performs a similarity determination between at least a part of the entire image and the representative image, The control unit calculates a contribution degree of a part of the entire image used for the similarity determination based on statistics of at least a part of the template image group, and uses the contribution degree for the similarity determination.

[0008] An image processing method according to a third aspect comprises: storing a template image group including a plurality of images of a detection target; Obtaining an entire image including a matching target; obtaining a representative image based on a portion of the template images; and determining similarity between at least a portion of the entire image and the representative image. [Brief description of the drawings]

[0009] [Figure 1]FIG. 1 is a diagram illustrating an example of the configuration of an object operation system including an image processing device according to the first embodiment. [Diagram 2] 1. FIG. 4 is a diagram for explaining a similarity determination between a representative image and a partial region of the entire image, which is performed by the control unit in FIG. 1 in order to detect the position of a detection target in the entire image. [Diagram 3] 1. FIG. 4 is a diagram for explaining a method of creating a statistical model for the control unit in FIG. 1 to calculate a contribution rate. [Figure 4] 1. FIG. 4 is a diagram for explaining a method for creating another statistical model for the control unit in FIG. 1 to calculate the degree of contribution. [Diagram 5] 1. FIG. 4 is a diagram for explaining a method for creating still another statistical model for the control unit in FIG. 1 to calculate the degree of contribution. [Figure 6] 4 is a diagram for explaining a method of calculating a contribution rate based on the statistical model of FIG. 3. FIG. [Figure 7] 4 is a flowchart for explaining a location detection process executed by a control unit in the first embodiment. [Figure 8] 13 is a first flowchart for explaining a presence location detection process executed by a control unit in a second embodiment. [Figure 9] 13 is a first flowchart for explaining a presence location detection process executed by a control unit in the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, an embodiment of an image processing device to which the present disclosure is applied will be described with reference to the drawings.

[0011] 1 shows an example of the configuration of a target operation system 11 including an image processing device 10 according to the first embodiment. The target operation system 11 may include a camera 12, the image processing device 10, and an operation device 13.

[0012] The object operation system 11 performs a specific operation on a detection target 14 such as a product in a factory or the like. The detection target 14 is placed on a tray 15 or the like. The camera 12 may capture an image of the tray 15 on which the detection target 14 is placed. The camera 12 may generate images at a predetermined frame rate such as 30 fps, in other words periodically. The image processing device 10 may detect the position of the detection target 14 using the image captured by the camera 12. The operation device 13 may perform an operation on the detection target 14 at the position detected by the image processing device 10. The operation device 13 is, for example, a robot, and may grip the detection target 14 as an operation.

[0013] The image processing device 10 includes a communication unit (acquisition unit) 16, a memory 17, and a control unit 18. The image processing device 10 may further include an input unit 19.

[0014] The communication unit 16 acquires an overall image from the camera 12. The overall image is an image in which the position of the detection target 14 is detected by the image processing device 10. Specifically, the overall image is an image in which a subject to be matched is captured. The matched target is an object to be matched with the detection target of the representative image as described below. The communication unit 16 may be, for example, a communication interface that communicates with an external device to exchange information and commands. The communication unit 16 may provide the operation device 13 with the position of the detection target 14 in the overall image.

[0015] The memory 17 includes any storage device, such as a random access memory (RAM) and a read only memory (ROM), etc. The memory 17 may store various programs that cause the control unit 18 to function and various information that the control unit 20 uses.

[0016] The memory 17 stores a template image group. The template image group includes a plurality of detection target images. The detection target images may be acquired, for example, in a time series as described later. The detection target images may include, for example, a plurality of detection target images generated from one image by a padding process. The detection target images may include, for example, a plurality of detection target images acquired under different environments. The present embodiment will be described taking as an example a template image group including a plurality of detection target images acquired in a time series. The detection target image is an image of the detection target 14.

[0017] The multiple detection target images may include multiple processed images obtained by performing image processing on each of the multiple detection target images. The image processing may be performed by the control unit 18. The image processing may be, for example, a brightness adjustment process that applies to the entire detection target image a change in pixel value between multiple detection target images that were acquired before and after the detection target image in the template image group for each of the multiple detection target images. Alternatively, the image processing may be, for example, a process that adds a disturbance that occurs suddenly to multiple detection target images that are acquired before and after each of the multiple detection target images.

[0018] The input unit 19 may include one or more interfaces that detect an operation input by a user. The input unit 19 may include, for example, physical keys, capacitive keys, and a touch screen that is integral with a display device.

[0019] The control unit 18 includes one or more processors and memories. The processor may include a general-purpose processor that loads a specific program to execute a specific function, and a dedicated processor specialized for a specific process. The dedicated processor may include an application specific integrated circuit (ASIC). The processor may include a programmable logic device (PLD). The PLD may include a field-programmable gate array (FPGA). The control unit 18 may be either a system-on-a-chip (SoC) or a system in a package (SiP) in which one or more processors work together.

[0020] The control unit 18 generates a representative image based on a partial image group extracted from the template image group. The extraction of a partial image group from the template image group and the generation of the representative image will be described later using a detailed example. The control unit 18 may generate a representative image, for example, every time an entire image is acquired.

[0021] As shown in FIG. 2, the control unit 18 performs a similarity judgment between the representative image ri and the region in a state where the representative image ri having a size equal to or smaller than the entire image wi is superimposed on at least a part of the region of the entire image wi. By performing the similarity judgment, it is possible to judge whether the matching target of the entire image wi is the detection target. In this embodiment, an example is described in which a representative image ri smaller than the entire image wi is superimposed on a part of the entire image wi. Also, the similarity judgment will be explained later using a detailed example. Furthermore, the control unit 18 can detect the position of the detection target in addition to the judgment of whether the matching target is the detection target. Specifically, the control unit 18 detects the position of the detection target 14 in the entire image wi by displacing a part of the region of the entire image wi superimposed on the representative image ri and performing a similarity judgment at each position. When the control unit 18 detects an image of the detection target 14 in the entire image wi, the control unit 18 stores the image in the memory 17 as a detection target image to be included in the template image group.

[0022] Next, extraction of a part of the image group from the template image group in this embodiment will be described. The control unit 18 may, for example, determine a first time point that is the start time point of a time range related to the acquisition time of the detection target image to be extracted from the template image group. The first time point may be determined by any method. For example, the first time point may be determined based on a change along a time series of the appearance effect caused on the image included in the template image group. When the input unit 19 detects an operation input specifying the first time point, the time point corresponding to the operation input may be determined as the first time point. Alternatively, the first time point may be determined based on an analysis of the template image group by the control unit 18.

[0023] The control unit 18 determines the first time point based on, for example, a time series change in pixel values ​​of each image included in the template image group. The pixel value of each image may be, for example, a pixel value of a specific pixel constituting the image, an average pixel value of all images, an average pixel value of a specific range, etc. More specifically, the control unit 18 calculates, for example, a period that is at least twice the period corresponding to the lowest frequency component in the change in pixel values ​​along the time series, and determines the time point obtained by going back the calculated period from the current time point as the first time point.

[0024] The control unit 18 may determine an image group including a plurality of images acquired from a first time point in the past to the latest time point along a time series among images included in the template image group as a first image group. The control unit 18 may determine an image sampling interval for further extracting images from the first image group. The sampling interval may be determined by any method. For example, the sampling interval may be determined based on a change along a time series in the appearance effect caused on the images included in the template image group. When the input unit 19 detects an operation input specifying a sampling interval, the interval corresponding to the operation input may be determined as the sampling interval. Alternatively, the sampling interval may be determined based on an analysis of the template image group by the control unit 18.

[0025] The control unit 18 determines the sampling interval based on, for example, a time-series change in pixel values ​​of each image included in the template image group. As with the determination of the first time point, the pixel value of each image may be the pixel value of a specific pixel constituting the image, the average pixel value of all images, the average pixel value of a specific range, etc. More specifically, the control unit 18 determines, for example, a period that is at least twice the period corresponding to the highest frequency component in the time-series change in pixel values ​​as the sampling interval.

[0026] For example, when there is no change over time in the pixel values ​​of each image included in the template image group, the control unit 18 may determine the sampling interval to be any interval equal to or greater than the acquisition period of the detection target image. Note that when the absolute value of the difference between chronologically consecutive pixel values ​​is less than a first threshold, it may be considered that there is no change over time in the pixel values ​​of each image included in the template image group. Furthermore, for example, when there is no change over time in the pixel values ​​of each image included in the template image group, the control unit 18 may determine the first time point such that the number of detection target images detected from the first image group at the sampling interval described above exceeds a predetermined sampling number.

[0027] The control unit 18 may determine an image group of the first image group that includes a plurality of images acquired at sampling intervals from the first time point as a second image group. The control unit 18 may further extract images from the second image group as described below.

[0028] In order to extract the image, the control unit 18 may determine at least one disturbance factor for the detection target image whose position has been detected from the entire image wi within a predetermined time range going back from the present and whose image is included in the template image group. The detection target image whose position has been detected within a predetermined time range going back from the present and whose image is included in the template image group may be a detection target image included in each of the entire images wi of the multiple frames. The disturbance factors in the multiple detection target images corresponding to the multiple entire images wi may be the same or similar.

[0029] Disturbance factors are factors that affect the appearance, such as changes over time in the direction and intensity of lighting due to sunlight, changes in the color received due to changes in the position of the camera 12, the presence or absence of a label on the detection target 14 or differences in the position of the label, changes in illuminance due to the passage of an operator or a robot between the lighting and the detection target 14, etc.

[0030] The disturbance factor may be determined by any method. For example, when the input unit 19 detects an operation input specifying a situation when an appearance effect occurs in a newly acquired whole image wi, the control unit 18 determines a factor corresponding to the situation as the disturbance factor. When the control unit 18 detects an operation input specifying multiple situations, the control unit 18 may determine multiple disturbance factors. Alternatively, a single or multiple disturbance factors may be determined based on the analysis of the second image group by the control unit 18.

[0031] For example, the control unit 18 may determine the disturbance factor by generating a comparison image in which the disturbance factor is reflected. The control unit 18 may generate the comparison image using detection target images within a predetermined time range going back from the present. For example, when the detection target image is single, the comparison image is the detection target image itself. For example, when the detection target image is multiple, the comparison image may be generated based on the multiple detection target images. The comparison image based on the multiple detection target images may be generated by averaging the multiple detection target images, for example.

[0032] The control unit 18 may extract an image group of the detection target image corresponding to the determined disturbance factor from the second image group. When multiple disturbance factors are determined, the control unit 18 may extract multiple image groups of the detection target image corresponding to each disturbance factor.

[0033] In a configuration in which the disturbance factor is determined based on an operation input detected by the input unit 19, on the premise that a situation that affects appearance is associated with each detection target image included in the template image group, the control unit 18 may extract, from the second image group, an image group of detection target images associated with a situation corresponding to the disturbance factor. In a configuration in which the disturbance factor is determined by analyzing the second image group, the control unit 18 compares each detection target image included in the second image group with the comparison image, and extracts an image group of detection target images corresponding to the comparison image.

[0034] For example, the control unit 18 extracts a group of detection target images that are determined to be similar to the comparison image by comparing pixel values ​​of each pixel constituting the comparison image with each pixel constituting each detection target image included in the second image group. Also, for example, the control unit 18 performs clustering on the comparison image and the image group included in the second image group, and extracts an image group of detection target images that belong to the same cluster as the comparison image. Also, for example, the control unit 18 performs disturbance determination on all detection target images included in the second image group, and extracts an image group of detection target images that are included in the comparison image and include pixels determined to be disturbances.

[0035] The control unit 18 may generate the representative image ri based on a second image group extracted from the template image group, or based on an image group corresponding to a disturbance factor further extracted from the second image group. The control unit 18 may generate the representative image ri by various methods.

[0036] For example, the control unit 18 generates the representative image ri by determining a statistical quantity based on pixel values ​​of pixels at corresponding addresses between the images included in the second image group as the pixel value of the pixel. The statistical quantity may be, for example, an average value, a mode value, a median value, or the like.

[0037] Note that the pixels at corresponding addresses may be only pixels located at the same address between the images, as shown in Fig. 3. Alternatively, the pixels at corresponding addresses may be multiple pixels included in an area of, for example, 3 x 3 pixels centered on the same address, as shown in Fig. 4. Alternatively, the pixels at corresponding addresses may be multiple pixels in a section including the same address among sections obtained by dividing each image into multiple grids, as shown in Fig. 5. Furthermore, the statistics may take into account multiple detection target images including the above-mentioned multiple processed images.

[0038] Also, for example, the control unit 18 may generate the representative image ri by performing disturbance determination on each pixel in each image included in the image group corresponding to a single disturbance factor. Note that it is considered that the single disturbance factor affects the pixel values ​​of all images for which the disturbance determination is performed here. Therefore, the single disturbance factor is not considered to be a disturbance in the image for which the disturbance determination is performed. The disturbance determination performed here is a determination of whether or not a disturbance that occurs suddenly occurs in each image included in the image group corresponding to the determined disturbance factor. For example, the control unit 18 creates a histogram for pixel values ​​of pixels at corresponding addresses in each image, and determines pixel values ​​whose frequency is equal to or greater than a threshold value to be non-disturbance. Alternatively, the control unit 18 approximates pixel values ​​of pixels at corresponding addresses in each image to a Gaussian distribution, and determines pixel values ​​whose probability density is equal to or greater than a threshold value to be non-disturbance. Alternatively, the control unit 18 determines disturbance by cluster classification using a statistical model such as K-Means or a mixed Gaussian distribution for pixel values ​​of pixels at corresponding addresses in each image. The control unit 18 generates a representative image ri by determining a statistical quantity based on the pixel value determined to be non-disturbance as the pixel value of the pixel. The statistical quantity is, for example, the average value, the mode value, the median value, or the like.

[0039] Also, for example, the control unit 18 generates the representative image ri by selecting a single detection target image based on the disturbance factor from among a group of images corresponding to a single disturbance factor. For example, the control unit 18 selects as the representative image ri the detection target image having the smallest pixel value difference from a statistical amount based on pixel values ​​of pixels at corresponding addresses.

[0040] Furthermore, for example, when extracting a plurality of image groups corresponding to each of a plurality of disturbance factors, the control unit 18 determines the maximum disturbance factor in the comparison image from among the plurality of disturbance factors. The maximum disturbance factor may be determined arbitrarily. The maximum disturbance factor is, for example, the disturbance factor having the maximum number of images included in the corresponding image group, the disturbance factor having the maximum number of corresponding pixels, or the disturbance factor that occurred most recently. Based on the image group corresponding to the determined maximum disturbance factor, the control unit 18 generates a representative image ri by calculating statistics based on pixel values ​​determined to be non-disturbance, or by selecting a single detection target image from the image group.

[0041] Furthermore, for example, when extracting a plurality of image groups corresponding to a plurality of disturbance factors, the control unit 18 generates a plurality of primary representative images for each of the plurality of image groups. The primary representative images may be generated in the same manner as the representative images ri generated based on the image groups corresponding to a single disturbance factor described above. The control unit 18 may generate the representative images ri by replacing the plurality of detection target images in the method of generating the representative images ri based on the plurality of detection target images described above with the plurality of primary representative images. The control unit 18 may generate the representative images ri by, for example, setting a statistic based on the pixel values ​​of pixels at the same address in each of the plurality of primary representative images as the pixel value.

[0042] Also, for example, the control unit 18 calculates a plurality of statistics based on pixel values ​​of pixels at corresponding addresses in each of a plurality of image groups corresponding to a plurality of disturbance factors. The control unit 18 generates a representative image ri by determining the pixel value of each pixel based on the plurality of statistics. For example, when a portion of a plurality of statistics corresponding to each of a plurality of image groups for pixels at corresponding addresses is common, the control unit 18 may determine the common statistics as the pixel value of the pixel. Having a portion of a plurality of statistics in common may mean not only that the statistics are the same, but also that the statistics are within a predetermined range. The statistics may be, for example, the average value, the mode, the median, etc.

[0043] As described above, the control unit 18 performs the similarity determination by comparing the generated representative image ri with a partial region of the entire image wi. The control unit 18 may perform the similarity determination by comparing the pixel values ​​of at least a part of all pixels constituting the generated representative image ri with the pixel values ​​of pixels at the same address as the pixel in the partial region of the entire image wi.

[0044] The control unit 18 may compare all the pixels constituting the generated representative image ri with all the pixels in a partial area of ​​the entire image wi.

[0045] Alternatively, the control unit 18 may select pixels to be used for comparison with the entire image wi from among a plurality of pixels constituting the generated representative image ri. For example, the control unit 18 may determine feature points such as edges and corners in the representative image ri as pixels to be used for comparison.

[0046] Furthermore, the control unit 18 may perform the similarity judgment using the contribution degree calculated for each of the pixels constituting the representative image ri or for each of the pixels constituting a partial area of ​​the entire image wi. The contribution degree is an index indicating the degree to which a corresponding pixel contributes to the similarity judgment. The control unit 18 may calculate the contribution degree based on at least a part of the statistics of the template image group. At least a part of the template images used for calculating the contribution degree may be the image group used for generating the representative image ri. Alternatively, at least a part of the template images used for calculating the contribution degree may be at least a part of the image group corresponding to a disturbance factor other than the single disturbance factor selected from among the multiple disturbance factors determined for the entire image wi.

[0047] In order to calculate the contribution degree, the control unit 18 creates a statistical model such as a histogram or Gaussian distribution of the pixel value of at least one pixel corresponding to each address for pixels of each address in at least a part of a plurality of detection target images of the template image group. As shown in FIG. 3, the at least one pixel corresponding to the address may be only a pixel located at the address as shown in FIG. 3. Alternatively, as shown in FIG. 4, the at least one pixel corresponding to the address may be a plurality of pixels included in an area of, for example, 3×3 pixels centered on the address. Alternatively, as shown in FIG. 5, the at least one pixel corresponding to the address may be a plurality of pixels in a section including the address among sections obtained by dividing the detection target image into a plurality of grids. In addition, the statistical model may take into account a plurality of detection target images including the above-mentioned plurality of processed images.

[0048] The control unit 18 reads out the frequency corresponding to the pixel value of the pixel at the address in the partial area of ​​the whole image wi corresponding to the pixel at each address used for comparison as defined above in the statistical model of the pixel. As shown in Fig. 6, the control unit 18 calculates the contribution degree of the pixel according to the frequency. The contribution degree may be calculated so as to increase according to the frequency.

[0049] The control unit 18 may select a pixel to be used for the similarity judgment from among a plurality of pixels constituting the representative image ri or a plurality of pixels constituting a part of the entire image wi, which correspond to the pixel to be used for the comparison, based on the contribution degree. For example, the control unit 18 may use a pixel whose contribution degree is equal to or greater than a threshold value for the similarity judgment. Alternatively, the control unit 18 may not perform an analogy judgment based on the similarity degree for a pixel whose contribution degree is equal to or less than a threshold value. Specifically, for example, when a pixel to be used for the comparison of the representative image ri has a pixel value with a low frequency in the corresponding statistical model or has a pixel value outside a certain range centered on the most frequent pixel value, the control unit 18 may not perform a similarity judgment. Alternatively, the control unit 18 may apply a weighting according to the contribution degree in the similarity judgment. For example, the control unit 18 may multiply the difference between pixels at the same address in the representative image ri and a part of the entire image wi by a weighting that changes according to the contribution degree.

[0050] The control unit 18 may calculate the similarity by summing up the differences between pixels constituting the generated representative image ri and pixels in a partial area of ​​the entire image wi, which have the same address. The control unit 18 may determine that the partial area of ​​the entire image wi, in which the similarity is equal to or less than a threshold, is the position where the detection target 14 exists.

[0051] Alternatively, the control unit 18 may not perform the analogy judgment based on the similarity when a specific condition is satisfied using the statistical model of the pixel created for calculating the contribution degree. In this case, a partial area of ​​the entire image wi may be determined to be dissimilar to the representative image. The specific condition is when, among all the pixels used for comparison in the partial area, there are many pixels having a low frequency pixel value in the corresponding statistical model, or when there are many pixels having a pixel value outside a certain range centered on the most frequent pixel value.

[0052] For example, in a statistical model corresponding to each pixel, if the frequency of the pixel value of the pixel is equal to or lower than a threshold, the pixel value may be determined to be a low-frequency pixel value. Also, for example, in a statistical model approximated by a Gaussian model, if the frequency of the pixel value of the pixel is located outside a certain range centered on the pixel value of the most frequent value, the pixel value may be determined to be a pixel value outside the certain range centered on the pixel value of the most frequent value. When the statistical model is approximated by a Gaussian mixture model, the certain range may be set to, for example, a range of ±6σ centered on the mode of each Gaussian distribution.

[0053] A large number of pixels having a low frequency pixel value among all pixels may mean that the number of pixels having a low frequency pixel value is equal to or less than a threshold value. Alternatively, a large number of pixels having a low frequency pixel value among all pixels may mean that the ratio of pixels having a low frequency pixel value to all pixels used for comparison is equal to or less than a threshold value.

[0054] As described above, when the control unit 18 detects the position of the detection target 14 in the entire image wi, the control unit 18 includes an image portion of a partial area of ​​the entire image wi corresponding to the position as a detection target image in the template image group and stores it in the memory 17. When the control unit 18 determines a disturbance factor based on an operation input detected by the input unit 19 and detects the position of the detection target 14 in the entire image wi, the control unit 18 may associate the detection target image corresponding to the position with a situation that affects the appearance and include the detection target image in the template image group.

[0055] Next, the presence position detection process executed by the control unit 18 in the first embodiment will be described with reference to the flowchart of Fig. 7. The presence position detection process starts by acquiring one frame of the entire image wi.

[0056] In step S100, the control unit 18 temporarily specifies a partial area of ​​the acquired whole image wi that is the same size as the detection target image included in the template image group as a region for similarity determination. After specification, the process proceeds to step S101.

[0057] In step S101, the control unit 18 determines a first time point and a sampling period based on an analysis of each detection target image included in the detection or template image group in the input unit 19. After the determination, the process proceeds to step S102.

[0058] In step S102, the control unit 18 extracts a second group of images based on the first time point and the sampling interval determined in step S101. After extraction, the process proceeds to step S103.

[0059] In step S103, the control unit 18 determines the disturbance factor based on an input specifying the situation to the input unit 19 or on an analysis of the second image group. After the determination, the process proceeds to step S104.

[0060] In step S104, the control unit 18 generates a representative image ri based on the image group corresponding to the disturbance factor determined in step S103, which is extracted from the second image group extracted in step S102. After generating the representative image ri, the process proceeds to step S105.

[0061] In step S105, the control unit 18 selects pixels to be used for comparison with the partial region identified in step S100 in the representative image ri generated in step S104. After the pixels are selected, the process proceeds to step S106.

[0062] In step S106, the control unit 18 extracts a portion of the template images. After the extraction, the process proceeds to step S107.

[0063] In step S107, the control unit 18 creates a statistical model for each pixel of the multiple detection target images extracted in step S106. After creating the statistical model, the process proceeds to step S108.

[0064] In step S108, the control unit 18 uses the statistical model created in step S107 to determine whether or not the number of pixels with low frequency pixel values ​​is large. If the number of low frequency pixels is not large, the process proceeds to step S109. If the number of low frequency pixels is large, the process proceeds to step S114.

[0065] In step S109, the control unit 18 calculates the contribution degree by reading out the frequency corresponding to the pixel values ​​of the pixels constituting the partial region identified in step S100 from the statistical model created in step S107. After calculating the contribution degree, the process proceeds to step S110.

[0066] In step S110, the control unit 18 calculates the similarity between the partial region identified in step S100 and the representative image ri based on the contribution degree calculated in step S109. After calculating the similarity, the process proceeds to step S111.

[0067] In step S111, the control unit 18 determines whether the similarity calculated in step S110 is equal to or less than a threshold. If it is equal to or less than the threshold, the process proceeds to step S112. If it is not equal to or less than the threshold, the process proceeds to step S114.

[0068] In step S112, control unit 18 determines that the partial area identified in step S100 is the location of detection target 14. After determination, the process proceeds to step S113.

[0069] In step S113, the control unit 18 stores the image of the partial area specified in step S100 as a detection target image in the memory 17 so as to be included in the template image group. After storage, the process proceeds to step S114.

[0070] In step S114, the control unit 18 determines whether or not the entire region of the entire image wi has been specified as a partial region. If the entire region has not been specified, the process proceeds to step S115. If the entire region has been specified, the detection process ends.

[0071] In step S115, the control unit 18 displaces the partial region specified in step S100 while maintaining the same size. After the displacement, the process returns to step S100.

[0072] The image processing device 10 of the first embodiment configured as described above obtains a representative image ri based on a part of a group of template images, and performs a similarity determination between at least a part of the entire image wi and the representative image ri. With such a configuration, the image processing device 10 can generate the representative image ri including a detection target image including a disturbance that occurs frequently. Therefore, even if the entire image wi is affected by a disturbance, the image processing device 10 can include the influence of the disturbance that occurs frequently in the representative image ri. Therefore, even if the entire image wi is affected by the disturbance, the image processing device 10 can determine whether or not a subject appearing in the entire image corresponds to the detection target 14. As a result, even if the disturbance occurs frequently, the image processing device 10 can continuously and robustly detect the detection target 14 using a relatively small number of learning images, in other words, a group of images.

[0073] Moreover, the image processing device 10 of the first embodiment stores the detection target image of the detection target 14 detected in the entire image wi in the memory 17 so as to be included in the template image group. With this configuration, the image processing device 10 can reflect the tendency of disturbances that are likely to affect the entire image wi in the representative image ri in the subsequent detection of the location of the detection target 14. Therefore, the image processing device 10 can improve the robustness of detection in the subsequent detection of the location of the detection target 14.

[0074] Moreover, the image processing device 10 of the first embodiment generates a representative image ri based on a second image group including a plurality of images acquired at a sampling interval among a first image group including a plurality of images acquired in a chronological order from a first time point going back in time among detection target images included in a template image group. With such a configuration, the image processing device 10 can reflect disturbances that may affect the entire image wi in the representative image ri by determining the first time point according to the longest occurrence period among disturbances that affect the entire image wi when the entire image wi is captured. Furthermore, the image processing device 10 can generate an appropriate representative image ri using some of the detection target images without using all of the detection target images included in the template image group by determining the sampling interval according to the shortest occurrence period among disturbances that affect the entire image wi when the entire image wi is captured. Therefore, the image processing device 10 can reduce the processing load for generating the representative image ri, and can reduce the load related to the detection of the location of the detection target 14.

[0075] Moreover, the image processing device 10 of the first embodiment determines at least one disturbance factor that has the same or similar appearance effect on the detection target 14 included in the multiple whole images wi, extracts an image group corresponding to the disturbance factor from the second image group, and generates a representative image ri based on the image group corresponding to the disturbance factor. With this configuration, the image processing device 10 can reflect disturbances that are likely to affect the acquired representative image ri in the representative image ri. Therefore, the image processing device 10 can further improve the robustness of detection of the detection target 14.

[0076] Furthermore, the image processing device 10 of the first embodiment determines a disturbance factor based on a detection target image associated with the situation among the template images in response to an operation input of a situation that affects the appearance of the detection target 14, and when detecting the presence position of the detection target 14 in the entire image wi, associates the situation with an image of the presence position and includes it in the template image group. With this configuration, the image processing device 10 can clearly reflect the occurring disturbance factor in the representative image ri. Therefore, the image processing device 10 can further improve the robustness of detection of the detection target 14.

[0077] Moreover, the image processing device 10 of the first embodiment selects pixels to be used for comparison with the entire image wi from among the multiple pixels constituting the representative image ri. With this configuration, the image processing device 10 can reduce the processing load of similarity determination compared to a configuration in which all pixels constituting the representative image ri are used to compare with a partial area of ​​the entire image wi.

[0078] Moreover, the image processing device 10 of the first embodiment generates a representative image ri by determining a statistical quantity based on the pixel values ​​of pixels at the same address in each image group corresponding to the disturbance factor as the pixel value of the pixel. With this configuration, the image processing device 10 can remove the influence of pixel values ​​that can be considered as disturbances in the image group corresponding to the disturbance factor, in other words, pixel values ​​that occur infrequently in the image group. Therefore, the image processing device 10 can further improve the robustness of detection of the detection target 14.

[0079] Moreover, the image processing device 10 of the first embodiment calculates the contribution degree of a part of the entire image wi used for the similarity judgment based on the statistics of at least a part of the detection target image of the template image group, and uses the contribution degree for the similarity judgment. With such a configuration, the image processing device 10 can reduce the possibility that the result of the similarity judgment of a pixel with a low contribution degree is determined to be high similarity. Therefore, when a disturbance that does not occur in the template image group occurs in the entire image wi, the image processing device 10 can eliminate the influence of the disturbance in the similarity judgment. Therefore, the image processing device 10 can further improve the robustness of the detection of the detection target 14.

[0080] In the image processing device 10 of the first embodiment, at least a part of the template images used to calculate the contribution degree is the image group used to generate the representative image ri. With this configuration, when a disturbance not reflected in the representative image ri occurs in the entire image wi, the image processing device 10 can eliminate the influence of the disturbance in the similarity judgment. Therefore, the image processing device 10 can further improve the robustness of the detection of the detection target 14.

[0081] In the image processing device 10 of the first embodiment, at least a part of the template image group used for calculating the contribution degree is at least a part of the image group corresponding to a disturbance factor other than the single disturbance factor selected from among the multiple disturbance factors determined for the entire image wi. With this configuration, when a disturbance factor that is not reflected in the representative image ri and may have occurred occurs in the entire image wi, the image processing device 10 can eliminate the influence of the disturbance factor that is not reflected in the representative image ri in the similarity judgment. Therefore, the image processing device 10 can further improve the robustness of detection of the detection target 14.

[0082] In the first embodiment, the representative image ri is generated based on the image group corresponding to the disturbance factor extracted from the second image group, but this is not limited to this. The representative image ri may be generated from the second image group without identifying the image group corresponding to the disturbance factor.

[0083] Next, an image processing device according to a second embodiment of the present disclosure will be described. The second embodiment differs from the first embodiment in the method of extracting an image group from a template image group in the control unit 18. The second embodiment will be described below, focusing on the differences from the first embodiment. Note that parts having the same configuration as the first embodiment are given the same reference numerals.

[0084] As shown in Fig. 1, the image processing device 10 according to the second embodiment includes a communication unit 16, a memory 17, and a control unit 18, similar to the first embodiment. Also, similar to the first embodiment, the image processing device 10 may include an input unit 19. The configurations and functions of the communication unit 16, memory 17, and input unit 19 in the second embodiment are the same as those in the first embodiment. The configuration of the control unit 18 in the second embodiment is the same as that in the first embodiment.

[0085] In the second embodiment, unlike the first embodiment, the control unit 18 does not extract a second image group from the template image group, but directly extracts an image group corresponding to the disturbance factor from the template image group. As in the first embodiment, the detection target image whose existence position is detected within a predetermined time range going back from the present and included in the template image group may be the detection target image in at least one frame of the entire image wi, or may be multiple detection target images in each of the entire images wi of multiple frames. The disturbance factors in the multiple detection target images may be the same or similar.

[0086] In the second embodiment, unlike the first embodiment, the control unit 18 may generate a representative image ri based on an image group corresponding to a disturbance factor extracted from a template image group. A method of generating a representative image ri based on an image group corresponding to a disturbance factor may be similar to that of the first embodiment.

[0087] In the second embodiment, the control unit 18 performs the similarity judgment by comparing the generated representative image ri with a partial region of the entire image wi, as in the first embodiment. Therefore, the control unit 18 may compare all pixels constituting the generated representative image ri with all pixels in the partial region of the entire image wi. Alternatively, the control unit 18 may select pixels to be used for comparison with the entire image wi from among a plurality of pixels constituting the generated representative image ri. Furthermore, the control unit 18 may perform the similarity judgment using the contribution degree calculated for each pixel constituting the partial region of the entire image wi.

[0088] Next, the presence position detection process executed by the control unit 18 in the second embodiment will be described with reference to the flowchart of Fig. 8. The presence position detection process starts by acquiring one frame of the entire image wi.

[0089] In step S200, the control unit 18 determines the disturbance factor based on an input specifying a situation to the input unit 19, or on an analysis of a detection target image whose presence position has been detected from the whole image wi within a predetermined retroactive time range from the present and which has been included in the template image group. After the determination, the process proceeds to step S201.

[0090] In step S201, the control unit 18 extracts, from the template images, an image group corresponding to the disturbance factor determined in step S200. After the extraction, the process proceeds to step S202.

[0091] In steps S202 to S213, the control unit 18 performs processes similar to those in steps S104 to S115 in the detection process of the first embodiment.

[0092] The image processing device 10 of the second embodiment configured as described above also generates a representative image ri based on a part of images extracted from a part of the template images, and detects the position of the detection target 14 in the entire image wi by judging the similarity between the part of the entire image wi and the representative image ri. Therefore, even if disturbances occur frequently, the image processing device 10 can continuously and robustly detect the detection target 14 using a relatively small number of learning images, in other words, a group of images.

[0093] Next, an image processing device according to a third embodiment of the present disclosure will be described. The third embodiment differs from the first embodiment in the method of extracting an image group from a template image group in the control unit 18. The third embodiment will be described below, focusing on the differences from the first embodiment. Note that parts having the same configuration as the first embodiment are given the same reference numerals.

[0094] As shown in Fig. 1, the image processing device 10 according to the third embodiment includes a communication unit 16, a memory 17, and a control unit 18, similar to the first embodiment. Also, similar to the first embodiment, the image processing device 10 may include an input unit 19. The configurations and functions of the communication unit 16, memory 17, and input unit 19 in the third embodiment are the same as those in the first embodiment. The configuration of the control unit 18 in the third embodiment is the same as that in the first embodiment.

[0095] In the third embodiment, unlike the first embodiment, the control unit 18 extracts an arbitrary image group from the template image group, without being limited to the second image group and the image group corresponding to the disturbance factor. The control unit 18 may generate a representative image ri based on the extracted image group. A method of generating the representative image ri based on the extracted image group may be similar to a method of generating the representative image ri based on the second image group in the first embodiment.

[0096] In the third embodiment, the control unit 18 performs the similarity judgment by comparing the generated representative image ri with a partial region of the entire image wi, as in the first embodiment. Therefore, the control unit 18 may compare all pixels constituting the generated representative image ri with all pixels in the partial region of the entire image wi. Alternatively, the control unit 18 may select pixels to be used for comparison with the entire image wi from among a plurality of pixels constituting the generated representative image ri. Note that in the third embodiment, the control unit 18 calculates the contribution degree calculated for each pixel constituting the partial region of the entire image wi based on at least a portion of the statistics of the template image group, and performs the similarity judgment using the contribution degree.

[0097] Next, the presence position detection process executed by the control unit 18 in the third embodiment will be described with reference to the flowchart of Fig. 9. The presence position detection process starts by acquiring one frame of the entire image wi.

[0098] In step S300, the control unit 18 extracts arbitrarily defined images from the template images. After extraction, the process proceeds to step S301.

[0099] In steps S301 to S312, the control unit 18 performs processes similar to those in steps S104 to S115 in the detection process of the first embodiment.

[0100] The image processing device 10 of the third embodiment configured as above generates a representative image ri based on a part of images extracted from a group of template images, and when detecting the position of the detection target 14 in the entire image wi by similarity judgment between a part of the entire image wi and the representative image ri, calculates the contribution degree of the part of the entire image wi used for the similarity judgment based on the statistics of at least a part of the group of template images, and uses the contribution degree for the similarity judgment. With such a configuration, when a disturbance not reflected in the representative image ri occurs in the entire image wi, the image processing device 10 can eliminate the influence of the disturbance in the similarity judgment. Therefore, the image processing device 10 can further improve the robustness of the detection of the detection target 14.

[0101] The above describes an embodiment of the image processing device 10. However, the embodiment of the present disclosure can also be implemented as a method or program for implementing the device, or as a storage medium on which a program is recorded (for example, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a CD-RW, a magnetic tape, a hard disk, or a memory card, etc.).

[0102] The form of implementation of the program is not limited to application programs such as object code compiled by a compiler or program code executed by an interpreter, but may be a program module incorporated into an operating system, etc. Furthermore, the program may or may not be configured so that all processing is performed only by the CPU on the control board. The program may be configured so that a part or all of it is executed by another processing unit mounted on an expansion board or expansion unit added to the board as necessary.

[0103] The drawings for explaining the embodiments according to the present disclosure are schematic, and the dimensional ratios and the like in the drawings do not necessarily correspond to the actual ones.

[0104] Although the embodiments of the present disclosure have been described based on the drawings and examples, it should be noted that those skilled in the art can make various modifications or alterations based on the present disclosure. Therefore, it should be noted that these modifications or alterations are included in the scope of the present disclosure. For example, the functions, etc. included in each component, etc. can be rearranged so as not to cause logical inconsistencies, and multiple components, etc. can be combined into one or divided.

[0105] All of the features described in this disclosure and / or all steps of any method or process disclosed herein may be combined in any combination except those combinations in which the features are mutually exclusive. Furthermore, each feature described in this disclosure may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly denied. Thus, unless expressly denied, each disclosed feature is merely one example of a generic series of the same or equivalent features.

[0106] Furthermore, the embodiments of the present disclosure are not limited to any of the specific configurations of the embodiments described above, but rather extend to any novel feature or combination of features described herein, or any novel method or process step or combination of features described herein.

[0107] In this disclosure, descriptions such as "first" and "second" are identifiers for distinguishing the configuration. Configurations distinguished by descriptions such as "first" and "second" in this disclosure may have their numbers exchanged. For example, the first point in time may exchange the identifiers "first" and "second" with the second point in time. The exchange of identifiers is performed simultaneously. The configurations remain distinguished even after the exchange of identifiers. Identifiers may be deleted. A configuration from which an identifier has been deleted is distinguished by a code. Descriptions of identifiers such as "first" and "second" in this disclosure alone should not be used to interpret the order of the configurations or to justify the existence of an identifier with a smaller number. [Explanation of symbols]

[0108] 10 Image processing device 11 Target Operating System 12 Camera 13 Operating equipment 14 Detection Target 15 Tray 16 Communications Department 17 Memory 18 Control Unit 19 Input section ri Representative image wi Full image

Claims

1. A memory that stores a template image group including a plurality of images of detection targets; An acquisition unit that acquires an entire image including a matching target; a control unit that acquires a representative image based on a part of the template image group and performs a similarity determination between at least a part of the entire image and the representative image. Image processing device.

2. 2. The image processing device according to claim 1, The control unit stores the image of the detection target detected in the entire image in the memory so as to be included in the template image group. Image processing device.

3. 3. The image processing device according to claim 1, The control unit generates the representative image based on a second image group including a plurality of images acquired at a sampling interval out of a first image group including a plurality of images acquired in time series from a first time point going back in time out of images included in the template image group. Image processing device.

4. 4. The image processing device according to claim 3, an input unit for detecting an input of at least one of the first time point and the sampling interval; The control unit determines at least one of the first time point and the sampling interval based on an input detected by the input unit. Image processing device.

5. 2. The image processing device according to claim 1, The control unit determines at least one disturbance factor having the same or similar effect on the appearance of the detection target included in the plurality of whole images, extracts an image group corresponding to the disturbance factor from the template image group, and generates the representative image based on the image group corresponding to the disturbance factor. Image processing device.

6. 5. The image processing device according to claim 3, The control unit determines at least one disturbance factor having the same or similar effect on the appearance of the detection target included in the plurality of whole images, extracts an image group corresponding to the disturbance factor from the second image group, and generates the representative image based on the image group corresponding to the disturbance factor. Image processing device.

7. 7. The image processing device according to claim 5, An input unit that detects an input of a situation when the effect on the detection target included in the entire image occurs, The control unit determines the disturbance factor based on an image in the template image group to which the situation is associated, and when detecting the presence position of the detection target in the entire image, associates the situation with an image of the presence position and includes the image in the template image group. Image processing device.

8. 8. The image processing device according to claim 1, The control unit selects a pixel to be used for comparison with the entire image from among a plurality of pixels constituting the representative image. Image processing device.

9. 8. The image processing device according to claim 5, The control unit generates the representative image by determining a statistical quantity based on a pixel value of a pixel at the same address in each of the images corresponding to the disturbance factor as a pixel value of the pixel. Image processing device.

10. 8. The image processing device according to claim 5, The control unit generates the representative image by selecting a single image based on the disturbance factor from among a group of images corresponding to the disturbance factor. Image processing device.

11. 9. The image processing device according to claim 5, The control unit determines a plurality of disturbance factors for the entire image, extracts a plurality of image groups corresponding to the plurality of disturbance factors, generates a plurality of primary representative images for each of the plurality of image groups, and generates the representative images by setting a statistical amount based on pixel values ​​of pixels at the same address in each of the plurality of primary representative images as the pixel values ​​of the pixels. Image processing device.

12. 9. The image processing device according to claim 5, The control unit determines a plurality of disturbance factors for the entire image, extracts a plurality of image groups corresponding to the plurality of disturbance factors, calculates a plurality of statistics based on pixel values ​​of pixels at the same address in each of the plurality of image groups, and generates the representative image by determining the pixel values ​​of the pixels based on the plurality of statistics. Image processing device.

13. 13. The image processing device according to claim 5, The control unit calculates a contribution degree of a part of the entire image used for the similarity determination based on statistics of at least a part of the template images, and uses the contribution degree for the similarity determination. Image processing device.

14. 14. The image processing device according to claim 13, The control unit calculates the contribution degree for each pixel constituting a part of the entire image, and selects a pixel to be used for the similarity determination from among the pixels constituting the part based on the contribution degree. Image processing device.

15. 14. The image processing device according to claim 13, The control unit calculates the contribution degree for each pixel constituting a part of the entire image, and performs weighting in the similarity determination according to the contribution degree calculated for each pixel. Image processing device.

16. 16. The image processing device according to claim 13, At least a part of the template image group used for calculating the contribution degree is the image group used for generating the representative image. Image processing device.

17. 16. The image processing device according to claim 13, At least a part of the template image group used for calculating the contribution degree is at least a part of an image group corresponding to a disturbance factor other than a single disturbance factor selected from among a plurality of disturbance factors determined for the entire image. Image processing device.

18. A memory that stores a template image group including a plurality of images of detection targets; An acquisition unit that acquires an entire image including a matching target; a control unit that acquires a representative image based on a part of the template image group and performs a similarity determination between at least a part of the entire image and the representative image, The control unit calculates a contribution degree of a part of the entire image used for the similarity determination based on statistics of at least a part of the template images, and uses the contribution degree for the similarity determination. Image processing device.

19. storing a template image group including a plurality of images of a detection target; Obtaining an entire image including a matching target; obtaining a representative image based on a portion of the template images; and determining a similarity between at least a part of the entire image and the representative image. Image processing methods.

Citation Information

Patent Citations

  • Method and device for detecting specific point

    JP2002259976A

  • Automatic tracking device

    JP2008113071A

  • Template preparation device and template preparation method

    JP2016207147A

  • Specific point detecting method and device

    US20020126895A1

Cited By

  • Judgment device, mobile unit, judgment method, and program

    JP2026167407A

  • Judgment device, mobile unit, judgment method, and program

    JP7850335B1