CN107743224A - The dirty based reminding method of camera lens, system, readable storage medium storing program for executing and mobile terminal - Google Patents

The dirty based reminding method of camera lens, system, readable storage medium storing program for executing and mobile terminal Download PDF

Info

Publication number
CN107743224A
CN107743224A CN201710917187.5A CN201710917187A CN107743224A CN 107743224 A CN107743224 A CN 107743224A CN 201710917187 A CN201710917187 A CN 201710917187A CN 107743224 A CN107743224 A CN 107743224A
Authority
CN
China
Prior art keywords
camera lens
dirty
value
target
prompting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710917187.5A
Other languages
Chinese (zh)
Other versions
CN107743224B (en
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.)
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Qiku Internet Technology Shenzhen 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 Qiku Internet Technology Shenzhen Co Ltd filed Critical Qiku Internet Technology Shenzhen Co Ltd
Priority to CN201710917187.5A priority Critical patent/CN107743224B/en
Publication of CN107743224A publication Critical patent/CN107743224A/en
Application granted granted Critical
Publication of CN107743224B publication Critical patent/CN107743224B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera

Abstract

The present invention provides a kind of camera lens dirty based reminding method, system, readable storage medium storing program for executing and mobile terminal, and methods described includes:The target gray value of predeterminable area in current taken image is obtained, the current taken image is via the lens shooting;Obtain the target light exposure value in the current taken image;Judge whether the target gray value is located at corresponding to the target light exposure value in the range of gray threshold;If it is not, prompting is then sent, it is dirty to remind camera lens described in user to exist.Camera lens among the present invention dirty based reminding method, system, readable storage medium storing program for executing and mobile terminal, can automatic identification camera lens with the presence or absence of dirty, and can exist it is dirty in the case of, automatically prompting user, so that user is without frequently checking whether camera lens is dirty, experience, and accuracy of identification is high.

Description

The dirty based reminding method of camera lens, system, readable storage medium storing program for executing and mobile terminal
Technical field
The present invention relates to a kind of dirty based reminding method of camera lens, system, readable storage medium storing program for executing and mobile terminal.
Background technology
With the continuous improvement of people's living standards, mobile terminal is constantly being popularized, such as mobile phone, flat board, computer, take the photograph Camera etc..Current almost all of smart machine is all integrated with pick-up lens, to realize the camera function of the equipment.
Some electronics firms at present, often receive the bad throwing of effect of taking pictures for the mobile terminal that user produces to it Tell, among these complaints, a big chunk reason be due to exist on camera lens it is dirty caused by, and not camera lens There is problem in quality, great puzzlement is caused to user and manufacturer.
Above-mentioned in order to solve the problems, such as among prior art, manufacturer generally informs that user pays attention to cleaning camera lens at any time On it is dirty so that user must not infrequently check whether camera lens dirty, cause poor user experience, while artificially exist to camera lens Dirty differentiation, inaccurate, low precision.
The content of the invention
Based on this, it is an object of the invention to provide a kind of dirty based reminding method of camera lens, system, readable storage medium storing program for executing and shifting Dynamic terminal, it is whether dirty with automatic decision camera lens, so as to realize when camera lens has dirty, automatically prompting user.
A kind of dirty based reminding method of camera lens according to embodiments of the present invention, including:
The target gray value of predeterminable area in current taken image is obtained, the current taken image is clapped via the camera lens Take the photograph to obtain;
Obtain the target light exposure value of the current taken image;And
Judge whether the target gray value is located at corresponding to the target light exposure value in the range of gray threshold;
If it is not, prompting message is then sent, it is dirty to remind camera lens described in user to exist.
In addition, the based reminding method that a kind of camera lens according to the above embodiment of the present invention is dirty, can also have following additional Technical characteristic:
Further, the predeterminable area is hair zones, the target for obtaining predeterminable area in current taken image The step of gray value, includes:
According to face recognition algorithms, the hair zones in the current taken image are extracted;
The gray value of each pixel in the hair zones is subjected to mean value calculation, to obtain the target gray Value.
Further, it is described to judge whether the target gray value is located at gray threshold model corresponding to the target light exposure value Step in enclosing includes:
According to the target light exposure value, the gray threshold corresponding with the target light exposure value is inquired about among mapping table Scope;
Judge the target gray value whether in the range of the gray threshold.
Further, before the camera lens dispatches from the factory, in addition to:
The test image for the preset number that the camera lens is shot under multiple photographed scenes is obtained respectively;
Obtain respectively every test image exposure value and every test image described in predeterminable area ash Angle value, to obtain camera lens ash of the exposure value scope of shooting image and the predeterminable area under each photographed scene Angle value scope;
Using the intensity value ranges as the gray threshold scope corresponding to the exposure value scope, and together as pair The information for the photographed scene answered is pre-stored among the mapping table.
Further, the camera lens is installed on mobile terminal, and described the step of sending prompting message includes:
Default prompting message is obtained, and the default prompting message is shown in the mobile terminal in a manner of playing frame On display screen.
Further, triggering is provided with the prompting frame where the default prompting message and shows icon, described by described in Default prompting message is shown in a manner of playing frame after the step on the display screen of the mobile terminal, in addition to:
When receiving the triggering and showing the click signal of icon, dirty processing information is obtained, and by the dirty place Presentation of information is managed in the lower section of the default prompting message, the dirty processing information includes being used to instruct user to the camera lens The dirty operating procedure handled;
The size of the prompting frame is adjusted, so that the dirty processing information is shown in the prompting frame.
Further, also include after described the step of sending prompting message:
The time of the currently transmitted prompting message is recorded, and is calculated away from the last time for sending the prompting message Interval;
The prompting message is sent automatically at interval of the time interval.
A kind of dirty system for prompting of camera lens according to embodiments of the present invention, including:
Gray value acquisition module, for obtaining the target gray value of predeterminable area in current taken image, the current bat Image is taken the photograph to obtain via the lens shooting;
Exposure value acquisition module, for obtaining the target light exposure value in the current taken image;
Gray value judge module, for judging whether the target gray value is located at gray scale corresponding to the target light exposure value In threshold range;And
Prompting module, for when determining the target gray value not in the range of the gray threshold, sending and carrying Awake information, it is dirty to remind camera lens described in user to exist.
The present invention also proposes a kind of computer-readable recording medium, is stored thereon with computer program, the program is processed Device realizes the dirty based reminding method of camera lens described above when performing.
The present invention also proposes a kind of mobile terminal, including memory, processor and storage on a memory and can located The computer program that runs on reason device, camera lens described above dirty prompting side is realized during the computing device described program Method.
The dirty based reminding method of above-mentioned camera lens, system, readable storage medium storing program for executing and mobile terminal, by pre-setting each bat Take the photograph under scene, camera lens without it is dirty when shooting image in predeterminable area gray threshold scope, and in real time obtain camera lens current shooting The target light exposure value of image and the target gray value of predeterminable area, and match by target light exposure value the current shooting of camera lens Scene, and according to present filming scene come obtain camera lens without it is dirty when shooting image gray threshold scope, then judge target Gray value, if then representing camera lens without dirty, does not send prompting, if otherwise representing mirror whether in the range of the gray threshold of acquisition Head exists dirty, and sends prompting automatically, exists with automatically prompting user camera lens dirty.Therefore the dirty prompting side of the camera lens Method, system, readable storage medium storing program for executing and mobile terminal, its can automatic identification camera lens with the presence or absence of dirty, and can recognize When having dirty, automatically prompting user so that user is without frequently checking whether camera lens is dirty, experiences, and accuracy of identification is high.
Brief description of the drawings
Fig. 1 is the flow chart of the dirty based reminding method of the camera lens in first embodiment of the invention;
Fig. 2 is the flow chart of the dirty based reminding method of the camera lens in second embodiment of the invention;
Fig. 3 is the illustration figure that prompting message bullet frame is shown in second embodiment of the invention;
Fig. 4 is the illustration figure that dirty processing information is shown in second embodiment of the invention;
Fig. 5 is the flow chart of the dirty based reminding method of the camera lens in third embodiment of the invention;
Fig. 6 is the structural representation of the dirty system for prompting of the camera lens in fourth embodiment of the invention.
Main element symbol description:
Gray value acquisition module 11 Exposure value acquisition module 12
Gray value judge module 13 Prompting module 14
Hair zones extraction unit 111 Gray value acquiring unit 112
Reminding unit 141 Hiding information display unit 142
Prompting frame adjustment unit 143 Time computing module 18
Threshold range query unit 131 Gray value judging unit 132
Test image acquisition module 15 Test image processing module 16
Pre-storing module of information 17
Detailed description below will combine above-mentioned accompanying drawing and further illustrate the present invention.
Embodiment
For the ease of understanding the present invention, the present invention is described more fully below with reference to relevant drawings.In accompanying drawing Give some embodiments of the present invention.But the present invention can realize in many different forms, however it is not limited to this paper institutes The embodiment of description.On the contrary, the purpose for providing these embodiments is made to the disclosure more thorough and comprehensive.
It should be noted that when element is referred to as " being fixedly arranged on " another element, it can be directly on another element Or there may also be element placed in the middle.When an element is considered as " connection " another element, it can be directly connected to To another element or it may be simultaneously present centering elements.Term as used herein " vertical ", " horizontal ", " left side ", " right side " and similar statement are for illustrative purposes only.
Unless otherwise defined, all of technologies and scientific terms used here by the article is with belonging to technical field of the invention The implication that technical staff is generally understood that is identical.Term used in the description of the invention herein is intended merely to description tool The purpose of the embodiment of body, it is not intended that in the limitation present invention.Term as used herein " and/or " include one or more phases The arbitrary and all combination of the Listed Items of pass.
Referring to Fig. 1, the based reminding method that the camera lens showing in first embodiment of the invention is dirty, including step S01 is extremely Step S03.
Step S01, by lens shooting image, and obtain the target gray value of predeterminable area in current taken image.
Wherein, the predeterminable area is to pre-set the designated area for the dirty discriminance analysis of camera lens, in this implementation In example, what camera lens was carried out is the image taking of head part, and the designated area can be face area, hair zones etc..When selected When hair zones are as the predeterminable area, in each shooting image, hair zones are acquired target gray value, for Follow-up dirty discriminance analysis.In other embodiments, target gray value can also be by inquiring about the information of shooting image Means and obtain.
Step S02, obtain the target light exposure value in the current taken image.
Wherein, exposure value can be obtained by existing image processing algorithm.In some embodiments, exposure value can also Obtained by the means for the information for inquiring about shooting image.
Step S03, judges whether the target gray value is located at corresponding to the target light exposure value in the range of gray threshold.
Wherein, under photographed scene corresponding to the target light exposure value, the gray threshold scope be camera lens without it is dirty when The normal fluctuation range of predeterminable area gray value described in shooting image.
It is pointed out that exposure value directly reflects the photographed scene of shooting image, and different photographed scenes (as it is outdoor, Interior, half-light etc.) under in the image shot, there is some difference for the intensity value ranges of the predeterminable area.It is just because of specific Certain corresponding relation be present between exposure value and intensity value ranges under photographed scene, by the target light exposure value can with The photographed scene of the current taken image is fitted on, and then obtains the gray threshold scope corresponding to the photographed scene.
When it is implemented, can before dispatching from the factory or confirm camera lens it is spotless in the case of, can beforehand through experiment distinguish The exposure value for every image that the camera lens is shot under different photographed scenes and the gray value of the predeterminable area are gathered, with To the camera lens under each photographed scene the intensity value ranges of the particular exposure value scope of shooting image and the predeterminable area, Dirty due to being not present before dispatching from the factory, on the camera lens, the intensity value ranges of acquisition are to be shot under corresponding photographed scene The gray value normal fluctuation range of predeterminable area described in image, then using the intensity value ranges as corresponding to photographed scene Gray threshold scope, and be together pre-stored with corresponding exposure value scope.
Therefore, by whether judging the target gray value corresponding to the target light exposure value in the range of gray threshold, It can judge the camera lens currently with the presence or absence of dirty.
Wherein, it is located at the ash corresponding to the target light exposure value when the step S03 determines the target gray value When spending in threshold range, the camera lens is represented without dirty, then continues to monitor, when the step S03 determines the target gray When value is not located at corresponding to the target light exposure value in the range of the gray threshold, representing the camera lens has dirty, then performs step Rapid S04.
Step S04, sends prompting message, dirty to remind camera lens described in user to exist.
Wherein, the mode that sends of the prompting message includes but is not limited to play frame and shows, language report, SMS notification, shakes Dynamic prompting etc..
To sum up, the dirty based reminding method of camera lens among the above embodiment of the present invention, by pre-setting each shooting field Under scape, camera lens without it is dirty when shooting image in predeterminable area gray threshold scope, and in real time obtain camera lens current taken image Target light exposure value and predeterminable area target gray value, and the current of current taken image is matched by target light exposure value Photographed scene, and according to present filming scene come obtain camera lens without it is dirty when shooting image gray threshold scope, then judge Target gray value, if then representing camera lens without dirty, does not send prompting, if otherwise generation whether in the range of the gray threshold of acquisition Camera lens exists dirty, and sends prompting automatically, exists with automatically prompting user camera lens dirty.Therefore the dirty prompting of the camera lens Method, its can automatic identification camera lens with the presence or absence of dirty, and can recognize have dirty when, automatically prompting user, make User is obtained without frequently check whether camera lens is dirty, experiences, and accuracy of identification is high.
Referring to Fig. 2, the based reminding method that the camera lens showing in second embodiment of the invention is dirty, the camera lens is installed on Among mobile terminal, the dirty based reminding method of the camera lens includes step S11 to step S17.
Step S11, according to face recognition algorithms, extract the hair zones in current taken image.
Wherein, the current taken image obtains via the lens shooting.
Among the present embodiment, using the hair zones analyzed area dirty as follow-up camera lens, it is to be understood that, This, which is not represented, is defined and can only can also be used using hair zones as analyzed area, such as among other embodiments Area of skin color is as analyzed area.
Step S12, the gray value of each pixel in the hair zones is subjected to mean value calculation, to obtain target ash Angle value.
Step S13, obtain the target light exposure value in the current taken image.
Step S14, according to the target light exposure value, gray scale corresponding with the target light exposure value is inquired about among mapping table Threshold range.
Wherein, the gray threshold scope be the camera lens without it is dirty when in photographed scene corresponding to the target light exposure value Under, the gray value normal fluctuation range of hair zones in shooting image.
When it is implemented, before camera lens dispatches from the factory, the dirty based reminding method of the camera lens can also include:
The test image for the preset number that the camera lens is shot under multiple photographed scenes is obtained respectively;
The exposure value of every test image and the gray value of hair zones in every test image are obtained respectively, To obtain the camera lens exposure value scope of shooting image and intensity value ranges of hair zones under each photographed scene;
Using the intensity value ranges as the gray threshold scope corresponding to the exposure value scope, and together as pair The information for the photographed scene answered is pre-stored among the mapping table.
Therefore, specifically, according to the target light exposure value, inquired about among mapping table corresponding with the target light exposure value The step of gray threshold scope, can follow the steps below specific implementation:First, inquire about and include among the mapping table The target light exposure value scope of the target light exposure value, then inquired about among the mapping table corresponding with the target light exposure value scope Gray threshold scope, so as to get gray threshold scope corresponding to the target light exposure value.
It should be understood that before the camera lens dispatches from the factory, the mapping table can be stored among the mobile terminal, In order to inquire about gray threshold scope subsequently directly on the mapping table.
Step S15, judge the target gray value whether in the range of the gray threshold.
When the step S15, which determines the target gray value, to be located in the range of the gray threshold, then be failure to actuate after Continuous monitoring, when the step S15 determines the target gray value not in the range of the gray threshold, represent the mirror Head exist it is dirty, then perform step S16 to step S18.
Step S16, default prompting message is obtained, and the default prompting message is shown in the shifting in a manner of playing frame On the display screen of dynamic terminal.
Among the present embodiment, prompting message is sent by the way of playing frame and showing, will the default prompting message Generation is together shown on the display screen of the mobile terminal among prompting frame.
Wherein, triggering is provided with the prompting frame where the default prompting message and shows icon (prompting frame bottom right in such as Fig. 3 The arrow of side).
Fig. 3 is refer to, show a kind of design sketch that prompting message bullet frame is shown among the present embodiment.
Step S17, when receiving the triggering and showing the click signal of icon, obtain dirty processing information, and by institute The lower section that dirty processing information is shown in the default prompting message is stated, the dirty processing information includes being used to instruct user couple The dirty operating procedure handled of the camera lens.
Step S18, the size of the prompting frame is adjusted, so that the dirty processing information is shown in the prompting frame.
It should be understood that the border point coordinates by obtaining the dirty processing information, then sits according to these boundary points Mark adjusts the border point coordinates of the prompting frame to correspond to, so that the boundary point coordinate of the dirty processing information carries positioned at described Within the border of awake frame, so as to realize that the size of the prompting frame adjusts.
Fig. 4 is refer to, show a kind of design sketch of the display dirty processing information among the present embodiment.
The prompting dirty compared to the camera lens among first embodiment of the dirty based reminding method of camera lens among the present embodiment Method, also have and be processed as the dirty Operating Guideline of camera lens and remind, can be more professional instruct user to camera lens at Reason, further increasing experience sense.
Referring to Fig. 5, the based reminding method that the camera lens showing in third embodiment of the invention is dirty, the camera lens is installed on Among mobile terminal, the dirty based reminding method of the camera lens includes step S21 to step S27.
Step S21, according to face recognition algorithms, extract the hair zones in current taken image.
Wherein, the current taken image obtains via the lens shooting.
Step S22, the gray value of each pixel in the hair zones is subjected to mean value calculation, to obtain the mesh Mark gray value.
Step S23, obtain the target light exposure value in the current taken image.
Step S24, according to the target light exposure value, inquired about among mapping table corresponding with the target light exposure value described Gray threshold scope.
Wherein, the gray threshold scope be the camera lens without it is dirty when in photographed scene corresponding to the target light exposure value Under, the gray value normal fluctuation range of hair zones in shooting image.
When it is implemented, before the camera lens dispatches from the factory, the dirty based reminding method of the camera lens also includes:
The test image for the preset number that the camera lens is shot under multiple photographed scenes is obtained respectively;
The exposure value of every test image and the gray value of hair zones in every test image are obtained respectively, To obtain the camera lens exposure value scope of shooting image and intensity value ranges of hair zones under each photographed scene;
Using the intensity value ranges as the gray threshold scope corresponding to the exposure value scope, and together as pair The information for the photographed scene answered is pre-stored among the mapping table.
Step S25, judge the target gray value whether in the range of the gray threshold.
Wherein, when the step S25, which determines the target gray value, to be located in the range of the gray threshold, then continue Monitoring, when the step S25 determines the target gray value not in the range of the gray threshold, then perform step S26 to step S28.
Step S26, sends prompting message, dirty to remind camera lens described in user to exist.
Wherein, the mode that sends of the prompting message includes but is not limited to play frame and shows, language report, SMS notification, shakes Dynamic prompting etc..
Step S27, records the time of the currently transmitted prompting message, and calculates and send the prompting letter away from the last time The time interval of breath;
Step S28, the prompting message is sent automatically at interval of the time interval.
Wherein, described the step of sending the prompting automatically at interval of the time interval is described to be carried from currently transmitted From the awake time, the prompting message is just sent automatically every a time interval, with timed reminding user to the mirror Head is cleared up.
The prompting dirty compared to the camera lens among first embodiment of the dirty based reminding method of camera lens among the present embodiment Method, it also has the beneficial effect that timed reminding user is cleared up the camera lens.
Another aspect of the present invention also provides a kind of camera lens dirty system for prompting, described to refer to Fig. 6, show the present invention The dirty system for prompting of camera lens in fourth embodiment, including:
Gray value acquisition module 11, it is described current for obtaining the target gray value of predeterminable area in current taken image Shooting image obtains via the lens shooting;
Exposure value acquisition module 12, obtain the target light exposure value in the current taken image;
Gray value judge module 13, for judging the target gray value whether positioned at ash corresponding to the target light exposure value Spend in threshold range;
Prompting module 14, it is not located at gray scale threshold corresponding to the target light exposure value for the target gray value ought to be determined When in the range of value, prompting message is sent, it is dirty to remind camera lens described in user to exist.
Further, the predeterminable area is hair zones, and the gray value acquisition module 11 includes:
Hair zones extraction unit 111, for according to face recognition algorithms, extracting described in the current taken image Hair zones;
Gray value acquiring unit 112, based on the gray value of each pixel in the hair zones is carried out into average value Calculate, to obtain the target gray value.
Further, the gray value judge module 13 includes:
Threshold range query unit 131, for according to the target light exposure value, being inquired about and the target among mapping table The gray threshold scope corresponding to exposure value;
Gray value judging unit 132, judge the target gray value whether in the range of the gray threshold.
Further, before the camera lens dispatches from the factory, the dirty system for prompting of the camera lens also includes:
Test image acquisition module 15, the preset number shot for obtaining the camera lens respectively under multiple photographed scenes Test image;
Test image processing module 16, for obtain respectively every test image exposure value and every test The gray value of predeterminable area described in image, to obtain the exposure value of camera lens shooting image under each photographed scene The intensity value ranges of scope and the predeterminable area;
Pre-storing module of information 17, for using the intensity value ranges as the gray scale threshold corresponding to the exposure value scope It is worth scope, and together the information of the photographed scene is pre-stored among the mapping table as corresponding to.
Further, the camera lens is installed on mobile terminal, and the prompting module 14 includes:
Reminding unit 141, shown for obtaining default prompting message, and by the default prompting message in a manner of playing frame In on the display screen of the mobile terminal.
Further, triggering is provided with the prompting frame where the default prompting message and shows icon, the prompting module 14 also include:
Hiding information display unit 142, for when receiving the click signal of the triggering display icon, obtaining dirty Processing information, and the dirty processing information is shown in the lower section of the default prompting message, the dirty processing information bag Include for instructing the dirty operating procedure that is handled of the user to the camera lens;
Prompting frame adjustment unit 143, adjust the size of the prompting frame so that the dirty processing information be shown in it is described In prompting frame.
Further, the dirty system for prompting of the camera lens also includes:
Time computing module 18, for recording the time of the currently transmitted prompting, and calculate and send institute away from the last time State the time interval of prompting;
And the prompting is sent automatically at interval of prompting module 14 described in the time interval.
The present invention also proposes a kind of computer-readable recording medium, is stored thereon with computer program, the program is processed Device realizes the dirty based reminding method of camera lens described above when performing.
The present invention also proposes a kind of mobile terminal, including memory, processor and storage on a memory and can located The computer program that runs on reason device, camera lens described above dirty prompting side is realized during the computing device described program Method.
It will be understood by those skilled in the art that in flow charts represent or logic described otherwise above herein and/or Step, for example, being considered the order list of the executable instruction for realizing logic function, it may be embodied in and appoint In what computer-readable medium, for instruction execution system, device or equipment (such as computer based system including processor System or other can be from the system of instruction execution system, device or equipment instruction fetch and execute instruction) use, or with reference to this A little instruction execution system, device or equipment and use.For the purpose of this specification, " computer-readable medium " can be it is any can be with Comprising, store, communicate, propagate or transmit program and perform system for instruction execution system, device or equipment or with reference to these instructions System, device or equipment and the device used.
The more specifically example (non-exhaustive list) of computer-readable medium includes following:Connected up with one or more Electrical connection section (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk are read-only Memory (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable Medium because can for example by carrying out optical scanner to paper or other media, then enter edlin, interpretation or if necessary with Other suitable methods are handled electronically to obtain described program, are then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware Any one of row technology or combinations thereof are realized:With the logic gates for realizing logic function to data-signal Discrete logic, have suitable combinational logic gate circuit application specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Necessarily refer to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any One or more embodiments or example in combine in an appropriate manner.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
The embodiment of the present invention further discloses:
A1. the dirty based reminding method of a kind of camera lens, including:
The target gray value of predeterminable area in current taken image is calculated, the current taken image is clapped via the camera lens Take the photograph to obtain;
Calculate the target light exposure value of the current taken image;
Judge whether the target gray value is located at corresponding to the target light exposure value in the range of gray threshold;
If it is not, prompting message is then sent, it is dirty to remind camera lens described in user to exist.
A2. the dirty based reminding method of camera lens according to A1, the predeterminable area is hair zones, it is described calculate it is current Include in shooting image the step of the target gray value of predeterminable area:
According to face recognition algorithms, the hair zones in the current taken image are extracted;
The gray value of each pixel in the hair zones is subjected to mean value calculation, to obtain the target gray Value.
A3. the dirty based reminding method of camera lens according to A1, it is described to judge the target gray value whether positioned at described The step of corresponding to target light exposure value in the range of gray threshold, includes:
According to the target light exposure value, the gray threshold corresponding with the target light exposure value is inquired about among mapping table Scope;
Judge the target gray value whether in the range of the gray threshold.
A4. the dirty based reminding method of camera lens according to A3, before the camera lens dispatches from the factory, in addition to:
The test image for the preset number that the camera lens is shot under multiple photographed scenes is obtained respectively;
Calculate respectively every test image exposure value and every test image described in predeterminable area ash Angle value, to obtain camera lens ash of the exposure value scope of shooting image and the predeterminable area under each photographed scene Angle value scope;
Using the intensity value ranges as the gray threshold scope corresponding to the exposure value scope, and together as pair The information for the photographed scene answered is pre-stored among the mapping table.
A5. the dirty based reminding method of camera lens according to A1, the camera lens are installed on mobile terminal, and described send carries The step of information of waking up, includes:
Default prompting message is obtained, and the default prompting message is shown in the mobile terminal in a manner of playing frame On display screen.
A6. the dirty based reminding method of camera lens according to A5, it is provided with the prompting frame where the default prompting message Triggering shows icon, in the display screen that the default prompting message is shown in the mobile terminal in a manner of playing frame On step after, in addition to:
When receiving the triggering and showing the click signal of icon, dirty processing information is obtained, and by the dirty place Presentation of information is managed in the lower section of the default prompting message, the dirty processing information includes being used to instruct user to the camera lens The dirty operating procedure handled;
The size of the prompting frame is adjusted, so that the dirty processing information is shown in the prompting frame.
A7. the dirty based reminding method of camera lens according to A1, also includes after described the step of sending prompting message:
The time of the currently transmitted prompting message is recorded, and is calculated away from the last time for sending the prompting message Interval;
The prompting message is sent automatically at interval of the time interval.
B8. the dirty system for prompting of a kind of camera lens, including:
Gray value computing module, for calculating the target gray value of predeterminable area in current taken image, the current bat Image is taken the photograph to obtain via the lens shooting;
Exposure value computing module, for calculating the target light exposure value in the current taken image;
Gray value judge module, for judging whether the target gray value is located at gray scale corresponding to the target light exposure value In threshold range;
Prompting module, for when determining the target gray value not in the range of the gray threshold, sending and carrying Awake information, it is dirty to remind camera lens described in user to exist.
C9. a kind of computer-readable recording medium, is stored thereon with computer program, real when the program is executed by processor The dirty based reminding method of camera lens now as described in A1-A7 is any.
D10. a kind of mobile terminal, including memory, processor and storage can transport on a memory and on a processor Capable computer program, camera lens as described in A1-A7 is any dirty prompting side is realized during the computing device described program Method.

Claims (10)

  1. A kind of 1. dirty based reminding method of camera lens, it is characterised in that including:
    The target gray value of predeterminable area in current taken image is obtained, the current taken image obtains via the lens shooting Arrive;
    Obtain the target light exposure value of the current taken image;And
    Judge whether the target gray value is located at corresponding to the target light exposure value in the range of gray threshold;
    If it is not, prompting message is then sent, it is dirty to remind camera lens described in user to exist.
  2. 2. the dirty based reminding method of camera lens according to claim 1, it is characterised in that the predeterminable area is hair area Domain, described the step of obtaining the target gray value of predeterminable area in current taken image, include:
    According to face recognition algorithms, the hair zones in the current taken image are extracted;
    The gray value of each pixel in the hair zones is subjected to mean value calculation, to obtain the target gray value.
  3. 3. the dirty based reminding method of camera lens according to claim 1, it is characterised in that described to judge the target gray value The step of whether being located at corresponding to the target light exposure value in the range of gray threshold includes:
    According to the target light exposure value, the gray threshold model corresponding with the target light exposure value is inquired about among mapping table Enclose;
    Judge the target gray value whether in the range of the gray threshold.
  4. 4. the dirty based reminding method of camera lens according to claim 3, it is characterised in that before the camera lens dispatches from the factory, also Including:
    The test image for the preset number that the camera lens is shot under multiple photographed scenes is obtained respectively;
    Obtain respectively every test image exposure value and every test image described in predeterminable area gray value, To obtain camera lens gray value of the exposure value scope of shooting image and the predeterminable area under each photographed scene Scope;
    Using the intensity value ranges as the gray threshold scope corresponding to the exposure value scope, and together as corresponding The information of the photographed scene is pre-stored among the mapping table.
  5. 5. the dirty based reminding method of camera lens according to claim 1, the camera lens are installed on mobile terminal, its feature exists In described the step of sending prompting message includes:
    Default prompting message is obtained, and the default prompting message is shown in the display of the mobile terminal in a manner of playing frame On screen.
  6. 6. the dirty based reminding method of camera lens according to claim 5, it is characterised in that where the default prompting message Triggering is provided with prompting frame and shows icon, the default prompting message is shown in the movement eventually in a manner of playing frame described After step on the display screen at end, in addition to:
    When receiving the click signal of the triggering display icon, dirty processing information is obtained, and the dirty processing is believed Breath is shown in the lower section of the default prompting message, and the dirty processing information includes being used to instruct user to the dirty of the camera lens The operating procedure that dirt is handled;
    The size of the prompting frame is adjusted, so that the dirty processing information is shown in the prompting frame.
  7. 7. the dirty based reminding method of camera lens according to claim 1, it is characterised in that in the step for sending prompting message Also include after rapid:
    The time of the currently transmitted prompting message is recorded, and is calculated away between the last time for sending the prompting message Every;
    The prompting message is sent automatically at interval of the time interval.
  8. A kind of 8. dirty system for prompting of camera lens, it is characterised in that including:
    Gray value acquisition module, for obtaining the target gray value of predeterminable area in current taken image, the current shooting figure As being obtained via the lens shooting;
    Exposure value acquisition module, for obtaining the target light exposure value in the current taken image;
    Gray value judge module, for judging whether the target gray value is located at gray threshold corresponding to the target light exposure value In the range of;And
    Prompting module, for when determining the target gray value not in the range of the gray threshold, sending prompting letter Breath, it is dirty to remind camera lens described in user to exist.
  9. 9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is held by processor The method as described in claim 1-7 is any is realized during row.
  10. 10. a kind of mobile terminal, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, it is characterised in that the method as described in claim 1-7 is any is realized during the computing device described program.
CN201710917187.5A 2017-09-30 2017-09-30 Method and system for reminding dirtiness of lens, readable storage medium and mobile terminal Active CN107743224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710917187.5A CN107743224B (en) 2017-09-30 2017-09-30 Method and system for reminding dirtiness of lens, readable storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710917187.5A CN107743224B (en) 2017-09-30 2017-09-30 Method and system for reminding dirtiness of lens, readable storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN107743224A true CN107743224A (en) 2018-02-27
CN107743224B CN107743224B (en) 2020-04-17

Family

ID=61236523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710917187.5A Active CN107743224B (en) 2017-09-30 2017-09-30 Method and system for reminding dirtiness of lens, readable storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN107743224B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108650503A (en) * 2018-04-28 2018-10-12 努比亚技术有限公司 Camera fault determination method, device and computer readable storage medium
CN108668080A (en) * 2018-06-22 2018-10-16 北京小米移动软件有限公司 Prompt method and device, the electronic equipment of camera lens degree of fouling
CN108898592A (en) * 2018-06-22 2018-11-27 北京小米移动软件有限公司 Prompt method and device, the electronic equipment of camera lens degree of fouling
CN109389075A (en) * 2018-09-29 2019-02-26 佛山市云米电器科技有限公司 Intelligent smoke machine lens blur self checking method
CN109584217A (en) * 2018-11-15 2019-04-05 常州大学 A kind of monitoring camera lens pollution automatic distinguishing method
CN110572636A (en) * 2019-07-23 2019-12-13 RealMe重庆移动通信有限公司 camera contamination detection method and device, storage medium and electronic equipment
CN110766679A (en) * 2019-10-25 2020-02-07 普联技术有限公司 Lens contamination detection method and device and terminal equipment
CN110855976A (en) * 2019-10-08 2020-02-28 南京云计趟信息技术有限公司 Camera abnormity detection method and device and terminal equipment
CN110889801A (en) * 2018-08-16 2020-03-17 九阳股份有限公司 Decontamination optimization method for camera of smoke stove system and smoke stove system
CN112351168A (en) * 2020-10-21 2021-02-09 惠州市德赛西威智能交通技术研究院有限公司 Camera laser self-cleaning device and system
CN112422959A (en) * 2020-11-11 2021-02-26 珠海格力电器股份有限公司 Lens pollution detection method, system, equipment and storage medium
CN112911280A (en) * 2021-02-04 2021-06-04 广东小天才科技有限公司 Lens state detection method and device, electronic equipment and storage medium
CN113240672A (en) * 2021-06-21 2021-08-10 广州文远知行科技有限公司 Lens pollutant detection method, device, equipment and storage medium
CN117287728A (en) * 2023-11-27 2023-12-26 山东佰洁智能电器有限公司 Induction cooker control system and method based on Internet of things

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007189369A (en) * 2006-01-12 2007-07-26 Alpine Electronics Inc Device for detecting dirt of camera lens, and image display system
CN103929598A (en) * 2014-04-30 2014-07-16 信利光电股份有限公司 Automatic exposure method and camera module detection method
CN104240235A (en) * 2014-08-26 2014-12-24 北京君正集成电路股份有限公司 Method and system for detecting whether camera is covered or not
CN105611188A (en) * 2015-12-23 2016-05-25 北京奇虎科技有限公司 Method and device for detecting shielding of camera based on automatic exposure
CN106572349A (en) * 2016-11-18 2017-04-19 维沃移动通信有限公司 Camera cleanliness detection method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007189369A (en) * 2006-01-12 2007-07-26 Alpine Electronics Inc Device for detecting dirt of camera lens, and image display system
CN103929598A (en) * 2014-04-30 2014-07-16 信利光电股份有限公司 Automatic exposure method and camera module detection method
CN104240235A (en) * 2014-08-26 2014-12-24 北京君正集成电路股份有限公司 Method and system for detecting whether camera is covered or not
CN105611188A (en) * 2015-12-23 2016-05-25 北京奇虎科技有限公司 Method and device for detecting shielding of camera based on automatic exposure
CN106572349A (en) * 2016-11-18 2017-04-19 维沃移动通信有限公司 Camera cleanliness detection method and mobile terminal

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108650503B (en) * 2018-04-28 2020-08-21 努比亚技术有限公司 Camera fault determination method and device and computer readable storage medium
CN108650503A (en) * 2018-04-28 2018-10-12 努比亚技术有限公司 Camera fault determination method, device and computer readable storage medium
CN108668080A (en) * 2018-06-22 2018-10-16 北京小米移动软件有限公司 Prompt method and device, the electronic equipment of camera lens degree of fouling
CN108898592A (en) * 2018-06-22 2018-11-27 北京小米移动软件有限公司 Prompt method and device, the electronic equipment of camera lens degree of fouling
CN110889801B (en) * 2018-08-16 2023-10-20 九阳股份有限公司 Camera decontamination optimization method of smoke kitchen system and smoke kitchen system
CN110889801A (en) * 2018-08-16 2020-03-17 九阳股份有限公司 Decontamination optimization method for camera of smoke stove system and smoke stove system
CN109389075A (en) * 2018-09-29 2019-02-26 佛山市云米电器科技有限公司 Intelligent smoke machine lens blur self checking method
CN109389075B (en) * 2018-09-29 2024-03-19 佛山市云米电器科技有限公司 Intelligent smoke machine lens fuzzy self-checking method
CN109584217A (en) * 2018-11-15 2019-04-05 常州大学 A kind of monitoring camera lens pollution automatic distinguishing method
CN110572636A (en) * 2019-07-23 2019-12-13 RealMe重庆移动通信有限公司 camera contamination detection method and device, storage medium and electronic equipment
CN110572636B (en) * 2019-07-23 2020-08-04 RealMe重庆移动通信有限公司 Camera contamination detection method and device, storage medium and electronic equipment
CN110855976B (en) * 2019-10-08 2022-03-11 南京云计趟信息技术有限公司 Camera abnormity detection method and device and terminal equipment
CN110855976A (en) * 2019-10-08 2020-02-28 南京云计趟信息技术有限公司 Camera abnormity detection method and device and terminal equipment
CN110766679B (en) * 2019-10-25 2022-09-06 普联技术有限公司 Lens contamination detection method and device and terminal equipment
CN110766679A (en) * 2019-10-25 2020-02-07 普联技术有限公司 Lens contamination detection method and device and terminal equipment
CN112351168A (en) * 2020-10-21 2021-02-09 惠州市德赛西威智能交通技术研究院有限公司 Camera laser self-cleaning device and system
CN112422959A (en) * 2020-11-11 2021-02-26 珠海格力电器股份有限公司 Lens pollution detection method, system, equipment and storage medium
CN112911280A (en) * 2021-02-04 2021-06-04 广东小天才科技有限公司 Lens state detection method and device, electronic equipment and storage medium
CN112911280B (en) * 2021-02-04 2022-03-01 广东小天才科技有限公司 Lens state detection method and device, electronic equipment and storage medium
CN113240672A (en) * 2021-06-21 2021-08-10 广州文远知行科技有限公司 Lens pollutant detection method, device, equipment and storage medium
CN117287728A (en) * 2023-11-27 2023-12-26 山东佰洁智能电器有限公司 Induction cooker control system and method based on Internet of things
CN117287728B (en) * 2023-11-27 2024-02-09 山东佰洁智能电器有限公司 Induction cooker control system and method based on Internet of things

Also Published As

Publication number Publication date
CN107743224B (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN107743224A (en) The dirty based reminding method of camera lens, system, readable storage medium storing program for executing and mobile terminal
CN106909911B (en) Image processing method, image processing apparatus, and electronic apparatus
WO2018161877A1 (en) Processing method, processing device, electronic device and computer readable storage medium
US20190206031A1 (en) Facial Contour Correcting Method and Device
EP3565236A1 (en) Control method, control apparatus, mobile terminal and computer-readable storage medium
US11579904B2 (en) Learning data collection device, learning data collection system, and learning data collection method
CN108416235B (en) The anti-peeping method, apparatus of display interface, storage medium and terminal device
EP2782326A2 (en) Method and apparatus for processing an image based on an image property and ambient environment information
US20050219385A1 (en) Device for preventing red eye, program therefor, and recording medium storing the program
CN107087118B (en) Photographic method, device, storage medium and terminal
EP2757771A2 (en) Image pickup apparatus, remote control apparatus, and methods of controlling image pickup apparatus and remote control apparatus
CN106997457B (en) Figure limb identification method, figure limb identification device and electronic device
US10796141B1 (en) Systems and methods for capturing and processing images of animals for species identification
JP2007264860A (en) Face area extraction device
CN110059666B (en) Attention detection method and device
US20170068840A1 (en) Predicting accuracy of object recognition in a stitched image
CN110731076A (en) Shooting processing method and device and storage medium
CN110572636A (en) camera contamination detection method and device, storage medium and electronic equipment
CN110363036B (en) Code scanning method and device based on wire controller and code scanning system
JP2017130794A (en) Information processing apparatus, evaluation chart, evaluation system, and performance evaluation method
CN103900715A (en) Infrared selecting device and infrared selecting method
US10373329B2 (en) Information processing apparatus, information processing method and storage medium for determining an image to be subjected to a character recognition processing
CN107816841A (en) The detecting system and its detection method of food species inside refrigerator compartment
KR101643724B1 (en) Method and Apparatus for identifying eyeball position, Method and Apparatus for tracking eyeball position
US9842406B2 (en) System and method for determining colors of foreground, and computer readable recording medium therefor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant