CN104778655B - The display methods and terminal of a kind of image - Google Patents
The display methods and terminal of a kind of image Download PDFInfo
- Publication number
- CN104778655B CN104778655B CN201510145419.0A CN201510145419A CN104778655B CN 104778655 B CN104778655 B CN 104778655B CN 201510145419 A CN201510145419 A CN 201510145419A CN 104778655 B CN104778655 B CN 104778655B
- Authority
- CN
- China
- Prior art keywords
- image file
- terminal
- resolution
- image
- file
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 230000009467 reduction Effects 0.000 claims abstract description 53
- 230000015572 biosynthetic process Effects 0.000 claims description 2
- 238000003786 synthesis reaction Methods 0.000 claims description 2
- 238000004321 preservation Methods 0.000 claims 1
- 230000000694 effects Effects 0.000 abstract description 11
- 230000033228 biological regulation Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000005194 fractionation Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Image Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a kind of display methods of image, including:First terminal is when reducing backup file, if the first terminal detects the first image file from second terminal in the backup file of reduction, the first terminal obtains the second resolution of the first resolution for the described first image file that described first image file includes and the display unit of the first terminal;The first terminal judges whether the second resolution is identical with the first resolution;If being judged as NO, the first terminal obtains the second image file that resolution ratio is the second resolution according to described first image file;The first terminal shows the second image file of generation by the display unit of the first terminal.The embodiment of the invention also discloses a kind of terminal.Using the present invention, the backup image file of second terminal can be adjusted when the backup image file of second terminal reverts to first terminal, improves the display effect of the image file after reduction.
Description
Technical field
The present invention relates to the display methods and terminal of communication technical field, more particularly to a kind of image.
Background technology
With the arrival of information age, various mobile devices are increasingly popularized, and especially mobile phone becomes increasingly popular simultaneously gradually
As a kind of fashionable element, cell-phone function, outward appearance etc. are constantly weeded out the old and bring forth the new, and are accelerated user and are pursued New function and change mobile phone
Frequency.But mobile phone is as a kind of personalized communication tool, often save user the most frequently used contact method and other
Significant data, when changing mobile phone (such as A mobile phones are replaced by into B mobile phones), user wishes to retain these data, therefore can incite somebody to action
The data of A mobile phones are by backing up and then reverting on B mobile phones.
B mobile phones include also original picture during reducing, if the resolution ratio of A mobile phone screens and the resolution of B mobile phone screens
Rate is different, then after the picture of B mobile phones reduction A mobile phones, the picture of the A mobile phones shown can cause distortion, influences the aobvious of picture
Show effect.
The content of the invention
The present invention provides a kind of display methods and terminal of image, can revert to the in the backup image file of second terminal
The backup image file of second terminal is adjusted during one terminal, improves the display effect of the image file after reduction.
First aspect present invention provides a kind of display methods of image, including:
First terminal is when reducing backup file, if the first terminal is detected in the backup file of reduction from
First image file of two terminals, then the described first image file that the first terminal acquisition described first image file includes
First resolution and the first terminal display unit second resolution;
The first terminal judges whether the second resolution is identical with the first resolution;
If being judged as NO, it is the described second resolution that the first terminal obtains resolution ratio according to described first image file
Second image file of rate;
The first terminal shows the second image file of generation by the display unit of the first terminal.
With reference to the implementation of first aspect present invention, in the first possible implementation of first aspect present invention
In, the first terminal detects the first image file from second terminal in the backup file of reduction, including:
The mark that the first terminal is carried in the backup file of the reduction by detecting described first image file
Determine that described first image file comes from the second terminal.
With reference to the first possible implementation of first aspect present invention, second in first aspect present invention may
Implementation in, the first terminal according to described first image file obtain resolution ratio be the second resolution second
Image file, including:
The first terminal is based on the second resolution and the first resolution, by described first image file from institute
State first resolution regulation and arrive the second resolution, based on the second image described in the described first image file generated after regulation
File,
Or
The first terminal obtains the 3rd image file matched with described first image file, by the 3rd image text
For part as second image file, the resolution ratio of the 3rd image file is the second resolution.
With reference to second of possible implementation of first aspect present invention, the third in first aspect present invention may
Implementation in, the first terminal obtains the 3rd image file matched with described first image file, by the described 3rd
Image file as second image file, including:
The first terminal obtains the colour of described first image file, and the colour includes rgb value, HSV value and HSL
Any of value;
The first terminal obtains the 3rd image file matched with the colour of described first image file, by described in
3rd image file is defined as second image file.
With reference to the third possible implementation of first aspect present invention, in the 4th kind of possibility of first aspect present invention
Implementation in, the first terminal obtains the 3rd image file matched with described first image file, by the described 3rd
Image file as second image file, including:
The first terminal splits out K1 content of image files from described first image file, and the K1 is just whole
Number;
The first terminal obtains the 3rd image file matched with the K1 content of image files, by described the
Three image files are defined as second image file.
Second aspect of the present invention provides a kind of terminal, including:
Acquisition module, for when reducing backup file, if being detected in the backup file of reduction from second terminal
The first image file, then obtain the first resolution of described first image file and institute that described first image file includes
State the second resolution of the display unit of terminal;
Judge module, for judge second resolution that the acquisition module obtains whether with the first resolution phase
Together;
Module is obtained, for when the judged result of the judge module is no, then being obtained according to described first image file
Obtain the second image file that resolution ratio is the second resolution;
Display module, for showing the second image file of generation by the display unit of the terminal.
With reference to the implementation of second aspect of the present invention, in the first possible implementation of second aspect of the present invention
In, the acquisition module, it is specifically used for:
The mark carried in the backup file of the reduction by detecting described first image file determines described first
Image file comes from the second terminal.
With reference to the first possible implementation of second aspect of the present invention, second in second aspect of the present invention may
Implementation in, the acquisition module, be specifically used for:
Based on the second resolution and the first resolution, by described first image file from the first resolution
The second resolution is adjusted, based on the second image file described in the described first image file generated after regulation,
Or
The 3rd image file that is matched with described first image file is obtained, using the 3rd image file as described the
Two image files, the resolution ratio of the 3rd image file is the second resolution.
With reference to second of possible implementation of second aspect of the present invention, the third in second aspect of the present invention may
Implementation in, it is described acquisition module include:
First acquisition unit, for obtaining the colour of described first image file, the colour include rgb value, HSV value with
And any of HSL values;
Second acquisition unit, for obtaining the 3rd image file matched with the colour of described first image file,
3rd image file is defined as second image file.
With reference to the third possible implementation of second aspect of the present invention, in the 4th kind of possibility of second aspect of the present invention
Implementation in, it is described acquisition module include:
Split cells, for splitting out K1 content of image files from described first image file, the K1 is just whole
Number;
Second acquisition unit, it is additionally operable to obtain the 3rd image file matched with the K1 content of image files,
3rd image file is defined as second image file.
Using the present invention, first terminal is when reducing backup file, if first terminal detects in the backup file of reduction
To the first image file from second terminal, then first terminal obtains the of the first image file that the first image file includes
The second resolution of the display unit of one resolution ratio and first terminal;First terminal judge second resolution whether with first point
Resolution is identical;If being judged as NO, first terminal obtains the second figure that resolution ratio is second resolution according to the first image file
As file;First terminal shows the second image file of generation by the display unit of first terminal, can be in reduction other-end
Image file when, the image file for the resolution ratio for being adapted to this terminal to support is generated according to the image file of other-end, makes this
Terminal will not cause distortion when showing the backup image file of other-end, can improve the display effect of the image file after reduction
Fruit.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment
Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for this area
For those of ordinary skill, without having to pay creative labor, it can also be obtained according to these accompanying drawings other attached
Figure.
Fig. 1 is a kind of schematic flow sheet of an embodiment of the display methods of image of the embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of another embodiment of the display methods of image of the embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet of the 3rd embodiment of the display methods of image of the embodiment of the present invention;
Fig. 3 a are a kind of a kind of step S302 of the display methods of image of embodiment of the present invention idiographic flow schematic diagrams;
Fig. 3 b are a kind of step S302 of the display methods of image of the embodiment of the present invention another idiographic flow signals
Figure;
Fig. 4 is a kind of structural representation of terminal of the embodiment of the present invention;
Fig. 5 is a kind of structural representation of the acquisition module of terminal of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " in description and claims of this specification and above-mentioned accompanying drawing and "
Four " etc. be to be used to distinguish different objects, rather than for describing particular order.In addition, term " comprising " and " having " and it
Any deformation, it is intended that cover non-exclusive include.Such as contain the process of series of steps or unit, method, be
The step of system, product or equipment are not limited to list or unit, but alternatively also including the step of not listing or list
Member, or alternatively also include for the intrinsic other steps of these processes, method, product or equipment or unit.
Using the embodiment of the present invention, second can be adjusted when the backup image file of second terminal reverts to first terminal eventually
The backup image file at end, improve the display effect of the image file after reduction.
Referring to Fig. 1, Fig. 1 is a kind of flow signal of an embodiment of the display methods of image of the embodiment of the present invention
Figure.Wherein, first terminal or second terminal can be mobile phone, tablet personal computer, notebook computer, palm PC, mobile Internet
Equipment (MID, mobile internet device) or other can backup and reduction terminal device.
As shown in figure 1, an a kind of embodiment of the display methods of image of the embodiment of the present invention may comprise steps of.
S100, first terminal is when reducing backup file, if the first terminal detects in the backup file of reduction
The first image file from second terminal, then first figure that the first terminal acquisition described first image file includes
As file first resolution and the first terminal display unit second resolution.
In the specific implementation, need data carrying out backup and reduction in changes terminal, if desired by the data of second terminal
Backup and reduction is carried out, the data of second terminal can be backed up on other-end (such as third terminal) first, then by the 3rd
The data for needing to reduce are sent to first terminal by terminal, and the data that the needs for being sent third terminal by first terminal reduce are entered
Row reduction, wherein may include the backup file of second terminal.If first terminal finds that the first image file comes from second terminal,
The first resolution of the image file of second terminal is obtained, and obtains the second of the display unit (i.e. display screen) of first terminal
Resolution ratio.
As a kind of enforceable mode, third terminal can be mobile phone, tablet personal computer, notebook computer, palm PC,
MID or other can backup and reduction terminal device.
As a kind of enforceable mode, second terminal can send the data to the 3rd by wired connection or wireless network
Terminal, and third terminal also can send the data to first terminal by wired connection or wireless network.
As a kind of enforceable mode, the data of first terminal reduction may also include the backup file of third terminal, or
The backup file of person's other-end.
S101, the first terminal judge whether the second resolution is identical with the first resolution.
In the specific implementation, first terminal judge the display unit of first terminal second resolution whether with second terminal
The first resolution of first image file is identical, directly can preserve or be directly displayed at the display list of first terminal if identical
Member, if distortion may be caused in the first different image file of display resolution by being judged as NO explanation first terminal, therefore the
One terminal can be adjusted to the first image file.
S102, if being judged as NO, the first terminal obtains resolution ratio as described the according to described first image file
Second image file of two resolution ratio.
In the specific implementation, when the judged result of above-mentioned steps is no, then first terminal adjusts first according to preset rules
Image file, generation resolution ratio are the second image file of second resolution.
As a kind of enforceable mode, first terminal can be adjusted the resolution ratio of the first image file by first resolution
For second resolution, so as to generate the second image file of second resolution.
As a kind of enforceable mode, first terminal can also be looked into according to the colour or image content of the first image file
The 3rd image file matched with the first image file that resolution ratio is second resolution is looked for, and regard the 3rd image file as the
Two image files.
S103, the first terminal show the second image file of generation by the display unit of the first terminal.
In the specific implementation, first terminal is the according to the first image file that resolution ratio is first resolution generation resolution ratio
After second image file of two resolution ratio, the second image file can be shown by the display unit of first terminal, due to first eventually
The resolution ratio of the display unit at end is second resolution, thus it is shown that image will not cause distortion, picture can be improved
Whole structure.
Using the embodiment of the present invention, first terminal is when reducing backup file, if first terminal is in the backup file of reduction
In detect the first image file from second terminal, then first terminal obtain the first image file include the first image text
The second resolution of the first resolution of part and the display unit of first terminal;First terminal judge second resolution whether with
First resolution is identical;If being judged as NO, first terminal obtains resolution ratio as second resolution according to the first image file
Second image file;First terminal shows the second image file of generation by the display unit of first terminal, can reduce it
During the image file of his terminal, the image text for the resolution ratio for being adapted to this terminal to support is generated according to the image file of other-end
Part, this terminal is not caused distortion when showing the backup image file of other-end, the image file after reduction can be improved
Display effect.
Referring to Fig. 2, Fig. 2 is a kind of flow signal of another embodiment of the display methods of image of the embodiment of the present invention
Figure.Wherein, first terminal or second terminal can be mobile phone, tablet personal computer, notebook computer, palm PC, mobile Internet
Equipment (MID, mobile internet device) or other can backup and reduction terminal device.The embodiment of the present invention is first
Refined in the mode that the image file of terminal-pair first is adjusted, the following detailed description of.
As shown in Fig. 2 a kind of another embodiment of the display methods of image of the embodiment of the present invention can include following step
Suddenly.
S200, first terminal is when reducing backup file, if the first terminal leads in the backup file of the reduction
Cross the mark that detection described first image file carries and determine that described first image file comes from the second terminal, then described the
One terminal obtains the first resolution for the described first image file that described first image file includes and the first terminal
Display unit second resolution.
In the specific implementation, need data carrying out backup and reduction in changes terminal, if desired by the data of second terminal
Backup and reduction is carried out, is first backed up the data of second terminal on other-end (such as third terminal), then by the 3rd eventually
The data for needing to reduce are sent to first terminal by end, and the data that the needs for being sent third terminal by first terminal reduce are carried out
Reduction, wherein may include the backup file of second terminal.First terminal is when reducing backup file, by detecting the first image text
The mark for the terminal that part carries determines that the first image file comes from second terminal.If first terminal finds that the first image file comes from
Second terminal, then the first resolution of the image file of second terminal is obtained, and the display unit for obtaining first terminal (is shown
Screen) second resolution.Second resolution is to be limited to resolution ratio when being shown on display unit.For example, first is whole
The first resolution that end gets the first image file by the first image file is 1280*720, the display unit of first terminal
Second resolution be 1980*1080.
As a kind of enforceable mode, third terminal can be mobile phone, tablet personal computer, notebook computer, palm PC,
MID or other can backup and reduction terminal device.
As a kind of enforceable mode, second terminal can send the data to the 3rd by wired connection or wireless network
Terminal, and third terminal also can send the data to first terminal by wired connection or wireless network.
As a kind of enforceable mode, the data of first terminal reduction may also include the backup file of third terminal, or
The backup file of person's other-end.
S201, the first terminal judge whether the second resolution is identical with the first resolution.
In the specific implementation, first terminal judge the display unit of first terminal second resolution whether with second terminal
The first resolution of first image file is identical, directly can preserve or be directly displayed at the display list of first terminal if identical
Member, if distortion may be caused in the first different image file of display resolution by being judged as NO explanation first terminal, therefore the
One terminal can be adjusted to the first image file.If being judged as YES, step S204 is performed, if being judged as NO, performs step
Rapid S202.
S202, the first terminal are based on the second resolution and the first resolution, by described first image text
Part is adjusted to the second resolution from the first resolution, based on described in the described first image file generated after regulation the
Two image files.
In the specific implementation, due to the first image file first terminal display unit need resolution ratio be the second resolution
Effect can be just clearly indicated under rate, therefore, when the judged result of above-mentioned steps is no, then first terminal is according to default rule
The first image file is then adjusted, generation resolution ratio is the second image file of second resolution.Specifically, when first terminal passes through
First image file get the first resolution of the first image file for 1280*720, the display unit of first terminal second
When resolution ratio is 1980*1080, then the first image file that resolution ratio is 1280*720 is stretched to 1980*1080 (i.e. second
Resolution ratio), so as to generate the second image file that resolution ratio is 1980*1080.
As a kind of enforceable mode, the first image file is adjusted to second and differentiated by first terminal from first resolution
The process of rate can be:First terminal calculates the pixel value between first resolution and second resolution, further according to the picture
Plain value difference value increases or decreases the pixel of the first image file to the first image file, enables the resolution ratio of the first image file
Second resolution is arrived in enough regulations, so as to generate the second image file that resolution ratio is second resolution.
S203, the first terminal show the second image file of generation by the display unit of the first terminal.
In the specific implementation, first terminal is the according to the first image file that resolution ratio is first resolution generation resolution ratio
After second image file of two resolution ratio, the second image file can be shown by the display unit of first terminal, due to first eventually
The resolution ratio of the display unit at end is second resolution, thus it is shown that image will not cause distortion, picture can be improved
Whole structure.
S204, terminate.
Using the embodiment of the present invention, first terminal is when reducing backup file, if first terminal is in the backup file of reduction
In detect the first image file from second terminal, then first terminal obtain the first image file include the first image text
The second resolution of the first resolution of part and the display unit of first terminal;First terminal judge second resolution whether with
First resolution is identical;If being judged as NO, first terminal obtains resolution ratio as second resolution according to the first image file
Second image file;First terminal shows the second image file of generation by the display unit of first terminal, can reduce it
During the image file of his terminal, the image text for the resolution ratio for being adapted to this terminal to support is generated according to the image file of other-end
Part, this terminal is not caused distortion when showing the backup image file of other-end, the image file after reduction can be improved
Display effect.
Referring to Fig. 3, Fig. 3 is a kind of flow signal of the 3rd embodiment of the display methods of image of the embodiment of the present invention
Figure.Wherein, first terminal or second terminal can be mobile phone, tablet personal computer, notebook computer, palm PC, mobile Internet
Equipment (MID, mobile internet device) or other can backup and reduction terminal device.The embodiment of the present invention is first
Refined in the another way that the image file of terminal-pair first is adjusted, the following detailed description of.It should be noted that this
The 3rd image file that embodiment is related to is the image of second resolution, therefore is then repeated no more in embodiment.
As shown in figure 3, a kind of another embodiment of the display methods of image of the embodiment of the present invention can include following step
Suddenly.
S300, first terminal is when reducing backup file, if the first terminal leads in the backup file of the reduction
Cross the mark that detection described first image file carries and determine that described first image file comes from the second terminal, then described the
One terminal obtains the first resolution for the described first image file that described first image file includes and the first terminal
Display unit second resolution.
In the specific implementation, need data carrying out backup and reduction in changes terminal, if desired by the data of second terminal
Backup and reduction is carried out, is first backed up the data of second terminal on other-end (such as third terminal), then by the 3rd eventually
The data for needing to reduce are sent to first terminal by end, and the data that the needs for being sent third terminal by first terminal reduce are carried out
Reduction, wherein may include the backup file of second terminal.First terminal is when reducing backup file, by detecting the first image text
The mark for the terminal that part carries determines that the first image file comes from second terminal.If first terminal finds that the first image file comes from
Second terminal, then the first resolution of the image file of second terminal is obtained, and the display unit for obtaining first terminal (is shown
Screen) second resolution.Second resolution is to be limited to resolution ratio when being shown on display unit.For example, first is whole
The first resolution that end gets the first image file by the first image file is 1280*720, the display unit of first terminal
Second resolution be 1980*1080.
As a kind of enforceable mode, third terminal can be mobile phone, tablet personal computer, notebook computer, palm PC,
MID or other can backup and reduction terminal device.
As a kind of enforceable mode, second terminal can send the data to the 3rd by wired connection or wireless network
Terminal, and third terminal also can send the data to first terminal by wired connection or wireless network.
As a kind of enforceable mode, the data of first terminal reduction may also include the backup file of third terminal, or
The backup file of person's other-end.
S301, the first terminal judge whether the second resolution is identical with the first resolution.
In the specific implementation, first terminal judge the display unit of first terminal second resolution whether with second terminal
The first resolution of first image file is identical, directly can preserve or be directly displayed at the display list of first terminal if identical
Member, if distortion may be caused in the first different image file of display resolution by being judged as NO explanation first terminal, therefore the
One terminal can be adjusted to the first image file.If being judged as YES, step S304 is performed, if being judged as NO, performs step
Rapid S302.
S302, the first terminal obtains the 3rd image file matched with described first image file, by the described 3rd
For image file as second image file, the resolution ratio of the 3rd image file is the second resolution.
In the specific implementation, first terminal can obtain the 3rd image file that resolution ratio is second resolution, by the 3rd image
File and the first image file one by one compared with, and the 3rd image file to match with the first image file is found out, for example,
One terminal can calculate the similarity of the 3rd image file and the first image file.Wherein, the quantity of the 3rd image file is at least
One.If the 3rd image file and the similarity of the first image file that calculate are more than or equal to preset value, it is determined that by this
3rd image file is as the second image file.If the similarity of at least one 3rd image file and the first image file be present
More than or equal to preset value, then using the 3rd maximum image file of the similarity with the first image file as the second image text
Part.Wherein, it is similar to the first image file can to calculate the 3rd image file by colour or picture material for first terminal
Degree.It will be described in detail below.
As a kind of enforceable mode, as shown in Figure 3 a, above-mentioned steps S302 may include:
S3021, the first terminal obtain the colour of described first image file, and the colour includes rgb value, HSV value
And any of HSL values.
In the specific implementation, the present embodiment calculates the similarity of the 3rd image file and the first image file by colour.
Wherein, colour may include red (R) green (G) blue (B) value, tone (H) saturation degree (S) brightness (V) value or tone (H) saturation degree
(S) any of lightness (L) value.So that the colour of acquisition is rgb value as an example, first terminal can obtain the first image file
Rgb value, the calculating of similarity is carried out with rgb value.
As a kind of enforceable mode, first terminal can split out the first image file M image-region, obtain each
The rgb value of individual image-region, and the rgb value for arbitrarily choosing from the rgb value of each image-region an image-region is used as the
The rgb value of one image file.
As a kind of enforceable mode, first terminal can split out the first image file M image-region, obtain each
The rgb value of individual image-region, and choose an image according to the selection mode of user preset from the rgb value of each image-region
Rgb value of the rgb value in region as the first image file.
As a kind of enforceable mode, first terminal can split out the first image file M image-region, obtain each
The rgb value of individual image-region, and the most figure of conduct first of identical rgb value quantity is chosen from the rgb value of each image-region
As the rgb value of file.
As a kind of enforceable mode, M is positive integer, M can for example be equal to 1,2,4,6,10,11,13,20 or other
Value.
S3022, the first terminal obtain the 3rd image file matched with the colour of described first image file,
3rd image file is defined as second image file.
In the specific implementation, by taking the calculating that rgb value carries out similarity as an example, first terminal is by the rgb value of the first image file
Compared with the colour of the 3rd image file prestored, and obtain the colour of the 3rd image file and the first image file
Similarity.Wherein, the quantity of the 3rd image file is at least one, and the resolution ratio of the 3rd image file is the second resolution
Rate.
As a kind of enforceable mode, first terminal can split out the 3rd image file N number of image-region, obtain each
The rgb value of individual image-region, and the rgb value for arbitrarily choosing from the rgb value of each image-region an image-region is used as the
The rgb value of three image files.
As a kind of enforceable mode, first terminal can split out the 3rd image file N number of image-region, obtain each
The rgb value of individual image-region, and choose an image according to the selection rule of user preset from the rgb value of each image-region
Rgb value of the rgb value in region as the 3rd image file.
As a kind of enforceable mode, first terminal can split out the 3rd image file N number of image-region, obtain each
The rgb value of individual image-region, and the most figure of conduct the 3rd of identical rgb value quantity is chosen from the rgb value of each image-region
As the rgb value of file.
As a kind of enforceable mode, N is positive integer, N can for example be equal to 1,2,4,6,10,11,13,20 or other
Value.
In the specific implementation, if the 3rd image file and the similarity of the colour of the first image file that calculate are more than or waited
In preset value, it is determined that using the 3rd image file as the second image file.If exist at least one 3rd image file with
The similarity of the colour of first image file is more than or equal to preset value, then by the similarity of the colour with the first image file most
The 3rd big image file is as the second image file.
As a kind of enforceable mode, as shown in Figure 3 b, above-mentioned steps S302 may also include:
S302a, the first terminal split out K1 content of image files from described first image file, and the K1 is
Positive integer.
In the specific implementation, first terminal can be by identifying that the picture material in the first image file enters the first image file
Row is split.Wherein, the number of fractionation can be preset, or any setting.For example, a cap is included in the first image file
And a dog, then first terminal split out the content of image files of content of image files and dog including cap, K1 is then etc.
In 2.
As a kind of enforceable mode, K1 can for example be equal to 1,2,3,5,6,11,13,20 or other values.
S302b, the first terminal obtain the 3rd image file matched with the K1 content of image files, will
3rd image file is defined as second image file.
In the specific implementation, the content of image files of cap and the figure of dog that first terminal can include the first image file
As file content is compared with the K2 content of image files that the 3rd image file includes, the 3rd image file and first are obtained
The similarity of the picture material of image file.Wherein, the similarity of the picture material of the 3rd image file and the first image file
Can be related to K1, K2, the picture material of the first image file and the 3rd image file picture material.
Wherein, the K2 can for example be equal to 1,2,5,6,11,15,19 or other values.
In the specific implementation, if the 3rd image file and the similarity of the picture material of the first image file that calculate are more than
Or equal to preset value, it is determined that using the 3rd image file as the second image file.If at least one 3rd image text be present
The similarity of the picture material of part and the first image file is more than or equal to preset value, then by with the image of the first image file
The 3rd maximum image file of the similarity of appearance is as the second image file.
As a kind of enforceable mode, the present embodiment can also be combined calculating with step S3021 to S3022, that is, exist
The 3rd image file and first can be also calculated during the similarity for calculating the picture material of the 3rd image file and the first image file
The similarity of the colour of the picture material of image file, to improve the accuracy for calculating similarity.If for example, the first image file
In include a yellow cap and a brown dog, then first terminal splits out the content of image files including cap and dog
Content of image files, and obtain the first image file in the rgb value of cap and the rgb value of dog.First terminal can then be distinguished
The similarity of picture material and the similarity of colour of the 3rd image file and the first image file are calculated, it is last according to default
Rule (such as average or respectively the similarity of the similarity of picture material and colour sets weight) is by the 3rd image
The similarity of the picture material of file and the first image file and the similarity of colour carry out COMPREHENSIVE CALCULATING, obtain the 3rd image
The comprehensive similarity of file and the first image file, preset value will be more than or equal to the comprehensive similarity of the first image file
3rd image file is defined as the second image file.If the synthesis of at least one 3rd image file and the first image file be present
Similarity is more than or equal to preset value, then regard the 3rd maximum image file of the comprehensive similarity with the first image file as the
Two image files.
S303, the first terminal show the second image file of generation by the display unit of the first terminal.
In the specific implementation, first terminal is the according to the first image file that resolution ratio is first resolution generation resolution ratio
After second image file of two resolution ratio, the second image file can be shown by the display unit of first terminal, due to first eventually
The resolution ratio of the display unit at end is second resolution, thus it is shown that image will not cause distortion, picture can be improved
Whole structure.
S304, terminate.
Using the embodiment of the present invention, first terminal is when reducing backup file, if first terminal is in the backup file of reduction
In detect the first image file from second terminal, then first terminal obtain the first image file include the first image text
The second resolution of the first resolution of part and the display unit of first terminal;First terminal judge second resolution whether with
First resolution is identical;If being judged as NO, first terminal obtains resolution ratio as second resolution according to the first image file
Second image file;First terminal shows the second image file of generation by the display unit of first terminal, can reduce it
During the image file of his terminal, the image text for the resolution ratio for being adapted to this terminal to support is generated according to the image file of other-end
Part, this terminal is not caused distortion when showing the backup image file of other-end, the image file after reduction can be improved
Display effect.
Referring to Fig. 4, Fig. 4 is a kind of structural representation of terminal of the embodiment of the present invention.Wherein, first terminal or second
Terminal can be mobile phone, tablet personal computer, notebook computer, palm PC, mobile internet device (MID, mobile
Internet device) or other can backup and reduction terminal device.Terminal as shown in Figure 4 includes acquisition module 400, sentenced
Disconnected module 401, obtain module 402 and display module 403.
Acquisition module 400, for when reducing backup file, if being detected in the backup file of reduction from second eventually
First image file at end, then obtain the first resolution of described first image file that described first image file includes and
The second resolution of the display unit of the terminal;
Judge module 401, for judging whether second resolution that the acquisition module 400 obtains is differentiated with described first
Rate is identical;
Obtain module 402, for when the judge module 401 judged result for it is no when, then according to described first image
File obtains the second image file that resolution ratio is the second resolution;
Display module 403, for showing the second image file of generation by the display unit of the terminal.
In the specific implementation, need data carrying out backup and reduction in changes terminal, if desired by the data of second terminal
Backup and reduction is carried out, the data of second terminal can be backed up on other-end (such as third terminal) first, then by the 3rd
The data for needing to reduce are sent to first terminal by terminal, and the data that the needs for being sent third terminal by first terminal reduce are entered
Row reduction, wherein may include the backup file of second terminal.If first terminal finds that the first image file comes from second terminal,
The first resolution of the image file of second terminal is obtained, and obtains the second of the display unit (i.e. display screen) of first terminal
Resolution ratio.
In the specific implementation, first terminal judge the display unit of first terminal second resolution whether with second terminal
The first resolution of first image file is identical, directly can preserve or be directly displayed at the display list of first terminal if identical
Member, if distortion may be caused in the first different image file of display resolution by being judged as NO explanation first terminal, therefore the
One terminal can be adjusted to the first image file.
In the specific implementation, when the judged result of above-mentioned steps is no, then first terminal adjusts first according to preset rules
Image file, generation resolution ratio are the second image file of second resolution.
In the specific implementation, first terminal is the according to the first image file that resolution ratio is first resolution generation resolution ratio
After second image file of two resolution ratio, the second image file can be shown by the display unit of first terminal, due to first eventually
The resolution ratio of the display unit at end is second resolution, thus it is shown that image will not cause distortion, picture can be improved
Whole structure.
As a kind of enforceable mode, the acquisition module 400, it is specifically used for:
The mark carried in the backup file of the reduction by detecting described first image file determines described first
Image file comes from the second terminal.
In the specific implementation, the terminal that first terminal carries when reducing backup file, by detecting the first image file
Mark determines that the first image file comes from second terminal.
As a kind of enforceable mode, the acquisition module 402, it is specifically used for:
Based on the second resolution and the first resolution, by described first image file from the first resolution
The second resolution is adjusted, based on the second image file described in the described first image file generated after regulation,
Or
The 3rd image file that is matched with described first image file is obtained, using the 3rd image file as described the
Two image files, the resolution ratio of the 3rd image file is the second resolution.
In the specific implementation, due to the first image file first terminal display unit need resolution ratio be the second resolution
Effect can be just clearly indicated under rate, therefore, when the judged result of above-mentioned steps is no, then first terminal is according to default rule
The first image file is then adjusted, generation resolution ratio is the second image file of second resolution.Specifically, when first terminal passes through
First image file get the first resolution of the first image file for 1280*720, the display unit of first terminal second
When resolution ratio is 1980*1080, then the first image file that resolution ratio is 1280*720 is stretched to 1980*1080 (i.e. second
Resolution ratio), so as to generate the second image file that resolution ratio is 1980*1080.
In the specific implementation, first terminal can obtain the 3rd image file that resolution ratio is second resolution, by the 3rd image
File and the first image file one by one compared with, and the 3rd image file to match with the first image file is found out, for example,
One terminal can calculate the similarity of the 3rd image file and the first image file.Wherein, the quantity of the 3rd image file is at least
One.If the 3rd image file and the similarity of the first image file that calculate are more than or equal to preset value, it is determined that by this
3rd image file is as the second image file.If the similarity of at least one 3rd image file and the first image file be present
More than or equal to preset value, then using the 3rd maximum image file of the similarity with the first image file as the second image text
Part.Wherein, it is similar to the first image file can to calculate the 3rd image file by colour or picture material for first terminal
Degree.It will be described in detail below.
As a kind of enforceable mode, as shown in figure 5, the acquisition module 402 include first acquisition unit 4020 with
And second acquisition unit 4021.
First acquisition unit 4020, for obtaining the colour of described first image file, the colour includes rgb value, HSV
Any of value and HSL values;
Second acquisition unit 4021, for obtaining the 3rd image matched with the colour of described first image file text
Part, the 3rd image file is defined as second image file.
In the specific implementation, the present embodiment calculates the similarity of the 3rd image file and the first image file by colour.
Wherein, colour may include red (R) green (G) blue (B) value, tone (H) saturation degree (S) brightness (V) value or tone (H) saturation degree
(S) any of lightness (L) value.So that the colour of acquisition is rgb value as an example, first terminal can obtain the first image file
Rgb value, the calculating of similarity is carried out with rgb value.
In the specific implementation, by taking the calculating that rgb value carries out similarity as an example, first terminal is by the rgb value of the first image file
Compared with the colour of the 3rd image file prestored, and obtain the colour of the 3rd image file and the first image file
Similarity.Wherein, the quantity of the 3rd image file is at least one, and the resolution ratio of the 3rd image file is the second resolution
Rate.
In the specific implementation, if the 3rd image file and the similarity of the colour of the first image file that calculate are more than or waited
In preset value, it is determined that using the 3rd image file as the second image file.If exist at least one 3rd image file with
The similarity of the colour of first image file is more than or equal to preset value, then by the similarity of the colour with the first image file most
The 3rd big image file is as the second image file.
As a kind of enforceable mode, as shown in figure 5, the acquisition module 402 also includes split cells 4022.
Split cells 4022, for splitting out K1 content of image files from described first image file, the K1 is
Positive integer;
Second acquisition unit 4021, it is additionally operable to obtain the 3rd image text matched with the K1 content of image files
Part, the 3rd image file is defined as second image file.
In the specific implementation, first terminal can be by identifying that the picture material in the first image file enters the first image file
Row is split.Wherein, the number of fractionation can be preset, or any setting.For example, a cap is included in the first image file
And a dog, then first terminal split out the content of image files of content of image files and dog including cap, K1 is then etc.
In 2.
In the specific implementation, the content of image files of cap and the figure of dog that first terminal can include the first image file
As file content is compared with the K2 content of image files that the 3rd image file includes, the 3rd image file and first are obtained
The similarity of the picture material of image file.Wherein, the similarity of the picture material of the 3rd image file and the first image file
Can be related to K1, K2, the picture material of the first image file and the 3rd image file picture material.
In the specific implementation, if the 3rd image file and the similarity of the picture material of the first image file that calculate are more than
Or equal to preset value, it is determined that using the 3rd image file as the second image file.If at least one 3rd image text be present
The similarity of the picture material of part and the first image file is more than or equal to preset value, then by with the image of the first image file
The 3rd maximum image file of the similarity of appearance is as the second image file.
Using the embodiment of the present invention, first terminal is when reducing backup file, if first terminal is in the backup file of reduction
In detect the first image file from second terminal, then first terminal obtain the first image file include the first image text
The second resolution of the first resolution of part and the display unit of first terminal;First terminal judge second resolution whether with
First resolution is identical;If being judged as NO, first terminal obtains resolution ratio as second resolution according to the first image file
Second image file;First terminal shows the second image file of generation by the display unit of first terminal, can reduce it
During the image file of his terminal, the image text for the resolution ratio for being adapted to this terminal to support is generated according to the image file of other-end
Part, this terminal is not caused distortion when showing the backup image file of other-end, the image file after reduction can be improved
Display effect.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can
To be or may not be physically separate, it can be as the part that unit is shown or may not be physics list
Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs
In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness
Work in the case of, you can to understand and implement.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Module or unit in device of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
The module or module of the embodiment of the present invention, can be with universal integrated circuit (such as central processor CPU), or with special
Integrated circuit (ASIC) is realized.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on
The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers
Make to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation
Method described in some parts of example or embodiment.
Embodiments described above, the restriction to the technical scheme protection domain is not formed.It is any in above-mentioned implementation
Modifications, equivalent substitutions and improvements made within the spirit and principle of mode etc., should be included in the protection model of the technical scheme
Within enclosing.
Claims (4)
- A kind of 1. display methods of image, it is characterised in that including:First terminal is when reducing backup file, if the first terminal detects from second eventually in the backup file of reduction First image file at end, then the first terminal obtain the of the described first image file that described first image file includes The second resolution of the display unit of one resolution ratio and the first terminal;The first terminal judges whether the second resolution is identical with the first resolution;The direct display unit for preserving the first image file or being directly displayed at first terminal if identical;If being judged as NO, the first terminal obtains the colour of described first image file, and the colour includes rgb value, HSV value And any of HSL values;The first terminal splits out K1 content of image files, institute from described first image file It is positive integer to state K1;The first terminal obtains the 3rd image file that resolution ratio is the second resolution, and described first eventually End is that the similarity of picture material and the similarity of colour set weight, by the 3rd image file according to preset rules COMPREHENSIVE CALCULATING is carried out with the similarity of the described image file content of described first image file and the similarity of the colour, The comprehensive similarity of the 3rd image file and described first image file is obtained, the comprehensive similarity is more than or equal to The 3rd image file of preset value is defined as the second image file;The first terminal shows second image file of generation by the display unit of the first terminal.
- 2. according to the method for claim 1, it is characterised in that the first terminal detects in the backup file of reduction The first image file from second terminal, including:The mark that the first terminal is carried in the backup file of the reduction by detecting described first image file determines Described first image file comes from the second terminal.
- A kind of 3. terminal, it is characterised in that including:Acquisition module, for when reducing backup file, if detecting from second terminal in the backup file of reduction One image file, then obtain the first resolution for the described first image file that described first image file includes and the end The second resolution of the display unit at end;Judge module, for judging whether the second resolution that the acquisition module obtains is identical with the first resolution;First acquisition unit, for obtaining the colour of described first image file, the colour include rgb value, HSV value and Any of HSL values;Split cells, for splitting out K1 content of image files from described first image file, the K1 is positive integer;Second acquisition unit, for when the judge module judged result for be when, then directly preservation the first image file or Person is directly displayed at the display unit of first terminal;For it is no when, it is described second point that the second acquisition unit, which obtains resolution ratio, 3rd image file of resolution, the second acquisition unit are the similarity and colour of picture material according to preset rules Similarity sets weight, by the similarity of the 3rd image file and the described image file content of described first image file And the similarity of the colour carries out COMPREHENSIVE CALCULATING, obtains the synthesis of the 3rd image file and described first image file Similarity, the 3rd image file that the comprehensive similarity is more than or equal to preset value are defined as the second image file;Display module, for showing second image file of generation by the display unit of the terminal.
- 4. terminal according to claim 3, it is characterised in that the acquisition module, be specifically used for:The mark carried in the backup file of the reduction by detecting described first image file determines described first image File comes from the second terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510145419.0A CN104778655B (en) | 2015-03-30 | 2015-03-30 | The display methods and terminal of a kind of image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510145419.0A CN104778655B (en) | 2015-03-30 | 2015-03-30 | The display methods and terminal of a kind of image |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104778655A CN104778655A (en) | 2015-07-15 |
CN104778655B true CN104778655B (en) | 2018-01-19 |
Family
ID=53620103
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510145419.0A Expired - Fee Related CN104778655B (en) | 2015-03-30 | 2015-03-30 | The display methods and terminal of a kind of image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104778655B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105072334B (en) * | 2015-07-23 | 2018-06-29 | 广东欧珀移动通信有限公司 | A kind of data processing method and electric terminal |
CN113296664A (en) * | 2021-05-18 | 2021-08-24 | Oppo广东移动通信有限公司 | Screen resolution adjusting method and device, terminal equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1652573A (en) * | 2004-02-06 | 2005-08-10 | 佳能株式会社 | Image sensing apparatus and its control method |
CN1860788A (en) * | 2003-05-16 | 2006-11-08 | 比卡萨有限公司 | Methods and systems for image sharing over a network |
CN101076075A (en) * | 2006-05-16 | 2007-11-21 | 明基电通股份有限公司 | Image storing method and its computer fetch medium |
CN101500048A (en) * | 2008-02-01 | 2009-08-05 | 华为技术有限公司 | Method and system for image processing display |
CN104092749A (en) * | 2014-07-01 | 2014-10-08 | 小米科技有限责任公司 | Method and device for synchronizing photos |
-
2015
- 2015-03-30 CN CN201510145419.0A patent/CN104778655B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1860788A (en) * | 2003-05-16 | 2006-11-08 | 比卡萨有限公司 | Methods and systems for image sharing over a network |
CN1652573A (en) * | 2004-02-06 | 2005-08-10 | 佳能株式会社 | Image sensing apparatus and its control method |
CN101076075A (en) * | 2006-05-16 | 2007-11-21 | 明基电通股份有限公司 | Image storing method and its computer fetch medium |
CN101500048A (en) * | 2008-02-01 | 2009-08-05 | 华为技术有限公司 | Method and system for image processing display |
CN104092749A (en) * | 2014-07-01 | 2014-10-08 | 小米科技有限责任公司 | Method and device for synchronizing photos |
Also Published As
Publication number | Publication date |
---|---|
CN104778655A (en) | 2015-07-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110472145B (en) | Content recommendation method and electronic equipment | |
CN104216976B (en) | A kind of mobile terminal picture grouping inspection method and system | |
CN105957125B (en) | A kind of processing method and mobile terminal of icon text | |
CN108334539B (en) | Object recommendation method, mobile terminal and computer-readable storage medium | |
CN104902088B (en) | Mobile terminal adjusts the method and device of screen intensity | |
CN109189281A (en) | Color adaptation method, terminal and the computer storage medium of wallpaper and icon | |
CN108153503B (en) | Display control method and related product | |
US12001654B2 (en) | Image storage method and terminal device | |
CN103870160B (en) | A kind of information processing method and electronic equipment | |
CN106911943A (en) | A kind of video display method and its device | |
CN105279751B (en) | A kind of method and apparatus handled for picture | |
CN108259746B (en) | Image color detection method and mobile terminal | |
CN105912680A (en) | Search-related recommendation method, device and mobile terminal | |
CN105159581A (en) | Picture browsing method and mobile terminal | |
CN104778655B (en) | The display methods and terminal of a kind of image | |
CN109189960A (en) | Information acquisition method, information acquisition device and computer storage medium | |
CN110097570B (en) | Image processing method and device | |
EP2656599A1 (en) | Methods and systems for automated business dialing | |
CN111131612A (en) | Screen color temperature control method and device, storage medium and mobile terminal | |
CN107145221A (en) | A kind of information processing method and electronic equipment | |
CN108629767A (en) | A kind of method, device and mobile terminal of scene detection | |
CN108198144A (en) | Image processing method, device, storage medium and electronic equipment | |
CN107085521A (en) | A kind of icon display method and device | |
CN110825288A (en) | Image screening processing method and electronic equipment | |
CN110766606A (en) | Image processing method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180119 |
|
CF01 | Termination of patent right due to non-payment of annual fee |