CN110163851A - The recognition methods of speck, device and computer storage medium on image - Google Patents

The recognition methods of speck, device and computer storage medium on image Download PDF

Info

Publication number
CN110163851A
CN110163851A CN201910372460.XA CN201910372460A CN110163851A CN 110163851 A CN110163851 A CN 110163851A CN 201910372460 A CN201910372460 A CN 201910372460A CN 110163851 A CN110163851 A CN 110163851A
Authority
CN
China
Prior art keywords
pixel
speck
recognized
images
denoising
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
CN201910372460.XA
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.)
Goertek Optical Technology Co Ltd
Original Assignee
Goertek Inc
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 Goertek Inc filed Critical Goertek Inc
Priority to CN201910372460.XA priority Critical patent/CN110163851A/en
Publication of CN110163851A publication Critical patent/CN110163851A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • 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
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/28Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/30Noise filtering

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention discloses recognition methods, device and the computer storage mediums of speck on a kind of image.This method comprises: carrying out denoising to images to be recognized;Binary conversion treatment is carried out to the images to be recognized for completing denoising;Speck is identified from the images to be recognized for completing binary conversion treatment.According to embodiments of the present invention, the speck in image can be identified.

Description

The recognition methods of speck, device and computer storage medium on image
Technical field
The present invention relates to technical field of image processing, more particularly, to the recognition methods of speck, device on a kind of image And computer storage medium.
Background technique
With the rapid development of artificial intelligence, the older the application scenarios of artificial intelligence also the more extensive, wherein computer vision Even more apply to the every aspect of our lives.Computer vision refers to replaces human eye to know target with video camera and computer Not, the machine vision such as tracking and measurement, and image procossing is further done, make computer be treated as being more suitable for eye-observation or transmission The image detected to instrument.Wherein, the importance of the identification branch in image procossing just highlights.It is identified in image procossing Basis be that the speck on image is identified and positioned.Therefore, it has been recognised by the inventors that needing to propose a kind of for image The knowledge method for distinguishing of speck.
Summary of the invention
One purpose of the embodiment of the present invention is to provide a kind of new solution of the identification of speck on image.
According to a first aspect of the embodiments of the present invention, a kind of recognition methods of speck on image, the method packet are provided It includes:
Denoising is carried out to images to be recognized;
Binary conversion treatment is carried out to the images to be recognized for completing denoising;
Speck is identified from the images to be recognized for completing binary conversion treatment.
Optionally, described the step of identifying speck from the images to be recognized for completing binary conversion treatment, comprising:
The all pixels point in the images to be recognized is traversed, the seat of all pixels for meeting presetted pixel value is recorded Mark;
First pixel is selected from the pixel for meeting presetted pixel value, judges first pixel Whether the pixel value of the second pixel on preset direction meets the presetted pixel value;
If satisfied, recording the coordinate of second pixel;
Using second pixel as the first pixel, on the preset direction for executing judgement first pixel The pixel value of the second pixel the step of whether meeting the presetted pixel value, until judging result is to be unsatisfactory for;
If not satisfied, all first pixels are determined as a speck.
Optionally, after described the step of first pixel is determined as a speck, further includes:
According to the coordinate of the first pixels all in the speck, the area size of the speck is calculated.
Optionally, after described the step of first pixel is determined as a speck, further includes:
Repeat described one the first pixel of selection from the coordinate of the pixel for meeting presetted pixel value Step, until traversing all pixels for meeting presetted pixel value.
Optionally, the step of binary conversion treatment being carried out to the images to be recognized for completing denoising, comprising:
Traversal completes the pixel of the images to be recognized of denoising, by the picture for the pixel that each pixel value is 0 Plain value is set as 255, sets 0 for the pixel value that each pixel value is non-zero pixel.
Optionally, described the step of denoising is carried out to images to be recognized, comprising:
Denoising is filtered to the images to be recognized using Gaussian filter;
Threshold denoising processing is carried out to the images to be recognized for completing filtering and noise reduction processing.
Optionally, the step of described pair of images to be recognized for completing filtering and noise reduction processing carries out threshold denoising processing, Include:
Traversal completes each pixel in the images to be recognized of filtering and noise reduction processing, meets presetted pixel for each The pixel value of the pixel of threshold value carries out reversed;Each pixel value for not meeting the presetted pixel threshold value is kept into initial value.
According to a second aspect of the embodiments of the present invention, a kind of identification device of speck on image, described device packet are provided It includes:
Denoising module, for carrying out denoising to images to be recognized;
Binary processing module, for carrying out binary conversion treatment to the images to be recognized for completing denoising;
Identification module, for identifying speck from the images to be recognized for completing binary conversion treatment.
According to a third aspect of the embodiments of the present invention, a kind of identification device of speck on image, described device packet are provided Include: memory and processor, the memory is for storing instruction;Described instruction is operated for controlling the processor, To execute the recognition methods of speck on the image as described in any one of first aspect present invention.
According to a fourth aspect of the embodiments of the present invention, a kind of computer storage medium is provided, computer is stored thereon with Program, the computer program are realized when being executed by processor on the image as described in any one of first aspect present invention The recognition methods of speck.
A beneficial effect of the invention is, can identify the speck in image.
By referring to the drawings to the detailed description of exemplary embodiment of the present invention, other feature of the invention and its Advantage will become apparent.
Detailed description of the invention
It is combined in the description and the attached drawing for constituting part of specification shows the embodiment of the present invention, and even With its explanation together principle for explaining the present invention.
Fig. 1 is the composed structure schematic diagram according to the client of the embodiment of the present invention.
Fig. 2 is the flow diagram of the recognition methods of speck on image according to an embodiment of the present invention.
Fig. 3 is the schematic diagram of images to be recognized.
Fig. 4 is the schematic diagram that the images to be recognized of filtering and noise reduction processing is completed in step 2100.
Fig. 5 is the schematic diagram that the images to be recognized of threshold denoising processing is completed in step 2100.
Fig. 6 is the schematic diagram of the induced current performance of imaging sensor in the picture.
Fig. 7 is schematic diagram of the image after binary conversion treatment in Fig. 6.
Fig. 8 is the schematic diagram that the images to be recognized of binary conversion treatment is completed in step 2200 of the present invention.
Fig. 9 is the schematic diagram of preset direction in step 2300 of the present invention.
Figure 10 is the structural schematic diagram of the identification device 3000 of speck on image according to the present invention.
Figure 11 is the hardware structural diagram of the identification device 4000 of speck on image according to another embodiment.
Specific embodiment
Carry out the various exemplary embodiments of detailed description of the present invention now with reference to attached drawing.It should also be noted that unless in addition having Body explanation, the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally The range of invention.
Be to the description only actually of at least one exemplary embodiment below it is illustrative, never as to the present invention And its application or any restrictions used.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable In the case of, the technology, method and apparatus should be considered as part of specification.
It is shown here and discuss all examples in, any occurrence should be construed as merely illustratively, without It is as limitation.Therefore, other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
In the following, describing each embodiment according to an embodiment of the present invention and example with reference to the accompanying drawings.
<hardware configuration>
Fig. 1 is the block diagram for showing the hardware configuration for the client 1000 that can be used for realizing the embodiment of the present invention.
According to Fig. 1, the client 1000 of the present embodiment can be portable computer, desktop computer, tablet computer Deng.
As shown in Figure 1, client 1000 may include processor 1010, memory 1020, interface arrangement 1030, communication dress Set 1040, display device 1050, input unit 1060, loudspeaker 1070, microphone 1080, etc..
Wherein, processor 1010 can be central processor CPU, Micro-processor MCV etc..Memory 1020 for example including ROM (read-only memory), RAM (random access memory), nonvolatile memory of hard disk etc..Interface arrangement 1030 It such as include USB interface, earphone interface.Communication device 1040 is for example able to carry out wired or wireless communication.Display device 1050 E.g. liquid crystal display, touch display screen etc..Input unit 1060 is such as may include touch screen, keyboard.User can be with Pass through 1080 inputting/outputting voice information of loudspeaker 1070 and microphone.
In the embodiment, for storing instruction, which is used for control processor to the memory 1020 of client 1000 1010 are operated at least to execute the recognition methods of speck on the image of any embodiment according to the present invention.Those skilled in the art Member is it will be appreciated that though be shown in FIG. 1 multiple devices of client 1000, and still, the present invention can only relate to therein Partial devices, for example, client 1000 pertains only to memory 1020, processor 1010 and display device 1050.Technical staff It can disclosed conceptual design instruction according to the present invention.How control processor is operated for instruction, this is it is known in the art that event It is not described in detail herein.
<method>
Fig. 2 is the flow diagram of the recognition methods of speck on image according to an embodiment of the present invention.This method can be by Client 1000 is implemented.
According to Fig.2, the recognition methods of speck may include: on the image of the present embodiment
Step 2100, denoising is carried out to images to be recognized.
Wherein, the images to be recognized for example can be as shown in Figure 3.In this step, client 1000 to it is described to When identifying that image carries out denoising, filtering and noise reduction processing can be first carried out, then carry out threshold denoising processing.
Specifically, Gaussian filter, which can be used, in client 1000 is filtered denoising to the images to be recognized. For example, client 1000 traverses the corresponding pixel value of pixel each in the images to be recognized using the matrix of 3*3 It is multiplied, using the value after each pixel and 3*3 matrix multiple as the pixel value after filtering and noise reduction, removal is taken due to camera Noise caused by master drawing piece is not sharp keen enough, to complete filtering and noise reduction processing, as shown in Figure 4.
After completing filtering and noise reduction processing, 1000 pairs of the client images to be recognized for completing filtering and noise reduction processing are carried out Threshold denoising processing.Specifically, clarification of objective can be searched according to pre-, the upper limit and/or lower limit of presetted pixel threshold value are set, Traversal completes each pixel in the images to be recognized of filtering and noise reduction processing, by each picture for meeting presetted pixel threshold value The pixel value of vegetarian refreshments carries out reversed;Each pixel value for not meeting the presetted pixel threshold value is kept into initial value.
For example, pre- lookup target in the present embodiment is speck, this is default, and to look for clarification of objective be brightness, setting it is pre- If the lower limit of pixel threshold is, for example, 155.As shown in figure 5, client traverses each pixel in the images to be recognized, by it The pixel value of all pixels point of the middle pixel value greater than 155 carries out reversely, being set as 0 value, the institute by wherein pixel value less than 155 There is the pixel value of pixel to keep initial value.To prepare for the speck in prominent image in next step.
Step 2200, binary conversion treatment is carried out to the images to be recognized for completing denoising.
It should be noted that the induced current of imaging sensor shows it should is 0 value on pixel value under total darkness environment, But in practical application, there are a dark current for imaging sensor, that is, the induced current performance of imaging sensor under total darkness environment It is non-zero but relatively small value on pixel value, such as 9,16, etc., it can be different due to the difference of imaging sensor.
Such as shown in Fig. 6, grayish pixel, as image wherein is presented between black pixel point and white pixel point The performance of the induced current of sensor in the picture shows the image carried out after binary conversion treatment to Fig. 6 in Fig. 7, can will Speck is shown as perfect condition.
In the step 220, it is contemplated that the dark current of imaging sensor, the traversal of client 1000 complete denoising The pixel of the images to be recognized, the pixel value by each pixel value for 0 pixel is set as 255, by each pixel value It is set as 0 for the pixel value of non-zero pixel, it as shown in Figure 8, can be significantly aobvious by the speck in shown images to be recognized Reveal and.
In step 2300, speck is identified from the images to be recognized for completing binary conversion treatment.
In this step, client 1000 traverses all pixels point in the images to be recognized, records all meet in advance If the pixel of pixel value, is denoted as A.First pixel is selected from A, on the preset direction for judging first pixel The pixel value of the second pixel whether meet the presetted pixel value.If satisfied, recording the coordinate of second pixel;It will Second pixel executes the second pixel on the preset direction of judgement first pixel as the first pixel The step of whether pixel value of point meets the presetted pixel value, until judging result is to be unsatisfactory for;If not satisfied, by all One pixel is determined as a speck.
For example, presetted pixel value is 255 values, preset direction is, for example, eight directions shown in Fig. 9: upper and lower, left and right, Upper left, lower-left, upper right and bottom right.Client 1000 judges corresponding pixel value to the pixel value of the pixel in each direction respectively Whether meet 255 values, record the corresponding coordinate of the pixel if meeting, while continuing to use the pixel to eight default sides To lookup, until on eight directions other than the pixel searched being exactly the pixel of 0 value, i.e., above-mentioned judgement knot Fruit is when being unsatisfactory for, and client 1000 thinks that all pixels searched point forms a speck in flakes, that is, by all the One pixel is determined as a speck.
Further, it can be indicated in the technological document of imaging sensor due to the size of pixel, client 1000 after being determined as a speck for the first all pixels, can also be according to the first pixels all in the speck Quantity, the area size of the speck is calculated.Alternatively, client 1000 can also be according in the speck all first The area size of the speck is calculated in the coordinate of pixel.
Further, client 1000 can also repeat to hold after all first pixels are determined as a speck It goes above-mentioned the step of first pixel is selected from the coordinate of the pixel for meeting presetted pixel value, until traversal institute There is the pixel for meeting presetted pixel value, obtain multiple specks, that is, client 1000 can determine the number of speck in image Amount.
According to the recognition methods of speck on the image of the present embodiment, by carrying out denoising to images to be recognized;To complete Binary conversion treatment is carried out at the images to be recognized of denoising, and from the images to be recognized for completing binary conversion treatment It identifies speck, can identify the quantity of the speck and speck in image, and client is also based on pixel in speck The quantity of point, is calculated the area size of speck.
<device>
Figure 10 is the structural schematic diagram of the identification device 3000 of speck on image according to the present invention.
According to Fig.10, the identification device 3000 of speck may include: denoising module 3100, two-value on the image Change processing module 3200 and identification module 3300.
Denoising module 3100 can be used for carrying out denoising to images to be recognized.
Binary processing module 3200 can be used for carrying out at binaryzation the images to be recognized for completing denoising Reason.
Identification module 3300 can be used for identifying speck from the images to be recognized for completing binary conversion treatment.
Wherein, the identification module 3300 specifically can be used for: traversing all pixels point in the images to be recognized, remembers Record the coordinate of all pixels for meeting presetted pixel value;One first is selected from the pixel for meeting presetted pixel value Pixel, judges whether the pixel value of the second pixel on the preset direction of first pixel meets the presetted pixel Value;If satisfied, recording the coordinate of second pixel;Using second pixel as the first pixel, sentence described in execution The step of whether pixel value of the second pixel on the preset direction of first pixel of breaking meets the presetted pixel value, Until judging result is to be unsatisfactory for;If not satisfied, all first pixels are determined as a speck.
Further, the identification module 3300 can be also used for the number according to the first pixels all in the speck Amount, is calculated the area size of the speck.
Further, the identification module 3300 can be also used for repeating described from the presetted pixel value that meets The operation of first pixel is selected in the coordinate of pixel, until traversing all pixels for meeting presetted pixel value Point.
Specifically, the binary processing module 3200 is used to traverse the picture for the images to be recognized for completing denoising Vegetarian refreshments, the pixel value by each pixel value for 0 pixel are set as 255, are the pixel of non-zero pixel by each pixel value Value is set as 0.
The images to be recognized is carried out specifically, the denoising module 3100 is used for Gaussian filter Filtering and noise reduction processing;Threshold denoising processing is carried out to the images to be recognized for completing filtering and noise reduction processing.
Wherein, 3100 pairs of the denoising module images to be recognized progress threshold values for completing filtering and noise reduction processing are gone It makes an uproar processing, can specifically traverse each pixel in the images to be recognized for completing filtering and noise reduction processing, meet each The pixel value of the pixel of presetted pixel threshold value carries out reversed;Each pixel value for not meeting the presetted pixel threshold value is kept Initial value.
The identification device of speck on the image of the present embodiment, can be used for executing the technical solution of above method embodiment, The realization principle and technical effect are similar, and details are not described herein again.
Figure 11 is the hardware structural diagram of the identification device 4000 of speck on image according to another embodiment.
According to Figure 11, the identification device 4000 of speck may include memory 4200 and place on the image of the present embodiment Manage device 4100.
For storing instruction, which is operated for control processor 4100 to execute the present invention and appoint memory 4200 The recognition methods of speck on the image for embodiment of anticipating.
Technical staff can disclosed conceptual design instruction according to the present invention.How control processor is operated for instruction, This is it is known in the art that therefore being not described in detail herein.
<computer storage medium>
In the present embodiment, a kind of computer storage medium is also provided, is stored thereon with computer program, the computer journey Sequence realizes the recognition methods of speck on the image as described in above method embodiment when being executed by processor.
It, can be by software, hardware and software and hard it will be appreciated by those skilled in the art that in electronic technology field The above method is embodied those skilled in the art in the product and is easy to the side based on inventive embodiments above by the mode that part combines Method, generates a kind of information processing unit, and the information processing unit includes for executing the information processing according to above-described embodiment The module of each operation in method.
It is well known by those skilled in the art that the development of the electronic information technology with such as large scale integrated circuit technology With the trend of hardware and software, clearly to divide computer system soft and hardware boundary has seemed relatively difficult.Because appointing What operation can be realized with software, can also be realized by hardware.The execution of any instruction can be completed by hardware, equally may be used To be completed by software.Hardware implementations or software implement scheme are used for a certain machine function, depend on price, speed The Non-technical factors such as degree, reliability, memory capacity, change cycle.For the technician, software realization mode and hardware It is achieved in that equivalent.Technical staff can according to need selection software or hardware to realize above scheme.Therefore, here not Specific software or hardware are limited.
The present invention can be equipment, method and/or computer program product.Computer program product may include computer Readable storage medium storing program for executing, containing for making processor realize the computer-readable program instructions of various aspects of the invention.
Computer readable storage medium, which can be, can keep and store the tangible of the instruction used by instruction execution equipment Equipment.Computer readable storage medium for example can be-- but it is not limited to-- storage device electric, magnetic storage apparatus, optical storage Equipment, electric magnetic storage apparatus, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer readable storage medium More specific example (non exhaustive list) includes: portable computer diskette, hard disk, random access memory (RAM), read-only deposits It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable Compact disk read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon It is stored with punch card or groove internal projection structure and the above-mentioned any appropriate combination of instruction.Calculating used herein above Machine readable storage medium storing program for executing is not interpreted that instantaneous signal itself, the electromagnetic wave of such as radio wave or other Free propagations lead to It crosses the electromagnetic wave (for example, the light pulse for passing through fiber optic cables) of waveguide or the propagation of other transmission mediums or is transmitted by electric wire Electric signal.
Computer-readable program instructions as described herein can be downloaded to from computer readable storage medium it is each calculate/ Processing equipment, or outer computer or outer is downloaded to by network, such as internet, local area network, wide area network and/or wireless network Portion stores equipment.Network may include copper transmission cable, optical fiber transmission, wireless transmission, router, firewall, interchanger, gateway Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment In calculation machine readable storage medium storing program for executing.
Computer program instructions for executing operation of the present invention can be assembly instruction, instruction set architecture (ISA) instructs, Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming languages The source code or object code that any combination is write, the programming language include the programming language-of object-oriented such as Smalltalk, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer Readable program instructions can be executed fully on the user computer, partly execute on the user computer, be only as one Vertical software package executes, part executes on the remote computer or completely in remote computer on the user computer for part Or it is executed on server.In situations involving remote computers, remote computer can pass through network-packet of any kind It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).In some embodiments, by utilizing computer-readable program instructions Status information carry out personalized customization electronic circuit, such as programmable logic circuit, field programmable gate array (FPGA) or can Programmed logic array (PLA) (PLA), the electronic circuit can execute computer-readable program instructions, to realize each side of the invention Face.
Referring herein to according to the method for the embodiment of the present invention, the flow chart of device (system) and computer program product and/ Or block diagram describes various aspects of the invention.It should be appreciated that flowchart and or block diagram each box and flow chart and/ Or in block diagram each box combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to general purpose computer, special purpose computer or other programmable datas The processor of processing unit, so that a kind of machine is produced, so that these instructions are passing through computer or other programmable datas When the processor of processing unit executes, function specified in one or more boxes in implementation flow chart and/or block diagram is produced The device of energy/movement.These computer-readable program instructions can also be stored in a computer-readable storage medium, these refer to It enables so that computer, programmable data processing unit and/or other equipment work in a specific way, thus, it is stored with instruction Computer-readable medium then includes a manufacture comprising in one or more boxes in implementation flow chart and/or block diagram The instruction of the various aspects of defined function action.
Computer-readable program instructions can also be loaded into computer, other programmable data processing units or other In equipment, so that series of operation steps are executed in computer, other programmable data processing units or other equipment, to produce Raw computer implemented process, so that executed in computer, other programmable data processing units or other equipment Instruct function action specified in one or more boxes in implementation flow chart and/or block diagram.
The flow chart and block diagram in the drawings show the system of multiple embodiments according to the present invention, method and computer journeys The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation One module of table, program segment or a part of instruction, the module, program segment or a part of instruction include one or more use The executable instruction of the logic function as defined in realizing.In some implementations as replacements, function marked in the box It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.It is right For those skilled in the art it is well known that, by hardware mode realize, by software mode realize and pass through software and It is all of equal value that the mode of combination of hardware, which is realized,.
Various embodiments of the present invention are described above, above description is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes are obvious for the those of ordinary skill in art field.The selection of term used herein, purport In principle, the practical application or to the technological improvement in market for best explaining each embodiment, or make the art its Its those of ordinary skill can understand each embodiment disclosed herein.The scope of the present invention is defined by the appended claims.

Claims (10)

1. the recognition methods of speck on a kind of image, which is characterized in that the described method includes:
Denoising is carried out to images to be recognized;
Binary conversion treatment is carried out to the images to be recognized for completing denoising;
Speck is identified from the images to be recognized for completing binary conversion treatment.
2. the method according to claim 1, wherein described from the images to be recognized for completing binary conversion treatment In the step of identifying speck, comprising:
The all pixels point in the images to be recognized is traversed, the coordinate of all pixels for meeting presetted pixel value is recorded;
First pixel is selected from the pixel for meeting presetted pixel value, judges the default of first pixel Whether the pixel value of the second pixel on direction meets the presetted pixel value;
If satisfied, recording the coordinate of second pixel;
Using second pixel as the first pixel, the on the preset direction of judgement first pixel is executed Whether the pixel value of two pixels meets the step of presetted pixel value, until judging result is to be unsatisfactory for;
If not satisfied, all first pixels are determined as a speck.
3. according to the method described in claim 2, it is characterized in that, described be determined as a speck for first pixel After step, further includes:
According to the quantity of the first pixels all in the speck, the area size of the speck is calculated.
4. according to the method described in claim 2, it is characterized in that, described be determined as a speck for first pixel After step, further includes:
Described the step of first pixel is selected from the coordinate of the pixel for meeting presetted pixel value is repeated, Until traversing all pixels for meeting presetted pixel value.
5. the method according to claim 1, wherein carrying out two to the images to be recognized for completing denoising The step of value is handled, comprising:
Traversal completes the pixel of the images to be recognized of denoising, by the pixel value for the pixel that each pixel value is 0 255 are set as, sets 0 for the pixel value that each pixel value is non-zero pixel.
6. the method according to claim 1, wherein it is described to images to be recognized carry out denoising the step of, Include:
Denoising is filtered to the images to be recognized using Gaussian filter;
Threshold denoising processing is carried out to the images to be recognized for completing filtering and noise reduction processing.
7. according to the method described in claim 6, it is characterized in that, described pair is completed the figure to be identified that filtering and noise reduction is handled As the step of carrying out threshold denoising processing, comprising:
Traversal completes each pixel in the images to be recognized of filtering and noise reduction processing, meets presetted pixel threshold value for each Pixel pixel value carry out it is reversed;Each pixel value for not meeting the presetted pixel threshold value is kept into initial value.
8. the identification device of speck on a kind of image, which is characterized in that described device includes:
Denoising module, for carrying out denoising to images to be recognized;
Binary processing module, for carrying out binary conversion treatment to the images to be recognized for completing denoising;
Identification module, for identifying speck from the images to be recognized for completing binary conversion treatment.
9. the identification device of speck on a kind of image, which is characterized in that described device includes: memory and processor, described to deposit Reservoir is for storing instruction;Described instruction is operated for controlling the processor, to execute as any in claim 1-7 The recognition methods of speck on image described in one.
10. a kind of computer storage medium, which is characterized in that be stored thereon with computer program, the computer program is in quilt The recognition methods of speck on the image as described in any one of claim 1-7 is realized when processor executes.
CN201910372460.XA 2019-05-06 2019-05-06 The recognition methods of speck, device and computer storage medium on image Pending CN110163851A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910372460.XA CN110163851A (en) 2019-05-06 2019-05-06 The recognition methods of speck, device and computer storage medium on image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910372460.XA CN110163851A (en) 2019-05-06 2019-05-06 The recognition methods of speck, device and computer storage medium on image

Publications (1)

Publication Number Publication Date
CN110163851A true CN110163851A (en) 2019-08-23

Family

ID=67633476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910372460.XA Pending CN110163851A (en) 2019-05-06 2019-05-06 The recognition methods of speck, device and computer storage medium on image

Country Status (1)

Country Link
CN (1) CN110163851A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111275042A (en) * 2020-01-21 2020-06-12 支付宝实验室(新加坡)有限公司 Counterfeit certificate identification method and device and electronic equipment
CN112102402A (en) * 2020-09-23 2020-12-18 平安科技(深圳)有限公司 Flash lamp light spot position identification method and device, electronic equipment and storage medium
CN112837292A (en) * 2021-02-04 2021-05-25 Oppo广东移动通信有限公司 Speckle searching method, terminal device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976334A (en) * 2010-10-26 2011-02-16 广东威创视讯科技股份有限公司 Anti-interference touch identification method and device
KR101334029B1 (en) * 2012-01-31 2013-11-28 (주)토탈소프트뱅크 Method for extracting muscle of head and neck and method of ROI analysis
CN107133627A (en) * 2017-04-01 2017-09-05 深圳市欢创科技有限公司 Infrared light spot center point extracting method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976334A (en) * 2010-10-26 2011-02-16 广东威创视讯科技股份有限公司 Anti-interference touch identification method and device
KR101334029B1 (en) * 2012-01-31 2013-11-28 (주)토탈소프트뱅크 Method for extracting muscle of head and neck and method of ROI analysis
CN107133627A (en) * 2017-04-01 2017-09-05 深圳市欢创科技有限公司 Infrared light spot center point extracting method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐春广等: "《回转体的结构光测量原理》", 31 January 2017, 国防工业出版社 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111275042A (en) * 2020-01-21 2020-06-12 支付宝实验室(新加坡)有限公司 Counterfeit certificate identification method and device and electronic equipment
CN112102402A (en) * 2020-09-23 2020-12-18 平安科技(深圳)有限公司 Flash lamp light spot position identification method and device, electronic equipment and storage medium
WO2021189853A1 (en) * 2020-09-23 2021-09-30 平安科技(深圳)有限公司 Flash light spot position recognition method and apparatus, and electronic device and storage medium
CN112102402B (en) * 2020-09-23 2023-08-22 平安科技(深圳)有限公司 Flash light spot position identification method and device, electronic equipment and storage medium
CN112837292A (en) * 2021-02-04 2021-05-25 Oppo广东移动通信有限公司 Speckle searching method, terminal device and storage medium

Similar Documents

Publication Publication Date Title
CN110163851A (en) The recognition methods of speck, device and computer storage medium on image
US11537277B2 (en) System and method for generating photorealistic synthetic images based on semantic information
US10424059B2 (en) Quality evaluation
US11055822B2 (en) Artificially intelligent, machine learning-based, image enhancement, processing, improvement and feedback algorithms
CN110582783B (en) Training device, image recognition device, training method, and computer-readable information storage medium
US11688061B2 (en) Interpretation of whole-slide images in digital pathology
CN110910322B (en) Picture processing method and device, electronic equipment and computer readable storage medium
WO2022068320A1 (en) Computer automated interactive activity recognition based on keypoint detection
CN109146786A (en) Scene chart generation method and device, electronic equipment and storage medium
US11782505B1 (en) Dynamic changing method and apparatus for virtual reality scene, and electronic device
US20230048386A1 (en) Method for detecting defect and method for training model
CN110460827A (en) The determination method, apparatus and computer storage medium of galvanometer working condition
US20230237777A1 (en) Information processing apparatus, learning apparatus, image recognition apparatus, information processing method, learning method, image recognition method, and non-transitory-computer-readable storage medium
CN107798675A (en) The detection method and device of smear in display image
CN108229281A (en) The generation method and method for detecting human face of neural network, device and electronic equipment
CN109086790A (en) A kind of alternative manner of disaggregated model, device and electronic equipment
WO2022005448A1 (en) Machine learning for high quality image processing
CN116721091A (en) Cloth flaw detection method, device and readable medium
CN113592074B (en) Training method, generating method and device and electronic equipment
CN111860212B (en) Super-division method, device, equipment and storage medium for face image
CN114299598A (en) Method for determining fixation position and related device
CN112907543A (en) Product appearance defect detection method based on random defect model
JP2023508639A (en) Data Augmented Based Spatial Analysis Model Learning Apparatus and Method
CN113554045A (en) Data set manufacturing method, device, equipment and storage medium
CN110599437A (en) Method and apparatus for processing video

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
TA01 Transfer of patent application right

Effective date of registration: 20201012

Address after: 261031 north of Yuqing street, east of Dongming Road, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronic office building)

Applicant after: GoerTek Optical Technology Co.,Ltd.

Address before: 261031 Dongfang Road, Weifang high tech Development Zone, Shandong, China, No. 268

Applicant before: GOERTEK Inc.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20190823

RJ01 Rejection of invention patent application after publication