CN103888670A - Information processing method and electronic device - Google Patents

Information processing method and electronic device Download PDF

Info

Publication number
CN103888670A
CN103888670A CN201410060636.5A CN201410060636A CN103888670A CN 103888670 A CN103888670 A CN 103888670A CN 201410060636 A CN201410060636 A CN 201410060636A CN 103888670 A CN103888670 A CN 103888670A
Authority
CN
China
Prior art keywords
width
height
value
ratio
parameter
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
CN201410060636.5A
Other languages
Chinese (zh)
Other versions
CN103888670B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410060636.5A priority Critical patent/CN103888670B/en
Publication of CN103888670A publication Critical patent/CN103888670A/en
Application granted granted Critical
Publication of CN103888670B publication Critical patent/CN103888670B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an information processing method and an electronic device. Height and width values of a display unit, a first size list and a second size list are preset in the electronic device. The first size list records N pairs of height values and width value which represent photographing size supported by the image obtained through the image collection unit; the second size list records M pairs of height values and width values which represents the preview size supported by the image collection unit performing image photographing preview. The information processing method comprises steps of acquiring the height value and the width value of the electronic device display unit, a first size list and a second size list, calculating a first width-height ratio according to the height value and the width value of the display unit, determining a pair of the height value and the width value in the first size list according to the first width-height ratio, taking the determined height value and the width value as photographing parameters, and/or determining a pair of the height value and the width value in the second size list according to the first width-height ratio, and taking the determined height value and the width value as image preview parameters. The electronic device uses the image preview parameters to preview image.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to intelligent electronic device technical field, relate in particular to a kind of information processing method and electronic equipment.
Background technology
Along with the fast development of intelligent electronic device industry, intelligent electronic device miscellaneous emerges in an endless stream, and screen proportion and the size of various intelligent electronic devices are also had nothing in common with each other.For thering is the electronic equipment of camera function, how in conjunction with its camera parameter (as pixel size etc.), use in the process that camera function takes pictures user, the preview size of take pictures size and the image that provide best operating experience and the best of intelligence is current problem demanding prompt solution.
Summary of the invention
For solving the technical problem of existing existence, the embodiment of the present invention provides a kind of information processing method and electronic equipment.
A kind of information processing method that the embodiment of the present invention provides, be applied to the electronic equipment with display unit and image acquisition units, in described electronic equipment, be preset with the value of the height and width of display unit, first size list and the second size list, described first size list records has the value of N to height and width, described first size list characterizes and utilizes described image acquisition units to obtain the size of taking pictures that image is supported, described the second size column table record has the value of M to height and width, described the second size list characterizes the preview size that described image acquisition units is supported in the time carrying out image taking preview, described M and N are positive integer, described method comprises:
Obtain value, first size list and the second size list of the height and width of described electronic equipment display unit;
According to the value of the height and width of described electronic equipment display unit, calculate first the ratio of width to height of described electronic equipment display unit;
From described first size list, determine the value of a pair of height and width according to described first the ratio of width to height, using the value of determined height and width as the parameter of taking pictures;
And/or according to the value of described first the ratio of width to height definite a pair of height and width from described the second size list, using the value of determined height and width as image preview parameter, described electronic equipment uses described image preview parameter to carry out image preview.
A kind of electronic equipment that the embodiment of the present invention provides, comprises display unit and image acquisition units, and described image acquisition units is used for gathering image, and described display unit is used for showing image, and described electronic equipment also comprises:
Memory cell, be used for value, first size list and the second size list of the height and width of storing default display unit, described first size list records has the value of N to height and width, described first size list characterizes and utilizes described image acquisition units to obtain the size of taking pictures that image is supported, described the second size column table record has the value of M to height and width, described the second size list characterizes the preview size that described image acquisition units is supported in the time carrying out image taking preview, and described M and N are positive integer;
Processing unit, for obtaining value, first size list and the second size list of height and width of described electronic equipment display unit; According to the value of the height and width of described electronic equipment display unit, calculate first the ratio of width to height of described electronic equipment display unit; From described first size list, determine the value of a pair of height and width according to described first the ratio of width to height, using the value of determined height and width as the parameter of taking pictures; And/or, according to the value of described first the ratio of width to height definite a pair of height and width from described the second size list, using the value of determined height and width as image preview parameter; Described processing unit is also for using described image preview parameter and carrying out image preview by described display unit.
A kind of information processing method and electronic equipment that the embodiment of the present invention provides, value, first size list and the second size list of the height and width of default display unit in electronic equipment, first size list is described and is utilized the image acquisition units of electronic equipment to obtain the size of taking pictures that image is supported, the preview size that the image acquisition units of electronic equipment is supported in the time carrying out image taking preview is described in the second size list; In the situation that user does not intervene, electronic equipment can be according to the value of the height and width of electronic equipment display unit, optimum corresponding to intelligent selection take pictures size and preview size, the wide high proportion of size of making to take pictures reaches consistent with the wide high proportion of display unit as far as possible, make wide high proportion, the visual angle of preview image, the viewing area of preview size reach consistent with the wide high proportion of the size of taking pictures, the visual angle of taking pictures, viewing area as far as possible, thereby reach taking pictures and preview effect of a kind of the best; In the situation that parameter is taken pictures in user's setting, electronic equipment can be according to the optimum preview size of the parameter adaptive selection of taking pictures arranging, make wide high proportion, the visual angle of preview image, the viewing area of preview size reach consistent with the wide high proportion of the size of taking pictures, the visual angle of taking pictures, viewing area as far as possible, thereby also reach taking pictures and preview effect of a kind of the best.
Brief description of the drawings
Fig. 1 is the flow chart of a kind of information processing method of the embodiment of the present invention;
Fig. 2 is the composition structural representation of a kind of electronic equipment of the embodiment of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the technical solution of the present invention is further elaborated.
Embodiment mono-
A kind of information processing method that the embodiment of the present invention one provides, be applied to the electronic equipment with display unit and image acquisition units, in electronic equipment, be preset with the value of the height and width of display unit, first size list and the second size list, first size list records has the value of N to height and width, first size list characterizes and utilizes image acquisition units to obtain the size of taking pictures that image is supported, the second size column table record has the value of M to height and width, the preview size that the second size list token image collecting unit is supported in the time carrying out image taking preview, M and N are positive integer, as shown in Figure 1, mainly comprise:
Step 101, value, first size list and the second size list of obtaining the height and width of electronic equipment display unit.
The value of the height and width of electronic equipment display unit and first size list and the second size list, can be kept in the database of electronic equipment, as be kept in the internal memory or external memory of electronic equipment.Wherein, the value of the height and width of display unit, has described the size of electronic equipment display unit; In first size list, record the value of N to height and width, this N has described and has utilized the image acquisition units of electronic equipment to obtain the size of taking pictures that image is supported the value of height and width; In the second size list, record the value of M to height and width, this M has described the preview size that the image acquisition units of electronic equipment is supported in the time carrying out image taking preview to the value of height and width.
It should be noted that, described in the size of taking pictures refer to the wide and high value of the preview image when value of height and width of the take pictures window of image acquisition units in the time taking, described preview size refer to that image acquisition units has been taken and carry out image preview.Taking the image acquisition units of 1,200 ten thousand pixels as example, it is taken pictures and is of a size of 4000 × 3000, and the display parameters maximum of electronic equipment display unit can only reach 1080p at present, 1920 × 1080, therefore, preview size and take pictures and have a certain distance between size, preview size can only be selected under 1080p.And according to the value of the height and width of electronic equipment display unit, select optimum take pictures size and preview size, and select optimum preview size to adapt to it according to the variation of the size of taking pictures, thereby reach taking pictures and preview effect of a kind of the best, this just the embodiment of the present invention to realize.
In addition, it is relevant that image acquisition units is obtained maximum that image the supports maximum pixel that size supports with image acquisition units of taking pictures, for example: if the maximum pixel of image acquisition units support is 2,000,000, its maximum of supporting is taken pictures and is of a size of 1600 × 1200, if the maximum pixel of image acquisition units support is 5,000,000, its maximum of supporting is taken pictures and is of a size of 2560 × 1920, if the maximum pixel of image acquisition units support is 8,000,000, its maximum of supporting is taken pictures and is of a size of 3264 × 2448, if the maximum pixel of image acquisition units support is 1,400 ten thousand, its maximum of supporting is taken pictures and is of a size of 4536 × 3024.
Step 102, according to the value of the height and width of electronic equipment display unit, calculates first the ratio of width to height of electronic equipment display unit.
Taking the display units of 5.5 inches as example, the value of its height and width be 1280 × 720,1280 represent high, 720 represent wide, for convenience of description, the follow-up height that represents electronic equipment display unit with H1, represent the wide of electronic equipment display unit with W1, first the ratio of width to height represents with W1/H1; So, for the display unit of 5.5 inches, its first the ratio of width to height W1/H1=720/1280=0.75.
Step 103, according to the value of first the ratio of width to height definite a pair of height and width from first size list, using the value of determined height and width as the parameter of taking pictures;
And/or according to the value of first the ratio of width to height definite a pair of height and width from the second size list, using the value of determined height and width as image preview parameter, electronic equipment uses image preview parameter to carry out image preview.
Concrete, the value of the height and width in first size list is calculated to corresponding K second the ratio of width to height, K is positive integer, K can be identical with N, can be not identical with N yet, for example: the value of the height and width in first size list can only man-to-manly compare (one high with corresponding wide comparing) while calculating second the ratio of width to height, K is identical with the value of N, the value of the height and width in first size list can compare arbitrarily (one high can with multiple wide comparing, or one wide can with multiple high comparing) while calculating second the ratio of width to height, K is not identical with the value of N, from described K second the ratio of width to height, determine and equate with first the ratio of width to height or second the most close the ratio of width to height, choose the value of the corresponding height and width of determined second the ratio of width to height as the parameter of taking pictures,
The value of the height and width in the second size list is calculated to corresponding Q the 3rd the ratio of width to height, Q is positive integer, Q can be identical with M, can be not identical with M yet, for example: the value of the height and width in the second size list can only man-to-manly compare (one high with corresponding wide comparing) while calculating the 3rd the ratio of width to height, Q is identical with the value of M, the value of the height and width in the second size list can compare arbitrarily (one high can with multiple wide comparing, or one wide can with multiple high comparing) while calculating the 3rd the ratio of width to height, Q is not identical with the value of M, from described Q the 3rd the ratio of width to height, determine and equate with first the ratio of width to height or the 3rd the most close the ratio of width to height, choose the value of the corresponding height and width of determined the 3rd the ratio of width to height as image preview parameter.
In one embodiment, when equating with first the ratio of width to height or the value of the most close corresponding height and width of second the ratio of width to height has when multipair, from the value of multipair height and width, choose the maximum height and width of a pair of value as the parameter of taking pictures;
When equating with first the ratio of width to height or the value of the most close corresponding height and width of the 3rd the ratio of width to height has when multipair, from the value of multipair height and width, choose the maximum height and width of a pair of value as image preview parameter.
Illustrate below, taking first the ratio of width to height W1/H1=720/1280=0.75 as example, in first size list, there is the value of 6 pairs of height and width, respectively: 3264 × 2448, 3264 × 1836, 2048 × 1536, 2048 × 1152, 1280 × 720, 640 × 480, the correspondence second the ratio of width to height W2/H2 according to these, value of height and width being calculated is so respectively: 2448/3264=0.75, 1836/3264=0.5625, 1536/2048=0.75, 1152/2048=0.5625, 720/1280=0.5625, 480/640=0.75, the value of the corresponding height and width of W2/H2 that equate with W1/H1 has respectively: 3264 × 2448, 2048 × 1536, 640 × 480, from the value of these three pairs of height and width, choose immediately the maximum height and width of a pair of value, 3264 × 2448, as the parameter of taking pictures,
In the second size list, there is the value of 4 pairs of height and width, respectively: 1920 × 1080,1280 × 720,800 × 600,960 × 540, the correspondence according to these, value of height and width being calculated so the 3rd the ratio of width to height W3/H3 is respectively: 1080/1920=0.5625,720/1280=0.5625,600/800=0.75,540/960=0.5625, the value of the corresponding height and width of W3/H3 that equate with W1/H1 is 800 × 600, thereby chooses 800 × 600 as image preview parameter.
It should be noted that, electronic equipment can will calculate gained first the ratio of width to height and take pictures parameter and/or the corresponding electronic equipment this locality that is kept at of image preview parameter of determining, so that next time is while startup, the parameter of taking pictures described in directly calling from this locality and/or image preview parameter, without recalculating, so can save the system resource of electronic equipment, promote the speed of response starting constantly.
Embodiment bis-
On the basis of the embodiment of the present invention one, user also can arrange the parameter of taking pictures voluntarily, because in a large amount of electronic equipments, utilizing image acquisition units to obtain the size of taking pictures that image supports is that user is visible, and the value that user can select a pair of height and width from first size list is as the parameter of taking pictures; In the time that parameter is taken pictures in user's setting, electronic equipment is according to second the ratio of width to height corresponding to the calculation of parameter of taking pictures arranging, and according to the value of calculating gained second the ratio of width to height definite a pair of height and width from the second size list, using the value of determined height and width as the image preview parameter corresponding with the set parameter of taking pictures.
Wherein, according to the value of calculating gained second the ratio of width to height definite a pair of height and width from the second size list, using the value of determined height and width as the image preview parameter corresponding with the set parameter of taking pictures, comprising:
The value of the height and width in the second size list is calculated to corresponding Q the 3rd the ratio of width to height, and from described Q the 3rd the ratio of width to height, determine and equate with according to calculation of parameter gained second the ratio of width to height of taking pictures of setting or the 3rd the most close the ratio of width to height, choose the value of the corresponding height and width of determined the 3rd the ratio of width to height as the image preview parameter corresponding with the set parameter of taking pictures.When with calculate that second the ratio of width to height of gained equates or the most close the 3rd the ratio of width to height has when multipair, from the value of multipair height and width, choose the maximum height and width of a pair of value as the image preview parameter corresponding with the set parameter of taking pictures.
Illustrate below, in first size list, there is the value of 6 pairs of optional height and width of user, respectively: 3264 × 2448,3264 × 1836,2048 × 1536,2048 × 1152,1280 × 720,640 × 480, suppose that user selects 2048 × 1152 as taking pictures parameter, second the ratio of width to height W2/H2=1152/2048=0.5625 corresponding to 2048 × 1152 calculating selecting according to user so;
In the second size list, there is the value of 4 pairs of height and width, respectively: 1920 × 1080, 1280 × 720, 800 × 600, 960 × 540, the correspondence according to these, value of height and width being calculated so the 3rd the ratio of width to height W3/H3 is respectively: 1080/1920=0.5625, 720/1280=0.5625, 600/800=0.75, 540/960=0.5625, the value respectively of the corresponding height and width of W3/H3 that equate with W2/H2 has: 1920 × 1080, 1280 × 720, 960 × 540, from the value of these three pairs of height and width, choose immediately the maximum height and width of a pair of value, 1920 × 1080, as the image preview parameter corresponding with the set parameter of taking pictures.
It should be noted that, the corresponding image preview parameter of the parameter of taking pictures with set of taking pictures parameter and determining that electronic equipment can arrange user is kept at electronic equipment this locality, so that can be by the local data of preserving of inquiry when what user's selection next time was same takes pictures parameter, directly call corresponding image preview parameter, without recalculating, so can save the system resource of electronic equipment, the lifting operation speed of response.
Embodiment tri-
Corresponding above-mentioned information processing method, the embodiment of the present invention also provides a kind of electronic equipment, and as shown in Figure 2, this electronic equipment comprises display unit 10 and image acquisition units 20, and image acquisition units 20 is for gathering image, and display unit 10 is for showing image;
This electronic equipment also comprises:
Memory cell 30, be used for value, first size list and the second size list of the height and width of storing default display unit 10, first size list records has the value of N to height and width, first size list characterizes and utilizes image acquisition units 20 to obtain the size of taking pictures that image is supported, the second size column table record has the value of M to height and width, the preview size that the second size list token image collecting unit 20 is supported in the time carrying out image taking preview, M and N are positive integer;
Processing unit 40, for obtaining value, first size list and the second size list of height and width of electronic equipment display unit 10; According to the value of the height and width of electronic equipment display unit 10, calculate first the ratio of width to height of electronic equipment display unit 10; From first size list, determine the value of a pair of height and width according to first the ratio of width to height, using the value of determined height and width as the parameter of taking pictures; And/or, according to the value of first the ratio of width to height definite a pair of height and width from the second size list, using the value of determined height and width as image preview parameter; Processing unit 40 is also for using image preview parameter and carrying out image preview by display unit 10.
In one embodiment,
From first size list, determine the value of a pair of height and width according to first the ratio of width to height, using the value of determined height and width as the parameter of taking pictures, comprise: the value of the height and width in first size list is calculated to corresponding K second the ratio of width to height, K is positive integer, and determine and equate with first the ratio of width to height or second the most close the ratio of width to height from K second the ratio of width to height, choose the value of the corresponding height and width of determined second the ratio of width to height as the parameter of taking pictures;
From the second size list, determine the value of a pair of height and width according to first the ratio of width to height, using the value of determined height and width as image preview parameter, comprise: the value of the height and width in the second size list is calculated to corresponding Q the 3rd the ratio of width to height, Q is positive integer, and determine and equate with first the ratio of width to height or the 3rd the most close the ratio of width to height from Q the 3rd the ratio of width to height, choose the value of the corresponding height and width of determined the 3rd the ratio of width to height as image preview parameter.
In one embodiment, processing unit 40 is further used for, and equating with first the ratio of width to height or the value of the most close corresponding height and width of second the ratio of width to height has when multipair, chooses the maximum height and width of a pair of value as the parameter of taking pictures from the value of multipair height and width; Equating with first the ratio of width to height or the value of the most close corresponding height and width of the 3rd the ratio of width to height has when multipair, from the value of multipair height and width, choose the maximum height and width of a pair of value as image preview parameter.
In one embodiment, memory cell 30 is further used for, by calculating gained first the ratio of width to height and the corresponding preservation of parameter and/or image preview parameter of taking pictures.
In one embodiment, processing unit 40 is further used for, and obtains the parameter of taking pictures arranging, and the parameter of taking pictures of setting is made up of the value of user's selected a pair of height and width from first size list; According to second the ratio of width to height corresponding to the calculation of parameter of taking pictures arranging; According to the value of calculating gained second the ratio of width to height definite a pair of height and width from the second size list, using the value of determined height and width as the image preview parameter corresponding with the set parameter of taking pictures.
In one embodiment, according to the value of calculating gained second the ratio of width to height definite a pair of height and width from the second size list, using the value of determined height and width as the image preview parameter corresponding with the set parameter of taking pictures, comprising:
The value of the height and width in the second size list is calculated to corresponding Q the 3rd the ratio of width to height, and from Q the 3rd the ratio of width to height, determine and equate with according to calculation of parameter gained second the ratio of width to height of taking pictures of setting or the 3rd the most close the ratio of width to height, choose the value of the corresponding height and width of determined the 3rd the ratio of width to height as the image preview parameter corresponding with the set parameter of taking pictures.
In one embodiment, memory cell 30 is further used for, and preserves take pictures parameter and the image preview parameter corresponding with the set parameter of taking pictures that arrange.
In specific implementation process, display unit 10 can be realized by the display screen of electronic equipment and related accessory thereof, image acquisition units 20 can be realized by the camera of electronic equipment and related accessory thereof, memory cell 30 can be realized by the internal memory of electronic equipment or external memory, processing unit 40 can be by the central processing unit (CPU of electronic equipment, Central Processing Unit), microprocessor (MPU, Micro Processing Unit) or digital signal processor (DSP, Digital Signal Processor) realization.
In sum, a kind of information processing method and electronic equipment that the embodiment of the present invention provides, value, first size list and the second size list of the height and width of default display unit in electronic equipment, first size list is described and is utilized the image acquisition units of electronic equipment to obtain the size of taking pictures that image is supported, the preview size that the image acquisition units of electronic equipment is supported in the time carrying out image taking preview is described in the second size list; In the situation that user does not intervene, electronic equipment can be according to the value of the height and width of electronic equipment display unit, optimum corresponding to intelligent selection take pictures size and preview size, the wide high proportion of size of making to take pictures reaches consistent with the wide high proportion of display unit as far as possible, make wide high proportion, the visual angle of preview image, the viewing area of preview size reach consistent with the wide high proportion of the size of taking pictures, the visual angle of taking pictures, viewing area as far as possible, thereby reach taking pictures and preview effect of a kind of the best; In the situation that parameter is taken pictures in user's setting, electronic equipment can be according to the optimum preview size of the parameter adaptive selection of taking pictures arranging, make wide high proportion, the visual angle of preview image, the viewing area of preview size reach consistent with the wide high proportion of the size of taking pictures, the visual angle of taking pictures, viewing area as far as possible, thereby also reach taking pictures and preview effect of a kind of the best.
In several embodiment provided by the present invention, should be understood that disclosed method, device and electronic equipment can be realized by another way.Apparatus embodiments described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, when actual realization, can there is other dividing mode, as: multiple unit or assembly can be in conjunction with, maybe can be integrated into another system, or some features can ignore, or do not carry out.In addition, the coupling each other of shown or discussed each part or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of equipment or unit or communication connection can be electrical, machinery or other form.
The above-mentioned unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, also can be distributed in multiple network element; Can select according to the actual needs part or all of unit wherein to realize the object of the present embodiment scheme.
In addition, the each functional unit in various embodiments of the present invention can all be integrated in a processing unit, can be also that each unit is distinguished separately as a unit, also can be integrated in a unit two or more unit; Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that also can adopt hardware to add SFU software functional unit realizes.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of program command, aforesaid program can be stored in a computer read/write memory medium, this program, in the time carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as movable storage device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
Or, if the above-mentioned integrated unit of the embodiment of the present invention is realized and during as production marketing independently or use, also can be stored in a computer read/write memory medium using the form of software function module.Based on such understanding, the part that the technical scheme of the embodiment of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in a storage medium, comprises that some instructions are in order to make a computer equipment (can be personal computer, server or the network equipment etc.) carry out all or part of of method described in the present invention each embodiment.And aforesaid storage medium comprises: various media that can be program code stored such as movable storage device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (14)

1. an information processing method, be applied to the electronic equipment with display unit and image acquisition units, in described electronic equipment, be preset with the value of the height and width of display unit, first size list and the second size list, described first size list records has the value of N to height and width, described first size list characterizes and utilizes described image acquisition units to obtain the size of taking pictures that image is supported, described the second size column table record has the value of M to height and width, described the second size list characterizes the preview size that described image acquisition units is supported in the time carrying out image taking preview, described M and N are positive integer, described method comprises:
Obtain value, first size list and the second size list of the height and width of described electronic equipment display unit;
According to the value of the height and width of described electronic equipment display unit, calculate first the ratio of width to height of described electronic equipment display unit;
From described first size list, determine the value of a pair of height and width according to described first the ratio of width to height, using the value of determined height and width as the parameter of taking pictures;
And/or according to the value of described first the ratio of width to height definite a pair of height and width from described the second size list, using the value of determined height and width as image preview parameter, described electronic equipment uses described image preview parameter to carry out image preview.
2. information processing method according to claim 1, is characterized in that,
The described value of determining a pair of height and width according to first the ratio of width to height from first size list, using the value of determined height and width as the parameter of taking pictures, comprise: the value of the height and width in described first size list is calculated to corresponding K second the ratio of width to height, K is positive integer, and determine and equate with described first the ratio of width to height or second the most close the ratio of width to height from described K second the ratio of width to height, choose the value of the corresponding height and width of determined second the ratio of width to height as the described parameter of taking pictures;
The described value of determining a pair of height and width according to first the ratio of width to height from the second size list, using the value of determined height and width as image preview parameter, comprise: the value of the height and width in described the second size list is calculated to corresponding Q the 3rd the ratio of width to height, Q is positive integer, and determine and equate with described first the ratio of width to height or the 3rd the most close the ratio of width to height from described Q the 3rd the ratio of width to height, choose the value of the corresponding height and width of determined the 3rd the ratio of width to height as described image preview parameter.
3. information processing method according to claim 2, is characterized in that, the method also comprises:
When equating with described first the ratio of width to height or the value of the most close corresponding height and width of second the ratio of width to height has when multipair, from the value of multipair height and width, choose the maximum height and width of a pair of value as the described parameter of taking pictures;
When equating with described first the ratio of width to height or the value of the most close corresponding height and width of the 3rd the ratio of width to height has when multipair, from the value of multipair height and width, choose the maximum height and width of a pair of value as described image preview parameter.
4. according to information processing method described in claim 1,2 or 3, it is characterized in that, the method also comprises:
By calculating gained first the ratio of width to height with described in take pictures parameter and/or the corresponding described electronic equipment this locality that is kept at of image preview parameter.
5. according to information processing method described in claim 1,2 or 3, it is characterized in that, the method also comprises:
Obtain the parameter of taking pictures arranging, the parameter of taking pictures of described setting is made up of the value of user's selected a pair of height and width from described first size list;
Second the ratio of width to height corresponding according to the calculation of parameter of taking pictures of described setting;
According to the value of calculating gained second the ratio of width to height definite a pair of height and width from described the second size list, using the value of determined height and width as the image preview parameter corresponding with the set parameter of taking pictures.
6. information processing method according to claim 5, it is characterized in that, described according to the value of calculating gained second the ratio of width to height definite a pair of height and width from the second size list, using the value of determined height and width as the image preview parameter corresponding with the set parameter of taking pictures, comprising:
The value of the height and width in described the second size list is calculated to corresponding Q the 3rd the ratio of width to height, and from described Q the 3rd the ratio of width to height, determine and equate with according to calculation of parameter gained second the ratio of width to height of taking pictures of setting or the 3rd the most close the ratio of width to height, choose the value of the corresponding height and width of determined the 3rd the ratio of width to height as the image preview parameter corresponding with the set parameter of taking pictures.
7. information processing method according to claim 5, is characterized in that, the method also comprises: take pictures parameter and the image preview parameter corresponding with the set parameter of taking pictures that arrange are kept to described electronic equipment this locality.
8. an electronic equipment, comprises display unit and image acquisition units, and described image acquisition units is used for gathering image, and described display unit is used for showing image, and described electronic equipment also comprises:
Memory cell, be used for value, first size list and the second size list of the height and width of storing default display unit, described first size list records has the value of N to height and width, described first size list characterizes and utilizes described image acquisition units to obtain the size of taking pictures that image is supported, described the second size column table record has the value of M to height and width, described the second size list characterizes the preview size that described image acquisition units is supported in the time carrying out image taking preview, and described M and N are positive integer;
Processing unit, for obtaining value, first size list and the second size list of height and width of described electronic equipment display unit; According to the value of the height and width of described electronic equipment display unit, calculate first the ratio of width to height of described electronic equipment display unit; From described first size list, determine the value of a pair of height and width according to described first the ratio of width to height, using the value of determined height and width as the parameter of taking pictures; And/or, according to the value of described first the ratio of width to height definite a pair of height and width from described the second size list, using the value of determined height and width as image preview parameter; Described processing unit is also for using described image preview parameter and carrying out image preview by described display unit.
9. electronic equipment according to claim 8, is characterized in that,
The described value of determining a pair of height and width according to first the ratio of width to height from first size list, using the value of determined height and width as the parameter of taking pictures, comprise: the value of the height and width in described first size list is calculated to corresponding K second the ratio of width to height, K is positive integer, and determine and equate with described first the ratio of width to height or second the most close the ratio of width to height from described K second the ratio of width to height, choose the value of the corresponding height and width of determined second the ratio of width to height as the described parameter of taking pictures;
The described value of determining a pair of height and width according to first the ratio of width to height from the second size list, using the value of determined height and width as image preview parameter, comprise: the value of the height and width in described the second size list is calculated to corresponding Q the 3rd the ratio of width to height, Q is positive integer, and determine and equate with described first the ratio of width to height or the 3rd the most close the ratio of width to height from described Q the 3rd the ratio of width to height, choose the value of the corresponding height and width of determined the 3rd the ratio of width to height as described image preview parameter.
10. electronic equipment according to claim 9, is characterized in that, described processing unit is further used for,
Equating with described first the ratio of width to height or the value of the most close corresponding height and width of second the ratio of width to height has when multipair, from the value of multipair height and width, choose the maximum height and width of a pair of value as the described parameter of taking pictures;
Equating with described first the ratio of width to height or the value of the most close corresponding height and width of the 3rd the ratio of width to height has when multipair, from the value of multipair height and width, choose the maximum height and width of a pair of value as described image preview parameter.
Electronic equipment described in 11. according to Claim 8,9 or 10, is characterized in that, described memory cell is further used for, by calculating gained first the ratio of width to height with described in take pictures parameter and/or the corresponding preservation of image preview parameter.
Electronic equipment described in 12. according to Claim 8,9 or 10, is characterized in that, described processing unit is further used for, and obtains the parameter of taking pictures arranging, and the parameter of taking pictures of described setting is made up of the value of user's selected a pair of height and width from described first size list; Second the ratio of width to height corresponding according to the calculation of parameter of taking pictures of described setting; According to the value of calculating gained second the ratio of width to height definite a pair of height and width from described the second size list, using the value of determined height and width as the image preview parameter corresponding with the set parameter of taking pictures.
13. according to electronic equipment described in claim 12, it is characterized in that, described according to the value of calculating gained second the ratio of width to height definite a pair of height and width from the second size list, using the value of determined height and width as the image preview parameter corresponding with the set parameter of taking pictures, comprising:
The value of the height and width in described the second size list is calculated to corresponding Q the 3rd the ratio of width to height, and from described Q the 3rd the ratio of width to height, determine and equate with according to calculation of parameter gained second the ratio of width to height of taking pictures of setting or the 3rd the most close the ratio of width to height, choose the value of the corresponding height and width of determined the 3rd the ratio of width to height as the image preview parameter corresponding with the set parameter of taking pictures.
14. according to electronic equipment described in claim 12, it is characterized in that, described memory cell is further used for, and preserves take pictures parameter and the image preview parameter corresponding with the set parameter of taking pictures that arrange.
CN201410060636.5A 2014-02-21 2014-02-21 A kind of information processing method and electronic equipment Active CN103888670B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410060636.5A CN103888670B (en) 2014-02-21 2014-02-21 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410060636.5A CN103888670B (en) 2014-02-21 2014-02-21 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN103888670A true CN103888670A (en) 2014-06-25
CN103888670B CN103888670B (en) 2018-06-01

Family

ID=50957376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410060636.5A Active CN103888670B (en) 2014-02-21 2014-02-21 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN103888670B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506932A (en) * 2015-09-08 2017-03-15 中兴通讯股份有限公司 The acquisition methods and device of image
CN110830716A (en) * 2019-11-08 2020-02-21 苏宁金融科技(南京)有限公司 Image generation method and device, computer equipment and storage medium
CN112911152A (en) * 2021-01-29 2021-06-04 北京乐学帮网络技术有限公司 Preview image generation method, device, equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050146631A1 (en) * 2004-01-07 2005-07-07 Shelton Michael J. In-camera cropping to standard photo sizes
CN1642226A (en) * 2004-01-14 2005-07-20 松下电器产业株式会社 Video signal display unit
CN1992803A (en) * 2005-12-28 2007-07-04 三星Techwin株式会社 Image display apparatus and photographing apparatus
CN101217643A (en) * 2007-12-26 2008-07-09 广东威创视讯科技股份有限公司 A method and corresponding device for dynamic capture and collection, display of images with different sizes and resolution
CN101256477A (en) * 2007-02-26 2008-09-03 索尼株式会社 Image processing system, information processing apparatus, image processing method and program
CN101336448A (en) * 2006-01-30 2008-12-31 松下电器产业株式会社 Imaging device, display control device, image display system, and imaging system
CN101697579A (en) * 2009-10-23 2010-04-21 中兴通讯股份有限公司 Terminal with videophone function and method for adjusting video images thereof
US20100149378A1 (en) * 2008-12-17 2010-06-17 Sony Corporation Imaging apparatus, image processing apparatus, zoom control method, and zoom control program
CN102572204A (en) * 2010-12-20 2012-07-11 中国移动通信集团浙江有限公司 Method and device for obtaining comics adaptive to terminal screen resolution
CN102739959A (en) * 2011-04-07 2012-10-17 卡西欧计算机株式会社 Image processing device for generating composite image having predetermined aspect ratio
CN102984494A (en) * 2012-12-06 2013-03-20 北京小米科技有限责任公司 Video communication method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050146631A1 (en) * 2004-01-07 2005-07-07 Shelton Michael J. In-camera cropping to standard photo sizes
CN1642226A (en) * 2004-01-14 2005-07-20 松下电器产业株式会社 Video signal display unit
CN1992803A (en) * 2005-12-28 2007-07-04 三星Techwin株式会社 Image display apparatus and photographing apparatus
CN101336448A (en) * 2006-01-30 2008-12-31 松下电器产业株式会社 Imaging device, display control device, image display system, and imaging system
CN101256477A (en) * 2007-02-26 2008-09-03 索尼株式会社 Image processing system, information processing apparatus, image processing method and program
CN101217643A (en) * 2007-12-26 2008-07-09 广东威创视讯科技股份有限公司 A method and corresponding device for dynamic capture and collection, display of images with different sizes and resolution
CN101217643B (en) * 2007-12-26 2010-12-29 广东威创视讯科技股份有限公司 A method and corresponding device for dynamic capture and collection, display of images with different sizes and resolution
US20100149378A1 (en) * 2008-12-17 2010-06-17 Sony Corporation Imaging apparatus, image processing apparatus, zoom control method, and zoom control program
CN101697579A (en) * 2009-10-23 2010-04-21 中兴通讯股份有限公司 Terminal with videophone function and method for adjusting video images thereof
CN102572204A (en) * 2010-12-20 2012-07-11 中国移动通信集团浙江有限公司 Method and device for obtaining comics adaptive to terminal screen resolution
CN102739959A (en) * 2011-04-07 2012-10-17 卡西欧计算机株式会社 Image processing device for generating composite image having predetermined aspect ratio
CN102984494A (en) * 2012-12-06 2013-03-20 北京小米科技有限责任公司 Video communication method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506932A (en) * 2015-09-08 2017-03-15 中兴通讯股份有限公司 The acquisition methods and device of image
CN110830716A (en) * 2019-11-08 2020-02-21 苏宁金融科技(南京)有限公司 Image generation method and device, computer equipment and storage medium
CN110830716B (en) * 2019-11-08 2021-08-27 南京星云数字技术有限公司 Image generation method and device, computer equipment and storage medium
CN112911152A (en) * 2021-01-29 2021-06-04 北京乐学帮网络技术有限公司 Preview image generation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN103888670B (en) 2018-06-01

Similar Documents

Publication Publication Date Title
US10140675B2 (en) Image grid with selectively prominent images
US10134165B2 (en) Image distractor detection and processing
US11877085B2 (en) Optimized video review using motion recap images
KR20150034724A (en) Image identification and organisation according to a layout without user intervention
CN104394422A (en) Video segmentation point acquisition method and device
CN104125412A (en) Information processing method and electronic equipment
CN105653142A (en) Image special effect ordering method and system based on areas and user attributes
CN103702032A (en) Image processing method, device and terminal equipment
US20160269674A1 (en) Dynamic Video Capture Rate Control
CN106851162A (en) video recording method and device
CN112037160B (en) Image processing method, device and equipment
CN105989180A (en) Method and device for operating picture
CN104809416A (en) display screen shielding method, electronic device and computer program product
CN104125397A (en) Data processing method and electronic equipment
CN103888670A (en) Information processing method and electronic device
CN105516578A (en) Image processing method and device and electronic equipment
CN107122104B (en) Data display method and device
CN104267961A (en) Scroll bar generation method and device
CN107507158A (en) A kind of image processing method and device
CN103207725A (en) Icon conversion method and device
CN105204720A (en) Method and device for displaying background image on mobile terminal
CN104424270A (en) Method and device for displaying pictures
CN103607629B (en) Multimedia file playing method and electronic terminal
CN104345423A (en) Image collecting method and image collecting equipment
CN105516609A (en) Shooting method and device

Legal Events

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