CN104778655A - Image display method and terminal - Google Patents

Image display method and terminal Download PDF

Info

Publication number
CN104778655A
CN104778655A CN201510145419.0A CN201510145419A CN104778655A CN 104778655 A CN104778655 A CN 104778655A CN 201510145419 A CN201510145419 A CN 201510145419A CN 104778655 A CN104778655 A CN 104778655A
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.)
Granted
Application number
CN201510145419.0A
Other languages
Chinese (zh)
Other versions
CN104778655B (en
Inventor
张强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510145419.0A priority Critical patent/CN104778655B/en
Publication of CN104778655A publication Critical patent/CN104778655A/en
Application granted granted Critical
Publication of CN104778655B publication Critical patent/CN104778655B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides an image display method which comprises steps as follows: a first terminal acquires first resolution, contained in a first image file, of the first image file and second resolution of a display unit of the first terminal when restoring a backup file and detecting the first image file sent by a second terminal from the restored backup file; the first terminal judges whether the second resolution is identical with the first resolution or not; if the second resolution is not identical with the first resolution, the first terminal acquires a second image file with the second resolution according to the first image file; the first terminal displays the generated second image file through the display unit of the first terminal. An embodiment of the invention further discloses a terminal. With the adoption of the image display method and the terminal, the backup image file of the second terminal can be adjusted when the backup image file of the second terminal is restored to the first terminal, and the display effect of the restored image file can be improved.

Description

A kind of display packing of image and terminal
Technical field
The present invention relates to communication technical field, particularly relate to a kind of display packing and terminal of image.
Background technology
Along with the arrival of information age, various mobile device is more and more universal, and especially mobile phone is day by day universal also becomes a kind of fashionable element gradually, and cell-phone function, outward appearance etc. are constantly weeded out the old and bring forth the new, and accelerate the frequency that user pursues New function and changes mobile phone.But mobile phone is as the personalized communication tool of one, often save the most frequently used contact method and other significant datas of user, when changing mobile phone (such as A mobile phone being replaced by B mobile phone), user wishes to retain these data, therefore then the data of A mobile phone can be reverted on B mobile phone by backup.
The process of B mobile phone reduction comprises reduction picture, if the resolution of A mobile phone screen is different from the resolution of B mobile phone screen, then, after the picture of B mobile phone reduction A mobile phone, the figure sector-meeting of the A mobile phone demonstrated causes distortion, affects the display effect of picture.
Summary of the invention
The invention provides a kind of display packing and terminal of image, the backup image file of the second terminal can be adjusted when the backup image file of the second terminal reverts to first terminal, improve the display effect of the image file after reduction.
First aspect present invention provides a kind of display packing of image, comprising:
First terminal is when reducing backup file, if described first terminal detects the first image file from the second terminal in the backup file of reduction, then described first terminal obtains the second resolution of the first resolution of described first image file that described first image file comprises and the display unit of described first terminal;
Described first terminal judges that whether described second resolution is identical with described first resolution;
If be judged as NO, then described first terminal obtains according to described first image file the second image file that resolution is described second resolution;
The second image file that described first terminal is generated by the display unit display of described first terminal.
In conjunction with the implementation of first aspect present invention, in the first possible implementation of first aspect present invention, described first terminal detects the first image file from the second terminal in the backup file of reduction, comprising:
The mark that described first terminal carries by detecting described first image file in the backup file of described reduction determines that described first image file is from described second terminal.
In conjunction with the first possible implementation of first aspect present invention, in the implementation that the second of first aspect present invention is possible, described first terminal obtains according to described first image file the second image file that resolution is described second resolution, comprising:
Described first image file, based on described second resolution and described first resolution, is adjusted to described second resolution from described first resolution by described first terminal, generates described second image file based on described first image file after regulating,
Or,
Described first terminal obtains the 3rd image file mated with described first image file, and using described 3rd image file as described second image file, the resolution of described 3rd image file is described second resolution.
In conjunction with the implementation that the second of first aspect present invention is possible, in the third possible implementation of first aspect present invention, described first terminal obtains the 3rd image file mated with described first image file, using described 3rd image file as described second image file, comprising:
Described first terminal obtains the colour of described first image file, and described colour comprises any one in rgb value, HSV value and HSL value;
Described first terminal obtains described 3rd image file mated with the colour of described first image file, and described 3rd image file is defined as described second image file.
In conjunction with the third possible implementation of first aspect present invention, in the 4th kind of possible implementation of first aspect present invention, described first terminal obtains the 3rd image file mated with described first image file, using described 3rd image file as described second image file, comprising:
Described first terminal splits out K1 content of image files from described first image file, and described K1 is positive integer;
Described first terminal obtains described 3rd image file mated with a described K1 content of image files, and described 3rd image file is defined as described second image file.
Second aspect present invention provides a kind of terminal, comprising:
Acquisition module, for when reducing backup file, if the first image file from the second terminal detected in the backup file of reduction, then obtain the second resolution of the first resolution of described first image file that described first image file comprises and the display unit of described terminal;
Whether judge module is identical with described first resolution for judging the second resolution that described acquisition module obtains;
Obtain module, for when the judged result of described judge module is no, then obtain according to described first image file the second image file that resolution is described second resolution;
Display module, for the second image file generated by the display unit display of described terminal.
In conjunction with the implementation of second aspect present invention, in the first possible implementation of second aspect present invention, described acquisition module, specifically for:
The mark of carrying by detecting described first image file in the backup file of described reduction determines that described first image file is from described second terminal.
In conjunction with the first possible implementation of second aspect present invention, in the implementation that the second of second aspect present invention is possible, described acquisition module, specifically for:
Based on described second resolution and described first resolution, described first image file is adjusted to described second resolution from described first resolution, generates described second image file based on described first image file after regulating,
Or,
Obtain the 3rd image file mated with described first image file, using described 3rd image file as described second image file, the resolution of described 3rd image file is described second resolution.
In conjunction with the implementation that the second of second aspect present invention is possible, in the third possible implementation of second aspect present invention, described acquisition module comprises:
First acquiring unit, for obtaining the colour of described first image file, described colour comprises any one in rgb value, HSV value and HSL value;
Second acquisition unit, for obtaining described 3rd image file mated with the colour of described first image file, is defined as described second image file by described 3rd image file.
In conjunction with the third possible implementation of second aspect present invention, in the 4th kind of possible implementation of second aspect present invention, described acquisition module comprises:
Split cells, for splitting out K1 content of image files from described first image file, described K1 is positive integer;
Second acquisition unit, also for obtaining described 3rd image file mated with a described K1 content of image files, is defined as described second image file by described 3rd image file.
Adopt the present invention, first terminal is when reducing backup file, if first terminal detects the first image file from the second terminal in the backup file of reduction, then first terminal obtains the second resolution of the first resolution of the first image file that the first image file comprises and the display unit of first terminal; First terminal judges that whether second resolution is identical with first resolution; If be judged as NO, then first terminal obtains according to the first image file the second image file that resolution is second resolution; The second image file that first terminal is generated by the display unit display of first terminal, can when reducing the image file of other-end, image file according to other-end generates the image file being applicable to the resolution that this terminal is supported, making this terminal can not cause distortion when showing the backup image file of other-end, the display effect of the image file after reduction can be improved.
Term " first ", " second ", " the 3rd " and " the 4th " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing different object, instead of for describing particular order.In addition, term " comprises " and " having " and their any distortion, and intention is to cover not exclusive comprising.Such as contain the process of series of steps or unit, method, system, product or equipment and be not defined in the step or unit listed, but also comprise the step or unit do not listed alternatively, or also comprise alternatively for other intrinsic step of these processes, method, product or equipment or unit.
Adopt the embodiment of the present invention, the backup image file of the second terminal can be adjusted when the backup image file of the second terminal reverts to first terminal, improve the display effect of the image file after reduction.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of an embodiment of the display packing of a kind of image of the embodiment of the present invention.Wherein, first terminal or the second terminal can be mobile phone, panel computer, notebook computer, palm PC, mobile internet device (MID, mobile internet device) or other can the terminal device of backup and reduction.
As shown in Figure 1, an embodiment of the display packing of a kind of image of the embodiment of the present invention can comprise the following steps.
S100, first terminal is when reducing backup file, if described first terminal detects the first image file from the second terminal in the backup file of reduction, then described first terminal obtains the second resolution of the first resolution of described first image file that described first image file comprises and the display unit of described first terminal.
In specific implementation, need data to carry out backup and reduction when changing terminal, if desired the data of the second terminal are carried out backup and reduction, first the data of the second terminal can be backed up on other-end (as third terminal), first terminal is sent to by needing the data of reduction again by third terminal, the data of the needs reduction sent by third terminal by first terminal are reduced, and wherein can comprise the backup file of the second terminal.If first terminal finds that the first image file is from the second terminal, then obtain the first resolution of the image file of the second terminal, and obtain the second resolution of the display unit (i.e. display screen) of first terminal.
As the enforceable mode of one, third terminal can be mobile phone, panel computer, notebook computer, palm PC, MID or other can the terminal device of backup and reduction.
As the enforceable mode of one, the second terminal sends the data to third terminal by wired connection or wireless network, and third terminal also sends the data to first terminal by wired connection or wireless network.
As the enforceable mode of one, the data of first terminal reduction also can comprise the backup file of third terminal or the backup file of other-end.
S101, described first terminal judges that whether described second resolution is identical with described first resolution.
In specific implementation, first terminal judges that whether the second resolution of the display unit of first terminal is identical with the first resolution of the first image file of the second terminal, if identical, can directly preserve or directly be presented at the display unit of first terminal, illustrate that first terminal may cause distortion when the first image file that display resolution is different if be judged as NO, therefore first terminal can adjust the first image file.
S102, if be judged as NO, then described first terminal obtains according to described first image file the second image file that resolution is described second resolution.
In specific implementation, when the judged result of above-mentioned steps is no, then first terminal adjusts the first image file according to preset rules, generates the second image file that resolution is second resolution.
As the enforceable mode of one, the resolution of the first image file can be adjusted to second resolution by first resolution by first terminal, thus generates the second image file of second resolution.
As the enforceable mode of one, first terminal also can search according to the colour of the first image file or image content the 3rd image file mated with the first image file that resolution is second resolution, and using the 3rd image file as the second image file.
S103, the second image file that described first terminal is generated by the display unit display of described first terminal.
In specific implementation, first terminal generates after resolution is the second image file of second resolution according to the first image file that resolution is first resolution, display unit by first terminal shows the second image file, resolution due to the display unit of first terminal is second resolution, therefore the image demonstrated can not cause distortion, can improve the whole structure of picture.
Adopt the embodiment of the present invention, first terminal is when reducing backup file, if first terminal detects the first image file from the second terminal in the backup file of reduction, then first terminal obtains the second resolution of the first resolution of the first image file that the first image file comprises and the display unit of first terminal; First terminal judges that whether second resolution is identical with first resolution; If be judged as NO, then first terminal obtains according to the first image file the second image file that resolution is second resolution; The second image file that first terminal is generated by the display unit display of first terminal, can when reducing the image file of other-end, image file according to other-end generates the image file being applicable to the resolution that this terminal is supported, making this terminal can not cause distortion when showing the backup image file of other-end, the display effect of the image file after reduction can be improved.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of another embodiment of the display packing of a kind of image of the embodiment of the present invention.Wherein, first terminal or the second terminal can be mobile phone, panel computer, notebook computer, palm PC, mobile internet device (MID, mobile internet device) or other can the terminal device of backup and reduction.The mode that the embodiment of the present invention adjusts the first image file at first terminal carries out refinement, the following detailed description of.
As shown in Figure 2, another embodiment of the display packing of a kind of image of the embodiment of the present invention can comprise the following steps.
S200, first terminal is when reducing backup file, if by detecting the described first image file mark of carrying, described first terminal determines that described first image file is from described second terminal in the backup file of described reduction, then described first terminal obtains the second resolution of the first resolution of described first image file that described first image file comprises and the display unit of described first terminal.
In specific implementation, need data to carry out backup and reduction when changing terminal, if desired the data of the second terminal are carried out backup and reduction, first the data of the second terminal are backed up on other-end (as third terminal), first terminal is sent to by needing the data of reduction again by third terminal, the data of the needs reduction sent by third terminal by first terminal are reduced, and wherein can comprise the backup file of the second terminal.By the mark detecting the terminal that the first image file carries, first terminal, when reducing backup file, determines that the first image file is from the second terminal.If first terminal finds that the first image file is from the second terminal, then obtain the first resolution of the image file of the second terminal, and obtain the second resolution of the display unit (i.e. display screen) of first terminal.Second resolution is the resolution be limited to when display unit shows.Such as, the first resolution that first terminal gets the first image file by the first image file is 1280*720, and the second resolution of the display unit of first terminal is 1980*1080.
As the enforceable mode of one, third terminal can be mobile phone, panel computer, notebook computer, palm PC, MID or other can the terminal device of backup and reduction.
As the enforceable mode of one, the second terminal sends the data to third terminal by wired connection or wireless network, and third terminal also sends the data to first terminal by wired connection or wireless network.
As the enforceable mode of one, the data of first terminal reduction also can comprise the backup file of third terminal or the backup file of other-end.
S201, described first terminal judges that whether described second resolution is identical with described first resolution.
In specific implementation, first terminal judges that whether the second resolution of the display unit of first terminal is identical with the first resolution of the first image file of the second terminal, if identical, can directly preserve or directly be presented at the display unit of first terminal, illustrate that first terminal may cause distortion when the first image file that display resolution is different if be judged as NO, therefore first terminal can adjust the first image file.If be judged as YES, then perform step S204, if be judged as NO, then perform step S202.
S202, described first image file, based on described second resolution and described first resolution, is adjusted to described second resolution from described first resolution by described first terminal, generates described second image file based on described first image file after regulating.
In specific implementation, because the first image file just can have display effect clearly under the resolution that the display unit of first terminal needs is second resolution, therefore, when the judged result of above-mentioned steps is no, then first terminal adjusts the first image file according to preset rules, generates the second image file that resolution is second resolution.Concrete, when the first resolution that first terminal gets the first image file by the first image file be 1280*720, the second resolution of the display unit of first terminal be 1980*1080 time, be then that first image file of 1280*720 is stretched to 1980*1080 (i.e. second resolution) by resolution, thus generate the second image file that resolution is 1980*1080.
As the enforceable mode of one, the process that first image file is adjusted to second resolution from first resolution can be by first terminal: first terminal calculates the pixel value between first resolution and second resolution, according to this pixel value the first image file increased again or reduce the pixel of the first image file, enable the resolution of the first image file be adjusted to second resolution, thus generate the second image file that resolution is second resolution.
S203, the second image file that described first terminal is generated by the display unit display of described first terminal.
In specific implementation, first terminal generates after resolution is the second image file of second resolution according to the first image file that resolution is first resolution, display unit by first terminal shows the second image file, resolution due to the display unit of first terminal is second resolution, therefore the image demonstrated can not cause distortion, can improve the whole structure of picture.
S204, terminates.
Adopt the embodiment of the present invention, first terminal is when reducing backup file, if first terminal detects the first image file from the second terminal in the backup file of reduction, then first terminal obtains the second resolution of the first resolution of the first image file that the first image file comprises and the display unit of first terminal; First terminal judges that whether second resolution is identical with first resolution; If be judged as NO, then first terminal obtains according to the first image file the second image file that resolution is second resolution; The second image file that first terminal is generated by the display unit display of first terminal, can when reducing the image file of other-end, image file according to other-end generates the image file being applicable to the resolution that this terminal is supported, making this terminal can not cause distortion when showing the backup image file of other-end, the display effect of the image file after reduction can be improved.
Refer to Fig. 3, Fig. 3 is the schematic flow sheet of the 3rd embodiment of the display packing of a kind of image of the embodiment of the present invention.Wherein, first terminal or the second terminal can be mobile phone, panel computer, notebook computer, palm PC, mobile internet device (MID, mobile internet device) or other can the terminal device of backup and reduction.The another kind of mode that the embodiment of the present invention adjusts the first image file at first terminal carries out refinement, the following detailed description of.It should be noted that the 3rd image file that the present embodiment relates to is the image of second resolution, therefore then repeat no more in an embodiment.
As shown in Figure 3, another embodiment of the display packing of a kind of image of the embodiment of the present invention can comprise the following steps.
S300, first terminal is when reducing backup file, if by detecting the described first image file mark of carrying, described first terminal determines that described first image file is from described second terminal in the backup file of described reduction, then described first terminal obtains the second resolution of the first resolution of described first image file that described first image file comprises and the display unit of described first terminal.
In specific implementation, need data to carry out backup and reduction when changing terminal, if desired the data of the second terminal are carried out backup and reduction, first the data of the second terminal are backed up on other-end (as third terminal), first terminal is sent to by needing the data of reduction again by third terminal, the data of the needs reduction sent by third terminal by first terminal are reduced, and wherein can comprise the backup file of the second terminal.By the mark detecting the terminal that the first image file carries, first terminal, when reducing backup file, determines that the first image file is from the second terminal.If first terminal finds that the first image file is from the second terminal, then obtain the first resolution of the image file of the second terminal, and obtain the second resolution of the display unit (i.e. display screen) of first terminal.Second resolution is the resolution be limited to when display unit shows.Such as, the first resolution that first terminal gets the first image file by the first image file is 1280*720, and the second resolution of the display unit of first terminal is 1980*1080.
As the enforceable mode of one, third terminal can be mobile phone, panel computer, notebook computer, palm PC, MID or other can the terminal device of backup and reduction.
As the enforceable mode of one, the second terminal sends the data to third terminal by wired connection or wireless network, and third terminal also sends the data to first terminal by wired connection or wireless network.
As the enforceable mode of one, the data of first terminal reduction also can comprise the backup file of third terminal or the backup file of other-end.
S301, described first terminal judges that whether described second resolution is identical with described first resolution.
In specific implementation, first terminal judges that whether the second resolution of the display unit of first terminal is identical with the first resolution of the first image file of the second terminal, if identical, can directly preserve or directly be presented at the display unit of first terminal, illustrate that first terminal may cause distortion when the first image file that display resolution is different if be judged as NO, therefore first terminal can adjust the first image file.If be judged as YES, then perform step S304, if be judged as NO, then perform step S302.
S302, described first terminal obtains the 3rd image file mated with described first image file, and using described 3rd image file as described second image file, the resolution of described 3rd image file is described second resolution.
In specific implementation, first terminal can obtain the 3rd image file that resolution is second resolution, 3rd image file is compared one by one with the first image file, and find out the 3rd image file matched with the first image file, such as, first 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 similarity of the 3rd image file calculated and the first image file is more than or equal to preset value, then determine the 3rd image file as the second image file.If the similarity that there is at least one the 3rd image file and the first image file is more than or equal to preset value, then using with maximum the 3rd image file of the similarity of the first image file as the second image file.Wherein, first terminal calculates the similarity of the 3rd image file and the first image file by colour or picture material.To illustrate below.
As the enforceable mode of one, as shown in Figure 3 a, above-mentioned steps S302 can comprise:
S3021, described first terminal obtains the colour of described first image file, and described colour comprises any one in rgb value, HSV value and HSL value.
In specific implementation, the present embodiment calculates the similarity of the 3rd image file and the first image file by colour.Wherein, colour can comprise any one in red (R) green (G) blue (B) value, tone (H) saturation degree (S) brightness (V) value or tone (H) saturation degree (S) lightness (L) value.For the colour obtained for rgb value, first terminal can obtain the rgb value of the first image file, carries out the calculating of similarity with rgb value.
As the enforceable mode of one, first image file can be split out M image-region by first terminal, obtain the rgb value of each image-region, and from the rgb value of each image-region, choose arbitrarily the rgb value of rgb value as the first image file of an image-region.
As the enforceable mode of one, first image file can be split out M image-region by first terminal, obtain the rgb value of each image-region, and choose the rgb value of rgb value as the first image file of an image-region according to the mode of choosing of user preset from the rgb value of each image-region.
As the enforceable mode of one, first image file can be split out M image-region by first terminal, obtain the rgb value of each image-region, and from the rgb value of each image-region, choose the maximum rgb value as the first image file of identical rgb value quantity.
As the enforceable mode of one, M is positive integer, and M such as can equal 1,2,4,6,10,11,13,20 or other values.
S3022, described first terminal obtains described 3rd image file mated with the colour of described first image file, and described 3rd image file is defined as described second image file.
In specific implementation, that carries out similarity with rgb value is calculated as example, and the colour of the rgb value of the first image file with the 3rd image file prestored compares by first terminal, and obtains the similarity of the colour of the 3rd image file and the first image file.Wherein, the quantity of the 3rd image file is at least one, and the resolution of the 3rd image file is second resolution.
As the enforceable mode of one, 3rd image file can be split out N number of image-region by first terminal, obtain the rgb value of each image-region, and from the rgb value of each image-region, choose arbitrarily the rgb value of rgb value as the 3rd image file of an image-region.
As the enforceable mode of one, 3rd image file can be split out N number of image-region by first terminal, obtain the rgb value of each image-region, and from the rgb value of each image-region, choose the rgb value of rgb value as the 3rd image file of an image-region according to the selection rule of user preset.
As the enforceable mode of one, 3rd image file can be split out N number of image-region by first terminal, obtain the rgb value of each image-region, and from the rgb value of each image-region, choose the maximum rgb value as the 3rd image file of identical rgb value quantity.
As the enforceable mode of one, N is positive integer, and N such as can equal 1,2,4,6,10,11,13,20 or other values.
In specific implementation, if the similarity of the colour of the 3rd image file calculated and the first image file is more than or equal to preset value, then determine the 3rd image file as the second image file.If the similarity that there is the colour of at least one the 3rd image file and the first image file is more than or equal to preset value, then using the 3rd maximum for the similarity of the colour with the first image file image file as the second image file.
As the enforceable mode of one, as shown in Figure 3 b, above-mentioned steps S302 also can comprise:
S302a, described first terminal splits out K1 content of image files from described first image file, and described K1 is positive integer.
In specific implementation, first terminal is by identifying that the first image file splits by the picture material in the first image file.Wherein, the number of fractionation can preset, or sets arbitrarily.Such as, comprise a cap and a dog in the first image file, then first terminal splits out and comprises the content of image files of cap and the content of image files of dog, and K1 then equals 2.
As the enforceable mode of one, K1 such as can equal 1,2,3,5,6,11,13,20 or other values.
S302b, described first terminal obtains described 3rd image file mated with a described K1 content of image files, and described 3rd image file is defined as described second image file.
In specific implementation, K2 the content of image files that the content of image files of cap that first image file can comprise by first terminal and the content of image files of dog and the 3rd image file comprise compares, and obtains the similarity of the picture material of the 3rd image file and the first image file.Wherein, the 3rd image file can be relevant with the picture material of the picture material of K1, K2, the first image file and the 3rd image file to the similarity of the picture material of the first image file.
Wherein, described K2 such as can equal 1,2,5,6,11,15,19 or other values.
In specific implementation, if the similarity of the picture material of the 3rd image file calculated and the first image file is more than or equal to preset value, then determine the 3rd image file as the second image file.If the similarity that there is the picture material of at least one the 3rd image file and the first image file is more than or equal to preset value, then using the 3rd maximum for the similarity of the picture material with the first image file image file as the second image file.
As the enforceable mode of one, the present embodiment also can carry out combination with step S3021 to S3022 and calculate, namely the similarity of the colour of the picture material of the 3rd image file and the first image file can also be calculated when the similarity of the picture material of calculating the 3rd image file and the first image file, to improve the degree of accuracy calculating similarity.Such as, if comprise a yellow cap and a brown dog in the first image file, then first terminal splits out and comprises the content of image files of cap and the content of image files of dog, and obtains the rgb value of cap and the rgb value of dog in the first image file.First terminal then can calculate the similarity of picture material and the similarity of colour of the 3rd image file and the first image file respectively, finally according to preset rules (as the similarity of the similarity and colour of averaging or being respectively picture material arranges weight), the similarity of picture material of the 3rd image file and the first image file and the similarity of colour are carried out COMPREHENSIVE CALCULATING, obtain the comprehensive similarity of the 3rd image file and the first image file, the 3rd image file comprehensive similarity with the first image file being more than or equal to preset value is defined as the second image file.If the comprehensive similarity that there is at least one the 3rd image file and the first image file is more than or equal to preset value, then using with maximum the 3rd image file of the comprehensive similarity of the first image file as the second image file.
S303, the second image file that described first terminal is generated by the display unit display of described first terminal.
In specific implementation, first terminal generates after resolution is the second image file of second resolution according to the first image file that resolution is first resolution, display unit by first terminal shows the second image file, resolution due to the display unit of first terminal is second resolution, therefore the image demonstrated can not cause distortion, can improve the whole structure of picture.
S304, terminates.
Adopt the embodiment of the present invention, first terminal is when reducing backup file, if first terminal detects the first image file from the second terminal in the backup file of reduction, then first terminal obtains the second resolution of the first resolution of the first image file that the first image file comprises and the display unit of first terminal; First terminal judges that whether second resolution is identical with first resolution; If be judged as NO, then first terminal obtains according to the first image file the second image file that resolution is second resolution; The second image file that first terminal is generated by the display unit display of first terminal, can when reducing the image file of other-end, image file according to other-end generates the image file being applicable to the resolution that this terminal is supported, making this terminal can not cause distortion when showing the backup image file of other-end, the display effect of the image file after reduction can be improved.
Refer to Fig. 4, Fig. 4 is the structural representation of a kind of terminal of the embodiment of the present invention.Wherein, first terminal or the second terminal can be mobile phone, panel computer, notebook computer, palm PC, mobile internet device (MID, mobile internet device) or other can the terminal device of backup and reduction.Terminal as shown in Figure 4 comprises acquisition module 400, judge module 401, obtains module 402 and display module 403.
Acquisition module 400, for when reducing backup file, if the first image file from the second terminal detected in the backup file of reduction, then obtain the second resolution of the first resolution of described first image file that described first image file comprises and the display unit of described terminal;
Whether judge module 401 is identical with described first resolution for judging the second resolution that described acquisition module 400 obtains;
Obtain module 402, for when the judged result of described judge module 401 is no, then obtain according to described first image file the second image file that resolution is described second resolution;
Display module 403, for the second image file generated by the display unit display of described terminal.
In specific implementation, need data to carry out backup and reduction when changing terminal, if desired the data of the second terminal are carried out backup and reduction, first the data of the second terminal can be backed up on other-end (as third terminal), first terminal is sent to by needing the data of reduction again by third terminal, the data of the needs reduction sent by third terminal by first terminal are reduced, and wherein can comprise the backup file of the second terminal.If first terminal finds that the first image file is from the second terminal, then obtain the first resolution of the image file of the second terminal, and obtain the second resolution of the display unit (i.e. display screen) of first terminal.
In specific implementation, first terminal judges that whether the second resolution of the display unit of first terminal is identical with the first resolution of the first image file of the second terminal, if identical, can directly preserve or directly be presented at the display unit of first terminal, illustrate that first terminal may cause distortion when the first image file that display resolution is different if be judged as NO, therefore first terminal can adjust the first image file.
In specific implementation, when the judged result of above-mentioned steps is no, then first terminal adjusts the first image file according to preset rules, generates the second image file that resolution is second resolution.
In specific implementation, first terminal generates after resolution is the second image file of second resolution according to the first image file that resolution is first resolution, display unit by first terminal shows the second image file, resolution due to the display unit of first terminal is second resolution, therefore the image demonstrated can not cause distortion, can improve the whole structure of picture.
As the enforceable mode of one, described acquisition module 400, specifically for:
The mark of carrying by detecting described first image file in the backup file of described reduction determines that described first image file is from described second terminal.
In specific implementation, by the mark detecting the terminal that the first image file carries, first terminal, when reducing backup file, determines that the first image file is from the second terminal.
As the enforceable mode of one, described acquisition module 402, specifically for:
Based on described second resolution and described first resolution, described first image file is adjusted to described second resolution from described first resolution, generates described second image file based on described first image file after regulating,
Or,
Obtain the 3rd image file mated with described first image file, using described 3rd image file as described second image file, the resolution of described 3rd image file is described second resolution.
In specific implementation, because the first image file just can have display effect clearly under the resolution that the display unit of first terminal needs is second resolution, therefore, when the judged result of above-mentioned steps is no, then first terminal adjusts the first image file according to preset rules, generates the second image file that resolution is second resolution.Concrete, when the first resolution that first terminal gets the first image file by the first image file be 1280*720, the second resolution of the display unit of first terminal be 1980*1080 time, be then that first image file of 1280*720 is stretched to 1980*1080 (i.e. second resolution) by resolution, thus generate the second image file that resolution is 1980*1080.
In specific implementation, first terminal can obtain the 3rd image file that resolution is second resolution, 3rd image file is compared one by one with the first image file, and find out the 3rd image file matched with the first image file, such as, first 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 similarity of the 3rd image file calculated and the first image file is more than or equal to preset value, then determine the 3rd image file as the second image file.If the similarity that there is at least one the 3rd image file and the first image file is more than or equal to preset value, then using with maximum the 3rd image file of the similarity of the first image file as the second image file.Wherein, first terminal calculates the similarity of the 3rd image file and the first image file by colour or picture material.To illustrate below.
As the enforceable mode of one, as shown in Figure 5, described acquisition module 402 comprises the first acquiring unit 4020 and second acquisition unit 4021.
First acquiring unit 4020, for obtaining the colour of described first image file, described colour comprises any one in rgb value, HSV value and HSL value;
Second acquisition unit 4021, for obtaining described 3rd image file mated with the colour of described first image file, is defined as described second image file by described 3rd image file.
In specific implementation, the present embodiment calculates the similarity of the 3rd image file and the first image file by colour.Wherein, colour can comprise any one in red (R) green (G) blue (B) value, tone (H) saturation degree (S) brightness (V) value or tone (H) saturation degree (S) lightness (L) value.For the colour obtained for rgb value, first terminal can obtain the rgb value of the first image file, carries out the calculating of similarity with rgb value.
In specific implementation, that carries out similarity with rgb value is calculated as example, and the colour of the rgb value of the first image file with the 3rd image file prestored compares by first terminal, and obtains the similarity of the colour of the 3rd image file and the first image file.Wherein, the quantity of the 3rd image file is at least one, and the resolution of the 3rd image file is second resolution.
In specific implementation, if the similarity of the colour of the 3rd image file calculated and the first image file is more than or equal to preset value, then determine the 3rd image file as the second image file.If the similarity that there is the colour of at least one the 3rd image file and the first image file is more than or equal to preset value, then using the 3rd maximum for the similarity of the colour with the first image file image file as the second image file.
As the enforceable mode of one, as shown in Figure 5, described acquisition module 402 also comprises split cells 4022.
Split cells 4022, for splitting out K1 content of image files from described first image file, described K1 is positive integer;
Second acquisition unit 4021, also for obtaining described 3rd image file mated with a described K1 content of image files, is defined as described second image file by described 3rd image file.
In specific implementation, first terminal is by identifying that the first image file splits by the picture material in the first image file.Wherein, the number of fractionation can preset, or sets arbitrarily.Such as, comprise a cap and a dog in the first image file, then first terminal splits out and comprises the content of image files of cap and the content of image files of dog, and K1 then equals 2.
In specific implementation, K2 the content of image files that the content of image files of cap that first image file can comprise by first terminal and the content of image files of dog and the 3rd image file comprise compares, and obtains the similarity of the picture material of the 3rd image file and the first image file.Wherein, the 3rd image file can be relevant with the picture material of the picture material of K1, K2, the first image file and the 3rd image file to the similarity of the picture material of the first image file.
In specific implementation, if the similarity of the picture material of the 3rd image file calculated and the first image file is more than or equal to preset value, then determine the 3rd image file as the second image file.If the similarity that there is the picture material of at least one the 3rd image file and the first image file is more than or equal to preset value, then using the 3rd maximum for the similarity of the picture material with the first image file image file as the second image file.
Adopt the embodiment of the present invention, first terminal is when reducing backup file, if first terminal detects the first image file from the second terminal in the backup file of reduction, then first terminal obtains the second resolution of the first resolution of the first image file that the first image file comprises and the display unit of first terminal; First terminal judges that whether second resolution is identical with first resolution; If be judged as NO, then first terminal obtains according to the first image file the second image file that resolution is second resolution; The second image file that first terminal is generated by the display unit display of first terminal, can when reducing the image file of other-end, image file according to other-end generates the image file being applicable to the resolution that this terminal is supported, making this terminal can not cause distortion when showing the backup image file of other-end, the display effect of the image file after reduction can be improved.
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 also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying performing creative labour, are namely appreciated that and implement.
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Module in embodiment of the present invention device or unit can carry out merging, divide and deleting according to actual needs.
The module of the embodiment of the present invention or module, with universal integrated circuit (as central processor CPU), or can realize with special IC (ASIC).
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that each embodiment can add required general hardware platform by software and realize, and can certainly pass through hardware.Based on such understanding, technique scheme can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can store in a computer-readable storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment or embodiment.
Above-described embodiment, does not form the restriction to this technical scheme protection domain.The amendment done within any spirit at above-mentioned embodiment and principle, equivalently to replace and improvement etc., within the protection domain that all should be included in this technical scheme.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of an embodiment of the display packing of a kind of image of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another embodiment of the display packing of a kind of image of the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the 3rd embodiment of the display packing of a kind of image of the embodiment of the present invention;
Fig. 3 a is a kind of idiographic flow schematic diagram of the step S302 of the display packing of a kind of image of the embodiment of the present invention;
Fig. 3 b is the another kind of idiographic flow schematic diagram of the step S302 of the display packing of a kind of image of the embodiment of the present invention;
Fig. 4 is the structural representation of a kind of terminal of the embodiment of the present invention;
Fig. 5 is the structural representation of the acquisition module of a kind of terminal of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.

Claims (10)

1. a display packing for image, is characterized in that, comprising:
First terminal is when reducing backup file, if described first terminal detects the first image file from the second terminal in the backup file of reduction, then described first terminal obtains the second resolution of the first resolution of described first image file that described first image file comprises and the display unit of described first terminal;
Described first terminal judges that whether described second resolution is identical with described first resolution;
If be judged as NO, then described first terminal obtains according to described first image file the second image file that resolution is described second resolution;
The second image file that described first terminal is generated by the display unit display of described first terminal.
2. method according to claim 1, is characterized in that, described first terminal detects the first image file from the second terminal in the backup file of reduction, comprising:
The mark that described first terminal carries by detecting described first image file in the backup file of described reduction determines that described first image file is from described second terminal.
3. method according to claim 2, is characterized in that, described first terminal obtains according to described first image file the second image file that resolution is described second resolution, comprising:
Described first image file, based on described second resolution and described first resolution, is adjusted to described second resolution from described first resolution by described first terminal, generates described second image file based on described first image file after regulating,
Or,
Described first terminal obtains the 3rd image file mated with described first image file, and using described 3rd image file as described second image file, the resolution of described 3rd image file is described second resolution.
4. method according to claim 3, is characterized in that, described first terminal obtains the 3rd image file mated with described first image file, using described 3rd image file as described second image file, comprising:
Described first terminal obtains the colour of described first image file, and described colour comprises any one in rgb value, HSV value and HSL value;
Described first terminal obtains described 3rd image file mated with the colour of described first image file, and described 3rd image file is defined as described second image file.
5. method according to claim 4, is characterized in that, described first terminal obtains the 3rd image file mated with described first image file, using described 3rd image file as described second image file, comprising:
Described first terminal splits out K1 content of image files from described first image file, and described K1 is positive integer;
Described first terminal obtains described 3rd image file mated with a described K1 content of image files, and described 3rd image file is defined as described second image file.
6. a terminal, is characterized in that, comprising:
Acquisition module, for when reducing backup file, if the first image file from the second terminal detected in the backup file of reduction, then obtain the second resolution of the first resolution of described first image file that described first image file comprises and the display unit of described terminal;
Whether judge module is identical with described first resolution for judging the second resolution that described acquisition module obtains;
Obtain module, for when the judged result of described judge module is no, then obtain according to described first image file the second image file that resolution is described second resolution;
Display module, for the second image file generated by the display unit display of described terminal.
7. terminal according to claim 6, is characterized in that, described acquisition module, specifically for:
The mark of carrying by detecting described first image file in the backup file of described reduction determines that described first image file is from described second terminal.
8. terminal according to claim 7, is characterized in that, described acquisition module, specifically for:
Based on described second resolution and described first resolution, described first image file is adjusted to described second resolution from described first resolution, generates described second image file based on described first image file after regulating,
Or,
Obtain the 3rd image file mated with described first image file, using described 3rd image file as described second image file, the resolution of described 3rd image file is described second resolution.
9. terminal according to claim 8, is characterized in that, described acquisition module comprises:
First acquiring unit, for obtaining the colour of described first image file, described colour comprises any one in rgb value, HSV value and HSL value;
Second acquisition unit, for obtaining described 3rd image file mated with the colour of described first image file, is defined as described second image file by described 3rd image file.
10. terminal according to claim 9, is characterized in that, described acquisition module comprises:
Split cells, for splitting out K1 content of image files from described first image file, described K1 is positive integer;
Second acquisition unit, also for obtaining described 3rd image file mated with a described K1 content of image files, is defined as described second image file by described 3rd image file.
CN201510145419.0A 2015-03-30 2015-03-30 The display methods and terminal of a kind of image Expired - Fee Related CN104778655B (en)

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 true CN104778655A (en) 2015-07-15
CN104778655B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105072334A (en) * 2015-07-23 2015-11-18 广东欧珀移动通信有限公司 Data processing method and electronic terminal
CN113296664A (en) * 2021-05-18 2021-08-24 Oppo广东移动通信有限公司 Screen resolution adjusting method and device, terminal equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105072334A (en) * 2015-07-23 2015-11-18 广东欧珀移动通信有限公司 Data processing method and electronic terminal
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

Also Published As

Publication number Publication date
CN104778655B (en) 2018-01-19

Similar Documents

Publication Publication Date Title
US11425454B2 (en) Dynamic video overlays
CN104216976B (en) A kind of mobile terminal picture grouping inspection method and system
CN101950241B (en) Method and equipment for automatically adjusting visual characteristic of page
CN106202427B (en) Application processing method and device and computer storage medium
CN102831176A (en) Method and server for recommending friends
CN105159581A (en) Picture browsing method and mobile terminal
EP2950272A2 (en) Method and apparatus for processing a video frame in a video file
CN108769803A (en) Recognition methods, method of cutting out, system, equipment with frame video and medium
EP3127086A1 (en) Method and apparatus for processing a video file
EP3062205A1 (en) User interface adjusting method and apparatus using the same
CN109147708B (en) Gamma value adjusting method and device of display panel and display equipment
CN105335939A (en) Image processing method and apparatus
CN104778655A (en) Image display method and terminal
JP5888068B2 (en) Image processing apparatus and program
CN104834440A (en) Interface display method and electronic equipment
CN117112090A (en) Business page theme generation method, device, computer equipment, medium and product
CN105096355A (en) Image processing method and system
CN105389308A (en) Display processing method and device for web pages
CN112558853B (en) Session message processing method and device, electronic device and storage medium
CN112801997B (en) Image enhancement quality evaluation method, device, electronic equipment and storage medium
CN109901897B (en) Method and device for matching view colors in application
CN106598371A (en) Information displaying method and equipment
CN105678688A (en) Picture processing method and device
CN105159525A (en) Method for controlling sound box grouping and control terminal
US10460412B1 (en) Authentication of Norman Rockwell paintings

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
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.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180119