CN106570847A - Image processing method and image processing device - Google Patents

Image processing method and image processing device Download PDF

Info

Publication number
CN106570847A
CN106570847A CN201610937582.5A CN201610937582A CN106570847A CN 106570847 A CN106570847 A CN 106570847A CN 201610937582 A CN201610937582 A CN 201610937582A CN 106570847 A CN106570847 A CN 106570847A
Authority
CN
China
Prior art keywords
image
window
gaussian blur
field picture
application program
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
CN201610937582.5A
Other languages
Chinese (zh)
Other versions
CN106570847B (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201610937582.5A priority Critical patent/CN106570847B/en
Publication of CN106570847A publication Critical patent/CN106570847A/en
Application granted granted Critical
Publication of CN106570847B publication Critical patent/CN106570847B/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
    • G06T5/00Image enhancement or restoration
    • G06T5/10Image enhancement or restoration using non-spatial domain filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04804Transparency, e.g. transparent or translucent windows
    • 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/20024Filtering details
    • 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/20172Image enhancement details
    • G06T2207/20182Noise reduction or smoothing in the temporal domain; Spatio-temporal filtering

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses an image processing method and an image processing device, and belongs to the technical field of image processing. The method comprises the following steps: when detecting that a current window of an application changes, acquiring a target image in a first target area, wherein the first target area is an area blocked by a current first window of the application; performing Gaussian blurring on the target image to get a Gaussian blur image; drawing the Gaussian blur image on the first window as the base drawing of the first window to achieve an effect of frosted glass on the first window. The device comprises an acquiring module, a processing module, and a drawing module. In the invention, Gaussian blurring is performed on a target image to get a Gaussian blur image, and the Gaussian blur image is drawn on the first window as the base drawing of the first window to achieve an effect of frosted glass on the first window. The amount of information displayed via the first window is increased.

Description

The method and apparatus of image procossing
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of method and apparatus of image procossing.
Background technology
With the development of image processing techniquess, the terminal of Windows 7 (Windows 7) system can be by image The image of multi-effect is managed into, for example, clouded glass effect, fade effect, hatching effect etc..Wherein, clouded glass effect is user Conventional image effect, the image of clouded glass effect refer to the ambiguous image such as profile, color.7 systems of Windows Terminal show application program window when, terminal can by the image procossing in the window into clouded glass effect image, from And user can be seen indistinctly on terminal screen by the image of the window occlusion area through the window.
However, the terminal of Windows XP (Experience, experience) system cannot process the image into clouded glass effect The image of fruit.Therefore, the terminal of Windows XP systems show application program window when, as terminal can not be by window Image procossing into clouded glass effect image, so as to user cannot be seen indistinctly on terminal screen by the window through the window The image of mouth occlusion area;Terminal can only show the image in the window in the window, the quantity of information for causing the window to show It is few.Therefore, how in the window in the terminal of Windows XP systems by application program image procossing into clouded glass effect Image be problem that those skilled in the art more pay close attention to.
The content of the invention
In order to solve problem of the prior art, the invention provides a kind of method and apparatus of image procossing.Technical scheme It is as follows:
A kind of method of image procossing, methods described include:
When detecting the current window of application program and changing, the target image in first object region is obtained, described the One target area is the region blocked by the current first window of the application program;
Gaussian Blur process is carried out to the target image, Gaussian Blur image is obtained;
It is plotted to the Gaussian Blur image as the base map of the first window on the first window so that described First window realizes clouded glass effect.
Optionally, methods described also includes:
With preset duration as the sectional drawing cycle, sectional drawing is carried out to the target area on the terminal screen, obtained when intercepting When two adjacent images are differed, determine that the current window of the application program changes.
Optionally, the target image for obtaining first object region, including:
Acquisition carries out the first two field picture that sectional drawing is obtained in current time to the first object region, according to described first Two field picture, determines the target image.
Optionally, it is described that the target image is determined according to first two field picture, including:
First two field picture is defined as into the target image;Or,
Acquisition carried out the second two field picture that sectional drawing is obtained, institute to the second target area on terminal screen within a upper cycle The region that the second target area is that the second window by the application program on described shown by a cycle is blocked is stated, institute is obtained State the intersection of the first two field picture and second two field picture, by first two field picture in addition to the intersection Image is defined as the target image.
Optionally, it is described that Gaussian Blur process is carried out to the target image, Gaussian Blur image is obtained, including:
The clouded glass gradation of effects that user selects is obtained, according to the clouded glass gradation of effects, the Gaussian Blur is determined The parameter value of process;
According to the parameter value of Gaussian Blur process, Gaussian Blur process is carried out to the target image, obtain described Gaussian Blur image.
A kind of device of image procossing, described device include:
Acquisition module, when the current window for detecting application program changes, obtains the mesh in first object region Logo image, the first object region are the region blocked by the current first window of the application program;
Processing module, for carrying out Gaussian Blur process to the target image, obtains Gaussian Blur image;
Drafting module, for being plotted to first window using the Gaussian Blur image as the base map of the first window On mouth so that the first window realizes clouded glass effect.
Optionally, described device also includes:
Determining module, for preset duration as the sectional drawing cycle, carrying out sectional drawing to the target area on the terminal screen, When the two adjacent images that intercepting is obtained are differed, determine that the current window of the application program changes.
Optionally, the acquisition module, including:
Acquiring unit, to the first object region carries out first frame figure that sectional drawing obtain in current time for obtaining Picture;
First determining unit, for according to first two field picture, determining the target image.
Optionally, first determining unit, is additionally operable to for first two field picture to be defined as the target image;Or Person,
First determining unit, being additionally operable to obtain was carried out to the second target area on terminal screen within a upper cycle The second two field picture that sectional drawing is obtained, second target area be by the application program on described shown by a cycle The region that two windows are blocked, obtains the intersection of first two field picture and second two field picture, by the first frame figure Image as in addition to the intersection is defined as the target image.
Optionally, the processing module, including:
Second determining unit, for obtaining the clouded glass gradation of effects of user's selection, according to the clouded glass gradation of effects, Determine the parameter value that the Gaussian Blur is processed;
Processing unit, for the parameter value processed according to the Gaussian Blur, carries out Gaussian Blur to the target image Process, obtain the Gaussian Blur image.
In embodiments of the present invention, when terminal detects the window of application program and changes, obtain the application program and work as The target image in the region that front first window is blocked;Gaussian Blur process is carried out to the target image, Gaussian Blur figure is obtained Picture;It is plotted to the Gaussian Blur image as the base map of the first window on the first window so that the first window is realized Clouded glass effect, terminal not only show the image in first window, can also show the corresponding Gaussian Blur figure of the target image Picture, so as to user sees indistinctly the target image in the region that the first window is blocked through the first window, improve this The quantity of information that one window shows.
Description of the drawings
Fig. 1 is a kind of method flow diagram of image procossing provided in an embodiment of the present invention;
Fig. 2 is a kind of method flow diagram of image procossing provided in an embodiment of the present invention;
Fig. 3 is a kind of apparatus structure schematic diagram of image procossing provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of terminal provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
A kind of method of image procossing is embodiments provided, the executive agent of the method can be appointing system Terminal, wherein, it is intended that system can be Windows XP, Windows 2003 etc..Referring to Fig. 1, the method includes:
Step 101:When detecting the current window of application program and changing, the target figure in first object region is obtained Picture, the first object region are the region blocked by the current first window of the application program.
Step 102:Gaussian Blur process is carried out to the target image, Gaussian Blur image is obtained.
Step 103:It is plotted to the Gaussian Blur image as the base map of the first window on the first window so that should First window realizes clouded glass effect.
Optionally, the method also includes:
With preset duration as the sectional drawing cycle, sectional drawing is carried out to the target area on the terminal screen, when the phase that intercepting is obtained When adjacent two images are differed, determine that the current window of the application program changes.
Optionally, the target image in first object region is obtained, including:
Acquisition carries out the first two field picture that sectional drawing is obtained in current time to the first object region, according to the first frame figure Picture, determines the target image.
Optionally, according to first two field picture, determine the target image, including:
First two field picture is defined as into the target image;Or,
Acquisition carried out the second two field picture that sectional drawing is obtained to the second target area on terminal screen within a upper cycle, should Second target area is to be employed the region that second window of the program on this shown by cycle is blocked, and obtains the first frame figure Image in first two field picture in addition to the intersection is defined as the target by the intersection of picture and second two field picture Image.
Optionally, Gaussian Blur process is carried out to the target image, obtains Gaussian Blur image, including:
The clouded glass gradation of effects that user selects is obtained, according to the clouded glass gradation of effects, determines that the Gaussian Blur is processed Parameter value;
According to the parameter value that the Gaussian Blur is processed, Gaussian Blur process is carried out to the target image, the Gaussian mode is obtained Paste image.
In embodiments of the present invention, when terminal detects the window of application program and changes, obtain the application program and work as The target image in the region that front first window is blocked;Gaussian Blur process is carried out to the target image, Gaussian Blur figure is obtained Picture;It is plotted to the Gaussian Blur image as the base map of the first window on the first window so that the first window is realized Clouded glass effect, terminal not only show the image in first window, can also show the corresponding Gaussian Blur figure of the target image Picture, so as to user sees indistinctly the target image in the region that the first window is blocked through the first window, improve this The quantity of information that one window shows.
A kind of method of image procossing is embodiments provided, the executive agent of the method can be appointing system Terminal;Wherein, it is intended that system can be Windows XP, Windows 2003 etc..Referring to Fig. 2, the method includes:
Step 201:When terminal detects the current window of application program and changes, the target in first object region is obtained Image, the first object region are the region blocked by the current first window of the application program.
When terminal detects the current window of application program and changes, just according to image provided in an embodiment of the present invention at The current window of the application program is processed as clouded glass effect by the method for reason.Therefore, in this step, terminal needs real-time Detect whether the current window of the application program changes.Wherein, terminal detects whether the current window of the application program is sent out Giving birth to the step of changing can be:
Terminal carries out sectional drawing to the target area on terminal screen with preset duration as the sectional drawing cycle;It is determined that intercept obtaining Two adjacent images it is whether identical;When the two adjacent images that intercepting is obtained are differed, the current of the application program is determined Window changes;When the two adjacent images that intercepting is obtained are identical, determine that the current window of the application program does not occur Change.
Wherein, the application program can be the arbitrary application program installed in the terminal;For example, video playback application journey Sequence, audio frequency play-back application or social networking application program etc..The preset duration can need to arrange and change according to user, this Inventive embodiments are to preset duration and are not especially limited.For example, preset duration can be 1 second, 3 milliseconds, 0.1 millisecond etc..Its In, if the image of the target area on the terminal screen is dynamic image, preset duration can be with according in the dynamic image Minimum change interval per adjacent two field pictures is configured and changes;For example, the preset duration is every less than in the dynamic image The minimum change interval of adjacent two field pictures.So, even if target area image is dynamic image, terminal can also be truncated to this Each two field picture that dynamic image includes.
Wherein, the target area is to be employed the region that the current window of program is blocked on terminal screen, therefore, terminal-pair The step of target area carries out sectional drawing can be:Terminal obtains the handle that the application program is located, and is identified according to the handle The target area that the application program is located;Terminal obtains the window tree of all windows on present terminal screen, and the window tree is remembered The level of all windows shown on record present terminal screen;Terminal detects the current window of the application program in the window tree The first level, according to first level, obtain the second level in the upper end of first level in the window tree;According to this Second level, obtains the corresponding window of the second level;According to the target area, the second level correspondence in the target area is intercepted Window image.
For example, on present terminal screen, the window tree of all windows is B0, B1 and B2, and the current window of the application program exists The first level in the window tree is B2 layers, and the second level in B2 layers upper end in the window tree is B0, B1 layer, and obtaining should The corresponding window of B0, B1 layer, according to the target area that application program is located, intercepts the corresponding window of B0, B1 layer in the target area The image of mouth.
In this step, current time is carried out into image referred to as the first two field picture that sectional drawing is obtained to first object region, Upper a cycle is carried out into image referred to as the second two field picture that sectional drawing is obtained, the second mesh to the second target area on terminal screen Mark region is the region blocked in the second window shown by a upper cycle by the application program;Then the first two field picture and the second frame Image is to intercept the two adjacent images for obtaining, and terminal determines that whether identical the two adjacent images that intercepting is obtained step be permissible Realized by following first kind of way or the second way, of course for accuracy is improved, terminal can also be by the first side Formula and the second way are combined.
For the first implementation, terminal determines that whether identical the two adjacent images that intercepting is obtained step be permissible For:
Terminal determines that the size of whether with the second two field picture of size of the first two field picture is identical, and the first two field picture is at end Whether with the second two field picture of position on the screen of end position on a terminal screen is identical;If the size of the first two field picture and The size of two two field pictures is identical, and the first two field picture position and the second two field picture on a terminal screen position on a terminal screen Put identical, determine that the first two field picture and the second two field picture are identical;If the size of the size of the first two field picture and the second two field picture Difference, or position of the first two field picture position on a terminal screen with the second two field picture on a terminal screen be different, it is determined that First two field picture and the second two field picture are different.
For second implementation, terminal determines that whether identical the two adjacent images that intercepting is obtained step be permissible For:
Second pixel in the view data and the second two field picture of the first pixel in terminal the first two field picture of acquisition View data;Terminal determines that the view data of whether with the second pixel of view data of the first pixel is identical;If first The view data of pixel is identical with the view data of the second pixel, determines that the first two field picture and the second two field picture are identical;Such as Really the view data of the first pixel is different with the view data of the second pixel, determines the first two field picture and the second two field picture not Together.Wherein, the first pixel is any pixel point in the first two field picture, the second pixel be in the second two field picture with the first picture The position identical pixel of vegetarian refreshments.
In this step, the view data of the first pixel can be the first pixel RGB (Red Green Blue, it is red It is turquoise) value, or the gray value of the first pixel.The embodiment of the present invention is not made specifically to the representation of view data Limit.The view data of the second pixel is identical with the representation of the view data of the first pixel, no longer goes to live in the household of one's in-laws on getting married one by one herein State.
Further, if the first two field picture and the second two field picture are different, i.e., terminal detects the current window of application program When mouth changes, terminal determines the target image in first object region.Wherein, terminal determines the target figure in first object region As the step of can be:Terminal obtains and the first two field picture that sectional drawing is obtained, root is carried out to the first object region in current time According to first two field picture, the target image is determined.
In this step, terminal can be directly using the full content of the first two field picture as target image;Terminal can also Using the part differed with the second two field picture in the first two field picture as target image, therefore, terminal according to first two field picture, The step of determining the target image can be realized by following the first implementation and second implementation.
For the first implementation, terminal according to first two field picture, the step of determine the target image can be:Eventually First two field picture is defined as the target image by end.
In second implementation, terminal according to first two field picture, the step of determine the target image can be:Terminal Acquisition the second two field picture that sectional drawing is obtained was carried out to the second target area on terminal screen within a upper cycle, obtain this first Image in first two field picture in addition to the intersection is defined as this by the intersection of two field picture and second two field picture Target image.
In this step, the intersection of the first two field picture and the second two field picture includes in the first two field picture view data and the The view data identical all pixels point region of two two field picture same positions.Terminal is removed in obtaining the first two field picture and is overlapped All pixels point region outside part, using the image of all pixels point region in addition to intersection as mesh Logo image.
It should be noted that the application program is arranged in the terminal of appointing system, only the application program opens hair Glass effects, terminal ability is according to method provided in an embodiment of the present invention by the window treatments of the application program into clouded glass effect; Therefore, terminal need to first determine the hair glass of the application program before whether the current window for detecting the application program changes Whether glass effect is opening, when it is opening that terminal determines the clouded glass effect of the application program, ability real-time detection Whether the current window of the application program changes.
Wherein, there is transparency button in application program, when the transparency in the transparency button is more than zero, this applies journey The clouded glass effect of sequence is opening, therefore, terminal determines whether the clouded glass effect of the application program is opening Step can be:Terminal obtains the transparency in the transparency button with preset duration as cycle;Detect whether the transparency is big In zero, when terminal detects the transparency more than zero, terminal determines that the clouded glass effect of the application program is opening.When When terminal detects the transparency no more than zero, terminal determines that the clouded glass effect of the application program is closed mode.
Wherein, the clouded glass effect of application program can see indistinctly end through the application program current window for user The effect of the image in the region blocked by the current window on the screen of end.Transparency is bigger, and user is current through the application program Window sees that the image in the region that the current window is blocked is more clear;Transparency is less, and user passes through the application program current window Mouth sees that the image in the region that the current window is blocked is fuzzyyer.
Optionally, when the clouded glass effect that terminal detects application program is opening, when terminal can open default Long intervalometer, carries out sectional drawing by what the intervalometer reminded terminal-pair target area:The intervalometer is every preset duration to end End sends sectional drawing instruction, and terminal receives the sectional drawing instruction that the intervalometer sends, instructed according to the sectional drawing, to the mesh on terminal screen Mark region carries out sectional drawing.
Step 202:The terminal-pair target image carries out Gaussian Blur process, obtains Gaussian Blur image.
It should be noted that in the embodiment of the present invention, target image being obscured using the method for Gaussian Blur, realizing window Clouded glass effect.Therefore, this step can be realized by following steps 2021-2022.
Step 2021:Terminal obtains the clouded glass gradation of effects that user selects, according to the clouded glass gradation of effects, it is determined that should The parameter value of Gaussian Blur process.
The corresponding relation of the parameter value that terminal storage clouded glass gradation of effects and Gaussian Blur are processed, accordingly, this step Can be:Terminal obtains the clouded glass gradation of effects that user selects, according to the clouded glass gradation of effects, from clouded glass gradation of effects The ginseng that the corresponding Gaussian Blur of the clouded glass gradation of effects is processed is obtained with the corresponding relation of the parameter value of Gaussian Blur process Numerical value.
Wherein, clouded glass gradation of effects can be represented with transparency.Transparency is higher, and user is current through the application program First window see that the region that the first window is blocked is more clear, corresponding clouded glass gradation of effects is higher;Transparency is lower, Through the current first window of the application program, user sees that the region that the first window is blocked is fuzzyyer, corresponding clouded glass effect Fruit lower grade.
Wherein, the parameter that Gaussian Blur is processed can be represented with Gauss radius.When transparency is higher, clouded glass gradation of effects Higher, Gauss radius is less, i.e., the parameter value that Gaussian Blur is processed is less;When transparency is lower, clouded glass gradation of effects is lower, Gauss radius is bigger, i.e., the parameter value that Gaussian Blur is processed is bigger.
Step 2022:The parameter value that terminal is processed according to the Gaussian Blur, carries out Gaussian Blur process to the target image, Obtain the Gaussian Blur image.
In this step, for each pixel in target image, terminal extracts the first view data of the pixel, According to the parameter value that the Gaussian Blur is processed, by Gaussian function, the weight matrix of the pixel is determined;Terminal is according to the pixel First view data and weight matrix of point, determines the second view data of the pixel;In the target image, terminal is by the picture First view data of vegetarian refreshments is revised as the second view data, so as to generate Gaussian Blur image.
Further, terminal is stored in the Gaussian Blur image in the internal memory of terminal, and stores the Gaussian Blur image Store path and image identification corresponding relation, be easy to subsequent terminal according to the image identification of the Gaussian Blur image, from depositing In the corresponding relation of storage path and image identification, the store path of the Gaussian Blur is obtained, according to the store path, from terminal The Gaussian Blur image is obtained in internal memory.
Step 203:The Gaussian Blur image is plotted on the first window by terminal as the base map of the first window, is made Obtain the first window and realize clouded glass effect.
Terminal obtains the image identification of the Gaussian Blur image, from the store path and image identification of Gaussian Blur image In corresponding relation, the corresponding store path of Gaussian Blur image is obtained, according to the store path, obtained from the internal memory of terminal The Gaussian Blur image.
From step 201, the target image can be the first two field picture, or the first frame is removed in the first two field picture Image outside image and the second two field picture intersection.Therefore, terminal using the Gaussian Blur image as the first window Base map is plotted to the step on the first window and can be realized by following the first implementation and second implementation.
For the first implementation, the target image is the first two field picture, after terminal obtains the Gaussian Blur image, directly Connect and the Gaussian Blur image is plotted on the first window of the application program as the base map of the first window.
For second implementation, the target image is to remove the first two field picture and the second two field picture weight in the first two field picture The image outside part is closed, the correspondence pass of image identification and store path due to terminal storage per vertical frame dimension this broad image System, therefore, this step can be:Terminal obtains image beyond the intersection corresponding first area in first window, The Gaussian Blur image is plotted in the first area as the base map of the first area;Terminal obtains the first two field picture and the The image of two two field picture intersections corresponding second area in first window, terminal obtained the application program in a upper cycle The Gaussian Blur image of the second shown window, extracts the image correspondence of first two field picture and the second two field picture intersection Gaussian Blur image, by the image of first two field picture and the second two field picture intersection corresponding Gaussian Blur image make Base map for the second area is plotted in the second area.
Further, terminal obtains the background image of the first window that user is arranged, and the background image is added to first On the current Gaussian Blur image of window.So that the first window realizes clouded glass effect.
Optionally, user can adjust clouded glass gradation of effects at any time as needed, and terminal detects the clouded glass of user Gradation of effects, i.e. transparency, according to the clouded glass gradation of effects, redefine the parameter value of Gaussian Blur process, i.e. Gauss half The numerical value in footpath.
Further, in step 201, whether terminal can be with the clouded glass gradation of effects of the real-time detection application program Change;When the clouded glass gradation of effects that terminal detects the application program changes, then terminal obtains the hair after change Glass effects grade, according to the clouded glass gradation of effects after change, carries out Gaussian mode to target image according to step 2021-2022 Paste process, the Gaussian Blur image after being changed.
Terminal obtains the view data of all pixels point of the current Gaussian Blur image of first window, according to the Gaussian mode The numerical value of paste radius, regenerates Gaussian Blur image, and the Gaussian Blur image that this is regenerated by terminal is used as first window The base map of mouth is plotted on the first window, then the height of first window that the background image of the first window of user's setting is added to On this broad image.So that the transparency that terminal is currently selected according to user, realizes the clouded glass effect of the first window.
In embodiments of the present invention, when terminal detects the window of application program and changes, obtain the application program and work as The target image in the region that front first window is blocked;Gaussian Blur process is carried out to the target image, Gaussian Blur figure is obtained Picture;It is plotted to the Gaussian Blur image as the base map of the first window on the first window so that the first window is realized Clouded glass effect, terminal not only show the image in first window, can also show the corresponding Gaussian Blur figure of the target image Picture, so as to user sees indistinctly the target image in the region that the first window is blocked through the first window, improve this The quantity of information that one window shows.
A kind of device of image procossing is embodiments provided, the device is can be applicable in the terminal of appointing system, For performing the step in above-mentioned image processing method;Wherein, it is intended that system can be Windows XP, Windows 2003 Deng.Referring to Fig. 3, the device includes:
Acquisition module 301, when the current window for detecting application program changes, obtains first object region Target image, the first object region are the region blocked by the current first window of the application program;
Processing module 302, for carrying out Gaussian Blur process to the target image, obtains Gaussian Blur image;
Drafting module 303, for the Gaussian Blur image is plotted to the first window as the base map of the first window On so that the first window realizes clouded glass effect.
Optionally, the device also includes:
Determining module, for preset duration as the sectional drawing cycle, carrying out sectional drawing to the target area on the terminal screen, when When the two adjacent images that intercepting is obtained are differed, determine that the current window of the application program changes.
Optionally, the acquisition module 301, including:
Acquiring unit, to the first object region carries out first two field picture that sectional drawing obtain in current time for obtaining;
First determining unit, for according to first two field picture, determining the target image.
Optionally, the first determining unit, is additionally operable to for first two field picture to be defined as the target image;Or,
First determining unit, being additionally operable to obtain carried out sectional drawing to the second target area on terminal screen within a upper cycle The second two field picture for obtaining, second target area are that the second window by the application program on this shown by cycle is blocked Region, obtain the intersection of first two field picture and second two field picture, will in first two field picture remove the intersection Outside image be defined as the target image.
Optionally, the processing module 302, including:
Second determining unit, for obtaining the clouded glass gradation of effects of user's selection, according to the clouded glass gradation of effects, really The parameter value that the fixed Gaussian Blur is processed;
Processing unit, for the parameter value processed according to the Gaussian Blur, carries out Gaussian Blur process to the target image, Obtain the Gaussian Blur image.
In embodiments of the present invention, when terminal detects the window of application program and changes, obtain the application program and work as The target image in the region that front first window is blocked;Gaussian Blur process is carried out to the target image, Gaussian Blur figure is obtained Picture;It is plotted to the Gaussian Blur image as the base map of the first window on the first window so that the first window is realized Clouded glass effect, terminal not only show the image in first window, can also show the corresponding Gaussian Blur figure of the target image Picture, so as to user sees indistinctly the target image in the region that the first window is blocked through the first window, improve this The quantity of information that one window shows.
It should be noted that:Above-described embodiment provide image procossing device in image procossing, only with above-mentioned each work( The division of energy module is illustrated, and in practical application, can distribute above-mentioned functions by different functions as desired Module is completed, will the internal structure of device be divided into different functional modules, it is described above all or part of to complete Function.In addition, the device of image procossing that above-described embodiment is provided belongs to same design with the embodiment of the method for image procossing, its The process of implementing refers to embodiment of the method, repeats no more here.
Fig. 4 is a kind of structural representation of terminal provided in an embodiment of the present invention.The terminal can be used for implementing above-mentioned reality Apply the function performed by the terminal in the method for the image procossing shown by example.Specifically:
Terminal 400 can include RF (Radio Frequency, radio frequency) circuit 110, include one or more meters The memorizer 120 of calculation machine readable storage medium storing program for executing, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, biography Defeated module 170, the processor 180 for including or more than one processing core, and the part such as power supply 190.This area The restriction of the terminal structure that technical staff is illustrated in being appreciated that Fig. 4 not structure paired terminal, can include than illustrate it is more or Less part, or some parts are combined, or different part arrangements.Wherein:
RF circuits 110 can be used to receiving and sending messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information is received, transfer to one or more than one processor 180 is processed;In addition, will be related to up data is activation to Base station.Generally, RF circuits 110 include but is not limited to antenna, at least one amplifier, tuner, one or more agitators, use Family identity module (SIM) card, transceiver, bonder, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..Additionally, RF circuits 110 can also be communicated with network and other-end by radio communication.The radio communication can make With arbitrary communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..
Memorizer 120 can be used to store software program and module, the terminal institute as shown by above-mentioned exemplary embodiment Corresponding software program and module, processor 180 are stored in the software program and module of memorizer 120 by operation, from And various function application and data processing are performed, the such as interaction of realization based on video etc..Memorizer 120 can mainly include storage Program area and storage data field, wherein, storing program area can storage program area, the application program needed at least one function (such as sound-playing function, image player function etc.) etc.;Storage data field can be stored and use what is created according to terminal 400 Data (such as voice data, phone directory etc.) etc..Additionally, memorizer 120 can include high-speed random access memory, can be with Including nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-states Part.Correspondingly, memorizer 120 can also include Memory Controller, to provide processor 180 and input block 130 pairs of storages The access of device 120.
Input block 130 can be used for the numeral or character information of receives input, and produce and user's setting and function The relevant keyboard of control, mouse, action bars, optics or trace ball signal input.Specifically, input block 130 may include to touch Sensitive surfaces 131 and other input terminals 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, can collect use Family thereon or neighbouring touch operation (such as user is using any suitable objects such as finger, stylus or adnexa in touch-sensitive table Operation on face 131 or near Touch sensitive surface 131), and corresponding linked set is driven according to formula set in advance.It is optional , Touch sensitive surface 131 may include two parts of touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation brings is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection means, and is converted into contact coordinate, then give processor 180, and can receiving processor 180 The order sent simultaneously is performed.Furthermore, it is possible to adopt the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave Realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also include other input terminals 132.Specifically, Other input terminals 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used to showing by user input information or be supplied to the information and terminal 400 of user Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its combination in any. Display unit 140 may include display floater 141, optionally, can adopt LCD (Liquid Crystal Display, liquid crystal Show device), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) to be configuring display floater 141.Further, Touch sensitive surface 131 can cover display floater 141, when Touch sensitive surface 131 is detected thereon or neighbouring is touched After touching operation, processor 180 is sent to determine the type of touch event, with preprocessor 180 according to the type of touch event Corresponding visual output is provided on display floater 141.Although in the diagram, Touch sensitive surface 131 and display floater 141 are conducts Two independent parts realizing input and input function, but in some embodiments it is possible to by Touch sensitive surface 131 with show Panel 141 is integrated and realization is input into and output function.
Terminal 400 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment Adjusting the brightness of display floater 141, proximity transducer can cut out and show when terminal 400 is moved in one's ear the light and shade of light Panel 141 and/or backlight.As one kind of motion sensor, in the detectable all directions of Gravity accelerometer (generally Three axles) acceleration size, size and the direction of gravity is can detect that when static, can be used for recognize mobile phone attitude application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Extremely The other sensors such as the gyroscope that can also configure in terminal 400, barometer, drimeter, thermometer, infrared ray sensor, here Repeat no more.
Voicefrequency circuit 160, speaker 161, microphone 162 can provide the audio interface between user and terminal 400.Audio frequency The signal of telecommunication after the voice data for receiving conversion can be transferred to speaker 161, is converted to sound by speaker 161 by circuit 160 Sound signal output;On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone 162, after being received by voicefrequency circuit 160 Voice data is converted to, then after voice data output processor 180 is processed, Jing RF circuits 110 are being sent to such as another end End, or voice data is exported to memorizer 120 further to process.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone and terminal 400.
Terminal 400 can help user to send and receive e-mail by transport module 170, browse webpage and access streaming video Deng it has provided the user broadband internet wirelessly or non-wirelessly and has accessed.Although Fig. 4 shows transport module 170, can be It is understood by, which is simultaneously not belonging to must be configured into for terminal 400, completely can as needed in the scope of the essence for not changing invention It is interior and omit.
Processor 180 is the control centre of terminal 400, links each portion of whole mobile phone using various interfaces and circuit Point, software program and/or module in memorizer 120 are stored in by running or performing, and call and be stored in memorizer 120 Interior data, perform the various functions and processing data of terminal 400, so as to carry out integral monitoring to mobile phone.Optionally, processor 180 may include one or more processing cores;Preferably, processor 180 can integrated application processor and modem processor, Wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes nothing Line communicates.It is understood that above-mentioned modem processor can not also be integrated in processor 180.
Terminal 400 also includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can be by electricity Management system is logically contiguous with processor 180, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or alternating current power supply, recharging system, power supply event The random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal 400 can also include photographic head, bluetooth module etc., will not be described here.Specifically in this reality Apply in example, the display unit of terminal is touch-screen display, terminal also includes memorizer, and one or more than one Program, one of them or more than one program storage is in memorizer, and is configured to by one or more than one process Device performs said one or more than one program bag containing the method for performing above-mentioned image procossing.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware To complete, it is also possible to instruct the hardware of correlation to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read only memory, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not to limit the present invention, all spirit in the present invention and Within principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.

Claims (10)

1. a kind of method of image procossing, it is characterised in that methods described includes:
When detecting the current window of application program and changing, the target image in first object region, first mesh are obtained Mark region is the region blocked by the current first window of the application program;
Gaussian Blur process is carried out to the target image, Gaussian Blur image is obtained;
It is plotted to the Gaussian Blur image as the base map of the first window on the first window so that described first Window realizes clouded glass effect.
2. method according to claim 1, it is characterised in that methods described also includes:
With preset duration as the sectional drawing cycle, sectional drawing is carried out to the target area on the terminal screen, when intercept obtain it is adjacent When two images are differed, determine that the current window of the application program changes.
3. method according to claim 1, it is characterised in that the target image in the acquisition first object region, including:
Acquisition carries out the first two field picture that sectional drawing is obtained in current time to the first object region, according to the first frame figure Picture, determines the target image.
4. method according to claim 3, it is characterised in that described according to first two field picture, determines the target Image, including:
First two field picture is defined as into the target image;Or,
Acquisition carried out the second two field picture that sectional drawing is obtained within a upper cycle to the second target area on terminal screen, and described the Two target areas are the region that the second window by the application program on described shown by a cycle is blocked, and obtain described the The intersection of one two field picture and second two field picture, by the image in first two field picture in addition to the intersection It is defined as the target image.
5. method according to claim 1, it is characterised in that described that Gaussian Blur process is carried out to the target image, Gaussian Blur image is obtained, including:
The clouded glass gradation of effects that user selects is obtained, according to the clouded glass gradation of effects, determines that the Gaussian Blur is processed Parameter value;
According to the parameter value of Gaussian Blur process, Gaussian Blur process is carried out to the target image, the Gauss is obtained Broad image.
6. a kind of device of image procossing, it is characterised in that described device includes:
Acquisition module, when the current window for detecting application program changes, obtains the target figure in first object region Picture, the first object region are the region blocked by the current first window of the application program;
Processing module, for carrying out Gaussian Blur process to the target image, obtains Gaussian Blur image;
Drafting module, for the Gaussian Blur image is plotted to the first window as the base map of the first window On so that the first window realizes clouded glass effect.
7. device according to claim 6, it is characterised in that described device also includes:
Determining module, for preset duration as the sectional drawing cycle, carrying out sectional drawing to the target area on the terminal screen, when cut When the two adjacent images for obtaining are differed, determine that the current window of the application program changes.
8. device according to claim 6, it is characterised in that the acquisition module, including:
Acquiring unit, to the first object region carries out first two field picture that sectional drawing obtain in current time for obtaining;
First determining unit, for according to first two field picture, determining the target image.
9. device according to claim 8, it is characterised in that
First determining unit, is additionally operable to for first two field picture to be defined as the target image;Or, described first is true Order unit, be additionally operable to obtain carried out the second frame figure that sectional drawing is obtained within a upper cycle to the second target area on terminal screen Picture, second target area are the region that the second window by the application program on described shown by a cycle is blocked, The intersection of first two field picture and second two field picture is obtained, the intersection will be removed in first two field picture Outside image be defined as the target image.
10. device according to claim 6, it is characterised in that the processing module, including:
Second determining unit, for obtaining the clouded glass gradation of effects of user's selection, according to the clouded glass gradation of effects, it is determined that The parameter value that the Gaussian Blur is processed;
Processing unit, for the parameter value processed according to the Gaussian Blur, carries out Gaussian Blur process to the target image, Obtain the Gaussian Blur image.
CN201610937582.5A 2016-10-24 2016-10-24 The method and apparatus of image procossing Active CN106570847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610937582.5A CN106570847B (en) 2016-10-24 2016-10-24 The method and apparatus of image procossing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610937582.5A CN106570847B (en) 2016-10-24 2016-10-24 The method and apparatus of image procossing

Publications (2)

Publication Number Publication Date
CN106570847A true CN106570847A (en) 2017-04-19
CN106570847B CN106570847B (en) 2019-11-22

Family

ID=58534689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610937582.5A Active CN106570847B (en) 2016-10-24 2016-10-24 The method and apparatus of image procossing

Country Status (1)

Country Link
CN (1) CN106570847B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864299A (en) * 2017-12-25 2018-03-30 广东欧珀移动通信有限公司 Image display method and Related product
CN108765271A (en) * 2018-05-30 2018-11-06 北京小米移动软件有限公司 Image processing method and equipment
CN110457102A (en) * 2019-07-26 2019-11-15 武汉深之度科技有限公司 Blur method, rendering method and the calculating equipment of visual object
CN110942419A (en) * 2019-11-22 2020-03-31 航天科技控股集团股份有限公司 Fuzzy processing method for full liquid crystal instrument ground glass
CN111552422A (en) * 2020-04-20 2020-08-18 广东以诺通讯有限公司 Intelligent terminal screen capture local fuzzy method and device and terminal
CN113791861A (en) * 2021-11-16 2021-12-14 北京鲸鲮信息系统技术有限公司 Window fuzzy transparent display method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6427233B1 (en) * 1999-12-17 2002-07-30 Inventec Corporation Method for addressing the dynamic windows
CN104103045A (en) * 2014-07-09 2014-10-15 广东欧珀移动通信有限公司 Gaussian blur processing method and system for terminal
CN104123221A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Response time test method and device
CN104317474A (en) * 2014-09-22 2015-01-28 腾讯科技(深圳)有限公司 Window switching method and device
CN104574452A (en) * 2013-10-10 2015-04-29 腾讯科技(深圳)有限公司 Generating method and device for window background
CN105138317A (en) * 2015-07-24 2015-12-09 安一恒通(北京)科技有限公司 Window display processing method and device applied to terminal equipment
CN105404438A (en) * 2014-08-13 2016-03-16 小米科技有限责任公司 Background fuzzy method and apparatus and terminal device
CN105988780A (en) * 2015-02-03 2016-10-05 阿里巴巴集团控股有限公司 Window background implementing method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6427233B1 (en) * 1999-12-17 2002-07-30 Inventec Corporation Method for addressing the dynamic windows
CN104123221A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Response time test method and device
CN104574452A (en) * 2013-10-10 2015-04-29 腾讯科技(深圳)有限公司 Generating method and device for window background
CN104103045A (en) * 2014-07-09 2014-10-15 广东欧珀移动通信有限公司 Gaussian blur processing method and system for terminal
CN105404438A (en) * 2014-08-13 2016-03-16 小米科技有限责任公司 Background fuzzy method and apparatus and terminal device
CN104317474A (en) * 2014-09-22 2015-01-28 腾讯科技(深圳)有限公司 Window switching method and device
CN105988780A (en) * 2015-02-03 2016-10-05 阿里巴巴集团控股有限公司 Window background implementing method and device
CN105138317A (en) * 2015-07-24 2015-12-09 安一恒通(北京)科技有限公司 Window display processing method and device applied to terminal equipment

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864299A (en) * 2017-12-25 2018-03-30 广东欧珀移动通信有限公司 Image display method and Related product
CN108765271A (en) * 2018-05-30 2018-11-06 北京小米移动软件有限公司 Image processing method and equipment
CN108765271B (en) * 2018-05-30 2022-06-03 北京小米移动软件有限公司 Image processing method and apparatus
CN110457102A (en) * 2019-07-26 2019-11-15 武汉深之度科技有限公司 Blur method, rendering method and the calculating equipment of visual object
CN110457102B (en) * 2019-07-26 2022-07-08 武汉深之度科技有限公司 Visual object blurring method, visual object rendering method and computing equipment
CN114924824A (en) * 2019-07-26 2022-08-19 武汉深之度科技有限公司 Visual object blurring method, visual object rendering method and computing equipment
CN114924824B (en) * 2019-07-26 2023-11-14 武汉深之度科技有限公司 Visual object blurring method, visual object rendering method and computing device
CN110942419A (en) * 2019-11-22 2020-03-31 航天科技控股集团股份有限公司 Fuzzy processing method for full liquid crystal instrument ground glass
CN110942419B (en) * 2019-11-22 2023-09-22 航天科技控股集团股份有限公司 Fuzzy processing method for frosted glass of full liquid crystal instrument
CN111552422A (en) * 2020-04-20 2020-08-18 广东以诺通讯有限公司 Intelligent terminal screen capture local fuzzy method and device and terminal
CN113791861A (en) * 2021-11-16 2021-12-14 北京鲸鲮信息系统技术有限公司 Window fuzzy transparent display method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN106570847B (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN106570847A (en) Image processing method and image processing device
CN103473051B (en) A kind of method and apparatus for saving power consumption of terminal
CN103455256B (en) The method and terminal of Rotation screen display picture
CN106933525B (en) A kind of method and apparatus showing image
CN106778585A (en) A kind of face key point-tracking method and device
CN103399633B (en) A kind of wireless remote control method and mobile terminal
CN104915091B (en) A kind of method and apparatus for the prompt information that Shows Status Bar
CN104571979B (en) A kind of method and apparatus for realizing split view
CN105022616A (en) Method and device for generating web page
CN103325332A (en) Webpage refreshing method, device and equipment
CN105957544A (en) Lyric display method and device
CN105094809A (en) Combined picture layout modification method and device and terminal equipment
CN107066268A (en) The display location switching method and device of widget application
CN104820546B (en) Function information methods of exhibiting and device
CN106445340A (en) Method and device for displaying stereoscopic image by double-screen terminal
CN104699501B (en) A kind of method and device for running application program
CN106951139A (en) Message notifying frame display methods and device
CN105302804B (en) Display methods, terminal and the server of technical account
CN103399657B (en) The control method of mouse pointer, device and terminal unit
CN106200897A (en) A kind of method and apparatus showing control menu
CN104571778A (en) Lock screen picture setting method and device
CN103677944B (en) A kind of method for making locking screen interface, device and terminal device
CN107957914A (en) A kind of information processing method and mobile terminal
CN107423050A (en) A kind of method and apparatus for penetrating operation
CN107479799A (en) A kind of method and apparatus of display window

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: Guangzhou KuGou Networks Co., Ltd.

GR01 Patent grant
GR01 Patent grant