CN109146855A - A kind of image mole marks detection method, terminal device and storage medium - Google Patents
A kind of image mole marks detection method, terminal device and storage medium Download PDFInfo
- Publication number
- CN109146855A CN109146855A CN201810865453.9A CN201810865453A CN109146855A CN 109146855 A CN109146855 A CN 109146855A CN 201810865453 A CN201810865453 A CN 201810865453A CN 109146855 A CN109146855 A CN 109146855A
- Authority
- CN
- China
- Prior art keywords
- detected
- image
- brightness curve
- information
- described image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 32
- 238000000034 method Methods 0.000 claims abstract description 34
- 239000000284 extract Substances 0.000 claims abstract description 10
- 238000004590 computer program Methods 0.000 claims description 24
- 238000012937 correction Methods 0.000 claims description 20
- 230000008569 process Effects 0.000 claims description 18
- 238000012545 processing Methods 0.000 claims description 13
- 238000001914 filtration Methods 0.000 claims description 5
- 230000009466 transformation Effects 0.000 claims description 5
- 238000000605 extraction Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 11
- 230000004044 response Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000003595 spectral effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000009499 grossing Methods 0.000 description 2
- 230000001788 irregular Effects 0.000 description 2
- 230000010355 oscillation Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
- G06T7/0008—Industrial image inspection checking presence/absence
-
- G06T5/90—
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
Landscapes
- Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Studio Devices (AREA)
Abstract
The application is suitable for technical field of image detection, provide a kind of image mole marks detection method, terminal device and computer readable storage medium, the described method includes: obtaining image to be detected, and extract the frequency information and amplitude information of described image to be detected, whether the frequency information and amplitude information for judging described image to be detected meet preset condition, if the frequency information and amplitude information of described image to be detected meet preset condition, it then determines in described image to be detected comprising moire fringes, the detection accuracy of moire fringes in image can be improved by the application.
Description
Technical field
The application belong to technical field of image detection more particularly to a kind of image mole marks detection method, terminal device and
Computer readable storage medium.
Background technique
Moire fringes are one kind in the equipment such as digital camera or scanner, the item for the High-frequency Interference that photosensitive element occurs
Line is a kind of irregular striped of high-frequency that picture can be made colour occur, if occurring moire fringes in image will affect image
Presentation effect.
Currently, can be handled to obtain effect of preferably taking pictures the preview image of camera to eliminate moire fringes.
However, moire fringes are irregular, and without apparent shape rule.When being detected to the moire fringes in preview image,
Often there is the problem of erroneous detection.
Summary of the invention
In view of this, the embodiment of the present application provide a kind of image mole marks detection method, terminal device and computer can
Storage medium is read, the detection accuracy to solve the problems, such as moire fringes in current image is low.
The first aspect of the embodiment of the present application provides a kind of image mole marks detection method, comprising:
Image to be detected is obtained, and extracts the frequency information and amplitude information of described image to be detected;
Whether the frequency information and amplitude information for judging described image to be detected meet preset condition;
If the frequency information and amplitude information of described image to be detected meet preset condition, it is determined that described image to be detected
In include moire fringes.
The second aspect of the embodiment of the present application provides a kind of terminal device, comprising:
Information acquisition unit for obtaining image to be detected, and extracts the frequency information and amplitude of described image to be detected
Information;
Whether judging unit, frequency information and amplitude information for judging described image to be detected meet preset condition;
Determination unit, if the frequency information and amplitude information for described image to be detected meet preset condition, it is determined that
It include moire fringes in described image to be detected.
The third aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
The step of realizing the method that the embodiment of the present application first aspect provides.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, and the computer program realizes the embodiment of the present application when being executed by one or more processors
On the one hand the step of the method provided.
5th aspect of the embodiment of the present application provides a kind of computer program product, and the computer program product includes
Computer program, the computer program realize that the embodiment of the present application first aspect provides when being executed by one or more processors
The method the step of.
The embodiment of the present application provides a kind of method that whether there is moire fringes in detection image, obtains mapping to be checked first
Picture, and the frequency information and amplitude information of described image to be detected are extracted, judge whether the frequency information and amplitude information are full
Sufficient preset condition determines that, comprising moire fringes in described image to be detected, the embodiment of the present application passes through to be checked if meeting preset condition
Frequency information and amplitude information in altimetric image determine the moire fringes in image to be detected, and can be avoided image itself, there are high frequencies
Erroneous detection when oscillation information, therefore can be improved the detection accuracy of moire fringes in image.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation process schematic diagram of image mole marks detection method provided by the embodiments of the present application;
Fig. 2 is the implementation process schematic diagram of another image mole marks detection method provided by the embodiments of the present application;
Fig. 3 is the implementation process schematic diagram of another image mole marks detection method provided by the embodiments of the present application;
Fig. 4 is a kind of schematic block diagram of terminal device provided by the embodiments of the present application;
Fig. 5 is the schematic block diagram of another terminal device provided by the embodiments of the present application.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific
The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step,
Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment
And be not intended to limit the application.As present specification and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
Fig. 1 is a kind of implementation process schematic diagram of image mole marks detection method provided by the embodiments of the present application, as schemed institute
Show that this method may comprise steps of:
Step S101 obtains image to be detected, and extracts the frequency information and amplitude information of described image to be detected.
In the embodiment of the present application, the process of the frequency information and amplitude information that extract image to be detected may is that by
The discrete distribution transformation of the gray value of detection image obtains spectral image to frequency domain, then obtains the spectral magnitude of the spectral image
Image, to obtain the frequency information and amplitude information of described image to be detected.
Step S102, judges whether the frequency information of described image to be detected and amplitude information meet preset condition.
In the embodiment of the present application, the preset condition can be preset frequecy characteristic and amplitude characteristic, judgement
Whether the frequency information and amplitude information of described image to be detected, which meet preset condition, may is that and judge described image to be detected
Whether the matching degree of frequency information and preset frequecy characteristic is greater than the first preset value, the amplitude information of described image to be detected with
Whether the matching degree of preset amplitude characteristic is greater than the second preset value, and certainly, the first preset value and the second preset value can be equal,
It can also be unequal.
Step S103, if the frequency information and amplitude information of described image to be detected meet preset condition, it is determined that described
It include moire fringes in image to be detected.
In the embodiment of the present application, preset frequecy characteristic and amplitude characteristic can be from multiple figures comprising moire fringes
The shared frequecy characteristic and amplitude characteristic extracted as in.The shared frequency of the multiple images comprising moire fringes of extraction is special
Amplitude characteristic seek peace as preset frequecy characteristic and amplitude characteristic.
The embodiment of the present application determines rubbing in image to be detected by frequency information in image to be detected and amplitude information
That line, can be avoided image itself, there are erroneous detections when higher-order of oscillation information, therefore can be improved the detection of moire fringes in image
Precision.
Fig. 2 is the flow diagram of another image mole marks detection method provided by the embodiments of the present application, and the application is real
Apply example is to describe how to obtain the process of target feature point on the basis of embodiment shown in Fig. 1, may comprise steps of:
Step S201 obtains image to be detected, a plurality of bright at least one direction from extracting in described image to be detected
It writes music line, and obtains the frequency information and amplitude information of the brightness curve.
In the embodiment of the present application, from a plurality of brightness curve extracted in described image to be detected at least one direction,
And obtain the frequency information of the brightness curve and amplitude information to can be used as be how to extract the frequency of described image to be detected
Another embodiment of information and amplitude information.The spectrogram that embodiment illustrated in fig. 1 describes the frequency domain based on image to be detected mentions
Take the frequency information and amplitude information of image to be detected.The brightness of time domain of the embodiment of the present application based on described image to be detected is bent
The frequency information and amplitude information of line drawing image to be detected.
It is bent from a plurality of brightness extracted in described image to be detected at least one direction as the another embodiment of the application
Line includes:
First direction is chosen in described image to be detected, and brightness song is extracted with the first step-length in said first direction
Line;
Second direction is confirmed in described image to be detected, and brightness song is extracted with the second step-length in this second direction
Line, wherein the second direction is vertical with the first direction.
The embodiment of the present application actually extracts brightness curve in transverse and longitudinal both direction respectively.In certain practical application,
It can also in one direction, or greater than extracting a plurality of brightness curve in both direction.
As an example, the first direction is lateral, then direction shown in transverse direction in image to be detected, according to preset step-length
(such as pixel of preset quantity) generates the straight line vertical with the first direction respectively, and the pixel on each straight line is corresponding
Brightness constitute the brightness curve of the line correspondences, in this way, generate a plurality of brightness curve in said first direction, similarly,
Second direction can be confirmed in described image to be detected, and brightness curve is extracted with the second step-length in this second direction,
Wherein the second direction is vertical with the first direction.
The process of the frequency information for obtaining the brightness curve may is that it is more for being evenly dividing the brightness curve
A brightness curve segment (i.e. the fixed brightness curve segment of length), and calculate the corresponding frequency values of each brightness curve segment and obtain
Obtain multiple frequency values;Calculate frequency information of the data feature values of multiple frequency values as the brightness curve.It is described to calculate often
When the process of the corresponding frequency values of a brightness curve segment may is that periodically variable number is corresponding with brightness curve segment
Between ratio.
The process of the amplitude information for obtaining the brightness curve may is that it is more for being evenly dividing the brightness curve
A brightness curve segment, and calculate the corresponding amplitude of each brightness curve segment and obtain multiple amplitudes;Calculate multiple amplitudes
Amplitude information of the data feature values of value as the brightness curve.It is described to calculate the corresponding amplitude of each brightness curve segment
Process may is that obtain present intensity curve segment multiple amplitudes mean value.
Step S202 judges that whether there is the frequency information in described image to be detected is greater than first threshold, and described
Amplitude information is greater than the brightness curve of second threshold.
Step S203, the frequency information is greater than first threshold if it exists, and the amplitude information is greater than second threshold
Brightness curve then counts frequency information described in described image to be detected greater than first threshold, and the amplitude information is greater than the
The ratio of the brightness curve of two threshold values.
Step S204, if frequency information described in described image to be detected is greater than first threshold, and the amplitude information is big
It is greater than preset ratio in the ratio of the brightness curve of second threshold, it is determined that the frequency information and amplitude of described image to be detected are believed
Breath meets preset condition.
In the embodiment of the present application, step S202 to step S204 is frequency information and the vibration for judging described image to be detected
Whether width information meets one embodiment of preset condition.Unlike embodiment illustrated in fig. 1, in the embodiment of the present application, it is
According to the brightness curve that the two dimensional character of image to be detected provides, the moire fringes in usual image are since principle of interference generates
Periodically light and dark line, therefore, the moire fringes in image in brightness there is frequecy characteristic also to have amplitude characteristic, institute
To be provided with first threshold and second threshold in the embodiment of the present application, however, it is big not the frequency information occur in image
In first threshold, and the amplitude information is greater than the brightness curve of second threshold and is considered as in the image that there are moire fringes, because,
Moire fringes are usually comprehensive, large area appearance in the picture, when the inherently striated figure of some object in image
When case, it is also possible to which the frequency information that will appear one or several brightness curve is greater than first threshold, and amplitude information is big
In second threshold, but the image may not be just comprising moire fringes.So, it is also necessary to count frequency described in described image to be detected
Information is greater than first threshold, and the amplitude information is greater than the ratio of the brightness curve of second threshold.The i.e. described frequency information is big
In first threshold, and the amplitude information accounts for the ratio of all brightness curves greater than the brightness curve of second threshold.Only at this
When ratio is greater than preset ratio, just determine that the frequency information of described image to be detected and amplitude information meet preset condition.
Step S205, if the frequency information and amplitude information of described image to be detected meet preset condition, it is determined that described
It include moire fringes in image to be detected.
In the embodiment of the present application, it is not final purpose with the presence or absence of moire fringes in detection image, actually detects
After moire fringes, it is desirable to get rid of the moire fringes in image, preferable effect can be presented with image.Therefore, determining
It states in image to be detected comprising after moire fringes, further includes:
Fourier transformation is carried out to described image to be detected, obtains the spectrogram of image to be detected;
Filtration frequencies are greater than first threshold from the spectrogram of described image to be detected and amplitude is greater than the letter of second threshold
Breath.
In the embodiment of the present application, the moire fringes of image to be detected are detected, time-domain diagram (believe by the plane of image to be detected
Breath) it can more easily handle;Filtering to the moire fringes of image to be detected, frequency domain figure can be more easily compared to time-domain diagram
Therefore processing when being filtered to the moire fringes in image to be detected, first can carry out Fourier to described image to be detected
Transformation, the spectrogram of image to be detected of acquisition, from the spectrogram of described image to be detected filtration frequencies be greater than first threshold,
And amplitude is greater than the information of second threshold.
Fig. 3 is the flow diagram of another image mole marks detection method provided by the embodiments of the present application, and the application is real
Applying example is that description carries out Base-Line Drift Correction processing to the brightness curve on the basis of Fig. 1 or embodiment illustrated in fig. 2, is obtained
The process of brightness curve after Base-Line Drift Correction, may comprise steps of:
In the embodiment of the present application, in order to obtain the accurate frequency information of brightness curve and amplitude information, institute can obtained
Before the frequency information and amplitude information of stating brightness curve, Base-Line Drift Correction processing is carried out to the brightness curve, obtains base
Brightness curve after line drift correction.In order to carry out Base-Line Drift Correction processing, it is also necessary to the baseline of the brightness curve is obtained,
Such as step S301 is described as how being fitted the brightness curve, it is bent to obtain the brightness to the part of step S303
The baseline of line.
Step S301 obtains wave crest and trough in brightness curve, and determines the average value of adjacent wave crest and trough.
Step S302 determines that the average value is corresponding in the brightness curve segment between adjacent wave crest and trough
Point.
It is bent to obtain the brightness based on corresponding matched curve of all average values on the brightness curve by step S303
The baseline of line.
In the embodiment of the present application, may include multiple wave crests and multiple troughs in brightness curve, usual wave crest and
Trough be it is adjacent, can determine the average value of adjacent wave crest and trough.It is bright between current adjacent wave crest and trough
The corresponding point of the average value is found in degree curve segment, for aspect description, which is denoted as average point by me.In this way, every two
Can there be an average point on brightness curve between adjacent wave crest and trough, according to the institute determined between wave crest and trough
The curve of mode fitting and smoothing of some average points based on fitting of a polynomial, the smooth curve for being fitted acquisition is exactly brightness curve
Baseline.All average points are first obtained from brightness curve, the calculation amount of the process of subsequent fitting can be effectively reduced, and are improved
Fitting efficiency.
Since a large amount of data to be narrowed down to fewer average point, and the average point can also indicate described bright
Write music line baseline trend.So can baseline according to the curve of the average point fitting and smoothing as brightness curve.Together
When, it, can be from low order (y=ax+b) to high order (y=ax when carrying out fitting of a polynomialn+bxn-1+ ...+k) it is right respectively
All average points are fitted, and when n is a value, the smooth curve of fitting and the matching degree of all average points are big
When preset matching is spent, so that it may stop, the polynomial curve being fitted at this time is just the baseline of the brightness curve.
It should be noted that in practical applications, for all in the brightness curve of the image zooming-out comprising moire fringes
In the corresponding multinomial of the matched curve of average point, the value of n is higher, of the smooth curve of fitting and all average points
It may be higher with degree.However, the curve of fitting is no longer the base for representing all average points when in the sufficiently high situation of matching degree
Line, but the curve of all average points can be covered, in fact, baseline drift will not be drift or even the most cases of high frequency
Under, it may be possible to linear drift.It is therefore desirable to a relatively low matching degree be set, respectively to described equal from low order to high order
Value point, which is fitted, obtains smooth curve, once the matching degree currently obtained between smooth curve and all average points is big
In preset matching degree, so that it may which stopping continues to be fitted, and the smooth curve being fitted at this time is just the baseline of the brightness curve.
Step S304, the difference between the baseline based on the brightness curve and the brightness curve are bent to the brightness
Line carries out Base-Line Drift Correction processing.
In the embodiment of the present application, the difference between the brightness curve and the baseline of the brightness curve can be calculated,
And take the difference as the brightness curve after Base-Line Drift Correction.
It is also possible to calculate the mean value in multiple crosspoints between the corresponding baseline of a plurality of brightness curve, and by the brightness
Difference between curve and the baseline of the brightness curve adds the mean value in the multiple crosspoint, after obtaining Base-Line Drift Correction
Brightness curve.The difference calculated between the brightness curve and the baseline of the brightness curve includes:
The ordinate of the corresponding point of abscissa in the baseline of brightness curve and brightness curve is subtracted each other.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit
It is fixed.
Fig. 4 is that the schematic block diagram for the terminal device that one embodiment of the application provides only is shown and this Shen for ease of description
It please the relevant part of embodiment.
The terminal device 4 can be the software unit being built in the terminal devices such as mobile phone, tablet computer, notebook, hard
Part unit or the unit of soft or hard combination can also be used as independent pendant and be integrated into the mobile phone, tablet computer, notebook etc.
In terminal device.
The terminal device 4 includes:
Information acquisition unit 41 for obtaining image to be detected, and extracts the frequency information and vibration of described image to be detected
Width information;
Whether judging unit 42, frequency information and amplitude information for judging described image to be detected meet default item
Part;
Determination unit 43, if the frequency information and amplitude information for described image to be detected meet preset condition, really
It include moire fringes in fixed described image to be detected.
Optionally, the information acquisition unit 41 is also used to:
From a plurality of brightness curve extracted at least one direction in described image to be detected, and obtain the brightness curve
Frequency information and amplitude information.
Optionally, the judging unit 42 includes:
First judgment module 421 is greater than first with the presence or absence of the frequency information in described image to be detected for judging
Threshold value, and the amplitude information is greater than the brightness curve of second threshold;
Statistical module 422 is greater than first threshold for the frequency information if it exists, and the amplitude information is greater than second
The brightness curve of threshold value then counts frequency information described in described image to be detected and is greater than first threshold, and the amplitude information
Greater than the ratio of the brightness curve of second threshold;
Second judgment module 423, if being greater than first threshold for frequency information described in described image to be detected, and described
The ratio that amplitude information is greater than the brightness curve of second threshold is greater than preset ratio, it is determined that the frequency of described image to be detected is believed
Breath and amplitude information meet preset condition.
Optionally, the terminal device 4 further include:
Baseline correction unit 44, for before the frequency information and amplitude information for obtaining the brightness curve, to described
Brightness curve carries out Base-Line Drift Correction processing, the brightness curve after obtaining Base-Line Drift Correction;
Correspondingly, the information acquisition unit 41 is also used to:
The frequency information and amplitude information of brightness curve after obtaining the Base-Line Drift Correction.
Optionally, the baseline correction unit 44 includes:
Baseline obtains module 441 and obtains the baseline of the brightness curve for being fitted to the brightness curve;
Baseline correction module 442 is right for the difference between the baseline based on the brightness curve and the brightness curve
The brightness curve carries out Base-Line Drift Correction processing.
Optionally, the baseline obtains module 441 and is also used to:
The wave crest and trough in the brightness curve are obtained, and determines the average value of adjacent wave crest and trough;
The corresponding point of the average value is determined in brightness curve segment between adjacent wave crest and trough;
Based on corresponding matched curves of average value all on the brightness curve, the baseline of the brightness curve is obtained.
Optionally, the terminal device 4 further include:
Spectrogram acquiring unit obtains the frequency of image to be detected for carrying out Fourier transformation to described image to be detected
Spectrogram;
Filter element, for filtration frequencies to be greater than first threshold from the spectrogram of described image to be detected and amplitude is big
In the information of second threshold.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of the terminal device is divided into different functional unit or module, to complete
All or part of function described above.Each functional unit in embodiment, module can integrate in one processing unit,
It is also possible to each unit to physically exist alone, can also be integrated in one unit with two or more units, above-mentioned collection
At unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function
Unit, module specific name be also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above-mentioned end
The specific work process of unit in end equipment, module, can refer to corresponding processes in the foregoing method embodiment, no longer superfluous herein
It states.
Fig. 5 is the schematic block diagram for the terminal device that the another embodiment of the application provides.As shown in figure 5, the end of the embodiment
End equipment 5 includes: one or more processors 50, memory 51 and is stored in the memory 51 and can be in the processing
The computer program 52 run on device 50.The processor 50 realizes that above-mentioned each image rubs when executing the computer program 52
Step in your marks detection method embodiment, such as step S101 to S103 shown in FIG. 1.Alternatively, the processor 50 executes
The function of each module/unit in above-mentioned terminal device embodiment, such as module 41 shown in Fig. 4 are realized when the computer program 52
To 43 function.
Illustratively, the computer program 52 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the application.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 52 in the terminal device 5 is described.For example, the computer program 52 can be divided
It is cut into information acquisition unit, judging unit, determination unit.
The information acquisition unit, for obtaining image to be detected, and extract described image to be detected frequency information and
Amplitude information;
Whether the judging unit, frequency information and amplitude information for judging described image to be detected meet default item
Part;
The determination unit, if the frequency information and amplitude information for described image to be detected meet preset condition,
It determines in described image to be detected comprising moire fringes.
Other units or module can refer to the description in embodiment shown in Fig. 4, and details are not described herein.
The terminal device includes but are not limited to processor 50, memory 51.It will be understood by those skilled in the art that figure
5 be only an example of terminal device 5, does not constitute the restriction to terminal device 5, may include more more or less than illustrating
Component, perhaps combine certain components or different components, for example, the terminal device can also include input equipment, it is defeated
Equipment, network access equipment, bus etc. out.
The processor 50 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 51 can be the internal storage unit of the terminal device 5, such as the hard disk or interior of terminal device 5
It deposits.The memory 51 is also possible to the External memory equipment of the terminal device 5, such as be equipped on the terminal device 5
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the terminal device 5
Member also includes External memory equipment.The memory 51 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed terminal device and method can pass through it
Its mode is realized.For example, terminal device embodiment described above is only schematical, for example, the module or list
Member division, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or
Component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point is shown
The mutual coupling or direct-coupling or communication connection shown or discussed can be through some interfaces, between device or unit
Coupling or communication connection are connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and
Telecommunication signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality
Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Comprising within the scope of protection of this application.
Claims (10)
1. a kind of image mole marks detection method characterized by comprising
Image to be detected is obtained, and extracts the frequency information and amplitude information of described image to be detected;
Whether the frequency information and amplitude information for judging described image to be detected meet preset condition;
If the frequency information and amplitude information of described image to be detected meet preset condition, it is determined that wrapped in described image to be detected
Containing moire fringes.
2. image mole marks detection method as described in claim 1, which is characterized in that described described image to be detected of extraction
Frequency information and amplitude information include:
From a plurality of brightness curve extracted at least one direction in described image to be detected, and obtain the frequency of the brightness curve
Rate information and amplitude information.
3. image mole marks detection method as claimed in claim 2, which is characterized in that described described image to be detected of judgement
Whether frequency information and amplitude information meet preset condition
Judge to be greater than first threshold with the presence or absence of the frequency information in described image to be detected, and the amplitude information is greater than the
The brightness curve of two threshold values;
The frequency information is greater than first threshold if it exists, and the amplitude information is greater than the brightness curve of second threshold, then unites
Frequency information described in described image to be detected is counted greater than first threshold, and the amplitude information is greater than the brightness song of second threshold
The ratio of line;
If frequency information described in described image to be detected is greater than first threshold, and the amplitude information is greater than the bright of second threshold
The ratio of line of writing music is greater than preset ratio, it is determined that the frequency information and amplitude information of described image to be detected meet default item
Part.
4. image mole marks detection method as claimed in claim 2, which is characterized in that in the frequency for obtaining the brightness curve
Before information and amplitude information, further includes:
Base-Line Drift Correction processing is carried out to the brightness curve, the brightness curve after obtaining Base-Line Drift Correction;
Correspondingly, the frequency information for obtaining the brightness curve and amplitude information include:
The frequency information and amplitude information of brightness curve after obtaining the Base-Line Drift Correction.
5. image mole marks detection method as claimed in claim 4, which is characterized in that described to carry out base to the brightness curve
Line drift correction is handled
The brightness curve is fitted, the baseline of the brightness curve is obtained;
Difference between baseline based on the brightness curve and the brightness curve carries out baseline drift to the brightness curve
Correction process.
6. image mole marks detection method as claimed in claim 5, which is characterized in that described to intend the brightness curve
It closes, the baseline for obtaining the brightness curve includes:
The wave crest and trough in the brightness curve are obtained, and determines the average value of adjacent wave crest and trough;
The corresponding point of the average value is determined in brightness curve segment between adjacent wave crest and trough;
Based on corresponding matched curves of average value all on the brightness curve, the baseline of the brightness curve is obtained.
7. such as image mole marks detection method as claimed in any one of claims 1 to 6, which is characterized in that described to be checked determining
Comprising after moire fringes in altimetric image, further includes:
Fourier transformation is carried out to described image to be detected, obtains the spectrogram of image to be detected;
Filtration frequencies are greater than first threshold from the spectrogram of described image to be detected and amplitude is greater than the information of second threshold.
8. a kind of terminal device characterized by comprising
Information acquisition unit for obtaining image to be detected, and extracts the frequency information and amplitude information of described image to be detected;
Whether judging unit, frequency information and amplitude information for judging described image to be detected meet preset condition;
Determination unit, if the frequency information and amplitude information for described image to be detected meet preset condition, it is determined that described
It include moire fringes in image to be detected.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program
The step of any one the method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey
Sequence realizes the step such as any one of claim 1 to 7 the method when the computer program is executed by one or more processors
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810865453.9A CN109146855B (en) | 2018-08-01 | 2018-08-01 | Image moire detection method, terminal device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810865453.9A CN109146855B (en) | 2018-08-01 | 2018-08-01 | Image moire detection method, terminal device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109146855A true CN109146855A (en) | 2019-01-04 |
CN109146855B CN109146855B (en) | 2021-03-26 |
Family
ID=64799460
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810865453.9A Active CN109146855B (en) | 2018-08-01 | 2018-08-01 | Image moire detection method, terminal device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109146855B (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110059700A (en) * | 2019-03-18 | 2019-07-26 | 深圳神目信息技术有限公司 | The recognition methods of image moire fringes, device, computer equipment and storage medium |
CN110263708A (en) * | 2019-06-19 | 2019-09-20 | 郭玮强 | Image sources recognition methods, equipment and computer readable storage medium |
CN110555837A (en) * | 2019-09-05 | 2019-12-10 | 中国科学院长春光学精密机械与物理研究所 | Image quality interpretation method, device and system and image quick-viewing equipment |
CN110617873A (en) * | 2019-04-26 | 2019-12-27 | 深圳市豪视智能科技有限公司 | Method for detecting vibration of cable and related product |
WO2020244021A1 (en) * | 2019-06-06 | 2020-12-10 | 武汉精立电子技术有限公司 | Methods and systems for removing image moire, measuring brightness of sub-pixel points of display panel, and repairing mura defects |
CN112150413A (en) * | 2020-09-01 | 2020-12-29 | 珠海格力电器股份有限公司 | Pipeline vibration detection method, device, equipment and storage medium |
CN112562028A (en) * | 2020-12-03 | 2021-03-26 | 科大讯飞股份有限公司 | Method, device and equipment for constructing image with moire fringes and storage medium |
CN113030107A (en) * | 2021-03-08 | 2021-06-25 | 深圳中科飞测科技股份有限公司 | Detection method, detection system, and non-volatile computer-readable storage medium |
CN113029363A (en) * | 2019-12-24 | 2021-06-25 | Oppo广东移动通信有限公司 | Detection method, device and equipment of mixed light source and storage medium |
CN113129389A (en) * | 2019-12-30 | 2021-07-16 | 瑞昱半导体股份有限公司 | Moire pattern judging method, Moire pattern inhibiting method and circuit system |
CN113570602A (en) * | 2021-09-24 | 2021-10-29 | 江苏昌存铜业有限公司 | Hot-rolled steel coil curling evaluation method based on artificial intelligence |
CN114286011A (en) * | 2022-01-06 | 2022-04-05 | 维沃移动通信有限公司 | Focusing method and device |
CN115100197A (en) * | 2022-08-24 | 2022-09-23 | 启东市群鹤机械设备有限公司 | Method for detecting surface burn of workpiece grinding |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040189938A1 (en) * | 2003-03-25 | 2004-09-30 | Eagan Barry T. | Moire aberrometer |
CN101567977A (en) * | 2009-06-09 | 2009-10-28 | 北京中星微电子有限公司 | Flicker detection method and device thereof |
CN103645036A (en) * | 2013-12-30 | 2014-03-19 | 京东方科技集团股份有限公司 | Moire pattern evaluation method and device |
-
2018
- 2018-08-01 CN CN201810865453.9A patent/CN109146855B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040189938A1 (en) * | 2003-03-25 | 2004-09-30 | Eagan Barry T. | Moire aberrometer |
CN101567977A (en) * | 2009-06-09 | 2009-10-28 | 北京中星微电子有限公司 | Flicker detection method and device thereof |
CN103645036A (en) * | 2013-12-30 | 2014-03-19 | 京东方科技集团股份有限公司 | Moire pattern evaluation method and device |
Non-Patent Citations (2)
Title |
---|
QIUHUA WAN,AND ETC: "Graph fitting test method for the interpolation error of moire fringe", 《2009 9TH INTERNATIONAL CONFERENCE ON ELECTRONIC MEASUREMENT & INSTRUMENTS》 * |
佚名: "信号处理中去除基线(baseline)干扰的几种方法", 《信号处理中去除基线(BASELINE)干扰的几种方法 HTTP://BLOG.SINA.COM.CN/S/BLOG_619C66670102WM2U.HTML》 * |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110059700A (en) * | 2019-03-18 | 2019-07-26 | 深圳神目信息技术有限公司 | The recognition methods of image moire fringes, device, computer equipment and storage medium |
CN110617873A (en) * | 2019-04-26 | 2019-12-27 | 深圳市豪视智能科技有限公司 | Method for detecting vibration of cable and related product |
WO2020244021A1 (en) * | 2019-06-06 | 2020-12-10 | 武汉精立电子技术有限公司 | Methods and systems for removing image moire, measuring brightness of sub-pixel points of display panel, and repairing mura defects |
CN110263708A (en) * | 2019-06-19 | 2019-09-20 | 郭玮强 | Image sources recognition methods, equipment and computer readable storage medium |
CN110263708B (en) * | 2019-06-19 | 2020-03-13 | 郭玮强 | Image source identification method, device and computer readable storage medium |
CN110555837A (en) * | 2019-09-05 | 2019-12-10 | 中国科学院长春光学精密机械与物理研究所 | Image quality interpretation method, device and system and image quick-viewing equipment |
CN113029363B (en) * | 2019-12-24 | 2022-08-16 | Oppo广东移动通信有限公司 | Detection method, device and equipment of mixed light source and storage medium |
CN113029363A (en) * | 2019-12-24 | 2021-06-25 | Oppo广东移动通信有限公司 | Detection method, device and equipment of mixed light source and storage medium |
CN113129389A (en) * | 2019-12-30 | 2021-07-16 | 瑞昱半导体股份有限公司 | Moire pattern judging method, Moire pattern inhibiting method and circuit system |
CN112150413A (en) * | 2020-09-01 | 2020-12-29 | 珠海格力电器股份有限公司 | Pipeline vibration detection method, device, equipment and storage medium |
CN112562028A (en) * | 2020-12-03 | 2021-03-26 | 科大讯飞股份有限公司 | Method, device and equipment for constructing image with moire fringes and storage medium |
CN113030107A (en) * | 2021-03-08 | 2021-06-25 | 深圳中科飞测科技股份有限公司 | Detection method, detection system, and non-volatile computer-readable storage medium |
CN113570602B (en) * | 2021-09-24 | 2021-12-14 | 江苏昌存铜业有限公司 | Hot-rolled steel coil curling evaluation method based on artificial intelligence |
CN113570602A (en) * | 2021-09-24 | 2021-10-29 | 江苏昌存铜业有限公司 | Hot-rolled steel coil curling evaluation method based on artificial intelligence |
CN114286011A (en) * | 2022-01-06 | 2022-04-05 | 维沃移动通信有限公司 | Focusing method and device |
CN114286011B (en) * | 2022-01-06 | 2024-01-23 | 维沃移动通信有限公司 | Focusing method and device |
CN115100197A (en) * | 2022-08-24 | 2022-09-23 | 启东市群鹤机械设备有限公司 | Method for detecting surface burn of workpiece grinding |
Also Published As
Publication number | Publication date |
---|---|
CN109146855B (en) | 2021-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109146855A (en) | A kind of image mole marks detection method, terminal device and storage medium | |
US11605087B2 (en) | Method and apparatus for identifying identity information | |
CN105894464B (en) | A kind of medium filtering image processing method and device | |
CN108230321A (en) | Defect inspection method and device | |
US9053389B2 (en) | Hough transform for circles | |
TW201629848A (en) | Method for calculating fingerprint overlapping region and electronic device | |
CN111860398B (en) | Remote sensing image target detection method and system and terminal equipment | |
CN107767541B (en) | A kind of recognition methods of bank note, device, terminal device and storage medium | |
CN111695429B (en) | Video image target association method and device and terminal equipment | |
CN107688824A (en) | Picture match method and terminal device | |
CN109785246A (en) | A kind of noise-reduction method of non-local mean filtering, device and equipment | |
CN111860060A (en) | Target detection method and device, terminal equipment and computer readable storage medium | |
CN107492215B (en) | Method for sharing bank note in ATM and ATM terminal | |
CN108764139A (en) | A kind of method for detecting human face, mobile terminal and computer readable storage medium | |
CN109492590A (en) | A kind of distance detection method, distance detection device and terminal device | |
CN111383651A (en) | Voice noise reduction method and device and terminal equipment | |
CN107909569A (en) | One kind flower screen detection method, flower screen detection device and electronic equipment | |
CN114758268A (en) | Gesture recognition method and device and intelligent equipment | |
CN110287361A (en) | A kind of personage's picture screening technique and device | |
CN112614074B (en) | Robust vanishing point detection method and device based on response graph and clustering | |
CN108573477A (en) | Eliminate method, system and the terminal device of image moire fringes | |
CN114493988A (en) | Image blurring method, image blurring device and terminal equipment | |
CN109801428A (en) | Detection method, detection device and the terminal of bank note edge line | |
CN108268868A (en) | Inclination value-acquiring method and device, terminal, the storage medium of ID Card Image | |
CN115273123B (en) | Bill identification method, device and equipment and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |