CN107067392A - The method and device of identification flower screen image - Google Patents

The method and device of identification flower screen image Download PDF

Info

Publication number
CN107067392A
CN107067392A CN201710233998.3A CN201710233998A CN107067392A CN 107067392 A CN107067392 A CN 107067392A CN 201710233998 A CN201710233998 A CN 201710233998A CN 107067392 A CN107067392 A CN 107067392A
Authority
CN
China
Prior art keywords
image
gray level
floor projection
level image
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710233998.3A
Other languages
Chinese (zh)
Other versions
CN107067392B (en
Inventor
侯文迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710233998.3A priority Critical patent/CN107067392B/en
Publication of CN107067392A publication Critical patent/CN107067392A/en
Application granted granted Critical
Publication of CN107067392B publication Critical patent/CN107067392B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20216Image averaging

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)

Abstract

The disclosure is directed to a kind of method and device for recognizing flower screen image.This method considers the characteristic of flower screen image:With the content repeated, whether the content to single image there is periodicity to judge, if the content of the single image has periodically, the single image has the characteristic of flower screen image, it is possible to determine that the single image is colored screen image.This method utilizes single image, complete to the single image whether be colored screen image identification, it is convenient and swift.

Description

The method and device of identification flower screen image
Technical field
This disclosure relates to technical field of image processing, more particularly to a kind of method and device for recognizing flower screen image.
Background technology
EXIF (exchangeable image file formats;Exchangeable Image File format) it is a kind of electric by Japan The Standard File Format that sub- industrial development association promotes, EXIF can be additional to the image file lattice such as JPEG, TIFF, RIFF, RAW Among formula, to increase photographed data and thumbnail data etc..
Thumbnail can be obtained using thumbnail data, compared to original image, the space-consuming of thumbnail is smaller, loaded Speed, user would know that the content of original image by browsing thumbnail, convenient and swift.
If however, the thumbnail data that EXIF includes is wrong, utilizing the image obtained by wrong thumbnail data It is colored screen image, it is impossible to correctly reflect the content of original image, thus need to regenerate thumbnail according to original image.
Correlation technique provides a kind of method for recognizing flower screen image, and this method is by the content of thumbnail and original image Content is contrasted, to recognize whether thumbnail is colored screen image.However, the premise for performing this method is both to get breviary Figure, gets original image again.Therefore, the applicable scene of this method is limited.
The content of the invention
To overcome problem present in correlation technique, the disclosure provides a kind of method and device for recognizing flower screen image.
According to the first aspect of the embodiment of the present disclosure there is provided a kind of method for recognizing flower screen image, including:
Gray proces are carried out to single image, to obtain corresponding gray level image;
The gray level image is projected in the horizontal direction, to obtain the floor projection curve of the gray level image;
Detect whether the floor projection curve has periodically;
When the floor projection curve has periodicity, it is flower screen image to determine the single image.
Alternatively, the gray level image is projected in the horizontal direction, to obtain the floor projection of the gray level image Curve, including:
Determine the gray value sum of all pixels point in every a line of the gray level image;
Using the line number of the gray level image, the gray value sum corresponding to every a line of the gray level image is put down ;
Average gray value according to corresponding to every a line of the gray level image, generates the floor projection curve.
Alternatively, detect whether the floor projection curve has periodically, including:
Auto-correlation is carried out to the floor projection curve, to obtain corresponding autocorrelator trace;
Detect whether the autocorrelator trace has periodically.
Alternatively, detect whether the autocorrelator trace has periodically, including:
Extract the main peak value and the minor peaks adjacent with the main peak value of the autocorrelator trace;
Whether within a preset range to judge the ratio of the main peak value and the minor peaks;
When the ratio is in the preset range, determine that the autocorrelator trace has periodically.
Alternatively, the single image is thumbnail;It is determined that the single image be flower screen image after, methods described Also include:
Obtain the corresponding original image of the thumbnail;
The original image is zoomed in and out, with the thumbnail after being updated.
According to the second aspect of the embodiment of the present disclosure there is provided a kind of device for recognizing flower screen image, including:
Gradation processing module, is configured as carrying out gray proces to single image, to obtain corresponding gray level image;
Floor projection module, is configured as projecting the gray level image in the horizontal direction, to obtain the gray scale The floor projection curve of image;
Detection module, is configured as detecting whether the floor projection curve has periodically;
Determining module, is configured as when the floor projection curve has periodicity, and it is flower to determine the single image Screen image.
Alternatively, the floor projection module includes:
Determination sub-module, is configured to determine that the gray value sum of all pixels point in every a line of the gray level image;
Average submodule, is configured to, with the line number of the gray level image, right to every a line institute of the gray level image The gray value sum answered is averaged;
Submodule is generated, the average gray value according to corresponding to every a line of the gray level image is configured as, institute is generated State floor projection curve.
Alternatively, the detection module includes:
Auto-correlation submodule, is configured as carrying out auto-correlation to the floor projection curve, to obtain corresponding auto-correlation Curve;
Detection sub-module, is configured as detecting whether the autocorrelator trace has periodically.
Alternatively, the detection sub-module includes:
Extracting sub-module, is configured as extracting the main peak value of the autocorrelator trace and time adjacent with the main peak value Peak value;
Whether within a preset range judging submodule, be configured as judging the ratio of the main peak value and the minor peaks;
Determination sub-module, is configured as when the ratio is in the preset range, determines the autocorrelator trace tool Have periodically.
Alternatively, the single image is thumbnail;Described device also includes:
Acquisition module, is configured as after it is determined that the single image is flower screen image, obtains thumbnail correspondence Original image;
Zoom module, is configured as zooming in and out the original image, with the thumbnail after being updated.
According to the third aspect of the embodiment of the present disclosure there is provided a kind of non-transitorycomputer readable storage medium, when described Instruction in storage medium by the computing device of mobile terminal when so that mobile terminal is able to carry out a kind of identification flower screen image Method, methods described includes:
Gray proces are carried out to single image, to obtain corresponding gray level image;
The gray level image is projected in the horizontal direction, to obtain the floor projection curve of the gray level image;
Detect whether the floor projection curve has periodically;
When the floor projection curve has periodicity, it is flower screen image to determine the single image.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The disclosure provides a kind of method and device for recognizing flower screen image.This method considers the characteristic of flower screen image:Tool There is the content of repetition, whether the content to single image there is periodicity to judge, if the content of the single image has Periodically, then the single image has the characteristic of flower screen image, it is possible to determine that the single image is colored screen image.This method is utilized Single image, complete to the single image whether be colored screen image identification, it is convenient and swift.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of the method for identification flower screen image according to an exemplary embodiment.
Fig. 2A is the schematic diagram of the gray level image to being obtained after single image progress gray proces.
Fig. 2 B are the schematic diagrames of the floor projection curve to being obtained after the gray level image progress floor projection shown in Fig. 2A.
Fig. 2 C are the schematic diagrames of the autocorrelator trace to being obtained after the floor projection curve progress auto-correlation shown in Fig. 2 B.
Fig. 3 be according to an exemplary embodiment a kind of identification flower screen image method in step S12 flow chart.
Fig. 4 be according to an exemplary embodiment a kind of identification flower screen image method in step S13 flow chart.
Fig. 5 be according to an exemplary embodiment a kind of identification flower screen image method in step S132 flow Figure.
Fig. 6 is a kind of flow chart of the method for renewal thumbnail according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of the device of identification flower screen image according to an exemplary embodiment.
Fig. 8 be according to an exemplary embodiment a kind of identification flower screen image device in horizontal projection module frame Figure.
Fig. 9 be according to an exemplary embodiment a kind of identification flower screen image device in detection module block diagram.
Figure 10 be according to an exemplary embodiment a kind of identification flower screen image device in detection sub-module frame Figure.
Figure 11 is a kind of block diagram of the device of renewal thumbnail according to an exemplary embodiment.
Figure 12 is a kind of block diagram for being used to recognize the device of colored screen image according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
The disclosure provides a kind of method for recognizing flower screen image, and this method identifies this by the processing to single image Whether single image is colored screen image, convenient and swift.The method of the identification flower screen image provided below in conjunction with the accompanying drawings the disclosure Illustrate.
Fig. 1 is a kind of flow chart of the method for identification flower screen image according to an exemplary embodiment, such as Fig. 1 institutes Show, this method comprises the following steps.
In step s 11, gray proces are carried out to single image, to obtain corresponding gray level image.
In step s 12, the gray level image is projected in the horizontal direction, to obtain the level of the gray level image Drop shadow curve.
In step s 13, detect whether the floor projection curve has periodically.
In step S14, when the floor projection curve has periodicity, it is Hua Pingtu to determine the single image Picture.
Wherein, single image refers to the image for needing to carry out it to spend screen image to recognize, can be thumbnail or Original image, can also be any one image that user specifies.
In view of the characteristic of flower screen image:With the content repeated, whether the disclosure has week to the content of single image Phase property is judged that, if the content of the single image has periodically, the single image has the characteristic of flower screen image, can To judge that the single image is colored screen image;It is on the contrary, it is possible to determine that the single image is not colored screen image.
In order to simplify the process of identification flower screen image, first, gray proces are carried out to single image, to obtain corresponding ash Spend image.Gray level image is made up of the different pixel of gray value.Wherein, in gray level image there be the gray value of pixel 256 grey levels, the gray value of any pixel point is between 0 to 255.Then, to each pixel of composition gray level image Gray value counted, according to statistical result determine gray level image content whether have periodically.
A kind of possible statistical is:Step S12 is performed, gray level image is projected in the horizontal direction, to obtain The floor projection curve of gray level image.Therefore, alternatively, Fig. 3 is a kind of identification flower screen according to an exemplary embodiment Step S12 flow chart in the method for image, as shown in figure 3, step S12 comprises the following steps:
In step S121, the gray value sum of all pixels point in every a line of the gray level image is determined.
In step S122, using the line number of the gray level image, to the ash corresponding to every a line of the gray level image Angle value sum is averaged.
In step S123, the average gray value according to corresponding to every a line of the gray level image generates the level Drop shadow curve.
The disclosure proposes that the process for generating the floor projection curve of gray level image is as follows:
First, the gray value of each pixel to constituting gray level image is summed line by line.Assuming that gray level image has N rows M row, The gray value of pixel on line n m row is designated as Dnm, then it is right from the 1st row of gray level image to the Nth row of gray level image The gray value of all pixels point is summed on per a line, for convenience of description, by the gray value sum of all pixels point in line n It is designated as Sn, then Sn=Dn1+Dn2+……+Dnm.Wherein, n for more than or equal to 1 and less than or equal to N integer, m be more than or equal to 1 and Integer less than or equal to M.
Then, the gray value of each pixel to constituting gray level image is average line by line.Because the line number of gray level image is The gray value sum of all pixels point is S on N, and line nn, so to SnIt is normalized, i.e., by SnDivided by N, obtain
Finally, floor projection curve is generated
Similarly, the process of the floor projection curve of another generation gray level image is as follows:
First, the gray value of each pixel to constituting gray level image is average one by one.Assuming that gray level image has N rows M row, Then the gray value of each pixel to constituting gray level image is averaged, for convenience of description, by the pixel on line n m row The gray value of point is designated as Dnm, then to DnmIt is normalized, i.e., by DnmDivided by N, obtainWherein, n is more than or equal to 1 and small In the integer equal to N, wherein, m is the integer more than or equal to 1 and less than or equal to M.
Then, the Normalized Grey Level value of each pixel to constituting gray level image is summed line by line.Due to gray level image Columns is M, then from the 1st row of gray level image to the Nth row of gray level image, to the Normalized Grey Level of all pixels point in every a line Value is summed, for convenience of description, and the Normalized Grey Level value sum of all pixels point in line n is designated as into S 'n, thenWherein, n is the integer more than or equal to 1 and less than or equal to N, and m is more than or equal to 1 and small In the integer equal to M.
Finally, floor projection curve is generated
After execution of step S12, the floor projection curve for obtaining gray level image, step S13, detection level projection are performed Whether curve has periodically.A kind of possible detection method is:Auto-correlation is carried out to drop shadow curve, it is corresponding from phase to obtain Curve is closed, then judges whether autocorrelator trace has periodically.Therefore, alternatively, Fig. 4 is shown according to an exemplary embodiment Step S13 flow chart in a kind of method of identification flower screen image gone out, as shown in figure 4, step S13 comprises the following steps:
In step S131, auto-correlation is carried out to the floor projection curve, to obtain corresponding autocorrelator trace.
In step S132, detect whether the autocorrelator trace has periodically.
Alternatively, Fig. 5 be according to an exemplary embodiment a kind of identification flower screen image method in step S132 Flow chart, as shown in figure 5, step S132 comprises the following steps:
In step S1321, the main peak value and the minor peaks adjacent with the main peak value of the autocorrelator trace are extracted.
In step S1322, whether within a preset range the ratio of the main peak value and the minor peaks is judged.
In step S1323, when the ratio is in the preset range, determine that the autocorrelator trace has the cycle Property.
Wherein, preset range be according to image processing requirements, it is set in advance, or user sets itself.
In view of the characteristic of auto-correlation function:With periodically, the disclosure is corresponding to the floor projection curve of single image Autocorrelator trace judged, if the autocorrelator trace has periodically, illustrate that the floor projection of the single image is bent Line has autocorrelation, and then the texture for characterizing the single image judges that the single image is colored screen with repeatability with this Image;Conversely, judging that the single image is not colored screen image.
Illustratively, Fig. 2A is the schematic diagram of the gray level image to being obtained after single image progress gray proces.Fig. 2 B are pair Gray level image shown in Fig. 2A carries out the schematic diagram of the floor projection curve obtained after floor projection.Fig. 2 C are to shown in Fig. 2 B Floor projection curve carries out the schematic diagram of the autocorrelator trace obtained after auto-correlation.
So that floor projection curve is as an example, auto-correlation is carried out to X (n), resulting autocorrelator trace is designated as R (n).So Afterwards, R (n) main peak value is taken, M is designated as1, and minor peaks adjacent with main peak value on R (n) are taken, it is designated as M2.Then, main peak is drawn The ratio f of value and minor peaks, thenAssuming that preset range is greater than 0.9, then f is compared with 0.9, if f>0.9, then Illustrate that R (n) has periodically, thus the single image is colored screen image;Conversely, explanation R (n) is without periodicity, thus should Single image is not colored screen image.
Periodically judge:The peak feature of auto-correlation function, takes out the middle peak value multilevel iudge with two ends, drawing is No is periodically.In experimentation, f=M1/M2, M1 is interpeak, and M2 is the peak value for closing on centre, if f>0.9 thinks Signal is the cycle.
Alternatively, for the situation that single image is thumbnail, the disclosure provides a kind of method for updating thumbnail.Fig. 6 It is a kind of flow chart of the method for renewal thumbnail according to an exemplary embodiment, as shown in fig. 6, in step S11- After S14, methods described is further comprising the steps of:
In step S15, the corresponding original image of the thumbnail is obtained;
In step s 16, the original image is zoomed in and out, with the thumbnail after being updated.
For the situation that single image is thumbnail, after judging that individual thumbnail is colored screen image, for ease of with After load correct thumbnail, the corresponding original image of individual thumbnail can be obtained, then original image is zoomed in and out, Regenerate thumbnail.
Based on same inventive concept, the disclosure also provides a kind of device for recognizing flower screen image.Fig. 7 is exemplary according to one Implement a kind of block diagram of the device of identification flower screen image exemplified.Reference picture 7, the device 100 includes:Gradation processing module 121, floor projection module 122, detection module 123 and determining module 124.
Gradation processing module 121 is configured as:Gray proces are carried out to single image, to obtain corresponding gray level image;
Floor projection module 122 is configured as:The gray level image is projected in the horizontal direction, to obtain the ash Spend the floor projection curve of image;
Detection module 123 is configured as:Detect whether the floor projection curve has periodically;
Determining module 124 is configured as:When the floor projection curve has periodicity, determine that the single image is Flower screen image.
Alternatively, Fig. 8 be according to an exemplary embodiment a kind of identification flower screen image device in floor projection The block diagram of module.Floor projection module 122 includes:Determination sub-module 1221, average submodule 1222 and generation submodule 1223.
Determination sub-module 1221 is configured as:Determine all pixels point in every a line of the gray level image gray value it With;
Average submodule 1222 is configured as:Using the line number of the gray level image, to every a line of the gray level image Corresponding gray value sum is averaged;
Generation submodule 1223 is configured as:Average gray value according to corresponding to every a line of the gray level image, it is raw Into the floor projection curve.
Alternatively, Fig. 9 be according to an exemplary embodiment a kind of identification flower screen image device in detection module Block diagram.Detection module 123 includes:Auto-correlation submodule 1231 and detection sub-module 1232.
Auto-correlation submodule 1231 is configured as:To the floor projection curve carry out auto-correlation, with obtain it is corresponding from Correlation curve;
Detection sub-module 1232 is configured as:Detect whether the autocorrelator trace has periodically.
Alternatively, Figure 10 be according to an exemplary embodiment a kind of identification flower screen image device in detect submodule The block diagram of block.Detection sub-module 1232 includes:Extracting sub-module 12321, judging submodule 12322 and determination sub-module 12323.
Extracting sub-module 12321 is configured as:Extract the autocorrelator trace main peak value and with the main peak value phase Adjacent minor peaks;
Judging submodule 12322 is configured as:Judge the main peak value with the ratio of the minor peaks whether in default model In enclosing;
Determination sub-module 12323 is configured as:When the ratio is in the preset range, determine that the auto-correlation is bent Line has periodically.
Alternatively, for the situation that single image is thumbnail, the disclosure also provides a kind of device for updating thumbnail.Figure 11 be a kind of block diagram of the device of renewal thumbnail according to an exemplary embodiment.The device 200, which is removed, to be included shown in Fig. 7 Device in gradation processing module 121, floor projection module 122 outside detection module 123 and determining module 124, also wraps Include:Acquisition module 125 and Zoom module 126.
Acquisition module 125 is configured as:After it is determined that the single image is flower screen image, the thumbnail pair is obtained The original image answered;
Zoom module 126 is configured as:The original image is zoomed in and out, with the thumbnail after being updated.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Figure 12 is a kind of block diagram for being used to recognize the device 800 of colored screen image according to an exemplary embodiment.Example Such as, device 800 can be mobile phone, and computer, digital broadcast terminal, messaging devices, game console, flat board is set It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
Reference picture 12, device 800 can include following one or more assemblies:Processing assembly 802, memory 804, electric power Component 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and Communication component 816.
The integrated operation of the usual control device 800 of processing assembly 802, such as with display, call, data communication, phase Machine operates the operation associated with record operation.Processing assembly 802 can refer to including one or more processors 820 to perform Order, to complete all or part of step that the method for screen image is spent in above-mentioned identification.In addition, processing assembly 802 can include one Or multiple modules, it is easy to the interaction between processing assembly 802 and other assemblies.For example, processing assembly 802 can include multimedia Module, to facilitate the interaction between multimedia groupware 808 and processing assembly 802.
Memory 804 is configured as storing various types of data supporting the operation in device 800.These data are shown Example includes the instruction of any application program or method for being operated on device 800, and contact data, telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Electric power assembly 806 provides electric power for the various assemblies of device 800.Electric power assembly 806 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between described device 800 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detection touches or slide related duration and pressure with described.In certain embodiments, many matchmakers Body component 808 includes a front camera and/or rear camera.When device 800 be in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive the multi-medium data of outside.Each front camera and Rear camera can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured as output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike Wind (MIC), when device 800 be in operator scheme, when such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 804 or via communication set Part 816 is sent.In certain embodiments, audio-frequency assembly 810 also includes a loudspeaker, for exports audio signal.
I/O interfaces 812 is provide interface between processing assembly 802 and peripheral interface module, above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor cluster 814 can detect opening/closed mode of device 800, the relative positioning of component is for example described Component is the display and keypad of device 800, and sensor cluster 814 can be with 800 1 components of detection means 800 or device Position change, the existence or non-existence that user contacts with device 800, the orientation of device 800 or acceleration/deceleration and device 800 Temperature change.Sensor cluster 814 can include proximity transducer, be configured to detect in not any physical contact The presence of neighbouring object.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 814 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, to promote junction service.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing above-mentioned identification flower screen image Method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 804 of instruction, above-mentioned instruction can be performed to complete above-mentioned identification Hua Pingtu by the processor 820 of device 800 The method of picture.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD- ROM, tape, floppy disk and optical data storage devices etc..
Those skilled in the art will readily occur to other embodiment party of the disclosure after considering specification and putting into practice the disclosure Case.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or adaptability Change follows the general principle of the disclosure and including the undocumented common knowledge or usual skill in the art of the disclosure Art means.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following claim Point out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (11)

1. a kind of method for recognizing flower screen image, it is characterised in that including:
Gray proces are carried out to single image, to obtain corresponding gray level image;
The gray level image is projected in the horizontal direction, to obtain the floor projection curve of the gray level image;
Detect whether the floor projection curve has periodically;
When the floor projection curve has periodicity, it is flower screen image to determine the single image.
2. according to the method described in claim 1, it is characterised in that the gray level image is projected in the horizontal direction, with The floor projection curve of the gray level image is obtained, including:
Determine the gray value sum of all pixels point in every a line of the gray level image;
Using the line number of the gray level image, the gray value sum corresponding to every a line of the gray level image is averaged;
Average gray value according to corresponding to every a line of the gray level image, generates the floor projection curve.
3. according to the method described in claim 1, it is characterised in that whether the detection floor projection curve has periodically, Including:
Auto-correlation is carried out to the floor projection curve, to obtain corresponding autocorrelator trace;
Detect whether the autocorrelator trace has periodically.
4. method according to claim 3, it is characterised in that whether the detection autocorrelator trace has periodically, bag Include:
Extract the main peak value and the minor peaks adjacent with the main peak value of the autocorrelator trace;
Whether within a preset range to judge the ratio of the main peak value and the minor peaks;
When the ratio is in the preset range, determine that the autocorrelator trace has periodically.
5. according to the method described in claim 1, it is characterised in that the single image is thumbnail;It is determined that it is described individual After image is flower screen image, methods described also includes:
Obtain the corresponding original image of the thumbnail;
The original image is zoomed in and out, with the thumbnail after being updated.
6. a kind of device for recognizing flower screen image, it is characterised in that including:
Gradation processing module, is configured as carrying out gray proces to single image, to obtain corresponding gray level image;
Floor projection module, is configured as projecting the gray level image in the horizontal direction, to obtain the gray level image Floor projection curve;
Detection module, is configured as detecting whether the floor projection curve has periodically;
Determining module, is configured as when the floor projection curve has periodicity, and it is Hua Pingtu to determine the single image Picture.
7. device according to claim 6, it is characterised in that the floor projection module includes:
Determination sub-module, is configured to determine that the gray value sum of all pixels point in every a line of the gray level image;
Average submodule, is configured to, with the line number of the gray level image, to corresponding to every a line of the gray level image Gray value sum is averaged;
Submodule is generated, the average gray value according to corresponding to every a line of the gray level image is configured as, the water is generated Flat drop shadow curve.
8. device according to claim 6, it is characterised in that the detection module includes:
Auto-correlation submodule, is configured as carrying out auto-correlation to the floor projection curve, to obtain corresponding autocorrelator trace;
Detection sub-module, is configured as detecting whether the autocorrelator trace has periodically.
9. device according to claim 8, it is characterised in that the detection sub-module includes:
Extracting sub-module, is configured as extracting the main peak value and the secondary peak adjacent with the main peak value of the autocorrelator trace Value;
Whether within a preset range judging submodule, be configured as judging the ratio of the main peak value and the minor peaks;
Determination sub-module, is configured as when the ratio is in the preset range, determines that the autocorrelator trace has week Phase property.
10. device according to claim 6, it is characterised in that the single image is thumbnail;Described device is also wrapped Include:
Acquisition module, is configured as after it is determined that the single image is flower screen image, obtains the corresponding original of the thumbnail Beginning image;
Zoom module, is configured as zooming in and out the original image, with the thumbnail after being updated.
11. a kind of device for recognizing flower screen image, it is characterised in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Gray proces are carried out to single image, to obtain corresponding gray level image;
The gray level image is projected in the horizontal direction, to obtain the floor projection curve of the gray level image;
Detect whether the floor projection curve has periodically;
When the floor projection curve has periodicity, it is flower screen image to determine the single image.
CN201710233998.3A 2017-04-11 2017-04-11 Method and device for identifying screen-patterned image Active CN107067392B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710233998.3A CN107067392B (en) 2017-04-11 2017-04-11 Method and device for identifying screen-patterned image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710233998.3A CN107067392B (en) 2017-04-11 2017-04-11 Method and device for identifying screen-patterned image

Publications (2)

Publication Number Publication Date
CN107067392A true CN107067392A (en) 2017-08-18
CN107067392B CN107067392B (en) 2020-11-10

Family

ID=59602718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710233998.3A Active CN107067392B (en) 2017-04-11 2017-04-11 Method and device for identifying screen-patterned image

Country Status (1)

Country Link
CN (1) CN107067392B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107909569A (en) * 2017-11-10 2018-04-13 广东欧珀移动通信有限公司 One kind flower screen detection method, flower screen detection device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289779A (en) * 2011-07-29 2011-12-21 中国科学院长春光学精密机械与物理研究所 Device for obtaining width of Moire fringe by using image processing technology
CN104978748A (en) * 2015-07-06 2015-10-14 电子科技大学 Liquid crystal screen defect detection method based on local pixel values
CN105339980A (en) * 2013-05-31 2016-02-17 微软技术许可有限责任公司 Absolute phase measurement with secondary pattern-embedded fringe
CN105554494A (en) * 2015-12-09 2016-05-04 浙江省公众信息产业有限公司 Snow point image detection method and device and video quality detection device and system
EP3054673A1 (en) * 2013-09-30 2016-08-10 Panasonic Corporation Display method and display device
CN106303158A (en) * 2016-09-30 2017-01-04 杭州电子科技大学 A kind of striped method for detecting abnormality in video image

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289779A (en) * 2011-07-29 2011-12-21 中国科学院长春光学精密机械与物理研究所 Device for obtaining width of Moire fringe by using image processing technology
CN105339980A (en) * 2013-05-31 2016-02-17 微软技术许可有限责任公司 Absolute phase measurement with secondary pattern-embedded fringe
EP3054673A1 (en) * 2013-09-30 2016-08-10 Panasonic Corporation Display method and display device
CN104978748A (en) * 2015-07-06 2015-10-14 电子科技大学 Liquid crystal screen defect detection method based on local pixel values
CN105554494A (en) * 2015-12-09 2016-05-04 浙江省公众信息产业有限公司 Snow point image detection method and device and video quality detection device and system
CN106303158A (en) * 2016-09-30 2017-01-04 杭州电子科技大学 A kind of striped method for detecting abnormality in video image

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
吴黎明 等: "重复图案晶片自动检测新方法", 《光学精密工程》 *
祝双武 等: "基于纹理周期性分析的织物疵点检测方法", 《计算机工程与应用》 *
计岑: "数字图像和视频修复", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
陆玲 等: "《数字图像处理方法及程序设计》", 31 December 2011 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107909569A (en) * 2017-11-10 2018-04-13 广东欧珀移动通信有限公司 One kind flower screen detection method, flower screen detection device and electronic equipment

Also Published As

Publication number Publication date
CN107067392B (en) 2020-11-10

Similar Documents

Publication Publication Date Title
CN106454336B (en) The method and device and terminal that detection terminal camera is blocked
WO2017128767A1 (en) Fingerprint template input method and device
US11334225B2 (en) Application icon moving method and apparatus, terminal and storage medium
RU2653230C2 (en) Method and device for the images reproduction for preview
CN104243819A (en) Photo acquiring method and device
EP3176709A1 (en) Video categorization method and apparatus, computer program and recording medium
CN104918107B (en) The identification processing method and device of video file
CN106951884A (en) Gather method, device and the electronic equipment of fingerprint
KR102004079B1 (en) Image type identification method, apparatus, program and recording medium
CN107155060A (en) Image processing method and device
CN102714698A (en) Photograph intention prediction including automatic photograph recording with autofocus and respective method
CN106034170B (en) Group's generation method and device
CN106778773A (en) The localization method and device of object in picture
CN106791014A (en) Message display method and device
US9924334B1 (en) Message pushing method, terminal equipment and computer-readable storage medium
CN107463052A (en) Shoot exposure method and device
CN104980662A (en) Method for adjusting imaging style in shooting process, device thereof and imaging device
CN105208284A (en) Photographing reminding method and device
CN105631804A (en) Image processing method and device
CN104050645A (en) Image processing method and device
CN104168422A (en) Image processing method and device
CN105323491A (en) Image shooting method and device
CN105357449A (en) Shooting method and device, and image processing method and apparatus
CN107566750A (en) Control method, device and the storage medium of flash lamp
CN106817532A (en) Image processing method and device

Legal Events

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