Imaging device and method for detecting attached matter
The imaging device with variable shooting direction and extended exposure time accurately detects lens deposits at low cost by utilizing edge components in images, addressing weather and hardware dependency issues.
Patent Information
- Application Number
- JP2022547535
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-09-11
- Filing Date
- 2021-09-02
- Publication Date
- 2024-10-30
- Estimated Expiration
- 2041-09-02
AI Technical Summary
Existing imaging devices face challenges in accurately detecting lens deposits due to weather, time of day, and installation position dependencies, and conventional methods require additional hardware, increasing costs.
An imaging device with a variable shooting direction that apertures the lens to include the surface in the depth of field and extends exposure time to compensate for light, performing photographing control and deposit detection based on edge components in the image.
Accurately detects lens deposits at low cost without additional hardware, using edge components in images captured with varied directions to enhance detection accuracy.
Smart Images

Figure 0007576095000001 
Figure 0007576095000002 
Figure 0007576095000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an imaging device that is arranged so that the imaging direction can be changed. [Background technology]
[0002] Imaging devices used in surveillance cameras and the like are used in various situations as a surveillance means to replace the human eye. For example, they are mounted on a camera platform and used to monitor the interior and exterior of buildings and rivers, and are mounted on automobiles and trains to monitor the interior and exterior of the vehicles and the operation status. However, during continued operation, dirt such as dust may adhere to the lens surface of the imaging device, reducing visibility. This problem can be solved by cleaning the lens surface, but since many imaging devices may be used in one system, this leads to an increased maintenance burden. For this reason, a mechanism for efficiently cleaning the lens surface is required.
[0003] Various inventions have been proposed so far regarding the detection of adhesions to an imaging device. For example, Patent Document 1 discloses a technology for detecting the position of a dust image from the difference between image data captured while facing the sky and image data of a fixed pattern. Patent Document 2 discloses a technology for detecting the position of a dust image from the difference between image data captured while irradiated with a white LED and image data of a fixed pattern. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2007-057933 A [Patent Document 2] JP 2007-036951 A Summary of the Invention [Problem to be solved by the invention]
[0005] The technology of Patent Document 1 has a problem that weather, time of day, and installation location have a large effect on detection of attached objects because it is necessary to shoot toward the sky. Also, the technology of Patent Document 2 has a problem that additional hardware is required because it is necessary to irradiate white LEDs, which increases the cost of the device.
[0006] The present invention has been made in consideration of the above-mentioned conventional circumstances, and has an object to provide a mechanism capable of detecting adhesions on the lens surface of an imaging device with high accuracy at low cost. [Means for solving the problem]
[0007] In order to achieve the above object, in the present invention, an imaging device is configured as follows. That is, in an imaging device that is arranged so that the shooting direction can be changed, a shooting control process is performed in which the lens is narrowed so that the lens surface is included in the depth of field, and the exposure time is lengthened so as to compensate for the amount of light corresponding to the narrowing, and the shooting direction is controlled to be changed while shooting, and an object detection process is performed in which an object attached to the lens surface is detected based on the edge components contained in the image captured under the above control.
[0008] The present invention can also be realized as a method for detecting an object attached thereto as follows. That is, the method is a method for detecting adhesions on the lens surface of an imaging device that is arranged so that the shooting direction can be changed, and is characterized by carrying out an imaging control process that controls the imaging device to capture images while varying the shooting direction while narrowing the lens so that the lens surface is included in the depth of field and lengthening the exposure time to compensate for the amount of light corresponding to the aperture, and an adhesion detection process that detects adhesions on the lens surface based on edge components contained in an image captured by the imaging device under the above control.
[0009] In the imaging device and object detection method described above, the imaging control process may control the imaging so that imaging is performed while varying the imaging direction in a plurality of directions. Effect of the Invention
[0010] According to the present invention, it is possible to provide a mechanism for detecting adhesions on the lens surface of an imaging device with high accuracy at low cost. [Brief description of the drawings]
[0011] [Figure 1] 1 is a diagram illustrating an example of the configuration of an imaging device according to a first embodiment of the present invention. [Diagram 2] FIG. 13 is a diagram illustrating an example of a flowchart of an object detection process. [Diagram 3] FIG. 2 is a diagram showing an example of a captured image. [Figure 4] FIG. 4 is a diagram showing an overview of an object detection system according to a second embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] An embodiment of the present invention will be described with reference to the drawings. Fig. 1 shows an example of the configuration of an imaging device according to a first embodiment of the present invention. The imaging device 1 in Fig. 1 includes a lens 11, an imaging element 12, a video signal processing unit 13, a lens control unit 14, an exposure control unit 15, an edge detection unit 16, a CPU (Central Processing Unit) unit 17, a shooting control data storage unit 18, and a camera platform 19.
[0013] The lens 11 forms an image of incident light from a subject on the imaging surface of the imaging element 12. The imaging element 12 photoelectrically converts the optical image of the subject formed on the imaging surface into an electrical signal. The video signal processor 13 performs various video signal processing (e.g., gamma correction, knee correction, contour correction, color correction, etc.) on the video signal obtained by the imaging element 12, generates an HD-SDI (High Definition Serial Digital InterfaceHH) signal, and outputs it to the outside. Note that the video signal output from the video signal processor 13 is not limited to HD-SDI, and any compression or encryption method may be used.
[0014] The lens control unit 14 controls the aperture, zoom, focus, etc. of the lens 11. The exposure control unit 15 controls the exposure time of the image sensor 12. The edge detection unit 16 detects edge components from the video signal before or after processing by the video signal processing unit 13. The camera platform 19 controls the pan / tilt operation of the imaging device 1 to adjust the shooting direction. The camera platform 19 in this example can rotate the imaging device 1 360 degrees in the horizontal direction, and can also rotate the imaging device 1 vertically to an elevation angle of about 180 degrees. The CPU 17 controls the operation of each unit of the imaging device 1. The shooting control data storage unit 18 stores shooting control data used for shooting control when detecting adhesions.
[0015] The shooting control data is data that sets the lens aperture, exposure time, and pan / tilt operation, and is set in advance. The CPU section 17 reads out the shooting control data from the shooting control data storage section 18, and instructs the lens control section 14, exposure control section 15, and camera platform 19 to control according to the set values. This makes it possible to automatically control the lens aperture, exposure time, and pan / tilt operation.
[0016] Next, the operation of detecting adhesions (dust, droplets, etc.) on the lens surface of the imaging device 1 will be described with reference to the example flowchart of Fig. 2. Here, the "lens surface" in this specification refers to the outer surface of the lens where adhesion of adhesions is a concern, and in the case where the lens is covered with a protective glass or the like, it includes the outer surface of such a cover.
[0017] The imaging device 1 starts the imaging control process and the object detection process under the control of the CPU unit 17 at a preset timing or at a timing when a user performs a predetermined operation. This timing is preferably a timing that does not interfere with the operation of the imaging device 1.
[0018] In the shooting control process, first, the lens control unit 14 narrows the aperture of the lens 11 to its limit (just before the wings are completely closed) in accordance with the shooting control data (step S11). This creates a state similar to that of a pinhole camera, and the depth of field becomes very deep, so that even adhesions on the out-of-focus lens surface can be captured clearly without blurring.
[0019] Next, the exposure control unit 15 makes the exposure time of the image sensor 12 much longer than usual in accordance with the shooting control data (step S12). Specifically, the exposure time is set to several seconds to about 10 seconds. This compensates for the amount of light that is reduced by narrowing the aperture of the lens 11, and has the effect of generating an afterimage when detecting an attached object.
[0020] During this long exposure period, the camera platform 19 pans and tilts in accordance with the shooting control data so that the angle of view (shooting direction) captured by the imaging device 1 changes significantly (step S13). At this time, in order to detect any attached objects with higher accuracy, it is desirable to move the pan and tilt so that the parts of the subject with higher luminance levels are evenly scanned over the entire screen, so that any attached objects obstructing the subject are clearly visible. If the imaging device is installed outdoors, it is easiest to capture the daytime sky.
[0021] As described above, by moving the pan and tilt during the exposure period, a strong afterimage occurs across the entire screen, resulting in a blurred image. On the other hand, only the object attached to the lens surface is captured clearly without any afterimage, so there is a lot of edge content in that area. This is because the object is the only subject that moves with the pan and tilt operation of the imaging device 1 (i.e., does not move in the image).
[0022] The imaging device 1 performs the object detection process while performing the above-mentioned shooting control process. In the object detection process, the edge detection unit 16 detects edge components in the video signal and judges whether the edge components are equal to or greater than a threshold value (step S14). As a result, if the edge components are equal to or greater than the threshold value, it is judged that an object is attached to the lens surface, and an alert is issued to inform the user, after which the lens aperture, exposure time, and pan / tilt positions are returned to their original positions (steps S15 and S16). On the other hand, if the edge components are less than the threshold value, no alert is issued, and the lens aperture, exposure time, and pan / tilt positions are returned to their original positions (step S16).
[0023] The image captured by the above-mentioned shooting control process will be compared with an image captured under normal circumstances. Under normal circumstances, that is, when the lens aperture and exposure time are normal, an image as shown in FIG. 3(a) is captured. In this case, even if there is any adhesion on the lens surface, it is difficult to see because the lens surface is completely out of focus. This is because the focus of the lens is several tens of mm or more and cannot be adjusted to zero distance. Although the image of the subject can be captured by diffraction, the adhesion has a considerable effect.
[0024] In contrast, when the lens aperture is closed to the limit and the exposure time is extremely long, an image like that shown in Figure 3(b) is captured. In this way, by closing the lens aperture to the limit, the depth of field becomes very deep, and even adhesions on the lens surface (black dots in the figure) become clearly visible. In addition, the amount of light reduced by the lens aperture can be compensated for by increasing the exposure time with the electronic shutter to increase the brightness level, making it easier to detect adhesions. Generally, when the exposure time is extremely long, the number of frames decreases and many afterimages occur, but when detecting adhesions, a decrease in the number of frames does not pose any particular problem, and since adhesions on the lens surface do not move, no afterimages occur.
[0025] In this state, by changing the shooting direction using the camera platform while shooting, an image like that shown in Fig. 3(c) is captured. In this way, by changing the shooting angle of view during the long exposure period, an afterimage is intentionally generated on the entire screen, making it possible to virtually focus only on the object adhering to the lens surface. This is because the object is the only object that moves in the same way as the shooting direction changes, so no afterimage of the object is generated even if the shooting direction is changed. In this invention, by utilizing the occurrence of an afterimage, it is possible to detect an object without relying on the image of the object.
[0026] As described above, the imaging device 1 of this example is configured to perform an imaging control process in which the aperture of the lens 11 is narrowed to its limit by the lens control unit 14 and the exposure time of the imaging element 12 is made extremely long by the exposure control unit 15, and then the imaging control process controls the camera head 19 to vary the shooting direction while capturing images, and an object detection process in which an object attached to the lens surface is detected based on edge components contained in the captured image.
[0027] With this configuration, if there is an object on the lens surface of the imaging device, an image can be captured that focuses only on the object, making it possible to detect the object with high accuracy. In addition, there is no need to add hardware such as a white LED to detect the object as in the conventional technology, making it possible to realize high-accuracy object detection at low cost.
[0028] Here, in the case where the subject is a linear object extending in a certain direction, if the shooting direction is changed in the same direction, an image with the edges of the subject remaining will be captured, and there is a possibility that the detection of the attached object will not be successful. Therefore, in order to more appropriately detect the edges of the attached object, the shooting control process may control so that shooting is performed while changing the shooting direction in multiple directions. In this case, it is sufficient to control only two directions, horizontal (left and right) movement by panning and vertical (up and down) movement by tilting, but it is preferable to perform panning and tilting simultaneously to capture images in an oblique direction. In addition, directional control (for example, directional control to draw a circular orbit) may be performed so that edges in all directions can be more appropriately detected.
[0029] In this example, the lens aperture is narrowed to the limit, but it is sufficient if it is narrowed to the extent that the lens surface is included in the depth of field. Also, in this example, the exposure time of the image sensor is set extremely long (for example, several seconds to about 10 seconds), but it is sufficient if the exposure time is long enough to compensate for the amount of light caused by the lens aperture.
[0030] In this example, the presence or absence of an object is determined by comparing the edge components detected from the captured image with a threshold value, but further information such as the position and range of the object may be obtained. Also, the size of the edge cluster may be calculated, and if the size is less than a predetermined value, it may be determined that there is no object. In this example, when an object is detected, an alert is issued to notify the user, but a correction process for the range of the object may be added to the image captured after the object is detected.
[0031] Here, the present invention can be realized not only in a configuration in which the imaging device itself detects attached matter as in the first embodiment, but also in a configuration in which a device other than the imaging device detects attached matter. 4 shows an overview of an object detection system according to a second embodiment of the present invention. The object detection system of this example includes a plurality of N imaging devices 1-1 to 1-N and an object detection device 2. The imaging devices 1-1 to 1-N and the object detection device 2 are communicatively connected via a network line. In the following, the description will focus on the parts unique to the second embodiment, and the description of the parts similar to the first embodiment will be omitted.
[0032] The object detection device 2 communicates with the n-th imaging device 1-n that is the object of object detection, and detects an object attached to the lens surface. That is, the object detection device 2 is configured to perform an imaging control process that controls the imaging device 1-n to capture an image while varying the shooting direction using a camera platform in a state in which the lens is narrowed so that the lens surface is included in the depth of field and the exposure time is lengthened so as to compensate for the amount of light corresponding to the narrowing, and an object detection process that detects an object attached to the lens surface based on edge components included in the image captured by the imaging device 1-n under the above control.
[0033] Specifically, the object-detecting device 2 transmits an image capture instruction signal to the image capture device 1-n to instruct the image capture device 1-n to capture an image under the above-mentioned control, and detects an object on the lens surface of the image capture device 1-n based on edge components contained in the image transmitted from the image capture device 1-n in response to the image capture instruction signal. Note that the image capture control data used for the above control may be transmitted by the object-detecting device 2 together with the image capture instruction signal, or may be stored in advance in each image capture device 1.
[0034] Although the present invention has been described above based on several embodiments, it goes without saying that the present invention is not limited to the configurations described here and can be widely applied to devices and systems with other configurations. For example, instead of an imaging device mounted on a pan head, an imaging device fixed to a moving body may be used, and the shooting direction may be changed by the movement of the moving body. Furthermore, the present invention can also be provided as, for example, a method including technical procedures related to the above-mentioned processing, a program for causing a processor to execute the above-mentioned processing, or a storage medium for storing such a program in a computer-readable manner.
[0035] The scope of the present invention is not limited to the exemplary embodiments shown and described, but includes all embodiments that achieve equivalent effects to those intended by the present invention. Moreover, the scope of the present invention may be defined by any desired combination of specific features among all the respective features disclosed. [Industrial Applicability]
[0036] The present invention can be used in an imaging device equipped with a camera platform for adjusting the shooting direction. [Explanation of symbols]
[0037] 1: imaging device, 2: adhesion detection device, 11: lens, 12: imaging element, 13: video signal processing section, 14: lens control section, 15: exposure control section, 16: edge detection section, 17: CPU section, 18: Shooting control data, 19: Camera head
Claims
1. In an imaging device that is arranged so that the imaging direction can be changed, an image capture control process in which the lens is stopped down so that the lens surface is included in the depth of field, and the exposure time is extended to compensate for the amount of light caused by the stop, and the image capture direction is changed so that the parts of the subject with high luminance levels are evenly scanned over the entire screen during the exposure time, thereby generating an afterimage of the subject over the entire screen of the image output from the image sensor; detecting edge components from an image output from the image sensor by photographing under the control, and detecting an object adhering to the lens surface based on the detected edge components; An imaging device characterized in that, in the object detection process, a size of an edge mass is calculated based on edge components detected from the image, and if the size of the edge mass is less than a predetermined value, the edge mass is determined to be not an object.
2. 2. The imaging device according to claim 1, The imaging device is characterized in that, in the shooting control process, control is performed so that shooting is performed while changing the shooting direction in a plurality of directions during an exposure time.
3. A method for detecting an object attached to a lens surface of an imaging device that is arranged so that the imaging direction can be changed, comprising the steps of: an imaging control process in which the imaging device is controlled to capture an image while varying the shooting direction so that the parts of the subject with high luminance levels are evenly scanned over the entire screen during the exposure time, while the lens is stopped down so that the lens surface is included in the depth of field and the exposure time is extended so as to compensate for the amount of light caused by the stop, thereby generating an afterimage of the subject over the entire screen of the image output from the imaging element; detecting edge components from an image output from the image sensor by photographing under the control, and detecting an object adhering to the lens surface based on the detected edge components; The object detection method is characterized in that, in the object detection process, a size of an edge mass is calculated based on edge components detected from the image, and if the size of the edge mass is less than a predetermined value, the edge mass is determined to be not an object.
4. The object detection method according to claim 3, The object detection method is characterized in that, in the photographing control process, the photographing direction is controlled to be changed in a plurality of directions during the exposure time while photographing is performed.
Citation Information
Patent Citations
Digital camera and operation control method therefor
JP2002209147A
Camera having electronic viewfinder
JP2007036951A
Camera having electronic view finder
JP2007057933A
Imaging apparatus, and foreign matter detection method
JP2011124830A
