CN108111761A - A kind of stabilization processing method, terminal and computer readable storage medium - Google Patents

A kind of stabilization processing method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN108111761A
CN108111761A CN201711447002.5A CN201711447002A CN108111761A CN 108111761 A CN108111761 A CN 108111761A CN 201711447002 A CN201711447002 A CN 201711447002A CN 108111761 A CN108111761 A CN 108111761A
Authority
CN
China
Prior art keywords
camera
image
angle
displacement
terminal
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.)
Granted
Application number
CN201711447002.5A
Other languages
Chinese (zh)
Other versions
CN108111761B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201711447002.5A priority Critical patent/CN108111761B/en
Publication of CN108111761A publication Critical patent/CN108111761A/en
Application granted granted Critical
Publication of CN108111761B publication Critical patent/CN108111761B/en
Active 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/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • H04N23/685Vibration or motion blur correction performed by mechanical compensation
    • H04N23/687Vibration or motion blur correction performed by mechanical compensation by shifting the lens or sensor position
    • 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/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/681Motion detection
    • H04N23/6812Motion detection based on additional sensors, e.g. acceleration sensors
    • 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/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • 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/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • H04N23/683Vibration or motion blur correction performed by a processor, e.g. controlling the readout of an image memory

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of stabilization processing method, this method includes:If the camera of terminal is in running order and the first angle of movement for the first time occurs for camera more than predetermined angle, the first direction and the first displacement when camera is moved with first angle are obtained;The camera lens of camera is adjusted to first position in a second direction, and negative direction in a second direction is by the first Image Adjusting to the second position;Negative direction in a second direction adjusts camera lens to first object position from first position, and in a second direction adjusts the first image to the second target location from the second position;Based on the second target location terminal the first image of display screen display.The embodiment of the present invention also discloses a kind of terminal and computer readable storage medium simultaneously, if there is the shake more than predetermined angle in the camera for solving intelligent terminal in the prior art, the camera lens of camera will be unable to carry out corresponding compensating movement, and output image is caused the problem of drift phenomenon occur.

Description

A kind of stabilization processing method, terminal and computer readable storage medium
Technical field
The present invention relates to computer processing technology more particularly to a kind of stabilization processing method, terminal and computer-readable deposit Storage media.
Background technology
Now with the popularization of intelligent terminal, camera has become the standard configuration of intelligent terminal, and provides to the user Shooting function.In the case that especially hand-held intelligent terminal is shot during the video capture, if intelligent terminal is taken the photograph During as hair life minute movement, the camera lens of camera can make compensation for the minute movement;But if intelligent terminal is taken the photograph When significantly being moved as hair life, the camera lens of camera will be unable to carry out corresponding compensating movement, and output image is caused to drift about Phenomenon.
The content of the invention
In view of this, an embodiment of the present invention is intended to provide a kind of stabilization processing method, terminal and computer-readable storage mediums Matter, if the shake more than predetermined angle occurs in the camera for solving intelligent terminal in the prior art, the camera lens of camera will Corresponding compensating movement can not be carried out, output image is caused the problem of drift phenomenon occur;It effectively prevents shaking because of camera The phenomenon that output image drift of generation, improves the display effect of terminal, meanwhile, improve the intelligent of terminal.
In order to achieve the above objectives, the technical proposal of the invention is realized in this way:
In a first aspect, a kind of stabilization processing method is provided, the described method includes:
If the camera of terminal is in running order and the camera occur movement for the first time first angle be more than it is pre- If angle, first direction and the first displacement when the camera is moved with the first angle are obtained;
The camera lens of the camera is adjusted to first position in a second direction, and will along the negative direction of the second direction First Image Adjusting is to the second position;Wherein, described first image for the imaging sensor of camera output image, described the Two directions are different from the first direction;
The camera lens is adjusted from the first position to first object position, and edge along the negative direction of the second direction The second direction adjusts described first image to the second target location from the second position;Wherein, the first object Position has correspondence with second target location;
Based on second target location the terminal display screen display described first image.
Optionally, the camera lens is adjusted to first position in a second direction, and will along the negative direction of the second direction First Image Adjusting to the second position, including:
The camera lens is adjusted into second displacement amount to the first position along the second direction, and by described first image The second displacement amount is adjusted to the second position along the negative direction of the second direction;Wherein, the second displacement amount is big In or equal to first displacement.
Optionally, the negative direction along the second direction adjusts the camera lens to the first mesh from the first position Cursor position, and adjust described first image to the second target location from the second position along the second direction, including:
The camera lens is adjusted into triple motion amount to described at the first position along the negative direction of the second direction First object position, and described first image is adjusted into the triple motion amount from the second place along the second direction To second target location;Wherein, the triple motion amount is less than the second displacement amount.
Optionally, if the camera of the terminal is in running order and the camera occurs the first of movement for the first time Angle is more than predetermined angle, obtains the first direction when camera lens of the camera is moved with the first angle and the first displacement Amount, including:
If the camera is in running order, obtain first described in when first time movement do not occur for the camera The third place of image;
If the first time movement occurs for the camera, described first image when the first time movement occurs is obtained 4th position and the first time move corresponding first direction;
Based on the third place and the 4th position, first displacement is obtained.
Optionally, described first image is adjusted from the second position to the second target location in a second direction described Afterwards, the described method includes:
If the second angle that second of movement occurs for the camera is less than the predetermined angle, the camera lens is obtained with institute State the third direction and the 4th displacement during second angle movement;Wherein, the 4th displacement is less than first displacement;
The camera lens is adjusted into the 4th displacement to the 3rd target position from the first object position along fourth direction It puts, and the negative direction by described first image from second target location along the fourth direction adjusts the 4th displacement To the 4th target location;Wherein, the third direction is different from the fourth direction;
Described first image is shown based on the 4th target location on the display screen.
Optionally, if the second angle that second of movement occurs for the camera is less than the predetermined angle, obtain Third direction and the 4th displacement when the camera lens is moved with the second angle, including:
If second of movement occurs for the camera and second angle is less than the predetermined angle, the camera lens is obtained with institute When stating second angle movement the 5th position of described first image and described corresponding third direction is moved for the second time;
Based on second target location and the 5th position, the 4th displacement is obtained.
Optionally, the second direction is opposite to the first direction.
Second aspect, provides a kind of terminal, and the terminal includes:Display screen, processor, memory and communication bus;
Communication bus is used to implement the communication connection between the first display screen, processor and memory;
Processor is for performing stabilization processing routine in memory, to realize following steps:
If the camera of terminal is in running order and the camera occur movement for the first time first angle be more than it is pre- If angle, first direction and the first displacement when the camera is moved with the first angle are obtained;
The camera lens of the camera is adjusted to first position in a second direction, and will along the negative direction of the second direction First Image Adjusting is to the second position;Wherein, described first image for the imaging sensor of camera output image, described the Two directions are different from the first direction;
The camera lens is adjusted from the first position to first object position, and edge along the negative direction of the second direction The second direction adjusts described first image to the second target location from the second position;Wherein, the first object Position has correspondence with second target location;
Based on second target location the terminal display screen display described first image.
Optionally, if the camera that processor is used to perform the terminal in memory in stabilization processing routine is in work Make state and the camera first angle of movement for the first time occur to be more than predetermined angle, obtain the camera lens of the camera with During first direction and the first displacement during first angle movement, following steps can also be realized:
If the camera is in running order, obtain first described in when first time movement do not occur for the camera The third place of image;
If the first time movement occurs for the camera, described first image when the first time movement occurs is obtained 4th position and the first time move corresponding first direction;
Based on the third place and the 4th position, first displacement is obtained.
The third aspect provides a kind of computer readable storage medium, and there are one the computer-readable recording medium storages Or multiple programs, one or more of programs can be performed by one or more processor, to realize such as first aspect The step of described stabilization processing method.
Stabilization processing method, terminal and the computer readable storage medium that the embodiment of the present invention is provided, if terminal Camera is in running order and camera occurs the first angle of movement for the first time and is more than predetermined angle, obtains camera with the First direction and the first displacement during one angular movement;The camera lens of camera is adjusted to first position in a second direction, and Negative direction in a second direction is by the first Image Adjusting to the second position;Wherein, the first image is the imaging sensor of camera Output image, second direction is different from first direction;Negative direction in a second direction adjusts camera lens to from first position One target location, and in a second direction adjust the first image to the second target location from the second position;Wherein, first object position Put has correspondence with the second target location;Based on the second target location terminal the first image of display screen display. That is if camera is in running order, and camera occur for the first time movement and first angle be more than predetermined angle when, eventually The camera lens of end control camera carries out jitter compensation for the movement, while makes corresponding adjustment to the position of the first image, So that corresponding adjustment is made in the movement of the location following camera lens of the first image, the first image exported on such terminal display screen Just be not in drift phenomenon;If there is the shake more than predetermined angle in the camera for solving intelligent terminal in the prior art When, the camera lens of camera will be unable to carry out corresponding compensating movement, and output image is caused the problem of drift phenomenon occur;Effectively keep away The phenomenon that having exempted from the output image drift because of camera shake generation improves the display effect of terminal, meanwhile, improve terminal It is intelligent.
Description of the drawings
The hardware architecture diagram of Fig. 1 optional mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the communication system architecture schematic diagram that mobile terminal provided in an embodiment of the present invention can operate;
Fig. 3 is a kind of flow diagram of stabilization processing method provided in an embodiment of the present invention;
Fig. 4 is the first image that terminal is shown when camera lens provided in an embodiment of the present invention is not shaken;
Fig. 5 is the first image that terminal is shown when camera lens provided in an embodiment of the present invention is shaken upwards;
The first image that terminal is shown when Fig. 6 is camera lens provided in an embodiment of the present invention multi-faceted shake;
Fig. 7 is the flow diagram of another stabilization processing method provided in an embodiment of the present invention;
Fig. 8 is the flow diagram of another stabilization processing method provided in an embodiment of the present invention;
Fig. 9 is a kind of structure diagram for terminal that the embodiment of the present invention provides.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes.
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for representing that the suffix of such as " module ", " component " or " unit " of element is only Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention can include such as mobile phone, tablet Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable The shiftings such as media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer The dynamic fixed terminals such as terminal and number TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special For moving outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 can include:Radio frequency (Radio Frequency, RF) unit 101, Wi-Fi module 102, audio output unit 103rd, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or fewer components, Either combine some components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, handled to processor 110;In addition, by the data sending of uplink to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, it penetrates Frequency unit 101 can also be communicated by wireless communication with network and other equipment.Above-mentioned wireless communication can use any communication Standard or agreement include but not limited to global system for mobile communications (Global System of Mobile Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code it is point more Location 2000 (Code Division Multiple Access 2000, CDMA2000), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), TD SDMA (Time Division- Synchronous Code Division Multiple Access, TD-SCDMA), frequency division duplex Long Term Evolution (Frequency Division Duplexing-Long Term Evolution, FDD-LTE) and time division duplex Long Term Evolution (Time Division Duplexing-Long Term Evolution, TDD-LTE) etc..
Wi-Fi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch by Wi-Fi module 102 Email, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 Show Wi-Fi module 102, but it is understood that, and must be configured into for mobile terminal is not belonging to, it completely can basis It needs to omit in the scope of essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 Formula, speech recognition mode, broadcast reception mode when under isotypes, by radio frequency unit 101 or Wi-Fi module 102 it is receiving or The voice data that person stores in memory 109 is converted into audio signal and exports as sound.Moreover, audio output unit 103 can also provide with mobile terminal 100 perform the relevant audio output of specific function (for example, call signal receive sound, Message sink sound etc.).Audio output unit 103 can include loud speaker, buzzer etc..
A/V input units 104 are used to receive audio or video signal.A/V input units 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the image data of video obtained in image capture mode by image capture apparatus (such as camera) carry out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or Wi-Fi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio that treated (voice) data can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, details are not described herein.
Display unit 106 is used to show by information input by user or be supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be employed Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for the number for receiving input or character information and generation and the use of mobile terminal The key signals input that family is set and function control is related.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch-screen, collect user on it or neighbouring touch operation (for example user uses any suitable objects such as finger, stylus or attachment on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order that processor 110 is sent can be received and performed.It in addition, can To realize touch panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, operation lever etc. One or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the component independent as two to realize the function that outputs and inputs of mobile terminal, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) be connected with mobile terminal 100 can by interface.For example, External device (ED) can include wired or wireless head-band earphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for device of the connection with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part is stored in storage by running or performing the software program being stored in memory 109 and/or module and call Data in device 109 perform the various functions of mobile terminal and processing data, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor is main Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also be included to the power supply 111 (such as battery) of all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
For the ease of understanding the embodiment of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system It unites as the LTE system of universal mobile communications technology, user equipment (User of the LTE system including communicating connection successively Equipment, UE) 201, evolved UMTS Terrestrial radio access network (Evolved UMTS Terrestrial Radio Access Network, E-UTRAN) 202, evolved packet-based core networks (Evolved Packet Core, EPC) 203 and operation The IP operation 204 of business.
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 can include mobility management entity (Mobility Management Entity, MME) 2031, ownership Client server (Home Subscriber Server, HSS) 2032, other MME2033, gateway (Serving Gate Way, SGW) 2034, grouped data network gateway (PDN Gate Way, PGW) 2035 and policy and rate functional entity (Policy and Charging Rules Function, PCRF) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and some are preserved in relation to use such as service features, data rates The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address is distributed and other functions, and PCRF2036 is business data flow and the strategy of IP bearing resources and charging control strategic decision-making Point, it selects and provides available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IP multimedia subsystem (IP Multimedia Subsystem, IMS) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., it does not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the present invention is proposed.
The embodiment of the present invention provides a kind of stabilization processing method, and with reference to shown in Fig. 3, this method comprises the following steps:
If the camera of step 301, terminal is in running order and camera occur movement for the first time first angle it is big In predetermined angle, the first direction and the first displacement when camera is moved with first angle are obtained.
Here, terminal can have the mobile terminal of camera function, video monitoring equipment, hand-held camera, digital phase Machine etc..Camera includes motion sensor, central processing unit (Central Processing Unit, CPU), imaging sensor (Image Sensor, IS) and image-signal processor (Image Signal Processor, ISP).Institute of the embodiment of the present invention The stabilization processing method of offer is in camera during video is shot or in previews, may be occurred significantly due to camera lens Degree is shaken and causes to export a kind of frame compensation mode that image is unstable, drifts about.
In order to be compensated to the shake of camera, the camera of terminal first has to obtain itself by motion sensor Movable information compensates accordingly for determine to need the output for exporting image for video pictures to make according to the movable information, And then it avoids the occurrence of output image and drifts about.
The movable information of the real-time acquisition camera of motion sensor, CPU obtain the movement gathered by motion sensor in real time Information.For example, movable information includes:The angle of camera, direction of motion of camera etc..Certainly, movable information can also wrap Other information is included, comparison of the embodiment of the present invention is not done specifically defined.
The field angle that predetermined angle can characterize the camera lens of camera is 1 degree.Certainly, predetermined angle can be according to actual feelings Condition is set accordingly, is subject to and is realized stabilization processing method provided by the present invention.
In embodiments of the present invention, motion sensor can include:Acceleration transducer and gyro sensor, at this point, Motion sensor can determine the angle of camera by following manner.
CPU obtains the acceleration of the first default sampled point in the first preset time by acceleration transducer acquisition, and root Judge whether camera remains static according to the acceleration and default static threshold of the first default sampled point;If first default adopts The acceleration of sampling point is more than default static threshold, then CPU is obtained second in the second preset time by gyro sensor acquisition The angular speed of default sampled point, and the angular speed of the second default sampled point and the second preset time are multiplied, determine camera Angle, that is, rotational angle.
In the embodiment of the present invention, for the direction of movement, the camera lens of camera can make displacement up and down and The movements such as rotation, CPU obtain the acceleration of the first default sampled point in the first preset time that acceleration transducer is gathered, lead to It crosses the acceleration for comparing the first default sampled point and default static threshold judges whether camera remains static;If the The acceleration of one default sampled point is less than the default static threshold, then CPU determines that the movement of camera is very faint, to video The shake that picture generates is smaller, determines that camera is approximately at stationary state at this time;If the acceleration of the first default sampled point More than the default static threshold, then CPU determines that the shake that the athletic meeting of camera so that video pictures generate is larger, at this time really Determine camera and be in nonstatic state;It should be noted that the default static threshold is an empirical value.
Further, CPU obtains the angle speed of the second default sampled point in the second preset time by gyro sensor acquisition Degree, and the angular speed of the in the second preset time second default sampled point and the second preset time are multiplied, determine that the camera exists Rotational angle in second preset time.For example, the rotational angle includes the rotational angle Ax along X-axis and the angle of rotation along Y-axis Ay is spent, which can be expressed as (Ax, Ay).
Moved in terminal acquisition camera, and the corresponding first angle of the movement be more than predetermined angle when, terminal obtains First direction and the first displacement when taking the camera movement occurs.
In practical applications, illustratively, by taking terminal is with the mobile phone of shooting function as an example, with reference to shown in Fig. 4, user During being shot using mobile phone to the personage in reference object such as Fig. 4, user first opens the camera function of mobile phone, this When, it is shot on interface it can be seen that reference object on the display screen of terminal.Assuming that mobile phone does not move at this time, then, User can see that more clearly image, the image are the output image of IS from shooting interface, which can be The parts of images of current frame image.
Further, when the hand of user has unconsciously been shaken, it is assumed that shake upwards, at this time the camera lens of camera Corresponding shake upwards, such as camera lens have been rotated up 2 degree, and since the angle is more than such as 1 degree of predetermined angle, camera lens carries out downward Compensating movement.With reference to shown in Fig. 5, at this point, user can see that output image drifts about downwards from shooting interface.
Since the camera lens of camera can make the movements such as displacement up and down and rotation, illustratively, with reference to Fig. 6 institutes Show, when the hand of user has unconsciously been shaken, it is assumed that four direction has shake up and down in perpendicular, at this time The camera lens of camera also shake by corresponding four direction vertically and horizontally, and shakes angle and be more than predetermined angle, then, camera lens pin Maximum compensation is carried out to the shake, at this point, user can see output image four direction vertically and horizontally from shooting interface Drift.
Stabilization processing method provided by the present invention is exactly more than trembling for predetermined angle for the angle of the camera lens of camera Dynamic, when camera lens carries out larger compensating movement, output image occurs to drift about the inhibition of this phenomenon, in this way, even if camera The angle of camera lens is more than the shake of predetermined angle, and mobile phone can also control output image to stablize display effect in interface is shot Fruit.
Step 302 in a second direction adjusts the camera lens of camera to first position, and negative direction in a second direction will First Image Adjusting is to the second position.
Wherein, the first image is the output image of the imaging sensor of camera, and second direction is different from first direction.
Here, second direction is opposite with first direction.After terminal obtains first direction and the first displacement, along with the For the opposite second direction in one direction as downwards adjusted the camera lens of camera to first position, which is camera lens downward bias The maximum position turned.That is, at this point, the camera lens of terminal makes maximum for the movement corresponding with first angle occurred Contrary compensation.Meanwhile the first image of terminal control moves upwards and then makes maximum upward compensation, to avoid due to camera lens it is big The phenomenon that rotational motion causes the first image to drift about downwards.
Step 303, negative direction in a second direction adjust camera lens to first object position from first position, and along second Direction adjusts the first image to the second target location from the second position.
Wherein, first object position has correspondence with the second target location.
Here, after terminal control camera lens makes reversely maximum compensation in a second direction, terminal is made further for camera lens Adjustment, negative direction in a second direction adjusts camera lens to first object position from first position, and in a second direction by One image is adjusted from the second position to the second target location, which refers to the central area position of camera lens visual field It puts.
Step 304, based on the second target location terminal the first image of display screen display.
Here, on the display screen of terminal, by the first image display at the center of the second target location, i.e. camera lens visual field At regional location.
The stabilization processing method that the embodiment of the present invention is provided, if the camera of terminal is in running order and camera First angle be more than predetermined angle, obtain camera occur first angle movement when first direction and the first displacement; The camera lens of camera is adjusted to first position in a second direction, and negative direction in a second direction is by the first Image Adjusting to Two positions;Wherein, the first image is the output image of the imaging sensor of camera, and second direction is different from first direction;Edge The negative direction of second direction adjusts camera lens to first object position from first position, and in a second direction by the first image from Two positions are adjusted to the second target location;Wherein, first object position has correspondence with the second target location;Based on second Target location is in the first image of display screen display of terminal.That is, if camera is in running order, and image hair When life moves and angle is more than predetermined angle, the camera lens of terminal control camera carries out jitter compensation for the movement, while right Make corresponding adjustment in the position of first image so that corresponding adjustment is made in the movement of the location following camera lens of the first image, The first image so exported on terminal display screen is just not in drift phenomenon;If solves intelligent terminal in the prior art When the shake more than predetermined angle occurs in camera, the camera lens of camera will be unable to carry out corresponding compensating movement, cause to export There is the problem of drift phenomenon in image;The phenomenon that effectively preventing the output image drift because of camera shake generation, improves The display effect of terminal, meanwhile, improve the intelligent of terminal.
Based on previous embodiment, the embodiment of the present invention provides a kind of stabilization processing method, with reference to shown in Fig. 7, this method Comprise the following steps:
If the camera of step 701, terminal is in running order and camera occur movement for the first time first angle it is big In predetermined angle, the first direction and the first displacement when camera is moved with first angle are obtained.
Here, step 701 can include:
The first step, if camera is in running order, obtain camera do not occur for the first time when moving the first image the Three positions.
Here, when camera does not occur to move for the first time, the third place of the first image refers generally in camera lens visual field Heart regional location.
Second step if camera occurs to move for the first time, obtains the 4th position of the first image when occurring to move for the first time And move corresponding first direction for the first time.
Here it is possible to the direction of motion of the camera lens of camera is detected by gyro sensor.
In embodiments of the present invention, motion sensor can include:Gyro sensor.CPU is obtained by gyro sensors The angular speed of 3rd default sampled point in 3rd preset time of device acquisition, and the angular speed and the 3rd for presetting sampled point by the 3rd Preset time is multiplied, and determines camera shooting head-turned angle.
In the embodiment of the present invention, CPU is directly acquired the 3rd to be preset in the 3rd preset time by gyro sensor acquisition The angular speed of sampled point, and the angular speed of the in the 3rd preset time the 3rd default sampled point and the 3rd preset time are multiplied, really Fixed rotational angle of the camera in the 3rd preset time, if rotational angular velocity of the camera in the 3rd preset time is 0, then CPU determine that camera is static in the 3rd preset time;If rotational angular velocity of the camera in the 3rd preset time It is not 0, then CPU determines that camera is rotated in the 3rd preset time, which includes the rotational angle along X-axis The Ax and rotational angle Ay along Y-axis, the rotational angle can be expressed as (Ax, Ay).
As it can be seen that in the embodiment of the present invention motion sensor can include acceleration transducer and gyro sensor or Only include gyro sensor, can get angle when camera moves.
3rd step based on the third place and the 4th position, obtains the first displacement.
Here, CPU obtains the real time position of IS output images.For example, the third place when not moving and transporting The 4th position after dynamic.And then CPU is based on the third place and the 4th position, calculates the displacement of the first image, i.e., first Shifting amount.
Camera lens is adjusted second displacement amount to first position by step 702 in a second direction, and by the first image along second party To negative direction adjust second displacement amount to the second position.
Wherein, second displacement amount is more than or equal to the first displacement.
Here, second displacement amount can be the maximum displacement that camera lens is moved to second direction, i.e. terminal control camera lens pin Maximum Contrary compensation is made to movement for the first time occurs.
Step 703, the negative direction by camera lens at first position in a second direction adjust triple motion amount to first object Position, and the first image is adjusted into triple motion amount to the second target location in a second direction from the second place.
Wherein, triple motion amount is less than second displacement amount.
Here, triple motion amount is indicated for the displacement that camera lens recenters.That is, terminal is controlling Camera lens makes maximum Contrary compensation for the first time movement occurred and then control camera lens recenters, i.e., does not send out The position of camera lens when remaining static before raw movement.
Step 704, based on the second target location terminal the first image of display screen display.
It should be noted that in the present embodiment with same steps in other embodiments and the explanation of identical content, Ke Yican According to the description in other embodiments, details are not described herein again.
The stabilization processing method that the embodiment of the present invention is provided, if solving the camera of intelligent terminal in the prior art When there is the shake more than predetermined angle, the camera lens of camera will be unable to carry out corresponding compensating movement, and output image is caused to go out The problem of existing drift phenomenon;The phenomenon that effectively preventing the output image drift because of camera shake generation, improves terminal Display effect, meanwhile, improve the intelligent of terminal.
Based on previous embodiment, the embodiment of the present invention provides a kind of stabilization processing method, with reference to shown in Fig. 8, this method Comprise the following steps:
If the camera of step 801, terminal is in running order and camera occur movement for the first time first angle it is big In predetermined angle, the first direction and the first displacement when camera is moved with first angle are obtained.
Step 802 in a second direction adjusts the camera lens of camera to first position, and negative direction in a second direction will First Image Adjusting is to the second position.
Wherein, the first image is the output image of the imaging sensor of camera, and second direction is different from first direction.
Step 803, negative direction in a second direction adjust camera lens to first object position from first position, and along second Direction adjusts the first image to the second target location from the second position.
Wherein, first object position has correspondence with the second target location
Step 804, based on the second target location terminal the first image of display screen display.
Here, detect that camera lens generation is significantly shaken in terminal, i.e., the angle of camera is more than predetermined angle, and camera lens It significantly shakes when having an one big Contrary compensation action, drifts about in order to avoid the output image of IS, terminal is first controlled for this System output image progress and the maximum compensation of camera lens opposite direction, after terminal steady, during control camera lens is returned to output image At heart position, i.e., the output picture position before not shaking.It is mended accordingly in this way, terminal can be directed to significantly shake It repays.
If the second angle that second of movement occurs for step 805, camera is less than predetermined angle, camera lens is obtained with second jiao Third direction and the 4th displacement during degree movement.
Wherein, the 4th displacement is less than the first displacement.
Here, after significantly shake occurs for camera lens and is inhibited for the shake, if terminal detects camera shooting again I.e. second of the movement, and the corresponding second angle of the shake is less than predetermined angle of hair life shake, then, terminal need not control mirror Head carries out maximum Contrary compensation, it is only necessary to camera lens and output image be controlled to perform motion compensation corresponding with moving for the second time i.e. It can inhibit current shake by a small margin.
Camera lens is adjusted the 4th displacement to the 3rd target location by step 806 from first object position along fourth direction, and Negative direction adjustment the 4th displacement to the 4th target location by the first image from the second target location along fourth direction.
Wherein, third direction is different from fourth direction.
Step 807 shows the first image on a display screen based on the 4th target location.
Here, after terminal is inhibited for shake by a small margin, outgoing position i.e. the 4th of the first image is determined Target location, and the first image is shown based on the 4th target location on a display screen.
It should be noted that in the present embodiment with same steps in other embodiments and the explanation of identical content, Ke Yican According to the description in other embodiments, details are not described herein again.
Based on previous embodiment, the embodiment of the present invention provides a kind of terminal 9, the terminal can be applied to Fig. 3,7,8 pairs In a kind of stabilization processing method that the embodiment answered provides, with reference to shown in Fig. 9, which includes:Display screen 91, processor 92, Communication bus 93 and memory 94, wherein:
Communication bus 93 is used to implement the communication connection between display screen 91, processor 92 and memory 94;
Processor 92 is for performing stabilization processing routine in memory 94, to realize following steps:
If the camera of terminal is in running order and the first angle of movement for the first time occurs for camera more than preset angle Degree obtains first direction and the first displacement when camera is moved with first angle;
The camera lens of camera is adjusted to first position in a second direction, and negative direction in a second direction is by the first image It adjusts to the second position;Wherein, the first image is the output image of the imaging sensor of camera, second direction and first direction It is different;
Negative direction in a second direction adjusts camera lens to first object position from first position, and in a second direction by One image is adjusted from the second position to the second target location;Wherein, first object position has corresponding close with the second target location System;
Based on the second target location terminal the first image of display screen display.
In other embodiments of the invention, processor 92 be used to perform in memory 94 in stabilization processing routine along the Two directions adjust camera lens to first position, and when negative direction in a second direction is by the first Image Adjusting to the second position, also It can realize following steps:
Camera lens is adjusted to second displacement amount in a second direction to first position, and the negative side by the first image in a second direction To adjustment second displacement amount to the second position;Wherein, second displacement amount is more than or equal to the first displacement.
In other embodiments of the invention, processor 92 be used to perform in memory 94 in stabilization processing routine along the The negative direction in two directions adjusts camera lens to first object position from first position, and in a second direction by the first image from second When position is adjusted to the second target location, following steps can also be realized:
Negative direction by camera lens at first position in a second direction adjusts triple motion amount to first object position, and will First image adjusts triple motion amount from the second place to the second target location in a second direction;Wherein, triple motion amount is small In second displacement amount.
In other embodiments of the invention, if processor 92 is whole in stabilization processing routine in memory 94 for performing The camera at end is in running order and the first angle of movement for the first time occurs for camera more than predetermined angle, obtains camera First direction and first displacement of the camera lens generation when being moved with first angle when, can also realize following steps:
If camera is in running order, the third place of the first image when camera does not occur to move for the first time is obtained;
If camera occurs to move for the first time, the 4th position and first of the first image when occurring to move for the first time is obtained It is secondary to move corresponding first direction;
Based on the third place and the 4th position, the first displacement is obtained.
In other embodiments of the invention, when processor 92 is used to perform stabilization processing routine in memory 94, may be used also To realize following steps:
If the second angle that second of movement occurs for camera is less than predetermined angle, when acquisition camera lens is moved with second angle Third direction and the 4th displacement;Wherein, the 4th displacement is less than the first displacement;
Camera lens is adjusted into the 4th displacement to the 3rd target location from first object position along fourth direction, and by the first figure As adjusting the 4th displacement to the 4th target location from the second target location along the negative direction of fourth direction;Wherein, third direction It is different from fourth direction;
First image is shown based on the 4th target location on a display screen.
In other embodiments of the invention, if processor 92 is used to perform in the stabilization processing routine in memory 94 The second angle that second of movement occurs for camera is less than predetermined angle, obtains third direction when camera lens is moved with second angle During with four displacements, following steps can also be realized:
If second of movement occurs for camera and second angle is less than predetermined angle, when acquisition camera lens is moved with second angle 5th position of the first image and corresponding third direction is moved for the second time;
Based on the second target location and the 5th position, the 4th displacement is obtained.
In other embodiments of the invention, when processor 92 is used to perform the stabilization processing routine in memory 94, the Two directions are opposite with first direction.
It should be noted that the specific implementation process of the step in the present embodiment performed by processor, be referred to Fig. 3, 7th, the realization process in the stabilization processing method that 8 corresponding embodiments provide, details are not described herein again.
The terminal that the embodiment of the present invention is provided, if the camera for solving intelligent terminal in the prior art is more than During the shake of predetermined angle, the camera lens of camera will be unable to carry out corresponding compensating movement, cause to export image appearance drift now As the problem of;The phenomenon that effectively preventing the output image drift because of camera shake generation improves the display effect of terminal, Meanwhile improve the intelligent of terminal.
Based on previous embodiment, the embodiment of the present invention provides a kind of computer readable storage medium, computer-readable to deposit Storage media is stored with one or more program, which can be performed by one or more processor, with Realize following steps:
If the camera of terminal is in running order and the first angle of movement for the first time occurs for camera more than preset angle Degree obtains first direction and the first displacement when camera is moved with first angle;
The camera lens of camera is adjusted to first position in a second direction, and negative direction in a second direction is by the first image It adjusts to the second position;Wherein, the first image is the output image of the imaging sensor of camera, second direction and first direction It is different;
Negative direction in a second direction adjusts camera lens to first object position from first position, and in a second direction by One image is adjusted from the second position to the second target location;Wherein, first object position has corresponding close with the second target location System;
Based on the second target location terminal the first image of display screen display.
In other embodiments of the invention, which can perform edge by one or more processor Second direction adjusts camera lens to first position, and when negative direction in a second direction is by the first Image Adjusting to the second position, It can also realize following steps:
Camera lens is adjusted to second displacement amount in a second direction to first position, and the negative side by the first image in a second direction To adjustment second displacement amount to the second position;Wherein, second displacement amount is more than or equal to the first displacement.
In other embodiments of the invention, which can perform edge by one or more processor The negative direction of second direction adjusts camera lens to first object position from first position, and in a second direction by the first image from When two positions are adjusted to the second target location, following steps can also be realized:
Negative direction by camera lens at first position in a second direction adjusts triple motion amount to first object position, and will First image adjusts triple motion amount from the second place to the second target location in a second direction;Wherein, triple motion amount is small In second displacement amount.
In other embodiments of the invention, if one or more program can be performed by one or more processor The camera of terminal is in running order and the first angle of movement for the first time occurs for camera more than predetermined angle, obtains camera shooting When first direction and first displacement of the camera lens generation of head when being moved with first angle, following steps can also be realized:
If camera is in running order, the third place of the first image when camera does not occur to move for the first time is obtained;
If camera occurs to move for the first time, the 4th position and first of the first image when occurring to move for the first time is obtained It is secondary to move corresponding first direction;
Based on the third place and the 4th position, the first displacement is obtained.
In other embodiments of the invention, one or more program can by one or more processor perform with Realize following steps:
If the second angle that second of movement occurs for camera is less than predetermined angle, when acquisition camera lens is moved with second angle Third direction and the 4th displacement;Wherein, the 4th displacement is less than the first displacement;
Camera lens is adjusted into the 4th displacement to the 3rd target location from first object position along fourth direction, and by the first figure As adjusting the 4th displacement to the 4th target location from the second target location along the negative direction of fourth direction;Wherein, third direction It is different from fourth direction;
First image is shown based on the 4th target location on a display screen.
In other embodiments of the invention, if one or more program can be performed by one or more processor The second angle that second of movement occurs for camera is less than predetermined angle, obtains third direction when camera lens is moved with second angle During with four displacements, following steps can also be realized:
If second of movement occurs for camera and second angle is less than predetermined angle, when acquisition camera lens is moved with second angle 5th position of the first image and corresponding third direction is moved for the second time;
Based on the second target location and the 5th position, the 4th displacement is obtained.
In other embodiments of the invention, second direction is opposite with first direction.
It should be noted that the specific implementation process of the step in the present embodiment performed by processor, be referred to Fig. 3, 7th, the realization process in the stabilization processing method that 8 corresponding embodiments provide, details are not described herein again.
It should be noted that above computer readable storage medium storing program for executing can be read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable programmable is read-only deposits Reservoir (Erasable Programmable Read-Only Memory, EPROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic random access store Device (Ferromagnetic Random Access Memory, FRAM), flash memory (Flash Memory), magnetic surface are deposited The memories such as reservoir, CD or read-only optical disc (Compact Disc Read-Only Memory, CD-ROM);It can also be bag One of above-mentioned memory or the various electronic equipments of any combination are included, such as mobile phone, computer, tablet device, individual digital Assistant etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those elements, and And it further includes other elements that are not explicitly listed or further includes as this process, method, article or device institute inherently Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, computer takes Business device, air conditioner or the network equipment etc.) perform each described method of embodiment of the present invention.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of stabilization processing method, which is characterized in that the described method includes:
If the camera of terminal is in running order and the camera occurs the first angle of movement for the first time and is more than preset angle Degree, obtains the first direction and the first displacement when the camera is moved with the first angle;
The camera lens of the camera is adjusted to first position in a second direction, and along the second direction negative direction by first Image Adjusting is to the second position;Wherein, described first image for camera imaging sensor output image, the second party To different from the first direction;
The camera lens is adjusted from the first position to first object position along the negative direction of the second direction, and along described Second direction adjusts described first image to the second target location from the second position;Wherein, the first object position There is correspondence with second target location;
Based on second target location the terminal display screen display described first image.
2. according to the method described in claim 1, it is characterized in that, the camera lens is adjusted to first position in a second direction, And along the second direction negative direction by the first Image Adjusting to the second position, including:
The camera lens is adjusted into second displacement amount to the first position along the second direction, and by described first image along institute The negative direction for stating second direction adjusts the second displacement amount to the second position;Wherein, the second displacement amount be more than or Person is equal to first displacement.
3. according to the method described in claim 2, it is characterized in that, the negative direction along the second direction is by the camera lens Adjusted from the first position to first object position, and along the second direction by described first image from the second position It adjusts to the second target location, including:
The camera lens is adjusted into triple motion amount to described first at the first position along the negative direction of the second direction Target location, and described first image is adjusted into the triple motion amount to institute from the second place along the second direction State the second target location;Wherein, the triple motion amount is less than the second displacement amount.
4. according to the method described in claim 1, it is characterized in that, if the camera of the terminal is in running order and described The first angle that movement for the first time occurs for camera is more than predetermined angle, and the camera lens for obtaining the camera occurs with described first First direction and the first displacement during angular movement, including:
If the camera is in running order, obtains the camera and described first image during the first time movement does not occur The third place;
If the first time movement occurs for the camera, the 4th of described first image when the first time movement occurs is obtained Position and the first time move corresponding first direction;
Based on the third place and the 4th position, first displacement is obtained.
5. according to the method described in claim 1, it is characterized in that, described in a second direction by described first image from described The second position is adjusted to the second target location, the described method includes:
If the second angle that second of movement occurs for the camera is less than the predetermined angle, the camera lens is obtained with described the Third direction and the 4th displacement during two angular movements;Wherein, the 4th displacement is less than first displacement;
The camera lens is adjusted into the 4th displacement to the 3rd target location from the first object position along fourth direction, and By described first image, negative direction from second target location along the fourth direction adjusts the 4th displacement to the Four target locations;Wherein, the third direction is different from the fourth direction;
Described first image is shown based on the 4th target location on the display screen.
6. if according to the method described in claim 5, it is characterized in that, the second of second of movement occurs for the camera Angle is less than the predetermined angle, obtains the third direction and the 4th displacement when the camera lens is moved with the second angle, Including:
If second of movement occurs for the camera and second angle is less than the predetermined angle, the camera lens is obtained with described the During two angular movements the 5th position of described first image and described corresponding third direction is moved for the second time;
Based on second target location and the 5th position, the 4th displacement is obtained.
7. according to the method described in claim 1, it is characterized in that, the second direction is opposite to the first direction.
8. a kind of terminal, which is characterized in that the terminal includes:Display screen, processor, memory and communication bus;
The communication bus is used to implement the communication connection between the first display screen, processor and memory;
The processor is for performing stabilization processing routine in memory, to realize following steps:
If the camera of terminal is in running order and the camera occurs the first angle of movement for the first time and is more than preset angle Degree, obtains the first direction and the first displacement when the camera is moved with the first angle;
The camera lens of the camera is adjusted to first position in a second direction, and along the second direction negative direction by first Image Adjusting is to the second position;Wherein, described first image for camera imaging sensor output image, the second party To different from the first direction;
The camera lens is adjusted from the first position to first object position along the negative direction of the second direction, and along described Second direction adjusts described first image to the second target location from the second position;Wherein, the first object position There is correspondence with second target location;
Based on second target location the terminal display screen display described first image.
9. terminal according to claim 8, which is characterized in that if the camera of the terminal is in running order and described The first angle that movement for the first time occurs for camera is more than predetermined angle, obtains the camera lens of the camera with the first angle During first direction and the first displacement during movement, the processor is additionally operable to perform the stabilization processing routine, with realize with Lower step:
If the camera is in running order, obtains the camera and described first image during the first time movement does not occur The third place;
If the first time movement occurs for the camera, the 4th of described first image when the first time movement occurs is obtained Position and the first time move corresponding first direction;
Based on the third place and the 4th position, first displacement is obtained.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage there are one or Multiple programs, one or more of programs can be performed by one or more processor, to realize such as claim 1 to 7 Any one of stabilization processing method the step of.
CN201711447002.5A 2017-12-27 2017-12-27 Anti-shake processing method, terminal and computer readable storage medium Active CN108111761B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711447002.5A CN108111761B (en) 2017-12-27 2017-12-27 Anti-shake processing method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711447002.5A CN108111761B (en) 2017-12-27 2017-12-27 Anti-shake processing method, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108111761A true CN108111761A (en) 2018-06-01
CN108111761B CN108111761B (en) 2020-07-07

Family

ID=62213651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711447002.5A Active CN108111761B (en) 2017-12-27 2017-12-27 Anti-shake processing method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108111761B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112904996A (en) * 2019-12-04 2021-06-04 上海交通大学 Vehicle-mounted head-up display equipment picture compensation method and device, storage medium and terminal
CN113518178A (en) * 2021-04-22 2021-10-19 中煤科工集团重庆研究院有限公司 Video image acquisition device for slope safety monitoring
CN114125266A (en) * 2021-10-20 2022-03-01 武汉旷视金智科技有限公司 Rotation detection method, device, apparatus, medium, and program product for image pickup device
CN114401341A (en) * 2022-01-12 2022-04-26 Oppo广东移动通信有限公司 Camera control method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1685272A (en) * 2002-09-24 2005-10-19 西健尔 Image display unit and projection optical system
CN101662582A (en) * 2009-09-08 2010-03-03 长春理工大学 Method for compensating image dithering of airborne imaging equipment
CN106254771A (en) * 2016-07-29 2016-12-21 广东欧珀移动通信有限公司 Shooting anti-fluttering method, device and mobile terminal
US20170064217A1 (en) * 2015-08-26 2017-03-02 Canon Kabushiki Kaisha Image capturing apparatus and control method of the same
CN106713770A (en) * 2017-03-27 2017-05-24 联想(北京)有限公司 Photographing processing method and electronic device
CN107181914A (en) * 2017-05-31 2017-09-19 广东欧珀移动通信有限公司 Stabilization stroke adjustment method and apparatus, mobile device and computer-readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1685272A (en) * 2002-09-24 2005-10-19 西健尔 Image display unit and projection optical system
CN101662582A (en) * 2009-09-08 2010-03-03 长春理工大学 Method for compensating image dithering of airborne imaging equipment
US20170064217A1 (en) * 2015-08-26 2017-03-02 Canon Kabushiki Kaisha Image capturing apparatus and control method of the same
CN106254771A (en) * 2016-07-29 2016-12-21 广东欧珀移动通信有限公司 Shooting anti-fluttering method, device and mobile terminal
CN106713770A (en) * 2017-03-27 2017-05-24 联想(北京)有限公司 Photographing processing method and electronic device
CN107181914A (en) * 2017-05-31 2017-09-19 广东欧珀移动通信有限公司 Stabilization stroke adjustment method and apparatus, mobile device and computer-readable storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112904996A (en) * 2019-12-04 2021-06-04 上海交通大学 Vehicle-mounted head-up display equipment picture compensation method and device, storage medium and terminal
CN113518178A (en) * 2021-04-22 2021-10-19 中煤科工集团重庆研究院有限公司 Video image acquisition device for slope safety monitoring
CN114125266A (en) * 2021-10-20 2022-03-01 武汉旷视金智科技有限公司 Rotation detection method, device, apparatus, medium, and program product for image pickup device
CN114125266B (en) * 2021-10-20 2024-04-09 武汉旷视金智科技有限公司 Rotation detection method, rotation detection device, rotation detection apparatus, rotation detection device, rotation detection medium, and rotation detection program product
CN114401341A (en) * 2022-01-12 2022-04-26 Oppo广东移动通信有限公司 Camera control method and device, electronic equipment and storage medium
CN114401341B (en) * 2022-01-12 2023-08-29 Oppo广东移动通信有限公司 Camera control method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108111761B (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN108063901A (en) A kind of image-pickup method, terminal and computer readable storage medium
CN107463481A (en) Data interactive method, mobile terminal and storage medium
CN108055411A (en) Flexible screen display methods, mobile terminal and computer readable storage medium
CN107566635A (en) Screen intensity method to set up, mobile terminal and computer-readable recording medium
CN107317963A (en) A kind of double-camera mobile terminal control method, mobile terminal and storage medium
CN107682627A (en) A kind of acquisition parameters method to set up, mobile terminal and computer-readable recording medium
CN108111761A (en) A kind of stabilization processing method, terminal and computer readable storage medium
CN107704176A (en) A kind of picture-adjusting method and terminal
CN108055463A (en) Image processing method, terminal and storage medium
CN109391853A (en) Barrage display methods, device, mobile terminal and readable storage medium storing program for executing
CN108196922A (en) A kind of method, terminal and computer readable storage medium for opening application
CN108170348A (en) A kind of thumbnail method for previewing, equipment and computer readable storage medium
CN107404618A (en) A kind of image pickup method and terminal
CN107463324A (en) A kind of image display method, mobile terminal and computer-readable recording medium
CN108196777A (en) A kind of flexible screen application process, equipment and computer readable storage medium
CN108170350A (en) Realize method, terminal and the computer readable storage medium of Digital Zoom
CN108257097A (en) U.S. face effect method of adjustment, terminal and computer readable storage medium
CN107483804A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium
CN109672822A (en) A kind of method for processing video frequency of mobile terminal, mobile terminal and storage medium
CN107749947A (en) Photographic method, mobile terminal and computer-readable recording medium
CN110086993A (en) Image processing method, device, mobile terminal and computer readable storage medium
CN108076221A (en) A kind of terminal control method, terminal and computer readable storage medium
CN108076293A (en) Light paints image pickup method, mobile terminal and computer-readable medium
CN107613206A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN109683778A (en) A kind of flexible screen control method, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant