CN105681660B - A kind of switching method and apparatus of screening-mode - Google Patents

A kind of switching method and apparatus of screening-mode Download PDF

Info

Publication number
CN105681660B
CN105681660B CN201610038996.4A CN201610038996A CN105681660B CN 105681660 B CN105681660 B CN 105681660B CN 201610038996 A CN201610038996 A CN 201610038996A CN 105681660 B CN105681660 B CN 105681660B
Authority
CN
China
Prior art keywords
mode
screening
sample
vibration signal
default
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.)
Expired - Fee Related
Application number
CN201610038996.4A
Other languages
Chinese (zh)
Other versions
CN105681660A (en
Inventor
王英茂
李应伟
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610038996.4A priority Critical patent/CN105681660B/en
Publication of CN105681660A publication Critical patent/CN105681660A/en
Application granted granted Critical
Publication of CN105681660B publication Critical patent/CN105681660B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes

Abstract

The embodiment of the invention discloses a kind of switching method and apparatus of screening-mode;The embodiment of the present invention uses under the first screening-mode, user is obtained by tapping vibration signal caused by mobile terminal, then, determining whether there is and the matched sample of the vibration signal in default sample set, if it exists, then the corresponding screening-mode of matched sample is obtained, the second screening-mode is obtained, and by the first shooting pattern switching to the second screening-mode, to realize the purpose switched over to screening-mode;The program is not only easy to operate, and one-handed performance may be implemented, and its treatment effeciency can be improved.

Description

A kind of switching method and apparatus of screening-mode
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of switching method and apparatus of screening-mode.
Background technique
With the development of communication technology, the function of mobile terminal also becomes more and more abundant and powerful, such as shooting function, Its captured photograph come out can match in excellence or beauty gradually in camera, and therefore, nowadays most users can all be selected by mobile whole End is to be shot.In the prior art, the shooting function in mobile terminal generally may include taking pictures and imaging isotype, when User opens one of mode, for example when photographing mode, is if desired switched to other modes, such as image pickup mode, then needs It can just be switched over by clicking the switching key on screen.
In the research and practice process to the prior art, it was found by the inventors of the present invention that since existing scheme needs to lead to The switching key clicked on screen is crossed, can just be switched over, and the switching key is usually located at the specific position on screen, because This, generally requiring user's both hands just can be carried out operation, and it is more inconvenient to realize, moreover, because user need first to find the switching by Key just can be carried out operation, so, also there is certain influence on switching efficiency.
Summary of the invention
The embodiment of the present invention provides a kind of switching method and apparatus of screening-mode, not only easy to operate, and list may be implemented Hand operation, and its treatment effeciency can be improved.
The embodiment of the present invention provides a kind of switching method of screening-mode, comprising:
Under the first screening-mode, user is obtained by tapping vibration signal caused by mobile terminal;
Determining whether there is and the matched sample of the vibration signal in default sample set;
If it exists, then the corresponding screening-mode of matched sample is obtained, the second screening-mode is obtained;
By the first shooting pattern switching to the second screening-mode.
Correspondingly, the embodiment of the present invention also provides a kind of switching device of screening-mode, comprising:
First acquisition unit, under the first screening-mode, obtaining user by tapping vibration caused by mobile terminal Dynamic signal;
Determination unit whether there is and the matched sample of the vibration signal for determining in default sample set;
Second acquisition unit is used for the acquisition when determination unit determines and there is sample matched with the vibration signal With the corresponding screening-mode of sample, the second screening-mode is obtained;
Switch unit, for shooting pattern switching to the second screening-mode for described first.
The embodiment of the present invention uses under the first screening-mode, obtains user by tapping vibration caused by mobile terminal Signal, then, it is determined that whether there is and the matched sample of the vibration signal in default sample set, and if it exists, then obtain matching The corresponding screening-mode of sample obtains the second screening-mode, and by the first shooting pattern switching to the second screening-mode, thus Realize the purpose switched over to screening-mode;Since the program can realize cutting for screening-mode by tapping mobile terminal It changes, for example, from photographing mode to recording mode, or from recording mode to photographing mode, etc., accordingly, with respect to the prior art For the middle scheme for needing the switching key by clicking specific position on screen to switch over, it can greatly simplify user's Operation can not only reduce the processing time, treatment effeciency be improved, moreover, being also more convenient for realizes one-handed performance.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the flow chart of the switching method of screening-mode provided in an embodiment of the present invention;
Fig. 2 is another flow chart of the switching method of screening-mode provided in an embodiment of the present invention;
Fig. 3 a is the structural schematic diagram of the switching device of screening-mode provided in an embodiment of the present invention;
Fig. 3 b is another structural schematic diagram of the switching device of screening-mode 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 only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of switching method and apparatus of screening-mode.It will be described in detail respectively below.
Embodiment one,
The angle of switching device from screening-mode is described the present embodiment, and the switching device of the screening-mode is specific It can integrate in the terminal, which is specifically as follows the equipment such as mobile phone or tablet computer.
A kind of switching method of screening-mode characterized by comprising under the first screening-mode, obtain user and pass through Tap vibration signal caused by mobile terminal;Determining whether there is and the matched sample of the vibration signal in default sample set This;If it exists, then the corresponding screening-mode of matched sample is obtained, the second screening-mode is obtained;By the first shooting pattern switching To the second screening-mode.
As shown in Figure 1, the detailed process of the switching method of the screening-mode can be such that
101, under the first screening-mode, user is obtained by tapping vibration signal caused by mobile terminal.
Wherein, which refers to the screening-mode being currently located, and can be also possible to record with photographing mode Mode, can also be other modes, for example, " slow motion " mode, time-lapse photography mode, " photo " mode, panning mode and/ Or " video " mode etc..For example, first screening-mode is panning mode, if currently if being currently located at panning mode Positioned at " slow motion " mode, then first screening-mode is " slow motion " mode, and so on, etc..
Wherein, this percussion can generally be generated by directly tapping mobile mobile terminal any position with hand, alternatively, It is also possible to through other hard objects, for example is realized with the mobile mobile terminal of the percussions such as penholder, key;Moreover, the position tapped It can be not construed as limiting, such as screen, the back side or frame for can be mobile terminal etc..
Since mobile terminal generally has microphone and loudspeaker, it can use the included microphone of mobile terminal Or loudspeaker to be to identify this special voice signal, and converts vibration signal for the voice signal, i.e. step " obtains user By tapping vibration signal caused by mobile terminal " it can specifically include:
User is obtained by tapping vibration signal caused by mobile terminal by the microphone or loudspeaker of mobile terminal.
Wherein, which may include various types of microphones, such as electret microphone, silicon microphone etc., and Loudspeaker also may include various types of loudspeakers.If it is simulation microphone or analog speakers, then use can be first obtained Then family converts the analog signal into number by D/A converter module by tapping analog signal caused by mobile terminal Signal obtains vibration signal;And if digital microphone or digital speaker, can direct output digit signals, without into Row digital-to-analogue conversion.
It should be noted that can also include the device of any sound-electric conversion, herein other than microphone and loudspeaker It repeats no more.
102, determining whether there is and the matched sample of the vibration signal in default sample set, and if it exists, then execute step Rapid 103, if it does not exist, then process terminates, and optionally, may remind the user that re-start percussion at this time.
Wherein, due to the vibration signal be it is a kind of tap vibration mobile terminal when the voice signal that generates, when hammer action Between it is very of short duration, and solid propagation is carried out by mobile terminal, therefore, which is a kind of special voice signal, than Such as, from the point of view of the time, the voice signal is very short (millisecond rank);From signal amplitude size relatively from the point of view of, due to tap when be The microphone or loudspeaker for directly shaking mobile terminal are that solid is propagated, and therefore, the intensity of the more general voice signal of intensity is more Greatly, generated level is also relatively large;Further, from the point of view of frequency spectrum, the entire recording of the frequency coverage of the voice signal Frequency range, and the amplitude difference of each frequency is little, so, it is also different from general sound;Based on above-mentioned several points it is found that even In noisy environment, the voice signal, i.e. vibration signal can also be recognized, therefore, be matched to the vibration signal When, specifically the vibration signal can be subjected to Fourier transformation (FFT) and then be analyzed again, such as can with being converted into frequency domain To carry out analyzing respectively to time, frequency and amplitude, etc., and determined whether and default sample based on the analysis result Match;I.e. " determine in default sample set with the presence or absence of with the matched sample of the vibration signal (i.e. step 102) " specifically can wrap It includes:
It determines the frequency spectrum of the vibration signal, the time of the frequency spectrum, frequency and amplitude is analyzed respectively, obtain analysis knot Fruit, determining whether there is and the matched sample of analysis result in default sample set, and if it exists, then determine the default sample set Exist and the matched sample of the vibration signal in conjunction;If it does not exist, it is determined that be not present and the vibration in the default sample set The sample of Signal Matching.
Wherein, which can be configured according to the demand of practical application, for example, can be used by multi collect Family taps generated vibration signal when mobile terminal, is then analyzed, and the sample for being suitble to the user to tap habit letter is obtained Number, wherein the time of percussion and number can be configured according to the hobby of user.
103, determine that acquisition matched sample is corresponding when there is sample matched with the vibration signal in default sample set The corresponding screening-mode of the matched sample in embodiments of the present invention, is known as the second shooting for convenience by screening-mode Mode.
It wherein, may include at least one sample of signal in the default sample set, abbreviation sample, every kind of sample can be right A kind of screening-mode is answered, these screening-modes can be configured according to the demand of practical application, for example, may include mould of taking pictures Formula, recording mode and other modes, such as " slow motion " mode, time-lapse photography mode, " photo " mode, panning mode And/or " video " mode etc..And the mapping relations (i.e. corresponding relationship) of sample and screening-mode can be set in advance by system It sets, can also be voluntarily configured by user, i.e., before step " obtaining the corresponding screening-mode of matched sample ", the shooting mould The switching method of formula can also include:
The setting request for receiving user, the mapping relations of sample and screening-mode are established according to setting request;
Then at this point, step " obtaining the corresponding screening-mode of matched sample, obtain the second screening-mode " may include: to be based on The mapping relations obtain the corresponding screening-mode of matched sample, obtain the second screening-mode.
Wherein, according to setting request establish sample and screening-mode mapping relations mode can there are many, for example, can Directly to receive the sample of user's input and the corresponding relationship of screening-mode according to setting request, alternatively, phase can also be provided The screening-mode answered is selected for user, then receives the sample that is inputted based on the screening-mode chosen of user, alternatively, can also be with After user's input sample, corresponding screening-mode is provided and is selected for user, then input sample and selection are established based on the selection Screening-mode between mapping relations, etc., i.e., " reflecting for sample and screening-mode is established according to setting request for example, step Penetrate relationship " it can specifically include:
According to setting request user's input sample, and the screening-mode that user is selected based on input sample is obtained, Establish the mapping relations between the input sample and the screening-mode of selection.
104, by the first shooting pattern switching to the second screening-mode.
For example, if the first screening-mode (i.e. current shooting mode) is photographing mode, and the second screening-mode is to record mould Formula, then at this point it is possible to which photographing mode is switched to recording mode.
In another example if the first screening-mode (i.e. current shooting mode) is photographing mode, and the second screening-mode is delay Photograph mode, then at this point it is possible to which photographing mode is switched to time-lapse photography mode, and so on, etc..
From the foregoing, it will be observed that the present embodiment uses under the first screening-mode, user is obtained by tapping produced by mobile terminal Vibration signal, then, it is determined that whether there is in default sample set and the matched sample of the vibration signal, and if it exists, then obtain The corresponding screening-mode of matched sample is taken, obtains the second screening-mode, and the first shooting pattern switching to second is shot into mould Formula, to realize the purpose switched over to screening-mode;Since the program can realize shooting by tapping mobile terminal The switching of mode, for example, from photographing mode to recording mode, or from recording mode to photographing mode, etc., accordingly, with respect to It, can be significantly simple for the scheme for needing the switching key by clicking specific position on screen to switch in the prior art The operation for changing user can not only reduce the processing time, treatment effeciency be improved, moreover, being also more convenient for realizes one-handed performance.
Embodiment two,
According to method described in embodiment one, citing is described in further detail below.
In the present embodiment, it will specifically be integrated in the terminal with the switching device of the screening-mode, and to pass through wheat Gram wind is illustrated for vibration signal to obtain.
As shown in Fig. 2, a kind of switching method of screening-mode, detailed process can be such that
201, under the first screening-mode, mobile terminal obtains user by tapping mobile terminal by included microphone Generated vibration signal.
Wherein, which can be photographing mode, be also possible to recording mode, can also be other moulds Formula, such as " slow motion " mode, time-lapse photography mode, " photo " mode, panning mode and/or " video " mode etc., in order to retouch It states conveniently, in the present embodiment, will be illustrated so that first screening-mode is specially photographing mode as an example.
For example, user during taking pictures using the mobile terminal, wishes to switch to photographing mode into record suddenly Molding formula, then user can trigger the generation of the vibration signal by tapping mobile terminal, and then, mobile terminal can lead to It crosses included microphone and gets the vibration signal.
Wherein, this percussion can generally be moved by with hand or by other hard objects, such as with percussions such as penholder, keys Mobile terminal any position generates;When percussion, position can be not construed as limiting, for example, can be the screen of mobile terminal, the back side, Or frame etc..
It should be noted that the microphone may include various types of microphones, such as electret microphone, silicon microphone Deng.If it is simulation microphone or analog speakers, then user can be first obtained by tapping simulation caused by mobile terminal Then signal converts the analog signal into digital signal by D/A converter module, obtain vibration signal;And if digital wheat Gram wind or digital speaker, then can direct output digit signals, without carrying out digital-to-analogue conversion.
202, mobile terminal determines the frequency spectrum of the vibration signal, divides respectively the time of the frequency spectrum, frequency and amplitude Analysis obtains analysis result;For example, specifically can be such that
(1) Fourier transformation (FFT) is carried out to the vibration signal, obtains corresponding frequency-region signal, i.e. frequency spectrum, also referred to as frequency Spectrum signal.
(2) spectrum signal is analyzed, for example time, frequency and amplitude can be analyzed respectively, with output Current action signal, i.e., analysis is as a result, specifically can be such that
Time (Time) analysis: can determine the spectrum signal time cycle whether be more than preset period of time [T1, T2] range, if so, explanation is not normal hammer action, being filtered output NG signal (indicates undesirable letter Number), if met in preset period of time [T1, the T2] range, then explanation meets the requirements, and can export OK signal (i.e. table Show satisfactory signal).Wherein, which can be based on the characteristics of hammer action and movement eventually The design feature at end is configured, for example, being analyzed according to the recorded audio signals that actual finger first taps mobile phone, T1 is generally no greater than 5ms, T2 are not more than 20ms.
Frequency (Frequency) distributional analysis: the distribution situation by counting each frequency of the spectrum signal provides defeated Signal out exports OK signal if frequency distribution is continuous and frequency band is broad, otherwise exports NG signal.From the point of view of actually comparison, For especially 6Khz between highest frequency (sample rate frequency is divided by 2), frequency distribution is continuous.
Amplitude (Amplitude) analysis: analyzing the signal energy of the entire frequency range of the spectrum signal, if signal energy is average The value that value is higher than setting then exports OK signal, otherwise exports NG signal.
Statistics identification: it is currently according to time analysis, frequency analysis and the obtained analysis result determination of amplitude analysis No is hammer action, for example, if being OK signal, then it represents that it is hammer action, and if it is NG signal, then it represents that it does not strike Hit movement, etc.;Then, count the interval of percussion, if the movement that taps twice of being connected is too short, such as lower than T3 (such as 50ms), it is contemplated that the movement of people is without that so fastly, can determine that this section of spectrum signal is undesirable, not export current action Signal;If the time acted twice that is connected is longer than T4 (such as 500ms), then it is assumed that n times before last time movement is not belonging to Movement determines that last time acts corresponding spectrum signal and is not belonging to the current action signal, so, it is several only to export front Signal corresponding to secondary movement, as the current action signal;If all movement intervals all meet in [T3, T4], then It is thought that some specified movement, i.e. spectrum signal corresponding to the action belong to the current action signal.
203, mobile terminal determines whether there is and the matched sample of analysis result in default sample set, and if it exists, 204 are thened follow the steps, if it does not exist, then process terminates, and optionally, may remind the user that re-start percussion at this time.
It wherein, may include at least one sample in the default sample set, which can be according to the need of practical application It asks and is configured, for example, generated vibration signal when mobile terminal can be tapped by multi collect user, then divided Analysis obtains being suitble to the user to tap the sample signal of habit, wherein the time of percussion and number can according to the hobby of user into Row setting.
For example, if user taps 1 time, and if there is exactly have sample corresponding with " tapping 1 time " in default sample set This, then can determine the sample for existing in the default sample set and matching and (matching with analysis result) with the vibration signal at this time This, then executes step 204, and if there are corresponding with " tapping 2 times " and " tapping 3 times " etc. in default sample set Sample, but and there is no sample corresponding with " tap 1 time ", then can determine at this time in the default sample set there is no with The sample of vibration signal matching (matching with analysis result), then process terminates.
204, mobile terminal determines in default sample set when there is sample matched with the vibration signal, based on sample with Screening-mode presets mapping relations and obtains the corresponding screening-mode of matched sample, obtains the second screening-mode.
Wherein, every kind of sample in the default sample set can correspond to a kind of screening-mode, these screening-modes can be with It is configured according to the demand of practical application, for example, may include photographing mode, recording mode and other mode, such as " slow motion " mode, time-lapse photography mode, " photo " mode, panning mode and/or " video " mode etc..
The mapping relations (i.e. corresponding relationship) of sample and screening-mode can be configured in advance by system, can also by with Family is voluntarily configured, i.e., before step " obtaining the corresponding screening-mode of matched sample ", the switching method of the screening-mode Can also include:
The setting request for receiving user, the mapping relations of sample and screening-mode are established according to setting request.
For example, can be requested directly to receive the sample of user's input and the corresponding relationship of screening-mode according to the setting, or Person, can also provide corresponding screening-mode and select for user, then receive what user was inputted based on the screening-mode chosen Sample, alternatively, can also provide corresponding screening-mode after user's input sample and be selected for user, then be built based on the selection Mapping relations, etc. between vertical input sample and the screening-mode of selection.
For example, corresponding screening-mode is recording mode if user setting taps 1 time, tap 2 times, corresponding shooting Mode is panning mode, is tapped 3 times, and corresponding screening-mode is " slow motion " mode, etc., then if in step 201, used The number that family taps is 1 time, then the screening-mode for needing to obtain at this time is " recording mode ", similarly, if in step 201, The number that user taps is 2 times, then the screening-mode for needing to obtain at this time is " panning mode ", and so on, etc..
205, mobile terminal is by the first shooting pattern switching to the second screening-mode.
For example, if the first screening-mode (i.e. current shooting mode) is photographing mode, and the second screening-mode is to record mould Formula, then at this point, photographing mode can be switched to recording mode by mobile terminal.
In another example if the first screening-mode (i.e. current shooting mode) is photographing mode, and the second screening-mode is panorama Mode, then at this point, photographing mode can be switched to panning mode by mobile terminal, and so on, etc..
From the foregoing, it will be observed that the present embodiment uses under the first screening-mode, obtained by mobile terminal by included microphone User is by tapping vibration signal caused by mobile terminal, then, it is determined that whether there is and the vibration in default sample set The sample of Signal Matching, and if it exists, then obtain the corresponding screening-mode of matched sample, obtain the second screening-mode, and by this One screening-mode switches to the second screening-mode, to realize the purpose switched over to screening-mode;Since the program can be with Realize the switching of screening-mode by tapping mobile terminal, for example, from photographing mode to recording mode, or from recording mode to Photographing mode, etc. is carried out accordingly, with respect to the switching key needed in the prior art by clicking specific position on screen For the scheme of switching, the operation of user can be greatly simplified, can not only reduce the processing time, improves treatment effeciency, moreover, Also it is more convenient for realizing one-handed performance.
Embodiment three,
In order to better implement above method, the embodiment of the present invention also provides a kind of switching device of screening-mode, such as schemes Shown in 3a, the switching device of the screening-mode includes first acquisition unit 301, determination unit 302,303 and of second acquisition unit Switch unit 304, as follows:
(1) first acquisition unit 301;
First acquisition unit 301, under the first screening-mode, obtaining user by tapping caused by mobile terminal Vibration signal.
Wherein, which may include photographing mode, recording mode, " slow motion " mode, time-lapse photography mould Formula, " photo " mode, panning mode and/or " video " mode etc..And tap generally can by with hand or other hard objects, such as It is realized with the mobile mobile terminal any position of the percussions such as penholder or key, moreover, the position tapped can be not construed as limiting, than It such as can be screen, the back side or the frame of mobile terminal.
Since mobile terminal generally has microphone and loudspeaker, it can use the included microphone of mobile terminal Or loudspeaker to be to identify this special voice signal, and converts vibration signal for the voice signal, it may be assumed that
The first acquisition unit 301 specifically can be used for obtaining user by the microphone or loudspeaker of mobile terminal logical Cross vibration signal caused by percussion mobile terminal.
Wherein, which may include various types of microphones, such as electret microphone, silicon microphone etc., and Loudspeaker also may include various types of loudspeakers.If it is simulation microphone or analog speakers, then use can be first obtained Then family converts the analog signal into number by D/A converter module by tapping analog signal caused by mobile terminal Signal obtains vibration signal;And if digital microphone or digital speaker, can direct output digit signals, without into Row digital-to-analogue conversion.
It should be noted that can also include the device of any sound-electric conversion, herein other than microphone and loudspeaker It repeats no more.
(2) determination unit 302;
Determination unit 302 whether there is and the matched sample of the vibration signal for determining in default sample set.
For example, specifically the vibration signal can be carried out Fourier transformation when matching to the vibration signal (FFT), to be converted into frequency domain, then analyzed again, for example time, frequency and amplitude can be carried out respectively analyzing, etc., And determined whether based on the analysis result and default sample matches, it may be assumed that
The determination unit 302, is specifically determined for the frequency spectrum of the vibration signal;Respectively to the time of the frequency spectrum, frequency Rate and amplitude are analyzed, and analysis result is obtained;Determining whether there is and the matched sample of analysis result in default sample set This, and if it exists, it then determines and exists and the matched sample of the vibration signal in the default sample set;If it does not exist, it is determined that should It is not present and the matched sample of the vibration signal in default sample set.
It wherein, may include at least one sample in the default sample set, which can be according to the need of practical application It asks and is configured, for example, generated vibration signal when mobile terminal can be tapped by multi collect user, then divided Analysis obtains being suitble to the user to tap the sample signal of habit, wherein the time of percussion and number can according to the hobby of user into Row setting.
(3) second acquisition unit 303;
Second acquisition unit 303 is used for the acquisition when determination unit determines and there is sample matched with the vibration signal With the corresponding screening-mode of sample, the second screening-mode is obtained.
Wherein, each sample standard deviation preset in sample set is corresponding with a kind of screening-mode, these screening-modes can be with It is configured according to the demand of practical application, for example, may include photographing mode, recording mode, " slow motion " mode, being delayed and take the photograph Shadow mode, " photo " mode, panning mode and/or " video " mode etc..And sample and the mapping relations of screening-mode are (i.e. corresponding Relationship) it can be configured in advance by system, it can also be voluntarily configured by user, i.e., as shown in Figure 3b, the screening-mode Switching device can also include receiving unit 305 and establishing unit 306, it is as follows:
Receiving unit 305, the setting for receiving user are requested;
Unit 306 is established, for establishing the mapping relations of sample and screening-mode according to setting request.
For example, this establishes unit 306, specifically can be used for according to setting request user's input sample, and obtain The screening-mode that user is selected based on input sample;Establish the mapping relations between the input sample and the screening-mode of selection.
Then at this point, the second acquisition unit 303, specifically can be used for obtaining matched sample based on the mapping relations corresponding Screening-mode obtains the second screening-mode.
(4) switch unit 304;
Switch unit 304 is used for the first shooting pattern switching to the second screening-mode.
For example, if the first screening-mode (i.e. current shooting mode) is photographing mode, and the second screening-mode is to record mould Formula, then at this point, photographing mode can be switched to recording mode by switch unit 304.
In another example if the first screening-mode (i.e. current shooting mode) is photographing mode, and the second screening-mode is delay Photograph mode, then at this point, photographing mode can be switched to time-lapse photography mode by switch unit 304, and so on, etc..
When it is implemented, above each unit can be used as independent entity to realize, any combination can also be carried out, is made It is realized for same or several entities, the specific implementation of above each unit can be found in the embodiment of the method for front, herein not It repeats again.
The switching device of the screening-mode specifically can integrate in the terminal, which is specifically as follows mobile phone Or the equipment such as tablet computer.
From the foregoing, it will be observed that the present embodiment uses under the first screening-mode, user is obtained by tapping produced by mobile terminal Vibration signal, then, it is determined that whether there is in default sample set and the matched sample of the vibration signal, and if it exists, then obtain The corresponding screening-mode of matched sample is taken, obtains the second screening-mode, and the first shooting pattern switching to second is shot into mould Formula, to realize the purpose switched over to screening-mode;Since the program can realize shooting by tapping mobile terminal The switching of mode, for example, from photographing mode to recording mode, or from recording mode to photographing mode, etc., accordingly, with respect to It, can be significantly simple for the scheme for needing the switching key by clicking specific position on screen to switch in the prior art The operation for changing user can not only reduce the processing time, treatment effeciency be improved, moreover, being also more convenient for realizes one-handed performance.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
The switching method and apparatus for being provided for the embodiments of the invention a kind of screening-mode above is described in detail, Used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only used In facilitating the understanding of the method and its core concept of the invention;Meanwhile for those skilled in the art, think of according to the present invention Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair Limitation of the invention.

Claims (7)

1. a kind of switching method of screening-mode characterized by comprising
Under the first screening-mode, it is any by tapping mobile terminal that user is obtained by the microphone or loudspeaker of mobile terminal Vibration signal caused by position, wherein percussion is direct vibration microphone or loudspeaker, and the vibration signal passes through mobile whole End carries out solid and propagates to microphone or loudspeaker, and first screening-mode includes photographing mode, picture mode, records mould Formula, slow motion mode, time-lapse photography mode, panning mode and video mode;
Determine the frequency spectrum of the vibration signal;
The time of the frequency spectrum, frequency and amplitude are analyzed respectively, analyzed as a result, whether discriminatory analysis result meets Preset condition, comprising: whether the frequency spectrum for determining the vibration signal judges the time cycle of frequency spectrum in preset period of time range It is interior;And the frequency distribution of frequency spectrum is counted, whether determination frequency distribution meets preset requirement;And the amplitude of frequency spectrum is divided Analysis, analyzes the averaged amplitude value of entire frequency range, and judge whether averaged amplitude value is greater than default amplitude;
If the time cycle, within the scope of preset period of time, the frequency distribution meets preset requirement, the average amplitude It is worth and is greater than default amplitude, then decision analysis result meets preset condition, and determining whether there is and described point in default sample set The matched sample of result is analysed,
If it exists, it is determined that exist and the matched sample of the vibration signal in the default sample set;
If it does not exist, it is determined that be not present and the matched sample of the vibration signal in the default sample set;
If it exists with the matched sample of the vibration signal, then the corresponding screening-mode of matched sample is obtained, the second shooting is obtained Mode;
By the first shooting pattern switching to the second screening-mode, second screening-mode includes photographing mode, photo mould Formula, recording mode, slow motion mode, time-lapse photography mode, panning mode and video mode, wherein first screening-mode It is not identical as the second screening-mode.
2. the method according to claim 1, wherein further include:
Receive the setting request of user;
The mapping relations of sample and screening-mode are established according to the setting request;
The corresponding screening-mode of the acquisition matched sample, obtains the second screening-mode, comprising: is obtained based on the mapping relations The corresponding screening-mode of matched sample, obtains the second screening-mode.
3. according to the method described in claim 2, it is characterized in that, described establish sample and shooting mould according to setting request The mapping relations of formula, comprising:
According to setting request user's input sample, and obtain the screening-mode that user is selected based on input sample;
Establish the mapping relations between the input sample and the screening-mode of selection.
4. a kind of switching device of screening-mode characterized by comprising
First acquisition unit, for it is logical to obtain user by the microphone or loudspeaker of mobile terminal under the first screening-mode Cross vibration signal caused by percussion mobile terminal any position, wherein percussion is directly to shake microphone or loudspeaker, described Vibration signal carries out solid by mobile terminal and propagates to microphone or loudspeaker, and first screening-mode includes mould of taking pictures Formula, picture mode, recording mode, slow motion mode, time-lapse photography mode, panning mode and video mode;
Determination unit, for determining the frequency spectrum of the vibration signal;The time of the frequency spectrum, frequency and amplitude are divided respectively Analysis, is analyzed as a result, whether discriminatory analysis result meets preset condition, comprising: is determined the frequency spectrum of the vibration signal, is judged Whether the time cycle of frequency spectrum is within the scope of preset period of time;And the frequency distribution of frequency spectrum is counted, determination frequency distribution is It is no to meet preset requirement;And the amplitude of frequency spectrum is analyzed, the averaged amplitude value of entire frequency range is analyzed, and judges average width Whether angle value is greater than default amplitude;If the time cycle, within the scope of preset period of time, the frequency distribution meets default It is required that the averaged amplitude value is greater than default amplitude, then decision analysis result meets preset condition, determines in default sample set With the presence or absence of with the matched sample of the analysis result, and if it exists, then determine in the default sample set exist and the vibration The sample of dynamic Signal Matching;If it does not exist, it is determined that there is no matched with the vibration signal in the default sample set Sample determines whether there is and the matched sample of the vibration signal in default sample set;
Second acquisition unit, for obtaining matching sample when determination unit determines and there is sample matched with the vibration signal This corresponding screening-mode, obtains the second screening-mode;
Switch unit, for by the first shooting pattern switching to the second screening-mode, second screening-mode to include clapping According to mode, picture mode, recording mode, slow motion mode, time-lapse photography mode, panning mode and video mode, wherein described First screening-mode and the second screening-mode be not identical.
5. device according to claim 4, which is characterized in that further include receiving unit and establishing unit;
Receiving unit, the setting for receiving user are requested;
Unit is established, for establishing the mapping relations of sample and screening-mode according to the setting request;
The second acquisition unit is specifically used for being obtained the corresponding screening-mode of matched sample based on the mapping relations, be obtained Second screening-mode.
6. device according to claim 5, which is characterized in that
It is described to establish unit, it is specifically used for according to setting request user's input sample, and obtain user and be based on input The screening-mode of samples selection;Establish the mapping relations between the input sample and the screening-mode of selection.
7. a kind of computer readable storage medium is stored with the computer program for screening-mode switching, wherein the meter Calculation machine program makes computer execute the method as described in claim 1.
CN201610038996.4A 2016-01-20 2016-01-20 A kind of switching method and apparatus of screening-mode Expired - Fee Related CN105681660B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610038996.4A CN105681660B (en) 2016-01-20 2016-01-20 A kind of switching method and apparatus of screening-mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610038996.4A CN105681660B (en) 2016-01-20 2016-01-20 A kind of switching method and apparatus of screening-mode

Publications (2)

Publication Number Publication Date
CN105681660A CN105681660A (en) 2016-06-15
CN105681660B true CN105681660B (en) 2019-07-16

Family

ID=56301768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610038996.4A Expired - Fee Related CN105681660B (en) 2016-01-20 2016-01-20 A kind of switching method and apparatus of screening-mode

Country Status (1)

Country Link
CN (1) CN105681660B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4231622A4 (en) * 2021-12-27 2024-04-03 Beijing Honor Device Co Ltd Video processing method and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436345A (en) * 2011-10-31 2012-05-02 广州市动景计算机科技有限公司 Method for interface operation and control of mobile device and implement device
CN103645845A (en) * 2013-11-22 2014-03-19 华为终端有限公司 Knocking control method and terminal
CN104092932A (en) * 2013-12-03 2014-10-08 腾讯科技(深圳)有限公司 Acoustic control shooting method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140075997A (en) * 2012-12-12 2014-06-20 엘지전자 주식회사 Mobile terminal and method for controlling of the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436345A (en) * 2011-10-31 2012-05-02 广州市动景计算机科技有限公司 Method for interface operation and control of mobile device and implement device
CN103645845A (en) * 2013-11-22 2014-03-19 华为终端有限公司 Knocking control method and terminal
CN104092932A (en) * 2013-12-03 2014-10-08 腾讯科技(深圳)有限公司 Acoustic control shooting method and device

Also Published As

Publication number Publication date
CN105681660A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
US20210217433A1 (en) Voice processing method and apparatus, and device
CN105592283B (en) Mobile terminal and the method for controlling mobile terminal
CN104991754B (en) The way of recording and device
JP4847590B2 (en) Voice processing apparatus and method in mobile communication terminal
KR102538775B1 (en) Method and apparatus for playing audio, electronic device, and storage medium
WO2015154282A1 (en) Call device and switching method and device applied thereto
KR20210117120A (en) Audio signal processing method and device, and storage medium
CN105682258B (en) A kind of switching method and apparatus of subscriber identification card
CN105681658B (en) A kind of image processing method and device
CN105681660B (en) A kind of switching method and apparatus of screening-mode
WO2023231686A9 (en) Video processing method and terminal
CN105718174B (en) Interface switching method and system
RU2635838C2 (en) Method and device for sound recording
CN105718163A (en) Screen capture method and apparatus for mobile terminal
JP6835205B2 (en) Shooting sound pickup device, sound pick-up control system, shooting sound pick-up device control method, and shooting sound pick-up control system control method
JP2013168878A (en) Recording device
EP2805525A1 (en) High dynamic range microphone system
CN105491297B (en) A kind of method of adjustment and device of camera parameter
WO2018064883A1 (en) Method and device for sound recording, apparatus and computer storage medium
CN105721679A (en) Conversation switching method and conversation switching device
WO2018090343A1 (en) Microphone, and method and device for audio processing
CN105718144B (en) A kind of icon processing method and processing device
CN105491246A (en) Photographing processing method and device
CN105718180A (en) Adjustment method and device of page information display mode
CN105721678A (en) Calling processing method and calling processing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190716