CN102638656A - Video image processing method and device - Google Patents

Video image processing method and device Download PDF

Info

Publication number
CN102638656A
CN102638656A CN2012101139991A CN201210113999A CN102638656A CN 102638656 A CN102638656 A CN 102638656A CN 2012101139991 A CN2012101139991 A CN 2012101139991A CN 201210113999 A CN201210113999 A CN 201210113999A CN 102638656 A CN102638656 A CN 102638656A
Authority
CN
China
Prior art keywords
angle value
rotation angle
angular range
terminal equipment
confirming
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012101139991A
Other languages
Chinese (zh)
Inventor
穆青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN2012101139991A priority Critical patent/CN102638656A/en
Publication of CN102638656A publication Critical patent/CN102638656A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)
  • Details Of Cameras Including Film Mechanisms (AREA)

Abstract

The invention discloses a video image processing method and device. By adopting the video image processing method and device, after a video shot by a terminal device equipped with a gravity sensor is saved, when the video is re-played by any terminal, images in front display can be viewed without rotation. The method comprises the following steps of: getting an angle value through the gravity sensor arranged in the terminal device, wherein the angle value represents the angle of the terminal device relative to the horizontal direction or the vertical direction; determining a rotation angle value according to the angle value; and rotating the video images obtained by the terminal device through the shooting function according to the rotation angle value, and then saving the video images. The invention simultaneously discloses a video image processing device.

Description

A kind of method of video image processing and device
Technical field
The present invention relates to electronic technology field, relate in particular to a kind of method of video image processing and device.
Background technology
Along with developing rapidly of intelligent terminal, for meeting consumers' demand, the function of intelligent terminal is more and more, the function of intelligent terminal system also from strength to strength, especially as one of operating system of the most popular intelligent terminal Android system.
On existing Android2.3 basic version owing to increased the gravity sensor function, can so that terminal equipment from the photo of any angle shot, the image that shows at terminal equipment does not rotate with the rotation of camera.In at present a lot of middle and high end smart mobile phones and the panel computer gravity sensor is installed all; Gravity sensor is at the terminal equipment traverse with when placing conversion vertically; Screen all can rotate automatically, so that no matter the user is at the terminal equipment traverse or when placing vertically, images displayed all is positive.
Yet preserve the video image of shooting acquisition in reality after; When on PC (PC), watching; The photo or the video that only when the angle of intelligent terminal and acceleration of gravity is 0 °, take to obtain can be watched in the front, and the ability front is watched after the rotation that photo of taking during for the angle non-zero of intelligent terminal and acceleration of gravity or video need carry out respective angles.
For example; The video that smart mobile phone is taken when the angle of acceleration of gravity is 0 ° is preserved the back when on PC, playing, artificial upright in the images displayed; And the video that smart mobile phone is taken when the angle of acceleration of gravity is 90 °; Preserve the back when on PC, playing, the people in the images displayed but is a recumbency, need carry out can watching in the front after the rotation of 90 ° or 270 °.
This just makes the video image that adopts the intelligent terminal shooting after preservation, if on the terminal that does not have gravity sensor, play, can not watch the video of broadcast from the front, for follow-up use brings very big inconvenience.
Summary of the invention
The present invention provides a kind of method of video image processing and device, with so that video that the terminal equipment of gravity sensor takes is installed after preservation, when play once more at the terminal arbitrarily, all need not rotation and can watch positive images displayed.
The concrete technical scheme that the embodiment of the invention provides is following:
A kind of method of video image processing comprises:
Gravity sensor through being arranged in the terminal equipment obtains angle value, and said angle value characterizes the angle of said terminal equipment with respect to level or vertical direction;
Confirm rotation angle value according to said angle value;
The video image that shoot function through said terminal equipment is obtained according to said rotation angle value is rotated the back preservation.
A kind of video image processing device comprises:
First processing unit is used for obtaining angle value through the gravity sensor that is arranged in the terminal equipment, and said angle value characterizes the angle of said terminal equipment with respect to level or vertical direction;
Second processing unit is used for confirming rotation angle value according to said angle value;
The 3rd processing unit is used for being rotated the back according to the video image that said rotation angle value is obtained the shoot function through said terminal equipment and preserves.
Based on technique scheme; In the embodiment of the invention; The terminal equipment that gravity sensor is installed is confirmed rotation angle value according to this angle after obtaining angle value, the video image that according to this rotation angle value the shoot function through terminal equipment is obtained again is rotated the back and preserves; Thereby make that the video file of preservation is the postrotational positive video file that shows, the video file after the preservation is play to need not to rotate on any terminal and is positive the demonstration.
Description of drawings
Fig. 1 is a method of video image processing flow chart in the embodiment of the invention;
Fig. 2 is a concrete sketch map of preserving capture video in the embodiment of the invention;
Fig. 3 is another concrete sketch map of preserving capture video in the embodiment of the invention;
Fig. 4 is a video image processing device structure chart in the embodiment of the invention.
Embodiment
In order to make video that terminal equipment that gravity sensor is installed takes after preservation, when play once more at the terminal arbitrarily, all need not rotation and can watch positive images displayed, the embodiment of the invention provides a kind of method of video image processing and device.
Below in conjunction with accompanying drawing the preferred embodiment of the present invention is elaborated.
The method that the embodiment of the invention provides goes for any terminal equipment that gravity sensor is installed, and is particularly useful for adopting the intelligent terminal of Android platform, is that example specifies with high pass 7630,8660 only in following examples.
Shown in accompanying drawing 1, in the embodiment of the invention, the detailed method flow process of carrying out the video image processing is following:
Step 101: the gravity sensor through being arranged in the terminal equipment obtains angle value, and angle value characterizes the angle of terminal equipment with respect to level or vertical direction.
In the intelligent terminal that adopts the Android system platform; The parameter that the Android system reports according to the gravity sensor that is provided with on the intelligent terminal can intelligent terminal with respect to angle value preset and datum line, this datum line can be that horizontal line also can be a vertical curve.Particularly, the angle value that obtains is the angle with respect to horizontal direction, still is equivalent to the angle of vertical direction, can confirm according to concrete gravity sensor.
Preferably, the angle value that obtains through gravity sensor is the angle with respect to the acceleration direction.
In the practical application, the Android system monitors the angle value that gravity sensor reports in real time.
Step 102: confirm rotation angle value according to angle value.
Preferably, when confirming rotation angle value, confirm earlier the angular range under the angle value, obtain preset and the corresponding rotation angle value of this scope again according to angle value.
For example, be 0 ° of angle with the acceleration direction, video image is turned clockwise reaches 0 ° of angle after definite rotation angle value.
Again for example, be to the right 0 ° of angle with level, video image is turned clockwise reaches 0 ° of angle after definite rotation angle value.
Be angle or be left the situation of angle for the acceleration rightabout, can analogize in view of the above, repeat no more at this with level.
In concrete a realization, preset four angular ranges, the angle that gravity sensor reports belongs to one of these four angular ranges, to the preset corresponding rotation angle value of each angular range.
Particularly, when confirming that angle value belongs to first angular range, obtain preset first rotation angle value corresponding with first angular range;
When confirming that angle value belongs to second angular range, obtain preset second rotation angle value corresponding with second angular range;
When confirming that angle value belongs to angular extent, obtain preset three rotation angle value corresponding with angular extent;
When confirming that angle value belongs to the 4th angular range, obtain preset four rotation angle value corresponding with the 4th angular range.
In a preferable realization, first angular range is 0 °≤angle value<45 ° or 315 °<angle value≤360 °, and first rotation angle value that this angular range is corresponding is 0 °; Second angular range is 45 °≤angle value<135 °, and second rotation angle value that this angular range is corresponding is 90 °; Angular extent is 135 °≤angle value<225 °, and the 3rd rotation angle value that this angular range is corresponding is 180 °; The 4th angular range is 225 °≤angle value<315 °, and the 4th rotation angle value that this angular range is corresponding is 270 °.
For example; Shown in accompanying drawing 2; When the shoot function of smart mobile phone started, the angle value that monitoring acquisition gravity sensor reports was 10 °, confirms that according to this angle value corresponding rotation angle value is 0 °; The video image that then shooting is obtained directly saves as video file, and the resolution of this video file is 640*480; Shown in accompanying drawing 3; When the shoot function of smart mobile phone starts; The angle value that monitoring acquisition gravity sensor reports is 80 °; Confirm that according to this angle value corresponding rotation angle value is 90 °, the every frame video image that then shooting is obtained turns clockwise and saves as video file, the resolution 480*640 of this video file after 90 °.
Step 103: the video image that the shoot function through terminal equipment is obtained according to rotation angle value is rotated the back preservation.
Preferably; Terminal equipment is when detecting the camera function startup; Obtain the current angle value that reports of gravity sensor; According to the rotation angle value that this angle value confirms to take the video that obtains, in case confirm this rotation angle value, every frame video image that whole shooting process obtained saves as video file after all being rotated according to this rotation angle value.
That is to say; Can only when taking beginning, confirm rotation angle value; Each frame video image that obtains in the whole shooting process saves as video file after all being rotated according to this rotation angle value; Even change has taken place the shooting angle of terminal equipment in shooting process, also confirm rotation angle value no longer again.
Based on above-mentioned principle; Shown in accompanying drawing 4; The embodiment of the invention also provides a kind of video image processing device, and this device is arranged on the terminal equipment that comprises gravity sensor, and the operation principle of this device is similar with the principle of above-mentioned preservation capture video method; Something in common repeats no more here, and this device mainly comprises following processing unit:
First processing unit 401 is used for obtaining angle value through the gravity sensor that is arranged in the terminal equipment, and angle value characterizes the angle of this terminal equipment with respect to level or vertical direction;
Second processing unit 402 is used for confirming rotation angle value according to angle value;
The 3rd processing unit 403 is used for being rotated the back according to the video image that rotation angle value is obtained the shoot function through terminal equipment and preserves.
Wherein, second processing unit 402 specifically is used for confirming the angular range under the angle value, obtains preset and the corresponding rotation angle value of this scope.
Wherein, when second processing unit 402 is used for specifically confirming that angle value belongs to first angular range, obtain preset first rotation angle value corresponding with first angular range;
When confirming that angle value belongs to second angular range, obtain preset second rotation angle value corresponding with second angular range;
When confirming that angle value belongs to angular extent, obtain preset three rotation angle value corresponding with angular extent;
When confirming that angle value belongs to the 4th angular range, obtain preset four rotation angle value corresponding with the 4th angular range.
Preferably, first angular range is [0 a °, 45 °) or (315 °, 360 °], and first rotation angle value is 0 °; Second angular range be [45 °, 135 °), second rotation angle value is 90 °; Angular extent be [135 °, 225 °), the 3rd rotation angle value is 180 °; The 4th angular range be [225 °, 315 °), the 4th rotation angle value is 270 °.
Wherein, first processing unit 401 specifically is used for when the camera function that detects terminal equipment starts, obtaining angle value through gravity sensor.
Based on above-mentioned principle, the present invention also provides a kind of terminal equipment, comprises gravity sensor, also comprises above-mentioned video image processing device.
Based on technique scheme; In the embodiment of the invention; Through being arranged at after gravity sensor in the terminal equipment obtains angle value, confirm rotation angle value according to this angle, the video image that according to this rotation angle value the shoot function through terminal equipment is obtained again is rotated the back and preserves; Thereby make that the video file of preservation is the postrotational positive video file that shows, the video file after the preservation is play to need not to rotate on any terminal and is positive the demonstration.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. a method of video image processing is characterized in that, comprising:
Gravity sensor through being arranged in the terminal equipment obtains angle value, and said angle value characterizes the angle of said terminal equipment with respect to level or vertical direction;
Confirm rotation angle value according to said angle value;
The video image that shoot function through said terminal equipment is obtained according to said rotation angle value is rotated the back preservation.
2. the method for claim 1 is characterized in that, confirms rotation angle value according to said angle value, comprising:
Confirm the angular range under the said angle value, obtain preset and the corresponding rotation angle value of said scope.
3. method as claimed in claim 2 is characterized in that, confirms the angular range under the said angle value, obtains preset and the corresponding rotation angle value of said scope, comprising:
When confirming that said angle value belongs to first angular range, obtain preset first rotation angle value corresponding with first angular range;
When confirming that said angle value belongs to second angular range, obtain preset second rotation angle value corresponding with second angular range;
When confirming that said angle value belongs to angular extent, obtain preset three rotation angle value corresponding with angular extent;
When confirming that said angle value belongs to the 4th angular range, obtain preset four rotation angle value corresponding with the 4th angular range.
4. method as claimed in claim 3 is characterized in that, said first angular range is [0 a °, 45 °) or (315 °, 360 °], and said first rotation angle value is 0 °;
Said second angular range be [45 °, 135 °), said second rotation angle value is 90 °;
Said angular extent be [135 °, 225 °), said the 3rd rotation angle value is 180 °;
Said the 4th angular range be [225 °, 315 °), said the 4th rotation angle value is 270 °.
5. like each described method of claim 1-4, it is characterized in that, when the camera function that detects said terminal equipment starts, obtain angle value through gravity sensor.
6. a video image processing device is characterized in that, comprising:
First processing unit is used for obtaining angle value through the gravity sensor that is arranged in the terminal equipment, and said angle value characterizes the angle of said terminal equipment with respect to level or vertical direction;
Second processing unit is used for confirming rotation angle value according to said angle value;
The 3rd processing unit is used for being rotated the back according to the video image that said rotation angle value is obtained the shoot function through said terminal equipment and preserves.
7. device as claimed in claim 6 is characterized in that, said second processing unit specifically is used for confirming the angular range under the said angle value, obtains preset and the corresponding rotation angle value of said scope.
8. device as claimed in claim 7 is characterized in that, when said second processing unit is used for specifically confirming that said angle value belongs to first angular range, obtains preset first rotation angle value corresponding with first angular range;
When confirming that said angle value belongs to second angular range, obtain preset second rotation angle value corresponding with second angular range;
When confirming that said angle value belongs to angular extent, obtain preset three rotation angle value corresponding with angular extent;
When confirming that said angle value belongs to the 4th angular range, obtain preset four rotation angle value corresponding with the 4th angular range.
9. device as claimed in claim 8 is characterized in that, said first angular range is [0 a °, 45 °) or (315 °, 360 °], and said first rotation angle value is 0 °;
Said second angular range be [45 °, 135 °), said second rotation angle value is 90 °;
Said angular extent be [135 °, 225 °), said the 3rd rotation angle value is 180 °;
Said the 4th angular range be [225 °, 315 °), said the 4th rotation angle value is 270 °.
10. like each described device of claim 6-9, it is characterized in that said first processing unit specifically is used for when the camera function that detects said terminal equipment starts, obtaining angle value through gravity sensor.
CN2012101139991A 2012-04-18 2012-04-18 Video image processing method and device Pending CN102638656A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101139991A CN102638656A (en) 2012-04-18 2012-04-18 Video image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101139991A CN102638656A (en) 2012-04-18 2012-04-18 Video image processing method and device

Publications (1)

Publication Number Publication Date
CN102638656A true CN102638656A (en) 2012-08-15

Family

ID=46622882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101139991A Pending CN102638656A (en) 2012-04-18 2012-04-18 Video image processing method and device

Country Status (1)

Country Link
CN (1) CN102638656A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103037103A (en) * 2012-12-21 2013-04-10 广东欧珀移动通信有限公司 Method of starting camera by mobile device
CN104166500A (en) * 2014-08-12 2014-11-26 Tcl通讯(宁波)有限公司 Method, system and terminal for providing reference coordinate systems in lens image
CN104333621A (en) * 2014-11-06 2015-02-04 广东欧珀移动通信有限公司 Mobile terminal and camera shooting method and device thereof
CN105468149A (en) * 2015-11-19 2016-04-06 广东小天才科技有限公司 Method and system for controlling camera to carry out rotary shooting and smart watch
WO2017096876A1 (en) * 2015-12-11 2017-06-15 乐视控股(北京)有限公司 Method and device for adjusting panoramic video, and mobile terminal
CN107592446A (en) * 2016-07-06 2018-01-16 腾讯科技(深圳)有限公司 A kind of method of video image processing, apparatus and system
CN107613143A (en) * 2017-10-20 2018-01-19 深圳市普天宜通技术股份有限公司 A kind of video rotational display method, storage device and mobile terminal
CN107995439A (en) * 2016-10-27 2018-05-04 中兴通讯股份有限公司 A kind of video capture, broadcasting, processing method, photo terminal
CN111201772A (en) * 2017-10-09 2020-05-26 深圳传音通讯有限公司 Video recording method, device and terminal
CN112364868A (en) * 2020-12-08 2021-02-12 共道网络科技有限公司 Rotation correction method and device for electronic file

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798260A (en) * 2004-12-22 2006-07-05 乐金电子(昆山)电脑有限公司 Equipment of shooting tool with sensing tools build in, and method for regenerating image plane
CN101068309A (en) * 2007-05-24 2007-11-07 中兴通讯股份有限公司 Method and device for automatic rotating mobile terminal camera head shooting results
CN102065183A (en) * 2010-12-31 2011-05-18 惠州Tcl移动通信有限公司 Mobile phone and image pickup processing method thereof
CN202166986U (en) * 2011-08-03 2012-03-14 深圳市顶星数码网络技术有限公司 Electronic device with function of automatically rotating screen

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798260A (en) * 2004-12-22 2006-07-05 乐金电子(昆山)电脑有限公司 Equipment of shooting tool with sensing tools build in, and method for regenerating image plane
CN101068309A (en) * 2007-05-24 2007-11-07 中兴通讯股份有限公司 Method and device for automatic rotating mobile terminal camera head shooting results
CN102065183A (en) * 2010-12-31 2011-05-18 惠州Tcl移动通信有限公司 Mobile phone and image pickup processing method thereof
CN202166986U (en) * 2011-08-03 2012-03-14 深圳市顶星数码网络技术有限公司 Electronic device with function of automatically rotating screen

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103037103A (en) * 2012-12-21 2013-04-10 广东欧珀移动通信有限公司 Method of starting camera by mobile device
CN104166500A (en) * 2014-08-12 2014-11-26 Tcl通讯(宁波)有限公司 Method, system and terminal for providing reference coordinate systems in lens image
CN104333621A (en) * 2014-11-06 2015-02-04 广东欧珀移动通信有限公司 Mobile terminal and camera shooting method and device thereof
CN105468149A (en) * 2015-11-19 2016-04-06 广东小天才科技有限公司 Method and system for controlling camera to carry out rotary shooting and smart watch
CN105468149B (en) * 2015-11-19 2019-02-22 广东小天才科技有限公司 A kind of control camera carries out method, system and the smartwatch of rotary taking
WO2017096876A1 (en) * 2015-12-11 2017-06-15 乐视控股(北京)有限公司 Method and device for adjusting panoramic video, and mobile terminal
CN107592446A (en) * 2016-07-06 2018-01-16 腾讯科技(深圳)有限公司 A kind of method of video image processing, apparatus and system
CN107592446B (en) * 2016-07-06 2020-06-05 腾讯科技(深圳)有限公司 Video image processing method, device and system
CN107995439A (en) * 2016-10-27 2018-05-04 中兴通讯股份有限公司 A kind of video capture, broadcasting, processing method, photo terminal
CN111201772A (en) * 2017-10-09 2020-05-26 深圳传音通讯有限公司 Video recording method, device and terminal
CN107613143A (en) * 2017-10-20 2018-01-19 深圳市普天宜通技术股份有限公司 A kind of video rotational display method, storage device and mobile terminal
CN107613143B (en) * 2017-10-20 2020-05-01 深圳市普天宜通技术股份有限公司 Video rotation display method, storage device and mobile terminal
CN112364868A (en) * 2020-12-08 2021-02-12 共道网络科技有限公司 Rotation correction method and device for electronic file

Similar Documents

Publication Publication Date Title
CN102638656A (en) Video image processing method and device
CN106249918B (en) Virtual reality image display method and device and terminal equipment applying same
EP2672360A3 (en) Mobile communication terminal for providing augmented reality service and method of changing into augmented reality service screen
CN108038825B (en) Image processing method and mobile terminal
EP2395765A3 (en) Storage medium having stored therein stereoscopic image display program, stereoscopic image display device, stereoscopic image display system, and stereoscopic image display method
CN105120251A (en) 3D scene display method and device
EP2529810A3 (en) Information processing system, information processing device, information processing program, and moving image reproduction control method
WO2012049674A3 (en) Network-based real time registered augmented reality for mobile devices
CN103885593A (en) Handheld terminal and screen anti-shake method and device of handheld terminal
CN103763483A (en) Method and device for shaking resistance in photo taking process of mobile terminal and mobile terminal
US20140375698A1 (en) Method for adjusting display unit and electronic device
CN103795892A (en) Method and apparatus for processing collected image data
CN103795919B (en) Image processing method and camera terminal
US20230056036A1 (en) Method and device for generating a panoramic image
CN105721739B (en) Anti-shaking system and method for screen image
EP2680567A1 (en) Video noise reduction
WO2016054945A1 (en) Display method and apparatus for terminal display interface
CN105718232A (en) Display method and display device of arbitrary angle plane rotation
CN104731541A (en) Control method, electronic devices and system
CN103245337A (en) Method for acquiring position of mobile terminal, mobile terminal and position detection system
US10750080B2 (en) Information processing device, information processing method, and program
CN106383577B (en) Scene control implementation method and system for VR video playing device
EP2613520A3 (en) Apparatus and method of displaying camera view area in portable terminal
CN104427123A (en) Information processing method and electronic equipment
CN202836578U (en) Panoramic video map navigation system

Legal Events

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

Application publication date: 20120815