The content of the invention
In order to improve video speech quality, the embodiment of the invention provides a kind of method of Switch Video picture, device and
Equipment.The technical scheme is as follows:
A kind of method of Switch Video picture, methods described includes:
In video call process is carried out using the first picture pick-up device, detect and be by gathering image and/or audio-frequency information
It is no that default handover event occurs;
When the generation default handover event is detected, first picture pick-up device is switched into the second picture pick-up device.
It is preferred that in video call process is carried out using the first picture pick-up device, by gathering image and/or audio-frequency information
Detect whether default handover event, including:
When video calling starts, start the first picture pick-up device and at least one second picture pick-up devices, taken the photograph using first
In carrying out video call process as equipment, gathered according to first picture pick-up device and at least one second picture pick-up device
Image, detects whether default handover event;
And/or,
In video call process is carried out using the first picture pick-up device, what the audio frequency apparatus according to the terminal device was gathered
Voice signal, detects whether default handover event.
It is preferred that in video call process is carried out using the first picture pick-up device, by gathering image and/or audio-frequency information
Detect whether default handover event, including:
Detect first picture pick-up device and at least one second picture pick-up device collection image in whether include people
Face;
When not including face in the image of first picture pick-up device collection, and at least one second picture pick-up device adopts
When the image of collection includes face, the generation default handover event is detected;
When the image of described at least one second picture pick-up devices collection includes face, and hold time more than preset duration
When, detect the generation default handover event.
It is preferred that in video call process is carried out using the first picture pick-up device, by gathering image and/or audio-frequency information
Detect whether default handover event, including:
The voice signal of the audio frequency apparatus collection according to the terminal device, obtains the source direction of the voice signal;
When the source direction of the voice signal for getting belongs to the second picture pick-up device scope, generation is detected described
Default handover event.
It is preferred that in video call process is carried out using the first picture pick-up device, by gathering image and/or audio-frequency information
Detect whether default handover event, including:
The voice signal of the audio frequency apparatus collection according to the terminal device, carries out speech recognition;
When recognizing the voice signal and being consistent with default switching voice, the generation default handover event is detected,
The default switching voice is used to trigger the switching of picture pick-up device.
A kind of device of Switch Video picture, described device includes:
Handover event detection module, in video call process is carried out using the first picture pick-up device, being schemed by gathering
Picture and/or audio-frequency information detect whether default handover event;
Picture pick-up device handover module, for when the generation default handover event is detected, the described first shooting being set
It is standby to switch to the second picture pick-up device.
It is preferred that the handover event detection module includes:
First handover event detection unit, for when video calling starts, starting the first picture pick-up device and at least one
Second picture pick-up device, in video call process is carried out using the first picture pick-up device, according to first picture pick-up device and described
The image of at least one second picture pick-up devices collection, detects whether default handover event;
Second handover event detection unit, in video call process is carried out using the first picture pick-up device, according to institute
The voice signal of the audio frequency apparatus collection of terminal device is stated, detects whether default handover event.
It is preferred that the first handover event detection unit includes:
Face datection subelement, for detecting first picture pick-up device and at least one second picture pick-up device collection
Image in whether include face;
First face detection sub-unit, for when not including face, and institute in the image that first picture pick-up device is gathered
When stating the image of at least one second picture pick-up devices collection including face, the generation default handover event is detected;
Second Face datection subelement, the image for being gathered when described at least one second picture pick-up devices includes face,
And hold time during more than preset duration, detect the generation default handover event.
It is preferred that the second handover event detection unit includes:
Sound source direction obtains subelement, for the voice signal gathered according to the audio frequency apparatus of the terminal device,
Obtain the source direction of the voice signal;
First sound detection subelement, for being set when the source direction of the voice signal for getting belongs to second shooting
During standby scope, the generation default handover event is detected.
It is preferred that the second handover event detection unit includes:
Speech recognition subelement, for the voice signal gathered according to the audio frequency apparatus of the terminal device, carries out voice
Identification;
Second sound detection sub-unit, for when recognizing the voice signal and being consistent with default switching voice, detecting
To there is the default handover event, the default switching voice is used to trigger the switching of picture pick-up device.
A kind of equipment, including:
Touch display screen;
One or more processors;
Memory;With
One or more modules, one or more of modules are stored in the memory and are configured to by described one
Individual or multiple computing devices, wherein, one or more of modules have following function:
In video call process is carried out using the first picture pick-up device, detect and be by gathering image and/or audio-frequency information
It is no that default handover event occurs;
When the generation default handover event is detected, first picture pick-up device is switched into the second picture pick-up device.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
Method provided in an embodiment of the present invention, device and equipment, by video call process, by gathering image
And/or audio-frequency information detects whether default handover event, when detect there is default handover event when, will be currently used
First picture pick-up device switches to any one picture pick-up device beyond first picture pick-up device, realizes picture pick-up device on terminal device
Intelligence switching, expand image pickup scope during video calling, carry out the switching of video pictures manually without the need for user, letter
Change handover operation, improve the quality of video calling.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Fig. 1 is a kind of flow chart of the method for Switch Video picture provided in an embodiment of the present invention.The inventive embodiments
Executive agent is terminal device, is applied under scene of the terminal device with least two picture pick-up devices, referring to Fig. 1, the method
Including:
101:In video call process is carried out using the first picture pick-up device, examined by gathering image and/or audio-frequency information
Whether survey there is default handover event;
In the embodiment of the present invention, terminal device has at least two picture pick-up devices, can be used for video calling, ordinary circumstance
Under, the image-capture field of at least two picture pick-up device is the region of the different directions of terminal device.Preferably, this at least two
Individual picture pick-up device includes front camera and rear camera, and such as the image-capture field of front camera is for before terminal device
Square region, the image-capture field of rear camera is the rear area of terminal device.
Wherein, first picture pick-up device is any one picture pick-up device at least two picture pick-up device, in video calling
During beginning, the picture pick-up device that terminal device is given tacit consent to can be carried out video calling by terminal device as first picture pick-up device, also
The picture pick-up device used when can last video calling be closed carries out video calling, such as user as first picture pick-up device
Mobile phone is set give tacit consent to when video calling is proceeded by and use front camera, or user's setting mobile phone is proceeding by video
The camera used when being closed using last video calling during call, the embodiment of the present invention is not limited this.
Additionally, when video calling starts, starting first picture pick-up device, other picture pick-up devices on the terminal device can
To start, it is also possible to do not start, the embodiment of the present invention is not limited this.
Wherein, preset handover event and switch the picture pick-up device for triggering, in the embodiment of the present invention, when terminal device passes through
Collection image and/or audio-frequency information are detected when there is default handover event, can intelligently switch picture pick-up device so that Yong Huke
With in video call process by using different picture pick-up device Switch Video pictures carrying out video calling.
102:When the generation default handover event is detected, first picture pick-up device is switched into the second picture pick-up device.
Wherein, second picture pick-up device is that any one shooting beyond first picture pick-up device on the terminal device sets
It is standby.
Specifically, when the generation default handover event is detected, terminal device is carried out by using first picture pick-up device
Video calling is switched to carries out video calling using second picture pick-up device, i.e., during video calling, this second is taken the photograph
The object user of video calling is sent to as the image that equipment is gathered, the image of object user transmission is received, by user hair
The image for sending is simultaneously displayed on the display screen of terminal device with the image of second picture pick-up device collection, at this point it is possible to should
First picture pick-up device is closed, you can entered using second picture pick-up device always with user in thinking the video call process after
Row video calling, can also keep first picture pick-up device to open, and in the video call process after, occur to be somebody's turn to do when detecting
During default handover event, picture pick-up device switching is carried out again.
For example, during video calling is carried out using front camera, detecting the default handover event of generation, then will
Front camera switches to rear camera, carries out video calling.
Method provided in an embodiment of the present invention, in video call process is carried out using the first picture pick-up device, by collection
Image and/or audio-frequency information detect whether default handover event;When the generation default handover event is detected, by institute
State the first picture pick-up device and switch to the second picture pick-up device.Using technical scheme, by video call process, leading to
Cross collection image and/or audio-frequency information detect whether default handover event, when detect there is default handover event when, will
The first currently used picture pick-up device switches to any one picture pick-up device beyond first picture pick-up device, realizes terminal device
The intelligence switching of upper picture pick-up device, expands image pickup scope during video calling, and video picture is carried out manually without the need for user
The switching in face, improves the quality of video calling.
Alternatively, in video call process is carried out using the first picture pick-up device, detect whether default handover event,
Can be using at least one of following methods:
When video calling starts, start the first picture pick-up device and at least one second picture pick-up devices, taken the photograph using first
In carrying out video call process as equipment, according to the figure that first picture pick-up device and at least one second picture pick-up device are gathered
Picture, detects whether default handover event;
In video call process is carried out using the first picture pick-up device, the sound of the audio frequency apparatus collection according to the terminal device
Message number, detects whether default handover event.
Alternatively, in video call process is carried out using the first picture pick-up device, according to first picture pick-up device with this extremely
The image of few second picture pick-up device collection, detects whether default handover event, can use following methods:
Detect first picture pick-up device and at least one second picture pick-up device collection image in whether include face;
When first picture pick-up device collection image in not include face, and at least one second picture pick-up device collection
When image includes face, detect and the default handover event occurs;
When the image of at least one second picture pick-up device collection includes face, and hold time during more than preset duration,
Detect and the default handover event occurs.
Alternatively, in video call process is carried out using the first picture pick-up device, according to the audio frequency apparatus of the terminal device
The voice signal of collection, detects whether default handover event, can use following methods:
The voice signal of the audio frequency apparatus collection according to the terminal device, obtains the source direction of the voice signal;
When the source direction of the voice signal for getting belongs to the second picture pick-up device scope, this is preset to detect generation
Handover event.
Alternatively, in video call process is carried out using the first picture pick-up device, according to the audio frequency apparatus of the terminal device
The voice signal of collection, detects whether default handover event, can use following methods:
The voice signal of the audio frequency apparatus collection according to the terminal device, carries out speech recognition;
When recognizing the voice signal and being consistent with default switching voice, detect and the default handover event occurs, this is pre-
If switching voice is used to trigger the switching of picture pick-up device.
Method provided in an embodiment of the present invention, in video call process is carried out using the first picture pick-up device, by collection
Image and/or audio-frequency information detect whether default handover event;When the generation default handover event is detected, by institute
State the first picture pick-up device and switch to the second picture pick-up device.Using technical scheme, by video call process, leading to
Cross collection image and/or audio-frequency information detect whether default handover event, when detect there is default handover event when, will
The first currently used picture pick-up device switches to any one picture pick-up device beyond first picture pick-up device, realizes terminal device
The intelligence switching of upper picture pick-up device, expands image pickup scope during video calling, and video picture is carried out manually without the need for user
The switching in face, improves the quality of video calling.
Fig. 2 is a kind of flow chart of the method for Switch Video picture provided in an embodiment of the present invention.The inventive embodiments with
Executive agent is terminal device, and is entered with the technical scheme as a example by two picture pick-up devices to present invention offer on the terminal device
Row explanation, referring to Fig. 2, methods described includes:
201:When video calling starts, start two picture pick-up devices on terminal device;
Specifically, when video calling starts, terminal device receives video calling instruction, the video calling instruction triggers
Start two picture pick-up devices on terminal device, image can be gathered using two picture pick-up devices in video call process,
And the image of any one picture pick-up device collection in two picture pick-up devices is sent to the object user of video calling, depending on
Frequency is conversed.
202:In video call process is carried out using the first picture pick-up device, detect first picture pick-up device and this second take the photograph
As whether including face in the image of equipment collection;
Wherein, second picture pick-up device is different picture pick-up devices from first picture pick-up device, in video call process,
First picture pick-up device and second picture pick-up device gather image, then detect respectively first picture pick-up device collection image and
Whether include face in the image of second picture pick-up device collection, the detection process will be carried out always, until video calling terminates,
Allow that terminal device is detected according to the image for collecting in real time, and cutting for the picture pick-up device is controlled according to testing result
Change.
Those skilled in the art can know that Face datection refers to detect whether there is face in arbitrary digital picture
Picture, and ignore building, number etc. other anything, can be used for video monitor and man-machine interaction etc..
In the embodiment of the present invention, gathered by the image for being gathered to first picture pick-up device respectively and second picture pick-up device
Image carry out Face datection, it may be determined that first picture pick-up device image pickup scope and second picture pick-up device shooting model
With the presence or absence of user in enclosing, and then determine the need for switching over picture pick-up device.
203:When first picture pick-up device collection image in not include face, and second picture pick-up device collection image
During including face, first picture pick-up device is switched into second picture pick-up device;
Specifically, when first picture pick-up device collection image in not include face, and second picture pick-up device collection
When image includes face, show in the absence of user in the image pickup scope of first picture pick-up device, in second picture pick-up device
There is user in image pickup scope, first picture pick-up device is now switched into second picture pick-up device, carried out in order to the user
Video calling.
During using terminal equipment carries out video calling, terminal device can be fixed on specified location by user
Afterwards, arbitrarily moved around terminal device, set when user is moved to second shooting by the image pickup scope of first picture pick-up device
When in standby image pickup scope, terminal device detect first picture pick-up device collection image in not include face, and this second
The image of picture pick-up device collection includes face, then first picture pick-up device is switched into second picture pick-up device.
The image gathered by the image for being gathered to first picture pick-up device respectively and second picture pick-up device carries out face
Detection, realizes when in the image-capture field that user appears in first picture pick-up device or second picture pick-up device, terminal
Currently used picture pick-up device switches to the corresponding picture pick-up device of user's in-scope by equipment automatically, it is to avoid user enters manually
The switching of row picture pick-up device, realizes intelligence switching picture pick-up device, while being different from using a picture pick-up device, uses at least two
Individual picture pick-up device carries out video calling and intelligently switches picture pick-up device, expands image pickup scope during video calling so that user
Moving range increase in video calling.
204:When face is included in first picture pick-up device and the image of second picture pick-up device collection, do not taken the photograph
As equipment switching;
Specifically, when face is included in first picture pick-up device and the image of second picture pick-up device collection, show
There is user in the image pickup scope of first picture pick-up device and the image pickup scope of second picture pick-up device, now, do not carry out
Picture pick-up device switches, to avoid the frequent switching of picture pick-up device.
205:When the image of second picture pick-up device collection includes face, and hold time during more than preset duration, by this
First picture pick-up device switches to second picture pick-up device.
Alternatively, the step 205 is applied to after step 204, i.e., carrying out video calling mistake using the first picture pick-up device
Cheng Zhong, when first picture pick-up device and second picture pick-up device is detected including face, does not carry out picture pick-up device switching, by
In in video call process, whether face is included in terminal device real-time detection picture pick-up device, therefore, once detect this
When two picture pick-up devices start to include face, that is, start to count second picture pick-up device holding time including face, when the maintenance
When time exceedes preset duration, first picture pick-up device is switched into second picture pick-up device.
Specifically, during video calling is carried out using the first picture pick-up device, when detecting second picture pick-up device
The image of collection includes face, and face is held time during more than preset duration, shows the shooting in second picture pick-up device
In the range of there is user, and the duration that the user is in the image pickup scope of second picture pick-up device alreadys exceed preset duration,
First picture pick-up device is now switched into second picture pick-up device.
Alternatively, the image that terminal device can be gathered according to second picture pick-up device includes that the frames statistic of face should
Second picture pick-up device includes holding time for face, when the continuous frame number including face exceedes predetermined number, determines the maintenance
Time exceedes preset duration, or, the image for working as the default frame number in interval still includes face, it is determined that when this is held time more than presetting
Long, the specific method that the determination is held time can also have various, will not be repeated here.
Wherein, the preset duration and predetermined number can be set by developer, can also be by user in use
Set, the embodiment of the present invention is not limited this.
The step 204 and step 205 can apply at least two users and use same terminal device and object user
Carry out under the scene of video calling, such as user A and user's B using terminals equipment carry out video calling with user C, at user A
In the image pickup scope of first picture pick-up device, when using first picture pick-up device, user A and user C carries out video calling, this
When user B enter second picture pick-up device image pickup scope in when, do not carry out picture pick-up device switching, when user B this second
When duration in the image pickup scope of picture pick-up device exceedes preset duration, second shooting is switched to set first picture pick-up device
It is standby so that user B and user C carries out video calling, when durations of the user B in the image pickup scope of second picture pick-up device is less than
The preset duration, i.e. user B do not carry out picture pick-up device and cut when being left after the image pickup scope for entering second picture pick-up device again
Change.
In the embodiment of the present invention, in video call process is carried out using the first picture pick-up device, first picture pick-up device and
Second picture pick-up device gathers image, and when not carrying out picture pick-up device and switching, the image of second picture pick-up device collection can be with
Deleted after of short duration caching, you can to preset caching duration, when the caching duration of the image of second picture pick-up device collection
During more than preset buffer memory duration, the image-erasing that second picture pick-up device is gathered.
The embodiment of the present invention is as a example by having two picture pick-up devices on terminal device, when terminal device has two or more
Picture pick-up device when, detect whether include face in the image of more than two picture pick-up devices collection respectively, when currently used
Picture pick-up device collection image in not include face when, currently used picture pick-up device can be switched to any including face
The corresponding picture pick-up device of image, and when the image that currently used picture pick-up device is gathered includes face, can not carry out
Picture pick-up device switches, and the image that can also be gathered according to more than two picture pick-up devices includes holding time for face, will
Currently used picture pick-up device switches to the corresponding picture pick-up device of image most long of holding time, the embodiment of the present invention to this not
Limit.
Method provided in an embodiment of the present invention, by video call process, by gathering image and/or audio-frequency information
Detect whether default handover event, when detect there is default handover event when, by the first currently used picture pick-up device
Any one picture pick-up device beyond first picture pick-up device is switched to, the intelligence switching of picture pick-up device on terminal device is realized,
Image pickup scope during video calling is expanded, the switching of video pictures is carried out manually without the need for user, video is improve and is led to
The quality of words.
Fig. 3 is a kind of flow chart of the method for Switch Video picture provided in an embodiment of the present invention.The inventive embodiments with
Executive agent is terminal device, and is entered with the technical scheme as a example by two picture pick-up devices to present invention offer on the terminal device
Row explanation, referring to Fig. 3, methods described includes:
301:In video call process is carried out using the first picture pick-up device, the audio frequency apparatus collection according to the terminal device
Voice signal, obtain the source direction of the voice signal;
Those skilled in the art can know that terminal device can be by audio frequency apparatus collected sound signal, according to this
The time difference of the different sensors in voice signal incoming terminal equipment, obtain the source direction of the voice signal.
It should be noted that when switching picture pick-up device is determined the need for by audio-frequency information, can not pre-actuate
Second camera gathers image, and the embodiment of the present invention do not limited this.
302:When the source direction of the voice signal for getting belongs to the second picture pick-up device scope, by first shooting
Equipment switches to second picture pick-up device;
In the embodiment of the present invention, the source direction according to the voice signal can determine user institute in video call process
The position at place, you can to determine that user is to be in the second picture pick-up device scope in the range of first picture pick-up device
It is interior, can determine whether to carry out picture pick-up device switching according to the location of user.
Wherein, the second picture pick-up device scope refers to region of the terminal device in the second picture pick-up device direction, such as mobile phone
The scope of front camera be the front region of mobile phone.
When the source direction of the voice signal for getting belongs to the second picture pick-up device scope, show user be in this
In the image pickup scope of two picture pick-up devices, first picture pick-up device is now switched into second picture pick-up device, that is, start this second
Picture pick-up device gathers image, carries out video calling.
303:When the source direction of the voice signal for getting belongs to the first picture pick-up device scope, shooting is not carried out and is set
Standby switching;
304:When the source direction of the voice signal for getting belongs to first picture pick-up device with second picture pick-up device
During scope junction, picture pick-up device switching is not carried out.
The source direction of the voice signal belongs to first picture pick-up device and the scope junction of second picture pick-up device
Refer to that the source direction of the voice signal had both been not belonging to region of the terminal device in the direction of the first image pickup scope equipment, also do not belong to
Belong to above-mentioned two area in the region in the direction of second picture pick-up device, or the source direction of the voice signal in terminal device
The handover region in domain, such as source direction in the voice signal of mobile phone lateral side regions belong to the front camera of mobile phone and rearmounted take the photograph
As the scope junction of head.
Fig. 4 is a kind of voice signal source direction schematic diagram of terminal device collection provided in an embodiment of the present invention, such as Fig. 4
Shown, terminal device has two picture pick-up devices, respectively the first picture pick-up device and the second picture pick-up device, first picture pick-up device
Scope is the lower zone of terminal device in Fig. 4, and the second picture pick-up device scope is the top area of terminal device in Fig. 4
Domain, therefore, the source direction of sound source 1 belongs to the first picture pick-up device scope, and the source direction of sound source 2 belongs to this and second takes the photograph
As equipment scope, the source direction of sound source 3 belongs to the scope junction of first picture pick-up device and second picture pick-up device.
The embodiment of the present invention can be applied at least two users while being carried out with object user using same terminal device
Under the scene of video calling, for example, user A and user's B using terminals equipment carry out video calling with user C, user A is in should
The image pickup scope of the first picture pick-up device, user B is in the image pickup scope of second picture pick-up device, when user A sends sound, obtains
The source direction of the voice signal got belongs to the first picture pick-up device scope, does not carry out picture pick-up device switching, user A and user
C carries out video calling, and when user B sends sound, the source direction of the voice signal for getting belongs to second picture pick-up device
Scope, now, second picture pick-up device is switched to by first picture pick-up device so that user B can carry out video and lead to user C
Words, by obtaining the source direction of voice signal, control picture pick-up device switching so that at least two use can be used with object per family
Family carries out video calling.
The embodiment of the present invention is as a example by having two picture pick-up devices on terminal device, when terminal device has two or more
Picture pick-up device when, obtain voice signal source direction, by currently used picture pick-up device switch to the source direction correspondence
Picture pick-up device, realize the switching between the more than two picture pick-up devices in video call process on terminal device.
In embodiments of the present invention, terminal device can be gathered first picture pick-up device and second picture pick-up device is detected
Image in while whether include face, obtain the source direction of voice signal, when first picture pick-up device and this second take the photograph
During as including face in the image of equipment collection, i.e., at least two users are respectively at the image pickup scope of first picture pick-up device
During with the image pickup scope of second picture pick-up device, according to the source direction of voice signal, the switching of picture pick-up device is controlled, keep working as
The preceding picture pick-up device that uses is the corresponding picture pick-up device of source direction of the voice signal, realizes that at least two users use with object
Family carries out video calling, when the user of the image pickup scope in any picture pick-up device leaves, detects any picture pick-up device
Do not include face in the image of collection, now no longer carry out picture pick-up device switching.
Method provided in an embodiment of the present invention, by video call process, by gathering image and/or audio-frequency information
Detect whether default handover event, when detect there is default handover event when, by the first currently used picture pick-up device
Any one picture pick-up device beyond first picture pick-up device is switched to, the intelligence switching of picture pick-up device on terminal device is realized,
Image pickup scope during video calling is expanded, the switching of video pictures is carried out manually without the need for user, video is improve and is led to
The quality of words.
Fig. 5 is a kind of flow chart of the method for Switch Video picture provided in an embodiment of the present invention.The inventive embodiments with
Executive agent is terminal device, and is entered with the technical scheme as a example by two picture pick-up devices to present invention offer on the terminal device
Row explanation, referring to Fig. 5, methods described includes:
501:When video calling starts, start two picture pick-up devices on terminal device;
The embodiment of the present invention starts and said as a example by two picture pick-up devices on terminal device with when video calling starts
It is bright.
502:In video call process is carried out using the first picture pick-up device, the audio frequency apparatus collection according to the terminal device
Voice signal, carry out speech recognition;
Those skilled in the art can know that speech recognition refers to that voice signal is changed by identification and understanding process
It is corresponding text or order, a variety of functions is realized according to the text or order.
In video call process is carried out using the first picture pick-up device, terminal device gathers the sound of user by audio frequency apparatus
Message number, and speech recognition is carried out to the voice signal, to judge whether the voice signal is the sound that indicates picture pick-up device to switch
Message number.
503:When recognizing the voice signal and being consistent with default switching voice, by first picture pick-up device switch to this
Two picture pick-up devices.
The default switching voice is used to trigger the switching of picture pick-up device, when recognizing the voice signal with default switching voice
When consistent, the switching to picture pick-up device is triggered, first picture pick-up device is switched into second picture pick-up device.The default switching language
Sound can be set by developer, it is also possible to be set in use by user.
For example, the default switching voice can be " switching camera ", when user says " switching camera ", terminal sets
The voice signal of standby collection user, the voice signal " switching camera " for recognizing user is consistent with default switching voice, now,
First picture pick-up device is switched into second picture pick-up device.
In the embodiment of the present invention, by the speech recognition to voice signal so that user is by assigning sound instruction
The switching of picture pick-up device is realized, and without carrying out the switching of picture pick-up device manually, is operated easier.
The embodiment of the present invention is as a example by having two picture pick-up devices on terminal device, when terminal device has two or more
Picture pick-up device when, obtain user voice signal, when the voice signal with set in advance first switching voice it is consistent when, will
Currently used picture pick-up device switches to the corresponding picture pick-up device of the first switching voice, by the sound instruction of user, realizes
The switching between more than two picture pick-up devices on terminal device.
Wherein, between the plurality of default switching voice and any default switching voice and more than two picture pick-up devices
Mapping relations can be set by developer, it is also possible to set in use by user.
For example, " being switched to front camera " instruction can be triggered and for currently used camera switch to preposition shooting
Head, " being switched to side camera " instruction can trigger the camera that currently used camera is switched to side.
Method provided in an embodiment of the present invention, by video call process, by gathering image and/or audio-frequency information
Detect whether default handover event, when detect there is default handover event when, by the first currently used picture pick-up device
Any one picture pick-up device beyond first picture pick-up device is switched to, the intelligence switching of picture pick-up device on terminal device is realized,
Image pickup scope during video calling is expanded, the switching of video pictures is carried out manually without the need for user, video is improve and is led to
The quality of words.
Fig. 6 is a kind of apparatus structure schematic diagram of Switch Video picture provided in an embodiment of the present invention.It is described referring to Fig. 6
Device includes:
Handover event detection module 61, in video call process is carried out using the first picture pick-up device, by collection
Image and/or audio-frequency information detect whether default handover event;
Picture pick-up device handover module 62, for when the generation default handover event is detected, by first picture pick-up device
Switch to the second picture pick-up device.
Alternatively, the handover event detection module 61 includes:
First handover event detection unit, for when video calling starts, starting the first picture pick-up device and at least one
Second picture pick-up device, in video call process is carried out using the first picture pick-up device, according to first picture pick-up device with this at least
One image of the second picture pick-up device collection, detects whether default handover event;
Second handover event detection unit, in video call process is carried out using the first picture pick-up device, according to this
The voice signal of the audio frequency apparatus collection of terminal device, detects whether default handover event.
Alternatively, the first handover event detection unit includes:
Face datection subelement, the figure for detecting first picture pick-up device and at least one second picture pick-up device collection
Whether include face as in;
First face detection sub-unit, for when face is not included in the image that first picture pick-up device is gathered, and this to be extremely
When the image of few second picture pick-up device collection includes face, detect and the default handover event occurs;
Second Face datection subelement, the image for being gathered when at least one second picture pick-up device includes face, and
Hold time during more than preset duration, detect and the default handover event occurs.
Alternatively, the second handover event detection unit includes:
Sound source direction obtains subelement, for the voice signal gathered according to the audio frequency apparatus of the terminal device, obtains
Take the source direction of the voice signal;
First sound detection subelement, for belonging to second picture pick-up device when the source direction of the voice signal for getting
During scope, detect and the default handover event occurs.
Alternatively, the second handover event detection unit includes:
Speech recognition subelement, for the voice signal gathered according to the audio frequency apparatus of the terminal device, carries out voice knowledge
Not;
Second sound detection sub-unit, for when recognizing the voice signal and being consistent with default switching voice, detecting
There is the default handover event, the default switching voice is used to trigger the switching of picture pick-up device.
Device provided in an embodiment of the present invention, by video call process, by gathering image and/or audio-frequency information
Detect whether default handover event, when detect there is default handover event when, by the first currently used picture pick-up device
Any one picture pick-up device beyond first picture pick-up device is switched to, the intelligence switching of picture pick-up device on terminal device is realized,
Image pickup scope during video calling is expanded, the switching of video pictures is carried out manually without the need for user, video is improve and is led to
The quality of words.
It should be noted that:Above-described embodiment provide Switch Video picture device Switch Video picture when,
Only carried out with the division of above-mentioned each functional module for example, in practical application, as needed can distribute above-mentioned functions
Completed by different functional module, will the internal structure of equipment be divided into different functional modules, it is described above to complete
All or part of function.In addition, the device and Switch Video picture of the Switch Video picture that above-described embodiment is provided
Embodiment of the method belongs to same design, and it implements process and refers to embodiment of the method, repeats no more here.
The embodiment of the present invention additionally provides a kind of equipment, including:
Touch display screen;
One or more processors;
Memory;With
One or more modules, one or more modules are stored in the memory and are configured to by this or many
Individual computing device, wherein, one or more modules have following function:
In video call process is carried out using the first picture pick-up device, detect and be by gathering image and/or audio-frequency information
It is no that default handover event occurs;
When the generation default handover event is detected, first picture pick-up device is switched into the second picture pick-up device.
Alternatively, one or more modules are used to, when video calling starts, start the first picture pick-up device and at least one
Individual second picture pick-up device, in video call process is carried out using the first picture pick-up device, according to first picture pick-up device with this extremely
The image of few second picture pick-up device collection, detects whether default handover event;And/or, set in the shooting of application first
Standby to carry out video call process, the voice signal of the audio frequency apparatus collection according to the terminal device detects whether to occur default
Handover event.
Alternatively, one or more modules are additionally operable to detect that at least one first picture pick-up device and second shooting set
Whether include face in the image of standby collection;When first picture pick-up device collection image in not include face, and this at least one
When the image of individual second picture pick-up device collection includes face, detect and the default handover event occurs;When this at least one second
The image of picture pick-up device collection includes face, and holds time during more than preset duration, detects and the default handover event occurs.
Alternatively, one or more modules are additionally operable to the voice signal gathered according to the audio frequency apparatus of the terminal device,
Obtain the source direction of the voice signal;When the source direction of the voice signal for getting belongs to the second picture pick-up device scope
When, detect and the default handover event occurs.
Alternatively, one or more modules are additionally operable to the voice signal gathered according to the audio frequency apparatus of the terminal device,
Carry out speech recognition;When recognizing the voice signal and being consistent with default switching voice, detect and the default handover event occur,
The default switching voice is used to trigger the switching of picture pick-up device.
Equipment provided in an embodiment of the present invention, by video call process, by gathering image and/or audio-frequency information
Detect whether default handover event, when detect there is default handover event when, by the first currently used picture pick-up device
Any one picture pick-up device beyond first picture pick-up device is switched to, the intelligence switching of picture pick-up device on terminal device is realized,
Image pickup scope during video calling is expanded, the switching of video pictures is carried out manually without the need for user, video is improve and is led to
The quality of words.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware
To complete, it is also possible to instruct the hardware of correlation to complete by program, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all it is of the invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.