CN111835956A - Camera control method and device, image acquisition equipment and electronic equipment - Google Patents
Camera control method and device, image acquisition equipment and electronic equipment Download PDFInfo
- Publication number
- CN111835956A CN111835956A CN201910305326.8A CN201910305326A CN111835956A CN 111835956 A CN111835956 A CN 111835956A CN 201910305326 A CN201910305326 A CN 201910305326A CN 111835956 A CN111835956 A CN 111835956A
- Authority
- CN
- China
- Prior art keywords
- camera
- dust
- controlling
- amount
- dust detection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 239000000428 dust Substances 0.000 claims abstract description 226
- 238000001514 detection method Methods 0.000 claims abstract description 115
- 238000004140 cleaning Methods 0.000 claims description 41
- 230000004044 response Effects 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 10
- 230000004913 activation Effects 0.000 claims description 2
- 238000005286 illumination Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 19
- 230000008569 process Effects 0.000 description 10
- 230000006870 function Effects 0.000 description 8
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 8
- 239000004744 fabric Substances 0.000 description 7
- 238000010191 image analysis Methods 0.000 description 5
- 238000003384 imaging method Methods 0.000 description 5
- 230000000007 visual effect Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000009792 diffusion process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003252 repetitive effect Effects 0.000 description 2
- 229920000742 Cotton Polymers 0.000 description 1
- 240000001973 Ficus microcarpa Species 0.000 description 1
- 238000007792 addition Methods 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 230000008021 deposition Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005215 recombination Methods 0.000 description 1
- 230000006798 recombination Effects 0.000 description 1
- 230000011514 reflex Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B08—CLEANING
- B08B—CLEANING IN GENERAL; PREVENTION OF FOULING IN GENERAL
- B08B1/00—Cleaning by methods involving the use of tools
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B08—CLEANING
- B08B—CLEANING IN GENERAL; PREVENTION OF FOULING IN GENERAL
- B08B3/00—Cleaning by methods involving the use or presence of liquid or steam
- B08B3/04—Cleaning involving contact with liquid
- B08B3/10—Cleaning involving contact with liquid with additional treatment of the liquid or of the object being cleaned, e.g. by heat, by electricity or by vibration
- B08B3/12—Cleaning involving contact with liquid with additional treatment of the liquid or of the object being cleaned, e.g. by heat, by electricity or by vibration by sonic or ultrasonic vibrations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Studio Devices (AREA)
- Camera Bodies And Camera Details Or Accessories (AREA)
Abstract
A camera control method, a camera control device, an image acquisition device and an electronic device are disclosed. The camera control method comprises the following steps: controlling the camera to be in a dust detection state; detecting the amount of dust on the surface of the camera in the dust detection state; and controlling the state of the camera based on the dust amount. Therefore, accurate dust judgment can be realized, and corresponding intelligent and automatic control can be realized.
Description
Technical Field
The present disclosure relates to the field of image acquisition control, and more particularly, to a camera control method, a camera control device, an image acquisition apparatus, and an electronic apparatus.
Background
Currently, more and more electronic devices are equipped with cameras so as to have an image capturing function. For example, a mobile phone with a digital camera function can take still pictures or video through a built-in or external camera. With the improvement of the pixels of the camera, the shooting effect of the camera is closer to that of the traditional card camera and even a low-end single-lens reflex camera, so that the camera is rapidly popularized.
In order to facilitate shooting, when the cameras are installed on the electronic equipment, the cameras are usually directly exposed to the air, and even if a camera cover and the like are used for protection, the cameras are also directly exposed to the air in the working process. Since some dust is always present in the air, the dust is likely to scatter on the surface of the camera, so that the image of the camera looks blurred.
At present, only in the case that the image of the camera is found to be blurred, whether the surface is covered by dust is checked, and if the dust is found, the dust covered on the surface of the camera is cleaned by using soft cotton cloth or the like, or cleaned by using glasses cloth or professional lens paper or the like, and the image shot by the user through the camera is also blurred.
The manual visual observation mode easily causes the judgment to be not accurate enough, and the camera is not intelligent and automatic enough in use, so that the imaging is not clear.
Accordingly, there is a need for an improved camera control scheme that enables control based on the dust deposition of the camera.
Disclosure of Invention
The present application is proposed to solve the above-mentioned technical problems. The embodiment of the application provides a camera control method, a camera control device, image acquisition equipment and electronic equipment, which can detect the dust amount on the surface of a camera and control the state of the camera based on the dust amount, so that accurate dust judgment and corresponding intelligent and automatic control are realized.
According to an aspect of the present application, there is provided a camera control method including: controlling the camera to be in a dust detection state; detecting the amount of dust on the surface of the camera in the dust detection state; and controlling the state of the camera based on the dust amount.
According to another aspect of the present application, there is provided an image pickup apparatus including: the camera is used for collecting images; dust detection means for accommodating the camera to detect an amount of dust on a surface of the camera; a moving device for moving the camera into the dust detection device; and a control means for controlling the state of the camera based on the amount of dust detected by the dust detection means and controlling the moving means to move the camera.
According to still another aspect of the present application, there is provided a camera control device including: the camera control unit is used for controlling the camera to be in a dust detection state; a dust detection unit for detecting an amount of dust on the surface of the camera in the dust detection state controlled by the camera control unit; and a state control unit for controlling the state of the camera based on the amount of dust detected by the dust detection unit.
According to yet another aspect of the present application, there is provided an electronic device including: a processor; and a memory in which computer program instructions are stored, which, when executed by the processor, cause the processor to perform the camera control method as described above.
According to yet another aspect of the present application, there is provided a computer readable medium having stored thereon computer program instructions which, when executed by a processor, cause the processor to execute the camera control method as described above.
The camera control method, the camera control device, the image acquisition equipment and the electronic equipment can detect the dust amount on the surface of the camera and control the state of the camera based on the dust amount, so that accurate dust judgment is realized, and corresponding intelligent and automatic control is realized.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing in more detail embodiments of the present application with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of the embodiments of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application. In the drawings, like reference numbers generally represent like parts or steps.
Fig. 1 illustrates a flowchart of a camera control method according to an embodiment of the present application.
FIG. 2 illustrates a schematic diagram of different states of a camera according to an embodiment of the application
FIG. 3 illustrates a schematic diagram of a camera cleaning device according to an embodiment of the present application
Fig. 4 illustrates a flow chart of a dust detection process according to an embodiment of the application.
Fig. 5 illustrates a schematic diagram of a camera dust detection apparatus according to an embodiment of the present application.
Fig. 6 illustrates a flow chart of a dust-image analysis process according to an embodiment of the present application.
Fig. 7 illustrates a schematic view of a dust image taken by a camera according to an embodiment of the present application.
FIG. 8 illustrates a flow chart of a camera dust detection and cleaning process according to an embodiment of the application.
Fig. 9 illustrates a block diagram of an example of an image capture device according to an embodiment of the present application.
Fig. 10 illustrates a block diagram of an example of a dust detection apparatus according to an embodiment of the present application.
Fig. 11 illustrates a block diagram of another example of an image capture device according to an embodiment of the present application.
Fig. 12 illustrates a block diagram of a camera control device according to an embodiment of the present application.
Fig. 13 illustrates a block diagram of a dust detection unit of a camera control device according to an embodiment of the present application.
FIG. 14 illustrates a block diagram of an electronic device in accordance with an embodiment of the present application.
Detailed Description
Hereinafter, example embodiments according to the present application will be described in detail with reference to the accompanying drawings. It should be understood that the described embodiments are only some embodiments of the present application and not all embodiments of the present application, and that the present application is not limited by the example embodiments described herein.
Summary of the application
As described above, at present, whether dust exists on the surface of the camera is judged by observing the surface of the camera through naked eyes, and whether the dust can cause unclear imaging. However, the manner of manual and visual judgment easily results in inaccurate judgment, thereby causing unclear imaging.
That is, the camera is not intelligent and automated enough in use control for dust.
In view of the above technical problem, a basic idea of the present application is to provide a dust detection state that enables control of a camera to detect an amount of dust on a surface of the camera, thereby controlling a state of the camera based on the detected amount of dust.
Specifically, the camera control method, the camera control device, the image acquisition equipment and the electronic equipment provided by the application firstly control the camera to be in a dust detection state, then detect the dust amount on the surface of the camera in the dust detection state, and finally control the state of the camera based on the dust amount.
Therefore, the camera control method, the camera control device, the image acquisition equipment and the electronic equipment provided by the application can detect the dust amount on the surface of the camera through controlling the camera to be in a dust detection state, can realize the self-checking function of the dust amount of the camera, and realize accurate dust judgment in a mode of manual visual observation.
In addition, the camera control method, the camera control device, the image acquisition equipment and the electronic equipment provided by the application control the state of the camera based on the dust amount, so that the problem of unclear imaging caused by dust can be avoided, and corresponding intelligent and automatic control is realized.
Having described the general principles of the present application, various non-limiting embodiments of the present application will now be described with reference to the accompanying drawings.
Exemplary method
Fig. 1 illustrates a flowchart of a camera control method according to an embodiment of the present application.
As shown in fig. 1, a camera control method according to an embodiment of the present application includes: s110, controlling the camera to be in a dust detection state; s120, detecting the dust amount on the surface of the camera in the dust detection state; and S130, controlling the state of the camera based on the dust amount.
In step S110, the camera is controlled to be in a dust detection state. Next, different states of the camera in the embodiment of the present application will be explained with reference to fig. 2.
Fig. 2 illustrates a schematic diagram of different states of a camera according to an embodiment of the application. As shown in fig. 2 (a), when the camera C needs to perform shooting, the camera is located outside the completely sealed shield H for dust detection or the like, and as shown in fig. 2(B), when the camera C needs to perform dust detection, the camera is controlled to move inside the shield H, i.e., the completely sealed dust detection position PD, and is turned on for dust detection. That is, in the embodiment of the present application, the dust detection state is different from a normal operation state when the camera performs shooting.
Therefore, in the camera control method according to the embodiment of the present application, controlling the camera in the dust detection state includes: controlling the camera to move to a completely closed dust detection position; and controlling the camera to be opened at the dust detection position so as to be in the dust detection state.
That is, as shown in fig. 2(B), the camera C is turned on at a fully-closed dust detection position PD inside the hood H to perform dust detection.
In step S120, in the dust detection state, the amount of dust on the camera surface is detected. That is, as shown in fig. 2(B), when the camera is moved to the dust detection position PD within the hood H, a dust self-detection function of the camera is performed to detect the amount of dust on the surface of the camera.
In the embodiment of the present application, the dust amount on the surface of the camera can be detected by acquiring a picture taken by the camera and performing image processing on the picture, which will be described in further detail below.
In step S130, the state of the camera is controlled based on the amount of dust. Specifically, in the embodiment of the present application, the camera may be controlled to be in different states based on the amount of the dust.
For example, a predetermined threshold value for determining whether the dust amount of the camera affects normal operation may be set, so that when the detected dust amount is less than or equal to the predetermined threshold value, the camera is controlled to be activated to enter an operating state. For example, referring to fig. 2 (a) and (B), when the camera C is activated to perform the operating state, the camera moves from a dust detection position PD for detecting the amount of dust to an operating position PW for normally capturing an image.
When the detected dust amount is larger than the predetermined threshold, it indicates that the camera cannot normally operate due to the influence of the dust amount on the surface, otherwise, the problem of unclear image or the like is caused. Accordingly, the camera can be controlled to be turned off at this time to enter a power-off state. In the power-off state, the surface of the camera may be cleaned, for example, manually or automatically.
For example, as shown in (C) of fig. 2, when the detected dust amount is larger than the predetermined threshold value and the camera C needs to be cleaned, the camera is controlled to move from the dust detection position PD to the cleaning position PC. In this way, in the cleaning position PC, the camera cleaning device can be controlled to clean the camera in the cleaning position.
In the embodiment of the present application, the specific type and operation mode of the camera cleaning device are not limited. In one example, as shown in fig. 3, the camera cleaning device may include a water tank T and an ultrasonic vibration module S. And, the water tank includes a lens connection port Ic. Here, it is understood by those skilled in the art that the water tank also includes a water inlet and a water outlet, etc., although not shown in fig. 3. In this way, when the camera is accommodated in the water tank through the lens connection port I, the ultrasonic vibration module S emits ultrasonic waves to vibrate water in the water tank T, thereby cleaning the surface of the camera. Fig. 3 illustrates a schematic view of a camera cleaning device according to an embodiment of the application.
In addition, in the embodiment of the present application, the camera cleaning device may include a soft fabric for cleaning the surface of the camera and a moving device for moving the soft fabric, so that the surface of the camera is cleaned by the soft fabric. Here, as can be appreciated by those skilled in the art, in addition to moving the soft fabric, the moving means may also move the camera so that the surface of the camera moves relative to the soft fabric to clean the surface of the camera.
In addition, when the dust amount is detected to be larger than the preset threshold value, when the camera cannot work normally, an alarm can be sent to a user to prompt the user that the camera cannot work normally, that is, the camera can be controlled to be in a dust alarm state.
It should be noted that, in the embodiment of the present application, the camera may be always turned on, and the detected dust amount may be notified to the user by a quantitative value. For example, the size of the detected dust amount is divided into 10 ranks of 1 to 10, and the user is notified of the detected rank scores, so that the user can decide by himself whether to continue shooting with the camera.
Fig. 4 illustrates a flow chart of a dust detection process according to an embodiment of the application.
As shown in fig. 4, on the basis of the embodiment shown in fig. 2, the step S120 may include the following steps:
step S1201, controlling a light source to uniformly irradiate the camera with light. When the camera C is located at the dust detection position PD, as shown in fig. 2(B), the dust detection device is connected to the dust detection device through a camera connection port Id shown in fig. 5. The means for dust detection comprises a light source Y that emits light to illuminate the camera with a light beam L. Fig. 5 illustrates a schematic diagram of a camera dust detection apparatus according to an embodiment of the present application.
As further shown in fig. 5, in the case where the light source Y is a point light source, in order to allow the light source Y to uniformly irradiate the camera with light, a diffusion sheet D is included between the light source and the camera to diffuse the light beams emitted from the light source. Of course, it will be understood by those skilled in the art that the light source may also be implemented as a surface light source for uniformly illuminating the camera without a diffusion sheet.
And step S1202, acquiring the image shot by the camera. In the case where the light source illuminates the camera, the camera takes an image and acquires the image for determining the amount of dust through image analysis.
Step S1203, detecting an amount of dust on the surface of the camera based on the image. Next, how to detect the amount of dust on the surface of the camera by analyzing the image taken by the camera will be described with reference to fig. 6.
In this way, through the dust detection process as shown in fig. 4, the dust amount on the surface of the camera can be automatically detected without the help of artificial visual observation, thereby avoiding the error observed by human eyes and realizing accurate dust detection.
Fig. 6 illustrates a flow chart of a dust-image analysis process according to an embodiment of the present application.
As shown in fig. 6, on the basis of the embodiment shown in fig. 4, the step S1203 may include the following steps:
step S12031, determining an area of a patch in the image. That is, as shown in fig. 7, when the camera takes an image by the camera dust detection device as described above, if the camera surface is free from dust, a pure white image will be obtained. On the other hand, if the surface of the camera has dust, a patch having a gray scale may exist in an image photographed by the camera due to the influence of the dust. Therefore, in order to determine the amount of dust on the camera surface, the area of the patch in the image is first determined. Fig. 7 illustrates a schematic view of a dust image taken by a camera according to an embodiment of the present application.
Step S12032, determining a ratio of the area of the patch to the total area of the image. That is, the area of the patch in the image depends on the amount of dust on the camera surface and the total area of the image, and by determining the ratio of the area of the patch to the total area of the image, the amount of dust on the camera surface can be determined accordingly.
Step S12033, detecting the amount of dust on the camera surface based on the ratio. That is, when the area ratio is large, it can be determined that the amount of dust on the camera surface is large, and when the area ratio is small, it can be determined that the amount of dust on the camera surface is small.
It is to be noted that, in the embodiment of the present application, in addition to the ratio, other image parameters, such as the gradation value of each patch, may be further considered to detect the amount of dust on the camera surface. For example, when the gray value of a patch is large, it indicates that the amount of dust corresponding to the patch is large, and when the gray value of the patch is small, it indicates that the amount of dust corresponding to the patch is small.
In this way, through the dust image analysis process shown in fig. 6, quantitative data of the dust amount on the surface of the camera can be obtained through image analysis, so that an accurate dust amount value is obtained, and the automation and intelligent control level of the camera is further improved.
As described above, in the embodiment of the present application, when the amount of dust on the surface of the camera exceeds the predetermined threshold value and thus cannot normally operate, the camera may be cleaned using the camera cleaning device. Thereafter, in order to detect the cleaning result of the camera, the camera may be further controlled to be in a dust detection state, and the amount of dust on the surface of the camera may be detected.
FIG. 8 illustrates a flow chart of a camera dust detection and cleaning process according to an embodiment of the application.
As shown in fig. 8, in step S201, the camera is first controlled to be in a dust detection state, for example, as shown in fig. 2 (B). Then, in step S202, the amount of dust on the camera surface is detected in the manner described above. In step S203, in response to the camera dust detection being qualified, that is, the amount of dust being less than or equal to a predetermined threshold, the camera is controlled to enter an operating state, for example, as shown in (a) of fig. 2. Then, in step S204, after the end of the operation, the camera is brought into a standby state. It is to be noted that, in the embodiment of the present application, when the camera is started up again from the standby state, the dust detection state may be entered first to avoid unclear imaging.
In addition, in step S205, in response to the camera dust detection failing, that is, the amount of dust being greater than a predetermined threshold, the camera is controlled to enter a cleaning state, for example, as shown in (C) of fig. 2. After the cleaning is finished, the camera can be directly controlled to enter the working state, namely, the step S203 is reached. Alternatively, the camera may be controlled to be in the dust detection state again to detect whether the cleaning effect of the camera meets the requirement, i.e., returning to step S201.
Therefore, through the camera dust detection and cleaning process as shown in fig. 8, dust self-checking and automatic cleaning of the camera and intelligent starting of the camera based on dust amount can be realized, so that the automation and intelligence degree of the camera are improved.
Exemplary device
Fig. 9 illustrates a block diagram of an example of an image capture device according to an embodiment of the present application.
As shown in fig. 9, an image pickup apparatus 300 according to an embodiment of the present application includes: a camera 310 for acquiring an image; a dust detection device 320 for accommodating the camera 310 to detect the amount of dust on the surface of the camera 310; a moving device 330 for moving the camera 310 into the dust detection device 320; and a control means 340 for controlling the state of the camera 310 based on the amount of dust detected by the dust detection means 320 and controlling the moving means 330 to move the camera 310.
In one example, in the above-mentioned image capturing apparatus 300, the control device 340 includes: a starting unit, configured to control the camera to start to enter a working state in response to that the amount of dust detected by the dust detection device 320 is less than or equal to a predetermined threshold; and a closing unit for controlling the camera to close to enter a power-off state in response to the amount of dust detected by the dust detection device 320 being greater than the predetermined threshold.
Fig. 10 illustrates a block diagram of an example of a dust detection apparatus according to an embodiment of the present application.
As shown in fig. 10, in one example, on the basis of the embodiment shown in fig. 9 described above, the dust detection apparatus 320 includes: a hermetic case 3201 for hermetically accommodating the camera 310; a light emitting unit 3202 for controlling a light source to uniformly irradiate the camera 310 hermetically accommodated in the hermetic case 3201 with light; an image acquisition unit 3203 configured to acquire an image captured by the camera 310 under illumination of the light emitting unit 3202; and a dust detection unit 3204 for detecting the amount of dust on the surface of the camera 310 based on the image acquired by the image acquisition unit 3203.
In one example, in the above-mentioned image capturing apparatus 300, the control unit 340 is configured to: controlling the camera 310 to move into the closed housing 3201 of the dust detection device 320; and controlling the camera 310 to be opened to be in the dust detection state within the hermetic case 3201.
In one example, in the above-mentioned image capturing apparatus 300, the dust detection unit 3204 is configured to: determining an area of a blob in the image; determining a ratio of an area of the plaque to a total area of the image; and detecting an amount of dust on the camera surface based on the ratio.
In one example, in the above-mentioned image capturing apparatus 300, the starting unit is configured to control the moving device 330 to move the camera 310 from the dust detecting device 320 to a working position.
Fig. 11 illustrates a block diagram of another example of an image capture device according to an embodiment of the present application.
As shown in fig. 11, on the basis of the embodiment shown in fig. 9, the image capturing apparatus 300' further includes a cleaning device 350 for cleaning the surface of the camera 310; and, the closing unit is used for controlling the moving device 330 to move the camera 310 from the dust detecting device 320 into the cleaning device 350, and controlling the cleaning device 350 to clean the camera 310.
In an example, in the above image capturing apparatus 300, the control device 340 is further configured to: after controlling the cleaning device 350 to clean the camera 310, controlling the camera 310 to be in a dust detection state, that is, controlling the moving device 330 to move the camera 310 into the dust detection device 320; and detecting the amount of dust on the surface of the camera 310 in the dust detection state.
Here, it can be understood by those skilled in the art that the specific functions and operations of the respective units and modules in the above-described image pickup apparatus 300 have been described in detail in the above description of the camera control method with reference to fig. 1 to 8, and thus, a repetitive description thereof will be omitted.
Exemplary devices
Fig. 12 illustrates a block diagram of a camera control device according to an embodiment of the present application.
As shown in fig. 12, a camera control device 400 according to an embodiment of the present application includes: a camera control unit 410 for controlling the camera to be in a dust detection state; a dust detection unit 420 for detecting an amount of dust on the camera surface in the dust detection state controlled by the camera control unit 410; and a state control unit 430 for controlling the state of the camera based on the amount of dust detected by the dust detection unit 420.
In one example, in the above-described camera control device 400, the state control unit 430 includes: a start control subunit, configured to control the camera to start to enter a working state in response to the amount of dust detected by the dust detection unit 420 being less than or equal to a predetermined threshold; and a shutdown control subunit, configured to, in response to the amount of dust detected by the dust detection unit 420 being greater than the predetermined threshold, control the camera to shutdown to enter a shutdown state.
In one example, in the above-described camera control device 400, the camera control unit 410 includes: the detection moving subunit is used for controlling the camera to move to a completely closed dust detection position; and a detection opening subunit, configured to control, at the dust detection position to which the moving subunit controls the camera to move, the camera to be opened to be in the dust detection state.
Fig. 13 illustrates a block diagram of a dust detection unit of a camera control device according to an embodiment of the present application.
As shown in fig. 13, in one example, on the basis of the embodiment shown in fig. 11, the dust detection unit 420 includes: a light source control subunit 4201 that controls a light source to uniformly irradiate the camera with light in the dust detection state controlled by the camera control unit 410; an image acquisition subunit 4202 configured to acquire an image captured by the camera when uniformly illuminated with light; and a dust amount detection subunit 4203 configured to detect an amount of dust on the camera surface based on the image acquired by the image acquisition subunit 4202.
In one example, in the camera control device 400 described above, the dust amount detection subunit 4203 is configured to: determining an area of a blob in the image; determining a ratio of an area of the plaque to a total area of the image; and detecting an amount of dust on the camera surface based on the ratio.
In one example, in the above-described camera control device 400, the activation control subunit is configured to control the camera to move from the dust detection position to the operating position.
In one example, in the above-described camera control device 400, the turn-off control subunit includes: a cleaning moving module for controlling the camera to move from the dust detection position to a cleaning position; and the cleaning control module is used for controlling the camera cleaning device to clean the camera at the cleaning position.
In one example, in the above camera control device 400, the camera control unit 410 is further configured to: controlling the camera to be in a dust detection state after controlling the camera cleaning device to clean the camera at the cleaning position; and the dust detection unit 420 is further configured to detect an amount of dust on the surface of the camera in the dust detection state.
Here, it can be understood by those skilled in the art that the specific functions and operations of the respective units and modules in the above-described camera control device 400 have been described in detail in the above description of the camera control method with reference to fig. 1 to 8, and thus, a repetitive description thereof will be omitted.
As described above, the camera control apparatus 400 according to the embodiment of the present application can be implemented in various terminal devices, such as a smartphone with a camera mounted thereon, an automatic driving device with a vehicle-mounted camera mounted thereon, and the like. In one example, the camera control apparatus 400 according to the embodiment of the present application may be integrated into a terminal device as one software module and/or hardware module. For example, the camera control apparatus 400 may be a software module in an operating system of the terminal device, or may be an application developed for the terminal device; of course, the camera control device 400 may also be one of many hardware modules of the terminal device.
Alternatively, in another example, the camera control apparatus 400 and the terminal device may be separate devices, and the camera control apparatus 400 may be connected to the terminal device through a wired and/or wireless network and transmit the interaction information according to an agreed data format.
Exemplary electronic device
Next, an electronic apparatus according to an embodiment of the present application is described with reference to fig. 14.
FIG. 14 illustrates a block diagram of an electronic device in accordance with an embodiment of the present application.
As shown in fig. 14, the electronic device 10 includes one or more processors 11 and a memory 12.
The processor 13 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.
In one example, the electronic device 10 may further include: an input device 13 and an output device 14, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
The input device 13 may include, for example, a keyboard, a mouse, and the like.
The output device 14 may output various information including contents recommended to the user to the outside. The output devices 14 may include, for example, a display, speakers, a printer, and a communication network and its connected remote output devices, among others.
Of course, for simplicity, only some of the components of the electronic device 10 relevant to the present application are shown in fig. 14, and components such as buses, input/output interfaces, and the like are omitted. In addition, the electronic device 10 may include any other suitable components depending on the particular application.
Exemplary computer program product and computer-readable storage Medium
In addition to the above-described methods and apparatus, embodiments of the present application may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in the camera control method according to various embodiments of the present application described in the "exemplary methods" section of this specification, supra.
The computer program product may be written with program code for performing the operations of embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present application may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform the steps in the camera control method according to various embodiments of the present application described in the "exemplary methods" section above in this specification.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing describes the general principles of the present application in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present application are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present application. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the foregoing disclosure is not intended to be exhaustive or to limit the disclosure to the precise details disclosed.
The block diagrams of devices, apparatuses, systems referred to in this application are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
It should also be noted that in the devices, apparatuses, and methods of the present application, the components or steps may be decomposed and/or recombined. These decompositions and/or recombinations are to be considered as equivalents of the present application.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, the description is not intended to limit embodiments of the application to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.
Claims (15)
1. A camera control method includes:
controlling the camera to be in a dust detection state;
detecting the amount of dust on the surface of the camera in the dust detection state; and
controlling a state of the camera based on the amount of dust.
2. The camera control method of claim 1, wherein controlling the state of the camera based on the amount of dust comprises:
controlling the camera to start to enter a working state in response to the dust amount being less than or equal to a predetermined threshold; and
and controlling the camera to be closed to enter a power-off state in response to the dust amount being larger than the predetermined threshold.
3. The camera control method of claim 2, wherein controlling the camera in a dust detection state comprises:
controlling the camera to move to a completely closed dust detection position; and
and controlling the camera to be started at the dust detection position so as to be in the dust detection state.
4. The camera control method according to claim 1, wherein in the dust detection state, detecting an amount of dust on the camera surface comprises:
controlling a light source to uniformly irradiate the camera with light;
acquiring an image shot by the camera; and
detecting an amount of dust on the camera surface based on the image.
5. The camera control method of claim 4, wherein detecting the amount of dust on the camera surface based on the image comprises:
determining an area of a blob in the image;
determining a ratio of an area of the plaque to a total area of the image; and
detecting an amount of dust on the camera surface based on the ratio.
6. The camera control method of claim 3, wherein controlling the camera to start to enter an operating state comprises:
and controlling the camera to move from the dust detection position to the working position.
7. The camera control method of claim 3, wherein, in response to the amount of dust being greater than the predetermined threshold, controlling the camera to turn off to enter a shutdown state comprises:
controlling the camera to move from the dust detection position to a cleaning position; and
and controlling a camera cleaning device to clean the camera at the cleaning position.
8. The camera control method of claim 7, further comprising, after controlling a camera cleaning device to clean the camera at the cleaning position:
controlling the camera to be in a dust detection state; and
in the dust detection state, an amount of dust on a surface of the camera is detected.
9. An image acquisition apparatus comprising:
the camera is used for collecting images;
dust detection means for accommodating the camera to detect an amount of dust on a surface of the camera;
a moving device for moving the camera into the dust detection device; and
and the control device is used for controlling the state of the camera based on the dust amount detected by the dust detection device and controlling the mobile device to move the camera.
10. The image pickup device according to claim 9, wherein the control means includes:
the starting unit is used for controlling the camera to start to enter a working state in response to the fact that the dust amount detected by the dust detection device is smaller than or equal to a preset threshold value; and
and the closing unit is used for controlling the camera to be closed to enter a shutdown state in response to the fact that the dust amount detected by the dust detection device is larger than the preset threshold value.
11. The image pickup device according to claim 9, wherein the dust detection means includes:
a hermetic case for hermetically accommodating the camera;
the light-emitting unit is used for controlling a light source to uniformly irradiate the camera which is hermetically accommodated in the airtight shell with light;
the image acquisition unit is used for acquiring an image shot by the camera under the illumination of the light-emitting unit; and
a dust detection unit configured to detect an amount of dust on the surface of the camera based on the image acquired by the image acquisition unit.
12. The image capturing apparatus of claim 10, wherein the activation unit is configured to control the moving device to move the camera from within the dust detection device to a working position.
13. The image capturing device of claim 10, further comprising:
the cleaning device is used for cleaning the surface of the camera;
the closing unit is used for controlling the moving device to move the camera from the dust detection device into the cleaning device and controlling the cleaning device to clean the camera.
14. A camera control apparatus comprising:
the camera control unit is used for controlling the camera to be in a dust detection state;
a dust detection unit for detecting an amount of dust on the surface of the camera in the dust detection state controlled by the camera control unit; and
and the state control unit is used for controlling the state of the camera based on the dust amount detected by the dust detection unit.
15. An electronic device, comprising:
a processor; and
a memory having stored therein computer program instructions which, when executed by the processor, cause the processor to perform the camera control method of any of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910305326.8A CN111835956B (en) | 2019-04-16 | 2019-04-16 | Camera control method and device, image acquisition equipment and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910305326.8A CN111835956B (en) | 2019-04-16 | 2019-04-16 | Camera control method and device, image acquisition equipment and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111835956A true CN111835956A (en) | 2020-10-27 |
CN111835956B CN111835956B (en) | 2022-07-12 |
Family
ID=72914592
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910305326.8A Active CN111835956B (en) | 2019-04-16 | 2019-04-16 | Camera control method and device, image acquisition equipment and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111835956B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114400883A (en) * | 2021-12-28 | 2022-04-26 | 江苏力普通瑞电力电子科技有限公司 | High-voltage inverter pre-charging system convenient to maintain |
CN115415210A (en) * | 2022-11-02 | 2022-12-02 | 江苏海迪威液压有限公司 | Hydraulic driving device capable of automatically lubricating |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101246300A (en) * | 2007-02-16 | 2008-08-20 | 佳能株式会社 | Image capturing apparatus |
CN101326813A (en) * | 2006-03-09 | 2008-12-17 | 佳能株式会社 | Imaging device, and method and program for controlling same |
CN102042812A (en) * | 2010-09-15 | 2011-05-04 | 苏州凌创电子系统有限公司 | Visual machine detection method |
CN102413354A (en) * | 2011-10-05 | 2012-04-11 | 深圳市联德合微电子有限公司 | Automatic optical detection method, device and system for mobile phone camera module |
CN104185019A (en) * | 2014-07-24 | 2014-12-03 | 青岛歌尔声学科技有限公司 | Camera stain detecting method and device |
CN104822568A (en) * | 2012-12-04 | 2015-08-05 | 罗伯特·博世有限公司 | Method and device for controlling cleaning device for vehicle camera, method for cleaning vehicle camera, and camera system for vehicle |
JP2017225094A (en) * | 2016-06-17 | 2017-12-21 | 富士ゼロックス株式会社 | Image reading device and image reading program |
CN108346149A (en) * | 2018-03-02 | 2018-07-31 | 北京郁金香伙伴科技有限公司 | image detection, processing method, device and terminal |
CN108844901A (en) * | 2018-06-25 | 2018-11-20 | 南京工程学院 | Multi-optical spectrum image collecting device |
CN208383085U (en) * | 2018-07-17 | 2019-01-15 | 南京信息工程大学 | A kind of light source diverging angle automatic detecting device |
CN109584219A (en) * | 2018-11-15 | 2019-04-05 | 广东美的厨房电器制造有限公司 | A kind of detection method that photographic device is dirty and cooking equipment |
-
2019
- 2019-04-16 CN CN201910305326.8A patent/CN111835956B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101326813A (en) * | 2006-03-09 | 2008-12-17 | 佳能株式会社 | Imaging device, and method and program for controlling same |
CN101246300A (en) * | 2007-02-16 | 2008-08-20 | 佳能株式会社 | Image capturing apparatus |
CN102042812A (en) * | 2010-09-15 | 2011-05-04 | 苏州凌创电子系统有限公司 | Visual machine detection method |
CN102413354A (en) * | 2011-10-05 | 2012-04-11 | 深圳市联德合微电子有限公司 | Automatic optical detection method, device and system for mobile phone camera module |
CN104822568A (en) * | 2012-12-04 | 2015-08-05 | 罗伯特·博世有限公司 | Method and device for controlling cleaning device for vehicle camera, method for cleaning vehicle camera, and camera system for vehicle |
CN104185019A (en) * | 2014-07-24 | 2014-12-03 | 青岛歌尔声学科技有限公司 | Camera stain detecting method and device |
JP2017225094A (en) * | 2016-06-17 | 2017-12-21 | 富士ゼロックス株式会社 | Image reading device and image reading program |
CN108346149A (en) * | 2018-03-02 | 2018-07-31 | 北京郁金香伙伴科技有限公司 | image detection, processing method, device and terminal |
CN108844901A (en) * | 2018-06-25 | 2018-11-20 | 南京工程学院 | Multi-optical spectrum image collecting device |
CN208383085U (en) * | 2018-07-17 | 2019-01-15 | 南京信息工程大学 | A kind of light source diverging angle automatic detecting device |
CN109584219A (en) * | 2018-11-15 | 2019-04-05 | 广东美的厨房电器制造有限公司 | A kind of detection method that photographic device is dirty and cooking equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114400883A (en) * | 2021-12-28 | 2022-04-26 | 江苏力普通瑞电力电子科技有限公司 | High-voltage inverter pre-charging system convenient to maintain |
CN115415210A (en) * | 2022-11-02 | 2022-12-02 | 江苏海迪威液压有限公司 | Hydraulic driving device capable of automatically lubricating |
Also Published As
Publication number | Publication date |
---|---|
CN111835956B (en) | 2022-07-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106725127B (en) | Sweeping method and device of sweeping robot | |
US10191356B2 (en) | Methods and apparatus relating to detection and/or indicating a dirty lens condition | |
KR20200017072A (en) | Electronic device and method for providing notification relative to image displayed via display and image stored in memory based on image analysis | |
US11579904B2 (en) | Learning data collection device, learning data collection system, and learning data collection method | |
EP1608157A2 (en) | Method and system for reducing effects of undesired signals in an infrared imaging system | |
US10261393B2 (en) | Method for controlling infrared illuminator and related image-recording device | |
CN111835956B (en) | Camera control method and device, image acquisition equipment and electronic equipment | |
CN101170647B (en) | Method of detecting specific object region and digital camera | |
WO2019124824A1 (en) | Electronic device including plurality of cameras, and operation method therefor | |
US20130120632A1 (en) | Imaging apparatus | |
CN104335570A (en) | Information processing device, system, and storage medium | |
CN109584219B (en) | Method for detecting dirt of camera device and cooking equipment | |
CN110213480A (en) | A kind of focusing method and electronic equipment | |
US20150330910A1 (en) | Cosmetic Evaluation Box for Used Electronics | |
JP2004326118A (en) | Equipment with eye start capability incorporated | |
JP4838590B2 (en) | Ophthalmic imaging apparatus and artifact detection method thereof | |
TW201503687A (en) | System and method for controlling taking photos | |
CN115427883A (en) | Electronic device with a detachable cover | |
CN104065865A (en) | Operation history image storage apparatus, image processing apparatus, and method for controlling storing of operation history image | |
KR20200120977A (en) | Vehicle status management apparatus and mehtod | |
JP2020008750A5 (en) | Display device and image processing method | |
EP3099059B1 (en) | Camera having hdr during pre-flash | |
JP7416231B2 (en) | Installation support device, installation support method, and program | |
JP2014204249A (en) | Imaging apparatus | |
EP3531692B1 (en) | Image sensor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |