[go: up one dir, main page]

CN107945158A - A kind of dirty method and device of detector lens - Google Patents

A kind of dirty method and device of detector lens Download PDF

Info

Publication number
CN107945158A
CN107945158A CN201711132091.4A CN201711132091A CN107945158A CN 107945158 A CN107945158 A CN 107945158A CN 201711132091 A CN201711132091 A CN 201711132091A CN 107945158 A CN107945158 A CN 107945158A
Authority
CN
China
Prior art keywords
edge
image
user equipment
area
detected
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
CN201711132091.4A
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 Moruan Communication Technology Co Ltd
Original Assignee
Shanghai Moruan Communication 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 Moruan Communication Technology Co Ltd filed Critical Shanghai Moruan Communication Technology Co Ltd
Priority to CN201711132091.4A priority Critical patent/CN107945158A/en
Publication of CN107945158A publication Critical patent/CN107945158A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Studio Devices (AREA)

Abstract

A kind of dirty method and device of detector lens, the described method includes:User equipment obtains image to be detected;The user equipment carries out edge detection according to edge convolution algorithm to described image to be detected, obtains edge image;The user equipment determines first edge and second edge from the edge image;The user equipment is if it is determined that the brightness value of the corresponding pixel of the first edge and the brightness value of the corresponding pixel of the second edge are more than predetermined threshold value, and the first edge and the second edge at least partly overlap, it is determined that shooting the camera lens of described image to be detected, there are dirty.

Description

A kind of dirty method and device of detector lens
Technical field
This application involves field of computer technology, more particularly to the method and device that a kind of detector lens are dirty.
Background technology
Camera plays an increasingly important role in actual life, and especially taking pictures on the user equipment such as mobile phone sets Standby, at present, the photographic equipment that the camera lens on user equipment, such as mobile phone is usually not as specialty has lens cap, can be with protective glass Head.Camera lens on user equipment is typically all exposed, and fingerprint, greasy dirt, dust etc. are stained with routine use, all can be to taking pictures Impact, cause picture unintelligible, poor contrast.But user possibly can not know wherein reason, can only be attributed to product Itself is bad, causes user's experience of taking pictures poor.
Therefore, can not be obtained there is an urgent need for a kind of dirty method and device of detector lens with solving user in the prior art at present Know camera lens it is whether dirty cause user take pictures experience difference the problem of.
The content of the invention
The embodiment of the present application provides a kind of dirty method and device of detector lens, to solve user in the prior art Can not know camera lens it is whether dirty cause user take pictures experience difference the problem of.
The embodiment of the present application provides a kind of dirty method of detector lens, including:
User equipment obtains image to be detected;
The user equipment carries out edge detection according to edge convolution algorithm to described image to be detected, obtains edge graph Picture;
The user equipment determines first edge and second edge from the edge image;
The user equipment is if it is determined that the brightness value of the corresponding pixel of the first edge and the second edge are corresponding The brightness value of pixel is more than predetermined threshold value, and the first edge is at least partly overlapped with the second edge, it is determined that shooting There are dirty for the camera lens of described image to be detected.
A kind of possible implementation, the user equipment determine the first edge with the second edge at least partly Overlap, including:
The user equipment determines that the first edge is at least partly overlapped with first area, it is determined that the first edge At least partly overlapped with the second edge;The first area is the second edge area defined, and described first The brightness value of pixel in region is more than the predetermined threshold value.
A kind of possible implementation, the user equipment determine the first edge with the second edge at least partly Overlap, including:
The user equipment determines that second area is at least partly overlapped with first area, it is determined that the first edge and institute Second edge is stated at least partly to overlap;The first area is the second edge area defined, and the first area In the brightness value of pixel be more than the predetermined threshold value;The region that the second area is made of the second edge, and institute The brightness value for stating the pixel in second area is more than the predetermined threshold value.
A kind of possible implementation, the user equipment determine first edge and the second side from the edge image Edge, including:
The user equipment is determined from the edge image to meet the first of first shape feature according to Hough transformation Edge and the second edge for meeting the second shape facility;The first shape is characterized as straight line;Second shape facility is circle Shape, ellipse or square.
A kind of possible implementation, the user equipment obtain image to be detected, including:
The user equipment adjusts automatic exposure, white balance and the focusing of the camera lens of the user equipment, and in definite institute After automatic exposure, white balance and the focusing for stating camera lens are stable state, the image shot by the camera lens is used as described in Image to be detected.
A kind of possible implementation, the scope of the predetermined threshold value is 250-255.
A kind of possible implementation, the user equipment determine to shoot the camera lens of described image to be detected there are it is dirty it Afterwards, including:
The user equipment display reminding information, the prompt message are used to prompt the camera lens for shooting described image to be detected There are dirty.
The embodiment of the present application provides a kind of dirty device of detector lens, it is characterised in that including:
Receiving unit, for obtaining image to be detected;
Processing unit, for carrying out edge detection to described image to be detected according to edge convolution algorithm, obtains edge graph Picture;First edge and second edge are determined from the edge image;If it is determined that the corresponding pixel of the first edge is bright The brightness value of angle value and the corresponding pixel of the second edge is more than predetermined threshold value, and the first edge and the second edge At least partly overlap, it is determined that shooting the camera lens of described image to be detected, there are dirty.
A kind of possible implementation, the processing unit, is specifically used for:
Determine that the first edge is at least partly overlapped with first area, it is determined that the first edge and second side Edge at least partly overlaps;The first area is the second edge area defined, and the pixel in the first area Brightness value be more than the predetermined threshold value.
A kind of possible implementation, the processing unit, is specifically used for:
Determine that second area is at least partly overlapped with first area, it is determined that the first edge and the second edge are extremely Small part overlaps;The first area is the second edge area defined, and the pixel in the first area is bright Angle value is more than the predetermined threshold value;The region that the second area is made of the second edge, and in the second area The brightness value of pixel be more than the predetermined threshold value.
A kind of possible implementation, the processing unit, is specifically used for:
The first edge determining from the edge image to meet first shape feature according to Hough transformation and meet the The second edge of two shape facilities;The first shape is characterized as straight line;Second shape facility for circular, ellipse or It is square.
The embodiment of the present application provides a kind of computer-readable recording medium, including computer-readable instruction, works as computer When reading and performing the computer-readable instruction so that computer performs the method described in above-mentioned any one.
The embodiment of the present application provides a kind of computer program product, including computer-readable instruction, when computer is read And perform the computer-readable instruction so that computer performs the method as described in above-mentioned any one.
The embodiment of the present application provides a kind of chip, and the chip is connected with memory, for reading and performing the storage The software program stored in device, to realize the method in any of the above-described in various possible designs.
According to method and device provided by the embodiments of the present application, image to be detected is obtained by user equipment;The user Equipment carries out edge detection according to edge convolution algorithm to described image to be detected, obtains edge image;The user equipment from First edge and second edge are determined in the edge image;The user equipment is if it is determined that the corresponding picture of the first edge The brightness value of element is more than predetermined threshold value, and is overlapped with predeterminable area, it is determined that shooting the camera lens of described image to be detected, there are dirty It is dirty;The predeterminable area is more than for the brightness value of the second edge area defined and the pixel in the predeterminable area The predetermined threshold value.Realize that automatic identification camera lens is dirty, solve user in the prior art and can not know whether camera lens is dirty and lead Apply family take pictures experience difference the problem of.
Brief description of the drawings
Fig. 1 is a kind of structure diagram of user equipment provided by the embodiments of the present application;
Fig. 2 is a kind of dirty method flow schematic diagram of detector lens provided by the embodiments of the present application;
Fig. 3 is a kind of schematic diagram of edge image provided by the embodiments of the present application;
Fig. 4 is a kind of schematic diagram for identifying edge image provided by the embodiments of the present application;
Fig. 5 is a kind of flow diagram of the dirty method of detector lens provided by the embodiments of the present application;
A kind of Fig. 6 structure diagrams of user equipment provided by the embodiments of the present application.
Embodiment
As shown in Figure 1, the embodiment of the present application provides the camera lens 101 on a kind of user equipment 102, the user equipment can be with To be provided with the electronic equipments such as the intelligent watch of camera lens, smart mobile phone, tablet computer.The camera lens can be on user equipment Camera lens, or other camera lenses that user voluntarily installs.The camera lens can be used for taking pictures, shooting, video calling etc..The mirror The photographic equipment that head is usually not as specialty has lens cap, can protect camera lens.Camera lens on user equipment is typically exposed , in user when in use, camera lens may be touched and be stained with fingerprint, greasy dirt, dust etc., and impacted to taking pictures.Camera lens It is totally very not big on photographic effects experience influence, it is more intuitively the diffraction phenomena of the light source in picture, figure can be caused indirectly Piece is unintelligible, poor contrast, and picture picture has covered one layer of mist, but usually user equipment user is inadequate for the color of the image of shooting Bright-coloured, mainly shooting gimmick, equipment is in itself etc. the reason for consideration.It can not determine to be due to the dirty caused shooting effect of camera lens It is deteriorated, it is bad to be attributed to product itself, strong influence user experience.
When camera lens occurs dirty, in the photo of direct photographic light sources, contrast is relative to clean poor, the color of camera lens It is not bright-coloured enough, and diffraction phenomena can be produced at light source, there is the diffraction pattern of banding in each point light source.Based on this, the application The diffraction phenomena occurred when embodiment is by detecting dirty camera lens photographic light sources, determines that the camera lens is dirty, reminds user timely Camera lens is wiped, keeps the clean of camera lens, clear to take, perfect photo, lifts user experience.
As shown in Fig. 2, the embodiment of the present application provides a kind of dirty method of detector lens, including:
Step 201, user equipment obtain image to be detected;
Step 202, the user equipment carry out edge detection according to edge convolution algorithm to described image to be detected, obtain Edge image;
Step 203, the user equipment determine first edge and second edge from the edge image;
Step 204, the user equipment are if it is determined that the brightness value of the corresponding pixel of the first edge and second side The brightness value of the corresponding pixel of edge is more than predetermined threshold value, and the first edge is at least partly overlapped with the second edge, then There are dirty for the camera lens of definite described image to be detected of shooting.
In step 201, the user equipment can obtain to be detected according to user in the various scenes using camera lens Image.For example, user in shooting photo, shooting, video calling, the scene such as scan the two-dimensional code.
To make to determine the diffraction phenomena of the dirty caused light source of camera lens, before image to be detected is obtained, can include:Really The shooting environmental of the fixed camera lens whether be artificial light source shooting environmental.
Specifically, it by ambient brightness detection module, can determine that the average brightness of shooting environmental in the camera lens is small In the brightness of natural light environment.Then it is determined as the shooting environmental for including artificial light source, rather than natural light environment.E.g., including The environment of artificial light source can have the environment of the artificial light sources such as fluorescent lamp, lighting apparatus at indoor environment and night.Determine described Shooting environmental residing for camera lens whether there is natural light, can choose specific threshold value according to actual application environment, for example, can be with When the brightness value (Light Value) of selection environment is less than 8, it is determined as the shooting environmental for including artificial light source.
In the specific implementation process of step 201, it may comprise steps of:
A kind of possible implementation, the user equipment obtain image to be detected, including:
Step 1: after the user equipment determines that the image of the camera lens collection of the user equipment remains unchanged, institute is adjusted State automatic exposure, white balance and the focus value of the camera lens of user equipment;
Step 2: it is stabilization that the user equipment, which determines that automatic exposure, white balance and the focus value of the camera lens are all, After state, the image shot by the camera lens is used as described image to be detected.
Image to be detected after collection is stablized herein is obscured to exclude to shake caused image, after in addition being stablized Image to be detected cause subsequently to the recognition accuracy higher of image to be detected.
Wherein, the image of camera lens shooting can be the camera lens in the preview image of collection, a frame was intercepted per N second Picture, when automatic exposure, white balance and the focus value of M images for determining collection are kept not for stationary value and the M images During change, an image is randomly selected as described image to be detected.
In step 202, the edge convolution algorithm can be CANNY edges convolution algorithm, by denoising, from original Image generates the direction that brightness gradient map and brightness step are each put in image.Higher brightness step is relatively likely to be Edge, according to brightness step figure, using hysteresis threshold and Gaussian filter, according to the specific requirement of application scenarios be adjusted with Identify different local edges.For example, it is necessary to identify the edge of light source in the embodiment of the present application, therefore, can be according to identification Object characteristic, select suitable wave filter, the parameter of corresponding CANNY be set, to obtain the side of described image to be detected Edge image.
In step 203, a kind of possible implementation, the user equipment determine first from the edge image Edge and second edge, including:
The user equipment is determined from the edge image to meet the first of first shape feature according to Hough transformation Edge and the second edge for meeting the second shape facility;The first shape is characterized as straight line;Second shape facility is circle Shape, ellipse or square.
Specifically, Hough transformation is to identify one of basic skills of geometry in image procossing from image.Hough becomes Change from curve interruption and the rotating influence of figure in terms of the target of known form is examined, even if target has slightly defect or dirt Dye can be also correctly validated, and discrimination is high.Hough transformation is by the song of the given curve negotiating image space in original image space Line equation is changed into a point of parameter space, i.e., the overall permanence of detection given curve is converted into detection local characteristics.Image Each point in space on same circle, straight line or ellipse has corresponded to a figure in parameter space, empty in image Between in these points on same curves all meet their corresponding equations, therefore, obtained after each spot projection in these points Image can all intersect at a point in parameter space.So when this crosspoint in parameter space it is more if, show Meet that the figure of this parameter is fuller in artwork image space, confidence level is higher.
In the embodiment of the present application, using Hough transformation, from the edge image, determine to meet in the edge image The first edge and second edge of the parameter models such as straight line, circle, ellipse.
Under common shooting, video state, to ensure picture quality, the light source occurred in image is usually apart from camera lens Light source farther out, and then in the edge image, circle that the edge of the artificial light source should be, ellipse, square etc. are closed Close curve.In the embodiment of the present application, the edge closed curve such as circular, oval, square determined is as first edge.This Apply in embodiment, using linear edge as second edge.
As shown in figure 3, it is a kind of dirty image to be detected of detector lens provided by the embodiments of the present application.In the image, Artificial light source corresponds to first edge 301 and corresponds to second edge 302 for a circle, diffraction pattern, straight to intersect with artificial light source Line edge.As shown in figure 4, the artificial light source and diffraction pattern that are determined for the user equipment according to CANNY edges convolution algorithm Edge image.According to Hough transformation, the user equipment can determine that first edge 301 is a circular edges in described image Edge, second edge 302 are linear edge.
In step 204, the brightness of artificial light source on the image is larger, can distinguish artificial light source and its according to brightness His object.Therefore, the first edge that brightness is more than threshold value in the first edge in the edge image is the image to be monitored In artificial light source;If it can be determined near light source there are the diffraction phenomena of artificial light source in the edge image The second edge that brightness is more than threshold value is the diffraction pattern of the artificial light source.According to the above method, the user equipment can be with Determine that the first edge 301 in Fig. 4 corresponds to artificial light source, second edge 302 corresponds to the diffraction pattern of the artificial light source.
In the specific implementation process of diffraction pattern of artificial light source is judged, in the following manner can be included:
A kind of possible implementation, the user equipment determine the first edge with the second edge at least partly Overlap, including:
The user equipment determines that the first edge is at least partly overlapped with first area, it is determined that the first edge At least partly overlapped with the second edge;The first area is the second edge area defined, and described first The brightness value of pixel in region is more than the predetermined threshold value.
A kind of possible implementation, the user equipment determine the first edge with the second edge at least partly Overlap, including:
The user equipment determines that second area is at least partly overlapped with first area, it is determined that the first edge and institute Second edge is stated at least partly to overlap;The first area is the second edge area defined, and the first area In the brightness value of pixel be more than the predetermined threshold value;The region that the second area is made of the second edge, and institute The brightness value for stating the pixel in second area is more than the predetermined threshold value.
Under normal conditions, the brightness value that the pixel where the light source in image is shown on a display screen is maximum, because This, in specific implementation process, the scope of the predetermined threshold value is 250-255.
A kind of possible implementation, the user equipment determine to shoot the camera lens of described image to be detected there are it is dirty it Afterwards, including:
The user equipment display reminding information, the prompt message are used to prompt the camera lens for shooting described image to be detected There are dirty.
In specific implementation process, the user equipment can be reminded in the photograph preview interface of the user equipment and used Family:Camera lens please wipe camera lens there are dirty;Wiping can use cotton cloth, facial tissue etc. to wipe manually, or by camera lens certainly Dynamic wiping arrangement wipes camera lens.
As shown in figure 5, the embodiment of the present application provides a kind of dirty method of detector lens, comprise the following steps:
Step 501, user equipment determine that camera lens opens preview mode;
Step 502, the user equipment judge current lightness environment whether be artificial light source environment;If so, then hold Row step 503, otherwise, performs step 508;
Step 503, obtain stable image to be detected;
Step 504, the user equipment obtain edge image according to CANNY edges convolution algorithm, and according to Hough transformation, Determine the first edge and second edge in the edge image;
Step 505, the user equipment judge the brightness value of the corresponding pixel of the first edge and the second edge Whether the brightness value of corresponding pixel is more than predetermined threshold value, and the first edge is at least partly overlapped with the second edge, If so, then go to step 506;Otherwise, step 508 is gone to;
Step 506, the user equipment determine to shoot the camera lens of described image to be detected, and there are dirty;
Step 507, the user equipment are in the dirty prompting of image preview interface display camera lens;
Step 508, the user equipment are according to the shooting instruction shooting image of user.
As shown in fig. 6, the embodiment of the present application provides a kind of dirty device of detector lens.
The device 600, including:
Receiving unit 601, for obtaining image to be detected;
Processing unit 602, for carrying out edge detection to described image to be detected according to edge convolution algorithm, obtains edge Image;First edge and second edge are determined from the edge image;If it is determined that the corresponding pixel of the first edge Brightness value and the brightness value of the corresponding pixel of the second edge are more than predetermined threshold value, and the first edge and second side Edge at least partly overlaps, it is determined that shooting the camera lens of described image to be detected, there are dirty.
A kind of possible implementation, processing unit 602, is specifically used for:
Determine that the first edge is at least partly overlapped with first area, it is determined that the first edge and second side Edge at least partly overlaps;The first area is the second edge area defined, and the pixel in the first area Brightness value be more than the predetermined threshold value.
A kind of possible implementation, processing unit 602, is specifically used for:
Determine that second area is at least partly overlapped with first area, it is determined that the first edge and the second edge are extremely Small part overlaps;The first area is the second edge area defined, and the pixel in the first area is bright Angle value is more than the predetermined threshold value;The region that the second area is made of the second edge, and in the second area The brightness value of pixel be more than the predetermined threshold value.
A kind of possible implementation, processing unit 602, is specifically used for:
The first edge determining from the edge image to meet first shape feature according to Hough transformation and meet the The second edge of two shape facilities;The first shape is characterized as straight line;Second shape facility for circular, ellipse or It is square.
The embodiment of the present application provides a kind of computer-readable recording medium, including computer-readable instruction, works as computer When reading and performing the computer-readable instruction so that computer performs the method described in above-mentioned any one.
The embodiment of the present application provides a kind of computer program product, including computer-readable instruction, when computer is read And perform the computer-readable instruction so that computer performs the method as described in above-mentioned any one.
The embodiment of the present application provides a kind of chip, and the chip is connected with memory, for reading and performing the storage The software program stored in device, to realize the method in any of the above-described in various possible designs.
In conclusion the embodiment of the present application provides the dirty method and device of kind detector lens, set by user It is standby to obtain image to be detected;The user equipment carries out edge detection according to edge convolution algorithm to described image to be detected, obtains Obtain edge image;The user equipment determines first edge and second edge from the edge image;The user equipment If it is determined that the brightness value of the corresponding pixel of the first edge is more than predetermined threshold value, and overlapped with predeterminable area, it is determined that shooting There are dirty for the camera lens of described image to be detected;The predeterminable area is the second edge area defined and described pre- If the brightness value of the pixel in region is more than the predetermined threshold value.Realize that automatic identification camera lens is dirty, solve in the prior art User can not know camera lens it is whether dirty cause user take pictures experience difference the problem of.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or square frame in journey and/or square frame and flowchart and/or the block diagram.These computer programs can be provided The processors of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices, which produces, to be used in fact The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided and is used for realization in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a square frame or multiple square frames
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation Property concept, then can make these embodiments other change and modification.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into all change and modification of the application scope.
Obviously, those skilled in the art can carry out the application essence of the various modification and variations without departing from the application God and scope.In this way, if these modifications and variations of the application belong to the scope of the application claim and its equivalent technologies Within, then the application is also intended to comprising including these modification and variations.

Claims (11)

1. a kind of dirty method of detector lens, it is characterised in that including:
User equipment obtains image to be detected;
The user equipment carries out edge detection according to edge convolution algorithm to described image to be detected, obtains edge image;
The user equipment determines first edge and second edge from the edge image;
The user equipment is if it is determined that the brightness value and the corresponding pixel of the second edge of the corresponding pixel of the first edge Brightness value be more than predetermined threshold value, and the first edge is at least partly overlapped with the second edge, it is determined that described in shooting There are dirty for the camera lens of image to be detected.
2. the method as described in claim 1, it is characterised in that the user equipment determines the first edge and described second Edge at least partly overlaps, including:
The user equipment determines that the first edge is at least partly overlapped with first area, it is determined that the first edge and institute Second edge is stated at least partly to overlap;The first area is the second edge area defined, and the first area In the brightness value of pixel be more than the predetermined threshold value.
3. the method as described in claim 1, it is characterised in that the user equipment determines the first edge and described second Edge at least partly overlaps, including:
The user equipment determines that second area and first area at least partly overlap, it is determined that the first edge and described the Two edges at least partly overlap;The first area is the second edge area defined, and in the first area The brightness value of pixel is more than the predetermined threshold value;The region that the second area is made of the second edge, and described The brightness value of pixel in two regions is more than the predetermined threshold value.
4. the method as described in claim 1, it is characterised in that the user equipment determines first from the edge image Edge and second edge, including:
The user equipment determines from the edge image first edge for meeting first shape feature according to Hough transformation With the second edge for meeting the second shape facility;The first shape is characterized as straight line;Second shape facility is circular, ellipse It is circular or square.
5. the method as described in claim 1, it is characterised in that the user equipment obtains image to be detected, including:
The user equipment adjusts automatic exposure, white balance and the focusing of the camera lens of the user equipment, and in the definite mirror After automatic exposure, white balance and the focusing of head are stable state, the image shot by the camera lens is used as described to be checked Altimetric image.
6. such as claim 1-5 any one of them methods, it is characterised in that the scope of the predetermined threshold value is 250-255.
7. such as claim 1-5 any one of them methods, it is characterised in that the user equipment determines to shoot described to be detected The camera lens of image there are after dirty, including:
The user equipment display reminding information, the camera lens that the prompt message is used to prompt to shoot described image to be detected exist It is dirty.
A kind of 8. dirty device of detector lens, it is characterised in that including:
Receiving unit, for obtaining image to be detected;
Processing unit, for carrying out edge detection to described image to be detected according to edge convolution algorithm, obtains edge image;From First edge and second edge are determined in the edge image;If it is determined that the brightness value of the corresponding pixel of the first edge and The brightness value of the corresponding pixel of the second edge is more than predetermined threshold value, and the first edge and the second edge at least portion Point overlap, it is determined that shooting the camera lens of described image to be detected, there are dirty.
9. device as claimed in claim 8, it is characterised in that the processing unit, is specifically used for:
Determine that the first edge is at least partly overlapped with first area, it is determined that the first edge and the second edge are extremely Small part overlaps;The first area is the second edge area defined, and the pixel in the first area is bright Angle value is more than the predetermined threshold value.
10. device as claimed in claim 8, it is characterised in that the processing unit, is specifically used for:
Determine that second area is at least partly overlapped with first area, it is determined that the first edge and the second edge at least portion Divide and overlap;The first area is the second edge area defined, and the brightness value of the pixel in the first area More than the predetermined threshold value;The region that the second area is made of the second edge, and the picture in the second area The brightness value of element is more than the predetermined threshold value.
11. device as claimed in claim 8, it is characterised in that the processing unit, is specifically used for:
The first edge determining from the edge image to meet first shape feature according to Hough transformation and meet the second shape The second edge of shape feature;The first shape is characterized as straight line;Second shape facility is circular, ellipse or side Shape.
CN201711132091.4A 2017-11-15 2017-11-15 A kind of dirty method and device of detector lens Pending CN107945158A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711132091.4A CN107945158A (en) 2017-11-15 2017-11-15 A kind of dirty method and device of detector lens

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711132091.4A CN107945158A (en) 2017-11-15 2017-11-15 A kind of dirty method and device of detector lens

Publications (1)

Publication Number Publication Date
CN107945158A true CN107945158A (en) 2018-04-20

Family

ID=61932341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711132091.4A Pending CN107945158A (en) 2017-11-15 2017-11-15 A kind of dirty method and device of detector lens

Country Status (1)

Country Link
CN (1) CN107945158A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110475063A (en) * 2019-08-01 2019-11-19 Oppo广东移动通信有限公司 Image-pickup method and device and storage medium
CN110738629A (en) * 2018-07-02 2020-01-31 中兴通讯股份有限公司 lens contamination detection method, terminal and computer readable storage medium
CN110766679A (en) * 2019-10-25 2020-02-07 普联技术有限公司 Lens contamination 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
CN111374608A (en) * 2018-12-29 2020-07-07 尚科宁家(中国)科技有限公司 Dirt detection method, device, equipment and medium for lens of sweeping robot
CN111405177A (en) * 2020-03-09 2020-07-10 Oppo广东移动通信有限公司 Image processing method, terminal and computer readable storage medium
CN111435544A (en) * 2019-01-14 2020-07-21 珠海格力电器股份有限公司 Picture processing method and device
CN112069974A (en) * 2020-09-02 2020-12-11 安徽铜峰电子股份有限公司 Image recognition method and system for recognizing defects of components
CN112862832A (en) * 2020-12-31 2021-05-28 重庆盛泰光电有限公司 Dirt detection method based on concentric circle segmentation positioning
CN114441543A (en) * 2022-02-22 2022-05-06 江苏新亚勘测设计有限公司 Real-time monitoring device for building state

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104143185A (en) * 2014-06-25 2014-11-12 东软集团股份有限公司 Blemish zone detecting method
TWI576648B (en) * 2015-09-03 2017-04-01 宏碁股份有限公司 Image capturing apparatus and image capturing method
CN106575366A (en) * 2014-07-04 2017-04-19 光实验室股份有限公司 Methods and apparatus relating to detection and/or indicating a dirty lens condition
CN106603909A (en) * 2016-11-25 2017-04-26 努比亚技术有限公司 Method for realizing focusing and apparatus thereof
CN106791804A (en) * 2016-11-23 2017-05-31 歌尔股份有限公司 For the smear detecting method and device of camera module

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104143185A (en) * 2014-06-25 2014-11-12 东软集团股份有限公司 Blemish zone detecting method
CN106575366A (en) * 2014-07-04 2017-04-19 光实验室股份有限公司 Methods and apparatus relating to detection and/or indicating a dirty lens condition
TWI576648B (en) * 2015-09-03 2017-04-01 宏碁股份有限公司 Image capturing apparatus and image capturing method
CN106791804A (en) * 2016-11-23 2017-05-31 歌尔股份有限公司 For the smear detecting method and device of camera module
CN106603909A (en) * 2016-11-25 2017-04-26 努比亚技术有限公司 Method for realizing focusing and apparatus thereof

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
A. YAMASHITA 等: "Removal of adherent waterdrops from images acquired with stereo camera", 《2005 IEEE/RSJ INTERNATIONAL CONFERENCE ON INTELLIGENT ROBOTS AND SYSTEMS》 *
MICHELE BOUSQUET著: "《精通3D Studio Max R3》", 30 November 2000 *
侯春雨: "基于边缘散焦模型的污点检测算法的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
郑南宁 著: "《计算机视觉与模式识别》", 31 March 1998 *
颜志刚 主编: "《摄影技艺教程》", 30 November 2013 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110738629A (en) * 2018-07-02 2020-01-31 中兴通讯股份有限公司 lens contamination detection method, terminal and computer readable storage medium
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
CN111374608A (en) * 2018-12-29 2020-07-07 尚科宁家(中国)科技有限公司 Dirt detection method, device, equipment and medium for lens of sweeping robot
CN111374608B (en) * 2018-12-29 2021-08-03 尚科宁家(中国)科技有限公司 Dirt detection method, device, equipment and medium for lens of sweeping robot
CN111435544A (en) * 2019-01-14 2020-07-21 珠海格力电器股份有限公司 Picture processing method and device
CN110475063B (en) * 2019-08-01 2021-03-16 Oppo广东移动通信有限公司 Image acquisition method and device, and storage medium
CN110475063A (en) * 2019-08-01 2019-11-19 Oppo广东移动通信有限公司 Image-pickup method and device and storage medium
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
CN111405177A (en) * 2020-03-09 2020-07-10 Oppo广东移动通信有限公司 Image processing method, terminal and computer readable storage medium
CN111405177B (en) * 2020-03-09 2021-09-24 Oppo广东移动通信有限公司 Image processing method, terminal and computer-readable storage medium
CN112069974A (en) * 2020-09-02 2020-12-11 安徽铜峰电子股份有限公司 Image recognition method and system for recognizing defects of components
CN112069974B (en) * 2020-09-02 2023-04-18 安徽铜峰电子股份有限公司 Image recognition method and system for recognizing defects of components
CN112862832A (en) * 2020-12-31 2021-05-28 重庆盛泰光电有限公司 Dirt detection method based on concentric circle segmentation positioning
CN112862832B (en) * 2020-12-31 2022-07-12 盛泰光电科技股份有限公司 Dirt detection method based on concentric circle segmentation positioning
CN114441543A (en) * 2022-02-22 2022-05-06 江苏新亚勘测设计有限公司 Real-time monitoring device for building state

Similar Documents

Publication Publication Date Title
CN107945158A (en) A kind of dirty method and device of detector lens
JP7015374B2 (en) Methods for image processing using dual cameras and mobile terminals
US8503818B2 (en) Eye defect detection in international standards organization images
CN113766125B (en) Focusing method and device, electronic equipment and computer readable storage medium
US10805508B2 (en) Image processing method, and device
JP4416795B2 (en) Correction method
CN106604005B (en) A kind of projection TV Atomatic focusing method and system
CN111523438A (en) Living body identification method, terminal device and electronic device
WO2011158463A1 (en) External light glare assessment device, line of sight detection device and external light glare assessment method
CN113065374B (en) Two-dimensional code identification method, device and equipment
CN116503414B (en) Screen defect detection method, device, computer equipment and storage medium
CN107820013A (en) A kind of photographic method and terminal
US20170359508A1 (en) Capturing apparatus and method for capturing images using the capturing apparatus
US9338354B2 (en) Motion blur estimation and restoration using light trails
JP2013140428A (en) Edge detection device, edge detection program, and edge detection method
CN111476747A (en) System and method for eliminating ghost image in under-screen imaging
CN113256523A (en) Image processing method and apparatus, medium, and computer device
CN113221619A (en) Face image highlight removing method and system based on Poisson reconstruction and storage medium thereof
CN112532891A (en) Photographing method and device
CN108052883A (en) User's photographic method, device and equipment
CN118397664B (en) Method and device for detecting fingerprint residues of shell
US9900503B1 (en) Methods to automatically fix flash reflection at capture time
CN105791689A (en) An image processing method and device
CN111800579A (en) Lens focusing method and system and related equipment
CN111127537A (en) Method and apparatus for detecting shadows in a head mounted device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180420

RJ01 Rejection of invention patent application after publication