CN103888670B - A kind of information processing method and electronic equipment - Google Patents
A kind of information processing method and electronic equipment Download PDFInfo
- Publication number
- CN103888670B CN103888670B CN201410060636.5A CN201410060636A CN103888670B CN 103888670 B CN103888670 B CN 103888670B CN 201410060636 A CN201410060636 A CN 201410060636A CN 103888670 B CN103888670 B CN 103888670B
- Authority
- CN
- China
- Prior art keywords
- height
- width
- ratio
- value
- 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.)
- Active
Links
Landscapes
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
The present invention discloses a kind of information processing method and electronic equipment, value, first size list and the second size list of display unit height and width are preset in electronic equipment, first size list records have values of the N to height and width, the size of taking pictures that characterization is supported using image acquisition units acquisition image, second size list records have values of the M to height and width, image acquisition units are characterized in the preview size supported during image taking preview, method includes:Obtain value, first size list and the second size list of the height and width of electronic equipment display unit;According to the value of display unit height and width, first the ratio of width to height is calculated;The value of a pair of height and width is determined from first size list according to first the ratio of width to height, using the value of identified height and width as parameter of taking pictures;And/or the value of a pair of height and width is determined from the second size list according to first the ratio of width to height, using the value of identified height and width as image preview parameter, electronic equipment carries out image preview using image preview parameter.
Description
Technical field
The present invention relates to intelligent electronic device technical field more particularly to a kind of information processing methods and electronic equipment.
Background technology
With the fast development of intelligent electronic device industry, miscellaneous intelligent electronic device emerges in an endless stream, various intelligence
The screen proportion and size of energy electronic equipment are also had nothing in common with each other.For the electronic equipment with camera function, how to combine
Its camera parameter(Such as pixel size), during user is taken pictures using camera function, intelligent provides best operation
Experience and optimal take pictures size and the preview size of image, are current urgent problems to be solved.
The content of the invention
To solve existing technical problem, the embodiment of the present invention provides a kind of information processing method and electronic equipment.
A kind of information processing method provided in an embodiment of the present invention, applied to display unit and image acquisition units
Electronic equipment is preset with value, first size list and the second size list of the height and width of display unit in the electronic equipment,
The first size list records have values of the N to height and width, and the first size list characterization utilizes described image collecting unit
The size of taking pictures that image is supported is obtained, the second size list records have values of the M to height and width, the second size list
Described image collecting unit is characterized in the preview size supported during image taking preview, the M and N are positive integer, institute
The method of stating includes:
Obtain value, first size list and the second size list of the height and width of the electronic equipment display unit;
According to the value of the height and width of the electronic equipment display unit, the of the electronic equipment display unit is calculated
One the ratio of width to height;
The value of a pair of height and width is determined from the first size list according to described first the ratio of width to height, by identified height
With wide value as parameter of taking pictures;
And/or according to described first the ratio of width to height from the second size list determine a pair of height and width value, by really
The value of fixed height and width carries out image preview as image preview parameter, the electronic equipment using described image preview parameter.
A kind of electronic equipment provided in an embodiment of the present invention, including display unit and image acquisition units, described image is adopted
Collection unit is for gathering image, and for showing image, the electronic equipment further includes the display unit:
Storage unit, for storing the value of the height and width of default display unit, first size list and the second size column
Table, the first size list records have values of the N to height and width, and the first size list characterization is single using described image acquisition
Member obtains the size of taking pictures that image is supported, the second size list records have values of the M to height and width, second size column
It is positive integer that table, which characterizes described image collecting unit in the preview size supported during image taking preview, the M and N,;
Processing unit, for obtaining the value of the height and width of the electronic equipment display unit, first size list and second
Size list;According to the value of the height and width of the electronic equipment display unit, the electronic equipment display unit is calculated
First the ratio of width to height;The value of a pair of height and width is determined from the first size list according to described first the ratio of width to height, will be determined
Height and width value as taking pictures parameter;And/or a pair is determined from the second size list according to described first the ratio of width to height
The value of height and width, using the value of identified height and width as image preview parameter;The processing unit is also used for the figure
As preview parameter and pass through the display unit progress image preview.
A kind of information processing method and electronic equipment provided in an embodiment of the present invention preset display unit in the electronic device
Height and width value, first size list and the second size list, first size list description adopted using the image of electronic equipment
Collection unit obtains the size of taking pictures that image is supported, the image acquisition units that the second size list describes electronic equipment are carrying out figure
As the preview size supported during shooting preview;In the case where user is without intervention, electronic equipment can be set according to electronics
The value of the height and width of standby display unit, intelligent selection corresponding optimal take pictures size and preview size make the wide high of size of taking pictures
Ratio reaches consistent with the wide high proportion of display unit as far as possible, makes the visual angle, visual of the wide high proportion of preview size, preview image
Region reaches consistent with the wide high proportion for size of taking pictures, the visual angle taken pictures, visible area as far as possible, so as to reach a kind of optimal bat
According to preview effect;In the case where user setting takes pictures parameter, electronic equipment can be according to the parameter adaptive of taking pictures of setting
The optimal preview size of selection, the wide high proportion of preview size, the visual angle of preview image, visible area is made to reach and clap as far as possible
The wide high proportion of hindsight cun, visual angle, the visible area taken pictures are consistent, take pictures and preview effect so as to also reach a kind of optimal.
Description of the drawings
Fig. 1 is a kind of flow chart of information processing method of the embodiment of the present invention;
Fig. 2 is the composition structure diagram of a kind of electronic equipment of the embodiment of the present invention.
Specific embodiment
The technical solution of the present invention is further elaborated in the following with reference to the drawings and specific embodiments.
Embodiment one
A kind of information processing method that the embodiment of the present invention one provides, applied to display unit and image acquisition units
Electronic equipment, be preset with value, first size list and the second size list of the height and width of display unit in electronic equipment,
One size list records have values of the N to height and width, and first size list characterization obtains image using image acquisition units and supported
Size of taking pictures, the second size list records have values of the M to height and width, and the second size list phenogram is being carried out as collecting unit
The preview size supported during image taking preview, M and N are positive integer, as shown in Figure 1, mainly including:
Step 101, value, first size list and the second size list of the height and width of electronic equipment display unit are obtained.
The value of the height and width of electronic equipment display unit and first size list and the second size list, can preserve
In the database of electronic equipment, such as it is stored in the memory or external memory of electronic equipment.Wherein, the height and width of display unit
Value describes the size of electronic equipment display unit;Record has values of the N to height and width in first size list, this N is to height and width
Value describe and obtain the size of taking pictures supported of image using the image acquisition units of electronic equipment;Remember in second size list
Record has values of the M to height and width, and the image acquisition units that this M describes the value of height and width electronic equipment are pre- in progress image taking
The preview size supported when looking at.
It should be noted that the size of taking pictures refers to the height and width of the window of taking pictures of image acquisition units when shooting
Value, the preview size refer to that image acquisition units shoot the wide and high of preview image when completing and carry out image preview
Value.By taking the image acquisition units of 12,000,000 pixels as an example, size of taking pictures is 4000 × 3000, and electronic equipment display at present is single
The display parameters maximum of member can only achieve 1080p, i.e., 1920 × 1080, and therefore, there are one between preview size and size of taking pictures
Fixed gap, preview size can only make choice under 1080p.And the value of the height and width according to electronic equipment display unit,
Optimal take pictures is selected size and preview size and according to the variation for size of taking pictures optimal preview size to be selected to fit therewith
Should, it takes pictures and preview effect so as to reach a kind of optimal, this is exactly what the embodiment of the present invention to be realized.
The maximum that size is supported with image acquisition units in addition, the maximum that image acquisition units acquisition image is supported is taken pictures
Pixel is related, such as:If the maximum pixel that image acquisition units are supported is 2,000,000, the maximum supported size of taking pictures is
1600 × 1200, if the maximum pixel that image acquisition units are supported is 5,000,000, the maximum supported takes pictures size as 2560
× 1920, if the maximum pixel that image acquisition units are supported for 8,000,000, the maximum supported take pictures size for 3264 ×
2448, if the maximum pixel that image acquisition units are supported for 14,000,000, the maximum supported take pictures size for 4536 ×
3024。
Step 102, according to the value of the height and width of electronic equipment display unit, it is calculated the of electronic equipment display unit
One the ratio of width to height.
By taking 5.5 inches of display unit as an example, the value of height and width represents height for 1280 × 720,1280, and 720 represent width,
For convenience of description, the height of electronic equipment display unit is subsequently represented with H1, represents the width of electronic equipment display unit with W1, first
The ratio of width to height is represented with W1/H1;So, for 5.5 inches of display unit, first the ratio of width to height W1/H1=720/1280
=0.75。
Step 103, the value of a pair of height and width is determined from first size list according to first the ratio of width to height, by identified height
With wide value as parameter of taking pictures;
And/or the value of a pair of height and width is determined from the second size list according to first the ratio of width to height, by identified high and
Wide value carries out image preview as image preview parameter, electronic equipment using image preview parameter.
Specifically, the value of the height and width in first size list is calculated corresponding K second the ratio of width to height, K is just
Integer, K can be identical with N, can also be differed with N, such as:The value of height and width in first size list can only be man-to-man
It is compared(One height is only compared with corresponding one wide)Come when calculating second the ratio of width to height, K is identical with the value of N, first
The value of height and width in size list can arbitrarily compare(One height can compared with multiple width or it is one wide can with it is more
A height is compared)Come when calculating second the ratio of width to height, the value of K and N differ;It is determined from the K second the ratio of width to height and the
One the ratio of width to height is equal or most similar second the ratio of width to height, the value conduct of the height and width determined by selection corresponding to second the ratio of width to height
It takes pictures parameter;
The value of height and width in second size list is calculated corresponding Q the 3rd the ratio of width to height, Q is positive integer, and Q can
With identical with M, can also be differed with M, such as:The value of height and width in second size list man-to-man can only be compared
(One height is only compared with corresponding one wide)Come when calculating three the ratio of width to height, Q is identical with the value of M, the second size list
In the values of height and width can arbitrarily compare(One height can compared with multiple width or it is one wide can be with multiple high progress
Compare)Come when calculating three the ratio of width to height, the value of Q and M differ;It is determined and first the ratio of width to height from the Q the 3rd the ratio of width to height
Equal or most similar 3rd the ratio of width to height, the value of the height and width determined by selection corresponding to the 3rd the ratio of width to height is as image preview
Parameter.
In one embodiment, when the height and width corresponding to equal with first the ratio of width to height or most similar second the ratio of width to height
Value when having multipair, the height and width conduct that a pair of value maximum is chosen from the value of multipair height and width takes pictures parameter;
When the value of the height and width corresponding to equal with first the ratio of width to height or most similar 3rd the ratio of width to height has multipair, from more
To choosing the maximum height and width of a pair of of value in the value of height and width as image preview parameter.
It is exemplified below, by taking first the ratio of width to height W1/H1=720/1280=0.75 as an example, there is 6 pairs in first size list
The value of height and width is respectively:3264×2448、3264×1836、2048×1536、2048×1152、1280×720、640×
480, then be respectively to second the ratio of width to height of correspondence W2/H2 that the value of height and width is calculated according to these: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 height and width corresponding to the W2/H2 equal with W1/H1 has respectively:3264×2448、2048×1536、640×
480, maximum height and width, i.e. 3264 × 2448 of a pair of of value are chosen from the value of this three pairs of height and width immediately, as parameter of taking pictures;
There is the value of 4 pairs of height and width in second size list, be respectively:1920×1080、1280×720、800×600、
960 × 540, then be respectively to the 3rd the ratio of width to height W3/H3 of correspondence that the value of height and width is calculated according to these:1080/
1920=0.5625,720/1280=0.5625,600/800=0.75,540/960=0.5625, the W3/H3 equal with W1/H1 institute
The value of corresponding height and width is 800 × 600, and image preview parameter is used as so as to choose 800 × 600.
It should be noted that electronic equipment can will calculate first the ratio of width to height of gained and definite take pictures parameter and/or figure
As preview parameter correspondence is stored in electronic equipment local, when starting so as to next time, directly from take pictures described in local call parameter and/
Or image preview parameter, without recalculating, the system resource of electronic equipment can be so saved, is promoted and started constantly
The speed of response.
Embodiment two
On the basis of the embodiment of the present invention one, user also can voluntarily set parameter of taking pictures, because being set in substantial amounts of electronics
In standby, the size of taking pictures supported using image acquisition units acquisition image is that user is visible, and user can be from first size
The value of a pair of height and width is selected in list as parameter of taking pictures;When user setting takes pictures parameter, electronic equipment is according to setting
Parameter of taking pictures calculates corresponding second the ratio of width to height, and a pair is determined from the second size list according to second the ratio of width to height of gained is calculated
The value of height and width, using the value of identified height and width as with the set corresponding image preview parameter of parameter of taking pictures.
Wherein, according to calculate gained second the ratio of width to height from the second size list determine a pair of height and width value, by really
The value of fixed height and width as with the set corresponding image preview parameter of parameter of taking pictures, including:
The value of height and width in second size list is calculated corresponding Q the 3rd the ratio of width to height, and from the Q the
Equal with parameter calculating second the ratio of width to height of gained of taking pictures according to setting or most similar 3rd the ratio of width to height is determined in three the ratio of width to height,
The value of height and width determined by selection corresponding to the 3rd the ratio of width to height is as pre- with the set corresponding image of parameter of taking pictures
Look at parameter.When equal with second the ratio of width to height for calculating gained or most similar 3rd the ratio of width to height has multipair, from multipair height and width
Value in choose the height and width of a pair of of value maximum as with the set corresponding image preview parameter of parameter of taking pictures.
It is exemplified below, has the value of 6 pairs of optional height and width of user in first size list, be respectively:3264×
2448th, 3264 × 1836,2048 × 1536,2048 × 1152,1280 × 720,640 × 480, it is assumed that user's selection 2048 ×
1152 as parameter of taking pictures, then 2048 × 1152 selected according to user calculate corresponding second the ratio of width to height W2/H2=1152/
2048=0.5625;
There is the value of 4 pairs of height and width in second size list, be respectively:1920×1080、1280×720、800×600、
960 × 540, then be respectively to the 3rd the ratio of width to height W3/H3 of correspondence that the value of height and width is calculated according to these:1080/
1920=0.5625,720/1280=0.5625,600/800=0.75,540/960=0.5625, the W3/H3 equal with W2/H2 institute
The value respectively of corresponding height and width has:1920 × 1080,1280 × 720,960 × 540, immediately from the value of this three pairs of height and width
Maximum height and width, i.e. 1920 × 1080 of a pair of of value are chosen, are joined as with the set corresponding image preview of parameter of taking pictures
Number.
It should be noted that electronic equipment can by user setting take pictures parameter and determine with set bat
According to the corresponding image preview parameter of parameter be stored in electronic equipment local, so as to user next time selection similarly take pictures parameter when
It can directly invoke corresponding image preview parameter by inquiring about the data locally preserved, without recalculating, so may be used
To save the system resource of electronic equipment, the operation speed of response is promoted.
Embodiment three
Corresponding above- mentioned information processing method, the embodiment of the present invention additionally provides a kind of electronic equipment, as shown in Fig. 2, the electricity
Sub- equipment includes display unit 10 and image acquisition units 20, and image acquisition units 20 for gathering image, use by display unit 10
In display image;
The electronic equipment further includes:
Storage unit 30, for storing the value of the height and width of default display unit 10, first size list and the second ruler
Very little list, first size list records have values of the N to height and width, and first size list characterization is obtained using image acquisition units 20
Size that image was supported take pictures, the second size list records have values of the M to height and width, the acquisition of the second size list phenogram picture
Unit 20 is positive integer in the preview size supported during image taking preview, M and N;
Processing unit 40, for obtaining the value of the height and width of electronic equipment display unit 10, first size list and second
Size list;According to the value of the height and width of electronic equipment display unit 10, the first of electronic equipment display unit 10 is calculated
The ratio of width to height;The value of a pair of height and width is determined from first size list according to first the ratio of width to height, by the value of identified height and width
As parameter of taking pictures;And/or the value of a pair of height and width is determined from the second size list according to first the ratio of width to height, it will determine
Height and width value as image preview parameter;Processing unit 40 is also used for image preview parameter and passes through display unit 10
Carry out image preview.
In one embodiment,
The value of a pair of height and width is determined from first size list according to first the ratio of width to height, by the value of identified height and width
As parameter of taking pictures, including:The value of height and width in first size list is calculated corresponding K second the ratio of width to height, K is
Positive integer, and equal with first the ratio of width to height or most similar second the ratio of width to height is determined from K second the ratio of width to height, selection determines
Second the ratio of width to height corresponding to height and width value as taking pictures parameter;
The value of a pair of height and width is determined from the second size list according to first the ratio of width to height, by the value of identified height and width
As image preview parameter, including:The value of height and width in second size list is calculated corresponding Q the 3rd wide high
Than Q is positive integer, and equal with first the ratio of width to height or most similar 3rd the ratio of width to height is determined from Q the 3rd the ratio of width to height, is chosen
The value of height and width corresponding to identified 3rd the ratio of width to height is as image preview parameter.
In one embodiment, processing unit 40 is further used for, equal with first the ratio of width to height or most similar
When the value of height and width corresponding to two the ratio of width to height has multipair, the maximum height and width of a pair of of value are chosen from the value of multipair height and width and are made
For parameter of taking pictures;When the value of the height and width corresponding to equal with first the ratio of width to height or most similar 3rd the ratio of width to height has multipair,
The maximum height and width of a pair of of value are chosen from the value of multipair height and width as image preview parameter.
In one embodiment, storage unit 30 is further used for, and will calculate first the ratio of width to height of gained and parameter of taking pictures
And/or image preview parameter is corresponded to and preserved.
In one embodiment, processing unit 40 is further used for, and obtains the parameter of taking pictures of setting, the ginseng of taking pictures of setting
The value for a pair of of height and width that number is selected by user from first size list is formed;It is calculated according to the parameter of taking pictures of setting corresponding
Second the ratio of width to height;According to the value for calculating second the ratio of width to height of gained definite a pair of height and width from the second size list, will determine
Height and width value as with the set corresponding image preview parameter of parameter of taking pictures.
In one embodiment, second the ratio of width to height determines a pair of height and width from the second size list according to obtained by calculating
Value, using the value of identified height and width as with the set corresponding image preview parameter of parameter of taking pictures, including:
The value of height and width in second size list is calculated corresponding Q the 3rd the ratio of width to height, and it is wide from Q a 3rd
It is high that equal with parameter calculating second the ratio of width to height of gained of taking pictures according to setting or most similar 3rd the ratio of width to height is determined than in, it chooses
The value of height and width corresponding to identified 3rd the ratio of width to height is joined as with the set corresponding image preview of parameter of taking pictures
Number.
In one embodiment, storage unit 30 is further used for, preserve setting take pictures parameter and with it is set
The corresponding image preview parameter of parameter of taking pictures.
In specific implementation process, display unit 10 can be realized by the display screen and its related accessory of electronic equipment, figure
As collecting unit 20 can realize that storage unit 30 can be by electronic equipment by the camera and its related accessory of electronic equipment
Memory or external memory realize that processing unit 40 can be by the central processing unit of electronic equipment(CPU, Central Processing
Unit), microprocessor(MPU, Micro Processing Unit)Or digital signal processor(DSP, Digital Signal
Processor)It realizes.
In conclusion a kind of information processing method provided in an embodiment of the present invention and electronic equipment, in the electronic device in advance
If the value of the height and width of display unit, first size list and the second size list, first size list description is set using electronics
Standby image acquisition units obtain the size of taking pictures that image is supported, the second size list describes the Image Acquisition list of electronic equipment
Member is in the preview size supported during image taking preview;In the case where user is without intervention, electronic equipment can
According to the value of the height and width of electronic equipment display unit, intelligent selection corresponding optimal take pictures size and preview size make to take pictures
The wide high proportion of size reaches consistent with the wide high proportion of display unit as far as possible, makes wide high proportion, the preview image of preview size
Visual angle, visible area as far as possible reach consistent with the wide high proportion for size of taking pictures, the visual angle taken pictures, visible area, so as to reach
A kind of optimal takes pictures and preview effect;In the case where user setting takes pictures parameter, electronic equipment can be according to the bat of setting
According to the preview size that the selection of parameter adaptive is optimal, make the wide high proportion of preview size, the visual angle of preview image, visible area
Reach consistent with the wide high proportion for size of taking pictures, the visual angle taken pictures, visible area as far as possible, take pictures so as to also reach a kind of optimal
With preview effect.
In several embodiments provided by the present invention, it should be understood that disclosed method, apparatus and electronic equipment,
It can realize by another way.Apparatus embodiments described above are only schematical, for example, the unit is drawn
Point, it is only a kind of division of logic function, there can be other dividing mode in actual implementation, such as:Multiple units or component can
To combine or be desirably integrated into another system or some features can be ignored or does not perform.It is in addition, shown or discussed
The mutual coupling of each component or direct-coupling or communication connection can be by some interfaces, equipment or unit
INDIRECT COUPLING or communication connection can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, be shown as unit
The component shown can be or may not be physical location, you can be located at a place, can also be distributed to multiple network lists
In member;Part or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing unit, also may be used
To be each unit individually as a unit, can also two or more units integrate in a unit;It is above-mentioned
The form that hardware had both may be employed in integrated unit is realized, can also be realized in the form of hardware adds SFU software functional unit.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
The relevant hardware of program instruction is completed, and foregoing program can be stored in a computer read/write memory medium, the program
Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:It is movable storage device, read-only
Memory(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or
The various media that can store program code such as person's CD.
If alternatively, the above-mentioned integrated unit of the embodiment of the present invention is realized in the form of software function module and as independently
Production marketing or in use, can also be stored in a computer read/write memory medium.Based on such understanding, this hair
The part that the technical solution of bright embodiment substantially in other words contributes to the prior art can in the form of software product body
Reveal and, which is stored in a storage medium, including some instructions with so that a computer is set
It is standby(Can be personal computer, server or network equipment etc.)Perform the whole of each embodiment the method for the present invention
Or part.And foregoing storage medium includes:Movable storage device, read-only memory(ROM, Read-Only Memory), with
Machine accesses memory(RAM, Random Access Memory), various Jie that can store program code such as magnetic disc or CD
Matter.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in change or replacement, should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (10)
1. a kind of information processing method, applied to the electronic equipment with display unit and image acquisition units, the electronics is set
Value, first size list and the second size list of the standby interior height and width for being preset with display unit, the first size list note
Record has values of the N to height and width, the bat that the first size list characterization is supported using described image collecting unit acquisition image
Hindsight cun, the second size list records have values of the M to height and width, and the second size list characterization described image acquisition is single
Member is positive integer in the preview size supported during image taking preview, the M and N, the described method includes:
Obtain value, first size list and the second size list of the height and width of the electronic equipment display unit;
According to the value of the height and width of the electronic equipment display unit, first that the electronic equipment display unit is calculated is wide
High ratio;
Height and width in the first size list are worth to corresponding second the ratio of width to height, and selection is wide high with described first
Than equal or most similar second the ratio of width to height, the value of the height and width determined by selection corresponding to second the ratio of width to height is as ginseng of taking pictures
Number;
And/or the height and width in the second size list are worth to corresponding 3rd the ratio of width to height, selection and described the
One the ratio of width to height is equal or most similar 3rd the ratio of width to height, the value conduct of the height and width determined by selection corresponding to the 3rd the ratio of width to height
Image preview parameter, the electronic equipment carry out image preview using described image preview parameter.
2. information processing method according to claim 1, which is characterized in that this method further includes:
When the value of the height and width corresponding to equal with described first the ratio of width to height or most similar second the ratio of width to height has multipair, from more
To choosing parameter of taking pictures described in the height and width conduct of a pair of of value maximum in the value of height and width;
When the value of the height and width corresponding to equal with described first the ratio of width to height or most similar 3rd the ratio of width to height has multipair, from more
To choosing the maximum height and width of a pair of of value in the value of height and width as described image preview parameter.
3. information processing method according to claim 1 or claim 2, which is characterized in that this method further includes:
First the ratio of width to height of gained and the parameter and/or image preview parameter is corresponding is stored in the electronic equipment of taking pictures will be calculated
It is local.
4. information processing method according to claim 1 or claim 2, which is characterized in that this method further includes:
Obtain the parameter of taking pictures set, a pair that parameter is selected by user from the first size list of taking pictures of the setting
The value of height and width is formed;
Corresponding second the ratio of width to height is calculated according to the parameter of taking pictures of the setting;
The value of height and width in the second size list is calculated corresponding Q the 3rd the ratio of width to height, and from the Q the
Equal with parameter calculating second the ratio of width to height of gained of taking pictures according to setting or most similar 3rd the ratio of width to height is determined in three the ratio of width to height,
The value of height and width determined by selection corresponding to the 3rd the ratio of width to height is as pre- with the set corresponding image of parameter of taking pictures
Look at parameter.
5. information processing method according to claim 4, which is characterized in that this method further includes:By the parameter of taking pictures of setting,
And it is stored in the electronic equipment local with the set corresponding image preview parameter of parameter of taking pictures.
6. a kind of electronic equipment, including display unit and image acquisition units, described image collecting unit is for gathering image, institute
Display unit is stated for showing image, the electronic equipment further includes:
Storage unit, for storing the value of the height and width of default display unit, first size list and the second size list, institute
Stating first size list records has values of the N to height and width, and the first size list characterization is obtained using described image collecting unit
The size of taking pictures that image is supported is taken, the second size list records have values of the M to height and width, the second size list table
It is positive integer that described image collecting unit, which is levied, in the preview size supported during image taking preview, the M and N;
Processing unit, for obtaining the value of the height and width of the electronic equipment display unit, first size list and the second size
List;According to the value of the height and width of the electronic equipment display unit, the first of the electronic equipment display unit is calculated
The ratio of width to height;Height and width in the first size list are worth to corresponding second the ratio of width to height, selection and described first
The ratio of width to height is equal or most similar second the ratio of width to height, and the values of the height and width determined by selection corresponding to second the ratio of width to height is as clapping
According to parameter;And/or the height and width in the second size list are worth to corresponding 3rd the ratio of width to height, selection and institute
State that first the ratio of width to height is equal or most similar 3rd the ratio of width to height, the value of the height and width determined by selection corresponding to the 3rd the ratio of width to height
As image preview parameter;The processing unit is also used for described image preview parameter and passes through the display unit carrying out
Image preview.
7. electronic equipment according to claim 6, which is characterized in that the processing unit is further used for,
When the value of the height and width corresponding to equal with described first the ratio of width to height or most similar second the ratio of width to height has multipair, from more
To choosing parameter of taking pictures described in the height and width conduct of a pair of of value maximum in the value of height and width;
When the value of the height and width corresponding to equal with described first the ratio of width to height or most similar 3rd the ratio of width to height has multipair, from more
To choosing the maximum height and width of a pair of of value in the value of height and width as described image preview parameter.
8. according to the electronic equipment of claim 6 or 7, which is characterized in that the storage unit is further used for, by calculating
First the ratio of width to height with it is described take pictures parameter and/or image preview parameter it is corresponding preservation.
9. according to the electronic equipment of claim 6 or 7, which is characterized in that the processing unit is further used for, and is set
Parameter of taking pictures, the setting take pictures parameter by user from the first size list select a pair of of height and width value structure
Into;The value of height and width in the second size list is calculated corresponding Q the 3rd the ratio of width to height, and from the Q the
Equal with parameter calculating second the ratio of width to height of gained of taking pictures according to setting or most similar 3rd the ratio of width to height is determined in three the ratio of width to height,
The value of height and width determined by selection corresponding to the 3rd the ratio of width to height is as pre- with the set corresponding image of parameter of taking pictures
Look at parameter.
10. electronic equipment according to claim 9, which is characterized in that the storage unit is further used for, and preserves setting
Parameter of taking pictures and with the set corresponding image preview parameter of parameter of taking pictures.
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 CN103888670A (en) | 2014-06-25 |
CN103888670B true 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) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106506932A (en) * | 2015-09-08 | 2017-03-15 | 中兴通讯股份有限公司 | The acquisition methods and device of image |
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 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1642226A (en) * | 2004-01-14 | 2005-07-20 | 松下电器产业株式会社 | Video signal display unit |
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 |
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 |
Family Cites Families (6)
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 |
JP2007180931A (en) * | 2005-12-28 | 2007-07-12 | Samsung Techwin Co Ltd | Image display device and imaging device |
JP4950074B2 (en) * | 2006-01-30 | 2012-06-13 | パナソニック株式会社 | Imaging device, display control device, image display system, and imaging system |
JP4715913B2 (en) * | 2008-12-17 | 2011-07-06 | ソニー株式会社 | Imaging apparatus, image processing apparatus, zoom control method, and zoom control program |
JP5578442B2 (en) * | 2011-04-07 | 2014-08-27 | カシオ計算機株式会社 | Imaging apparatus, image composition method, and program |
CN102984494B (en) * | 2012-12-06 | 2015-11-25 | 小米科技有限责任公司 | A kind of video communication method and device |
-
2014
- 2014-02-21 CN CN201410060636.5A patent/CN103888670B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1642226A (en) * | 2004-01-14 | 2005-07-20 | 松下电器产业株式会社 | Video signal display unit |
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 |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN103888670A (en) | 2014-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180054564A1 (en) | Apparatus and method for providing user's emotional information in electronic device | |
CN104581380B (en) | A kind of method and mobile terminal of information processing | |
WO2021175055A1 (en) | Video processing method and related device | |
JP6355746B2 (en) | Image editing techniques for devices | |
CN111698553B (en) | Video processing method and device, electronic equipment and readable storage medium | |
CN109168026A (en) | Instant video display methods, device, terminal device and storage medium | |
CN107005608B (en) | Prevent the method, apparatus and electronic equipment of camera interference antenna | |
US20100331047A1 (en) | Methods and apparatuses for facilitating generation and editing of multiframe images | |
WO2013167801A1 (en) | Method, apparatus and computer program product for generating animated images | |
CN111757175A (en) | Video processing method and device | |
CN106341608A (en) | Emotion based shooting method and mobile terminal | |
CN103888670B (en) | A kind of information processing method and electronic equipment | |
CN105354231A (en) | Image selection method and apparatus, and image processing method and apparatus | |
CN105812853A (en) | Image processing method and electronic device | |
CN104244101A (en) | Method and device for commenting multimedia content | |
CN113014801B (en) | Video recording method, video recording device, electronic equipment and medium | |
CN105933772A (en) | Interaction method, interaction apparatus and interaction system | |
CN106096043A (en) | A kind of photographic method and mobile terminal | |
CN109409321A (en) | A kind of determination method and device of camera motion mode | |
CN104486553B (en) | A kind of distant view photograph image pickup method and terminal | |
US20170161871A1 (en) | Method and electronic device for previewing picture on intelligent terminal | |
EP2775703B1 (en) | Method and apparatus for managing crowd sourced content creation | |
CN106453886A (en) | Shooting method of mobile terminal and mobile terminal | |
CN104038832A (en) | Video playing method and device | |
CN109726632A (en) | Background recommended method and Related product |
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 |