CN109327568A - A kind of method and mobile terminal switching camera - Google Patents

A kind of method and mobile terminal switching camera Download PDF

Info

Publication number
CN109327568A
CN109327568A CN201811215443.7A CN201811215443A CN109327568A CN 109327568 A CN109327568 A CN 109327568A CN 201811215443 A CN201811215443 A CN 201811215443A CN 109327568 A CN109327568 A CN 109327568A
Authority
CN
China
Prior art keywords
video pictures
mobile terminal
camera
video
target object
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
CN201811215443.7A
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.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou 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 Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN201811215443.7A priority Critical patent/CN109327568A/en
Publication of CN109327568A publication Critical patent/CN109327568A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone

Abstract

The embodiment of the invention discloses a kind of methods and mobile terminal for switching camera, are related to field of communication technology, possibly can not can not rapidly switch camera caused by quick operating handset because of user to solve the problems, such as.This method comprises: whether include target object, which obtained by the first camera of mobile terminal in the case where showing video calling interface if detecting in the first video pictures in the video calling interface;In the case where not including the target object in first video pictures, first video pictures update is shown as the second video pictures, it include the target object in second video pictures, second video pictures are obtained by the second camera of the mobile terminal, and the direction which acquires picture is different from first camera acquisition direction of picture.The program is applied particularly in the scene of video calling.

Description

A kind of method and mobile terminal switching camera
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of methods and mobile terminal for switching camera.
Background technique
With the continuous development of terminal technology, mobile terminal using more and more extensive.Currently, more and more users are logical The mode for crossing video calling is linked up.
For example, in video call process, needing to show in video calling interface for using phone video call Target object may be frequently mobile.It (is needed at this time using hand for example, the target object is moved to before mobile phone for a moment The front camera of machine carries out video calling), it is moved to behind mobile phone for a moment and (needs the rear camera using mobile phone at this time Carry out video calling).Such user may need frequently to trigger the front camera and rear camera of switch mobile phone.
However, the screen when mobile phone is bigger, and user's single hand operation of mobile phone;Or when mobile phone is not in user hand, User possibly can not quick operating handset, and then lead to not rapidly switch camera.
Summary of the invention
The embodiment of the present invention provides a kind of method and mobile terminal for switching camera, to solve because user's possibly can not be fast The problem of camera can not rapidly be switched caused by the operating handset of speed.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, the embodiment of the invention provides a kind of methods for switching camera, this method comprises:
In the case where showing video calling interface, detects and whether wrapped in the first video pictures in the video calling interface Target object is included, which obtained by the first camera of mobile terminal;
In the case where not including the target object in first video pictures, first video pictures update is shown as Second video pictures include the target object in second video pictures, which is by the mobile terminal What second camera obtained, the direction which acquires picture is different from first camera acquisition direction of picture.
Second aspect, the embodiment of the invention provides a kind of mobile terminal, which includes: detection module and display Module;
The detection module, for detecting first in the video calling interface in the case where showing video calling interface It whether include target object in video pictures, which obtained by the first camera of mobile terminal;
The display module, for detected in the detection module do not include in first video pictures target object feelings Under condition, first video pictures update is shown as the second video pictures, includes the target object in second video pictures, it should Second video pictures are obtained by the second camera of the mobile terminal, which acquires the direction of picture and be somebody's turn to do The direction that first camera acquires picture is different.
The third aspect the embodiment of the invention provides a kind of mobile terminal, including processor, memory and is stored in this and deposits On reservoir and the computer program that can run on the processor, such as first is realized when which is executed by the processor The step of method of switching camera in aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage mediums Computer program is stored in matter, and the side such as the switching camera in first aspect is realized when which is executed by processor The step of method.
In embodiments of the present invention, mobile terminal detects video calling circle in the case where showing video calling interface It whether include target object in the first video pictures in face, which is the first camera by mobile terminal It obtains;In the case where not including the target object in first video pictures, first video pictures update is shown as Second video pictures include the target object in second video pictures, which is by the mobile terminal What second camera obtained, the direction which acquires picture is different from first camera acquisition direction of picture. With this solution, in the case where user carries out video calling using the first camera of mobile terminal, if mobile terminal detects Do not include target object in the first video pictures obtained to first camera, is then shown as first video pictures update The second video pictures that second camera obtains include the target object in second video pictures.When needs are in video calling The position of the target object shown in interface mobile terminal different direction (such as all around) alternately when, may be implemented with Variation of the target object in the orientation of mobile terminal, the camera of mobile terminal is switched fast, so as to so that target object It is shown in always in video calling interface.It can solve because user possibly can not quickly can not be quick caused by operating handset Ground switches the problem of camera.
Detailed description of the invention
Fig. 1 is a kind of configuration diagram of Android operation system provided in an embodiment of the present invention;
Fig. 2 is one of the flow chart of method of switching camera provided in an embodiment of the present invention;
Fig. 3 is one of the schematic diagram at interface of method of switching camera provided in an embodiment of the present invention;
Fig. 4 is the two of the flow chart of the method for switching camera provided in an embodiment of the present invention;
Fig. 5 is the three of the flow chart of the method for switching camera provided in an embodiment of the present invention;
Fig. 6 is the four of the flow chart of the method for switching camera provided in an embodiment of the present invention;
Fig. 7 is the two of the schematic diagram at the interface of the method for switching camera provided in an embodiment of the present invention;
Fig. 8 is the five of the flow chart of the method for switching camera provided in an embodiment of the present invention;
Fig. 9 is the six of the flow chart of the method for switching camera provided in an embodiment of the present invention;
Figure 10 is one of the structural schematic diagram of mobile terminal provided in an embodiment of the present invention;
Figure 11 is the second structural representation of mobile terminal provided in an embodiment of the present invention;
Figure 12 is the third structural representation of mobile terminal provided in an embodiment of the present invention;
Figure 13 is the four of the structural schematic diagram of mobile terminal provided in an embodiment of the present invention;
Figure 14 is the hardware schematic of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Term " first ", " second ", " third " and " the 4th " in description and claims of this specification etc. are to use In the different object of difference, rather than it is used for the particular order of description object.For example, the first input, the second input, third input With the particular order that the 4th input etc. is for distinguishing different inputs, rather than for describe to input.
In embodiments of the present invention, " illustrative " or " such as " etc. words for indicate make example, illustration or explanation.This Be described as in inventive embodiments " illustrative " or " such as " any embodiment or design scheme be not necessarily to be construed as comparing Other embodiments or design scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words purport Related notion is being presented in specific ways.
In the description of the embodiment of the present invention, unless otherwise indicated, the meaning of " plurality " is refer to two or more, For example, multiple processing units refer to two or more processing unit;Multiple element refers to two or more Element etc..
The embodiment of the present invention provides a kind of method for switching camera, and mobile terminal is the case where showing video calling interface Under, whether include target object, which is to pass through if detecting in the first video pictures in the video calling interface What the first camera of mobile terminal obtained;In the case where not including the target object in first video pictures, by this The update of one video pictures is shown as the second video pictures, includes the target object in second video pictures, which draws Face is obtained by the second camera of the mobile terminal, which acquires direction and first camera of picture The direction for acquiring picture is different.With this solution, the feelings of video calling are carried out using the first camera of mobile terminal in user Under condition, if mobile terminal detects that in the first video pictures that first camera obtains do not include target object, by this One video pictures update the second video pictures for being shown as second camera acquisition, include the target pair in second video pictures As.When in the different direction of mobile terminal, (such as front and back is left for the position of target object for needing to show in video calling interface It is right) alternately when, the variation with target object in the orientation of mobile terminal may be implemented, be switched fast the camera shooting of mobile terminal Head, so as to so that target object is shown in always in video calling interface.It can solve because user possibly can not quickly grasp Make the problem of can not rapidly switching camera caused by mobile phone.
Below by taking Android operation system as an example, the method for introducing switching camera provided in an embodiment of the present invention is answered Software environment.
As shown in Figure 1, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming In 1, the framework of Android operation system includes 4 layers, be respectively as follows: application layer, application framework layer, system Runtime Library layer and Inner nuclear layer (is specifically as follows Linux inner core).
Wherein, application layer includes each application program (including system application and in Android operation system Tripartite's application program).
Application framework layer is the frame of application program, and developer can be in the exploitation for the frame for abiding by application program In the case where principle, some application programs are developed based on application framework layer.
System Runtime Library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour As system it is provided needed for all kinds of resources.Android operation system running environment is used to provide software loop for Android operation system Border.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 1 The software program of the method for switching camera provided in an embodiment of the present invention is realized in the system architecture of operating system, exploitation, thus The method of the switching camera is run based on Android operation system as shown in Figure 1.That is processor or terminal can In the method for realizing switching camera provided in an embodiment of the present invention by running the software program in Android operation system.
Mobile terminal in the embodiment of the present invention can be mobile phone, tablet computer, laptop, palm PC, vehicle-mounted Terminal, wearable device, Ultra-Mobile PC (ultra-mobile personal computer, UMPC), online This or personal digital assistant (personal digital assistant, PDA) etc., the embodiment of the present invention does not limit specifically It is fixed.
The executing subject of the method for switching camera provided in an embodiment of the present invention can be above-mentioned mobile terminal, can also Think the functional module and/or functional entity that can be realized this method in the mobile terminal, it specifically can be according to actual use Demand determines that the embodiment of the present invention is not construed as limiting.Below by taking mobile terminal as an example, switching provided in an embodiment of the present invention is imaged The method of head is illustratively illustrated.
Refering to what is shown in Fig. 2, this method may include following the embodiment of the invention provides a kind of method for switching camera Step 201- step 202.
Step 201, in the case where showing video calling interface, mobile terminal detects first in the video calling interface It whether include target object in video pictures.
First video pictures are obtained by the first camera of mobile terminal.
Illustratively, as shown in figure 3, being the video calling interface of mobile phone, which includes under normal conditions Two video windows, wherein video window 1 is used to show the video pictures of the camera acquisition of current mobile terminal, i.e. this hair Bright first video pictures as described in the examples or the second video pictures;Video window 2 for show and current mobile terminal into The video pictures of the camera acquisition of the opposite end mobile terminal of row video calling.
In the case where mobile terminal shows video calling interface, mobile terminal detects first in the video calling interface It whether include target object in video pictures.Wherein it is possible to using deep learning method detect the first video pictures in whether Including target object, the method for deep learning for example can be the method etc. of convolutional neural networks (CNN), be also possible to using it Whether it includes target object that his method detects in the first video pictures, and the embodiment of the present invention is not construed as limiting.Specific detection side Method can refer to existing the relevant technologies, and it will not go into details herein.
Illustratively, whether it includes target object that mobile terminal can detecte in every frame image in the first video pictures, The frame image in the first video pictures can also be periodically extracted, detects in the image and whether wraps according to the preset period Include target object.For example, the preset period can be 50ms, 100ms, 120ms etc., the embodiment of the present invention is not construed as limiting.
Step 202, in the case where in first video pictures do not include the target object, mobile terminal first regards this Frequency frame updating is shown as the second video pictures.
It include the target object in second video pictures, which taken the photograph by the second of the mobile terminal As head acquisition, the direction and first camera acquisition direction of picture of second camera acquisition picture are different.
Do not include the target object in first video pictures, illustrates target object in the first camera scene collected Other than region;Include the target object in second video pictures, illustrates target object in second camera scene collected In region.At this point, the update of the first video pictures is shown as the second video pictures by mobile terminal, also the first camera is switched For second camera.
The direction that the second camera acquires picture is different from first camera acquisition direction of picture, that is, assumes movement Terminal is fixed, and the scene areas of second camera acquisition is different from the scene areas that the first camera acquires.
Optionally, the folder between the direction of second camera acquisition picture and the direction of first camera acquisition picture Angle is that 180 ° namely second camera and the first camera are located on two opposite surfaces of mobile terminal, for example, it may be The preceding camera and rear camera that we usually say.
The embodiment of the invention provides a kind of method for switching camera, feelings of the mobile terminal at display video calling interface Under condition, whether include target object, which is logical if detecting in the first video pictures in the video calling interface Cross the first camera acquisition of mobile terminal;In the case where not including the target object in first video pictures, by this The update of first video pictures is shown as the second video pictures, includes the target object, second video in second video pictures Picture is obtained by the second camera of the mobile terminal, which acquires direction and first camera shooting of picture The direction of head acquisition picture is different.With this solution, video calling is carried out using the first camera of mobile terminal in user In the case of, if mobile terminal detect first camera obtain the first video pictures in do not include target object, should First video pictures update the second video pictures for being shown as second camera acquisition, include the target in second video pictures Object.When the position of target object for needing to show in video calling interface is in different direction (such as the front and back of mobile terminal Left and right) alternately when, the variation with target object in the orientation of mobile terminal may be implemented, be switched fast the camera shooting of mobile terminal Head, so as to so that target object is shown in always in video calling interface.It can solve because user possibly can not quickly grasp Make the problem of can not rapidly switching camera caused by mobile phone.
Whether before including target object in mobile terminal detection video pictures, mobile terminal will first determine target pair As.
Illustratively, in conjunction with Fig. 2, as shown in figure 4, before step 201, switching camera provided in an embodiment of the present invention Method can also include the steps that following 203- steps 204.
Step 203, mobile terminal receive the first input of user, and for triggering, the mobile terminal is determining to be somebody's turn to do for first input Target object.
First input may include appointing on the target object in first video pictures or in the first video pictures It anticipates the clicking operation of position, also may include user on the target object in first video pictures or the first video pictures In any position slide, also may include on the target object in first video pictures or the first video draw Other feasibilities of any position in face operate, and specifically can determine that the embodiment of the present invention is not according to actual use demand It limits.
Illustratively, above-mentioned clicking operation can be single-click operation, can for long-pressing click (click the time be greater than or wait In preset time) operation, it is also possible to click (clicking the time less than preset time) operation of short-press, can be grasped to double-click Make, or is the clicking operation etc. of arbitrary number of times.Above-mentioned slide can be the slide to any direction, such as upwards Sliding, is slided to the left or is slided to the right slide downward.
Illustratively, user can be triggered mobile terminal and be determined target pair with the target object in the first video pictures of long-pressing As or user can show the first prompt information with the target object in the first video pictures of long-pressing, mobile terminal, the first prompt Information determines that the object is target object for prompting the user whether.Mobile terminal receives the input that user selects "Yes", by this Object is determined as target object.
Illustratively, mobile terminal receives the click input of any position of the user on the first video pictures, mobile whole The second prompt information of end display, the second prompt information are used to indicate user and input target object, receive user and input target object Input, determine target object.The title for the target object that mobile terminal can be inputted according to user, in the first video pictures Match target object corresponding with the title of target object.
Step 204, in response to first input, mobile terminal determines the target object.
After mobile terminal determines the target object, target object can be marked in the first video pictures, such as in target Data collection shows object bounds frame;Target object can not also be marked in the first video pictures;It specifically can be according to reality Border use demand determines that the embodiment of the present invention is not construed as limiting.
Whether determine target object in advance and can be detected with terminal easy to remove in first video pictures includes target object.
Illustratively, in conjunction with Fig. 4, as shown in figure 5, before step 203, switching camera provided in an embodiment of the present invention Method can also include the steps that following 205- steps 207.
Step 205, mobile terminal are before showing the video calling interface, display reminding information.
The prompt information is used to indicate whether that enabling objective function, the objective function are to automatically switch camera function.
Automatically switch camera function to refer in the case where mobile terminal shows video calling interface, starts to detect the video It whether include target object in the first video pictures (such as the first camera obtain) in call interface;And it is tied according to detection Fruit determines whether to switch the function of camera.It specifically includes: not including the feelings of target object in detecting the first video pictures Under condition, switch camera, and by first video pictures update be shown as the second video pictures (such as by the first camera switch For second camera, the second video pictures are what second camera obtained);It include target pair in detecting the first video pictures As in the case where, continue the real-time detection video calling interface in by the first camera obtain video pictures in whether include Target object.
When mobile terminal, which receives user, to be selected to open video calling interface, i.e. user's selection passes through video calling mode Come when carrying out communication exchange, mobile terminal elder generation display reminding information (herein, for the ease of distinguishing, is denoted as third prompt information), Prompt information, which is used to indicate whether to enable, automatically switches camera function.
Step 206, mobile terminal receive the second input of user, which enables the objective function for determining.
Can be with reference to the above-mentioned associated description to the first input to the description of the second input, it will not go into details herein.
Step 207, in response to this second input, mobile terminal enables the objective function, and shows the video calling interface.
It should be understood that after step 204 step 205- step 207, this hair can also be executed before step 202 Bright embodiment is not construed as limiting.
In this way when user use video call function initial time, that is, prompt the user whether enable automatically switch camera Function, can remind whether user needs to enable automatic switchover camera function in time, forget to avoid user using the function, User experience can be improved.
It illustratively, include first identifier in the video calling interface, which, which is used to indicate, enables the target function It can or disable the objective function.In conjunction with Fig. 4, as shown in fig. 6, before step 203, switching camera shooting provided in an embodiment of the present invention The method of head can also include the steps that following 208- steps 209.
Step 208, mobile terminal receive third input of the user in the first identifier.
Can be with reference to the above-mentioned associated description to the first input to the description of third input, it will not go into details herein.
Step 209 is inputted in response to the third, and mobile terminal indicates the case where enabling the objective function in the first identifier Under, the objective function is enabled, in the case where the first identifier indicates to disable the objective function, disables the objective function.
The objective function is disabled, that is, cancels the objective function.
Illustratively, as shown in (a) in Fig. 7, the first identifier at video calling interface is shown as " enabling target function Can " in the case where, user clicks the first identifier, and mobile terminal enables the objective function (automatically switching camera function);Such as Shown in (b) in Fig. 7, in the case where the first identifier at video calling interface is shown as " disabling objective function ", user is clicked The first identifier, mobile terminal disable the objective function (automatically switching camera function).
First identifier can be to be shown on video calling interface in real time, is also possible to receive user when mobile terminal In the click input on video calling interface, first identifier is shown, within a preset time, if mobile terminal is to receive user Click input on video calling interface, then hide first identifier.
In this way when user needs using objective function, objective function can be enabled, when user does not need using target function When energy, objective function can be disabled, user, which can according to need, to be determined whether to facilitate user flexibility control using objective function, User experience can be improved.
Illustratively, in conjunction with Fig. 5, as shown in figure 8, combine Fig. 6, as shown in figure 9, before step 202, the present invention The method for the switching camera that embodiment provides can also include the steps that following 210- steps 212, above-mentioned steps 202 are specific It can be realized by following step 202a.
Step 210 (optional), mobile terminal control second camera unlatching.
Step 211, mobile terminal obtain second video pictures by the second camera.
Whether it includes the target object that step 212, mobile terminal detect in second video pictures.
When it does not include target object that mobile terminal, which detects in the first video pictures, mobile terminal controls second camera It opens, which is obtained by the second camera, and whether detect in second video pictures includes the target Object.Detect in second video pictures whether the method including the target object can be drawn with reference to above-mentioned one video to detection In face whether include the target object method associated description, details are not described herein again.
Step 202a, in the case where including the target object in second video pictures, mobile terminal first regards this Frequency frame updating is shown as second video pictures.
In the case where including the target object in second video pictures, mobile terminal updates first video pictures It is shown as second video pictures;In the case where not including the target object in second video pictures, mobile terminal continues Show first video pictures.
Mobile terminal may insure in the second video pictures to include target object in this way, and user experience can be improved.
As shown in Figure 10, the embodiment of the present invention provides a kind of mobile terminal 120, which includes: detection module 121 and display module 122;
The detection module 121 detects the in the video calling interface in the case where showing video calling interface It whether include target object in one video pictures, which obtained by the first camera of mobile terminal;
The display module 122, for detecting in first video pictures do not include the target pair in the detection module 121 As in the case where, first video pictures update is shown as the second video pictures, includes the target in second video pictures Object, second video pictures are obtained by the second camera of the mobile terminal, which acquires picture Direction is different from first camera acquisition direction of picture.
Optionally, the folder between the direction of second camera acquisition picture and the direction of first camera acquisition picture Angle is 180 °.
Optionally, in conjunction with Figure 10, as shown in figure 11, the mobile terminal 120 further include: receiving module 123 and determining module 124;The receiving module 123, for whether including target pair in the first video pictures in the detection video calling interface The first input as before, receiving user, first input determine the target object for triggering the mobile terminal;The determination mould Block 124, for determining the target object in response to received first input of the receiving module 123.
Optionally, in conjunction with Figure 11, as shown in figure 12, the mobile terminal 120 further include: enable module 125;The display module 122, it is also used to before showing the video calling interface, display reminding information, which is used to indicate whether to enable mesh Function is marked, which is to automatically switch camera function;The receiving module 123 is also used to receive the second input of user, Second input enables the objective function for determining;The enabling module 125, for received in response to the receiving module 123 Second input, enables the objective function, and show the video calling interface.
It optionally, include first identifier in the video calling interface, which, which is used to indicate, enables the objective function Or disable the objective function;The receiving module 123 is also used in the first video pictures in the detection video calling interface Before whether including target object, third input of the user in the first identifier is received;The enabling module 125, is also used to ring Should be inputted in the third, the first identifier indicate enable the objective function in the case where, enable the objective function, this first In the case that mark instruction disables the objective function, the objective function is disabled.
Optionally, in conjunction with Figure 12, as shown in figure 13, the mobile terminal 120 further include: obtain module 126;The acquisition module 126, for before first video pictures update is shown as the second video pictures by this, being obtained by the second camera should Second video pictures;Whether the detection module 121 wraps for detecting in second video pictures that the acquisition module 126 obtains Include the target object;The display module 122, in the case where being specifically used in second video pictures including the target object, First video pictures update is shown as second video pictures.
Mobile terminal provided in an embodiment of the present invention can be realized in above method embodiment one of any institute of Fig. 2 to Fig. 9 The each process shown, to avoid repeating, details are not described herein again.
The embodiment of the invention provides a kind of mobile terminal, mobile terminal is in the case where showing video calling interface, inspection Whether include target object, which is by mobile whole if surveying in the first video pictures in the video calling interface What first camera at end obtained;In the case where not including the target object in first video pictures, by first video Frame updating is shown as the second video pictures, includes the target object in second video pictures, which is logical The second camera acquisition of the mobile terminal is crossed, which acquires the direction of picture and first camera acquires picture The direction in face is different.With this solution, in the case where user carries out video calling using the first camera of mobile terminal, if Mobile terminal detect first camera obtain the first video pictures in do not include target object, then by first video draw Face updates the second video pictures for being shown as second camera acquisition, includes the target object in second video pictures.When need The position for the target object to be shown in video calling interface mobile terminal different direction (such as all around) alternately When, the variation with target object in the orientation of mobile terminal may be implemented, be switched fast the camera of mobile terminal, so as to So that target object is shown in always in video calling interface.It can solve because user possibly can not lead due to quick operating handset The problem of can not rapidly switching camera of cause.
A kind of hardware structural diagram of Figure 14 mobile terminal of each embodiment to realize the present invention.As shown in figure 14, The mobile terminal 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, with And the equal components of power supply 111.It will be understood by those skilled in the art that mobile terminal structure shown in Figure 14 is not constituted to movement The restriction of terminal, mobile terminal may include perhaps combining certain components or different than illustrating more or fewer components Component layout.In embodiments of the present invention, mobile terminal includes but is not limited to mobile phone, tablet computer, laptop, palm electricity Brain, vehicle mobile terminals, wearable device and pedometer etc..
Wherein, processor 110, for detecting in the video calling interface in the case where showing video calling interface It whether include target object in first video pictures, which obtained by the first camera of mobile terminal 's;In the case where for not including the target object in first video pictures, this first is regarded for user's display unit 106 Frequency frame updating is shown as the second video pictures, includes the target object in second video pictures, which is It is obtained by the second camera of the mobile terminal, which acquires the direction of picture and first camera acquires The direction of picture is different.
Mobile terminal provided in an embodiment of the present invention, for mobile terminal in the case where showing video calling interface, detection should It whether include target object in the first video pictures in video calling interface, which is by mobile terminal What the first camera obtained;In the case where not including the target object in first video pictures, by first video pictures Update is shown as the second video pictures, includes the target object in second video pictures, which is by this What the second camera of mobile terminal obtained, which acquires the direction of picture and first camera acquires picture Direction is different.With this solution, in the case where user carries out video calling using the first camera of mobile terminal, if mobile Terminal detect first camera obtain the first video pictures in do not include target object, then more by first video pictures The second video pictures of second camera acquisition are newly shown as, include the target object in second video pictures.When needs exist The position of the target object shown in video calling interface mobile terminal different direction (such as all around) alternately when, can To realize variation with target object in the orientation of mobile terminal, be switched fast the camera of mobile terminal, so as to so that Target object is shown in always in video calling interface.It can solve because user possibly can not be quickly caused by operating handset The problem of camera can not rapidly be switched.
It should be understood that the embodiment of the present invention in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 101 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by wireless communication system and network and other set Standby communication.
Mobile terminal provides wireless broadband internet by network module 102 for user and accesses, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 103 can be received by radio frequency unit 101 or network module 102 or in memory 109 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also be provided and be moved The relevant audio output of specific function that dynamic terminal 100 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 103 includes loudspeaker, buzzer and receiver etc..
Input unit 104 is for receiving audio or video signal.Input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or network module 102.Mike Wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 101 is converted in the case where telephone calling model.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 include touch panel 1071 and Other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receiving area It manages the order that device 110 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touching The type for touching event provides corresponding visual output on display panel 1061.Although in Figure 14, touch panel 1071 and aobvious Show that panel 1061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments In, can be integrated by touch panel 1071 and display panel 1061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place is without limitation.
Interface unit 108 is the interface that external device (ED) is connect with mobile terminal 100.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in mobile terminal 100 or can be used in 100 He of mobile terminal Data are transmitted between external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Optionally, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, optionally, power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, mobile terminal 100 includes some unshowned functional modules, details are not described herein.
Optionally, the embodiment of the present invention also provides a kind of mobile terminal, may include above-mentioned processor as shown in figure 14 110, memory 109, and it is stored in the computer program that can be run on memory 109 and on the processor 110, the calculating Realized when machine program is executed by processor 110 Fig. 2 to Fig. 9 in above method embodiment it is one of any shown in switching camera Each process of method, and identical technical effect can be reached, to avoid repeating, details are not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, realized when which is executed by processor in above method embodiment Fig. 2 to Fig. 9 it is one of any shown in Switch each process of the method for camera, and identical technical effect can be reached, to avoid repeating, details are not described herein again.Its In, the computer readable storage medium being somebody's turn to do, such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a mobile terminal (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute the method that each embodiment of the present invention is somebody's turn to do.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.
It is each when specific implementation for example, each attached drawing in the present embodiment is to combine exclusive rights embodiment attached drawing exemplary Attached drawing can be combined with other any combinable attached drawings and realize that the embodiment of the present invention is not construed as limiting.

Claims (14)

1. a kind of method for switching camera, which is characterized in that the described method includes:
In the case where showing video calling interface, detect in the first video pictures in the video calling interface whether include Target object, first video pictures are obtained by the first camera of mobile terminal;
In the case where not including the target object in first video pictures, first video pictures are updated and are shown It include the target object in second video pictures, second video pictures are by described for the second video pictures What the second camera of mobile terminal obtained, the direction of the second camera acquisition picture and first camera acquire picture The direction in face is different.
2. the method according to claim 1, wherein the direction and described the of second camera acquisition picture The angle that one camera acquires between the direction of picture is 180 °.
3. the method according to claim 1, wherein the first video in the detection video calling interface Before whether including target object in picture, further includes:
The first input of user is received, first input determines the target object for triggering the mobile terminal;
In response to first input, the target object is determined.
4. the method according to claim 1, wherein the method also includes:
Before showing the video calling interface, display reminding information, the prompt information is used to indicate whether to enable target Function, the objective function are to automatically switch camera function;
The second input of user is received, second input enables the objective function for determining;
In response to second input, the objective function is enabled, and show the video calling interface.
5. the method according to claim 1, wherein in the video calling interface include first identifier, it is described First identifier, which is used to indicate, enables the objective function or the disabling objective function;
Before whether including target object in the first video pictures in the detection video calling interface, further includes:
Receive third input of the user in the first identifier;
It is inputted in response to the third, in the case where the first identifier indicates to enable the objective function, enables the mesh Function is marked, in the case where the first identifier indicates to disable the objective function, disables the objective function.
6. method according to claim 1-5, which is characterized in that described update first video pictures shows It is shown as before the second video pictures, further includes:
Second video pictures are obtained by the second camera;
Whether detect in second video pictures includes the target object;
It is described that first video pictures update is shown as the second video pictures, comprising:
In the case where including the target object in second video pictures, first video pictures update is shown as Second video pictures.
7. a kind of mobile terminal, which is characterized in that the mobile terminal includes: detection module and display module;
The detection module, for detecting first in the video calling interface in the case where showing video calling interface It whether include target object in video pictures, first video pictures are obtained by the first camera of mobile terminal;
The display module, for detecting in first video pictures do not include the target object in the detection module In the case where, first video pictures update is shown as the second video pictures, includes described in second video pictures Target object, second video pictures are obtained by the second camera of the mobile terminal, the second camera The direction for acquiring picture is different from first camera acquisition direction of picture.
8. mobile terminal according to claim 7, which is characterized in that the direction of the second camera acquisition picture and institute The angle stated between the direction of the first camera acquisition picture is 180 °.
9. mobile terminal according to claim 7, which is characterized in that the mobile terminal further include: receiving module and really Cover half block;
The receiving module, for whether including target in the first video pictures in the detection video calling interface Before object, the first input of user is received, first input determines the target object for triggering the mobile terminal;
The determining module, for determining the target object in response to received first input of the receiving module.
10. mobile terminal according to claim 7, which is characterized in that the mobile terminal further include: enable module;
The display module is also used to before showing the video calling interface, display reminding information, and the prompt information is used In indicate whether enable objective function, the objective function be automatically switch camera function;
The receiving module, is also used to receive the second input of user, and second input enables the target function for determining Energy;
The enabling module, for enabling the objective function in response to received second input of the receiving module, and Show the video calling interface.
11. mobile terminal according to claim 7, which is characterized in that it include first identifier in the video calling interface, The first identifier, which is used to indicate, enables the objective function or the disabling objective function;
Whether the receiving module is also used in the first video pictures in the detection video calling interface include mesh Before marking object, third input of the user in the first identifier is received;
The enabling module is also used to input in response to the third, enables the objective function in first identifier instruction In the case where, the objective function is enabled, in the case where the first identifier indicates to disable the objective function, described in disabling Objective function.
12. according to the described in any item mobile terminals of claim 7-11, which is characterized in that the mobile terminal further include: obtain Modulus block;
The acquisition module, for it is described by first video pictures update be shown as the second video pictures before, pass through The second camera obtains second video pictures;
The detection module, for whether detecting in second video pictures that the acquisition module obtains including the target Object;
The display module will be described in the case where being specifically used in second video pictures including the target object The update of first video pictures is shown as second video pictures.
13. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 6 is realized when the computer program is executed by the processor Any one of described in switching camera method the step of.
14. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence realizes the side such as switching camera described in any one of claims 1 to 6 when the computer program is executed by processor The step of method.
CN201811215443.7A 2018-10-18 2018-10-18 A kind of method and mobile terminal switching camera Pending CN109327568A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811215443.7A CN109327568A (en) 2018-10-18 2018-10-18 A kind of method and mobile terminal switching camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811215443.7A CN109327568A (en) 2018-10-18 2018-10-18 A kind of method and mobile terminal switching camera

Publications (1)

Publication Number Publication Date
CN109327568A true CN109327568A (en) 2019-02-12

Family

ID=65261758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811215443.7A Pending CN109327568A (en) 2018-10-18 2018-10-18 A kind of method and mobile terminal switching camera

Country Status (1)

Country Link
CN (1) CN109327568A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111050109A (en) * 2019-12-24 2020-04-21 维沃移动通信有限公司 Electronic equipment control method and electronic equipment
WO2022068479A1 (en) * 2020-09-30 2022-04-07 北京字节跳动网络技术有限公司 Image processing method and apparatus, and electronic device and computer-readable storage medium
CN115499537A (en) * 2021-06-18 2022-12-20 Oppo广东移动通信有限公司 Microphone control method and device, mobile terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237178A (en) * 2013-03-26 2013-08-07 北京小米科技有限责任公司 Video frame switching method, video frame switching device and video frame switching equipment
US9686497B1 (en) * 2015-10-29 2017-06-20 Crater Group Co. Video annotation and dynamic video call display for multi-camera devices
CN107071329A (en) * 2017-02-27 2017-08-18 努比亚技术有限公司 The method and device of automatic switchover camera in video call process
CN107528938A (en) * 2017-07-26 2017-12-29 维沃移动通信有限公司 A kind of video call method, terminal and computer-readable recording medium
CN108366220A (en) * 2018-04-23 2018-08-03 维沃移动通信有限公司 A kind of video calling processing method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237178A (en) * 2013-03-26 2013-08-07 北京小米科技有限责任公司 Video frame switching method, video frame switching device and video frame switching equipment
US9686497B1 (en) * 2015-10-29 2017-06-20 Crater Group Co. Video annotation and dynamic video call display for multi-camera devices
CN107071329A (en) * 2017-02-27 2017-08-18 努比亚技术有限公司 The method and device of automatic switchover camera in video call process
CN107528938A (en) * 2017-07-26 2017-12-29 维沃移动通信有限公司 A kind of video call method, terminal and computer-readable recording medium
CN108366220A (en) * 2018-04-23 2018-08-03 维沃移动通信有限公司 A kind of video calling processing method and mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111050109A (en) * 2019-12-24 2020-04-21 维沃移动通信有限公司 Electronic equipment control method and electronic equipment
CN111050109B (en) * 2019-12-24 2021-09-17 维沃移动通信有限公司 Electronic equipment control method and electronic equipment
WO2022068479A1 (en) * 2020-09-30 2022-04-07 北京字节跳动网络技术有限公司 Image processing method and apparatus, and electronic device and computer-readable storage medium
CN115499537A (en) * 2021-06-18 2022-12-20 Oppo广东移动通信有限公司 Microphone control method and device, mobile terminal and storage medium
CN115499537B (en) * 2021-06-18 2024-01-09 Oppo广东移动通信有限公司 Microphone control method and device, mobile terminal and storage medium

Similar Documents

Publication Publication Date Title
CN109547694A (en) A kind of image display method and terminal device
CN109743498A (en) A kind of shooting parameter adjustment method and terminal device
CN109543099A (en) A kind of content recommendation method and terminal device
CN110231897A (en) A kind of object processing method and terminal device
CN109857291A (en) A kind of icon display method and terminal device
CN109857495A (en) A kind of display control method and terminal device
CN109510940A (en) A kind of image display method and terminal device
CN108833709A (en) A kind of the starting method and mobile terminal of camera
CN109871164A (en) A kind of message method and terminal device
CN109471690A (en) A kind of message display method and terminal device
CN110069180A (en) A kind of function control method and terminal device
CN109600297A (en) A kind of mark sweep-out method and terminal device
CN109828731A (en) A kind of searching method and terminal device
CN110007822A (en) A kind of interface display method and terminal device
CN109085963A (en) A kind of interface display method and terminal device
CN109151176A (en) A kind of information acquisition method and terminal
CN110233929A (en) A kind of display control method and terminal device
CN109495616A (en) A kind of photographic method and terminal device
CN109522278A (en) A kind of file memory method and terminal device
CN108848256A (en) A kind of key control method and double screen terminal of double screen terminal
CN108881719A (en) A kind of method and terminal device switching style of shooting
CN110049187A (en) A kind of display methods and terminal device
CN110147174A (en) A kind of control method and terminal device
CN110046013A (en) A kind of interface display method and terminal device
CN109816679A (en) A kind of image processing method and terminal device

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: 20190212