Image processing method and image processing device
By combining the range gated imaging device and the grayscale imaging device, the distance image is processed using a search window corresponding to the size and the shooting distance, and the problem of automatically extracting image areas in the prior art is solved, and efficient image processing is achieved.
Patent Information
- Application Number
- CN202380026011.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-03-30
- Filing Date
- 2023-03-23
- Publication Date
- 2024-11-01
AI Technical Summary
The prior art cannot automatically achieve two regions with different image quality when processing high resolution or high frame rate dynamic images, and the processing is complex and slow when matching 3D models in distance images.
Using an image processing device, a range gate image is acquired through a range gate image pickup device, and combined with information from the grayscale imaging device, a detection object is searched using a search window corresponding to the size and shooting distance, and a binary image is synthesized to reduce the calculation amount.
Automatically and quickly extract the image area of the detection object, reducing useless searches and improving processing efficiency.
Smart Images

Figure CN118891650A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to an image processing method and an image processing device. Background Art
[0002] Patent document 1 discloses an image processing device including an image processing unit, which aims to prevent frame loss when transmitting high-resolution or high-frame-rate dynamic images, divides an image area of a specified image into at least two areas based on distance information obtained by a ranging sensor, and performs image processing on at least one of the two areas of the image so that the two areas have different image qualities.
[0003] In the image processing device of Patent Document 1, a region of interest designated by a user is determined based on the position information of an image designated by the user and the distance information measured using a distance measuring sensor. Specifically, an object region having the same distance information is detected around the position designated by the user, and the detected region is determined as the region of interest.
[0004] Patent Document 1: Japanese Patent Publication No. 2017-224970 Summary of the invention
[0005] -Technical problem to be solved by the invention-
[0006] However, the technology of Patent Document 1 is based on the user's input, and has a problem that image processing that allows two areas to have different image qualities cannot be automatically performed.
[0007] In addition, for example, when searching for distance information (distance image) of a distance sensor, since it is an image mixed with distance values having grayscale, it is necessary to specify the size of the search window. There is also the problem that if searching in the distance image, the processing becomes complicated in order to match it with the 3D model, and the processing speed becomes slow.
[0008] The present disclosure is completed to solve the above-mentioned technical problems, and its purpose is to automatically and quickly extract the image area of the detection object.
[0009] -Technical solutions for solving technical problems-
[0010] In order to solve the above-mentioned technical problems, an image processing method using an image processing device involved in one embodiment of the present disclosure includes a first process, a second process and a third process. In the first process, for a specified shooting range, a range-selected image is acquired using a range-selected camera that shoots a set distance range. In the second process, a search window is used to search for a detection object in the range-selected image, and the size of the search window corresponds to the shooting distance from the range-selected camera to the set distance range. When a window area that meets specified conditions is detected in the range-selected image in the second process, in the third process, a grayscale image acquired using other cameras that shoot the specified shooting range and information on the window area are synthesized and output.
[0011] -Effects of the Invention-
[0012] According to the present disclosure, since a search window whose size corresponds to the shooting distance is used, useless searches caused by using a search window size that is not suitable for the detection object can be omitted. In addition, the range-selected image is essentially a binary image, and the calculation amount of the search processing is less than that of the grayscale image, so the image area of the detection object can be automatically and quickly extracted. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is a simplified diagram of the structure, shooting domain and search window of the image processing device;
[0014] Figure 2 is a block diagram showing a configuration example of an image processing device;
[0015] Figure 3A is a diagram showing an example of the relationship between the range number and the shooting distance;
[0016] Figure 3B is a diagram showing another example of the relationship between the range number and the shooting distance;
[0017] Figure 3C is a diagram showing another example of the relationship between the range number and the shooting distance;
[0018] Figure 4 is a block diagram showing a structural example of a range-selected imaging device;
[0019] Figure 5 is a flowchart showing an example of the operation of the image processing device;
[0020] Figure 6 is an explanatory diagram showing an operation example of the image processing device according to the first embodiment;
[0021] Figure 7is an explanatory diagram showing another operation example of the image processing device;
[0022] Figure 8 is a diagram showing an image processing device and Figure 3B corresponding operation example;
[0023] Fig. 9 is an explanatory diagram showing another operation example of the image processing device;
[0024] Fig.10 is a conceptual diagram showing an example of setting a search window;
[0025] Fig.11 is an explanatory diagram showing another operation example of the image processing device according to the second embodiment;
[0026] Fig.12 This is an explanatory diagram about a binary image (binarized image). DETAILED DESCRIPTION
[0027] Below, the embodiments of the present disclosure are described in detail according to the accompanying drawings. The description of the following embodiments is essentially for illustration only, and there is no intention to limit the invention of the present application, its application objects or its use. In other words, the numerical values, shapes, constituent elements, arrangement positions of constituent elements, and connection forms shown in the following embodiments are examples and are not used to limit the present disclosure. Therefore, the constituent elements of the following embodiments that are not recorded in the independent claims representing the highest-level concepts of the present disclosure are described as arbitrary constituent elements.
[0028] <First Embodiment>
[0029] Figure 1 This is a diagram schematically showing the configuration of the image processing device according to the present embodiment, and an overview of a photographing area and a search window. Figure 2 This is a block diagram showing a configuration example of an image processing device.
[0030] like Figure 1 As shown, the image processing device 1 includes a range gate camera 2, a grayscale camera 3, and a computing unit 4. The image processing device 1 of the present disclosure is used, for example, for the following purposes: when a robot is working in a factory, when the detection object M flows on a conveyor belt, the position of the detection object M is grasped based on the range gate image RG captured by the range gate camera 2, and based on the position information, the area containing the retrieval object is cut out from the grayscale image captured by the grayscale camera 3 and output, etc. The information output from the image processing device 1 is used for post-processing (for example, image recognition processing), etc.
[0031] -Range-selected camera device-
[0032] The range gate imaging device 2 captures a range gate image RG of a set distance range (hereinafter referred to as imaging range b) for a predetermined imaging area CA. The range gate imaging device 2 outputs the range gate image RG captured for each imaging range b and information on the imaging distance S to the calculation unit 4 .
[0033] Here, a plurality of shooting ranges b can be set, and the number of shooting ranges b is referred to as the number of ranges. In the following description, the number of ranges is set to n. n is an arbitrary integer greater than 1. Also, for the sake of convenience, the nth range is sometimes referred to as the nth range, and the shooting range b of the nth range is sometimes referred to as the shooting range b. n The photographing distance S, the range gate image RG, and the search window VA described later may also be described by attaching symbols according to the same rule.
[0034] Figure 3 Figure 3A to Figure 3C ) shows an example of the relationship between the range number n of the range selection and the shooting distance S. The shooting distance S is the distance from the range selection imaging device 2 to each shooting range b. n In the example of FIG. 3 , the camera device 2 is selected from the range to each shooting range b. n The distance from the starting position to the shooting distance S1 to S n It should be noted that the shooting distance S is not limited to the distance to the start position of the range, but may also be the distance to the middle position of the range.
[0035] For example, in FIG3 , the shooting distance S1 of the first range is the distance from the range selection camera 2 to the start position of the first range, and the distance width from the start position of the shooting range b1 to the end position of the shooting range b1 (hereinafter referred to as the distance width) is l1. Similarly, the shooting distance S2 of the second range is the distance from the range selection camera 2 to the start position of the second range, and the distance width of the shooting range b2 is l2. The shooting distance S1 of the nth range is n is the distance from the range selection camera 2 to the starting position of the nth range, and the shooting range b n The distance width is l n .
[0036] It should be noted that in the example of FIG. 3 , the distance widths l1, l2, ... l n Although all the distances l are equal, they can also be different from each other.
[0037] exist Figure 3A In FIG. 1 , n shooting ranges b are shown. nThis is an example in which the distance 1 in the depth direction of the imaging area CA is arranged uniformly and there is no gap between adjacent imaging ranges b.
[0038] Figure 3B The depth direction of the imaging area CA is shown in FIG. n A portion of the shooting area and the front and rear range b n An example of overlapping regions (hereinafter referred to as overlapping regions) that overlap each other. Figure 3B The setting is useful when objects spanning multiple ranges are judged as one object.
[0039] Figure 3C The depth direction of the imaging area CA is shown in FIG. n There is a shooting range b in front and behind it. n An example of a non-shooting area where no shooting is performed. Figure 3C The setting is useful when the range to be observed is fixed, for example, when only the vicinity of train doors is monitored on a station platform.
[0040] exist Figure 4 FIG. 2 shows a structural example of a range-selected camera device 2. Figure 4 As shown, the range-gated imaging device 2 includes a light source 21, a camera 22, a shutter 23, and a control unit 24. The range-gated imaging device 2 is configured to perform exposure at a time delayed relative to the pulse light irradiation time from the light source 21. And, the distance that the light travels back and forth during the delay time becomes the shooting distance S of the distance range (shooting range b) captured in the range-gated image RG. In addition, the distance that the light travels back and forth during the exposure time becomes the distance width l of the distance range (shooting range b) captured in the range-gated image.
[0041] It should be noted that the structure of the range selection camera device 2 is not limited to Figure 4 The structure in may also use other range-selecting camera devices known in the past.
[0042] The control unit 24 outputs trigger signal 1, trigger signal 2, and trigger signal 3 corresponding to the imaging range b to be imaged. The imaging distance S is the distance that the light travels back and forth during the delay time of trigger signal 2 relative to trigger signal 1.
[0043] The light source 21 is a pulse light source, and irradiates the imaging area CA with light corresponding to the imaging range b to be imaged based on the trigger signal 1 received from the control unit 24 .
[0044] The shutter 23 is a global shutter that performs an opening and closing operation based on a trigger signal 2 received from the control unit 24. The shutter 23 is, for example, a global electronic shutter, a mechanical shutter, a liquid crystal shutter, or the like.
[0045] The camera 22 captures the range gate image RG based on the trigger signal 3 received from the control unit 24. As the imaging element of the camera 22, a high-sensitivity sensor such as an avalanche photodiode is used, for example.
[0046] Here, the range-gated image RG refers to an image corresponding to the distance between the range-gated camera device 2 and the object to be photographed (corresponding to the delay amount of exposure relative to the light source 21 when photographing by the range-gated camera device 2). Since the exposure time of the range-gated image RG is short, the texture of the image is rough. For example, when the distance range is 100m, the exposure time is 66.7ns. In addition, the range-gated image RG contains texture information of the background.
[0047] In other words, the range-gated image RG is essentially a binary image. Specifically, the range-gated camera device 2 performs the following processing: emits light to each shooting range b and intercepts the time when the light returns. In this way, the shutter time becomes very short. In addition, as mentioned above, a high-sensitivity sensor such as an avalanche photodiode is used. As a result, the image captured by the range-gated camera device 2 becomes a binary image. Here, the binary image includes an image in which the histogram of pixel values presents a polarized image. For example, when shooting using an avalanche photodiode, as Fig.12 As shown, a histogram showing polarization with multiplied pixels and non-multiplied pixels can be obtained. In addition, grayscale images of about several bits are also included. In other words, in the present disclosure, a binary image means an image whose grayscale appears to be greatly reduced compared to a normal grayscale image. Specifically, the term "binary image" in the present disclosure is used as a concept that includes the above-mentioned binarized image (an image whose histogram shows polarization and a grayscale image of about several bits) in addition to a complete binary image. In other words, the binary image mentioned here includes the following concept: an image that can be easily binarized when judging whether there is a pixel in each pixel area.
[0048] - Grayscale camera device -
[0049] return Figure 1The grayscale camera 3 is a camera that uses the background light of a specified shooting area CA to shoot grayscale images. The grayscale camera 3 is not particularly limited, and includes a texture camera for shooting texture images, a common camera such as a digital camera for shooting visible light images (a camera using a CMOS (Complementary Metal Oxide Semiconductor) sensor, a CCD (Charge-coupled Device) sensor), an X-ray camera, and a thermal camera. The grayscale camera 3 outputs the captured grayscale image to the operation unit 4.
[0050] The shooting area CA specified here means shooting the shooting area common to the range-selected camera 2. It should be noted that this does not intend to make the shooting range of the range-selected camera 2 and the shooting range of the grayscale camera 3 the same. In other words, as long as the range-selected camera 2 and the grayscale camera 3 are configured to be able to shoot the common shooting area CA, their shooting ranges may be different from each other.
[0051] -Calculation Unit-
[0052] The calculation unit 4 synthesizes the object information obtained by searching the range gate image RG received from the range gate imaging device 2 and the image information corresponding to the object information in the grayscale image received from the grayscale imaging device 3 and outputs the synthesized images.
[0053] like Figure 2 As shown, the calculation unit 4 includes a search processing unit 41 , an image matching unit 42 , and a synthesis unit 43 .
[0054] [Search Processing Department]
[0055] The search processing unit 41 searches for a detection object within the range gate image RG using a search window VA having a size corresponding to the shooting distance S, and outputs object information detected by the search.
[0056] exist Figure 1 , the search window VA1 set in the range gate image RG1 of the first range b1 and the search window VA2 set in the (n-1)th range b1 are shown. n-1 Range gated image RG n-1 The search window VA set in n-1 Thus, in this embodiment, according to the shooting distance S corresponding to the range gate image RG n , so that the search window VA n The size change of each range gate image RG n Search within the image. Specifically, the shooting distance S n The longer the search window VAn The smaller the size.
[0057] The method of setting the size (horizontal size and vertical size) of the object to be detected (hereinafter referred to as the detection object) using the search window VA is not particularly limited. For example, (1) one or more default values may be set as preset values; (2) the size of the search window VA may be specified by the user during or before the operation of the image processing device; (3) it may be automatically adjusted. The setting methods of (1) to (3) above may also be combined. In (2) above, when the size of the search window VA is specified by the user, a method of specifying a numerical value or selecting from a plurality of options may be cited.
[0058] Regarding the setting method by automatic adjustment in (3) above, the specific setting method is not particularly limited, and the following two methods can be cited as examples.
[0059] For example, as a first method, the following method can be cited: using the range-gated camera device 2, a range-gated image RG of a specified shooting range b is captured. Then, for the range-gated image RG, a search is performed by specifying the size of the search window VA. Next, based on the relationship between the size of the detected object on the image and the distance of the range-gated image RG, the size of the object in each range-gated image RG is calculated.
[0060] For example, as a second method, the following method can be cited: use the range-gated camera device 2 to capture the range-gated image RG of the specified shooting range b, and use the grayscale camera device 3 to capture the grayscale image. Perform edge extraction (plane differential processing) on the grayscale image. Compare the range-gated image RG in the specified shooting range b with the image after the edge extraction, and take the area with the same edge in the two images as the area of the object. Then, the object size is calculated based on the shooting distance S of the corresponding range-gated image RG and the area size of the object on the range-gated image RG.
[0061] Then, the size of the search window VA is set based on the relationship between the size of the detection object and the shooting distance S. In this case, the size of the search window VA may be set in consideration of the shadow caused by the light source 21 of the range gate imaging device 2 .
[0062] The effect of using a search window whose size corresponds to the shooting distance in this way is shown below.
[0063] When the number of pixels of an image is set to H pixels horizontally and V pixels vertically, and the detection object is photographed at N distances, the search window size suitable for the distance and the detection object at each stage is set to H pixels horizontally and V pixels vertically. ROI (k), vertical: V ROI(k), k=1~N.
[0064] When performing a full search while specifying the search window size using only the existing texture image, since the image must be fully searched for each window size, the number of searches is expressed by the following equation.
[0065] [Mathematical formula 1]
[0066]
[0067] In contrast, when scanning the range gated image, only objects within the distance range corresponding to the range gated image are captured in each range gated image. Therefore, the size of the search window is specified for each range gated image, and the left and right H windows are searched in the horizontal direction relative to the area where the object is captured. EX Pixel, search for each V in the vertical direction EX The number of searches is expressed by the following formula.
[0068] [Mathematical formula 2]
[0069]
[0070] It should be noted that the area where the object is captured can be obtained by calculating the centroid of each range-selected image.
[0071] For example, assuming H = 640, V = 480, N = 3, H ROI (k) = 240, 120, 80, V ROI (k) = 180, 90, 60, H EX =10, V EX =10, the conventional method requires 558,000 searches, whereas the present method can reduce the number of searches to 1,200.
[0072] [Image Correspondence Section]
[0073] The image corresponding unit 42 outputs image information corresponding to the object information (hereinafter also referred to as "corresponding image information") based on the grayscale image captured by the grayscale camera 3 and the object information output from the search processing unit 41. The corresponding image information is, for example, a clipped image obtained by clipping the object information (including the surroundings of the object information) from the grayscale image, or a background image that does not include the object information.
[0074] Specifically, the image correspondence unit 42 calculates the homography matrix from the image of the range-selected camera unit to the image of the grayscale camera device 3 according to optical and machine design parameters, and uses the homography matrix to obtain the corresponding image information (acquires texture information when using a texture camera device).
[0075] The homography matrix here is a matrix that specifies the coordinates of the point photographed by one camera to be projected on the coordinates of the other camera when two different cameras are used to photograph a point on a plane in a certain space. It should be noted that the homography matrix is calibrated in advance.
[0076] Based on the calculation of the homography matrix, the image corresponding unit 42 cuts or shears an image from the grayscale image by taking an area (hereinafter referred to as an enlarged area) that is enlarged by several pixels in the up, down, left, and right directions compared to the object information output from the search processing unit 41 as the object, thereby generating corresponding image information (generating texture information when a texture camera is used). It should be noted that the image may be cut or sheared from the grayscale image based on the object information without setting the enlarged area.
[0077] It should be noted that if Fig.10 As shown, the expanded area can also be further expanded in the direction (referred to as the shadow direction) in which the light source 21 of the range-selected camera device 2 generates a shadow. More specifically, the image corresponding unit 42 estimates the area (shadow area) of the shadow formed on the detection object M by the light source 21 based on at least one of the positional relationship between the light source 21 and the camera 22 and the shooting distance S, and further expands the expanded area based on the shadow area. Fig.10 In FIG. 4 , the shadow area is indicated by dotted shadows, J1 indicates the clipped area initially set by the image corresponding unit 42, and J2 indicates the clipped area after the area is expanded in the shadow direction of the light source 21. It should be noted that the method for estimating the shadow area by the image corresponding unit 42 is not particularly limited, and for example, the shadow area can be estimated by adding thickness information of the detection object, or based on the shooting distance S of the range-selected image RG taken as the object.
[0078] [Synthesis Department]
[0079] The synthesis unit 43 outputs the object information output from the search processing unit 41 in correspondence with the corresponding image information output from the image corresponding unit 42. Specifically, the synthesis unit 43 performs the following processing: (1) a process of storing texture information (image), area information (numerical value) and distance information (numerical value) in each pixel of an image; and (2) a process of merging the texture information of the range-selected image RG with the texture information of the grayscale image. As an example of the processing of (2) above, a process of interpolating the color information of the range-selected image taken with infrared light and the grayscale image taken with visible light is shown. Then, the processing results of (1) and (2) above are output to the subsequent circuit (program).
[0080] The output of the synthesis unit 43 is used for the above-mentioned post-processing (for example, image recognition processing), etc. It should be noted that in this embodiment, the function of the synthesis processing unit is realized by the image matching unit 42 and the synthesis unit 43. However, the method of realizing the function of the synthesis processing unit is not limited to this structure.
[0081] -Operation of the image processing device-
[0082] Below, refer to Figure 5 , describing the operation of the image processing device and the image processing method involved in the present disclosure. Figure 6 As shown, it is assumed that the detection object M is a cuboid and is in Figure 6 The status of SV1.
[0083] -Step S1-
[0084] In step S1, the search processing unit 41 refers to the range-selected image RG of the set shooting range b. For example, at the beginning of the process, the range-selected image RG1 of the first range b1 is acquired using the range-selected camera device 2, and the range-selected image RG1 is referred to. It should be noted that at this time, the range-selected camera device 2 can also acquire the range-selected images RG1 of multiple shooting ranges b at one time.
[0085] -Step S2-
[0086] In step S2, the search processing unit 41 sets the size of the search window VA. Here, the search window VA1 is set for the range-selected image RG1 of the first range b1. The method for setting the search window VA1 is not particularly limited. For example, the size of the detection object using the search window VA1 is set, and the search window VA1 is set based on the relationship between the size of the detection object and the shooting distance S. The size setting of the detection object is as described above, and the detailed description is omitted here.
[0087] -Step S3-
[0088] In step S3, the search processing unit 41 uses the search window VA to search whether there is a window area that satisfies the specified conditions in the range-selected image RG. More specifically, it is determined whether the object information that satisfies the specified conditions can be obtained. For example, based on the relationship between the size of the object in the window area of the range-selected image RG and the shooting distance S, it is determined whether the object is the detection object M. Figure 6 As shown in FIG. 1 , when there is a position of the search window VA that meets the specified conditions in the range-selected image RG, the position is determined as the window area where the detection object is located (refer to FIG. 1 ). Figure 6 The processing from step S1 to step S3 is equivalent to the first processing and the second processing.
[0089] -Step S4-
[0090] In step S4, the search processing unit 41 determines whether the search object is detected or whether the last shooting range b is reached. For example, if there is one search object, it is judged as "yes" here, and if there are two or more search objects, it is judged as "no". If it is judged as "yes", the process enters step S5. On the other hand, if it is judged as "no", the process returns to step S1 and the processing from step S1 to step S4 is repeated. Here, it is assumed that there are two detection objects M, and the processing from step S1 to step S4 is repeated, and objects M1 and M2 are detected.
[0091] -Step S5-
[0092] In step S5, the search processing unit 41 outputs the object information. In this example, the search processing unit 41 outputs the information of the objects M1 and M2 as the object information.
[0093] The object information output from the search processing unit 41 includes pixel information of objects M1, M2 and at least one of the rectangular area information inscribed in the object. The objects M1, M2 are objects detected as detection objects M captured in the window area that meets the specified conditions during the search within each range-selected image RG.
[0094] The pixel information of objects M1 and M2 includes, for example, the coordinate information of the pixels where objects M1 and M2 are located or the coordinate information of the outline pixels of the area where objects M1 and M2 are located. The rectangular area information inscribed in objects M1 and M2 includes, for example, the coordinates of any of the four corners of the rectangular area or the coordinates of the center, and the size information of the rectangular area (the number of horizontal pixels and the number of vertical pixels). It can also include the information of the shooting distance S of the window area that meets the specified conditions as the object information. Figure 6 In this example, as object information, in addition to the above-mentioned pixel information or rectangular area information, information on the shooting distance S1 of the detected object M1 and the shooting distance S2 of the detected object M2 are also output. n information.
[0095] -Step S6-
[0096] In step S6 , the image corresponding section 42 outputs corresponding image information based on the grayscale image captured by the grayscale imaging device 3 and the object information output from the search processing section 41 .
[0097] Specifically, the image corresponding unit 42 extracts or cuts the image of the expanded area based on the object information from the grayscale image based on the calculation of the homography matrix, thereby generating and outputting the corresponding image information.
[0098] -Step S7-
[0099] In step S7, the synthesis unit 43 matches and outputs the object information output from the search processing unit 41 with the corresponding image information output from the image matching unit 42. Specifically, the synthesis unit 43 performs a process of storing texture information, area information, and distance information in each pixel of an image, and a process of combining the texture information of the range gated image RG with the texture information of the grayscale image, and outputs the result to the subsequent circuit (program).
[0100] As described above, according to the present embodiment, since a search window having a size corresponding to the shooting distance S of the range-gated camera 2 is used, it is possible to avoid useless searches caused by using a search window size that is not suitable for the detection object M. In addition, as described above, the range-gated image RG is substantially a binary image, and the amount of calculation required for search processing is less than that of a grayscale image captured by the grayscale camera 3. As a result, the image region of the detection object can be automatically and quickly extracted.
[0101] - Modification (1) -
[0102] exist Figure 7 In the example, an example is shown in which the boundary line of the first range b1 and the second range b2 is located in the middle of the search detection object M, that is, an example is shown in which the search detection object M spans the first range b1 and the second range b2. In this case, if the two images are overlapped in the adjacent range selection image RG, an overall continuous object will be detected. In other words, it is possible to obtain an image in which adjacent areas on the range selection image RG are continuous.
[0103] Therefore, in order to cope with Figure 7 In such a case, for example, in step S1, the search processing unit 41 refers to the range gated images RG adjacent to the front and rear. Then, for example, when an image of an object that is continuous as a whole is detected in the range gated images RG adjacent to the front and rear shooting range b, an image obtained by performing a logical sum of the range gated images adjacent to the front and rear is used, and the process proceeds to step S3.
[0104] For example, in Figure 7 In this example, the boundary between the object M21 detected on the range gate image RG1 of the first range b1 and the object M22 detected on the range gate image RG2 of the second range b2 has the same length and is continuous when overlapped. a , perform the search window VA in step S3 12 The search for the image RG a The image is obtained by performing a logical sum of the two range gate images RG1 and RG2. The other operations are the same as those in the above embodiment, and the same effects can be obtained.
[0105] Modification (2)
[0106] exist Figure 8 In the example, it is shown that Figure 3B As shown, in the depth direction of the imaging area CA, for each imaging range b n Example of operation when there is an overlapping area. Figure 8 In the example, with Figure 7 As in the case of , the search detection object M is also captured in a manner straddling the boundary between the first range b1 and the second range b2. In this case, in the adjacent range gated images RG, the object M having the overlapping areas WS overlapping each other is detected.
[0107] In response to this example, in step S1, the search processing unit 41 also refers to the range gate images RG adjacent to the front and back range gate images RG when referring to the range gate images RG. Then, for example, if part of the image area in the range gate images RG of the adjacent shooting ranges b overlap, they are regarded as the same object, and the image obtained by performing a logical sum on the front and back range gate images is used, and the process proceeds to step S3.
[0108] For example, in Figure 8 In this example, there is an overlap area WS between the object M31 detected on the range gated image RG1 and the object M32 detected on the range gated image RG2. b , perform the search window VA in step S3 12 The search for the image RG b The image is obtained by performing a logical sum of the two range gate images RG1 and RG2. The other operations are the same as those in the above embodiment, and the same effects can be obtained.
[0109] - Modification (3) -
[0110] exist Fig. 9 In the example, an example is shown in which a stationary object Mx is captured in addition to the detection target M. The stationary object Mx can be, for example, equipment in a factory, a structure mounted on a wall or equipment, etc. In this case, it can be assumed that a common object Mx is captured in the first range b1 and the second range b2.
[0111] Therefore, in order to cope with Fig. 9In such a case, for example, in step S1, the search processing unit 41 refers to the range gated images RG adjacent to the front and rear when referring to the range gated images RG. Then, for example, when a common stationary object Mx is detected in a plurality of range gated images RG of the shooting range b that are continuous in front and rear (above a predetermined threshold), for example, in step S1, a process of removing it from each range gated image RG as a background light component is performed. Then, the process of step S3 is performed using the range gated image RG after the stationary object Mx is deleted.
[0112] exist Fig. 9 In the example, since the stationary object Mx is detected in both the range-selected image RG1 of the first range b1 and the range-selected image RG2 of the second range b2, the stationary object Mx is removed from each of the range-selected images RG1 and RG2 as a background light component. The other operations are the same as those in the above embodiment, and the same effects can be obtained.
[0113] <Second Embodiment>
[0114] Fig.11 It is a diagram for explaining the operation of the image processing device of the second embodiment and the image processing method according to the present disclosure. It should be noted that the structure and basic operation of the image processing device 1 are the same as those of the first embodiment, and the description will focus on the differences.
[0115] In this embodiment, in the search of step S3, if the number of pixels in the range-selected image RG of the set distance range exceeds the set number of pixels corresponding to the shooting distance S, then in step S4, it is determined that the detection object exists in the range-selected image RG, that is, the detection object is detected. Specifically, it is set that as the shooting distance S increases, the number of pixels in the range-selected image RG increases. n As the length increases, the number of set pixels gradually decreases.
[0116] When the method as in the present embodiment is used, a search based on the number of pixels corresponding to the shooting distance S is also performed in the range-gated imaging device 2, thereby eliminating the need for a useless search such as searching for a range-gated image RG having a number of pixels that is not suitable for the size of the detection object M. As a result, the image area of the detection object can be automatically and quickly extracted.
[0117] By using the method of this embodiment, it is possible to obtain an effect of further reducing the amount of calculation compared to the method of the first embodiment.
[0118] <Other Implementation Methods>
[0119] It should be noted that the present disclosure is not limited to the description of the above-mentioned embodiments, and various modifications can be made without departing from the gist of the present disclosure.
[0120] For example, each embodiment and modification can also be combined, or modifications can be combined with each other to form a new embodiment. Specifically, for example, the second embodiment and the modification (3) of the first embodiment can be combined to form a new embodiment.
[0121] Industrial Applicability
[0122] The image processing method and the image processing apparatus of the present disclosure can automatically and rapidly extract an image region of a detection object, and thus are extremely useful.
[0123] Symbol Explanation
[0124] 1 Image processing apparatus
[0125] 2 Range-gated imaging device
[0126] 3 Grayscale imaging device
[0127] 41 Search processing unit
[0128] 43 Synthesis unit.
Claims
1. An image processing method, using an image processing device, Features: The image processing method includes a first process, a second process and a third process. In the first process, for a predetermined photographing area, a range-selected image is acquired using a range-selected imaging device that photographs a set distance range. In the second processing, a detection object in the range-selected image is searched using a search window, the size of the search window corresponding to the shooting distance from the range-selected imaging device to the set distance range, When a window area that meets specified conditions is detected in the range-selected image in the second processing, in the third processing, the object information contained in the window area and the grayscale image acquired using a grayscale camera device are synthesized and output, and the grayscale camera device captures the grayscale image of the specified shooting range.
2. The image processing method according to claim 1, Features: The object information includes at least one of pixel information of an object and rectangular area information inscribed in the object, and the object is an object captured in the window area that satisfies the prescribed condition.
3. The image processing method according to claim 2, Features: The object information includes information on the shooting distance of the window area that satisfies the predetermined condition.
4. The image processing method according to claim 1, Features: The grayscale imaging device is a texture imaging device that captures texture images.
5. The image processing method according to claim 1, Features: In the search of the second process, when an object having a size corresponding to the shooting distance is detected in the search window, it is determined that there is a window area satisfying the predetermined condition, and the third process is executed.
6. The image processing method according to claim 1, Features: In the search of the second process, when the number of pixels of the stationary object detected in the search window exceeds a predetermined number corresponding to the shooting distance, it is determined that there is a window area satisfying the predetermined condition, and the third process is executed.
7. The image processing method according to claim 1, Features: In the third process, the synthesis is a cutting process of cutting out and extracting a region of the object information from the grayscale image. A homography matrix from the range gated image to the grayscale image is calculated, and an enlarged area enlarged from the object information based on the homography matrix is used as a target for the clipping process.
8. The image processing method according to claim 7, Features: The range-selected camera device comprises a light source and a camera, As for the expanded area, based on the positional relationship between the light source and the camera and at least one of the shooting distance, a shadow area formed on the detection object due to the light source is inferred, and the expanded area is further expanded according to the shadow area.
9. The image processing method according to claim 8, Features: The shadow area is estimated by adding thickness information of the detection object.
10. The image processing method according to claim 8, Features: The shadow area is estimated based on the shooting distance at which the window area satisfying the predetermined condition is detected in the third process.
11. An image processing device, Features: The image processing device includes a range-selecting camera, a grayscale camera, a search processing unit, and a synthesis processing unit. The range-gated camera device captures a range-gated image of a set distance range for a specified shooting area. The grayscale camera captures a grayscale image of the specified capture area. The search processing unit searches for the detection object in the range-selected image using a search window, wherein the size of the search window corresponds to the shooting distance from the range-selected imaging device to the set distance range. When a window region satisfying a predetermined condition is detected in the range gated image, the synthesis processing unit synthesizes the object information included in the window region and the grayscale image acquired using the grayscale imaging device and outputs the synthesized image.
12. The image processing device according to claim 11, Features: The object information includes at least one of pixel information of an object and rectangular area information inscribed in the object, and the object is an object captured in the window area that satisfies the prescribed condition.
13. The image processing device according to claim 12, Features: The object information includes information on the shooting distance of the window area that satisfies the predetermined condition.
14. The image processing device according to claim 11, Features: The grayscale imaging device is a texture imaging device that captures texture images.
15. The image processing device according to claim 11, Features: When an object having a size corresponding to the shooting distance is detected in the search window during the search by the search processing unit, the synthesis processing unit performs a process of synthesizing the object information and the grayscale image and outputting the synthesized image.
16. The image processing device according to claim 11, Features: The synthesis processing unit performs a process of synthesizing and outputting the object information and the grayscale image when the number of pixels of the stationary object detected within the search window during the search by the search processing unit exceeds a predetermined number corresponding to the shooting distance.
17. The image processing device according to claim 11, Features: The synthesis performed by the synthesis processing unit is a cutting process of cutting out and extracting the area of the object information from the grayscale image. The synthesis processing unit calculates a homography matrix from the range gated image to the grayscale image, and uses an enlarged area enlarged from the object information based on the homography matrix as a target of the clipping process.
18. The image processing device according to claim 17, Features: The range-selected camera device comprises a light source and a camera, The synthesis processing unit estimates a shadow area formed on the detection object due to the light source based on at least one of a positional relationship between the light source and the camera and the shooting distance, and further expands the expansion area according to the shadow area.
19. The image processing device according to claim 18, Features: The synthesis processing unit estimates the shadow area by adding thickness information of the detection object.
20. The image processing device according to claim 18, Features: The synthesis processing unit estimates the shadow area based on the shooting distance at which the window area satisfying the predetermined condition is detected.
