CN113141462A - Camera lens contamination processing method, mobile terminal and computer storage medium - Google Patents

Camera lens contamination processing method, mobile terminal and computer storage medium Download PDF

Info

Publication number
CN113141462A
CN113141462A CN202110396393.2A CN202110396393A CN113141462A CN 113141462 A CN113141462 A CN 113141462A CN 202110396393 A CN202110396393 A CN 202110396393A CN 113141462 A CN113141462 A CN 113141462A
Authority
CN
China
Prior art keywords
shooting
lens
camera
dirty
target camera
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.)
Pending
Application number
CN202110396393.2A
Other languages
Chinese (zh)
Inventor
许运生
李鸿
揭应平
孟跃龙
王栋
陈蓉
王智万
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Chuanying Information Technology Co Ltd
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 Shanghai Chuanying Information Technology Co Ltd filed Critical Shanghai Chuanying Information Technology Co Ltd
Priority to CN202110396393.2A priority Critical patent/CN113141462A/en
Publication of CN113141462A publication Critical patent/CN113141462A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • 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/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/81Camera processing pipelines; Components thereof for suppressing or minimising disturbance in the image signal generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The application relates to a camera lens smudging processing method, a mobile terminal and a computer storage medium, wherein the camera lens smudging processing method comprises the following steps: shooting a first image by using a target camera according to a current shooting mode; judging whether the lens of the target camera is dirty or not according to the first image; and if so, executing the pollution processing operation according to the current shooting mode and/or shooting state. Through the mode, the dirt of the camera lens can be found in time and corresponding treatment is carried out, and the shooting effect and efficiency are improved.

Description

Camera lens contamination processing method, mobile terminal and computer storage medium
Technical Field
The application relates to the technical field of cameras, in particular to a camera lens contamination processing method, a mobile terminal and a computer storage medium.
Background
In recent years, smart phones have increasingly powerful functions, become indispensable tools in life of people gradually, and bring great convenience to life of users.
In the course of conceiving and implementing the present application, the inventors found that at least the following problems existed: when a user uses the mobile phone, fingerprints or stains are easy to be left on the lens of the rear camera, and the shooting imaging effect is influenced. Usually, the user can find the fingerprints or the stains only after taking a picture and previewing, and then the lens is cleaned, so that not only is time wasted, but also the best shooting opportunity is probably missed, and the shooting experience is influenced.
The foregoing description is provided for general background information and is not admitted to be prior art.
Disclosure of Invention
In view of the above technical problems, the application provides a camera lens smudging processing method, a mobile terminal and a computer storage medium, which can find the smudging of the camera lens in time and perform corresponding processing, thereby improving the shooting experience.
In order to solve the technical problem, the present application provides a method for treating stains on a lens of a camera, including:
shooting a first image by using a target camera according to a current shooting mode;
judging whether the lens of the target camera is dirty or not according to the first image;
and if so, executing the pollution processing operation according to the current shooting mode and/or shooting state.
Optionally, the capturing the first image by using the target camera according to the current capturing mode includes:
determining a target camera needing to be subjected to lens smudging judgment according to the current shooting mode;
in a preview state, adjusting the focal length of the target camera to align to the surface of a lens of the target camera, and acquiring a preview picture or taking a picture to obtain the first image;
and acquiring the current image shot by the target camera as a first image in a shooting state.
Optionally, the performing a contamination processing operation according to the current shooting mode and/or shooting state includes:
and when the current shooting state is a preview state, marking the dirty position of the lens.
Optionally, the lens is a display screen, and the identifying the dirty position of the lens includes:
displaying an identification of a dirty region on the display screen and/or identifying a location of lens soiling in the first image.
Optionally, displaying on the display screen an identification of a dirty region, including at least one of:
displaying a graph circle on the display screen, and circling out a dirty area on the display screen; or the like, or, alternatively,
displaying an indication arrow on the display screen, pointing to a dirty area on the display screen; or the like, or, alternatively,
and displaying a color changing area on the display screen to cover the dirty area on the display screen.
Optionally, the performing a contamination processing operation according to the current shooting mode and/or shooting state includes:
when the current shooting state is in a preview state, outputting a prompt interface for reminding a user of cleaning dirt, wherein the prompt interface comprises a confirmation option of cleaning operation;
receiving confirmation operation of cleaning completion of the camera;
shooting a second image by using the target camera again;
judging whether the lens of the camera is dirty or not according to the second image;
and if not, entering a shooting preview interface.
Optionally, the performing a contamination processing operation according to the current shooting mode and/or shooting state includes:
if the shooting operation is received in the state that the lens is dirty, the target camera is used for shooting, or another camera is selected for shooting according to the preview picture information and the shooting mode;
and adjusting picture parameters and/or removing dirt of the shooting result according to the shooting effect of the target camera when the target camera is not dirty.
Optionally, the shooting with the target camera or selecting another camera according to the preview picture and the shooting mode includes:
when the dirty area of the lens is larger than or equal to a preset value, another camera is selected for shooting according to preview picture information and a shooting mode, and optionally, the preview picture information comprises at least one of a focus, ambient brightness, ambient color and a shooting target position; and/or the presence of a gas in the gas,
and when the dirty area of the lens is smaller than a preset value, shooting by using the target camera.
Optionally, the performing a contamination processing operation according to the current shooting mode and/or shooting state includes:
when the target camera is in a video mode and in a shooting state, switching the target camera to another camera for shooting to form a coherent video;
and adjusting picture parameters and/or removing dirt of the shot video according to the shooting effect of the target camera when the target camera is not dirty.
Optionally, the method further comprises:
when the camera is switched, switching prompt is carried out on the current shooting picture, and optionally, the switching prompt comprises at least one of start switching prompt, switched duration prompt and switched camera performance prompt;
and when the operation of returning to the target camera is received or the lens of the target camera is judged to be not dirty, the target camera is used for continuously shooting.
Optionally, the performing a contamination processing operation according to the current shooting mode and/or shooting state further includes:
displaying a shooting result before picture parameter adjustment and/or dirt removal processing and a shooting result after the picture parameter adjustment and/or dirt removal processing are/is carried out;
and storing the selected shooting result according to the selection operation, and/or displaying a warning mark of lens contamination during storage.
Optionally, the method further comprises:
if the lens of the target camera is not dirty, shooting a third image by using the target camera;
and storing the third image as a standard image for dirt judgment and/or dirt processing of the current shooting scene.
Optionally, the method further comprises:
if the lens is dirty, accumulating the times of dirt of the area where the dirt position is located for one time;
and reminding the use habit according to the times of dirt in different areas of the lens.
Optionally, the reminding of using habits according to the number of times of smudging of different areas of the lens comprises at least one of the following:
when the smudging times of the edge area of the lens are greater than the smudging times of the central area of the lens and greater than the preset times, displaying a first expression to remind a user habit;
when the smudging times of the central area of the lens are greater than the smudging times of the edge area of the lens and greater than the preset times, displaying a second expression to remind a user habit;
and when the smudging times of different areas of the lens do not reach the preset times, displaying a third expression to remind the user habit.
The application also provides a camera lens smudging treatment method, which comprises the following steps:
when a photographing application is started, a camera is used for photographing the surface of a lens of the camera to obtain a first image;
judging whether the lens of the camera is dirty or not according to the first image;
if so, identifying the dirty position of the lens.
Optionally, the shooting the lens surface of the camera by using the camera to obtain a first image includes:
adjusting the focal length of the camera to align with the lens surface of the camera;
and acquiring a preview picture or taking a picture to obtain the first image.
Optionally, the determining whether a lens of the camera is dirty according to the first image includes:
and comparing the first image with a preset image of a clean lens to judge whether the lens of the camera is dirty or not.
Optionally, the lens is a display screen, and the identifying the dirty position of the lens includes:
and displaying the mark of the dirty area on the display screen.
Optionally, displaying on the display screen an identification of a dirty region, including at least one of:
displaying a graph circle on the display screen, and circling out a dirty area on the display screen; or the like, or, alternatively,
displaying an indication arrow on the display screen, pointing to a dirty area on the display screen; or the like, or, alternatively,
and displaying a color changing area on the display screen to cover the dirty area on the display screen.
Optionally, the identifying the location of the lens smudge comprises:
a location of lens soiling is identified in the first image.
Optionally, the method further comprises:
if the lens is dirty, outputting a prompt interface for reminding a user of cleaning the dirty, wherein the prompt interface comprises a confirmation option of cleaning operation;
receiving confirmation operation of cleaning completion of the camera;
shooting the lens surface of the camera again to obtain a second image;
judging whether the lens of the camera is dirty or not according to the second image;
and if not, entering a shooting preview interface.
Optionally, after the identifying the location of the lens contamination, the method further includes:
if the shooting operation is received in the state that the lens is dirty, shooting is carried out;
and displaying a dirty prompt mark of the lens when the shooting result is stored.
Optionally, after the identifying the location of the lens contamination, the method further includes:
accumulating the times of dirt of the area where the primary dirt position is located;
and reminding the use habit according to the times of dirt in different areas of the lens.
Optionally, the reminding of using habits according to the number of times of smudging of different areas of the lens comprises at least one of the following:
when the smudging times of the edge area of the lens are greater than the smudging times of the central area of the lens and greater than the preset times, displaying a first expression to remind a user habit;
when the smudging times of the central area of the lens are smaller than the smudging times of the edge area of the lens and are larger than the preset times, displaying a second expression to remind a user habit;
and when the smudging times of different areas of the lens do not reach the preset times, displaying a third expression to remind the user habit.
The application also provides a mobile terminal, which comprises a memory and a processor, wherein the memory is used for storing at least one program instruction, and the processor is used for realizing the camera lens smudging treatment method by loading and executing the at least one program instruction.
The present application further provides a computer storage medium having computer program instructions stored thereon; the computer program instructions, when executed by a processor, implement a camera lens smudging treatment method as described in any one of the above.
As described above, according to the camera lens contamination processing method, the mobile terminal, and the computer storage medium of the present application, the target camera is used to capture the first image according to the current capture mode; judging whether the lens of the target camera is dirty or not according to the first image; and if so, executing the pollution processing operation according to the current shooting mode and/or shooting state. Through the mode, the dirt of the camera lens can be found in time and corresponding treatment is carried out, and the shooting effect is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart showing a method for treating contamination of a lens of a camera according to a first embodiment;
fig. 2 is a schematic flow chart showing a method for treating contamination of a lens of a camera according to a second embodiment;
fig. 3 is one of the schematic structural diagrams of a terminal shown according to a fourth embodiment;
fig. 4 is a second schematic structural diagram of the terminal shown in fig. 3.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or apparatus that comprises the element, and further, where similarly-named elements, features, or elements in different embodiments of the disclosure may have the same meaning, or may have different meanings, that particular meaning should be determined by their interpretation in the embodiment or further by context with the embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or," "and/or," "including at least one of the following," and the like, as used herein, are to be construed as inclusive or mean any one or any combination. For example, "includes at least one of: A. b, C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C ", again for example," A, B or C "or" A, B and/or C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C'. An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that, step numbers such as 201, 202 are used herein for the purpose of more clearly and briefly describing the corresponding content, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform 202 first and then 201 in the specific implementation, but these should be within the scope of the present application.
First embodiment
Fig. 1 is a schematic flow chart illustrating a method for treating contamination of a lens of a camera according to a first embodiment. Referring to fig. 1, the present application provides a method for treating smudged lens of a camera, including:
step 201, shooting a first image by using a target camera according to a current shooting mode;
step 202, judging whether a lens of a target camera is dirty or not according to the first image;
and 203, if so, executing the contamination processing operation according to the current shooting mode and/or shooting state.
In this embodiment, the target camera is used to capture the first image according to the current shooting mode, when the shooting mode is self-timer shooting, the front camera is used to capture the first image, and when the other shooting modes are self-timer shooting, the rear camera is used to capture the first image, and when the rear camera is used to capture, the rear main shooting or the sub-shooting can be determined according to the shooting scene, which is not limited in this embodiment. When shooting, the lens of the target camera has fingerprint, oil stain, water stain, sheltered and the like, and the lens is considered to have dirt, and the dirt trace can be displayed on the shot first image. And when the first image is dirty, executing corresponding dirty processing operation according to the current shooting mode or shooting state. For example, a first image in a self-timer mode has a dirty trace, and the dirty trace can be identified to remind a user, so that the shooting effect of the target camera is improved.
In step 201, when the target camera is used to capture the first image in the current capture mode, the target camera that needs to be subjected to the lens contamination determination may be determined according to the current capture mode. Then, in a preview state, the focal length of the target camera can be adjusted to align to the lens surface of the target camera, and a preview picture is obtained or a picture is taken to obtain a first image. And in the shooting state, the focal length of the target camera is not adjusted, and the image currently shot by the target camera is acquired as a first image.
In step 202, when the first image is used to determine whether the lens of the target camera is dirty, the first image is compared with an image captured when the lens of the target camera is clean, and whether the target camera capturing the first image is dirty is determined. Optionally, an image shot when the lens of the target camera is clean may be collected when the mobile terminal leaves a factory, and if the lens of the target camera is not dirty, the image shot by using the target camera is stored as a standard image for dirty judgment and/or dirty processing of the current shooting scene, so that the dirty detection speed and accuracy of the camera are improved. During actual implementation, whether the lens of the target camera is dirty or not is judged, and the dirt can be detected by carrying out image recognition on the first image according to preset dirt characteristics such as fingerprints, oil stains, water stains, light transmittance and the like.
In step 203, when the contamination processing operation is executed according to the current shooting mode and/or shooting state, if the current shooting state is in the preview state, a prompt interface for prompting the user to clean the contamination may be output, where the prompt interface includes a confirmation option of the cleaning operation. The user can clean the lens of target camera according to the dirty warning of cleanness, clicks clean operation after the cleanness is accomplished and confirms the option. And after the mobile terminal receives the confirmation operation of the cleaning completion of the camera, shooting a second image by using the target camera again. And judging whether the lens of the camera is dirty or not according to the second image, if not, entering a shooting preview interface, and/or if so, repeating the steps and reminding the user to clean again. In other embodiments, the prompt interface may not include a confirmation selection of the cleaning operation, but only perform a prompt or an identification on the dirty camera, and perform the dirty detection again when the target camera is activated for shooting next time.
Or, when the contamination processing operation is executed according to the current shooting mode and/or shooting state, if the current shooting state is the preview state, the position of the contamination of the lens is identified in the preview picture, and meanwhile, the name of the target camera, such as a front-facing camera, a rear-facing main camera or a rear-facing sub camera, can also be identified in the preview picture, so as to improve the user experience. When dirty sign appears in the preview picture, mobile terminal can send out warning sound such as buzzing along with, is convenient for realize the dirty warning of camera when environment that light is darker or user's eyesight is not good. In addition, if the lens of target camera is the display screen, for example, when the back shot is camera under the screen, can mark the dirty position of lens in first image, also can directly mark dirty position at the lens surface, more directly perceived accuracy, convenience of customers is clean. The mark of the dirty area displayed on the display screen can be displayed as a graph ring, and the dirty area on the display screen is circled; an indication arrow can also be displayed on the display screen and points to the dirty area on the display screen; in other embodiments, the color-changing area can be displayed on the display screen to cover the dirty area on the display screen, so that the identification degree of the dirty position on the display screen is improved.
Or, when the dirt processing operation is executed according to the current shooting mode and/or shooting state, if the shooting operation is received in the dirty state of the lens, the target camera can be used for continuously shooting, then the dirt is removed by performing post processing on the dirty position in the shot image, and the imaging effect is ensured to be clear. And for example, when the rear main camera is used for shooting, if the dirt exists on the lens of the rear main camera, the shooting is automatically switched to the rear auxiliary camera for shooting. When the imaging effects of the main shooting and the auxiliary shooting are different, picture parameters of the shot image of the auxiliary shooting are adjusted according to the shooting effect when the main shooting is not dirty, so that the imaging effects of the main shooting and the auxiliary shooting are consistent. And when judging whether the target camera is used for continuously shooting or another camera is selected for shooting according to the preview picture and the shooting mode, if the dirty area of the lens is larger than or equal to the preset value, another camera is selected for shooting according to the preview picture information and the shooting mode. The preset value may be a ratio of the dirty area to the whole lens, such as 30% to 50%, optionally, the preview image information includes a focus, an ambient brightness, an ambient color, a shooting target position, and the like, and then another camera may be selected to continue shooting in combination with the preview image information and the shooting mode, and a more ideal shooting effect is obtained. And/or when the dirty area of the lens is smaller than the preset value, the influence of the dirt on the shot picture is small or the shot picture is easy to repair, and then the target camera can be used for shooting continuously.
When the contamination processing operation is executed according to the current shooting mode and/or shooting state, if the current shooting mode and shooting state are in the video mode, in order to avoid the contamination of the lens of the target camera from affecting the imaging image quality or interrupting the shooting, the target camera can be switched to another camera for shooting so as to form a coherent video. And after the target camera is cleaned, continuously switching back to the target camera for video shooting. Of course, the target camera can be continuously used for shooting the video when the dirt is not processed, and then the picture parameter adjustment or the dirt removing processing is carried out on the shot video according to the shooting effect of the target camera when the dirt is not processed. After the cameras are switched, switching prompts are carried out on the current shooting picture, and optionally, the switching prompts comprise a start switching prompt, a switched time length prompt, a switched camera performance prompt and the like, so that a user can know the condition after the cameras are switched and make a selection of continuing shooting or stopping shooting. After the camera is switched, the target camera can be returned, and when the operation of returning to the target camera is received or the lens of the target camera is judged to be not dirty, the target camera is used for continuously shooting.
If shooting is carried out under the condition that the lens is dirty, after the shooting is finished, a shooting result before picture parameter adjustment and/or dirt removal processing is carried out and a shooting result after the picture parameter adjustment and/or dirt removal processing is carried out are displayed, the selected shooting result is stored according to selection operation, and/or a prompt mark of the dirt of the lens is displayed during storage, so that whether the processed shooting result or the unprocessed shooting result is stored, the currently stored shooting result can be prompted to be shot under the condition that the lens is dirty, and reference is provided for a user to the effect of the shooting result.
According to the method for processing the dirtiness of the lens of the camera, a target camera is used for shooting a first image according to a current shooting mode; judging whether the lens of the target camera is dirty or not according to the first image; and if so, executing the pollution processing operation according to the current shooting mode and/or shooting state. Through the mode, the dirt of the camera lens can be found in time and corresponding processing is carried out, the shooting effect and the shooting efficiency are improved, and the shooting experience is good.
Second embodiment
Fig. 2 is a flowchart illustrating a method for treating contamination of a lens of a camera according to a second embodiment. Referring to fig. 2, the method for processing smudged lens of a camera according to the embodiment of the present application further includes:
step 301, if the lens is dirty, accumulating the number of times of dirt of the area where the dirty position is located;
and step 302, reminding the use habit according to the smudging times of different areas of the lens.
In this embodiment, the number of times of soiling in different areas of the lens is counted, and the camera use habit information is generated according to the number of times of soiling in different areas of the lens and sent to the user, so as to remind the user of paying attention to the use habit or cleaning at regular intervals, and the reminding can be performed on a preview picture in real time while detecting soiling. Optionally, when the number of times of soiling in the edge area of the lens is greater than the number of times of soiling in the center area of the lens, and is greater than a preset number of times, displaying the first expression to remind the user of the habit. And when the smudging times of the central area of the lens are greater than the smudging times of the edge area of the lens and greater than the preset times, displaying the second expression to remind the user habit. When the smudging number of times of the different regions of the lens does not reach the preset number of times, the third expression is displayed to remind the user of the habit. Optionally, the emotion represented by the third expression is more moderate than the emotions of the first expression and the second expression, for example, smiling or praise, the emotion of the first expression is more moderate than the emotion of the second expression, for example, inattention or disappointment, and the second expression is angry, so that the influence degree of dirt on the shooting effect can be intuitively expressed through different expressions, and the purpose of reminding the use habit is achieved.
Third embodiment
The embodiment of the application further provides a method for processing the dirt of the lens of the camera, which comprises the following steps:
when a photographing application is started, a camera is used for photographing the surface of a lens of the camera to obtain a first image;
judging whether the lens of the camera is dirty or not according to the first image;
if so, identifying the dirty position of the lens.
Optionally, the shooting the lens surface of the camera by using the camera to obtain a first image includes:
adjusting the focal length of the camera to align with the lens surface of the camera;
and acquiring a preview picture or taking a picture to obtain the first image.
Optionally, the determining whether a lens of the camera is dirty according to the first image includes:
and comparing the first image with a preset image of a clean lens to judge whether the lens of the camera is dirty or not.
Optionally, the lens is a display screen, and the identifying the dirty position of the lens includes:
and displaying the mark of the dirty area on the display screen.
Optionally, displaying on the display screen an identification of a dirty region, including at least one of:
displaying a graph circle on the display screen, and circling out a dirty area on the display screen; or the like, or, alternatively,
displaying an indication arrow on the display screen, pointing to a dirty area on the display screen; or the like, or, alternatively,
and displaying a color changing area on the display screen to cover the dirty area on the display screen.
Optionally, the identifying the location of the lens smudge comprises:
a location of lens soiling is identified in the first image.
Optionally, the method further comprises:
if the lens is dirty, outputting a prompt interface for reminding a user of cleaning the dirty, wherein the prompt interface comprises a confirmation option of cleaning operation;
receiving confirmation operation of cleaning completion of the camera;
shooting the lens surface of the camera again to obtain a second image;
judging whether the lens of the camera is dirty or not according to the second image;
and if not, entering a shooting preview interface.
Optionally, after the identifying the location of the lens contamination, the method further includes:
if the shooting operation is received in the state that the lens is dirty, shooting is carried out;
and displaying a dirty prompt mark of the lens when the shooting result is stored.
Optionally, after the identifying the location of the lens contamination, the method further includes:
accumulating the times of dirt of the area where the primary dirt position is located;
and reminding the use habit according to the times of dirt in different areas of the lens.
Optionally, the reminding of using habits according to the number of times of smudging of different areas of the lens comprises at least one of the following:
when the smudging times of the edge area of the lens are greater than the smudging times of the central area of the lens and greater than the preset times, displaying a first expression to remind a user habit;
when the smudging times of the central area of the lens are smaller than the smudging times of the edge area of the lens and are larger than the preset times, displaying a second expression to remind a user habit;
and when the smudging times of different areas of the lens do not reach the preset times, displaying a third expression to remind the user habit.
Fourth embodiment
Fig. 3 is one of the structural diagrams of the mobile terminal shown according to the fourth embodiment. Referring to fig. 3, the mobile terminal 10 of the present embodiment includes a memory 102 and a processor 106, the memory 102 is used for storing at least one program instruction, and the processor 106 is used for implementing the method for processing the dirty lens of the camera lens according to the first to third embodiments by loading and executing the at least one program instruction.
Referring to fig. 4, in actual implementation, the mobile terminal 10 includes a memory 102, a storage controller 104, one or more (only one shown) processors 106, a peripheral interface 108, a radio frequency module 150, a positioning module 112, a camera module 114, an audio module 116, a screen 118, and a key module 160. These components communicate with each other via one or more communication buses/signal lines 122.
It will be appreciated that the configuration shown in FIG. 4 is merely exemplary, and that the mobile terminal 10 may include more or fewer components than shown in FIG. 4, or may have a different configuration than shown in FIG. 4. The components shown in fig. 4 may be implemented in hardware, software, or a combination thereof.
The memory 102 can be used to store software programs and modules, such as program instructions/modules corresponding to the method for treating the contamination of the lens of the camera in the embodiment of the present application, and the processor 106 executes various functional applications and data processing by running the software programs and modules stored in the storage controller 104, that is, the method for treating the contamination of the lens of the camera is implemented.
The memory 102 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 102 may further include memory located remotely from the processor 106, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. Access to the memory 102 by the processor 106, and possibly other components, may be under the control of the memory controller 104.
Peripheral interface 108 couples various input/output devices to the CPU and memory 102. The processor 106 executes various software, instructions within the memory 102 to perform various functions of the mobile terminal 10 and data processing.
In some embodiments, the peripheral interface 108, the processor 106, and the memory controller 104 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The rf module 150 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. Rf module 150 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The rf module 150 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), bluetooth, Wireless Fidelity (WiFi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.1 g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave for Access, Access to Wireless, Max), and any other suitable Communication protocols for short message Communication, and may even include those protocols that have not yet been developed.
The location module 112 is used to obtain the current location of the mobile terminal 10. Examples of the positioning module 112 include, but are not limited to, a global positioning satellite system (GPS), a wireless local area network-based positioning technology, or a mobile communication network-based positioning technology.
The camera module 114 is used to take a picture or video. The pictures or videos taken may be stored in the memory 102 and transmitted through the radio frequency module 150.
Audio module 116 provides an audio interface to a user that may include one or more microphones, one or more speakers, and audio circuitry. The audio circuitry receives audio data from the peripheral interface 108, converts the audio data to electrical information, and transmits the electrical information to the speaker. The speaker converts the electrical information into sound waves that the human ear can hear. The audio circuitry also receives electrical information from the microphone, converts the electrical information to voice data, and transmits the voice data to the peripheral interface 108 for further processing. The audio data may be retrieved from the memory 102 or through the radio frequency module 150. In addition, the audio data may also be stored in the memory 102 or transmitted through the radio frequency module 150. In some examples, the audio module 116 may also include an earphone jack for providing an audio interface to a headset or other device.
The screen 118 provides an output interface between the mobile terminal 10 and the user. Optionally, screen 118 displays video output to the user, the content of which may include text, graphics, video, and any combination thereof. Some of the output results are for some of the user interface objects. It is understood that the screen 118 may also include a touch screen. The touch screen provides both an output and an input interface between the mobile terminal 10 and a user. In addition to displaying video output to users, touch screens also receive user input, such as user clicks, swipes, and other gesture operations, so that user interface objects respond to these user input. The technique of detecting user input may be based on resistive, capacitive, or any other possible touch detection technique. Specific examples of touch screen display units include, but are not limited to, liquid crystal displays or light emitting polymer displays.
The key module 160 also provides an interface for user input to the mobile terminal 10, and the user may cause the mobile terminal 10 to perform different functions by pressing different keys.
The present application further provides a computer storage medium having computer program instructions stored thereon; the computer program instructions, when executed by the processor, implement the camera lens smudge processing method according to the first to third embodiments.
In practical implementation, the computer storage medium is applied to the terminal shown in fig. 3 or fig. 4, so that the dirt of the lens of the camera can be found in time and corresponding processing is performed, and the shooting effect and the shooting efficiency are improved.
Embodiments of the present application also provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method in the above various possible embodiments.
Embodiments of the present application further provide a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the method in the above various possible embodiments.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the present application, the same or similar term concepts, technical solutions and/or application scenario descriptions will be generally described only in detail at the first occurrence, and when the description is repeated later, the detailed description will not be repeated in general for brevity, and when understanding the technical solutions and the like of the present application, reference may be made to the related detailed description before the description for the same or similar term concepts, technical solutions and/or application scenario descriptions and the like which are not described in detail later.
In the present application, each embodiment is described with emphasis, and reference may be made to the description of other embodiments for parts that are not described or illustrated in any embodiment.
The technical features of the technical solution of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, the scope of the present application should be considered as being described in the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (16)

1. A method for processing dirt on a lens of a camera is characterized by comprising the following steps:
shooting a first image by using a target camera according to a current shooting mode;
judging whether the lens of the target camera is dirty or not according to the first image;
and if so, executing the pollution processing operation according to the current shooting mode and/or shooting state.
2. The method of claim 1, wherein capturing the first image using the target camera according to the current capture mode comprises:
determining a target camera needing to be subjected to lens smudging judgment according to the current shooting mode;
in a preview state, adjusting the focal length of the target camera to align to the surface of a lens of the target camera, and acquiring a preview picture or taking a picture to obtain the first image;
and acquiring the current image shot by the target camera as a first image in a shooting state.
3. The method according to claim 1, wherein the performing a stain processing operation according to the current photographing mode and/or photographing state comprises:
and when the current shooting state is a preview state, marking the dirty position of the lens.
4. The method of claim 3, wherein the lens is a display screen, and the identifying the location of the lens contamination comprises:
displaying an identification of a dirty region on the display screen and/or identifying a location of lens soiling in the first image.
5. The method of claim 4, wherein displaying an identification of a dirty region on the display screen comprises at least one of:
displaying a graph circle on the display screen, and circling out a dirty area on the display screen;
displaying an indication arrow on the display screen, pointing to a dirty area on the display screen;
and displaying a color changing area on the display screen to cover the dirty area on the display screen.
6. The method according to claim 1, wherein the performing a stain processing operation according to the current photographing mode and/or photographing state comprises:
when the current shooting state is in a preview state, outputting a prompt interface for reminding a user of cleaning dirt, wherein the prompt interface comprises a confirmation option of cleaning operation;
receiving confirmation operation of cleaning completion of the camera;
shooting a second image by using the target camera again;
judging whether the lens of the camera is dirty or not according to the second image;
and if not, entering a shooting preview interface.
7. The method according to any one of claims 1 to 6, wherein the performing a stain processing operation according to the current photographing mode and/or photographing state comprises:
if the shooting operation is received in the state that the lens is dirty, the target camera is used for shooting, or another camera is selected for shooting according to the preview picture information and the shooting mode;
and adjusting picture parameters and/or removing dirt of the shooting result according to the shooting effect of the target camera when the target camera is not dirty.
8. The method according to claim 7, wherein the using the target camera for shooting or selecting another camera for shooting according to a preview picture and a shooting mode comprises:
when the dirty area of the lens is larger than or equal to a preset value, another camera is selected for shooting according to the preview picture information and the shooting mode; and/or the presence of a gas in the gas,
and when the dirty area of the lens is smaller than a preset value, shooting by using the target camera.
9. The method according to any one of claims 1 to 6, wherein the performing a stain processing operation according to the current photographing mode and/or photographing state comprises:
when the target camera is in a video mode and in a shooting state, switching the target camera to another camera for shooting to form a coherent video;
and adjusting picture parameters and/or removing dirt of the shot video according to the shooting effect of the target camera when the target camera is not dirty.
10. The method of any one of claims 1 to 6, further comprising:
when the camera is switched, switching prompt is carried out on the current shooting picture;
and when the operation of returning to the target camera is received or the lens of the target camera is judged to be not dirty, the target camera is used for continuously shooting.
11. The method according to any one of claims 1 to 6, wherein the performing a stain processing operation according to the current photographing mode and/or photographing state further comprises:
displaying a shooting result before picture parameter adjustment and/or dirt removal processing and a shooting result after the picture parameter adjustment and/or dirt removal processing are/is carried out;
and storing the selected shooting result according to the selection operation, and/or displaying a warning mark of lens contamination during storage.
12. The method of any one of claims 1 to 6, further comprising:
if the lens of the target camera is not dirty, shooting a third image by using the target camera;
and storing the third image as a standard image for dirt judgment and/or dirt processing of the current shooting scene.
13. The method of any one of claims 1 to 6, further comprising:
if the lens is dirty, accumulating the times of dirt of the area where the dirt position is located for one time;
and reminding the use habit according to the times of dirt in different areas of the lens.
14. The method according to any one of claims 1 to 6, wherein the reminding of usage habits according to the number of smudging of different areas of the lens comprises at least one of:
when the smudging times of the edge area of the lens are greater than the smudging times of the central area of the lens and greater than the preset times, displaying a first expression to remind a user habit;
when the smudging times of the central area of the lens are greater than the smudging times of the edge area of the lens and greater than the preset times, displaying a second expression to remind a user habit;
and when the smudging times of different areas of the lens do not reach the preset times, displaying a third expression to remind the user habit.
15. A mobile terminal, characterized by comprising a memory for storing at least one program instruction and a processor for implementing the camera lens smudge processing method according to any one of claims 1 to 14 by loading and executing the at least one program instruction.
16. A computer storage medium having computer program instructions stored thereon; the computer program instructions, when executed by a processor, implement a camera lens smudge treatment method according to any one of claims 1 to 14.
CN202110396393.2A 2021-04-13 2021-04-13 Camera lens contamination processing method, mobile terminal and computer storage medium Pending CN113141462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110396393.2A CN113141462A (en) 2021-04-13 2021-04-13 Camera lens contamination processing method, mobile terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110396393.2A CN113141462A (en) 2021-04-13 2021-04-13 Camera lens contamination processing method, mobile terminal and computer storage medium

Publications (1)

Publication Number Publication Date
CN113141462A true CN113141462A (en) 2021-07-20

Family

ID=76811945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110396393.2A Pending CN113141462A (en) 2021-04-13 2021-04-13 Camera lens contamination processing method, mobile terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN113141462A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023029633A1 (en) * 2021-09-01 2023-03-09 寒武纪行歌(南京)科技有限公司 Camera cleaning control method and apparatus, device, and system
CN115880238A (en) * 2022-12-01 2023-03-31 华瑞研能科技(深圳)有限公司 Artificial intelligence picture stain processing method and device
CN116156307A (en) * 2021-11-16 2023-05-23 中移(上海)信息通信科技有限公司 Camera cleaning method, device and equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023029633A1 (en) * 2021-09-01 2023-03-09 寒武纪行歌(南京)科技有限公司 Camera cleaning control method and apparatus, device, and system
CN116156307A (en) * 2021-11-16 2023-05-23 中移(上海)信息通信科技有限公司 Camera cleaning method, device and equipment
CN115880238A (en) * 2022-12-01 2023-03-31 华瑞研能科技(深圳)有限公司 Artificial intelligence picture stain processing method and device
CN115880238B (en) * 2022-12-01 2023-08-15 华瑞研能科技(深圳)有限公司 Artificial intelligence picture stain processing method and device

Similar Documents

Publication Publication Date Title
CN106557768B (en) Method and device for recognizing characters in picture
CN113141462A (en) Camera lens contamination processing method, mobile terminal and computer storage medium
US10452890B2 (en) Fingerprint template input method, device and medium
CN111340731B (en) Image processing method and device, electronic equipment and storage medium
CN108668080B (en) Method and device for prompting degree of dirt of lens and electronic equipment
CN105631803B (en) The method and apparatus of filter processing
US20220188982A1 (en) Image reconstruction method and device, electronic device, and storage medium
CN107613208B (en) Focusing area adjusting method, terminal and computer storage medium
CN108416337A (en) User is reminded to clean the method and device of camera lens
CN111523346B (en) Image recognition method and device, electronic equipment and storage medium
CN109509195B (en) Foreground processing method and device, electronic equipment and storage medium
CN114500821B (en) Photographing method and device, terminal and storage medium
CN112927122A (en) Watermark removing method, device and storage medium
CN107507128B (en) Image processing method and apparatus
CN112200040A (en) Occlusion image detection method, device and medium
CN110266914B (en) Image shooting method, device and computer readable storage medium
CN110363702B (en) Image processing method and related product
CN109561255B (en) Terminal photographing method and device and storage medium
CN103179349A (en) Automatic photographing method and device
CN107992894B (en) Image recognition method, image recognition device and computer-readable storage medium
CN116188343B (en) Image fusion method and device, electronic equipment, chip and medium
US20160248986A1 (en) Digital cameras having reduced startup time, and related devices, methods, and computer program products
CN108647594B (en) Information processing method and device
CN111866384B (en) Shooting control method, mobile terminal and computer storage medium
CN114338956B (en) Image processing method, image processing apparatus, and storage medium

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