CN105635809A - Image processing method and device and terminal - Google Patents

Image processing method and device and terminal Download PDF

Info

Publication number
CN105635809A
CN105635809A CN201511017469.7A CN201511017469A CN105635809A CN 105635809 A CN105635809 A CN 105635809A CN 201511017469 A CN201511017469 A CN 201511017469A CN 105635809 A CN105635809 A CN 105635809A
Authority
CN
China
Prior art keywords
image
former
word
size
amplifieroperation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201511017469.7A
Other languages
Chinese (zh)
Inventor
高毅
王洪强
葛云源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201511017469.7A priority Critical patent/CN105635809A/en
Publication of CN105635809A publication Critical patent/CN105635809A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4621Controlling the complexity of the content stream or additional data, e.g. lowering the resolution or bit-rate of the video stream for a mobile client with a small screen

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention relates to an image processing method and device and a terminal. The method comprises the steps that when amplification operation performed on an image is detected, characters in the image are identified and the amplification proportion is determined; the amplification image of the image is drawn based on the amplification proportion and the characters; and the amplification image is displayed. With application of the image processing method and device and the terminal, the terminal can draw the amplification image again based on the amplification proportion of amplification operation and the characters in the image when a user amplifies the image so that definition of the characters in the amplification image can be guaranteed, the problems that the characters are blurry and unclear after amplification of certain images can be solved and user experience can be optimized.

Description

Image processing method, device and terminal
Technical field
It relates to technical field of image processing, particularly relate to a kind of image processing method, device and terminal.
Background technology
In correlation technique, when user checks image by terminal, the sharpness of a lot of situation hypograph is not high. Reason is for the image downloaded, and the pixel of the image that server stores itself is just relatively low, or server is in order to save flow, and the image that pixel is higher has been carried out processed compressed. For the image of this kind low pixel, if user amplifies display, it is fuzzy that the word in image can become comparison, and the word emphasis that user pays close attention to often, thus can not meet the demand of user, cause Consumer's Experience poor.
Summary of the invention
For overcoming Problems existing in correlation technique, present disclose provides a kind of image processing method, device and terminal.
First aspect according to disclosure embodiment, it is provided that a kind of image processing method, comprising:
When the amplifieroperation to image being detected, it is determined that magnification ratio;
The enlarged image of described image is drawn based on described magnification ratio;
Show described enlarged image.
Optionally, described determine magnification ratio, comprising:
Read the former figure of described image, it is determined that the size of described former figure;
Read the image after amplifieroperation, it is determined that the size of the image after described amplifieroperation;
Based on the Size calculation magnification ratio of the image after the size of described former figure and described amplifieroperation.
Optionally, the former figure of the described image of described reading, comprising:
Judge whether the former figure of described image is present in this locality;
When described former figure is present in this locality, read described former figure;
When described former figure is not present in this locality, download described former figure.
Optionally, after the former figure of the described image of described reading, described method also comprises:
Determine the resolving power of described former figure;
Judge that whether described resolving power is lower than default resolving power threshold value;
When being judged as described resolving power lower than described resolving power threshold value, perform the image after described reading amplifieroperation.
Optionally, the described enlarged image drawing described image based on described magnification ratio, comprising:
Determine the first size of the word in described former figure, described word and the described word first location in described former figure;
The 2nd size and the second position in the image of described word after described amplifieroperation is determined based on described magnification ratio, described first size and described first location;
Draw the painting canvas of size identical with the image after described amplifieroperation;
In described painting canvas, draw described word based on described 2nd size and the described second position, obtain described enlarged image.
Optionally, described in described painting canvas, draw described word based on described 2nd size and the described second position before, described method also comprises:
The bitmap of described former figure is plotted in described painting canvas;
In described painting canvas, draw described word based on described 2nd size and the described second position described in then, comprising:
Described word is drawn on the upper strata of described bitmap based on described 2nd size and the described second position.
Optionally, the described enlarged image drawing described image based on described magnification ratio, also comprises:
Determine the color of described word in described former figure;
Described word is plotted in described painting canvas with described color.
Optionally, the described enlarged image drawing described image based on described magnification ratio, also comprises:
Reading the image parameter that user is arranged, described image parameter comprises any one or more in font, text color and background color;
Based on described image parameter by described Word-Drawing in described painting canvas.
Optionally, described method also comprises:
Detect the preservation to described enlarged image to operate;
Described enlarged image is preserved based on the preservation operation detected.
Second aspect according to disclosure embodiment, it is provided that a kind of image processing apparatus, comprising:
Determination module, is configured to when the amplifieroperation to image being detected, it is determined that magnification ratio;
Drafting module, is configured to draw the enlarged image of described image based on the magnification ratio that described determination module is determined;
Display module, is configured to show described enlarged image.
Optionally, described determination module comprises:
First reading submodule, is configured to read the former figure of described image, it is determined that the size of described former figure;
2nd reading submodule, is configured to read the image after amplifieroperation, it is determined that the size of the image after described amplifieroperation;
Calculating sub module, is configured to the Size calculation magnification ratio of the image after the size based on described former figure and described amplifieroperation.
Optionally, described first reading submodule comprises:
First judges submodule block, is configured to judge whether the former figure of described image is present in this locality;
Third reading gets submodule block, is configured to read described former figure when described first judges that submodule block is judged as that described former figure is present in this locality;
Download submodule block, it is configured to download described former figure when described first judges that submodule block is judged as that described former figure is not present in this locality.
Optionally, described determination module also comprises:
First true stator modules, is configured to determine the resolving power of described former figure;
2nd judges submodule block, is configured to judge that whether described resolving power that the described first true stator modules determines is lower than default resolving power threshold value;
When the described 2nd judges that submodule block is judged as described resolving power lower than described resolving power threshold value, described third reading is got submodule block and is performed the image after described reading amplifieroperation.
Optionally, described drafting module comprises:
2nd true stator modules, is configured to the word determined in described former figure, the first size of described word and the described word first location in described former figure;
3rd true stator modules, is configured to described first size determined based on described magnification ratio, the described 2nd true stator modules and the 2nd size and the second position that described first location is determined in the image of described word after described amplifieroperation;
First rendering submodule, is configured to draw the painting canvas of size identical with the image after described amplifieroperation;
2nd rendering submodule, is configured to described 2nd size determined based on the described 3rd true stator modules and the described second position draws described word in described painting canvas, obtains described enlarged image.
Optionally, described drafting module also comprises:
3rd rendering submodule, is configured to be plotted in described painting canvas by the bitmap of described former figure;
Then described 2nd rendering submodule comprises:
4th rendering submodule, is configured to draw described word based on described 2nd size and the described second position on the upper strata of described bitmap.
Optionally, described drafting module also comprises:
4th true stator modules, is configured to determine the color of described word in described former figure;
5th rendering submodule, is configured to the color by described word is determined based on the described 4th true stator modules and is plotted in described painting canvas.
Optionally, described drafting module also comprises:
4th reading submodule, is configured to read the image parameter of user's setting, and described image parameter comprises any one or more in font, text color and background color;
6th rendering submodule, be configured to based on described 4th reading submodule read described image parameter by described Word-Drawing in described painting canvas.
Optionally, described device also comprises:
Detection module, is configured to detect the preservation to described enlarged image and operates;
Preserve module, it is configured to the preservation operation based on described detection module detects and preserves described enlarged image.
The third aspect according to disclosure embodiment, it is provided that a kind of terminal, comprising: treater; The storer of instruction can be performed for storage of processor; Wherein, described treater is configured to:
When the amplifieroperation to image being detected, it is determined that magnification ratio;
The enlarged image of described image is drawn based on described magnification ratio;
Show described enlarged image.
The technical scheme that embodiment of the present disclosure provides can comprise following useful effect:
In the disclosure, terminal can when user's enlarged image, again enlarged image is drawn based on the word in the magnification ratio of amplifieroperation and image, thus ensure that the sharpness of the word in enlarged image, word is fuzzy after zooming and unsharp problem to solve some image, optimizes Consumer's Experience.
In the disclosure terminal again can draw amplification based on the size in the size of the word in image in former figure, position and the image after amplifieroperation, position after image, to improve sharpness and the resolving power of image.
In the disclosure in the picture except word also comprise other contents time, terminal, after depicting painting canvas, also draws the bitmap of former figure on painting canvas, and draws word on bitmap upper strata, to ensure sharpness and the resolving power of word, and reappear all the elements in original image as much as possible.
Terminal in the disclosure it may also be determined that the image parameter such as color of word in former figure, and with same color by Word-Drawing in painting canvas, with all the elements better reappeared in former figure.
In the disclosure, terminal can also draw word based on (comprising that pre-set and setting in real time) image parameter that user is arranged in painting canvas, to meet the various individual demands of user, it is to increase Consumer's Experience.
In the disclosure, terminal when the former figure of image is not present in this locality, by the former figure of web download, when former figure is present in this locality, can directly read this former figure, so that based on the Size calculation magnification ratio of the image after the size of former figure and amplifieroperation.
In the disclosure terminal only resolving power for former figure again draw enlarged image lower than the image of default resolving power threshold value, for the image of resolving power higher than resolving power threshold value, illustrate that sharpness can meet the needs of user, it is not necessary to again draw.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing herein is by being incorporated in specification sheets and forms the part of this specification sheets, shows and meets embodiment of the present disclosure, and is used from specification sheets one and explains principle of the present disclosure.
Fig. 1 is a kind of image processing method schema of the disclosure according to an exemplary embodiment.
Fig. 2 is another kind image processing method schema of the disclosure according to an exemplary embodiment.
Fig. 3 is the application scene schematic diagram of a kind of image processing method of the disclosure according to an exemplary embodiment.
Fig. 4 is a kind of image processing apparatus block diagram of the disclosure according to an exemplary embodiment.
Fig. 5 is another kind image processing apparatus block diagram of the disclosure according to an exemplary embodiment.
Fig. 6 is another kind image processing apparatus block diagram of the disclosure according to an exemplary embodiment.
Fig. 7 is another kind image processing apparatus block diagram of the disclosure according to an exemplary embodiment.
Fig. 8 is another kind image processing apparatus block diagram of the disclosure according to an exemplary embodiment.
Fig. 9 is another kind image processing apparatus block diagram of the disclosure according to an exemplary embodiment.
Figure 10 is another kind image processing apparatus block diagram of the disclosure according to an exemplary embodiment.
Figure 11 is another kind image processing apparatus block diagram of the disclosure according to an exemplary embodiment.
Figure 12 is another kind image processing apparatus block diagram of the disclosure according to an exemplary embodiment.
Figure 13 is a kind of structural representation for image processing apparatus of the disclosure according to an exemplary embodiment.
Embodiment
Here exemplary embodiment being described in detail, its example representation is in the accompanying drawings. When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or similar key element. Enforcement mode described in exemplary embodiment does not represent all enforcement modes consistent with the disclosure below. On the contrary, they only with as in appended claims describe in detail, the example of device that aspects more of the present disclosure are consistent and method.
The term used in the disclosure is only for the object describing specific embodiment, and the not intended to be limiting disclosure. " one ", " described " and " being somebody's turn to do " of the odd number form used in disclosure and the accompanying claims book also is intended to comprise most form, unless context clearly represents other implications. It is further understood that term "and/or" used herein refer to and comprise one or more project of listing being associated any or all may combine.
Although it is to be understood that term first, second, third, etc. may be adopted to describe various information in the disclosure, but these information should not be limited to these terms. These terms are only used for being distinguished from each other out the information of same type. Such as, when not departing from disclosure scope, the first information can also be called as the 2nd information, and similarly, the 2nd information can also be called as the first information. Depend on linguistic context, word as used in this " if " can be construed as " ... time " or " when ... time " or " in response to determining ".
As shown in Figure 1, Fig. 1 is a kind of image processing method schema according to an exemplary embodiment, and the method may be used for comprising the following steps in terminal:
Step 101, when the amplifieroperation to image being detected, word in recognition image also determines magnification ratio.
Terminal in the disclosure can be any intelligent terminal with function of surfing the Net, such as, it is possible to be specially mobile phone, panel computer, PDA (PersonalDigitalAssistant, personal digital assistant) etc. Wherein, terminal can access router by WLAN (wireless local area network), and accesses the server on public network by router.
In disclosure embodiment, user can check the image stored in terminal, or browsed the image in webpage by terminal, when terminal detects that image has been carried out amplifieroperation by user, it is determined that magnification ratio, and the word in recognition image.
Step 102, based on the enlarged image of magnification ratio and Word-Drawing image.
Step 103, show this enlarged image.
In above-described embodiment, terminal can when user's enlarged image, again enlarged image is drawn based on the magnification ratio of amplifieroperation and the word that identifies, thus ensure that the sharpness of the word in enlarged image, word is fuzzy after zooming and unsharp problem to solve some image, optimizes Consumer's Experience.
As shown in Figure 2, Fig. 2 is another kind of image processing method schema according to an exemplary embodiment, and the method may be used in terminal, and is based upon on basis embodiment illustrated in fig. 1, and the method can comprise the following steps:
Step 201, when the amplifieroperation to image being detected, judge whether the former figure of this image is present in this locality.
In disclosure embodiment, user can be the image stored in the terminal by the image that terminal is checked, it is also possible to is the image not stored in the terminal, the image that such as user is browsed by webpage or some App (Application, application program). Wherein amplifieroperation can comprise double-click image, drag the operations such as enlarged image.
Step 202, when this former figure is present in this locality, read this former figure.
Step 204 is entered after step 202.
Step 203, when this former figure is not present in this locality, download former figure.
Step 204 is entered after step 203.
Step 204, the resolving power determining former figure.
Step 205, judge this resolving power whether lower than default resolving power threshold value.
In disclosure step, this resolving power threshold value such as can be set to 100*200 etc., and namely after amplifieroperation, word wherein can become comparatively fuzzy resolving power.
Step 206, when being judged as this resolving power lower than resolving power threshold value, read the image after amplifieroperation.
If the resolving power of former figure is not less than resolving power threshold value, it is possible to this image is not done following process.
Step 207, Size calculation magnification ratio based on the image after the size of former figure and amplifieroperation.
In disclosure embodiment, the size of the image after can obtaining amplifieroperation by Nonlinear magnify interface, can determine the size of former figure by reading former figure, based on the size of the image after former figure size and amplifieroperation, it is possible to determine magnification ratio.
Step 208, the word identified in former figure, the first size determining this word in former figure and the word first location in former figure.
Step 209, determine the 2nd size and the second position in the image of word after amplifieroperation based on magnification ratio, the first size and first location.
In disclosure embodiment, the key message being generally in image due to word, thus processes mainly for the image comprising word.
Such as, the size of word in former figure, is designated as the first size here, represents for S (w, h); The position of word in former figure, here first location it is designated as, represent for L (x, y), and, based on the size of former figure, the i.e. initial size (W, H) of this image, taking the lower left corner of image as initial point, the X-coordinate of the first location L (x, y) of word in former figure and ordinate zou can be calculated respectively relative to the per-cent shared by the width (W) of image and high (H):
P (x)=x/W; P (y)=y/H.
Assuming that magnification ratio is t, so after image is carried out amplifieroperation, position L1 (x1, y1) in the image of word after amplifieroperation can calculate based on following formula:
X1=W*t*P (x)=x*t; Y1=W*t*P (y)=y*t.
And, the size of word after amplifieroperation, being referred to as the 2nd size S1 (w1, h1) here can calculate based on following formula:
W1=w*t; H1=h*t.
Step 210, the painting canvas drawing size identical with the image after amplifieroperation.
Step 211, in this painting canvas, draw above-mentioned word based on the 2nd size and the second position, it is amplified image.
In disclosure step, terminal can draw size identical with the image after amplifieroperation, i.e. identical width and high painting canvas (canvas), then paintbrush (paint) is used, in the second position of painting canvas, draw the word that size is S1 (w1, h1). If former figure comprises multiple word, then each word is plotted in painting canvas one by one, thus obtains enlarged image clearly.
In disclosure step, if image only comprises word, it is possible to after step 210 draws painting canvas, and then draw word on this painting canvas in step 211. If image not only comprises word, also comprise other contents, then after step 210 draws painting canvas, the bitmap (bitmap) of former figure is adjusted to the size identical with painting canvas, and the bitmap after adjust size is plotted in this painting canvas, and then the second position drafting size on the upper strata of this bitmap is the word of S1 (w1, h1), so that the word drawn covers the word in bitmap. Owing to the sharpness of the word in bitmap and resolving power are the sharpness of the image after amplifieroperation, when former figure resolving power is lower, word after this amplification can be smudgy, thus in disclosure embodiment after depicting bitmap, again this word is drawn on the upper strata of bitmap, so that this word covers the corresponding word in bitmap, it is to increase the sharpness of image.
In disclosure embodiment, it is also possible to provide hold function to the enlarged image of this drafting, namely terminal is after detecting that the preservation of user operates, under this enlarged image is saved in default path.
Such as, in above-mentioned steps 208, it is also possible to determine the image parameter of the word in former figure, include but not limited to color.
So in step 210, it is possible to by the color of this word to determine, namely original color is plotted in painting canvas. Thus obtain closer to the content expressed by former figure, more true to nature and enlarged image clearly.
In addition, user can also pre-set, or the font of display after the hope amplification arranged in real time, text color, background color etc. Being such as regular script by Set font, text color is set to mazarine, background color is set to rice white, so in above-mentioned steps 211, terminal can read default font, text color and background color; And be plotted in painting canvas with font, text color and the background color read by word, thus meet the individual demand of user, it is to increase Consumer's Experience.
In another kind of publicity pattern, terminal can also before reading the above-mentioned font and color parameter pre-set, remind user to confirm, undertaken by user selecting carrying out according to the color of former figure drawing or font and color according to pre-seting are drawn, improve Consumer's Experience further.
Step 212, show this enlarged image.
As shown in Figure 3, Fig. 3 is the application scene schematic diagram of a kind of image processing method of the disclosure according to an exemplary embodiment. In the scene shown in Fig. 3, comprising: smart mobile phone.
User checks image by this smart mobile phone, and double-click this image when carrying out amplifieroperation, terminal obtains the former figure of this image, and determine the resolving power of former figure, judge that whether this resolving power is lower than default resolving power threshold value, when this resolving power is lower than resolving power threshold value, read the image after amplifieroperation, it is determined that the size of the image after amplifieroperation; Then based on the Size calculation magnification ratio of the image after the size of former figure and amplifieroperation, calculation result is 200%. Then first location in former figure of the word in the former figure of terminal recognition, the first size determining this word in former figure and this word; The 2nd size and the second position in the image of this word after amplifieroperation is determined based on magnification ratio, the first size and first location; Then terminal draws the painting canvas of size identical with the image after amplifieroperation; In this painting canvas, draw this word based on the 2nd size and the second position, it is amplified image, and shows this enlarged image.
Applying in scene shown in Fig. 3, it is achieved the detailed process of image procossing see aforementioned to the description in Fig. 1-2, can not repeat them here.
Corresponding with aforementioned image processing method embodiment, the embodiment of terminal that the disclosure additionally provides image processing apparatus and applies.
As shown in Figure 4, Fig. 4 is a kind of image processing apparatus block diagram of the disclosure according to an exemplary embodiment, and for performing image processing method embodiment illustrated in fig. 1, this device can comprise: determination module 410, drafting module 420 and display module 430.
Determination module 410, is configured to when the amplifieroperation to image being detected, and word in recognition image also determines magnification ratio;
Drafting module 420, is configured to the enlarged image of magnification ratio and the Word-Drawing image determined based on determination module 410;
Display module 430, is configured to show the enlarged image of drafting module 420 drafting.
In above-described embodiment, terminal can when user's enlarged image, again enlarged image is drawn based on the word in the magnification ratio of amplifieroperation and the image that identifies, thus ensure that the sharpness of the word in enlarged image, word is fuzzy after zooming and unsharp problem to solve some image, optimizes Consumer's Experience.
As shown in Figure 5, Fig. 5 is another kind image processing apparatus block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 4, and drafting module 420 can comprise: the 2nd true stator modules 421, the 3rd true stator modules 422, first rendering submodule 423 and the first rendering submodule 423.
2nd true stator modules 421, is configured to determine the first size of the word in the former figure of described image and the described word first location in described former figure;
3rd true stator modules 422, is configured to described first size determined based on described magnification ratio, the described 2nd true stator modules and the 2nd size and the second position that described first location is determined in the image of described word after described amplifieroperation;
First rendering submodule 423, is configured to draw the painting canvas of size identical with the image after described amplifieroperation;
2nd rendering submodule 424, is configured to described 2nd size determined based on the 3rd true stator modules 422 and the described second position draws described word in described painting canvas, obtains described enlarged image.
In above-described embodiment, terminal again can draw amplification based on the size in the size of the word in image in former figure, position and the image after amplifieroperation, position after image, to improve sharpness and the resolving power of image.
As shown in Figure 6, Fig. 6 is another kind image processing apparatus block diagram of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and drafting module 420 can also comprise: the 3rd rendering submodule 425.
3rd rendering submodule 425, is configured to be plotted in described painting canvas by the bitmap of described former figure;
Then described 2nd rendering submodule 424 can comprise:
4th rendering submodule 426, is configured to draw described word based on described 2nd size and the described second position on the upper strata of described bitmap.
In above-described embodiment, in the picture except word also comprise other contents time, terminal is after depicting painting canvas, on painting canvas, also draw the bitmap of former figure, and word is drawn on bitmap upper strata, to ensure sharpness and the resolving power of word, and reappear all the elements in original image as much as possible.
As shown with 7, Fig. 7 is another kind image processing apparatus block diagram of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and drafting module 420 also comprises: the 4th true stator modules 427 and the 5th rendering submodule 428.
4th true stator modules 427, is configured to determine the image parameter of described word in described former figure;
5th rendering submodule 428, is configured to the image parameter by described word is determined with the described 4th true stator modules 427 and is plotted in described painting canvas.
In above-described embodiment, terminal it may also be determined that the image parameter of word in former figure, such as but not limited to color, and with same image parameter by Word-Drawing in painting canvas, with all the elements better reappeared in former figure.
As shown in Figure 8, Fig. 8 is another kind image processing apparatus block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and drafting module 420 also comprises: the 4th reading submodule 429 and the 6th rendering submodule 4210.
4th reading submodule 429, is configured to read the image parameter of user's setting, and described image parameter comprises any one or more in font, text color and background color;
6th rendering submodule 4210, be configured to based on the 4th reading submodule 429 read image parameter by Word-Drawing in described painting canvas.
In above-described embodiment, terminal can also draw word based on (comprising that pre-set and setting in real time) image parameter that user is arranged in painting canvas, to meet the various individual demands of user, it is to increase Consumer's Experience.
As shown in Figure 9, Fig. 9 is another kind image processing apparatus block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 4, it is determined that module 410 can comprise: the first reading submodule 411, the 2nd reading submodule 412 and calculating sub module 413.
First reading submodule 411, is configured to the former figure of reading images, it is determined that the size of former figure;
2nd reading submodule 412, is configured to read the image after amplifieroperation, it is determined that the size of the image after amplifieroperation;
Calculating sub module 413, is configured to the Size calculation magnification ratio of the image after the size of the former figure based on the first reading submodule 411 reading and the amplifieroperation of the 2nd reading submodule 412 reading.
In above-described embodiment, terminal can based on the Size calculation magnification ratio of the image after the size of former figure and amplifieroperation.
As shown in Figure 10, Figure 10 is another kind image processing apparatus block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 9, and the first reading submodule 411 can comprise: first judges that submodule block 414, third reading are got submodule block 415 and download submodule block 416.
First judges submodule block 414, is configured to judge whether the former figure of image is present in this locality;
Third reading gets submodule block 415, is configured to read this former figure when first judges that submodule block 414 is judged as that former figure is present in this locality;
Download submodule block 416, it is configured to download former figure when first judges that submodule block 414 is judged as that former figure is not present in this locality.
In above-described embodiment, terminal when the former figure of image is not present in this locality, by the former figure of web download, when former figure is present in this locality, can directly read this former figure, so that based on the Size calculation magnification ratio of the image after the size of former figure and amplifieroperation.
As shown in figure 11, Figure 11 is another kind image processing apparatus block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 9, it is determined that module 410 also comprises: the first true stator modules 417 and the 2nd judges submodule block 418.
First true stator modules 417, is configured to determine the resolving power of former figure;
2nd judges submodule block 418, is configured to judge that whether resolving power that the first true stator modules 417 determines is lower than default resolving power threshold value;
When the 2nd judges that submodule block 418 is judged as resolving power lower than described resolving power threshold value, third reading is got submodule block 415 and is performed the image after described reading amplifieroperation.
In above-described embodiment, terminal only resolving power for former figure again draw enlarged image lower than the image of default resolving power threshold value, for the image of resolving power higher than resolving power threshold value, illustrate that sharpness can meet the needs of user, it is not necessary to again draw.
As shown in figure 12, Figure 12 is another kind image processing apparatus block diagram of the disclosure according to an exemplary embodiment, and this embodiment is on the basis of earlier figures 4-11 arbitrary illustrated embodiment, and this device can also comprise: detection module 440 and preservation module 450.
Detection module 440, is configured to detect the preservation to enlarged image and operates;
Preserve module 450, it is configured to the preservation operation based on detection module 440 detects and preserves described enlarged image.
In above-described embodiment, terminal can also provide the hold function to the enlarged image drawn, the image of the satisfaction so liked for user, it is possible to preserve easily at any time.
The image processing apparatus embodiment that above-mentioned Fig. 4-12 illustrates can be applied in the terminal.
What in said apparatus, the process that realizes of the function and efficacy of each unit specifically referred in aforesaid method corresponding step realizes process, does not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method. Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or can also be distributed on multiple NE. Some or all of module wherein can be selected according to the actual needs to realize the object of disclosure scheme. Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Corresponding to Fig. 4, the disclosure also provides a kind of terminal, and this terminal includes treater; The storer of instruction can be performed for storage of processor; Wherein, described treater is configured to:
When the amplifieroperation to image being detected, word in recognition image also determines magnification ratio;
Based on the enlarged image of image described in described magnification ratio and described Word-Drawing;
Show described enlarged image.
As shown in figure 13, Figure 13 is a kind of structural representation for image processing apparatus 1300 of the disclosure according to an exemplary embodiment. Such as, device 1300 can be the mobile telephone with route function, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical facilities, body-building equipment, personal digital assistant etc.
With reference to Figure 13, device 1300 can comprise following one or more assembly: processing components 1302, storer 1304, power supply module 1306, multimedia groupware 1308, audio-frequency assembly 1310, the interface 1312 of I/O (I/O), sensor module 1314, and communications component 1316.
The overall operation of the usual control device 1300 of processing components 1302, such as with display, the operation that telephone call, data corresponding, camera operation and recording operation are associated. Processing components 1302 can comprise one or more treater 1320 to perform instruction, to complete all or part of step of above-mentioned method. In addition, processing components 1302 can comprise one or more module, and what be convenient between processing components 1302 and other assemblies is mutual. Such as, processing components 1302 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1308 and processing components 1302.
Storer 1304 is configured to store various types of data to be supported in the operation of device 1300. The example of these data comprises for any application program of operation on device 1300 or the instruction of method, contact data, telephone book data, message, image, video etc. Storer 1304 can be realized by the volatibility of any type or non-volatile memory device or their combination, such as static RAM (SRAM), electrically erasable read-only storage (EEPROM), erasable programmable read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magneticstorage, flash device, disk or CD.
The various assembly that power supply module 1306 is device 1300 provides electric power. Power supply module 1306 can comprise power-supply management system, one or more power supply, and other generate, manage and distribute, with for device 1300, the assembly that electric power is associated.
The screen that an output interface is provided that multimedia groupware 1308 is included between described device 1300 and user. In certain embodiments, screen can comprise liquid-crystal display (LCD) and touch panel (TP). If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user. Touch panel comprises one or more touch sensing device with the gesture on sensing touch, slip and touch panel. Described touch sensing device can the border of not only sensing touch or sliding action, but also the detection time length relevant to described touch or slide and pressure. In certain embodiments, multimedia groupware 1308 comprises a front-facing camera and/or rearmounted camera. When device 1300 is in operator scheme, during such as screening-mode or video pattern, front-facing camera and/or rearmounted camera can receive outside multi-medium data. Each front-facing camera and rearmounted camera can be a fixing optical lens system or have focal length and optical zoom ability.
Audio-frequency assembly 1310 is configured to export and/or input audio signal. Such as, audio-frequency assembly 1310 comprises a microphone (MIC), and when device 1300 is in operator scheme, during such as calling pattern, record pattern and speech recognition pattern, microphone is configured to receive external audio signal. The sound signal received can be stored in storer 1304 further or be sent via communications component 1316. In certain embodiments, audio-frequency assembly 1310 also comprises a loud speaker, for output audio signal.
I/O interface 1312 is for providing interface between processing components 1302 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc. These buttons can include but not limited to: home button, volume button, startup button and locking button.
Sensor module 1314 comprises one or more sensor, for providing the state estimation of all respects for device 1300. Such as, sensor module 1314 can detect the opening/closing state of device 1300, the relative location of assembly, such as described assembly is indicating meter and the keypad of device 1300, the position that sensor module 1314 can also detect device 1300 or device 1300 assemblies changes, the presence or absence that user contacts with device 1300, the temperature variation of device 1300 orientation or acceleration/deceleration and device 1300. Sensor module 1314 can comprise close to sensor, be configured to without any physical contact time detection near the existence of object. Sensor module 1314 can also comprise optical sensor, such as CMOS or ccd image sensor, for using in imaging applications. In certain embodiments, this sensor module 1314 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transmitter, microwave sensor or temperature sensor.
Communications component 1316 is configured to be convenient to the communication of wired or wireless mode between device 1300 and other equipment. Device 1300 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or their combination. In an exemplary embodiment, communications component 1316 receives the broadcast signal from outside broadcasting management systems or broadcast related information via broadcast channel. In an exemplary embodiment, described communications component 1316 also comprises near-field communication (NFC) module, to promote short distance communication. Such as, can based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1300 can be realized by one or more application specific unicircuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device part (PLD), field-programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components, for performing aforesaid method.
In the exemplary embodiment, additionally providing a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 1304 of instruction, above-mentioned instruction can perform aforesaid method by the treater 1320 of device 1300. Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage equipment etc.
The disclosure additionally provides a kind of non-transitory computer-readable recording medium, when the instruction in described storage media is performed by the treater of mobile terminal so that mobile terminal can perform a kind of image processing method, and described method comprises:
When the amplifieroperation to image being detected, word in recognition image also determines magnification ratio;
Based on the enlarged image of image described in described magnification ratio and described Word-Drawing;
Show described enlarged image.
Those skilled in the art, after considering specification sheets and putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure. The disclosure is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the unexposed common practise in the art of the disclosure or conventional techniques means. Specification sheets and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
The foregoing is only better embodiment of the present disclosure, not in order to limit the disclosure, all within spirit of the present disclosure and principle, any amendment of making, equivalent replacements, improvement etc., all should be included within the scope that the disclosure is protected.

Claims (19)

1. an image processing method, it is characterised in that, comprising:
When the amplifieroperation to image being detected, identify the word in described image and determine magnification ratio;
Based on the enlarged image of image described in described magnification ratio and described Word-Drawing;
Show described enlarged image.
2. method according to claim 1, it is characterised in that, the described enlarged image based on image described in described magnification ratio and described Word-Drawing, comprising:
Determine the first size of the word in the former figure of described image and the described word first location in described former figure;
The 2nd size and the second position in the image of described word after described amplifieroperation is determined based on described magnification ratio, described first size and described first location;
Draw the painting canvas of size identical with the image after described amplifieroperation;
In described painting canvas, draw described word based on described 2nd size and the described second position, obtain described enlarged image.
3. method according to claim 2, it is characterised in that, described in described painting canvas, draw described word based on described 2nd size and the described second position before, described method also comprises:
The bitmap of described former figure is plotted in described painting canvas;
In described painting canvas, draw described word based on described 2nd size and the described second position described in then, comprising:
Described word is drawn on the upper strata of described bitmap based on described 2nd size and the described second position.
4. method according to claim 2, it is characterised in that, the described enlarged image based on image described in described magnification ratio and described Word-Drawing, also comprises:
Determine the image parameter of described word in described former figure;
Described word is plotted in described painting canvas based on described image parameter.
5. method according to claim 2, it is characterised in that, the described enlarged image based on image described in described magnification ratio and described Word-Drawing, also comprises:
Reading the image parameter that user is arranged, described image parameter comprises any one or more in font, text color and background color;
Based on described image parameter by described Word-Drawing in described painting canvas.
6. method according to claim 1, it is characterised in that, described determine magnification ratio, comprising:
Read the former figure of described image, it is determined that the size of described former figure;
Read the image after amplifieroperation, it is determined that the size of the image after described amplifieroperation;
Based on the Size calculation magnification ratio of the image after the size of described former figure and described amplifieroperation.
7. method according to claim 6, it is characterised in that, the former figure of the described image of described reading, comprising:
Judge whether the former figure of described image is present in this locality;
When described former figure is present in this locality, read described former figure;
When described former figure is not present in this locality, download described former figure.
8. method according to claim 6, it is characterised in that, after the former figure of the described image of described reading, described method also comprises:
Determine the resolving power of described former figure;
Judge that whether described resolving power is lower than default resolving power threshold value;
When being judged as described resolving power lower than described resolving power threshold value, perform the image after described reading amplifieroperation.
9. method according to the arbitrary item of claim 1-8, it is characterised in that, described method also comprises:
Detect the preservation to described enlarged image to operate;
Described enlarged image is preserved based on the preservation operation detected.
10. an image processing apparatus, it is characterised in that, comprising:
Determination module, is configured to identify the word in described image when the amplifieroperation to image being detected and determine magnification ratio;
Drafting module, is configured to the enlarged image of image described in the magnification ratio determined based on described determination module and described Word-Drawing;
Display module, is configured to show described enlarged image.
11. devices according to claim 10, it is characterised in that, described drafting module comprises:
2nd true stator modules, is configured to determine the first size of the word in the former figure of described image and the described word first location in described former figure;
3rd true stator modules, is configured to described first size determined based on described magnification ratio, the described 2nd true stator modules and the 2nd size and the second position that described first location is determined in the image of described word after described amplifieroperation;
First rendering submodule, is configured to draw the painting canvas of size identical with the image after described amplifieroperation;
2nd rendering submodule, is configured to described 2nd size determined based on the described 3rd true stator modules and the described second position draws described word in described painting canvas, obtains described enlarged image.
12. devices according to claim 11, it is characterised in that, described drafting module also comprises:
3rd rendering submodule, is configured to be plotted in described painting canvas by the bitmap of described former figure;
Then described 2nd rendering submodule comprises:
4th rendering submodule, is configured to draw described word based on described 2nd size and the described second position on the upper strata of described bitmap.
13. devices according to claim 11, it is characterised in that, described drafting module also comprises:
4th true stator modules, is configured to determine the image parameter of described word in described former figure;
5th rendering submodule, is configured to the image parameter by described word is determined based on the described 4th true stator modules and is plotted in described painting canvas.
14. devices according to claim 11, it is characterised in that, described drafting module also comprises:
4th reading submodule, is configured to read the image parameter of user's setting, and described image parameter comprises any one or more in font, text color and background color;
6th rendering submodule, be configured to based on described 4th reading submodule read described image parameter by described Word-Drawing in described painting canvas.
15. devices according to claim 10, it is characterised in that, described determination module comprises:
First reading submodule, is configured to read the former figure of described image, it is determined that the size of described former figure;
2nd reading submodule, is configured to read the image after amplifieroperation, it is determined that the size of the image after described amplifieroperation;
Calculating sub module, is configured to the Size calculation magnification ratio of the image after the size based on described former figure and described amplifieroperation.
16. devices according to claim 15, it is characterised in that, described first reading submodule comprises:
First judges submodule block, is configured to judge whether the former figure of described image is present in this locality;
Third reading gets submodule block, is configured to read described former figure when described first judges that submodule block is judged as that described former figure is present in this locality;
Download submodule block, it is configured to download described former figure when described first judges that submodule block is judged as that described former figure is not present in this locality.
17. devices according to claim 15, it is characterised in that, described determination module also comprises:
First true stator modules, is configured to determine the resolving power of described former figure;
2nd judges submodule block, is configured to judge that whether described resolving power that the described first true stator modules determines is lower than default resolving power threshold value;
When the described 2nd judges that submodule block is judged as described resolving power lower than described resolving power threshold value, described third reading is got submodule block and is performed the image after described reading amplifieroperation.
18. devices according to the arbitrary item of claim 10-17, it is characterised in that, described device also comprises:
Detection module, is configured to detect the preservation to described enlarged image and operates;
Preserve module, it is configured to the preservation operation based on described detection module detects and preserves described enlarged image.
19. 1 kinds of terminals, it is characterised in that, comprising: treater; The storer of instruction can be performed for storage of processor; Wherein, described treater is configured to:
When the amplifieroperation to image being detected, identify the word in described image and determine magnification ratio;
Based on the enlarged image of image described in described magnification ratio and described Word-Drawing;
Show described enlarged image.
CN201511017469.7A 2015-12-29 2015-12-29 Image processing method and device and terminal Pending CN105635809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511017469.7A CN105635809A (en) 2015-12-29 2015-12-29 Image processing method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511017469.7A CN105635809A (en) 2015-12-29 2015-12-29 Image processing method and device and terminal

Publications (1)

Publication Number Publication Date
CN105635809A true CN105635809A (en) 2016-06-01

Family

ID=56050230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511017469.7A Pending CN105635809A (en) 2015-12-29 2015-12-29 Image processing method and device and terminal

Country Status (1)

Country Link
CN (1) CN105635809A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108764261A (en) * 2018-05-31 2018-11-06 努比亚技术有限公司 A kind of image processing method, mobile terminal and storage medium
CN108920089A (en) * 2018-07-19 2018-11-30 斑马音乐文化科技(深圳)有限公司 Requesting song plays display methods, device, program request equipment and storage medium
CN111275794A (en) * 2019-12-09 2020-06-12 佛山欧神诺云商科技有限公司 Method, device and storage medium for automatically generating expression picture
CN113112395A (en) * 2021-03-11 2021-07-13 宇龙计算机通信科技(深圳)有限公司 Picture processing method and device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03254275A (en) * 1990-03-02 1991-11-13 Sharp Corp Picture magnification and reduction method
CN1670766A (en) * 2004-03-17 2005-09-21 德鑫科技股份有限公司 Image zooming method
US7212210B2 (en) * 2004-03-17 2007-05-01 Ati Technologies Inc. Method and apparatus for enlarging an output display on a display
CN101419532A (en) * 2008-12-08 2009-04-29 联想移动通信科技有限公司 Method for changing information content dimension in mobile terminal and the mobile terminal
CN101523482A (en) * 2006-10-13 2009-09-02 科乐美数码娱乐株式会社 Display device, displa method, information recording medium and program
JP2010140199A (en) * 2008-12-10 2010-06-24 Fujitsu Ltd Information processor, display change method and display change program
CN103019502A (en) * 2011-09-21 2013-04-03 英业达股份有限公司 Image size adjusting method
CN104657934A (en) * 2015-02-09 2015-05-27 青岛海信移动通信技术股份有限公司 Image data processing method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03254275A (en) * 1990-03-02 1991-11-13 Sharp Corp Picture magnification and reduction method
CN1670766A (en) * 2004-03-17 2005-09-21 德鑫科技股份有限公司 Image zooming method
US7212210B2 (en) * 2004-03-17 2007-05-01 Ati Technologies Inc. Method and apparatus for enlarging an output display on a display
CN101523482A (en) * 2006-10-13 2009-09-02 科乐美数码娱乐株式会社 Display device, displa method, information recording medium and program
CN101419532A (en) * 2008-12-08 2009-04-29 联想移动通信科技有限公司 Method for changing information content dimension in mobile terminal and the mobile terminal
JP2010140199A (en) * 2008-12-10 2010-06-24 Fujitsu Ltd Information processor, display change method and display change program
CN103019502A (en) * 2011-09-21 2013-04-03 英业达股份有限公司 Image size adjusting method
CN104657934A (en) * 2015-02-09 2015-05-27 青岛海信移动通信技术股份有限公司 Image data processing method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108764261A (en) * 2018-05-31 2018-11-06 努比亚技术有限公司 A kind of image processing method, mobile terminal and storage medium
CN108920089A (en) * 2018-07-19 2018-11-30 斑马音乐文化科技(深圳)有限公司 Requesting song plays display methods, device, program request equipment and storage medium
CN111275794A (en) * 2019-12-09 2020-06-12 佛山欧神诺云商科技有限公司 Method, device and storage medium for automatically generating expression picture
CN111275794B (en) * 2019-12-09 2023-07-11 佛山欧神诺云商科技有限公司 Method, device and storage medium for automatically generating expression picture
CN113112395A (en) * 2021-03-11 2021-07-13 宇龙计算机通信科技(深圳)有限公司 Picture processing method and device and storage medium
CN113112395B (en) * 2021-03-11 2024-01-09 宇龙计算机通信科技(深圳)有限公司 Picture processing method, device and storage medium

Similar Documents

Publication Publication Date Title
EP3301557A1 (en) Method, apparatus and computer program product for sharing content
CN107239535A (en) Similar pictures search method and device
CN104021350A (en) Privacy-information hiding method and device
CN105427233A (en) Method and device for removing watermark
CN104182127A (en) Icon movement method and device
CN104918107A (en) Video file identification processing method and device
CN104679599A (en) Application program duplicating method and device
EP3147802B1 (en) Method and apparatus for processing information
CN104717293A (en) Method and device for showing information resources on conversation interface
CN107563994A (en) The conspicuousness detection method and device of image
CN105654533A (en) Picture editing method and picture editing device
CN106227848A (en) The display packing of notification message, device and terminal
CN105404438A (en) Background fuzzy method and apparatus and terminal device
CN106095407A (en) icon arrangement method, device and mobile device
CN104238911A (en) Loading icon display method and device
CN104536787B (en) Resource preloads method and device
CN105630337A (en) Control controlling method and device
CN105653505A (en) Method and device for regulating character display
CN105653165A (en) Method and device for regulating character display
CN105635809A (en) Image processing method and device and terminal
CN105488715A (en) Object information query method and device
CN106504050A (en) A kind of information comparison device and method
CN105653612A (en) Page rendering method and device
CN105094539B (en) Reference information display methods and device
CN106504295A (en) Render the method and device of picture

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160601