[go: up one dir, main page]

CN105491297B - A method and device for adjusting camera parameters - Google Patents

A method and device for adjusting camera parameters Download PDF

Info

Publication number
CN105491297B
CN105491297B CN201610038985.6A CN201610038985A CN105491297B CN 105491297 B CN105491297 B CN 105491297B CN 201610038985 A CN201610038985 A CN 201610038985A CN 105491297 B CN105491297 B CN 105491297B
Authority
CN
China
Prior art keywords
adjustment
vibration signal
mobile terminal
preset
signal
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
CN201610038985.6A
Other languages
Chinese (zh)
Other versions
CN105491297A (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 CN201610038985.6A priority Critical patent/CN105491297B/en
Publication of CN105491297A publication Critical patent/CN105491297A/en
Application granted granted Critical
Publication of CN105491297B publication Critical patent/CN105491297B/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/66Remote control of cameras or camera parts, e.g. by remote control devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a kind of method of adjustment of camera parameter and devices, wherein this method comprises: when shooting, obtaining user by tapping vibration signal caused by mobile terminal;The vibration signal is matched with preset signals sample;When determining that the vibration signal is consistent with preset signals sample matches, into corresponding adjustment modes;Based under the adjustment modes, imaging area is zoomed in or out.The embodiment of the present invention is directed to when user images, identify that user taps the movement of mobile terminal by vibration signal, imaging area is zoomed in or out according to the vibration signal to realize, not only without physical button, also simplify the adjustment operation of user, compared with the existing technology, the program is more easy to the adjustment of imaging area during camera shooting, improves the operating efficiency and operating flexibility of adjustment.

Description

A kind of method of adjustment and device of camera parameter
Technical field
The invention belongs to the methods of adjustment and device of field of communication technology more particularly to a kind of camera parameter.
Background technique
With the rapid development of mobile communication technology, the function of mobile terminal (such as mobile phone, tablet computer) is also increasingly It is more;It is imaged for example, mobile terminal can be used in user.
During camera shooting, since each Man's Demands are different, the camera parameter that mobile terminal has automatically adjusted is (as differentiated Rate, focal length, white balance etc.) it may be not met by the individual demand of user, therefore user can according to demand join camera shooting Number is adjusted, for example, the object of camera shooting furthers if user needs to zoom in or out the object of camera shooting Or when zooming out, needs by the physical button for volume adjustment or need user and realize adjusting using screen touch-control.
In the research and practice process to the prior art, it was found by the inventors of the present invention that if desired utilizing volume adjustment Physical button adjust, then bring inconvenience during camera shooting to the adjusting of volume;And the mode that screen touch-control is adjusted, it needs User's both hands operate camera parameter could be adjusted simultaneously, operate relatively complicated inconvenience, lead to operating efficiency and operation spirit Activity is lower.
Summary of the invention
The purpose of the present invention is to provide a kind of method of adjustment of camera parameter and devices, it is intended to simplify operating procedure, mention The operating efficiency and operating flexibility of high camera parameter adjustment.
In order to solve the above technical problems, the embodiment of the present invention the following technical schemes are provided:
A kind of method of adjustment of camera parameter, including:
When shooting, user is obtained by tapping vibration signal caused by mobile terminal;
The vibration signal is matched with preset signals sample;
When determining that the vibration signal is consistent with preset signals sample matches, into corresponding adjustment modes;
Based under the adjustment modes, imaging area is zoomed in or out.
In order to solve the above technical problems, the embodiment of the present invention also the following technical schemes are provided:
A kind of adjustment device of camera parameter, including:
Acquiring unit, for when shooting, obtaining user by tapping vibration signal caused by mobile terminal;
Matching unit, for matching the vibration signal with preset signals sample;
Mode enters unit, and when for determining that the vibration signal is consistent with preset signals sample matches, entrance is corresponding Adjustment modes;
Adjustment unit, for being zoomed in or out to imaging area based under the adjustment modes.
Compared with the existing technology, it is logical to obtain user when detecting that mobile terminal is in camera shooting state for the embodiment of the present invention Vibration signal caused by percussion mobile terminal is crossed, and the vibration signal is matched with preset signals sample, thereafter true Determine vibration signal it is consistent with preset signals sample matches when, into corresponding adjustment modes, and based on right under the adjustment modes Imaging area zooms in or out.The present invention is directed to when user images, and is identified that user taps by vibration signal and is moved The movement of dynamic terminal, zooms in or out imaging area according to the vibration signal to realize, not only without physics Key also simplifies the adjustment operation of user, compared with the existing technology, adjustment of program during camera shooting to imaging area It is more easy, improve the operating efficiency and operating flexibility of adjustment.
Detailed description of the invention
With reference to the accompanying drawing, by the way that detailed description of specific embodiments of the present invention, technical solution of the present invention will be made And other beneficial effects are apparent.
Fig. 1 a is the flow diagram of the method for adjustment for the camera parameter that first embodiment of the invention provides;
Fig. 1 b is the principle point that vibration signal generates in the method for adjustment for the camera parameter that first embodiment of the invention provides Analyse schematic diagram;
Fig. 2 is the flow diagram of the method for adjustment for the camera parameter that second embodiment of the invention provides;
Fig. 3 a is the structural schematic diagram of the adjustment device for the camera parameter that third embodiment of the invention provides;
Fig. 3 b is another structural schematic diagram of the adjustment device for the camera parameter that third embodiment of the invention provides.
Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the present invention is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the specific embodiment of the invention, should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiments of the present invention will refer to the step as performed by one or multi-section computer And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is executed by computer, this paper institute The computer execution of finger includes by representing with the computer processing unit of the electronic signal of the data in a structuring pattern Operation.This operation is converted at the data or the position being maintained in the memory system of the computer, reconfigurable Or in addition change the running of the computer in mode known to the tester of this field.The maintained data structure of the data For the provider location of the memory, there is the specific feature as defined in the data format.But the principle of the invention is with above-mentioned text Word illustrates that be not represented as a kind of limitation, this field tester will appreciate that plurality of step and behaviour as described below Also it may be implemented in hardware.
The principle of the present invention is grasped using many other wide usages or specific purpose operation, communication environment or configuration Make.The known example suitable for arithmetic system of the invention, environment and configuration may include (but being not limited to) hold phone, Personal computer, server, multicomputer system, system, body frame configuration computer and distributed arithmetic ring based on micro computer Border, which includes any above system or devices.
It will be described in detail respectively below.
First embodiment
In the present embodiment, the angle of the adjustment device from camera parameter is described, the adjustment dress of the camera parameter Setting, which specifically can integrate, has storage element in tablet PC (Personal Computer), mobile phone etc. and is equipped with microprocessor And in the terminating machine with operational capability.
A kind of method of adjustment of camera parameter, comprising: when shooting, obtain user by tapping caused by mobile terminal Vibration signal;The vibration signal is matched with preset signals sample;Determine the vibration signal and preset signals sample matches When consistent, into corresponding adjustment modes;Based under the adjustment modes, imaging area is zoomed in or out.
Fig. 1 a is please referred to, Fig. 1 a is the process signal of the method for adjustment for the camera parameter that first embodiment of the invention provides Figure, detailed process may include:
In step s101, when shooting, user is obtained by tapping vibration signal caused by mobile terminal.
It is understood that the embodiment of the present invention is when being in camera shooting state based on mobile terminal, according to the percussion movement The adjustment to camera parameter is realized in the triggering of vibration signal caused by terminal (being referred to as acoustic signals), wherein camera shooting Parameter can specifically include resolution ratio, focal length etc..
In practical applications, since mobile terminal some devices itself carry vibrating diaphragm, for example, the Mike on mobile terminal Wind, loudspeaker, receiver etc., therefore, can by vibrating diaphragms such as microphone, loudspeaker or receiver that mobile terminal carries come Obtain the vibration signal for being directed to mobile terminal.
For example, mobile terminal detects current state, when mobile terminal is in camera shooting state, mobile terminal passes through Included microphone obtains user by tapping vibration signal caused by the mobile terminal.
In the embodiment of the present invention, since the vibration signal received for mobile terminal can be mobile terminal by the external world Mechanical oscillation occur for active force, thus the vibration signal generated.
For example, mobile terminal can vibrate, so that mobile terminal can generate when user taps mobile terminal (such as mobile phone) Vibration signal, meanwhile, which is also possible to mobile terminal transmitting, and the vibration signal generated by external vibration source.
It is contemplated that the mode that user taps mobile terminal in the present embodiment has very much, for example, can be to use finger Mobile terminal is clicked directly on, is also possible to using other hard objects, for example uses penholder, key etc., click mobile terminal.
In step s 102, which is matched with preset signals sample.
In step s 103, when determining that the vibration signal is consistent with preset signals sample matches, into corresponding adjustment Mode.
In step S104, based under the adjustment modes, imaging area is zoomed in or out.
Wherein, the step S102 to step S104 can specifically:
Further, it can determine whether vibration signal meets preset condition according to the attribute information of vibration signal, for example, When judging that attribute information meets preset condition, then determine that vibration signal is consistent with preset signals sample matches, otherwise, it is determined that should Vibration signal and preset signals sample mismatch.
For example, whether judging the frequency information respectively when attribute information includes: frequency information, amplitude information, temporal information Meet predeterminated frequency requirement, whether which meets default amplitude requirement, and whether which, which meets preset time, is wanted It asks.
Below for illustrating signal processing apparatus, determine user by tapping produced by the mobile terminal the present embodiment Vibration signal analyzed with the consistent detailed process of preset signals sample matches.
As shown in Figure 1 b, which includes: microphone circuit 101, analog-to-digital conversion module 102, sample rate turn Change the mold block 103, Fourier transform (FFT, Fast Fourier Transformation) module 104, time analysis module 105, Frequency analysis module 106, amplitude analysis module 107, statistics identification module 108 and action executing module 109.
A, microphone circuit 101, the vibration signal of mobile terminal is directed to by obtaining, and the vibration signal is converted into mould Quasi- signal;Wherein, microphone circuit 101 includes various types of microphones, such as electret microphone, silicon microphone, even Device including any sound-electric conversion, such as: loudspeaker and receiver.If it is digital microphone then direct output digit signals, If it is simulation microphone, this needs subsequent D/A converter module 102 to be converted to digital signal.
Can specifically, when mobile terminal vibration generates vibration signal, the vibrating diaphragm in microphone circuit 101 senses vibration Signal, and all can and then vibrate together, the coil that vibrating diaphragm just will drive in microphone circuit 101 does the fortune of cutting magnetic line It is dynamic, so that corresponding current signal, i.e. analog signal will be generated in coil.
The microphone can also be replaced in the present embodiment with receiver or loudspeaker and realizes same function, it is worked The course of work type of journey and microphone, just repeats no more here.
B, analog-to-digital conversion module 102, i.e. A/D module, the analog signal for exporting microphone circuit 101 are converted into pair The digital signal answered, so as to subsequent processing analysis.
C, sample rate conversion module 103, for adjusting the sample rate of digital signal;Wherein, according to circumstances adjustment number is believed Number sample rate be in order to reduce following digital analysis operation requirement;Preferably, sample rate cannot be below 16Khz, bit rate It cannot be below 10bit, it otherwise may impact analysis precision.
D, Fourier transform module 104 carry out Fourier transform to digital signal, to be converted to frequency-domain analysis.
Thereafter, it to the digital signal frequency-domain analysis, can specifically include:
D1, time analysis module 105, i.e. time (Time) analysis;
For analyzing the time of digital signal after digital signal carries out Fourier transform;Specifically, it obtains The temporal information of digital signal, and judge the temporal information whether meet preset time requirement, for example, obtain digital signal when Between the period, judge the time cycle whether within the scope of preset period of time, if so, meet preset time requirement, show this Digital signal meets the time requirement for tapping the digital signal that mobile terminal generates, and the corresponding vibration signal of the digital signal has can It can be the vibration signal for tapping mobile terminal and generating.
Further, it is dynamic to provide a percussion for the design feature of the characteristics of for example, based on hammer action and mobile terminal The time cycle [T1, T2] of work, the explanation that goes beyond the scope is not normal hammer action;If it is meet hammer action feature when Between, then export OK signal.It is analyzed according to the recorded audio signals of actual user's finger tapping mobile terminal, T1 is generally no greater than 5ms, T2 No more than 20ms.
D2, frequency analysis module 106 are used for frequency (Frequency) distributional analysis;
Whether determination frequency distribution meets predeterminated frequency requirement, for example, if frequency distribution is continuous and frequency band is broad, then it is assumed that The frequency distribution of the digital signal meets the frequency distribution for tapping the digital signal generated.From the point of view of actually comparison, especially For 6Khz between highest frequency (sample rate frequency ÷ 2), frequency distribution is continuous.
D3, amplitude analysis module 107 are analyzed for amplitude (Amplitude);
Analyze the signal energy of entire frequency range;Specifically, it can analyze the averaged amplitude value of entire frequency range, and judge that this is flat Whether equal range value meets default amplitude requirement, for example, judging whether the averaged amplitude value is greater than default amplitude, if so, full Otherwise the default amplitude requirement of foot is unsatisfactory for default amplitude requirement.
E, identification module 108 is counted, for counting and according to time analysis module 105, frequency analysis module 106, amplitude The analysis result of analysis module 107 identifies or judges whether current vibration signal meets preset condition.
For example, the interval that statistics taps such as is lower than T3 (such as 50ms) if the movement tapped twice that is connected is too short, due to In view of the movement of people is without so fast, therefore it may determine that not output action instruction;If the time acted twice that is connected is long In T4 (such as 500ms), then it is assumed that last time movement is not belonging to the secondary movement of preceding N (N is positive integer);If all movements Interval all meets in [T3, T4], then it is assumed that this is some specified movement, and exports the signal of the required movement.
F, it is held for the instruction according to statistics identification module 108 in conjunction with current application environment action executing module 109 The specified movement of row;I.e. according to the vibration signal generated is tapped, into corresponding adjustment modes, carried out to realize in user When camera shooting, imaging area is zoomed in or out based on flexible and convenient under the adjustment modes.
It can be seen from the above, the method for adjustment of camera parameter provided in this embodiment, images detecting that mobile terminal is in When state, user is obtained by tapping vibration signal caused by mobile terminal, and by the vibration signal and preset signals sample It is matched, thereafter when determining that vibration signal is consistent with preset signals sample matches, into corresponding adjustment modes, and base Imaging area is zoomed in or out under the adjustment modes.The present invention is directed to when user images, and is believed by vibration Number identification user tap mobile terminal movement, thus realize imaging area is zoomed in or out according to the vibration signal, Not only without physical button, the adjustment operation of user is also simplified, compared with the existing technology, the program is during camera shooting It is more easy to the adjustment of imaging area, improve the operating efficiency and operating flexibility of adjustment.
Second embodiment
Citing, is described in further detail by described method according to first embodiment below.
Referring to Fig. 2, Fig. 2 is the flow diagram of the method for adjustment for the camera parameter that second embodiment of the invention provides, Wherein, in the embodiment, executing subject is mobile terminal, such as can be specially tablet PC and mobile phone.Detailed process can wrap It includes:
In step s 201, mobile terminal detects current state.
In step S202, when mobile terminal is in camera shooting state, mobile terminal is obtained and is used by included microphone Family is by tapping vibration signal caused by the mobile terminal.
Wherein, the step S201 and step S202 can specifically:
It is understood that mobile terminal can detect its current state in preset interval, for example, every 10 points Clock or every 15 minutes etc.;Further, in some more accurate scenes, mobile terminal can be in real time to current state It is detected.
For example, mobile terminal can be obtained and be used by included microphone when determining that mobile terminal is in camera shooting state Family is by tapping vibration signal caused by the mobile terminal, for example, then may be used when determining mobile terminal currently opens camera To determine that mobile terminal is in camera shooting state.
In the present embodiment, obtain mobile terminal vibration signal can there are many, for example, can be by mobile terminal Vibrating diaphragm obtains vibration signal, and when mobile terminal vibrates, which also can and then vibrate together, therefore, can pass through vibration Film incudes the vibration of mobile terminal, to get the vibration signal triggered on mobile terminals.
In practical applications, since mobile terminal some devices itself carry vibrating diaphragm, for example, the Mike on mobile terminal Wind, loudspeaker, receiver etc., therefore, can by vibrating diaphragms such as microphone, loudspeaker or receiver that mobile terminal carries come Obtain the vibration signal for being directed to mobile terminal.
It is contemplated that the mode that user taps mobile terminal in the present embodiment has very much, for example, can be to use finger Mobile terminal is clicked directly on, is also possible to using other hard objects, for example uses penholder, key etc., click mobile terminal is not made herein It is specific to limit.
In step S203, mobile terminal matches vibration signal with preset signals sample.
In embodiments of the present invention, for example, mobile terminal match by vibration signal and preset signals sample can be specific Include:
(1) determine whether the vibration signal is digital signal;
(2) when determining the vibration signal is digital signal, the attribute information of vibration signal is obtained;
Wherein, attribute information includes one or two of frequency information, amplitude information and temporal information combination of the above;
(3) if it is determined that the attribute information meets preset condition, it is determined that vibration signal and preset signals sample matches one It causes.
It is possible, firstly, to understand, propagated since the hammer action time is very of short duration, and by the solid of equipment, therefore, It is a kind of special vibration signal that mobile terminal, which is tapped the vibration signal generated by user, with mobile terminal by other works The vibration signal that the external vibration source of vibration signal or the mobile terminal transmitting firmly generated generates is not identical.
The vibration signal for tapping and generating is analyzed from electrical point, for example be will hit against the vibration signal of generation and be converted into number Signal carries out following digital processing analysis to the digital signal:
A, signal time: the signal duration is very short (millisecond rank).
B, signal amplitude size compares: the level of the digital signal is relatively large, due to being direct vibration movement when tapping The microphone of terminal itself is that solid is propagated, therefore the signal strength of digital signal more corresponding than General Oscillation signal is bigger.
C, the frequency spectrum of signal: the entire digital signal frequency range of frequency coverage, and the amplitude difference of each frequency is little.
The characteristics of the present embodiment can be based on above-mentioned vibration signal corresponding digital signal as a result, or feature, identification or Whether the vibration signal that person's judgement is got is consistent with preset signals sample matches.
For example, if needing for the vibration signal to be converted into corresponding vibration number letter when vibration signal is analog signal Number, likewise, obtaining its attribute information, however, it is determined that go out the attribute information and meet corresponding preset threshold range, it is determined that the vibration Dynamic signal is consistent with preset signals sample matches.
Further, for example, being turned the vibration signal by microphone, receiver or the loudspeaker that mobile terminal carries It changes analog electrical signal into, then, which is subjected to analog-to-digital conversion (for example, converting by analog-digital converter), is obtained Digital signal carries out digital processing to the digital signal and then, judges the vibration according to attribute information to obtain attribute information Whether signal is consistent with preset signals sample matches.For the ease of judgement, the present embodiment carries out after obtaining analog electrical signal Before analog-to-digital conversion, processing can also be amplified to analog electrical signal, such as by programmable gain amplifier to the simulation Electric signal amplifies processing, wherein can be executed by digital processing chip to the processing of digital signal.
Wherein, the attribute information of digital signal may include: frequency information (including frequency distribution, frequency bandwidth etc.), width At least one of other attribute informations such as value information, temporal information or two or more combinations.
Further, for example, judging respectively when attribute information includes: frequency information, amplitude information and temporal information Whether the frequency information meets predeterminated frequency range, and whether which meets default amplitude range, and whether the temporal information Meet preset time range, wherein predeterminated frequency range, default amplitude range, preset time range can be respectively according to default The corresponding frequency information of digital signal, amplitude information, temporal information setting, the preset number signal are mobile terminal by user Tap the corresponding digital signal of vibration signal generated.
Wherein, the present embodiment is needing to judge whether multiple attribute informations meet preset condition, taps generation to identify When vibration signal, for example, said frequencies information, amplitude information, temporal information judge three times, it can be based on multiple judging result It identifies, further, when three judging results are to be, just determines that attribute information meets preset condition and (determines vibration Signal is consistent with preset signals sample matches), alternatively, being determined when having certain several judging result in multiple judging results is to be Attribute information meets preset condition, these can set according to the actual situation, and judging result is more the case where being, identification Precision is higher.
In step S204, when mobile terminal determines that vibration signal is consistent with preset signals sample matches, struck according to user The number for hitting the mobile terminal, into corresponding adjustment modes.
In step S205, mobile terminal is based under the adjustment modes, is zoomed in or out to imaging area.
Wherein, the step S204 and step S205 can specifically:
In a kind of possible embodiment, if preset signals sample indicates the vibration signal by tapping mobile terminal one It is secondary to be triggered, then enter the first adjustment mode, wherein the first adjustment mode instruction is according to the first preset ratio to imaging area It amplifies;
Based on this, mobile terminal is based under adjustment modes, and zooming in or out (step S205) to imaging area can have Body are as follows:
If it is determined that adjustment modes are the first adjustment mode, then imaging area is amplified according to first preset ratio; Further, under the first adjustment mode, the volume of current camera shooting recording can also be promoted according to third preset ratio.
That is, it is corresponding with the relationship of number of the mobile terminal is tapped to store adjustment modes in preset signals sample Table can be corresponding according to relationship when preset signals sample indicates that the vibration signal is primary triggered by percussion mobile terminal Table is determining simultaneously to enter the first adjustment mode, so as to according to the instruction of the first adjustment mode, according to first preset ratio pair Imaging area amplifies.
Preferably, while being amplified to imaging area, the volume of current camera shooting recording can be adjusted, Such as, the volume of current camera shooting recording can be promoted according to third preset ratio.
In alternatively possible embodiment, if preset signals sample indicates the vibration signal by tapping mobile terminal It is triggered twice, then enters second adjustment mode, wherein second adjustment mode instruction is according to the second preset ratio to imaging region Domain is reduced;
Based on this, mobile terminal is based under adjustment modes, and zooming in or out (step S205) to imaging area can have Body are as follows:
If it is determined that adjustment modes are second adjustment mode, then imaging area is reduced according to second preset ratio; Further, under the second adjustment mode, the volume of current camera shooting recording can also be reduced according to the 4th preset ratio.
That is, it is corresponding with the relationship of number of the mobile terminal is tapped to store adjustment modes in preset signals sample Table can be corresponding according to relationship when preset signals sample indicates that the vibration signal is triggered twice by percussion mobile terminal Table is determining simultaneously to enter second adjustment mode, so as to according to the instruction of second adjustment mode, according to second preset ratio pair Imaging area is reduced.
Preferably, while being reduced to imaging area, the volume of current camera shooting recording can be adjusted, Such as, the volume of current camera shooting recording can be reduced according to the 4th preset ratio.
It is contemplated that resolution ratio, focal length, brightness, white balance etc. can also be adjusted other camera parameters, than Such as, can set user tap within a preset time interval the number of mobile terminal as three times when, go to adjust according to preset ratio Resolution ratio etc. is imaged, the present embodiment is only illustrated for adjusting imaging area, is not constituted a limitation of the invention.
It is understood that there is no the part being described in detail in the embodiment, such as to the generation of vibration signal and vibration signal The contents such as acquisition detection, may refer in first embodiment correlation step and describe, details are not described herein again.
It can be seen from the above, the method for adjustment of camera parameter provided in this embodiment, images detecting that mobile terminal is in When state, user is obtained by tapping vibration signal caused by mobile terminal, and by the vibration signal and preset signals sample It is matched, thereafter when determining that vibration signal is consistent with preset signals sample matches, into corresponding adjustment modes, and base Imaging area is zoomed in or out under the adjustment modes.The present invention is directed to when user images, and is believed by vibration Number identification user tap mobile terminal movement, thus realize imaging area is zoomed in or out according to the vibration signal, Not only without physical button, the adjustment operation of user is also simplified, compared with the existing technology, the program is during camera shooting It is more easy to the adjustment of imaging area, improve the operating efficiency and operating flexibility of adjustment.
3rd embodiment
For the method for adjustment convenient for better implementation camera parameter provided in an embodiment of the present invention, the embodiment of the present invention is also mentioned For a kind of device of method of adjustment based on above-mentioned camera parameter.The wherein side of the adjustment of the meaning of noun and above-mentioned camera parameter Identical in method, specific implementation details can be with reference to the explanation in embodiment of the method.
Fig. 3 a is please referred to, Fig. 3 a is the structural schematic diagram of the adjustment device of camera parameter provided in an embodiment of the present invention, should Device may include that acquiring unit 301, matching unit 302, mode enter unit 303 and adjustment unit 304.
Wherein acquiring unit 301, for when shooting, obtaining user by tapping vibration letter caused by mobile terminal Number.
It is understood that the embodiment of the present invention is when being in camera shooting state based on mobile terminal, according to the percussion movement The adjustment to camera parameter is realized in the triggering of vibration signal caused by terminal (being referred to as acoustic signals), wherein camera shooting Parameter can specifically include resolution ratio, focal length etc..
In practical applications, since mobile terminal some devices itself carry vibrating diaphragm, for example, the Mike on mobile terminal Wind, loudspeaker, receiver etc., therefore, the acquiring unit 301 can be used for the microphone, called carried by mobile terminal The vibrating diaphragms such as device or loudspeaker obtain user by tapping vibration signal caused by the mobile terminal.
For example, mobile terminal detects current state, when mobile terminal is in camera shooting state, mobile terminal passes through Included microphone obtains user by tapping vibration signal caused by the mobile terminal.
In the embodiment of the present invention, since the vibration signal received for mobile terminal can be mobile terminal by the external world Mechanical oscillation occur for active force, thus the vibration signal generated.
For example, mobile terminal can vibrate, so that mobile terminal can generate when user taps mobile terminal (such as mobile phone) Vibration signal, meanwhile, which is also possible to mobile terminal transmitting, and the vibration signal generated by external vibration source.
It is contemplated that the mode that user taps mobile terminal in the present embodiment has very much, for example, can be to use finger Mobile terminal is clicked directly on, is also possible to using other hard objects, for example uses penholder, key etc., click mobile terminal.
Matching unit 302, for matching the vibration signal with preset signals sample;Mode enters unit 303, When for determining that the vibration signal is consistent with preset signals sample matches, into corresponding adjustment modes;Adjustment unit 304, for being zoomed in or out to imaging area based under the adjustment modes.
Further, it can determine whether vibration signal meets preset condition according to the attribute information of vibration signal, for example, When judging that attribute information meets preset condition, then determine that vibration signal is consistent with preset signals sample matches, otherwise, it is determined that should Vibration signal and preset signals sample mismatch.
For example, whether judging the frequency information respectively when attribute information includes: frequency information, amplitude information, temporal information Meet predeterminated frequency requirement, whether which meets default amplitude requirement, and whether which, which meets preset time, is wanted It asks.
Further, the adjustment device of the camera parameter can also include determination unit 305, mainly may include:
First determines subelement 3051, for determining whether the vibration signal is digital signal;
Subelement 3052 is obtained, for obtaining the vibration signal when determining the vibration signal is digital signal Attribute information, the attribute information include one or two of frequency information, amplitude information and temporal information combination of the above;
Second subelement 3053, for if it is determined that the attribute information meets preset condition, it is determined that the vibration letter It is number consistent with preset signals sample matches.
For example, if needing for the vibration signal to be converted into corresponding vibration number letter when vibration signal is analog signal Number, likewise, obtaining its attribute information, however, it is determined that go out the attribute information and meet corresponding preset threshold range, it is determined that the vibration Dynamic signal is consistent with preset signals sample matches.
Wherein, the attribute information of digital signal may include: frequency information (including frequency distribution, frequency bandwidth etc.), width At least one of other attribute informations such as value information, temporal information or two or more combinations.
Further, for example, when attribute information includes: frequency information, amplitude information and temporal information, judgement should respectively Whether frequency information meets predeterminated frequency range, and whether which meets default amplitude range, and whether the temporal information is full Sufficient preset time range, wherein predeterminated frequency range, default amplitude range, preset time range can be respectively according to present counts The corresponding frequency information of word signal, amplitude information, temporal information setting, the preset number signal are that mobile terminal is struck by user Hit the corresponding digital signal of vibration signal of generation.
In a kind of possible embodiment, the mode enters unit 303, if indicating for the preset signals sample The vibration signal is once triggered by tapping mobile terminal, then enters the first adjustment mode, and the first adjustment mode refers to Show and imaging area is amplified according to the first preset ratio;
Based on this, the adjustment unit 304 is used for if it is determined that the adjustment modes are the first adjustment mode, then according to institute The first preset ratio is stated to amplify imaging area.
Further, under the first adjustment mode, the adjustment unit 304 be can be also used for according to the default ratio of third Example promotes the volume of current camera shooting recording.
That is, it is corresponding with the relationship of number of the mobile terminal is tapped to store adjustment modes in preset signals sample Table can be corresponding according to relationship when preset signals sample indicates that the vibration signal is primary triggered by percussion mobile terminal Table is determining simultaneously to enter the first adjustment mode, so as to according to the instruction of the first adjustment mode, according to first preset ratio pair Imaging area amplifies, also, while amplifying to imaging area, can carry out to the volume of current camera shooting recording Adjustment.
In alternatively possible embodiment, the mode enters unit 303, if referring to for the preset signals sample Show that the vibration signal is triggered twice by tapping mobile terminal, then enters second adjustment mode, the second adjustment mode Instruction reduces imaging area according to the second preset ratio;
Based on this, the adjustment unit 304 is used for if it is determined that the adjustment modes are second adjustment mode, then according to institute The second preset ratio is stated to reduce imaging area.
Further, under the second adjustment mode, the adjustment unit 304 is also used to drop according to the 4th preset ratio The volume of low current camera shooting recording.
That is, it is corresponding with the relationship of number of the mobile terminal is tapped to store adjustment modes in preset signals sample Table can be corresponding according to relationship when preset signals sample indicates that the vibration signal is triggered twice by percussion mobile terminal Table is determining simultaneously to enter second adjustment mode, so as to according to the instruction of second adjustment mode, according to second preset ratio pair Imaging area is reduced, further, can be to the volume of current camera shooting recording while reducing to imaging area It is adjusted
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 adjustment device of the camera parameter, which specifically can integrate, to be had storage element in tablet PC, mobile phone etc. and is equipped with micro- Processor and with operational capability terminating machine in.
It can be seen from the above, the adjustment device of camera parameter provided in this embodiment, images detecting that mobile terminal is in When state, user is obtained by tapping vibration signal caused by mobile terminal, and by the vibration signal and preset signals sample It is matched, thereafter when determining that vibration signal is consistent with preset signals sample matches, into corresponding adjustment modes, and base Imaging area is zoomed in or out under the adjustment modes.The present invention is directed to when user images, and is believed by vibration Number identification user tap mobile terminal movement, thus realize imaging area is zoomed in or out according to the vibration signal, Not only without physical button, the adjustment operation of user is also simplified, compared with the existing technology, the program is during camera shooting It is more easy to the adjustment of imaging area, improve the operating efficiency and operating flexibility of adjustment.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the detailed description of the method for adjustment above with respect to camera parameter, details are not described herein again.
The adjustment device of the camera parameter provided in an embodiment of the present invention is for example computer, tablet computer, has touching The mobile phone etc. of function is touched, the method for adjustment of the adjustment device and the camera parameter in foregoing embodiments of the camera parameter belongs to Same design provides in the method for adjustment embodiment that can run the camera parameter on the adjustment device of the camera parameter Either method, specific implementation process be detailed in the method for adjustment embodiment of the camera parameter, details are not described herein again.
It should be noted that this field common test personnel can for the method for adjustment of camera parameter of the present invention It is that can pass through computer to understand all or part of the process for the method for adjustment for realizing camera parameter described in the embodiment of the present invention Program is completed to control relevant hardware, and the computer program can be stored in a computer-readable storage medium, such as It is stored in the memory of terminal, and is executed by least one processor in the terminal, in the process of implementation may include such as institute State the process of the embodiment of the method for adjustment of camera parameter.Wherein, the storage medium can be magnetic disk, CD, read-only storage Device (ROM, Read Only Memory), random access memory (RAM, Random Access Memory) etc..
For the adjustment device of the camera parameter of the embodiment of the present invention, each functional module be can integrate at one It handles in chip, is also possible to modules and physically exists alone, a mould can also be integrated in two or more modules In block.Above-mentioned integrated module both can take the form of hardware realization, can also be realized in the form of software function module. It, can also be with if the integrated module is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium, the storage medium is for example read-only memory, disk or CD etc..
The method of adjustment and device for being provided for the embodiments of the invention a kind of camera parameter above are 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 (11)

1. a kind of method of adjustment of camera parameter characterized by comprising
When shooting, microphone, receiver or the loudspeaker carried by mobile terminal obtains user by tapping movement eventually Hold vibration signal caused by any position, comprising: when mobile terminal vibration generates vibration signal, receiver or loudspeaker Interior vibrating diaphragm senses vibration signal, and all can and then vibrate together, and vibrating diaphragm just will drive in receiver or loudspeaker Coil does the movement of cutting magnetic line, to can generate corresponding current signal in coil, the current signal is analog signal;
The vibration signal is matched with preset signals sample, comprising: convert analog signals into corresponding digital signal; The time cycle for obtaining digital signal, judge the time cycle whether within the scope of preset period of time;And statistical data signal Frequency distribution, determination frequency distribution;And the amplitude of digital signal is analyzed, the average amplitude of entire frequency range is analyzed Value, and judge averaged amplitude value;If the time cycle is within the scope of preset period of time, and frequency distribution is continuous and bandwidth Extensively, and averaged amplitude value is greater than default amplitude, determines that user is pre- by tapping the satisfaction of vibration signal caused by mobile terminal If condition;
If it is determined that the vibration signal meets preset condition, it is determined that the vibration signal and preset signals sample matches one It causes;
When determining that the vibration signal is consistent with preset signals sample matches, into corresponding adjustment modes;
Based under the adjustment modes, imaging area is zoomed in or out.
2. the method for adjustment of camera parameter according to claim 1, which is characterized in that described to enter corresponding adjustment mould Formula, comprising:
If the preset signals sample indicates that the vibration signal is once triggered by tapping mobile terminal, enters first and adjust Integral pattern, the first adjustment mode instruction amplify imaging area according to the first preset ratio;
It is described to be based under the adjustment modes, imaging area is zoomed in or out, comprising:
If it is determined that the adjustment modes are the first adjustment mode, then imaging area is put according to first preset ratio Greatly.
3. the method for adjustment of camera parameter according to claim 2, which is characterized in that the determination adjustment modes are The first adjustment mode, further includes:
The volume of current camera shooting recording is promoted according to third preset ratio.
4. the method for adjustment of camera parameter according to claim 1, which is characterized in that described to enter corresponding adjustment mould Formula, comprising:
If the preset signals sample indicates that the vibration signal is triggered twice by tapping mobile terminal, enters second and adjust Integral pattern, the second adjustment mode instruction reduce imaging area according to the second preset ratio;
It is described to be based under the adjustment modes, imaging area is zoomed in or out, comprising:
If it is determined that the adjustment modes are second adjustment mode, then contract according to second preset ratio to imaging area It is small.
5. the method for adjustment of camera parameter according to claim 4, which is characterized in that the determination adjustment modes are Second adjustment mode, further includes:
The volume of current camera shooting recording is reduced according to the 4th preset ratio.
6. a kind of adjustment device of camera parameter characterized by comprising
Acquiring unit, for when shooting, microphone, receiver or the loudspeaker carried by mobile terminal to obtain user By tapping vibration signal caused by any position of mobile terminal, comprising: when mobile terminal vibration generates vibration signal, by Vibrating diaphragm in words device or loudspeaker senses vibration signal, and all can and then vibrate together, and vibrating diaphragm just will drive receiver Or the coil in loudspeaker does the movement of cutting magnetic line, so that corresponding current signal can be generated in coil, the electric current Signal is analog signal;
Matching unit, for matching the vibration signal with preset signals sample, comprising: convert analog signals into pair The digital signal answered;The time cycle for obtaining digital signal, judge the time cycle whether within the scope of preset period of time;And The frequency distribution of statistical data signal, determination frequency distribution;And the amplitude of digital signal is analyzed, entire frequency range is analyzed Averaged amplitude value, and judge averaged amplitude value;If the time cycle is within the scope of preset period of time, and frequency distribution is continuous And frequency band is broad, and averaged amplitude value is greater than default amplitude, determines user by tapping vibration letter caused by mobile terminal Number meet preset condition;
Determination unit, for if it is determined that the vibration signal meets preset condition, it is determined that the vibration signal and default letter Number sample matches are consistent;
Mode enters unit, when for determining that the vibration signal is consistent with preset signals sample matches, into corresponding tune Integral pattern;
Adjustment unit, for being zoomed in or out to imaging area based under the adjustment modes.
7. the adjustment device of camera parameter according to claim 6, which is characterized in that the mode enters unit, is used for If the preset signals sample indicates that the vibration signal is once triggered by tapping mobile terminal, enter the first adjustment mould Formula, the first adjustment mode instruction amplify imaging area according to the first preset ratio;
The adjustment unit is used for if it is determined that the adjustment modes are the first adjustment mode, then according to first preset ratio Imaging area is amplified.
8. the adjustment device of camera parameter according to claim 7, which is characterized in that the adjustment unit, be also used to by The volume of current camera shooting recording is promoted according to third preset ratio.
9. the adjustment device of camera parameter according to claim 6, which is characterized in that the mode enters unit, is used for If the preset signals sample indicates that the vibration signal is triggered twice by tapping mobile terminal, enter second adjustment mould Formula, the second adjustment mode instruction reduce imaging area according to the second preset ratio;
The adjustment unit is used for if it is determined that the adjustment modes are second adjustment mode, then according to second preset ratio Imaging area is reduced.
10. the adjustment device of camera parameter according to claim 9, which is characterized in that the adjustment unit, be also used to by The volume of current camera shooting recording is reduced according to the 4th preset ratio.
11. a kind of computer readable storage medium, is stored with computer program, wherein the computer program to calculate Machine executes such as method described in any one of claim 1 to 5.
CN201610038985.6A 2016-01-20 2016-01-20 A method and device for adjusting camera parameters Expired - Fee Related CN105491297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610038985.6A CN105491297B (en) 2016-01-20 2016-01-20 A method and device for adjusting camera parameters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610038985.6A CN105491297B (en) 2016-01-20 2016-01-20 A method and device for adjusting camera parameters

Publications (2)

Publication Number Publication Date
CN105491297A CN105491297A (en) 2016-04-13
CN105491297B true CN105491297B (en) 2019-02-12

Family

ID=55677982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610038985.6A Expired - Fee Related CN105491297B (en) 2016-01-20 2016-01-20 A method and device for adjusting camera parameters

Country Status (1)

Country Link
CN (1) CN105491297B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126082B (en) * 2016-06-24 2020-01-14 北京小米移动软件有限公司 Terminal control method and device and terminal
CN107014481B (en) 2017-03-01 2021-01-29 北京小米移动软件有限公司 Action recognition method and 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
CN104123024A (en) * 2013-04-27 2014-10-29 华为技术有限公司 Terminal device and device control method
EP2813917A2 (en) * 2013-06-10 2014-12-17 LG Electronics, Inc. Mobile terminal and controlling method thereof

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
CN104123024A (en) * 2013-04-27 2014-10-29 华为技术有限公司 Terminal device and device control method
EP2813917A2 (en) * 2013-06-10 2014-12-17 LG Electronics, Inc. Mobile terminal and controlling method thereof

Also Published As

Publication number Publication date
CN105491297A (en) 2016-04-13

Similar Documents

Publication Publication Date Title
CN107454508B (en) TV set and TV system of microphone array
CN109256146B (en) Audio detection method, device and storage medium
CN111210021A (en) Audio signal processing method, model training method and related device
CN110970057A (en) A sound processing method, device and equipment
CN105611064A (en) Mobile terminal mode switching method and device
CN113808566B (en) Vibration noise processing method and device, electronic equipment and storage medium
CN107705804A (en) A kind of audible device condition detection method and mobile terminal
CN105549744B (en) A kind of screen luminance of terminal adjusting method and device
CN105491297B (en) A method and device for adjusting camera parameters
CN105704839B (en) A Bluetooth connection method and device
CN106095380A (en) Sound signal acquisition method and device
CN105718773B (en) A kind of terminal unlock method and device
CN102608931B (en) System and method for controlling electronic equipment
CN105719672A (en) A recording scene mode switching method and device
CN105848061B (en) Control method and electronic equipment
CN105718165B (en) Starting method and device for terminal background application
CN105472172B (en) Switching method, device and the computer readable storage medium of call mode
CN105718178B (en) A kind of methods of exhibiting and device of PUSH message
Luo et al. SoundWrite II: Ambient acoustic sensing for noise tolerant device-free gesture recognition
CN105682258A (en) A method and device for switching user identification cards
CN109032482A (en) Split screen control method, device, storage medium and electronic equipment
CN111800699B (en) Volume adjustment prompting method and device, earphone equipment and storage medium
CN105718162A (en) A method and device for switching between horizontal and vertical screens
CN105718180A (en) Adjustment method and device of page information display mode
CN105721678A (en) A call processing method and 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: 20190212