CN-115841570-B - Shooting method, device and system for removing ambient light
Abstract
The invention discloses a shooting method, a device and a system for removing ambient light, wherein the shooting method comprises the following steps of S1, acquiring a first image and a second image through a camera, S2, carrying out image subtraction operation on the second image by adopting the first image to obtain a calculated image, carrying out linear relative motion on a linear camera relative to a shooting object, carrying out multiple shooting on the shooting object by the linear camera in the relative motion process, wherein one shooting is used for obtaining the first image, the other shooting is used for obtaining the second image in two adjacent shooting, and both the first shooting and the third shooting are used for obtaining the first image or the second image in three adjacent shooting, and the first shooting is connected with or intersected with a shooting area of the third shooting. The shooting device and the shooting system are used for realizing the shooting method. By adopting the technical scheme provided by the scheme, the influence of the ambient light change on the image result can be effectively reduced.
Inventors
- LI CHENG
- LIU YULONG
- CHENG DENGJIE
- LI TONG
- LI LIN
Assignees
- 成都睿铂科技有限责任公司
Dates
- Publication Date
- 20260512
- Application Date
- 20221124
Claims (10)
- 1. A photographing method for removing ambient light, comprising the following steps sequentially performed: S1, acquiring a first image and a second image through a camera, wherein the first image is an image under the action of a compensation light source, and the second image is an image outside the action of the compensation light source; S2, performing image subtraction on the second image by adopting the first image to obtain a calculated image; the method is characterized in that the first image and the second image are acquired through the same linear array camera; the shooting mode of the linear array camera for shooting the shooting object is that the linear array camera makes linear relative motion relative to the shooting object, and the linear array camera shoots the shooting object for a plurality of times in the relative motion process; In the adjacent three shots, the first shot and the third shot are used for obtaining the first image or the second image, and the first shot is connected with or intersected with a shooting area of the third shot.
- 2. The photographing method for removing ambient light according to claim 1, wherein in adjacent four photographing, the coverage area of the obtained photograph on the photographed object is sequentially a first area, a second area, a third area, and a fourth area in time sequence; the first area is connected with the edge of the third area, and the second area is connected with the edge of the fourth area; the first region and the second region have an overlapping region, and the third region and the second region have an overlapping region.
- 3. The photographing method for removing ambient light according to claim 1, wherein in adjacent four photographing, the coverage area of the obtained photograph on the photographed object is sequentially a first area, a second area, a third area, and a fourth area in time sequence; The first area and the third area have set overlapping rates, and the second area and the fourth area have set overlapping rates; the first region and the second region have an overlapping region, and the third region and the second region have an overlapping region.
- 4. The photographing method for removing ambient light according to claim 1, wherein the compensation light source is provided by a line light source, and wherein the line light source is turned on when being used to obtain a photograph as a first image and turned off when being used to obtain a photograph as a second image during photographing by the line camera.
- 5. The photographing method for removing ambient light according to claim 4, wherein the linear array light source and the linear array camera are fixed in relative position, and the linear array light source and the linear array camera move synchronously with respect to the photographed object during photographing.
- 6. The method of any one of claims 1 to 5, wherein the first image and the second image are each formed by stitching a plurality of photographs: In the step S1, splicing the obtained multiple photos under the action of the compensation light source to obtain a first image; In step S2, the first image and the second image, which are both stitched images, are subjected to image subtraction operation, so as to obtain a calculated image.
- 7. The utility model provides a get rid of shooting device of ambient light, includes camera, compensation light source and control module, its characterized in that, the camera is the linear array camera, obtains first image and second image through this linear array camera, and wherein, first image is the image under the compensation light source effect, and the second image is the image outside the compensation light source effect, control module is used for controlling camera and compensation light source action for: In the process that the linear array camera makes linear relative motion relative to the photographed object, the linear array camera photographs the photographed object for a plurality of times; In the adjacent three shots, the first shot and the third shot are used for obtaining the first image or the second image, and the first shot is connected with or intersected with a shooting area of the third shot.
- 8. The ambient light-removing photographing device according to claim 7, further comprising a driving mechanism for driving the camera or/and the photographing object to move in space to obtain the relative movement state.
- 9. A shooting system for removing ambient light comprises a shooting device and a data processing device, and is characterized in that the shooting device is the shooting device according to claim 7 or 8, and the data processing device is used for processing images obtained by the shooting device, wherein the processing is to perform image subtraction operation on second images by adopting first images to obtain calculated images.
- 10. The photographing system for removing ambient light according to claim 9, wherein the photographing device and the data processing device are of a split type structure, and the data stored in the photographing device is transferred to the data processing device to perform the process after the photographing device completes the set photographing task.
Description
Shooting method, device and system for removing ambient light Technical Field The present invention relates to the field of image technologies, and in particular, to a shooting method, device and system for removing ambient light. Background In the prior art, there are problems of interference of ambient light (background light, sunlight) on a required photographing light source in various applications as follows. For example, structured light (light with an optical pattern) is projected onto an object, an image of the object on which the structured light is projected is captured, a light source supplements light to a camera, but overexposure or other influences are caused when the camera shoots due to superposition of ambient light, the light source irradiates the detection object to generate excitation to cause a phenomenon of luminescence, and the excitation light is imaged to judge the characteristics of the detection object, such as detecting the defects of a photovoltaic panel by adopting a photoluminescence technology, or other scenes needing to remove interference of the ambient light. Regarding the application of machine vision imaging on security, in order to eliminate the influence of ambient light on an image result, in the prior art, the ambient light is subtracted from an image captured with a light source and an image without the light source, for example, a patent application document with the application number CN201910918496.3 provides an imaging assembly and an imaging method for shielding ambient light interference. The image environment light interference removing technology is further optimized, and the method has a promotion effect on the application of machine vision on object feature judgment. Disclosure of Invention Aiming at the technical problem that the proposed technology for further optimizing the image to remove the ambient light interference has a promoting effect on the application of machine vision to object feature judgment, the invention provides a shooting method, device and system for removing the ambient light. By adopting the technical scheme provided by the scheme, the influence of the ambient light change on the image result can be effectively reduced. The invention aims at solving the problems by the technical key points that the shooting method for removing the ambient light comprises the following steps in sequence: S1, acquiring a first image and a second image through a camera, wherein the first image is an image under the action of a compensation light source, and the second image is an image outside the action of the compensation light source; S2, performing image subtraction on the second image by adopting the first image to obtain a calculated image; the method is characterized in that the first image and the second image are acquired through the same linear array camera; the shooting mode of the linear array camera for shooting the shooting object is that the linear array camera makes linear relative motion relative to the shooting object, and the linear array camera shoots the shooting object for a plurality of times in the relative motion process; In the adjacent three shots, the first shot and the third shot are used for obtaining the first image or the second image, and the first shot is connected with or intersected with a shooting area of the third shot. In this solution, regarding the effect of the compensation light source, it should be understood that the line camera captures an image of the object under irradiation of the compensation light source or an image of the object under irradiation of the compensation light source, which image is used to obtain a first image as described above, under the corresponding excitation light, whereas the line camera captures an image of the object under co-action of the ambient light and the compensation light source, which image is used to obtain a second image as described above. Regarding the calculated image mentioned in step S2, the calculated image is an image obtained by subtraction after shielding the ambient light from interference. The first image and the second image may be images obtained by single shooting of the camera, or may be images obtained by stitching two or more shooting, and then stitching the images to obtain the corresponding first image and the second image. The acquisition time sequence is along the time sequence. Meanwhile, the types of photos obtained by the linear array cameras on the acquisition time sequence are opposite, namely, in any two adjacent shooting processes, one shooting process is shooting under the action of the compensation light source and the ambient light, the obtained photos are used for forming a first image, the other shooting process is only used for forming a second image under the action of the ambient light, and in the three adjacent shooting processes, the shooting areas of the first shooting process and the shooting areas of the third shooting process a