WO2015192579A1 - 污垢检测方法及装置 - Google Patents

污垢检测方法及装置 Download PDF

Info

Publication number
WO2015192579A1
WO2015192579A1 PCT/CN2014/089499 CN2014089499W WO2015192579A1 WO 2015192579 A1 WO2015192579 A1 WO 2015192579A1 CN 2014089499 W CN2014089499 W CN 2014089499W WO 2015192579 A1 WO2015192579 A1 WO 2015192579A1
Authority
WO
WIPO (PCT)
Prior art keywords
dirt
camera
module
read
predetermined
Prior art date
Application number
PCT/CN2014/089499
Other languages
English (en)
French (fr)
Inventor
张炼
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to US15/316,094 priority Critical patent/US20170104986A1/en
Priority to EP14894921.7A priority patent/EP3147706A4/en
Priority to JP2017518389A priority patent/JP2017518544A/ja
Publication of WO2015192579A1 publication Critical patent/WO2015192579A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B43/00Testing correct operation of photographic apparatus or parts thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/633Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
    • H04N23/634Warning indications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/681Motion detection

Definitions

  • the present invention relates to the field of communications, and in particular to a method and apparatus for detecting dirt.
  • the functions of the terminal are more and more perfect, and various functions are loaded onto the terminal.
  • more and more terminals are equipped with the functions of taking pictures and taking pictures, so people enjoy taking pictures and taking pictures.
  • the process of removing dirt from the camera is also essential.
  • the mobile terminal is taken as an example for description.
  • the camera function is more and more important. Due to its convenient portability, the use of the mobile terminal for camera capture has the potential to replace the camera, but the user will take photos when using the mobile terminal. It is inevitable to stick grease such as grease to the lens of the camera, which will affect the imaging effect when photographing. However, because the camera of the mobile terminal is small, the dirt is difficult to detect, affecting the quality of photographing and video recording, and there is no corresponding in the related technology. Camera related technology for dirt detection.
  • the present invention provides a method and apparatus for detecting dirt to at least solve the problem that dirt on a camera existing in the related art cannot be detected.
  • a method for detecting dirt includes: periodically reading a focus index FV of a terminal camera module, wherein the camera module is in a shooting mode; determining whether the camera has dirt according to the read FV value. When the judgment result is yes, a prompt message is sent.
  • determining whether the camera has dirt according to the read FV value comprises: comparing whether the phase difference between the read FV values is less than a first predetermined threshold; and determining whether the camera has dirt according to the comparison result.
  • determining that the camera has dirt according to the comparison result comprises determining that the camera has dirt when the comparison result is that the difference between the read FV values is less than a predetermined threshold.
  • the method before periodically reading the focus index FV of the camera module of the terminal, the method further comprises: receiving a predetermined operation instruction, wherein the predetermined operation instruction is used to trigger the dirt detection operation.
  • the receiving the predetermined operation instruction comprises at least one of: receiving a predetermined unlocking gesture, wherein the unlocking gesture is an unlocking path for triggering dirt detection; receiving a shaking detecting operation, wherein when the shaking speed and/or The shaking detection operation is triggered when the acceleration exceeds a second predetermined threshold.
  • the prompt information includes at least one of the following: text prompt information; voice prompt information; and picture prompt information.
  • a dirt detecting apparatus comprising: a reading module configured to periodically read a focus index FV of a terminal camera module, wherein the camera module is in an image capturing mode; a determining module, setting It is determined whether the camera has dirt according to the read FV value; and the sending module is configured to send the prompt information when the judgment result is YES.
  • the determining module comprises: a comparing unit, configured to compare whether the phase difference between the read FV values is less than a first predetermined threshold; and the determining unit is configured to determine whether the camera has dirt according to the comparison result.
  • the determining unit comprises: a determining subunit, configured to determine that the camera has dirt when the comparison result is that the difference between the read FV values is less than a predetermined threshold.
  • the dirt detecting device further comprises: a receiving module configured to receive a predetermined operational command, wherein the predetermined operational command is used to trigger a dirt detecting operation.
  • the receiving module comprises at least one of: a first receiving unit configured to receive a predetermined unlocking gesture, wherein the unlocking gesture is an unlocking path for triggering dirt detection; and a second receiving unit configured to receive shaking A detecting operation, wherein the shaking detecting operation is triggered when the speed and/or acceleration of the shaking exceeds a second predetermined threshold.
  • the focus index FV of the terminal camera module is periodically read, wherein the camera module is in the image capturing mode; whether the camera has dirt according to the read FV value; and when the determination result is yes, the prompt information is sent.
  • the method solves the problem that the dirt on the camera existing in the related art cannot be detected, thereby achieving the effect of being able to detect the dirt on the camera and promptly reminding the user to improve the user experience.
  • FIG. 1 is a flow chart of a method of detecting dirt according to an embodiment of the present invention
  • FIG. 2 is a block diagram showing the structure of a dirt detecting device according to an embodiment of the present invention.
  • FIG. 3 is a block diagram showing the structure of the judging module 24 in the dirt detecting device according to an embodiment of the present invention.
  • FIG. 4 is a block diagram showing the structure of the determining unit 34 in the dirt detecting device according to an embodiment of the present invention.
  • Figure 5 is a block diagram showing a preferred configuration of a dirt detecting device according to an embodiment of the present invention.
  • FIG. 6 is a block diagram showing the structure of a receiving module 52 in a dirt detecting device according to an embodiment of the present invention
  • FIG. 7 is a flow chart showing a method of detecting and alarming dirt according to an embodiment of the present invention.
  • FIG. 1 is a flow chart of a method for detecting dirt according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
  • Step S102 periodically reading a focus index FV of the terminal camera module, wherein the camera module is in a shooting mode
  • Step S104 determining whether the camera has dirt according to the read FV value
  • step S106 when the determination result is YES, the prompt information is transmitted.
  • the focus index FV in the camera module in the shooting mode is periodically read, and each of the read focus indexes is used to judge whether the camera has dirt, and when the judgment result is that dirt exists, the transmission is performed.
  • the prompt information realizes the monitoring of the dirt on the camera, thereby solving the problem that the dirt on the camera existing in the related art cannot be detected, and improving the user experience.
  • determining whether the camera has dirt according to the read FV value may be determined by a change of the FV value, and may be based on whether the difference between the FV values is less than a first predetermined threshold, and according to the comparison. As a result, it is judged whether or not there is dirt on the camera.
  • each FV value changes very small, indicating that there is dirt on the camera, because the focus is focused on the dirt point every time shooting. This causes a small change in the FV value.
  • dirt detection methods can also be used. For example, it is also possible to detect by area shading, and the same shadow is present in the same position area of several photographs taken continuously, or the recorded video is several frames in succession. The same shadow exists in the camera, indicating that there is dirt on the camera.
  • the system can automatically trigger an alarm mechanism to remind the user to clean the dirt on the camera, thereby improving the shooting quality.
  • a predetermined operation instruction may be received, where the operation instruction is for triggering the dirt detecting operation, and the operation instruction is The trigger can be performed anytime and anywhere, and the dirt detection can be easily and simply completed.
  • the receiving the predetermined operation instruction may include at least one of the following manners:
  • Manner 1 receiving a predetermined unlocking gesture, wherein the unlocking gesture is an unlocking path for triggering the dirt detection.
  • the unlocking path of the triggered dirt detection is different from other unlocking paths of the terminal, and may be pre-
  • the path familiar to the user is set to an unlocking gesture that triggers dirt detection;
  • Manner 2 receiving a shaking detection operation, wherein the shaking detection operation is triggered when the shaking speed and/or the acceleration exceeds the second predetermined threshold, and of course, the shaking detection operation may be triggered by other means, for example, when the shaking frequency exceeds a certain value , or when the number of shaking exceeds a certain value, or the shaking detection operation can be triggered according to the direction of shaking.
  • the user when it is detected that there is dirt on the camera, the user may send a prompt message to remind the user that the prompt information may be a text prompt information, and may be a voice prompt information or a picture prompt information.
  • the prompt information may be a text prompt information, and may be a voice prompt information or a picture prompt information.
  • the flash can also be used to flash the prompt, or the prompt brightness of the terminal screen can be improved or the brightness of the screen of the terminal can be lowered, so that it is convenient and quick. Notify the user.
  • a dirt detecting device is also provided, which is used to implement the above embodiments and preferred embodiments, and will not be described again.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 2 is a structural block diagram of a dirt detecting apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes an obtaining module 22, a determining module 24, and a transmitting module 26. The following describes the module:
  • the reading module 22 is configured to periodically read the focus index FV of the terminal camera module, wherein the camera module is in the shooting mode;
  • the determining module 24 is connected to the reading module 22, and is configured to determine the camera according to the read FV value. Whether there is dirt;
  • the sending module 26 is connected to the above-mentioned judging module 24, and is set to send the prompt information when the judgment result is YES.
  • the judging module 24 includes a comparing unit 32 and a judging unit 34, and the judging module 24 will be described below.
  • the comparing unit 32 is configured to compare whether the phase difference between the read FV values is smaller than a first predetermined threshold; the determining unit 34 is connected to the comparing unit 32, and is configured to determine whether the camera has dirt according to the comparison result.
  • the determining unit 34 includes a determining subunit 42, which will be described below.
  • the determining sub-unit 42 is arranged to determine that the camera is fouled when the comparison result is that the difference between the read FV values is less than a predetermined threshold.
  • Fig. 5 is a block diagram showing a preferred configuration of a dirt detecting apparatus according to an embodiment of the present invention. As shown in Fig. 5, the apparatus includes a receiving module 52 in addition to all the modules shown in Fig. 2, and the apparatus will be described below.
  • the receiving module 52 is connected to the reading module 22, and is configured to receive a predetermined operation instruction, wherein the predetermined operation instruction is used to trigger the dirt detecting operation
  • FIG. 6 is a structural block diagram of a receiving module 52 in a dirt detecting apparatus according to an embodiment of the present invention. As shown in FIG. 6, the receiving module 52 includes at least one of the following units:
  • the first receiving unit 62 is configured to receive a predetermined unlocking gesture, wherein the unlocking gesture is an unlocking path for triggering dirt detection; and the second receiving unit 64 is configured to receive a shaking detecting operation, wherein when the speed of shaking and/or The shaking detection operation is triggered when the acceleration exceeds a second predetermined threshold.
  • the embodiment of the present invention provides a method for detecting dirt.
  • the following uses a mobile phone as an example for description.
  • alarm module (same as the above transmission module 26)
  • the camera module A mainly completes the user's photographing and camera request, and provides the module B with detection information.
  • the dirt detecting module B detects the focus start message sent by the receiving module A, and periodically reads the FV (focus index, camera module inherent dynamic focus parameter) value to the camera module A, and receives the focus end message sent by the module A. The reading of the FV value is stopped, and the read FV value is compared. If the fluctuation is small, it indicates that there is a stain, and the alarm module C is sent an alarm request message.
  • the alarm module C receives the alarm request message of the module B, and displays the message “The lens has dirt, please wipe the test” to the user. In this way, the mobile phone camera dirt detection and alarm function is realized.
  • the user takes a picture through the camera module.
  • the camera module transmits a focus start message to the dirt detection module.
  • the dirt detection module periodically reads the FV value to the camera module.
  • the module transmits a focus end message to the dirt detection module.
  • the dirt detecting module stops reading the FV value and compares the read FV value. If the fluctuation is small, it indicates that there is a stain, and then sends an alarm request to the alarm module.
  • the alarm module receives the alarm request and displays the message “The lens has dirt, please wipe the test” to the user.
  • the user wipes the lens.
  • FIG. 7 is a schematic flow chart of a method for detecting and alarming dirt according to an embodiment of the present invention. As shown in FIG. 7, the method includes the following steps:
  • Step S702 the user takes a picture through the camera module
  • Step S704 the camera module transmits a focus start message to the dirt detection module
  • Step S706 the dirt detection module periodically reads the FV value to the camera module
  • Step S708 the camera module transmits a focus end message to the dirt detection module
  • step S710 the dirt detecting module stops reading the FV value and compares the read FV value. If the fluctuation is large, no processing is performed. If the variation is small, an alarm request is sent to the alarm module, and the alarm module receives the alarm request. , to the user to display the "lens of the lens, please wipe" prompt message;
  • step S712 the user wipes the lens.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the method and apparatus for detecting dirt provided by the embodiments of the present invention have the following beneficial effects: solving the problem that the dirt on the camera existing in the related art cannot be detected, thereby achieving the ability to detect the dirt on the camera and promptly reminding Users, improve the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Studio Devices (AREA)
  • Lens Barrels (AREA)
  • Camera Bodies And Camera Details Or Accessories (AREA)
  • Indication In Cameras, And Counting Of Exposures (AREA)

Abstract

一种污垢检测方法及装置,该方法包括:周期性读取终端摄像模块的合焦指数FV,其中该摄像模块处于拍摄模式;根据读取的FV值判断摄像头是否存在污垢;在判断结果为是时,发送提示信息。解决了相关技术中存在的摄像头上的污垢无法检测的问题,进而达到了能够检测摄像头上的污垢,并能及时提醒用户,提高用户体验的效果。

Description

污垢检测方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及污垢检测方法及装置。
背景技术
目前,终端的功能越来越完善,各种功能都加载到终端上,为满足人们日益增长的需要,越来越多的终端都配置了拍照和摄像的功能,因此,在人们享受拍照和摄像的过程时,清除摄像头上的污垢也是必不可少。下面以移动终端为例进行说明,在移动终端领域,摄像功能越来越重要,由于其方便携带的优势,利用移动终端进行摄像大有取代照相机的势头,但是用户在利用移动终端进行拍照时会不可避免的将油脂等污垢粘到摄像头的镜片上,拍照时会影响成像效果,但是由于移动终端摄像头很小,导致污垢难以察觉,影响拍照和录像的质量,并且在相关技术中也不存在与摄像头污垢检测相关的技术。
因此,在相关技术中存在着摄像头上的污垢无法检测的问题。
发明内容
本发明提供了一种污垢检测方法及装置,以至少解决相关技术中存在的摄像头上的污垢无法检测的问题。
根据本发明的一个方面,提供了一种污垢检测方法,包括:周期性读取终端摄像模块的合焦指数FV,其中所述摄像模块处于拍摄模式;根据读取的FV值判断摄像头是否存在污垢;在判断结果为是时,发送提示信息。
优选地,根据读取的所述FV值判断摄像头是否存在污垢包括:比较所述读取的FV值之间相差是否小于第一预定阈值;根据比较结果判断所述摄像头是否存在污垢。
优选地,根据比较结果确定所述摄像头存在污垢包括:当所述比较结果为所述读取的FV值之间相差小于预定阈值时,确定所述摄像头存在污垢。
优选地,在周期性读取终端的摄像模块的合焦指数FV之前,还包括:接收预定的操作指令,其中所述预定的操作指令用于触发污垢检测操作。
优选地,所述接收预定的操作指令包括以下至少之一:接收预定的解锁手势,其中所述解锁手势为用于触发污垢检测的解锁路径;接收摇动检测操作,其中,当摇动速度和/或加速度超过第二预定阈值时触发所述摇动检测操作。
优选地,所述提示信息包括以下至少之一:文字提示信息;语音提示信息;图片提示信息。
根据本发明的另一方面,提供了一种污垢检测装置,包括:读取模块,设置为周期性读取终端摄像模块的合焦指数FV,其中所述摄像模块处于摄像模式;判断模块,设置为根据读取的FV值判断摄像头是否存在污垢;发送模块,设置为在判断结果为是时,发送提示信息。
优选地,所述判断模块包括:比较单元,设置为比较所述读取的FV值之间相差是否小于第一预定阈值;判断单元,设置为根据比较结果判断所述摄像头是否存在污垢。
优选地,所述判断单元包括:确定子单元,设置为当所述比较结果为所述读取的FV值之间相差小于预定阈值时,确定所述摄像头存在污垢。
优选地,所述污垢检测装置还包括:接收模块,设置为接收预定的操作指令,其中所述预定的操作指令用于触发污垢检测操作。
优选地,所述接收模块包括以下至少之一:第一接收单元,设置为接收预定的解锁手势,其中所述解锁手势为用于触发污垢检测的解锁路径;第二接收单元,设置为接收摇动检测操作,其中,当摇动的速度和/或加速度超过第二预定阈值时触发所述摇动检测操作。
通过本发明,采用周期性读取终端摄像模块的合焦指数FV,其中所述摄像模块处于摄像模式;根据读取的FV值判断摄像头是否存在污垢;在判断结果为是时,发送提示信息的方法,解决了相关技术中存在的摄像头上的污垢无法检测的问题,进而达到了能够检测摄像头上的污垢,并能及时提醒用户,提高用户体验的效果。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的污垢检测方法的流程图;
图2是根据本发明实施例的污垢检测装置的结构框图;
图3是根据本发明实施例的污垢检测装置中判断模块24的结构框图;
图4是根据本发明实施例的污垢检测装置中判断单元34的结构框图;
图5是根据本发明实施例的污垢检测装置的优选结构框图;
图6是根据本发明实施例的污垢检测装置中接收模块52的结构框图;
图7是根据本发明实施例的污垢检测和报警方法的流程示意图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
在本实施例中提供了一种污垢检测方法,图1是根据本发明实施例的污垢检测方法的流程图,如图1所示,该流程包括如下步骤:
步骤S102,周期性读取终端摄像模块的合焦指数FV,其中该摄像模块处于拍摄模式;
步骤S104,根据读取的FV值判断摄像头是否存在污垢;
步骤S106,在判断结果为是时,发送提示信息。
通过上述步骤,周期性的读取处于拍摄模式的摄像模块中的合焦指数FV,并利用读取的各个合焦指数来对摄像头是否存在污垢进行判断,以及在判断结果为存在污垢时,发送提示信息,实现了对摄像头上污垢的监测,进而解决了相关技术中存在的摄像头上的污垢无法检测的问题,提高了用户体验。
在一个可选的实施例中,根据读取的FV值判断摄像头是否存在污垢,可以通过FV值的变化情况来进行判断,可以根据各FV值之间相差是否小于第一预定阈值,并根据比较结果来判断摄像头上是否存在污垢。
优选地,当各FV值之间相差均小于第一预定阈值时,即各个FV值变动很小时,说明在摄像头上存在污垢,这是因为,每次拍摄时焦点均会聚焦于该污垢点,导致FV值变化很小。
当然,也可以采用其他的污垢检测方法,例如,还可以通过区域阴影的方式进行检测,当检测到连续拍摄的几张照片的同一位置区域中均存在相同的阴影,或者录制的视频连续几帧中存在着相同的阴影,则说明摄像头上存在着污垢。
优选地,在确定了摄像头上存在污垢时,***可以自动触发报警机制,提醒用户清理摄像头上的污垢,以此提高拍摄质量。
在一个可选的实施例中,在周期性读取终端的摄像模块的合焦指数FV之前,还可以接收预定的操作指令,该操作指令是用于触发污垢检测操作的,并且该操作指令的触发可以随时随地的进行,方便简单的完成污垢检测。
其中,接收预定的操作指令可以包括以下方式至少之一:
方式一:接收预定的解锁手势,其中该解锁手势为用于触发污垢检测的解锁路径,一般而言,该触发污垢检测的解锁路径与终端的其他解锁路径不同,并且,可以依据用户喜好预先将用户熟悉的路径设置为触发污垢检测的解锁手势;
方式二:接收摇动检测操作,其中,当摇动速度和/或加速度超过第二预定阈值时触发摇动检测操作,当然也可以通过其它方式触发该摇动检测操作,例如,当摇动频率超过一定的值时,或者摇动次数超过一定的值时,或者依据摇动的方向均可以触发摇动检测操作。
在另一个可选的实施例中,当检测到摄像头上存在污垢时,可以向用户发送提示信息来提醒用户,该提示信息可以是文字提示信息,可以是语音提示信息也可以是图片提示信息,当然也可以是各种组合形式的提示信息,当终端上设置有闪光灯时,也可以利用闪光灯进行闪烁提示,或者也可以利用提高终端屏幕亮度或降低终端的屏幕亮度进行提示等等,从而方便快捷的通知用户。
在本实施例中还提供了一种污垢检测装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图2是根据本发明实施例的污垢检测装置的结构框图,如图2所示,该装置包括获取模块22、判断模块24和发送模块26,下面对该模块进行说明:
读取模块22,设置为周期性读取终端摄像模块的合焦指数FV,其中该摄像模块处于拍摄模式;判断模块24,连接至上述读取模块22,设置为根据读取的FV值判断摄像头是否存在污垢;发送模块26,连接至上述判断模块24,设置为在判断结果为是时,发送提示信息。
图3是根据本发明实施例的污垢检测装置中判断模块24的结构框图,如图3所示,该判断模块24包括比较单元32和判断单元34,下面对该判断模块24进行说明。
比较单元32,设置为比较读取的FV值之间相差是否小于第一预定阈值;判断单元34,连接至上述比较单元32,设置为根据比较结果判断上述摄像头是否存在污垢。
图4是根据本发明实施例的污垢检测装置中判断单元34的结构框图,如图4所示,该判断单元34包括确定子单元42,下面对该判断单元34进行说明。
确定子单元42,设置为当比较结果为读取的FV值之间相差小于预定阈值时,确定上述摄像头存在污垢。
图5是根据本发明实施例的污垢检测装置的优选结构框图,如图5所示,该装置除包括图2所示的所有模块外,还包括接收模块52,下面对该装置进行说明。
接收模块52,连接至上述读取模块22,设置为接收预定的操作指令,其中该预定的操作指令用于触发污垢检测操作
图6是根据本发明实施例的污垢检测装置中接收模块52的结构框图,如图6所示,该接收模块52包括以下单元至少之一:
第一接收单元62,设置为接收预定的解锁手势,其中该解锁手势为用于触发污垢检测的解锁路径;第二接收单元64,设置为接收摇动检测操作,其中,当摇动的速度和/或加速度超过第二预定阈值时触发该摇动检测操作。
为解决相关技术中存在的摄像头上的污垢无法检测的问题,本发明实施例提供了污垢检测的方法,下面以手机为例进行说明。
为了解决摄像头镜片沾有油脂等污垢的问题,提供了一种检测并报警的方法。
本发明实施例中的摄像头污垢检测和报警的方法包括以下模块:
A、摄像模块
B、污垢检测模块(同上述的判断模块24)
C、报警模块(同上述的发送模块26)
摄像模块A主要是完成用户的拍照和摄像请求,为模块B提供检测信息。污垢检测模块B检测接收模块A送来的对焦开始消息,周期性向摄像模块A读取FV(合焦指数,摄像模组固有动态对焦参数)值,当接收到模块A送来的对焦结束消息后,停止读取FV值,比较读取到的FV值,如果变动较小,则说明有污点,则给报警模块C发送告警请求消息。报警模块C接收到模块B的告警请求消息,向用户显示“镜头有污垢,请擦试”提示信息。依此实现手机摄像头污垢检测和报警功能。
本发明实施例中的手机摄像头污垢检测和报警的方法包括以下步骤:
第一步,用户通过摄像模块拍照。
第二步,摄像模块传送对焦开始消息给污垢检测模块。
第三步,污垢检测模块周期性向摄像模块读取FV值。
第四步,像模块传送对焦结束消息给污垢检测模块。
第五步,污垢检测模块停止读取FV值,比较读取到的FV值,如果变动较小,则说明有污点,则给报警模块发送报警请求。
第六步,报警模块接收到报警请求,向用户显示“镜头有污垢,请擦试”提示信息。
第七步,用户擦试镜头。
通过上述方法,当摄像头镜片有污垢时,可以实时提醒用户,提高拍照图片质量,当然也可以通过拍摄的视频对摄像头上是否存在污垢进行检查。
图7是根据本发明实施例的污垢检测和报警方法的流程示意图,如图7所示,该方法包括如下步骤:
步骤S702,用户通过摄像模块拍照;
步骤S704,摄像模块传送对焦开始消息给污垢检测模块;
步骤S706,污垢检测模块周期性向摄像模块读取FV值;
步骤S708,摄像模块传送对焦结束消息给污垢检测模块;
步骤S710,污垢检测模块停止读取FV值,比较读取到的FV值,如果变动较大,则不做任何处理,如果变动较小,则给报警模块发送报警请求,报警模块接收到报警请求,向用户显示“镜头有污垢,请擦试”提示信息;
步骤S712,用户擦试镜头。
至此,整个流程就完成了。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
如上所述,本发明实施例提供的污垢检测方法及装置具有如下有益效果:解决了相关技术中存在的摄像头上的污垢无法检测的问题,进而达到了能够检测摄像头上的污垢,并能及时提醒用户,提高用户体验的效果。

Claims (11)

  1. 一种污垢检测方法,包括:
    周期性读取终端的摄像模块的合焦指数FV,其中所述摄像模块处于拍摄模式;
    根据读取的FV值判断摄像头是否存在污垢;
    在判断结果为是时,发送提示信息。
  2. 根据权利要求1所述的方法,其中,根据读取的所述FV值判断摄像头是否存在污垢包括:
    比较所述读取的FV值之间相差是否小于第一预定阈值;
    根据比较结果判断所述摄像头是否存在污垢。
  3. 根据权利要求2所述的方法,其中,根据比较结果确定所述摄像头存在污垢包括:
    当所述比较结果为所述读取的FV值之间相差小于预定阈值时,确定所述摄像头存在污垢。
  4. 根据权利要求1所述的方法,其中,在周期性读取终端的摄像模块的合焦指数FV之前,还包括:
    接收预定的操作指令,其中所述预定的操作指令用于触发污垢检测操作。
  5. 根据权利要求4所述的方法,其中,所述接收预定的操作指令包括以下至少之一:
    接收预定的解锁手势,其中所述解锁手势为用于触发污垢检测的解锁路径;
    接收摇动检测操作,其中,当摇动速度和/或加速度超过第二预定阈值时触发所述摇动检测操作。
  6. 根据权利要求1所述的方法,其中,所述提示信息包括以下至少之一:
    文字提示信息;
    语音提示信息;
    图片提示信息。
  7. 一种污垢检测装置,包括:
    读取模块,设置为周期性读取终端摄像模块的合焦指数FV,其中所述摄像模块处于摄像模式;
    判断模块,设置为根据读取的FV值判断摄像头是否存在污垢;
    发送模块,设置为在判断结果为是时,发送提示信息。
  8. 根据权利要求7所述的装置,其中,所述判断模块包括:
    比较单元,设置为比较所述读取的FV值之间相差是否小于第一预定阈值;
    判断单元,设置为根据比较结果判断所述摄像头是否存在污垢。
  9. 根据权利要求8所述的装置,其中,所述判断单元包括:
    确定子单元,设置为当所述比较结果为所述读取的FV值之间相差小于预定阈值时,确定所述摄像头存在污垢。
  10. 根据权利要求7所述的装置,其中,还包括:
    接收模块,设置为接收预定的操作指令,其中所述预定的操作指令用于触发污垢检测操作。
  11. 根据权利要求10所述的装置,其中,所述接收模块包括以下至少之一:
    第一接收单元,设置为接收预定的解锁手势,其中所述解锁手势为用于触发污垢检测的解锁路径;
    第二接收单元,设置为接收摇动检测操作,其中,当摇动的速度和/或加速度超过第二预定阈值时触发所述摇动检测操作。
PCT/CN2014/089499 2014-06-20 2014-10-24 污垢检测方法及装置 WO2015192579A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US15/316,094 US20170104986A1 (en) 2014-06-20 2014-10-24 Method and device for dirt detection
EP14894921.7A EP3147706A4 (en) 2014-06-20 2014-10-24 Dirt detection method and device
JP2017518389A JP2017518544A (ja) 2014-06-20 2014-10-24 汚れ検出方法及び装置

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410280959.5A CN105227947B (zh) 2014-06-20 2014-06-20 污垢检测方法及装置
CN201410280959.5 2014-06-20

Publications (1)

Publication Number Publication Date
WO2015192579A1 true WO2015192579A1 (zh) 2015-12-23

Family

ID=54934804

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/089499 WO2015192579A1 (zh) 2014-06-20 2014-10-24 污垢检测方法及装置

Country Status (5)

Country Link
US (1) US20170104986A1 (zh)
EP (1) EP3147706A4 (zh)
JP (1) JP2017518544A (zh)
CN (1) CN105227947B (zh)
WO (1) WO2015192579A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110446025A (zh) * 2019-06-25 2019-11-12 盐城华昱光电技术有限公司 应用于电子设备的摄像头模组检测***及方法

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10936884B2 (en) * 2017-01-23 2021-03-02 Magna Electronics Inc. Vehicle vision system with object detection failsafe
CN108668080B (zh) * 2018-06-22 2020-09-08 北京小米移动软件有限公司 提示镜头脏污程度的方法及装置、电子设备
US10686991B2 (en) 2018-09-11 2020-06-16 Sony Corporation Techniques for improving photograph quality for fouled lens or sensor situations
CN109788274B (zh) * 2018-12-19 2020-10-16 努比亚技术有限公司 相机镜片污点检测方法、终端及计算机可读存储介质
CN112242045A (zh) * 2020-12-18 2021-01-19 宁波视控汽车电子有限公司 故障报警方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494743A (zh) * 2008-01-23 2009-07-29 Hoya株式会社 灰尘检测***以及数码相机
CN102685384A (zh) * 2011-02-15 2012-09-19 佳能株式会社 摄像设备
CN103529639A (zh) * 2012-07-03 2014-01-22 歌乐牌株式会社 镜头附着物检测装置、镜头附着物检测方法以及车辆***
US20140028896A1 (en) * 2011-03-30 2014-01-30 Fujifilm Corporation Imaging apparatus and autofocus control method thereof

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2881955B2 (ja) * 1990-05-16 1999-04-12 株式会社ニコン 焦点検出ユニットのための異物検出方法
JP3826878B2 (ja) * 2002-11-19 2006-09-27 コニカミノルタフォトイメージング株式会社 撮像装置
US7295233B2 (en) * 2003-09-30 2007-11-13 Fotonation Vision Limited Detection and removal of blemishes in digital images utilizing original images of defocused scenes
JP4227056B2 (ja) * 2004-03-26 2009-02-18 富士フイルム株式会社 デジタルカメラ
JP2007124351A (ja) * 2005-10-28 2007-05-17 Canon Inc 撮像装置及びその制御方法
JP5078446B2 (ja) * 2007-06-05 2012-11-21 キヤノン株式会社 画像処理装置及びその制御方法及びプログラム
WO2010038223A1 (en) * 2008-10-01 2010-04-08 Hi-Key Limited A method and a system for detecting the presence of an impediment on a lens of an image capture device to light passing through the lens of an image capture device
CN101738824A (zh) * 2008-11-10 2010-06-16 金大凤 照相机模块检测装置的控制方法
JP2011078047A (ja) * 2009-10-02 2011-04-14 Sanyo Electric Co Ltd 撮像装置
JP2011124830A (ja) * 2009-12-11 2011-06-23 Sanyo Electric Co Ltd 撮像装置および異物検出方法
KR101634248B1 (ko) * 2010-03-11 2016-06-28 삼성전자주식회사 디지털 촬영 장치, 그 제어 방법, 및 컴퓨터 판독가능 저장매체
JP2014075724A (ja) * 2012-10-05 2014-04-24 Canon Inc 撮像装置およびその制御方法
US9154697B2 (en) * 2013-12-06 2015-10-06 Google Inc. Camera selection based on occlusion of field of view

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494743A (zh) * 2008-01-23 2009-07-29 Hoya株式会社 灰尘检测***以及数码相机
CN102685384A (zh) * 2011-02-15 2012-09-19 佳能株式会社 摄像设备
US20140028896A1 (en) * 2011-03-30 2014-01-30 Fujifilm Corporation Imaging apparatus and autofocus control method thereof
CN103529639A (zh) * 2012-07-03 2014-01-22 歌乐牌株式会社 镜头附着物检测装置、镜头附着物检测方法以及车辆***

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3147706A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110446025A (zh) * 2019-06-25 2019-11-12 盐城华昱光电技术有限公司 应用于电子设备的摄像头模组检测***及方法

Also Published As

Publication number Publication date
JP2017518544A (ja) 2017-07-06
CN105227947A (zh) 2016-01-06
CN105227947B (zh) 2018-10-26
EP3147706A1 (en) 2017-03-29
EP3147706A4 (en) 2018-05-23
US20170104986A1 (en) 2017-04-13

Similar Documents

Publication Publication Date Title
WO2015192579A1 (zh) 污垢检测方法及装置
CN101334578B (zh) 图像拍摄装置以及图像拍摄方法
WO2015184723A1 (zh) 拍摄控制方法、装置及终端
US10432860B2 (en) Camera operation mode control
US9888176B2 (en) Video apparatus and photography method thereof
US20150116471A1 (en) Method, apparatus and storage medium for passerby detection
CN105827914A (zh) 镜头清理的提示方法及装置
WO2016026465A1 (zh) 拍摄方法、拍摄装置及相应的计算机程序和载体
CN104469001A (zh) 一种具有拍照防抖功能的手机及其在拍照中的防抖方法
WO2016197657A1 (zh) 一种拍照处理方法和装置
WO2017143778A1 (zh) 照片的自动获取方法及装置、电子设备
US7990420B2 (en) Image capturing device and auto-photographing method thereof
WO2017201927A1 (zh) 防炫目方法及装置、投影设备
CN105391935B (zh) 影像撷取装置的控制方法及电子装置
JP5397078B2 (ja) 撮像装置
CN110855897B (zh) 图像拍摄方法、装置、电子设备及存储介质
CN107667522B (zh) 形成活动图像的方法和装置
TWI578780B (zh) 模糊影像偵測方法及其相關攝影機和影像處理系統
WO2018184408A1 (zh) 视频拍摄方法及装置
WO2017114252A1 (zh) 一种采集静态图像的方法及装置
TWI413003B (zh) Face recognition of the automatic camera method
TWI469629B (zh) 啟動自動對焦功能的方法、其電子裝置、儲存媒體,與使用此方法之電腦程式產品
WO2016011876A1 (zh) 物体运动轨迹的拍摄方法及装置
CN205071157U (zh) 检测公交车移动抓拍效果的终端维护装置
US10686991B2 (en) Techniques for improving photograph quality for fouled lens or sensor situations

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14894921

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15316094

Country of ref document: US

ENP Entry into the national phase

Ref document number: 2017518389

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2014894921

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014894921

Country of ref document: EP