CN109510937A - A kind of switching method and terminal of photographing mode - Google Patents

A kind of switching method and terminal of photographing mode Download PDF

Info

Publication number
CN109510937A
CN109510937A CN201710833316.2A CN201710833316A CN109510937A CN 109510937 A CN109510937 A CN 109510937A CN 201710833316 A CN201710833316 A CN 201710833316A CN 109510937 A CN109510937 A CN 109510937A
Authority
CN
China
Prior art keywords
terminal
display screen
photographing mode
mode
rotation
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
CN201710833316.2A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710833316.2A priority Critical patent/CN109510937A/en
Publication of CN109510937A publication Critical patent/CN109510937A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Studio Devices (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a kind of switching method of photographing mode and terminals, the switching method of photographing mode includes: to determine target photographing mode wherein according to the sensor parameters of the terminal, and the sensor parameters of the terminal include: the image information of rotation parameter and/or camera acquisition;The photographing mode of the terminal is switched to the target photographing mode, first display screen is controlled according to the target photographing mode and second display screen is lighted or closed, and control shows the image of the camera acquisition on first display screen or second display screen, the switching method described in this way can simplify user's operation, can promote user experience.Also, the switching method can realize one-handed performance, easily facilitate user's use.

Description

A kind of switching method and terminal of photographing mode
Technical field
The present invention relates to field of communication technology, in particular to the switching method and terminal of a kind of photographing mode.
Background technique
By the fast development of many years, the display screen technology of terminal (such as smart phone) is quite mature.From early stage Touch screens develop to capacitance plate, then to the pressure screen of hot topic at present, comprehensively screen etc., the new technology in relation to terminal display screen is continuous It emerges, brings the operating experience become better and better for user.
With the fast development and the decline of component costs of terminal technology, have at least two pieces physics independent screens double screen or Multi-screen terminal, such as double-screen intelligent mobile phone will become popular trend.Double-screen intelligent mobile phone can adapt to more usage scenarios, And carrying is easily facilitated, opposite single screen mobile phone can bring better user experience effect.
The switching of state however, existing double screen terminal is taken pictures, needs by way of touching screen and terminal interaction.Such as Fruit will repeatedly switch, it is necessary to repeatedly and terminal interaction, it is clear that such operation is very inconvenient, not smart enough.Also, it is existing The posture that double screen terminal switches state of taking pictures is that a hand holds terminal, and another hand is clicked in camera applications, is difficult to pass through list The switching of photographing mode is realized in hand operation.
Summary of the invention
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of switching method of photographing mode and terminal, Solve the problems, such as that the handover operation of photographing mode is cumbersome.
One aspect according to an embodiment of the present invention provides a kind of switching method of photographing mode, comprising:
Target photographing mode is determined according to the sensor parameters of the terminal, wherein the sensor parameters packet of the terminal It includes: rotation parameter and/or the image information of camera acquisition;
The photographing mode of the terminal is switched to the target photographing mode;
First display screen is controlled according to the target photographing mode and second display screen is lighted or closed, and control The image of the camera acquisition is shown on first display screen or second display screen.
Optionally, the photographing mode of the terminal includes: that self-timer mode and scape clap mode;
First display screen is controlled according to the target photographing mode and second display screen is lighted or closed, and control The image of the camera acquisition is shown on first display screen or second display screen, comprising:
If the target photographing mode is self-timer mode, lights the first display screen of the terminal and close the terminal Second display screen, it is described first display screen display described in camera acquisition image;
If the target photographing mode is that scape claps mode, lights the second display screen of the terminal and close the terminal The first display screen, the image of camera acquisition is shown on the second display screen.
Optionally, the sensor parameters according to the terminal determine target photographing mode, comprising:
Judge whether can recognize complete face in described image, and face accounts for the ratio of described image more than or equal to default Ratio;
If can recognize complete face in described image, and the ratio of described image shared by face is more than or equal to default ratio Example, it is determined that self-timer mode is target photographing mode;
If can recognize complete face in described image, and the ratio of described image shared by face is less than preset ratio, Then determining that scape claps mode is target photographing mode.
Optionally, the sensor parameters according to the terminal determine target photographing mode, comprising:
The image of the camera acquisition of the terminal is identified, recognition result is obtained;
If the recognition result be cannot recognize that face in described image, judge the terminal rotation parameter whether Meet preset condition, if the rotation parameter of the terminal meets preset condition, it is determined that it is target photographing mode that scape, which claps mode,.
Optionally, the sensor parameters according to the terminal determine target photographing mode, comprising:
Judge whether the rotation parameter of the terminal meets preset condition;
If the rotation parameter of the terminal meets preset condition, it is determined that it is target photographing mode that scape, which claps mode,.
Optionally, whether the rotation parameter for judging the terminal meets preset condition, comprising:
If the terminal is less than or equal to rotation angle allowable error value range, the end around the first rotation angle of first axle End is to rotate according to first direction, and the terminal rotates angle around the third that the second axis rotates according to first direction around the second axis The first value that the sum of angle between first display screen and second display screen is obtained with the first predetermined angle remainder, with When the absolute value of two predetermined angle differences is less than or equal to rotation angle allowable error value range, the rotation parameter of the terminal is determined Meet preset condition;
Wherein, the first axle is parallel to the first side of the first display screen, and second axis is parallel to the first display screen Second side, the first axle are vertical with second axis.
Optionally, whether the rotation parameter for judging the terminal meets preset condition, comprising:
If the terminal is less than or equal to rotation angle allowable error value range, the end around the first rotation angle of first axle End be around the second axis rotated according to second direction, and the terminal according to second direction around the second axis rotate the 4th rotate angle The second value that the difference of angle between the first display screen and second display screen and the first predetermined angle remainder obtain, it is pre- with second If the absolute value of angle difference is less than or equal to rotation angle allowable error value range, determine that the rotation parameter of the terminal meets Preset condition;Wherein, the second direction is the opposite direction of the first direction;
Wherein, the second direction is the opposite direction of first direction, and the first axle is parallel to the first of the first display screen Side, second axis are parallel to the second side of the first display screen, and the first axle is vertical with second axis.
Optionally, whether the rotation parameter for judging the terminal meets preset condition, comprising:
If the terminal is greater than rotation angle allowable error value range, and described first around the first rotation angle of first axle The absolute value of rotation angle and the obtained third value of the first predetermined angle remainder and the second predetermined angle difference, the terminal are around the Angle between the second rotation angle and first display screen and second display screen of two axis, which is respectively less than, is equal to rotation angle When allowable error value range, determine that the rotation parameter of the terminal meets preset condition;
Wherein, the first axle is parallel to the first side of the first display screen, and second axis is parallel to the first display screen Second side, the first axle are vertical with second axis.
Other side according to an embodiment of the present invention additionally provides a kind of terminal, comprising: the first display screen, second show Display screen and camera, the shooting direction of the camera is consistent with the display direction of first display screen, and the terminal is also wrapped It includes:
Detection module, for determining target photographing mode according to the sensor parameters of the terminal, wherein the terminal Sensor parameters include: the image information of rotation parameter and/or camera acquisition;
Photographing mode module, for the photographing mode of the terminal to be switched to the target photographing mode;
Photographing mode module is also used to control first display screen and second display screen according to the target photographing mode It lights or closes, and control shows the image of the camera acquisition on first display screen or second display screen.It can Selection of land, the photographing mode of the terminal include: that self-timer mode and scape clap mode;
The photographing mode module includes:
First count shines mode unit, if being self-timer mode for the target photographing mode, lights the of the terminal One display screen and the second display screen for closing the terminal, the figure of the camera acquisition described in the first display screen display Picture;
Second count shines mode unit, if being that scape claps mode for the target photographing mode, lights the of the terminal Two display screens and the first display screen for closing the terminal show the figure of the camera acquisition on the second display screen Picture.
Optionally, the detection module includes:
First judging unit, for judging whether can recognize complete face in described image, and face accounts for described image Ratio be more than or equal to preset ratio;
First determination unit, if for can recognize complete face, and described image shared by face in described image Ratio is more than or equal to preset ratio, it is determined that self-timer mode is target photographing mode;
Second determination unit, if for can recognize complete face, and described image shared by face in described image Ratio is less than preset ratio, it is determined that it is target photographing mode that scape, which claps mode,.
Optionally, the detection module includes:
Judging submodule judges the end if being that cannot recognize that face in described image for the recognition result Whether the rotation parameter at end meets preset condition;
Submodule is determined, if the rotation parameter for the terminal meets preset condition, it is determined that it is mesh that scape, which claps mode, Mark photographing mode.
Optionally, the detection module includes:
Recognition of face submodule, the image for the camera acquisition to the terminal identifies, obtains recognition result;
Judging submodule, if being also used to the recognition result is that cannot recognize that face in described image, described in judgement Whether the rotation parameter of terminal meets preset condition;
Submodule is determined, if the rotation parameter for the terminal meets preset condition, it is determined that it is mesh that scape, which claps mode, Mark photographing mode.
Optionally, the judging submodule includes:
Third determination unit, if being less than or equal to rotation angle around the first rotation angle of first axle for the terminal allows Error range value, the terminal be around the second axis rotated according to first direction, and the terminal according to first direction around the second axis The sum of angle between the third rotation angle and first display screen and second display screen of rotation takes with the first predetermined angle Remaining the first obtained value is sentenced when being less than or equal to rotation angle allowable error value range with the absolute value of the second predetermined angle difference The rotation parameter of the fixed terminal meets preset condition;
Wherein, the first axle is parallel to the first side of the first display screen, and second axis is parallel to the first display screen Second side, the first axle are vertical with second axis.
Optionally, the judging submodule includes:
4th determination unit, if being less than or equal to rotation angle around the first rotation angle of first axle for the terminal allows Error range value, the terminal be around the second axis rotated according to second direction, and the terminal according to second direction around the second axis The difference of angle between the 4th rotation angle and the first display screen and second display screen of rotation is obtained with the first predetermined angle remainder The second value arrived determines institute when being less than or equal to rotation angle allowable error value range with the absolute value of the second predetermined angle difference The rotation parameter for stating terminal meets preset condition;Wherein, the second direction is the opposite direction of the first direction;Described One axis is parallel to the first side of the first display screen, and second axis is parallel to the second side of the first display screen, the first axle with Second axis is vertical.
Optionally, the judging submodule includes:
5th determination unit, if the first rotation angle for the terminal around first axle is greater than rotation angle allowable error Value range, and the obtained third value of the first rotation angle and the first predetermined angle remainder and the second predetermined angle difference is exhausted Value, the terminal are respectively less than around the second angle for rotating angle and first display screen and second display screen of the second axis When equal to rotation angle allowable error value range, determine that the rotation parameter of the terminal meets preset condition;
Wherein, the first axle is parallel to the first side of the first display screen, and second axis is parallel to the first display screen Second side, the first axle are vertical with second axis.
Optionally, the terminal further include:
Rotation angle computing module, for according to time interval and angular velocity of rotation, computing terminal to divide in the rotated coordinate system Not around the direction of first axle, the angle of the rotation of the second axis and rotation;
Recognition of face event sniffer is also used to when having identified complete face, and notice detection module carries out mould of taking pictures Formula detection;
Equipment rotates monitor, is used for monitor terminal rotational case, and notice rotation angle computing module calculates correlation values, with And notice detection module carries out photographing mode detection;
Angle calcu-lation module, for providing the angle value between the first display screen of terminal and second display screen.
Another aspect according to an embodiment of the present invention additionally provides a kind of terminal, comprising: memory, processor and deposits The computer program that can be run on a memory and on a processor is stored up, the processor realizes institute as above when executing described program Step in the switching method for the photographing mode stated.
Another aspect according to an embodiment of the present invention additionally provides a kind of computer readable storage medium, stores thereon There is computer program, which realizes the step in the switching method of photographing mode as described above when being executed by processor.
The embodiment of the present invention has the following beneficial effects:
By identifying to the image that camera acquires, directly according to recognition result, target photographing mode is determined, or Person determines target photographing mode according to the rotation parameter of recognition result and terminal, and then the photographing mode of terminal is switched to mesh Photographing mode is marked, above-mentioned switching mode does not need user and switches over operation manually, simplifies user's operation, promotes user's body It tests.Also, user singlehanded can realize the switching mode, easily facilitate user's use.
Detailed description of the invention
Fig. 1 is a kind of existing schematic diagram of double screen terminal;
Fig. 2 is a kind of flow chart of the switching method of photographing mode provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another terminal provided in an embodiment of the present invention;
Fig. 5 is the flow chart of the switching method of another photographing mode provided in an embodiment of the present invention;
Fig. 6 is the flow chart of the switching method of another photographing mode provided in an embodiment of the present invention;
Fig. 7 be another embodiment of the present invention provides a kind of terminal structural schematic diagram.
Specific embodiment
To keep the technical problem to be solved in the present invention, technical solution and advantage clearer, below in conjunction with attached drawing and tool Body embodiment is described in detail.
Term " first ", " second " in description and claims of this specification etc. are for distinguishing similar right As without being used to describe a particular order or precedence order.It should be understood that the data used in this way in the appropriate case can be with It exchanges, so that the embodiment of the present invention described herein for example can be with suitable other than those of illustrating or describing herein Sequence is implemented.
Handover operation in order to solve the problems, such as photographing mode is cumbersome, and the present invention provides a kind of switching sides of photographing mode Method, referring to Fig. 1, the switching method is suitable for including the first display screen 1, second display screen 2 and camera 3 (or being camera) Terminal, the shooting direction of the camera 3 is consistent with the display direction of first display screen 1, i.e., the described camera 3 is located at The top of first display screen 1, first display screen 1 and second display screen 2 can relatively rotate.When needing self-timer, need by First display screen 1 is directed at user;When needing to clap scape, need the camera 3 on the first display screen 1 being directed at the scape to be shot Object shows the image that camera 3 acquires on second display screen 2.
With continued reference to shown in Fig. 1, the first axle is parallel to the first side of the first display screen, and second axis is parallel to Second side of one display screen, the first axle are vertical with second axis.For example, X-axis shown in Fig. 1 is first axle, in Fig. 1 Shown in Y-axis be the second axis.
Fig. 2 is a kind of flow chart of the switching method of photographing mode provided in an embodiment of the present invention, referring to fig. 2, the bat Switching method according to mode includes:
S201 determines target photographing mode according to the sensor parameters of the terminal.Wherein, the sensor ginseng of the terminal Number includes: the image information of rotation parameter and/or camera acquisition;
The sensor of the terminal can be face identification sensor and/or gyro sensor etc..
It should be noted that the photographing mode of the terminal includes: that self-timer mode and scape clap mode, wherein self-timer mode The user is shot using the camera of terminal for user, scape claps mode user and utilizes the camera of terminal to the ring of surrounding Border is shot.
Wherein it is determined that next being carried out in the preferred mode of two of them as an example there are many modes of target photographing mode Explanation.
Mode one: according to the recognition result, target photographing mode is determined, the specific steps are as follows:
S2011 judges whether can recognize complete face in described image, and face account for described image ratio be greater than etc. In preset ratio;For example, when face accounts for described image ratio more than or equal to 50%, determining self-timer mould if preset ratio is 50% Formula is target photographing mode.It should be noted that not limiting the size of preset ratio specifically in embodiments of the present invention.
S2012, if identifying complete face, and described image shared by face in the image of the camera acquisition of energy terminal Ratio is more than or equal to preset ratio, it is determined that self-timer mode is target photographing mode;
S2013, if can recognize complete face in described image, and the ratio of described image shared by face is less than default Ratio, it is determined that it is target photographing mode that scape, which claps mode,.
Mode two: the image of the camera acquisition of terminal is identified, recognition result is obtained;
According to the rotation parameter of the recognition result and the terminal, target photographing mode is determined.
Optionally, recognition of face can be carried out to the image that the camera of terminal acquires, and then can recognize whether have in image Information, the recognition results such as complete face can be and recognize face in the picture, or identify in the picture less than face or Person identifies less than complete face.
It should be noted that the rotation parameter includes but is not limited to: time interval, around first axle angular velocity of rotation, Around the angular velocity of rotation of the second axis and the direction of rotation etc..
By time interval, can around the angular velocity of rotation, the angular velocity of rotation around the second axis and direction of rotation of first axle To calculate the terminal in the rotated coordinate system rotating around first axle, the angle of the second axis rotation.
Optionally, if the recognition result is that cannot recognize that face in described image, judge the rotation of the terminal Whether parameter meets preset condition, if the rotation parameter of the terminal meets preset condition, it is determined that it is target that scape, which claps mode, Photographing mode.
Mode three: target photographing mode is determined by the rotation parameter of the terminal.
Optionally, judge whether the rotation parameter of the terminal meets preset condition;If the rotation parameter of the terminal Meet preset condition, it is determined that it is target photographing mode that scape, which claps mode,.
It should be noted that determining whether the rotation parameter of the terminal meets there are many modes of preset condition, connect down To be illustrated to preferred embodiment therein, comprising:
If 1) terminal is less than or equal to rotation angle allowable error value range around the first rotation angle of first axle, described Terminal is to rotate according to first direction around the second axis, and the third rotation angle that the terminal is rotated according to first direction around the second axis The first value that the sum of degree and the angle between first display screen and second display screen are obtained with the first predetermined angle remainder, with When the absolute value of second predetermined angle difference is less than or equal to rotation angle allowable error value range, the rotation ginseng of the terminal is determined Number meets preset condition;
If 2) terminal is less than or equal to rotation angle allowable error value range around the first rotation angle of first axle, described Terminal is to rotate according to second direction around the second axis, and the 4th rotation angle that the terminal is rotated according to second direction around the second axis The second value that the difference and the first predetermined angle remainder of degree and the angle between the first display screen and second display screen obtain, with second When the absolute value of predetermined angle difference is less than or equal to rotation angle allowable error value range, determine that the rotation parameter of the terminal is full Sufficient preset condition;Wherein, the second direction is the opposite direction of first direction.
If 3) terminal is greater than rotation angle allowable error value range, and described the around the first rotation angle of first axle The absolute value of one rotation angle and the obtained third value of the first predetermined angle remainder and the second predetermined angle difference, the terminal around Angle between the second rotation angle and first display screen and second display screen of second axis, which is respectively less than, is equal to rotation angle When spending allowable error value range, determine that the rotation parameter of the terminal meets preset condition;
Wherein, the first axle is parallel to the first side of the first display screen, and second axis is parallel to the first display screen Second side, the first axle are vertical with second axis.
The tool of target photographing mode is determined according to the rotation parameter of the recognition result and the terminal in order to facilitate understanding Body process, is illustrated below.
Target photographing mode is determined according to the rotation parameter of the recognition result and the terminal, comprising the following steps:
S2014 calculates the end according to terminal around the angular velocity of rotation of first axle, around the angular velocity of rotation of the second axis It holds in the rotated coordinate system rotating around the direction of first axle, the angle of the second axis rotation and rotation.
For example, with continued reference to Fig. 1, can be calculated eventually according to time interval δ t that gyro sensor reports, angular velocity of rotation End is in the rotated coordinate system rotating around X-axis, the rotation angle of Y-axis and the direction of rotation.
Wherein, δ t can be the time interval of gyro sensor reported data, and unit is nanosecond.The angular velocity of rotation packet Include the angular velocity omega x around X-axis and the rotation angle ω y around Y-axis, wherein ω x, ω y can be by the gyro sensors of terminal Report, ω x, ω y unit be rad/s.
It can be using the coordinate system of gyro sensor as rotating coordinate system.As shown in Figure 1, according to the first display screen of terminal Or second display screen default direction (vertical screen) places terminal, X-axis is horizontal line to the right, and Y-axis is upward vertical line, and Z axis refers to On the outside of to screen.Can be using reference axis forward direction in rotating coordinate system as the angle of observation, direction of rotation includes: the clockwise and inverse time Needle is clockwise or counterclockwise around the direction of rotation of the reference axis.
Wherein, as follows around X-axis, Y-axis rotation angle calculation formula:
It should be noted that variable x indicates the angle that terminal is rotated around X-axis.Variable y indicates terminal around the angle that Y-axis rotates Degree.NS2S:NS2S=1.0f/1000000000.0f is for will switch to the constant of second nanosecond.
S2015 judges the terminal around first axle if the recognition result is that cannot recognize that face in described image First rotation angle whether be greater than rotation angle allowable error value range;
S2016, if the first rotation angle is less than or equal to rotation angle allowable error value range a, if described first When rotating angle and being less than or equal to rotation angle allowable error value range, judge that the terminal around the second axis is revolved according to first direction Turn to rotate also according to second direction, the second direction is the opposite direction of the first direction;
S2017, if the terminal be around the second axis rotated according to first direction, and the terminal according to first direction around The sum of angle between the third rotation angle and first display screen and second display screen of the rotation of two axis and the first preset angle The first value that degree remainder obtains is less than or equal to rotation angle allowable error value range with the absolute value of the second predetermined angle difference When, determining that scape claps mode is target photographing mode.
It should be noted that rotation angle allowable error value range indicates terminal rotating angle allowable error value range, rotation Gyration allowable error value range a is constant, takes positive value.Suitable empirical value can be taken according to the SOT state of termination.As an example, can be with Temporarily it is taken as 10 °.
For example, the first predetermined angle is 360 °, when the second predetermined angle is 180 °, indicate above-mentioned with mathematic(al) representation Rule of judgment in S2017, as follows:
Wherein, % indicates remainder symbol.Example, 180%360=180,360%360=0.Variable c indicates the first display screen Angle (or angle between main screen and vice screen) between second display screen.
S2018, if the terminal be around the second axis rotated according to second direction, and the terminal according to second direction around The difference of angle between the 4th rotation angle and the first display screen and second display screen of the rotation of two axis takes with the first predetermined angle Remaining obtained second value, when being less than or equal to rotation angle allowable error value range with the absolute value of the second predetermined angle difference, really Determine scape to clap mode to be target photographing mode;
For example, the first predetermined angle is 360 °, when the second predetermined angle is 180 °, indicate above-mentioned with mathematic(al) representation Rule of judgment in S2018, as follows:
S2019, if the first rotation angle is greater than rotation angle allowable error value range, and the first rotation angle The absolute value of the third value that obtains with the first predetermined angle remainder and the second predetermined angle difference, the terminal are around the of the second axis Angle between two rotation angles and first display screen and second display screen, which is respectively less than, is equal to rotation angle allowable error When value range, determining that scape claps mode is target photographing mode;
For example, the first predetermined angle is 360 °, when the second predetermined angle is 180 °, indicate above-mentioned with mathematic(al) representation Rule of judgment in S2019, as follows:
The photographing mode of the terminal is switched to the target photographing mode by S202.
S203 controls first display screen according to the target photographing mode and second display screen is lighted or closed, with And control shows the image of the camera acquisition on first display screen or second display screen.
It should be noted that the photographing mode of the terminal includes: that self-timer mode and scape clap mode;The S203 include with Lower step: S2031 and S2032.
S2031 lights the first display screen of the terminal and closes institute if the target photographing mode is self-timer mode The second display screen for stating terminal, the image of the camera acquisition described in the first display screen display;
S2032 lights the second display screen of the terminal and closes institute if the target photographing mode is that scape claps mode The first display screen for stating terminal shows the image of the camera acquisition on the second display screen.
In embodiments of the present invention, by determining target photographing mode according to the recognition result, alternatively, according to described The rotation parameter of recognition result and the terminal determines target photographing mode, and then the photographing mode of the terminal is switched to The target photographing mode, wherein the recognition result can be obtained by recognition of face, and the rotation parameter of the terminal can pass through Gyro sensor obtains, and does not need user and switches over operation manually, and the switching method described in this way can simplify user's operation, User experience can be promoted.Also, the switching mode can realize one-handed performance, easily facilitate user's use.
With continued reference to Fig. 1, the terminal includes the first display screen, second display screen and camera, the bat of the camera It is consistent with the display direction of first display screen to take the photograph direction, Fig. 3 is that a kind of structure of terminal provided in an embodiment of the present invention is shown It is intended to, referring to Fig. 3, the terminal 300 further include: detection module 301 and photographing mode module 302.
The detection module 301, for determining target photographing mode according to the sensor parameters of the terminal, wherein institute The sensor parameters for stating terminal include: the image information of rotation parameter and/or camera acquisition.
It should be noted that the detection module 301 can be there are many structure, next just with wherein preferred two kinds of progress It illustrates.
Optionally, the detection module 301 includes: the first judging unit, the first determination unit and the second determination unit.
Wherein, first judging unit, for judging whether can recognize complete face in described image, and face accounts for The ratio of described image is more than or equal to preset ratio;
First determination unit, if for can recognize complete face in described image, and the figure shared by face The ratio of picture is more than or equal to preset ratio, it is determined that self-timer mode is target photographing mode;
Second determination unit, if for can recognize complete face in described image, and the figure shared by face The ratio of picture is less than preset ratio, it is determined that it is target photographing mode that scape, which claps mode,.
Optionally, the detection module 301 includes: judging submodule and determining submodule.
Wherein, the judging submodule is sentenced if being that cannot recognize that face in described image for the recognition result Whether the rotation parameter for the terminal of breaking meets preset condition;
The determining submodule, if the rotation parameter for the terminal meets preset condition, it is determined that scape claps mode For target photographing mode.
Alternatively, the detection module 301 includes: recognition of face submodule, judging submodule and determining submodule.
Recognition of face submodule, the image for the camera acquisition to the terminal identifies, obtains recognition result;
Judging submodule, if being also used to the recognition result is that cannot recognize that face in described image, described in judgement Whether the rotation parameter of terminal meets preset condition;
Submodule is determined, if the rotation parameter for the terminal meets preset condition, it is determined that it is mesh that scape, which claps mode, Mark photographing mode.
Optionally, the judging submodule include: second judgment unit, third determination unit, the 4th determination unit and/or 5th determination unit.
Wherein, the second judgment unit, if being that cannot recognize that face in described image for the recognition result, Judge whether the terminal is greater than rotation angle allowable error value range around the first rotation angle of first axle;
Third judging unit, if the first rotation angle for the terminal around first axle is less than or equal to rotation angle When allowable error value range, judge the terminal around the second axis be according to first direction rotation also according to second direction rotate, The second direction is the opposite direction of the first direction;
The third determination unit, if the first rotation angle for the terminal around first axle is less than or equal to rotation angle Allowable error value range, the terminal be around the second axis rotated according to first direction, and the terminal according to first direction around The sum of angle between the third rotation angle and first display screen and second display screen of the rotation of two axis and the first preset angle The first value that degree remainder obtains is less than or equal to rotation angle allowable error value range with the absolute value of the second predetermined angle difference When, determine that the rotation parameter of the terminal meets preset condition, that is, determining that scape claps mode is target photographing mode;
4th determination unit, if the first rotation angle for the terminal around first axle is less than or equal to rotation angle Allowable error value range, the terminal be around the second axis rotated according to second direction, and the terminal according to second direction around The difference of angle between the 4th rotation angle and the first display screen and second display screen of the rotation of two axis takes with the first predetermined angle Remaining obtained second value is sentenced when being less than or equal to rotation angle allowable error value range with the absolute value of the second predetermined angle difference The rotation parameter of the fixed terminal meets preset condition, that is, determining that scape claps mode is target photographing mode;
5th determination unit, if being greater than rotation angle around the first rotation angle of first axle for the terminal allows Error range value, and the third value and the second predetermined angle difference that the first rotation angle and the first predetermined angle remainder obtain Absolute value, the terminal around the second of the second axis rotate angle and first display screen and second display screen angle it is equal When less than or equal to rotation angle allowable error value range, determines that the rotation parameter of the terminal meets preset condition, that is, determine scape Bat mode is target photographing mode;
Wherein, the first axle is parallel to the first side of the first display screen, and second axis is parallel to the first display screen Second side, the first axle are vertical with second axis.
The photographing mode module 302, for the photographing mode of the terminal to be switched to the target photographing mode.
Optionally, the photographing mode of the terminal includes: that self-timer mode and scape clap mode.
The photographing mode module 302 is also used to control first display screen and the according to the target photographing mode Two display screens are lighted or are closed, and control shows the camera acquisition on first display screen or second display screen Image.Optionally, the photographing mode module 302, comprising: first count shines mode unit according to mode unit and second count.
The first count shines mode unit, if being self-timer mode for the target photographing mode, lights the terminal The first display screen and close the second display screen of the terminal, the camera acquisition described in the first display screen display Image;
The second count shines mode unit, if being that scape claps mode for the target photographing mode, lights the terminal Second display screen and close the first display screen of the terminal, the camera acquisition is shown on the second display screen Image.
In embodiments of the present invention, target photographing mode is determined according to the recognition result by detection module 301, or Person determines target photographing mode according to the rotation parameter of the recognition result and the terminal, and then passes through photographing mode module The photographing mode of the terminal is switched to the target photographing mode by 302, wherein the recognition result can pass through recognition of face Module obtains, and the rotation parameter of the terminal can be obtained by gyro sensor, not need user and switch over operation manually, The terminal described in this way can simplify user's operation, can promote user experience.Also, the terminal can be realized and be cut by one-handed performance Photographing mode is changed, user's use is easily facilitated.
On the basis of structure shown in Fig. 3, the embodiment of the invention provides another terminal, Fig. 4 is the embodiment of the present invention The structural schematic diagram of another terminal of offer, referring to fig. 4, the terminal include: recognition of face event sniffer, equipment rotation Monitor, face recognition module, detection module, angle calcu-lation module, rotation angle computing module and photographing mode module.
Wherein, the recognition of face event sniffer, for notifying that detection module is clapped when identifying complete face According to mode detection.
The equipment rotates monitor, is used for monitor terminal rotational case, and notice rotation angle computing module calculates dependency number Value and notice detection module carry out photographing mode detection.
The face recognition module provides face recognition result for carrying out recognition of face by camera.When having identified When whole face, recognition of face event is issued.
The detection module is also used to call the calculated result of computing module, and according to condition appropriate and method, detection is worked as Preceding optimum photographing mode, notice photographing mode module are accordingly switched.
The angle calcu-lation module, for providing the angle value between the first display screen of terminal and second display screen, i.e., Angle value between the main screen and vice screen of terminal is provided.
The rotation angle computing module, for providing terminal rotating angle and direction.It is reported according to gyro sensor Time interval and angular velocity of rotation, computing terminal in the rotated coordinate system rotating around first axle, the rotation angle of the second axis and Direction of rotation;The angular velocity of rotation includes the angular speed around first axle and the angular speed around the second axis.For example, if described first When axis is X-axis, second axis is Y-axis, the rotation angle computing module computing terminal is in the rotated coordinate system rotating around X-axis, Y The angle of axis rotation, and the direction of rotation.
The photographing mode module, also provides for and records the state of taking pictures, and lights or extinguish screen, and it is related to carry out camera It is arranged (U.S. face, flash lamp).The photographing mode that the present invention mentions is divided into self-timer mode and scape claps mode.It is provided herein when utilizing Method identifies user in self-timer, notifies this module by photographing mode labeled as self-timer mode;When identify user clap scape When, mode is clapped labeled as scape.Default situations are set to scape and clap mode.
Terminal structure based on shown in Fig. 4, Fig. 5 are the switching method of another photographing mode provided in an embodiment of the present invention Flow chart, it should be noted that first display screen be main screen, second display screen is vice screen, referring to Fig. 5, the switching Method specifically includes the following steps:
S501 needs first to open camera (or being camera).
S502 triggers recognition of face event sniffer when camera applications identify face.
S503, triggering recognition of face event sniffer notice detection module are detected, and check photographing mode module marks Mode be scape clap mode.
S504 calls photographing mode module to complete screen, the setting of camera correlation.Main screen is lighted, vice screen is extinguished, adjusts camera Self-timer effect hides flash of light lamp switch.
S505 calls photographing mode module, and photographing mode is labeled as self-timer mode.
It should be noted that user may be to be initially opened camera to enter self-timer mode, it is also possible to be revolved from scape situation is clapped Turn terminal and switches back into self-timer.Both scenes all meet the description of the present embodiment.
Terminal structure based on shown in Fig. 4, Fig. 6 are the switching method of another photographing mode provided in an embodiment of the present invention Flow chart, it should be noted that first display screen be main screen, second display screen is vice screen, referring to Fig. 6, the switching Method specifically includes the following steps:
S601 needs first to open camera and carries out self-timer.
S602 can be manually rotated terminal, can trigger rotational event monitor.
S603, rotational event monitor call detection module to be judged.First determine whether current markers is self-timer mode, And face cannot be recognized.If current markers is self-timer mode, and when cannot recognize face, detection module, which calls, to be clapped The photographing mode of label is obtained according to mode module, face recognition module is called to obtain recognition result, and computing module is called to be revolved Gyration calculates.When being less than or equal to constant a around X-axis rotation angle, (i.e. rotation angle allowable error value range, can use 10 degree of angle conducts Example) when, execute S604;Conversely, executing S609.
S604 is less than or equal to constant a around X-axis rotation angle, continue judge terminal around the rotation of Y-axis be clockwise direction or Counterclockwise.If direction of rotation is clockwise, to execute S605, if direction of rotation is counterclockwise, to execute S607.
S605, terminal are rotated clockwise around Y-axis, execute S606.
S606, the sum of the angle of terminal between Y-axis rotation angle and main screen and vice screen is close to semi-circumference (Rule of judgment number Learn expression formula and see the S606 in Fig. 6 when indicating) when, it operates successfully, executes S611.
S607, terminal rotate counterclockwise around Y-axis, execute S608.
S608, differential nearly semi-circumference ((the Rule of judgment number of terminal angle between Y-axis rotation angle and main screen and vice screen Learn expression formula and see the S608 in Fig. 6 when indicating)) when, it operates successfully, executes S211.
S609 is greater than constant a around X-axis rotation angle, executes S610.
S610, terminal, close to semi-circumference, operate successfully around X-axis rotation angle, execute S611.
S611 automatically switches photographing mode.Photographing mode module is called to complete screen, the setting of camera correlation.Vice screen is lighted, Extinguish main screen, cancels camera self-timer effect, display flash of light lamp switch.
S612 calls photographing mode module marks scape to clap mode.
According to use habit, user lights terminal home screen, opens camera applications, and default enters self-timer state.Then user Terminal is rotated, until vice screen is directed at oneself, expression user wants to clap scape, at this moment starts detection method, when the conditions are suitable, automatically It is switched to and claps scape state.User can also switchback self-timer state, then be switched to clap scape state.These scenes all meet retouching for the present embodiment It states.
In embodiments of the present invention, by the recognition of face of camera and terminal rotating angle, judge that user wanted takes pictures Then state marks automatically and switches the state of taking pictures, corresponding screen light on and off are arranged.When user uses camera for the first time, first point is needed Bright main screen, opens camera applications, and camera automatically switches to self-timer state.When user wants to clap scenery, rotatable terminal to one Determine degree, while camera lens range is left by face.When these conditions are met, it will detect that user wants to clap scape, notice terminal is certainly Dynamic switching heterodyne scape state, at this moment can light vice screen, extinguish main screen, while can be appreciated that vice screen shows the picture of scenery.When with Self-timer is thought at family again when, to a certain extent, while camera lens captures face to rotatable terminal.When the conditions are met, it will detect that use Self-timer is wanted at family, and notice terminal automatically switches into self-timer state, at the same main screen display face picture.Terminal is rotated back and forth, It can reach the effect for the state that repeatedly automatically switches to take pictures.
Fig. 7 be another embodiment of the present invention provides terminal structural schematic diagram.As shown in fig. 7, terminal shown in Fig. 7 700 include: at least one processor 701, memory 702, at least one network interface 704 and user interface 703.Terminal 700 In various components be coupled by bus system 705.It is understood that bus system 705 is for realizing between these components Connection communication.Bus system 705 further includes that power bus, control bus and status signal are total in addition to including data/address bus Line.But for the sake of clear explanation, various buses are all designated as bus system 705 in Fig. 7.
Wherein, user interface 703 may include display, keyboard or click terminal (for example, mouse, trace ball (track ball), touch-sensitive plate or touch screen etc..It is appreciated that the memory 702 in the embodiment of the present invention can be it is volatile Property memory or nonvolatile memory, or may include both volatile and non-volatile memories.Wherein, non-volatile memories Device can be read-only memory (Read-Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), Erasable Programmable Read Only Memory EPROM (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), it is used as External Cache.By exemplary but be not restricted explanation, many forms RAM is available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), Double Data Rate synchronous dynamic Random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links dynamic random access memory (Synchlink DRAM, SLDRAM) and straight Meet rambus random access memory (Direct Rambus RAM, DRRAM).The system of description of the embodiment of the present invention and side The memory 702 of method is intended to include but is not limited to the memory of these and any other suitable type.
In some embodiments, memory 702 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 7021 and application program 7022.
Wherein, operating system 7021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 7022 includes various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 7022.
In embodiments of the present invention, by the program or instruction of calling memory 702 to store, specifically, can be application The program or instruction stored in program 7022, processor 701 can execute the switching method of above-mentioned photographing mode.
The method that the embodiments of the present invention disclose can be applied in processor 701, or be realized by processor 701. Processor 701 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 701 or the instruction of software form.Above-mentioned processing Device 701 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at The step of memory 702, processor 701 reads the information in memory 702, completes the above method in conjunction with its hardware.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general place It manages in device, controller, microcontroller, microprocessor, other electronic units for executing function of the present invention or combinations thereof.
For software implementations, can by execute the embodiment of the present invention described in function module (such as process, function etc.) come Realize technology described in the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can With portion realizes in the processor or outside the processor.
In the present embodiment, processor 701 is specifically used for executing step:
Target photographing mode is determined according to the sensor parameters of the terminal, wherein the sensor parameters packet of the terminal It includes: rotation parameter and/or the image information of camera acquisition;The photographing mode of the terminal is switched to the target to take pictures mould Formula;First display screen is controlled according to the target photographing mode and second display screen is lighted or closed, and control is in institute State the image that the camera acquisition is shown on the first display screen or second display screen.
Optionally, processor 701 is specifically used for executing step:
If the target photographing mode is self-timer mode, lights the first display screen of the terminal and close the terminal Second display screen, it is described first display screen display described in camera acquisition image;If the target photographing mode Mode is clapped for scape, light the second display screen of the terminal and closes the first display screen of the terminal, in second display The image of the acquisition of camera described in screen display.
Optionally, processor 701 is specifically used for executing step:
Judge whether can recognize complete face in described image, and face accounts for the ratio of described image more than or equal to default Ratio;If can recognize complete face in described image, and the ratio of described image shared by face is more than or equal to preset ratio, Then determine that self-timer mode is target photographing mode;If can recognize complete face in described image, and the figure shared by face The ratio of picture is less than preset ratio, it is determined that it is target photographing mode that scape, which claps mode,.
Optionally, processor 701 is specifically used for executing step:
Judge whether the rotation parameter of the terminal meets preset condition, is preset if the rotation parameter of the terminal meets Condition, it is determined that it is target photographing mode that scape, which claps mode,.
Optionally, processor 701 is specifically used for executing step:
The image of the camera acquisition of the terminal is identified, recognition result is obtained;
If the recognition result be cannot recognize that face in described image, judge the terminal rotation parameter whether Meet preset condition, if the rotation parameter of the terminal meets preset condition, it is determined that it is target photographing mode that scape, which claps mode,.
Optionally, processor 701 is specifically used for executing step:
If the terminal is less than or equal to rotation angle allowable error value range, the end around the first rotation angle of first axle End is to rotate according to first direction, and the terminal rotates angle around the third that the second axis rotates according to first direction around the second axis The first value that the sum of angle between first display screen and second display screen is obtained with the first predetermined angle remainder, with When the absolute value of two predetermined angle differences is less than or equal to rotation angle allowable error value range, then the rotation ginseng of the terminal is determined Number meets preset condition;Wherein, the first axle is parallel to the first side of the first display screen, and it is aobvious that second axis is parallel to first Second side of display screen, the first axle are vertical with second axis.
Optionally, processor 701 is specifically used for executing step:
If the terminal is less than or equal to rotation angle allowable error value range, the end around the first rotation angle of first axle End be around the second axis rotated according to second direction, and the terminal according to second direction around the second axis rotate the 4th rotate angle The second value that the difference of angle between the first display screen and second display screen and the first predetermined angle remainder obtain, then with second When the absolute value of predetermined angle difference is less than or equal to rotation angle allowable error value range, then the rotation parameter of the terminal is determined Meet preset condition;Wherein, the first axle is parallel to the first side of the first display screen, and second axis is parallel to the first display Second side of screen, the first axle are vertical with second axis.
Optionally, processor 701 is specifically used for executing step:
If the terminal is greater than rotation angle allowable error value range, first rotation around the first rotation angle of first axle The absolute value of third value that gyration and the first predetermined angle remainder obtain and the second predetermined angle difference, the terminal are around second Angle between the second rotation angle and first display screen and second display screen of axis, which is respectively less than equal to rotation angle, to be permitted Perhaps when error range value, determine that the rotation parameter of the terminal meets preset condition;Wherein, it is aobvious to be parallel to first for the first axle First side of display screen, second axis are parallel to the second side of the first display screen, and the first axle is vertical with second axis.
In embodiments of the present invention, target photographing mode is determined according to the recognition result by processor 701, alternatively, According to the rotation parameter of the recognition result and the terminal, target photographing mode is determined, and then will be described by processor 701 The photographing mode of terminal is switched to the target photographing mode, wherein and the recognition result can be obtained by face recognition module, The rotation parameter of the terminal can be obtained by gyro sensor, do not needed user and switched over operation manually, described in this way Terminal can simplify user's operation, can promote user experience.Also, the terminal, which can be realized, switches mould of taking pictures by one-handed performance Formula easily facilitates user's use.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the journey The step in the switching method of photographing mode as described above is realized when sequence is executed by processor.
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text mean it is related with embodiment A particular feature, structure, or characteristic is included at least one embodiment of the present invention.Therefore, occur everywhere in the whole instruction " in one embodiment " or " in one embodiment " not necessarily refer to identical embodiment.In addition, these specific features, knot Structure or characteristic can combine in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be appreciated that magnitude of the sequence numbers of the above procedures are not meant to execute suitable Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present invention Process constitutes any restriction.
In embodiment provided herein, it should be appreciated that " B corresponding with A " indicates that B is associated with A, can be with according to A Determine B.It is also to be understood that determine that B is not meant to determine B only according to A according to A, it can also be according to A and/or other information Determine B.
In several embodiments provided herein, it should be understood that disclosed method and apparatus, it can be by other Mode realize.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only For a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine Or it is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed phase Coupling, direct-coupling or communication connection between mutually can be through some interfaces, the INDIRECT COUPLING or communication of device or unit Connection can be electrical property, mechanical or other forms.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that the independent physics of each unit includes, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or network side equipment etc.) executes transmitting-receiving side described in each embodiment of the present invention The part steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, letter Claim ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art For, without departing from the principles of the present invention, it can also make several improvements and retouch, these improvements and modifications It should be regarded as protection scope of the present invention.

Claims (19)

1. a kind of switching method of photographing mode, suitable for including the terminal of the first display screen, second display screen and camera, institute The shooting direction for stating camera is consistent with the display direction of first display screen, which is characterized in that the switching method includes:
Target photographing mode is determined according to the sensor parameters of the terminal, wherein the sensor parameters of the terminal include: rotation Turn the image information of parameter and/or camera acquisition;
The photographing mode of the terminal is switched to the target photographing mode;
First display screen is controlled according to the target photographing mode and second display screen is lighted or closed, and control is in institute State the image that the camera acquisition is shown on the first display screen or second display screen.
2. switching method according to claim 1, which is characterized in that the photographing mode of the terminal includes: self-timer mode Mode is clapped with scape;
First display screen is controlled according to the target photographing mode and second display screen is lighted or closed, and control is in institute State the image that the camera acquisition is shown on the first display screen or second display screen, comprising:
If the target photographing mode is self-timer mode, lights the first display screen of the terminal and close the of the terminal Two display screens, the image of the camera acquisition described in the first display screen display;
If the target photographing mode is that scape claps mode, lights the second display screen of the terminal and close the of the terminal One display screen shows the image of the camera acquisition on the second display screen.
3. switching method according to claim 1 or 2, which is characterized in that the sensor parameters according to the terminal Determine target photographing mode, comprising:
Judge whether can recognize complete face in described image, and face accounts for the ratio of described image more than or equal to default ratio Example;
If can recognize complete face in described image, and the ratio of described image shared by face is more than or equal to preset ratio, Then determine that self-timer mode is target photographing mode;
If can recognize complete face in described image, and the ratio of described image shared by face is less than preset ratio, then really Determine scape to clap mode to be target photographing mode.
4. switching method according to claim 1 or 2, which is characterized in that the sensor parameters according to the terminal Determine target photographing mode, comprising:
Judge whether the rotation parameter of the terminal meets preset condition;
If the rotation parameter of the terminal meets preset condition, it is determined that it is target photographing mode that scape, which claps mode,.
5. switching method according to claim 1 or 2, which is characterized in that the sensor parameters according to the terminal Determine target photographing mode, comprising:
The image of the camera acquisition of the terminal is identified, recognition result is obtained;
If the recognition result is that cannot recognize that face in described image, judge whether the rotation parameter of the terminal meets Preset condition, if the rotation parameter of the terminal meets preset condition, it is determined that it is target photographing mode that scape, which claps mode,.
6. switching method according to claim 4 or 5, which is characterized in that the rotation parameter of the judgement terminal is It is no to meet preset condition, comprising:
If the terminal around first axle first rotation angle be less than or equal to rotation angle allowable error value range, the terminal around Second axis is to rotate according to first direction, and the terminal rotates angle and institute around the third that the second axis rotates according to first direction The first value that the sum of angle between the first display screen and second display screen is obtained with the first predetermined angle remainder is stated, it is pre- with second If the absolute value of angle difference is less than or equal to rotation angle allowable error value range, determine that the rotation parameter of the terminal meets Preset condition;
Wherein, the first axle is parallel to the first side of the first display screen, and second axis is parallel to the second of the first display screen Side, the first axle are vertical with second axis.
7. switching method according to claim 4 or 5, which is characterized in that the rotation parameter of the judgement terminal is It is no to meet preset condition, comprising:
If the terminal around first axle first rotation angle be less than or equal to rotation angle allowable error value range, the terminal around Second axis is rotated according to second direction, and the 4th rotation angle and that the terminal is rotated according to second direction around the second axis The second value that the difference of angle between one display screen and second display screen and the first predetermined angle remainder obtain, with the second preset angle When spending the absolute value of difference less than or equal to rotation angle allowable error value range, it is default to determine that the rotation parameter of the terminal meets Condition;
Wherein, the second direction is the opposite direction of first direction;The first axle is parallel to the first side of the first display screen, Second axis is parallel to the second side of the first display screen, and the first axle is vertical with second axis.
8. switching method according to claim 4 or 5, which is characterized in that the rotation parameter of the judgement terminal is It is no to meet preset condition, comprising:
If the terminal is greater than rotation angle allowable error value range, and first rotation around the first rotation angle of first axle The absolute value of third value and the second predetermined angle difference that angle and the first predetermined angle remainder obtain, the terminal are around the second axis Second rotation angle and first display screen and second display screen between angle be respectively less than be equal to rotation angle allow When error range value, determine that the rotation parameter of the terminal meets preset condition;
Wherein, the first axle is parallel to the first side of the first display screen, and second axis is parallel to the second of the first display screen Side, the first axle are vertical with second axis.
9. a kind of terminal, comprising: the first display screen, second display screen and camera, the shooting direction of the camera with it is described The display direction of first display screen is consistent, which is characterized in that the terminal further include:
Detection module, for determining target photographing mode according to the sensor parameters of the terminal, wherein the sensing of the terminal Device parameter includes: the image information of rotation parameter and/or camera acquisition;
Photographing mode module, for the photographing mode of the terminal to be switched to the target photographing mode;
Photographing mode module is also used to control first display screen according to the target photographing mode and second display screen is lighted Or it closes, and control shows the image of the camera acquisition on first display screen or second display screen.
10. terminal according to claim 9, which is characterized in that the photographing mode of the terminal includes: self-timer mode and scape Bat mode;
The photographing mode module includes:
First count shines mode unit, if being self-timer mode for the target photographing mode, light the terminal first is aobvious Display screen and the second display screen for closing the terminal, the image of the camera acquisition described in the first display screen display;
Second count shines mode unit, if being that scape claps mode for the target photographing mode, light the terminal second is aobvious Display screen and the first display screen for closing the terminal show the image of the camera acquisition on the second display screen.
11. terminal according to claim 9 or 10, which is characterized in that the detection module includes:
First judging unit, for judging whether can recognize complete face in described image, and face accounts for the ratio of described image Example is more than or equal to preset ratio;
First determination unit, if for can recognize complete face in described image, and the ratio of described image shared by face More than or equal to preset ratio, it is determined that self-timer mode is target photographing mode;
Second determination unit, if for can recognize complete face in described image, and the ratio of described image shared by face Less than preset ratio, it is determined that it is target photographing mode that scape, which claps mode,.
12. terminal according to claim 9 or 10, which is characterized in that the sensor parameters according to the terminal are true Set the goal photographing mode, comprising:
Judging submodule, for judging whether the rotation parameter of the terminal meets preset condition;
Submodule is determined, if the rotation parameter for the terminal meets preset condition, it is determined that scape claps mode as target bat According to mode.
13. terminal according to claim 9 or 10, which is characterized in that the detection module includes:
Recognition of face submodule, the image for the camera acquisition to the terminal identifies, obtains recognition result;
Judging submodule judges the terminal if being also used to the recognition result is that cannot recognize that face in described image Rotation parameter whether meet preset condition;
Submodule is determined, if the rotation parameter for the terminal meets preset condition, it is determined that scape claps mode as target bat According to mode.
14. terminal according to claim 12 or 13, which is characterized in that the judging submodule includes:
Third determination unit, if the first rotation angle for the terminal around first axle is less than or equal to rotation angle allowable error Value range, the terminal are to rotate according to first direction, and the terminal is rotated according to first direction around the second axis around the second axis Third rotation angle and first display screen and second display screen between the sum of angle obtained with the first predetermined angle remainder The first value arrived determines institute when being less than or equal to rotation angle allowable error value range with the absolute value of the second predetermined angle difference The rotation parameter for stating terminal meets preset condition;
Wherein, the first axle is parallel to the first side of the first display screen, and second axis is parallel to the second of the first display screen Side, the first axle are vertical with second axis.
15. terminal according to claim 12 or 13, which is characterized in that the judging submodule includes:
4th determination unit, if the first rotation angle for the terminal around first axle is less than or equal to rotation angle allowable error Value range, the terminal are to rotate according to second direction, and the terminal is rotated according to second direction around the second axis around the second axis The 4th rotation angle and the first display screen and second display screen between angle difference and the first predetermined angle remainder obtain Second value determines the end when being less than or equal to rotation angle allowable error value range with the absolute value of the second predetermined angle difference The rotation parameter at end meets preset condition;Wherein, the second direction is the opposite direction of first direction;The first axle is parallel In the first side of the first display screen, second axis is parallel to the second side of the first display screen, the first axle and described second Axis is vertical.
16. terminal according to claim 12 or 13, which is characterized in that the judging submodule includes:
5th determination unit, if the first rotation angle for the terminal around first axle is greater than rotation angle allowable error range Value, and the obtained third value of the first rotation angle and the first predetermined angle remainder and the second predetermined angle difference is absolute The angle that value, the terminal rotate angle and first display screen and second display screen around the second of the second axis is respectively less than etc. When rotating angle allowable error value range, determine that the rotation parameter of the terminal meets preset condition;
Wherein, the first axle is parallel to the first side of the first display screen, and second axis is parallel to the second of the first display screen Side, the first axle are vertical with second axis.
17. terminal according to claim 12 or 13, which is characterized in that the terminal further include:
Rotation angle computing module, for according to time interval and angular velocity of rotation, computing terminal in the rotated coordinate system rotating around First axle, the second axis rotation angle and rotation direction;
Recognition of face event sniffer is also used to when having identified complete face, and notice detection module carries out photographing mode inspection It surveys;
Equipment rotates monitor, is used for monitor terminal rotational case, and notice rotation angle computing module calculates correlation values, Yi Jitong Know that detection module carries out photographing mode detection;
Angle calcu-lation module, for providing the angle value between the first display screen of terminal and second display screen.
18. a kind of terminal characterized by comprising memory, processor and storage can transport on a memory and on a processor Capable computer program, the processor realize bat as described in any one of claims 1 to 8 when executing the computer program According to the step in the switching method of mode.
19. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The step in the switching method of photographing mode as described in any one of claims 1 to 8 is realized when execution.
CN201710833316.2A 2017-09-15 2017-09-15 A kind of switching method and terminal of photographing mode Pending CN109510937A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710833316.2A CN109510937A (en) 2017-09-15 2017-09-15 A kind of switching method and terminal of photographing mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710833316.2A CN109510937A (en) 2017-09-15 2017-09-15 A kind of switching method and terminal of photographing mode

Publications (1)

Publication Number Publication Date
CN109510937A true CN109510937A (en) 2019-03-22

Family

ID=65744924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710833316.2A Pending CN109510937A (en) 2017-09-15 2017-09-15 A kind of switching method and terminal of photographing mode

Country Status (1)

Country Link
CN (1) CN109510937A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110225181A (en) * 2019-04-29 2019-09-10 努比亚技术有限公司 A kind of screens switch control method, terminal and computer readable storage medium
CN110798568A (en) * 2019-09-30 2020-02-14 华为技术有限公司 Display control method of electronic equipment with folding screen and electronic equipment
CN111756985A (en) * 2019-03-26 2020-10-09 北京小米移动软件有限公司 Image shooting method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853320A (en) * 2012-12-03 2014-06-11 联想(北京)有限公司 Information processing method and electronic equipment
CN104243829A (en) * 2014-09-28 2014-12-24 小米科技有限责任公司 Self-shooting method and self-shooting device
CN104580891A (en) * 2014-12-18 2015-04-29 深圳市金立通信设备有限公司 Method for terminal to take images
CN105141852A (en) * 2015-10-10 2015-12-09 李彦辰 Control method and control device under double-screen mobile phone shooting mode
CN106469038A (en) * 2016-09-26 2017-03-01 南京酷派软件技术有限公司 Display screen changing method based on multi-screen terminal and device
CN106488130A (en) * 2016-11-15 2017-03-08 上海斐讯数据通信技术有限公司 A kind of screening-mode changing method and its switched system
US20170180649A1 (en) * 2013-06-20 2017-06-22 Samsung Electronics Co., Ltd. Method for photographing control and electronic device thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853320A (en) * 2012-12-03 2014-06-11 联想(北京)有限公司 Information processing method and electronic equipment
US20170180649A1 (en) * 2013-06-20 2017-06-22 Samsung Electronics Co., Ltd. Method for photographing control and electronic device thereof
CN104243829A (en) * 2014-09-28 2014-12-24 小米科技有限责任公司 Self-shooting method and self-shooting device
CN104580891A (en) * 2014-12-18 2015-04-29 深圳市金立通信设备有限公司 Method for terminal to take images
CN105141852A (en) * 2015-10-10 2015-12-09 李彦辰 Control method and control device under double-screen mobile phone shooting mode
CN106469038A (en) * 2016-09-26 2017-03-01 南京酷派软件技术有限公司 Display screen changing method based on multi-screen terminal and device
CN106488130A (en) * 2016-11-15 2017-03-08 上海斐讯数据通信技术有限公司 A kind of screening-mode changing method and its switched system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111756985A (en) * 2019-03-26 2020-10-09 北京小米移动软件有限公司 Image shooting method, device and storage medium
CN110225181A (en) * 2019-04-29 2019-09-10 努比亚技术有限公司 A kind of screens switch control method, terminal and computer readable storage medium
CN110798568A (en) * 2019-09-30 2020-02-14 华为技术有限公司 Display control method of electronic equipment with folding screen and electronic equipment
US11960327B2 (en) 2019-09-30 2024-04-16 Huawei Technologies Co., Ltd. Display control method for electronic device with foldable screen and electronic device

Similar Documents

Publication Publication Date Title
CN106231178B (en) A kind of self-timer method and mobile terminal
CN106101553B (en) A kind of photographic method and mobile terminal
CN107181913B (en) A kind of photographic method and mobile terminal
CN109510937A (en) A kind of switching method and terminal of photographing mode
CN108347559A (en) A kind of image pickup method, terminal and computer readable storage medium
US10191612B2 (en) Three-dimensional virtualization
CN106101544B (en) A kind of image processing method and mobile terminal
CN106027900A (en) Photographing method and mobile terminal
CN105338238B (en) A kind of photographic method and electronic equipment
CN106791375B (en) A kind of shooting focusing method and mobile terminal
CN106372252B (en) A kind of image display method and mobile terminal
CN107222737B (en) A kind of processing method and mobile terminal of depth image data
CN106973237B (en) A kind of image pickup method and mobile terminal
CN107734156A (en) A kind of image pickup method and mobile terminal
CN110533643A (en) Certificate identification method and device
CN108156384A (en) Image processing method, device, electronic equipment and medium
CN107026982B (en) A kind of photographic method and mobile terminal of mobile terminal
CN106303234A (en) photographing processing method and device
CN106341607A (en) Method and terminal to remind user of adjusting their shooting angle
CN110290299A (en) Imaging method, device, storage medium and electronic equipment
CN107509024B (en) One kind is taken pictures processing method and mobile terminal
CN107679381B (en) A kind of notification information processing method and mobile terminal
CN107580182A (en) A kind of grasp shoot method, mobile terminal and computer-readable recording medium
CN107105165A (en) The switching method and device of a kind of exposal model
CN107517347B (en) A kind of asterism image pickup method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20190322