CN103873693B - Method and mobile terminal for automatically correcting photo shooting angle according to gravitational acceleration - Google Patents

Method and mobile terminal for automatically correcting photo shooting angle according to gravitational acceleration Download PDF

Info

Publication number
CN103873693B
CN103873693B CN201410110337.8A CN201410110337A CN103873693B CN 103873693 B CN103873693 B CN 103873693B CN 201410110337 A CN201410110337 A CN 201410110337A CN 103873693 B CN103873693 B CN 103873693B
Authority
CN
China
Prior art keywords
angle
axis
mobile terminal
shooting
initial
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
Application number
CN201410110337.8A
Other languages
Chinese (zh)
Other versions
CN103873693A (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.)
Weihai high tech Park Operation Management Co.,Ltd.
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201410110337.8A priority Critical patent/CN103873693B/en
Publication of CN103873693A publication Critical patent/CN103873693A/en
Application granted granted Critical
Publication of CN103873693B publication Critical patent/CN103873693B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The invention discloses a method and mobile terminal for automatically correcting a photo shooting angle according to gravitational acceleration. The method includes the steps that A, the mobile terminal receives an operation instruction of a user to enter a photo shooting mode, meanwhile starts the automatic correcting function and automatically records the shooting angle of the mobile terminal in the photo shooting process; B, the deflection angle between the shooting angle of the mobile terminal in the photo shooting process and a preset initial angle is calculated; C, when photos are previewed, the mobile terminal automatically rotates the previewed photos to the preset initial angle of the mobile terminal according to the deflection angle. The method that the gravitational acceleration g is taken as the reference direction, the deflection angle when the mobile terminal shoots the photos is automatically recorded, and when previewed, the photos are retrograde rotated to the initial angle according to the deflection angle is adopted. Through the method, the rotation angles of the photos can be corrected automatically, shooting is not limited by the shooting angle and can be achieved at multiple angles freely, the shooting difficulty is reduced, and the expectant shooting effect can be achieved easily.

Description

According to acceleration of gravity from method and the mobile terminal of dynamic(al) correction photograph taking angle
Technical field
The field the present invention relates to mobile terminal is taken pictures, more particularly to one kind according to acceleration of gravity from dynamic(al) correction photograph taking The method of angle.
Background technology
With the popularization of the portable mobile termianls such as smart mobile phone, panel computer, its various application of function is also wide Welcome, wherein camera function is one of the most frequently used function of most important of which.But during taking pictures, due to placing not Stable or hand-held angle problem, or want situations such as reaching certain shooting effect, mobile terminal exist when shooting and certain incline Rake angle.In this case the photograph for shooting can only rotate in preview, at present 0 degree, 90 degree, the fixed angle such as 180 degree enter, And can be rotated according to inclination angle when shooting automatically.Meanwhile, it is to ensure that captured photo is not inclined, user need to be use up when taking pictures It is possible to make photographing device holding and horizon horizontally or vertically state, it is impossible to freely to be shot with arbitrarily angled.But, due to handss Holding equipment does not have fixed mount, and user's both hands need to be leaned on to remain stable, so the angle for shooting still can be subject to shadow to a certain extent Ring, it is difficult to produce a desired effect.
The content of the invention
The technical problem to be solved in the present invention is, for the drawbacks described above of prior art, there is provided one kind adds according to gravity Method of the speed from dynamic(al) correction photograph taking angle.The method passes through acceleration of gravity direction for reference direction, and adjust automatically is shone Piece angle of inclination, is no longer affected by shooting angle, user can Multi-angle free shoot, reduce shooting difficulty, user can be light Shooting effect expected from the realization of pine.
The technical proposal for solving the technical problem of the invention is as follows:
It is a kind of according to acceleration of gravity from the method for dynamic(al) correction photograph taking angle, wherein, comprise the following steps:
A, the operational order of mobile terminal receive user enter Photographing Mode, while zero offset capability is opened, and automatically Shooting angle residing for mobile terminal when record is taken pictures;
Deflection angle when B, calculating are taken pictures residing for mobile terminal between shooting angle and initial angle set in advance;
When C, previewing photos, previewing photos are rotated automatically advance to mobile terminal by mobile terminal according to the deflection angle The initial angle of setting.
It is described it is a kind of according to acceleration of gravity from the method for dynamic(al) correction photograph taking angle, wherein, in step B also Including step:
B1:Setting initial position the corresponding initial angle of automatic storage;
B2:Calculate and record the deflection angle between residing shooting angle and initial angle when mobile terminal is taken pictures.
It is described it is a kind of according to acceleration of gravity from the method for dynamic(al) correction photograph taking angle, it is characterised in that the bat Angle and initial angle is taken the photograph, wherein described angle is represented by way of rectangular coordinate system in space, specially:With parallel to institute It is positive for X-axis to the right to state mobile terminal screen up-and-down boundary level, parallel to the mobile terminal screen right boundary vertically to It is upper for Z axis it is positive, it is outwards positive for Y-axis along mobile terminal screen perpendicular to X-axis, Z axis, set up rectangular coordinate system in space, and with Gravity acceleration g is reference direction.
It is described it is a kind of according to acceleration of gravity from the method for dynamic(al) correction photograph taking angle, wherein, the X-axis, Y-axis, Z Angle vector between axle and gravity acceleration g is shooting angle.
It is described it is a kind of according to acceleration of gravity from the method for dynamic(al) correction photograph taking angle, wherein, when mobile terminal it is perpendicular Straight to place, the X-axis is horizontal, and the Y-axis vertical screen is outside, when the Z axis are overlapped with g, the mobile terminal In initial position, the X-axis, Y-axis, the angle vector of Z axis relative gravity acceleration g are initial angle.
It is described it is a kind of according to acceleration of gravity from the method for dynamic(al) correction photograph taking angle, wherein, the step B2 tool Body is:When taking pictures, mobile terminal obtains the angle vector of X-axis, Y-axis, Z axis with respect to g automatically, and calculates the angle vector relatively just The deflection angle vector of beginning angle, by the storage deflection angle vector corresponding with photo.
It is described it is a kind of according to acceleration of gravity from the method for dynamic(al) correction photograph taking angle, wherein, the deflection angle Vector is that mobile terminal is returned the angle vector that initial angle need to rotate from shooting angle counter-rotating.
It is described it is a kind of according to acceleration of gravity from the method for dynamic(al) correction photograph taking angle, wherein, according to space right-angle Coordinate system right-hand rule, when mobile terminal is in initial position, the positive and negative semiaxis of X-axis, Y-axis, Z axis is relative to gravity acceleration g Initial angle, be recited as by (x, y, z)(90,90,180).
It is a kind of according to acceleration of gravity from the method for dynamic(al) correction photograph taking angle, wherein, step C is specially: When user's previewing photos, mobile terminal can according to shoot when record X-axis, Y-axis, Z axis relative to initial position deflection Angle, is about to certainly photo counter-rotating to initial angle, and shows postrotational photo in preview.
A kind of mobile terminal, wherein, including:
Receiving record module, the operational order for controlling mobile terminal receive user enter Photographing Mode, while opening Zero offset capability, and shooting angle residing for mobile terminal when record is taken pictures automatically;
Calculate processing module, for calculate take pictures when shooting angle residing for mobile terminal and initial angle set in advance it Between deflection angle;
Photograph preview processing module, during for previewing photos, control mobile terminal automatically will be pre- according to the deflection angle Photo of looking at rotates initial angle set in advance to mobile terminal.
It is provided by the present invention it is a kind of according to acceleration of gravity from the method for dynamic(al) correction photograph taking angle, as a result of Reference direction is used as by gravity acceleration g, deflection angle when record mobile terminal shoots automatically, according to this during photo preview Initial angle is returned in deflection angle counter-rotating.With it, can no longer receive from the anglec of rotation of dynamic(al) correction photo during preview The restriction of shooting angle, user can Multi-angle free shoot, reduce shooting difficulty, user can easily achieve expected shooting Effect.
Description of the drawings
Fig. 1 be the present invention it is a kind of according to acceleration of gravity from the method implementing procedure figure of dynamic(al) correction photograph taking angle.
Fig. 2 be the present invention it is a kind of according to acceleration of gravity from the embodiment of the method for dynamic(al) correction photograph taking angle, mobile phone Initial position schematic diagram.
Fig. 3 is the Geometric Modeling schematic diagram of correspondence Fig. 2.
Fig. 4 be the present invention it is a kind of according to acceleration of gravity from the embodiment of the method for dynamic(al) correction photograph taking angle, mobile phone 45 ° of schematic diagrams are inclined to the right clockwise.
Fig. 5 is the Geometric Modeling schematic diagram of correspondence Fig. 4.
Fig. 6 be the present invention it is a kind of according to acceleration of gravity from the embodiment of the method for dynamic(al) correction photograph taking angle, mobile phone 135 ° of schematic diagrams are inclined to the right clockwise.
Fig. 7 is the Geometric Modeling schematic diagram of correspondence Fig. 6.
Fig. 8 be the present invention it is a kind of according to acceleration of gravity from the embodiment of the method for dynamic(al) correction photograph taking angle, mobile phone Incline 90 ° of schematic diagrams to the left counterclockwise.
Fig. 9 is the Geometric Modeling schematic diagram of correspondence Fig. 8.
Figure 10 be the present invention it is a kind of according to acceleration of gravity from the embodiment of the method for dynamic(al) correction photograph taking angle, mobile phone Tilt backwards 45 ° of schematic diagrams.
Figure 11 is the Geometric Modeling schematic diagram of correspondence Figure 10.
Figure 12 be it is a kind of with the present invention according to acceleration of gravity from the corresponding shifting of the method for dynamic(al) correction photograph taking angle The functional schematic block diagram of dynamic terminal.
Specific embodiment
For making the objects, technical solutions and advantages of the present invention clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings The present invention is further described.It should be appreciated that specific embodiment described herein is only to explain the present invention, and without It is of the invention in limiting.
The embodiment of the present invention provided it is a kind of according to acceleration of gravity from the method for dynamic(al) correction photograph taking angle, such as scheme Shown in 1, comprise the following steps:
Step S100, the operational order of mobile terminal receive user enter Photographing Mode, while zero offset capability is opened, And shooting angle residing for mobile terminal when record is taken pictures automatically.
The embodiment of the present invention need to record shooting angle residing for mobile terminal when taking pictures when starting to take pictures into exposal model.
Deflection when step S200, calculating are taken pictures residing for mobile terminal between shooting angle and initial angle set in advance Angle.
In this step, need first to set initial position the corresponding initial angle of automatic storage;Then calculate and record Deflection angle when mobile terminal is taken pictures between residing shooting angle and initial angle.
Wherein, the shooting angle is angle residing when mobile terminal shoots, and initial angle is traditionally arranged to be vertically In the angle on ground, wherein described angle is represented by way of rectangular coordinate system in space, specially:With parallel to the shifting Dynamic terminal screen up-and-down boundary level is positive for X-axis to the right, is Z straight up parallel to the mobile terminal screen right boundary Axle is positive, outwards positive for Y-axis along mobile terminal screen perpendicular to X-axis, Z axis, sets up rectangular coordinate system in space, and is added with gravity Speed g is reference direction, i.e., described X-axis, the angle vector between Y-axis, Z axis and gravity acceleration g are shooting angle.
The described initial angle of certain but this enforcement is not limited to the angle perpendicular to ground can be with the custom according to user Arrange.
When step S300, previewing photos, mobile terminal is rotated previewing photos to movement automatically according to the deflection angle Terminal initial angle set in advance.
In order to it is clearer explain the present invention, mobile terminal of the present invention in the present embodiment will by taking mobile phone as an example, Model space geometric is set up with reference to rectangular coordinate system in space.
Set up space multistory geometric model for convenience, in the embodiment of the present invention by the mobile phone be abstracted as one it is square Direction sensing device, as shown in Fig. 2-Fig. 3, is abstracted as 1 point of O inside square, and is built as zero with point O by body Vertical rectangular coordinate system in space.Wherein with positive as X-axis to the right parallel to 110 level of mobile terminal screen upper and lower side frame, put down Row is positive for Z axis straight up in the mobile terminal screen left and right side frame 120, perpendicular to X-axis, Z axis along mobile terminal screen It is positive for Y-axis inwards, rectangular coordinate system in space is set up, and with gravity acceleration g as reference direction.
Further, when user is taken pictures, X-axis, Y-axis, Z axis and gravity described in corresponding space multistory geometric model Angle between acceleration g is shooting angle.
Mobile phone is opened according to step A to enter exposal model and open automatic Proofreading function;
Into step B1, set when mobile phone is vertically placed, the X-axis is horizontal, the Y-axis vertical screen to Outward, when the Z axis are overlapped with g, the mobile phone is in initial position, the X-axis, Y-axis, the angle of Z axis relative gravity acceleration g For initial angle.Other positions can certainly be taken as initial position, this will be set according to the custom of different user.
According to rectangular coordinate system in space right-hand rule, when vector is rotated clockwise angle be negative value, rotate counterclockwise When be on the occasion of.Coordinate axess X, Y, Z positive axis is denoted as with respect to the angle vector of g(x,y,z), half is in initial position when the mobile phone When, now Z axis are overlapped with acceleration of gravity direction.X positive axis be gravity acceleration g in XOZ planes along rotate counterclockwise 90°(Or turn clockwise 270 °), it is denoted as 90.Y positive axis be g in the YOZ planes along 90 ° of rotate counterclockwise(Or dextrorotation Turn 270 °), it is denoted as 90.Z positive axis be g in the XOZ planes along 180 ° of rotate counterclockwise(Or turn clockwise 180 °), it is denoted as 180.Initial angle of coordinate axess X, Y, Z positive axis relative to gravity acceleration g, is recited as angle vector a by (x, y, z)(90, 90,180).Record mobile terminal angle residing when taking pictures is obtained through rotation all on the basis of this initial angle.
Further, if mobile phone vertically take pictures to the right by any rotation, here as a example by 45 ° to the right, such as Fig. 4-Fig. 5 institutes Show, i.e., square turns clockwise 45 ° around Y-axis(Or 315 ° of rotate counterclockwise).Now X positive axis exists for gravity acceleration g Along 45 ° of rotate counterclockwise in XOZ planes(Or turn clockwise 315 °), it is denoted as 45.Y-axis does not change relative to g angles, is denoted as 90.Z positive axis be g in the XOZ planes along 135 ° of rotate counterclockwise(Or turn clockwise 225 °), it is denoted as 135.Now coordinate axess Angle of X, Y, Z positive axis relative to gravity acceleration g, is recited as angle vector b by (x, y, z)(45,90,135).Angle is sweared Amount b(45,90,135)Relative to angle vector a(90,90,180)Deflection angle is deflection angle vector b 1(45,0,45).According to Step B2, when taking pictures, present position during system automatic detection mobile phone photograph, i.e. angle vector b(45,90,135), and calculate Relative to initial position angle vector a(90,90,180)Deflection angle vector b 1(45,0,45), and by deflection angle vector b1(45,0,45)With taken a picture corresponding storage.When user's preview photo, according to step C, system is according to corresponding deflection Angle vector b 1(45,0,45), by the photo counter-rotating, will photo around 45 ° of Y-axis rotate counterclockwise on screen show Show.
If mobile phone vertically take pictures to the right by any rotation, here as a example by 135 ° to the right, as Figure 6-Figure 7, i.e., just Cube turns clockwise 135 ° around Y-axis(Or 225 ° of rotate counterclockwise).Now X positive axis is that gravity acceleration g is flat in XOZ 45 ° are rotated clockwise in face(Or 315 ° of rotate counterclockwise), it is denoted as -45.Y-axis does not change relative to g angles, is denoted as 90.Z Positive axis be g in the XOZ planes along 45 ° of rotate counterclockwise(Or turn clockwise 315 °), it is denoted as 45.Now coordinate axess X, Y, Z Angle of the positive axis relative to gravity acceleration g, is recited as angle vector C by (x, y, z)(- 45,90,45).Angle vector C(- 45,90,45)Relative to angle vector a(90,90,180)Deflection angle is angle vector C 1(135,0,135).According to step B2, when taking pictures, present position during system automatic detection mobile phone photograph, i.e. angle vector C(- 45,90,45), and calculate relative In the deflection angle vector C 1 of initial position angle vector a(135,0,135), and deflection angle vector C 1 is right with taken a picture Should store.When user's preview photo, according to step C, system is according to corresponding deflection angle vector C 1(135,0,135), By the photo counter-rotating, will photo show on screen around 135 ° of Y-axis rotate counterclockwise.
In the same manner, if mobile phone vertically take pictures to the left by any rotation, here as a example by 90 ° to the left, i.e. mobile phone upper end is on a left side When right laterally disposed, as illustrated in figs. 8-9, i.e., square surrounds 90 ° of Y-axis rotate counterclockwise for lower end(Or turn clockwise 270°).Now X positive axis be gravity acceleration g in the XOZ planes along 180 ° of rotate counterclockwise(Or 180 ° of rotate counterclockwise), It is denoted as 180.Y-axis does not change relative to g angles, is denoted as 90.Z positive axis rotates clockwise 90 ° for g in XOZ planes(Or 270 ° of rotate counterclockwise), it is denoted as -90.Now angle of coordinate axess X, Y, Z positive axis relative to gravity acceleration g, by (x, y, Z) it is recited as angle vector d(180,90, -90).Angle vector d(180,90, -90)Relative to angle vector a(90,90,180) Deflection angle is angle vector d1(-90,0, -90)It is according to step B2, when taking pictures, residing during system automatic detection mobile phone photograph Position, i.e. angle vector d(180,90, -90), and calculate relative to initial position angle vector a(90,90,180)Deflection Angle vector d1(-90,0, -90), and by deflection angle vector d1(-90,0, -90)With taken a picture corresponding storage.When with During the family preview photo, according to step C, system is according to corresponding deflection angle vector d1(-90,0, -90), will be the photo inverse To rotation, will photo show on screen around 90 ° of Y-axis rotate counterclockwise.
If the vertical back rotation of mobile phone is arbitrarily angled taking pictures, here as a example by 45 ° backward, as shown in Figure 10-Figure 11, i.e., just Cube turns clockwise 45 ° around X-axis(Or 315 ° of rotate counterclockwise).Now X-axis does not change relative to g angles, is denoted as 90. Y positive axis 45 ° of rotate counterclockwise in the YOZ planes relative to g, is denoted as 45.Z positive axis is g rotate counterclockwises in the YOZ planes 45°(Or 270 ° of rotate counterclockwise), it is denoted as 45.Now coordinate axess X, Y, Z positive axis is pressed relative to the angle of gravity acceleration g (x, y, z) is recited as angle vector e(90,45,45).Angle vector e(90,45,45)Relative to angle vector a(90,90, 180)Deflection angle is angle vector e1(0,45, 45)According to step B2, when taking pictures, system automatic detection mobile phone photograph when institute Place position, i.e. angle vector e(90,45,45), and calculate relative to initial position angle vector a(90,90,180)Deflection Angle vector e1(0,45, 45), and by deflection angle vector e1(0,45, 45)With taken a picture corresponding storage.When user it is pre- Look at the photo when, according to step C, system is according to corresponding deflection angle vector e1(0,45, 45), by the photo counter-rotating, Will photo show on screen around 45 ° of X-axis rotate counterclockwise.
It should be noted that:When the present invention is embodied as, mobile phone tilts backwards 45 degree of angles and shoots different size articles or not With during article angle shot, the picture effect for presenting is different, and the effect requirements according to required for user, has but It is to recover original angle.But, some photographed scenes, when shooting the film of giant-screen projection when such as attending a lecture, mobile phone Tilt backwards certain angle shooting, then be necessary to be rotated during preview.In addition, the initial angle of the present invention is in fact not When must be that mobile phone is vertically placed, because its real user is in preview mobile phone, 45 degree of angles be usually tilted backwards, so, initially Position can be to be accustomed to what is changed according to user's preview.
Method of the present invention passes through acceleration of gravity direction for reference direction, adjust automatically photo angle of inclination, no Affected by shooting angle again, user can Multi-angle free shoot, reduce shooting difficulty, user can easily achieve expected Shooting effect.
Based on above-described embodiment present invention also offers a kind of mobile terminal, as shown in figure 12, including:
Receiving record module 410, the operational order for controlling mobile terminal receive user enter Photographing Mode, while opening Open zero offset capability, and shooting angle residing for mobile terminal when record is taken pictures automatically;As detailed above.
Processing module 420 is calculated, shooting angle residing for mobile terminal and initial angle set in advance when taking pictures for calculating Deflection angle between degree;As detailed above.
Photograph preview processing module 430, during for previewing photos, control mobile terminal automatically will according to the deflection angle Previewing photos rotate initial angle set in advance to mobile terminal;As detailed above.
In sum, in the present invention, anglec of rotation when mobile terminal is taken pictures is arbitrarily angled, and no matter mobile terminal is taken What angle is shot, the method for its automatic Proofreading photo anglec of rotation with the present embodiment at several angles for enumerating Reason principle is identical, in view of several shooting angle enumerated in the present embodiment have clearly illustrated the principle of the present invention, here is no longer Enumerate.
It is used as reference direction as a result of by gravity acceleration g, deflection angle when record mobile terminal shoots automatically Degree, returns initial angle according to this deflection angle counter-rotating during photo preview.With it, can shine from dynamic(al) correction during preview The anglec of rotation of piece, is no longer limited by shooting angle, user can Multi-angle free shoot, reduce shooting difficulty, Yong Huke Shooting effect expected from easily realizing.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, and for those of ordinary skills, can To be improved according to the above description or be converted, all these modifications and variations should all belong to the guarantor of claims of the present invention Shield scope.

Claims (6)

1. it is a kind of according to acceleration of gravity from the method for dynamic(al) correction photograph taking angle, it is characterised in that comprise the following steps:
A, the operational order of mobile terminal receive user enter Photographing Mode, while opening zero offset capability, and record automatically Shooting angle residing for mobile terminal when taking pictures;
Deflection angle when B, calculating are taken pictures residing for mobile terminal between shooting angle and initial angle set in advance;
When C, previewing photos, mobile terminal rotates previewing photos to mobile terminal according to the deflection angle automatically and presets Initial angle;The initial angle is arranged according to the custom of user;
Also include step in step B:
B1:Setting initial position the corresponding initial angle of automatic storage;
B2:Calculate and record the deflection angle between residing shooting angle and initial angle when mobile terminal is taken pictures;
The shooting angle and initial angle, wherein angle are represented by way of rectangular coordinate system in space, specially:With flat Row is positive for X-axis to the right in the mobile terminal screen up-and-down boundary level, parallel to the mobile terminal screen right boundary It is positive for Z axis straight up, it is outwards positive for Y-axis along mobile terminal screen perpendicular to X-axis, Z axis, set up rectangular space coordinate System, and with gravity acceleration g as reference direction;
The X-axis, the angle vector between Y-axis, Z axis and gravity acceleration g are shooting angle;
According to rectangular coordinate system in space right-hand rule, when vector is rotated clockwise, angle is negative value, during rotate counterclockwise is On the occasion of;Coordinate axess X, Y, Z positive axis is denoted as with respect to the angle vector of g(x,y,z), when the mobile terminal is in initial position When, now Z axis are overlapped with acceleration of gravity direction;X positive axis be gravity acceleration g in XOZ planes along rotate counterclockwise 90 ° turn clockwise 270 °, are denoted as 90;Y positive axis along 90 ° of rotate counterclockwise or turns clockwise in YOZ planes for g 270 °, it is denoted as 90;Z positive axis along 180 ° of rotate counterclockwise or turns clockwise 180 ° for g in XOZ planes, is denoted as 180;X Initial angle of the positive and negative semiaxis of axle, Y-axis, Z axis relative to gravity acceleration g, is recited as angle vector a by (x, y, z)(90,90, 180);Record mobile terminal angle residing when taking pictures is obtained through rotation all on the basis of this initial angle.
2. it is according to claim 1 it is a kind of according to acceleration of gravity from the method for dynamic(al) correction photograph taking angle, its feature It is that, when mobile terminal is vertically placed, the X-axis is horizontal, outwards, the Z axis are heavy with g for the Y-axis vertical screen During conjunction, the mobile terminal is in initial position, and the X-axis, Y-axis, the angle vector of Z axis relative gravity acceleration g are initial Angle.
3. it is according to claim 1 it is a kind of according to acceleration of gravity from the method for dynamic(al) correction photograph taking angle, its feature It is that step B2 is specially:When taking pictures, mobile terminal obtains the angle vector of X-axis, Y-axis, Z axis with respect to g automatically, and counts Deflection angle vector of the angle vector with respect to initial angle is calculated, by the storage deflection angle vector corresponding with photo.
4. it is according to claim 3 it is a kind of according to acceleration of gravity from the method for dynamic(al) correction photograph taking angle, its feature It is that the deflection angle vector is that mobile terminal is returned the angle arrow that initial angle need to rotate from shooting angle counter-rotating Amount.
5. a kind of according to claim 1-4 any one according to acceleration of gravity from the side of dynamic(al) correction photograph taking angle Method, it is characterised in that step C is specially:When user's previewing photos, mobile terminal can be according to the X recorded when shooting The deflection angle of axle, Y-axis, Z axis relative to initial position, is about to photo counter-rotating certainly to initial angle, and shows in preview Show postrotational photo.
6. a kind of mobile terminal, it is characterised in that include:
Receiving record module, the operational order for controlling mobile terminal receive user enter Photographing Mode, while opening automatic Calibration function, and shooting angle residing for mobile terminal when record is taken pictures automatically;
Processing module is calculated, when taking pictures for calculating residing for mobile terminal between shooting angle and initial angle set in advance Deflection angle;Initial position the corresponding initial angle of automatic storage are set first;Then calculate and record mobile terminal to take pictures When deflection angle between residing shooting angle and initial angle;
Photograph preview processing module, during for previewing photos, preview is shone automatically by control mobile terminal according to the deflection angle Piece rotates initial angle set in advance to mobile terminal;The initial angle is arranged according to the custom of user;
The shooting angle and initial angle, wherein angle are represented by way of rectangular coordinate system in space, specially:With flat Row is positive for X-axis to the right in the mobile terminal screen up-and-down boundary level, parallel to the mobile terminal screen right boundary It is positive for Z axis straight up, it is outwards positive for Y-axis along mobile terminal screen perpendicular to X-axis, Z axis, set up rectangular space coordinate System, and with gravity acceleration g as reference direction;
The X-axis, the angle vector between Y-axis, Z axis and gravity acceleration g are shooting angle;
According to rectangular coordinate system in space right-hand rule, when vector is rotated clockwise, angle is negative value, during rotate counterclockwise is On the occasion of;Coordinate axess X, Y, Z positive axis is denoted as with respect to the angle vector of g(x,y,z), when the mobile terminal is in initial position When, now Z axis are overlapped with acceleration of gravity direction;X positive axis be gravity acceleration g in XOZ planes along rotate counterclockwise 90 ° turn clockwise 270 °, are denoted as 90;Y positive axis along 90 ° of rotate counterclockwise or turns clockwise in YOZ planes for g 270 °, it is denoted as 90;Z positive axis along 180 ° of rotate counterclockwise or turns clockwise 180 ° for g in XOZ planes, is denoted as 180;X Initial angle of the positive and negative semiaxis of axle, Y-axis, Z axis relative to gravity acceleration g, is recited as angle vector a by (x, y, z)(90,90, 180);Record mobile terminal angle residing when taking pictures is obtained through rotation all on the basis of this initial angle.
CN201410110337.8A 2014-03-24 2014-03-24 Method and mobile terminal for automatically correcting photo shooting angle according to gravitational acceleration Active CN103873693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410110337.8A CN103873693B (en) 2014-03-24 2014-03-24 Method and mobile terminal for automatically correcting photo shooting angle according to gravitational acceleration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410110337.8A CN103873693B (en) 2014-03-24 2014-03-24 Method and mobile terminal for automatically correcting photo shooting angle according to gravitational acceleration

Publications (2)

Publication Number Publication Date
CN103873693A CN103873693A (en) 2014-06-18
CN103873693B true CN103873693B (en) 2017-03-22

Family

ID=50911801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410110337.8A Active CN103873693B (en) 2014-03-24 2014-03-24 Method and mobile terminal for automatically correcting photo shooting angle according to gravitational acceleration

Country Status (1)

Country Link
CN (1) CN103873693B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202531B (en) * 2014-09-23 2017-10-17 广东欧珀移动通信有限公司 A kind of method of the aerial Taking Photographic of mobile phone
CN104363386B (en) * 2014-11-14 2017-10-17 广东欧珀移动通信有限公司 Photo processing method and device
CN104702857A (en) * 2015-03-27 2015-06-10 合肥联宝信息技术有限公司 Method and device for processing angles of imaged pictures
CN106303198A (en) * 2015-05-29 2017-01-04 小米科技有限责任公司 Photographing information acquisition methods and device
CN104994273A (en) * 2015-06-16 2015-10-21 成都西可科技有限公司 System of maintaining real-time shooting image to be vertical and method thereof
CN105321146A (en) * 2015-09-25 2016-02-10 广东小天才科技有限公司 Method and apparatus for processing subject picture taken by mobile terminal
CN105975172A (en) * 2015-12-11 2016-09-28 乐视网信息技术(北京)股份有限公司 Method and device for adjustment of panoramic video and mobile terminal
CN107092853A (en) * 2016-02-17 2017-08-25 中兴通讯股份有限公司 Photographic method and device
CN106131421A (en) * 2016-07-25 2016-11-16 乐视控股(北京)有限公司 The method of adjustment of a kind of video image and electronic equipment
CN107529012A (en) * 2017-08-31 2017-12-29 努比亚技术有限公司 Photo method of adjustment, mobile terminal and computer-readable recording medium
CN107753028A (en) * 2017-09-19 2018-03-06 努比亚技术有限公司 Take pictures and survey method, mobile terminal and the computer-readable recording medium of height
CN108040242A (en) * 2017-12-18 2018-05-15 横琴峰云视觉技术有限公司 A kind of bearing calibration at angle of inclination of Double-camera device and device
CN109451159A (en) * 2018-11-09 2019-03-08 长沙龙生光启新材料科技有限公司 A kind of Intelligent mobile equipment
CN109635670A (en) * 2018-11-21 2019-04-16 普联技术有限公司 Face identification method, device, terminal device, mobile device and storage medium
CN109547678B (en) * 2018-12-11 2021-09-14 联想(北京)有限公司 Processing method, device, equipment and readable storage medium
CN113873148A (en) * 2021-09-14 2021-12-31 维沃移动通信(杭州)有限公司 Video recording method, video recording device, electronic equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1647110A (en) * 2002-04-16 2005-07-27 皇家飞利浦电子股份有限公司 Image rotation correction for video or photographic equipment
CN1909590A (en) * 2005-08-04 2007-02-07 卡西欧计算机株式会社 Image-capturing apparatus, image correction method and program
CN101374198A (en) * 2007-08-24 2009-02-25 鸿富锦精密工业(深圳)有限公司 Camera device and automatic frontal method for image thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006245726A (en) * 2005-03-01 2006-09-14 Fuji Photo Film Co Ltd Digital camera
US8194147B2 (en) * 2008-11-06 2012-06-05 Getac Technology Corporation Image presentation angle adjustment method and camera device using the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1647110A (en) * 2002-04-16 2005-07-27 皇家飞利浦电子股份有限公司 Image rotation correction for video or photographic equipment
CN1909590A (en) * 2005-08-04 2007-02-07 卡西欧计算机株式会社 Image-capturing apparatus, image correction method and program
CN101374198A (en) * 2007-08-24 2009-02-25 鸿富锦精密工业(深圳)有限公司 Camera device and automatic frontal method for image thereof

Also Published As

Publication number Publication date
CN103873693A (en) 2014-06-18

Similar Documents

Publication Publication Date Title
CN103873693B (en) Method and mobile terminal for automatically correcting photo shooting angle according to gravitational acceleration
US9282242B2 (en) Method and electric device for taking panoramic photograph
WO2017088678A1 (en) Long-exposure panoramic image shooting apparatus and method
US9986155B2 (en) Image capturing method, panorama image generating method and electronic apparatus
WO2018223381A1 (en) Video shake-prevention method and mobile device
US20150138314A1 (en) Generating Panoramic Images
CN103685927B (en) Image stabilizer and digital photographic device with it
CN103888654B (en) It takes pictures and corrects system and method
CN104853082B (en) A kind of method and device for the picture that pans
WO2017128750A1 (en) Image collection method and image collection device
CN104363386B (en) Photo processing method and device
CN103581560B (en) A kind of processing method and system of taking pictures of mobile terminal
CN106534406A (en) Terminal, photographing device and method
WO2021134644A1 (en) Gimbal control method and gimbal
CN104092938A (en) Gravity-sensing photographing method and system
TW201713110A (en) Electronic device and method for taking photos
KR102399513B1 (en) Wide angle picturing device and mobile apparatus including the same
US10212341B2 (en) Mobile electronic device with multiple cameras
CN105791703A (en) Shooting method and terminal
US20160057344A1 (en) Electronic device having a photographing function and photographing method thereof
CN101472064A (en) Filming system and method for processing scene depth
TWI513313B (en) Projection apparatus and image correction method
WO2023241495A1 (en) Photographic method and apparatus
CN106488128B (en) Automatic photographing method and device
WO2018130909A2 (en) Images with virtual reality backgrounds

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211119

Address after: 264200 No. 220, Keji Road, torch high tech Industrial Development Zone, Weihai City, Shandong Province

Patentee after: Weihai high tech Park Operation Management Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.