WO2018219210A1 - Image stabilization stroke adjustment method, mobile device, and computer storage medium - Google Patents
Image stabilization stroke adjustment method, mobile device, and computer storage medium Download PDFInfo
- Publication number
- WO2018219210A1 WO2018219210A1 PCT/CN2018/088215 CN2018088215W WO2018219210A1 WO 2018219210 A1 WO2018219210 A1 WO 2018219210A1 CN 2018088215 W CN2018088215 W CN 2018088215W WO 2018219210 A1 WO2018219210 A1 WO 2018219210A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- lens
- shaking
- move
- shake
- mobile device
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
- H04N23/681—Motion detection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
- H04N23/682—Vibration or motion blur correction
- H04N23/685—Vibration or motion blur correction performed by mechanical compensation
Definitions
- the present application relates to the field of device control, and in particular to an anti-shake stroke adjustment method, a mobile device, and a non-transitory computer readable storage medium.
- the conventional anti-shake method adds an anti-shake device to the device, and the motor is controlled by the anti-shake device to perform slight movement to compensate the jitter.
- the light path remains stable.
- the traditional anti-shake method has a poor anti-shake effect.
- the embodiment of the present application provides an anti-shake stroke adjustment method, a mobile device, and a non-volatile computer readable storage medium, which can improve an anti-shake effect.
- An anti-shake stroke adjustment method includes:
- the lens is controlled to move in the same or opposite direction as the shaking direction in accordance with the adjustment command to increase the movable stroke of the lens when the camera is anti-shake.
- An anti-shake stroke adjustment device includes:
- a direction detecting module configured to detect a jitter direction of the mobile device
- An instruction generation module configured to generate an adjustment instruction according to the jitter direction
- a movement module configured to control the lens to move in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction, so as to increase the movable stroke of the lens when the camera is anti-shake.
- a mobile device includes a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor implementing the anti-shake stroke adjustment method when the program is executed.
- a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the anti-shake stroke adjustment method.
- the anti-shake stroke adjustment method and apparatus, the mobile device and the computer readable storage medium in the embodiment of the present application detect the shaking direction of the mobile device, generate an adjustment instruction, and control the lens in the same or opposite direction to the shaking direction according to the adjustment instruction. Move to increase the movable stroke of the lens during camera anti-shake. When the camera is shaken, it can reduce the impact of the jitter by controlling the lens to move more strokes, and improve the anti-shake effect.
- 1 is a flow chart of an anti-shake stroke adjustment method in an embodiment
- 3 is a flow chart of an anti-shake stroke adjustment method in another embodiment
- Figure 4 is a schematic view of lens movement in one embodiment
- Figure 5 is a block diagram showing the structure of an anti-shake stroke adjusting device in one embodiment
- FIG. 6 is a block diagram showing a part of a structure of a mobile phone related to a computer device according to an embodiment of the present application.
- an anti-shake stroke adjustment method includes steps 102 to 106. among them:
- Step 102 Detect a jitter direction of the mobile device.
- the mobile device can be a device with a shooting function.
- the mobile device can be a mobile phone, a tablet, a wearable device, a personal digital assistant, or the like.
- the direction of the camera's jitter can be detected by a gyroscope in the mobile device.
- the acceleration of the mobile device on the XYZ axis can be detected by a gyroscope, and the direction of the jitter is determined according to the direction in which the acceleration is increased.
- the direction in which the acceleration is increased can be used as the direction of the jitter.
- the gyroscope detects that the initial acceleration of the mobile device on the XYZ axis is 0.
- the jitter occurs, it is detected that the acceleration of the mobile device on the XY axis is 0, and the acceleration on the Z axis is 3, then the Z axis is The direction is the direction of the jitter.
- a plurality of images may be taken by the mobile device to be photographed, a shift between successive images may be calculated, and a wobble direction may be calculated based on the offset.
- Step 104 Generate an adjustment instruction according to the shaking direction.
- the generated adjustment instruction may be an instruction that controls the movement of the lens in the same direction as the shaking direction by default, or an instruction that controls the movement of the lens.
- Step 106 Control the lens to move in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when the camera is anti-shake.
- a lens is an optical device consisting of a lens in an image acquisition device of a mobile device for imaging on an imaging sensor.
- the movable stroke of the lens anti-shake refers to the distance that the lens can move in the same plane when photographing.
- the movable stroke of the lens anti-shake is the anti-shake stroke, which refers to the distance that the lens can move in the upper and lower, left and right planes.
- the control lens may be in the same direction as the dithering direction along the same direction as the dithering direction, that is, the direction of the dithering is not limited to be completely identical.
- the opposite direction to the dithering direction may be a converging direction opposite to the dithering direction, that is, the direction opposite to the dithering direction is not limited to being completely identical.
- the lens can be moved to compensate the jitter, so that the optical path remains stable, the larger the movable stroke of the lens, the larger the space for the camera to compensate for the jitter, and the better the anti-shake effect.
- the anti-shake stroke adjustment method detects a shaking direction of the mobile device, generates an adjustment command, and controls the lens to move in the same or opposite direction to the shaking direction according to the adjustment instruction, so as to increase the movable stroke of the lens when photographing, thereby improving Anti-shake effect.
- controlling the movement of the lens in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing comprises:
- the movable stroke of the lens is acquired, and the movable stroke of the moving lens is compared with the movable stroke of the moving lens, and if the movable stroke of the lens is moved
- the movable stroke larger than the moving lens indicates that the movable stroke of the lens is increased. If the movable stroke of the lens after moving is smaller than the movable stroke of the moving lens, it indicates that the movable stroke of the lens is reduced, and the moving direction is Error, stop moving, and control the lens to move in the opposite direction to the shaking direction.
- the movable stroke of the lens can be detected by the distance sensor.
- the lens By controlling the lens to move in the same direction of the shaking direction firstly, if it is detected that the movable stroke is reduced, the lens is controlled to move in the opposite direction of the shaking direction in time to ensure that the movable stroke of the lens is increased to ensure the anti-shake effect is improved.
- the controlling the lens to move in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing comprises: according to the adjustment instruction The control lens is moved by a preset distance in the same direction or in the opposite direction as the shaking direction to increase the movable stroke of the lens when photographing.
- the preset distance may be a preset distance.
- the preset distance is less than or equal to the maximum distance the lens can move.
- the maximum distance that the lens can be moved is limited by the specific space structure of the image acquisition device in the mobile device, and the space range available for the lens to move.
- the lens of a mobile device usually moves on the optical axis, that is, in a spatial dimension. It can control the distance of each movement and the control is more precise.
- the controlling the lens to move in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing comprises: a processor of the mobile device And controlling, according to the adjustment instruction, the lens to move according to a preset amplification in the same direction or opposite direction as the shaking direction to increase the movable stroke of the lens when photographing.
- the preset increase may be a preset increased range, such as 5%, 10%, and the like.
- the preset increase can also be the proportional value of the jitter amplitude.
- the jitter amplitude is the amplitude of the jitter that can be obtained by the acceleration gain.
- the acceleration increase can be obtained by the ratio of the acceleration increase value to the acceleration before the increase.
- the movement according to the preset increase can be moved according to the preset increase of the current movable stroke, or according to the preset increase of the maximum distance that the lens can move.
- the current movable stroke refers to the movable stroke of the lens before each movement.
- an anti-shake stroke adjustment method further includes steps 202 to 206. among them:
- Step 202 In the photo preview, the shaking direction of the mobile device is detected in real time.
- Photo preview refers to the situation in which the picture is captured before taking a picture.
- the mobile device can detect the acceleration of the mobile device on the XYZ axis in real time through the gyroscope, and determine the direction of the jitter according to the direction in which the acceleration increases. The direction in which the acceleration is increased can be used as the direction of the jitter.
- Step 204 Generate an adjustment instruction according to the shaking direction.
- Step 206 Control the lens to move in the same direction or in the opposite direction to the shaking direction according to the adjustment instruction in real time to increase the movable stroke of the lens when photographing.
- the frequency of real-time detection can be increased, and the distance of each movement is reduced.
- the frequency of real-time detection is greater than the preset frequency.
- the moving distance is less than the specified distance.
- the above-mentioned adjusting anti-shake stroke adjustment method detects the shaking direction of the mobile device, generates an adjustment instruction, and controls the lens to move in the same or opposite direction to the shaking direction according to the adjustment instruction, so as to increase the movable stroke of the lens when photographing, and improve The anti-shake effect.
- step 206 may include controlling the lens to move a preset distance in the same or opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing.
- the preset distance can be set to be small to ensure that it can be quickly moved into position each time.
- an anti-shake stroke adjustment method further includes:
- Step 302 Detect a direction of shaking of the mobile device when the photographing instruction is received.
- Photo preview refers to the situation in which the picture is captured before taking a picture.
- the acceleration of the mobile device on the XYZ axis can be detected in real time by the gyroscope, and the direction of the jitter is determined according to the direction in which the acceleration is increased.
- the direction in which the acceleration is increased can be used as the direction of the jitter.
- Step 304 Generate an adjustment instruction according to the shaking direction.
- Step 306 Control the lens to move in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing.
- the micromotor controls the lens to move in the same direction as the shaking direction according to the adjustment instruction; determines whether the movable stroke of the lens is increased, and if so, continues to control the lens along the direction of the shaking Moving in the same direction, if not, controlling the lens to move in a direction opposite to the direction of the shake.
- the lens is controlled to move the preset distance in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing.
- the lens is controlled to move in a predetermined increment in the same or opposite direction as the shaking direction according to the adjustment command to increase the movable stroke of the lens when photographing.
- Step 308 detecting that the lens movement is completed, executing the photographing instruction.
- the photographing instruction is executed, and the movable stroke of the motor control lens that invokes the anti-shake device is increased to improve the anti-shake effect.
- the anti-shake stroke adjustment method detects that the photographing instruction is the shaking direction of the mobile device, generates an adjustment instruction, and controls the lens to move in the same or opposite direction to the shaking direction according to the adjustment instruction, so as to increase the movable of the lens when photographing.
- the stroke after the lens movement is completed, takes a picture and calls the anti-shake device, and the movable stroke of the lens is increased to improve the anti-shake effect.
- steps in the method flowchart of the embodiment of the present application are sequentially displayed in accordance with the indication of the arrow, but the steps are not necessarily performed in the order indicated by the arrow. Except as explicitly stated herein, the execution of these steps is not strictly limited, and may be performed in other sequences. Moreover, at least some of the steps in the method flowchart of the embodiment of the present application may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be executed at different times. The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
- Figure 4 is a schematic illustration of lens movement in one embodiment.
- the lens 402 in the first figure, the lens 402 is located at the middle of the active space 404, the movable path of the lens is L1, and the direction of the shake is detected as the direction of the arrow 406; in the second picture, the lens 402 is from the active space 404.
- the intermediate position moves to the maximum distance position at which the lens can move; the third picture shows the movable stroke L2 of the lens 402 at the time of photographing, where L2 is greater than L1.
- FIG. 5 is a block diagram showing the structure of an anti-shake stroke adjusting device in one embodiment.
- an anti-shake stroke adjustment device includes a direction detection module 502, an instruction generation module 504, and a movement module 506. among them:
- the direction detecting module 502 is configured to detect a jitter direction of the mobile device.
- the direction detecting module 502 can detect the acceleration of the mobile device on the XYZ axis by the gyroscope, and determine the shaking direction according to the direction in which the acceleration increases.
- the direction in which the acceleration is increased can be used as the direction of the jitter.
- the instruction generation module 504 is configured to generate an adjustment instruction according to the shaking direction.
- the moving module 506 is configured to control the lens to move in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing.
- the anti-shake stroke adjusting device detects the shaking direction of the mobile device, generates an adjustment command, and controls the lens to move in the same or opposite direction to the shaking direction according to the adjustment command, so as to increase the movable stroke of the lens when photographing, thereby improving the movement. Anti-shake effect.
- the moving module 506 is further configured to control the lens to move in the same direction as the shaking direction according to the adjustment instruction; determine whether the movable stroke of the lens is increased, and if yes, continue to control the The lens moves in the same direction as the shaking direction, and if not, controls the lens to move in a direction opposite to the shaking direction.
- the moving module 506 is further configured to control the lens to move the preset distance in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction, so as to increase the Moving itinerary
- the moving module 506 is further configured to control, according to the adjustment instruction, that the lens moves according to a preset amplification in the same direction or opposite direction to the shaking direction to increase the time when the lens is photographed. Moveable trip.
- the direction detecting module 502 is further configured to detect a direction of shaking of the mobile device in real time during the preview of the photograph; the instruction generating module 504 is further configured to generate an adjustment instruction according to the shaking direction; and the moving module 506 is further configured to The adjustment command controls the lens to move in the same or opposite direction as the shaking direction to increase the movable stroke of the lens when photographing.
- the anti-shake stroke adjustment device further includes an execution module.
- the direction detecting module 502 detects the direction of the jitter of the mobile device when the photographing instruction is received.
- the command generating module 504 is further configured to generate an adjustment instruction according to the shaking direction.
- the moving module 506 is further configured to control the lens along the real-time according to the adjusting instruction.
- the shaking direction is the same or moves in the opposite direction to increase the movable stroke of the lens when photographing; the executing module is configured to detect that the lens movement is completed, and execute the photographing instruction.
- Each of the above-described anti-shake stroke adjustment devices may be implemented in whole or in part by software, hardware, and combinations thereof.
- Each of the above modules may be embedded in or independent of the processor in the server in hardware, or may be stored in a memory in the server in a software form, so that the processor invokes the operations corresponding to the above modules.
- the terms "component”, “module” and “system” and the like are intended to mean a computer-related entity, which may be hardware, a combination of hardware and software, software, or software in execution.
- a component can be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and/or a computer.
- an application running on a server and a server can be a component.
- One or more components can reside within a process and/or executed thread, and the components can be located within one computer and/or distributed between two or more computers.
- the embodiment of the present application also provides a computer readable storage medium.
- One or more non-transitory computer readable storage media containing computer executable instructions that, when executed by one or more processors, cause the processor to perform anti-shake stroke adjustment as described above method.
- the embodiment of the present application also provides a computer device. As shown in FIG. 6 , for the convenience of description, only the parts related to the embodiments of the present application are shown. If the specific technical details are not disclosed, please refer to the method part of the embodiment of the present application.
- the computer device may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking a computer device as a mobile phone as an example. :
- FIG. 6 is a block diagram showing a part of a structure of a mobile phone related to a computer device according to an embodiment of the present application.
- handset 600 can include one or more of the following components: processing component 602, memory 604, multimedia component 606, audio component 608, input/output (I/O) interface 610, sensor component 612, communication component 614, and Power component 616.
- processing component 602 memory 604
- multimedia component 606 audio component 608, input/output (I/O) interface 610
- sensor component 612 sensor component 612
- communication component 614 communication component 614
- Power component 616 Power component 616.
- Processing component 602 is typically used to control the overall operation of handset 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
- Processing component 602 can include one or more processors 620 to execute instructions to perform all or part of the steps of the above described methods.
- processing component 602 can include one or more modules to facilitate interaction between component 602 and other components.
- processing component 602 can include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.
- Memory 604 stores various types of data to support operation at handset 600. These data may include instructions for any application or method for operation on the handset 600, contact data, address book data, pictures, videos, and the like.
- the memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk, etc.
- SRAM static random access memory
- EEPROM electrically erasable programmable read only memory
- EPROM erasable Programmable Read Only Memory
- PROM Programmable Read Only Memory
- ROM Read Only Memory
- Magnetic Memory Flash Memory
- Disk Disk or Optical Disk, etc.
- the multimedia component 606 can include a screen of an output interface provided between the handset 600 and the user.
- the screen may include a liquid crystal display (LCD) and a touch panel (TP, Touch Panel). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
- the touch panel includes one or more touch sensors for sensing touches, swipes, gestures on the touch panel, and the like. The touch sensor can sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
- the multimedia component 606 includes a front camera and/or a rear camera. When the handset 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
- the audio component 608 is configured to output and/or input an audio signal.
- audio component 608 includes a microphone (MIC) and a speaker.
- MIC microphone
- the microphone is configured to receive an external audio signal.
- the received audio signal may be further stored in memory 604 or transmitted via communication component 614.
- This speaker is used to output an audio signal.
- the I/O interface 612 can provide an interface between the processing component 602 and the peripheral interface module, which can be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to, a volume button, a start button, and a lock button.
- Sensor assembly 612 includes one or more sensors for providing various aspects of status data to handset 600.
- sensor component 612 can detect an open/closed state of handset 600, relative positioning of components, such as the display and keypad of handset 600, and sensor component 612 can also detect the location of a component in handset 600 or handset 600. Change, cell phone 600 orientation or acceleration/deceleration and temperature change of cell phone 600.
- Sensor assembly 612 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
- the sensor assembly 612 can also include a light sensor, such as a CMOS (Complementary Metal-Oxide-Semiconductor) or CCD (Charge Coupled Device) image sensor for use in imaging applications.
- the sensor assembly 612 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
- Communication component 614 is for facilitating wired or wireless communication between handset 600 and other devices.
- the handset 600 can access a wireless network based on communication standards such as WiFi, 2G or 3G or 4G or 5G or a combination thereof.
- communication component 614 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
- the communication component 614 also includes a near field communication (NFC) module to facilitate short range communication.
- NFC near field communication
- the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
- RFID radio frequency identification
- IrDA infrared data association
- UWB ultra-wideband
- Bluetooth Bluetooth
- Power component 616 provides power to various components of handset 600.
- Power component 616 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for handset 600.
- the processor 620 included in the mobile terminal implements the following steps when executing a computer program stored in the memory:
- the lens is controlled to move in the same or opposite direction as the shaking direction in accordance with the adjustment command to increase the movable stroke of the lens when photographing.
- the detecting the jitter direction of the mobile device performed by the processor 620 includes:
- the acceleration of the mobile device on the XYZ axis is detected by a gyroscope, and the direction of the jitter is determined according to the direction in which the acceleration is increased.
- the processor 620 controls the lens to move in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing:
- the lens is controlled to move the preset distance in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing.
- the lens controlling, according to the adjustment instruction, the lens to move according to a preset amplification in the same direction or opposite direction as the shaking direction to increase the movable stroke of the lens when photographing.
- the processor 620 is also used to perform:
- the shaking direction of the mobile device is detected in real time
- the lens is controlled to move in the same direction or in the opposite direction to the shaking direction in real time according to the adjustment command to increase the movable stroke of the lens when photographing.
- the processor 620 is also used to perform:
- the completion of the lens movement is detected, and the photographing instruction is executed.
- a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the following steps:
- the lens is controlled to move in the same or opposite direction as the shaking direction according to the adjustment command to increase the movable stroke of the lens when photographing.
- the detecting the direction of jitter of the mobile device performed by the processor comprises:
- the acceleration of the mobile device on the XYZ axis is detected by a gyroscope, and the direction of the jitter is determined according to the direction in which the acceleration is increased.
- the processor controls, according to the adjustment instruction, to control the lens to move in the same direction or in the opposite direction as the shaking direction to increase the movable stroke of the lens when photographing:
- the performing, by the processor, controlling the lens to move in the same or opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing includes :
- the lens is controlled to move the preset distance in the same direction or in the opposite direction as the shaking direction according to the adjustment command to increase the movable stroke of the lens when photographing.
- the performing, by the processor, controlling the lens to move in the same or opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing includes :
- the lens controlling, according to the adjustment instruction, the lens to move according to a preset amplification in the same direction or opposite direction as the shaking direction to increase the movable stroke of the lens when photographing.
- the processor is also used to perform:
- the shaking direction of the mobile device is detected in real time
- the lens is controlled to move in the same direction or in the opposite direction to the shaking direction in real time according to the adjustment command to increase the movable stroke of the lens when photographing.
- the processor is also used to perform:
- the completion of the lens movement is detected, and the photographing instruction is executed.
- Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
- Volatile memory can include random access memory (RAM), which acts as an external cache.
- RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization.
- SRAM static RAM
- DRAM dynamic RAM
- SDRAM synchronous DRAM
- DDR SDRAM dual data rate SDRAM
- ESDRAM enhanced SDRAM
- SLDRAM Link (Synchlink) DRAM
- SLDRAM Memory Bus
- RDRAM Direct RAM
- DRAM Direct Memory Bus Dynamic RAM
- RDRAM Memory Bus Dynamic RAM
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Adjustment Of Camera Lenses (AREA)
Abstract
An image stabilization stroke adjustment method comprises: detecting a shaking direction of a mobile device; generating an adjustment instruction according to the shaking direction; and controlling a lens to move along a direction identical or opposite to the shaking direction according to the adjustment instruction so as to increase a movable stroke of the lens during photographing.
Description
相关申请的交叉引用Cross-reference to related applications
本申请要求于2017年05月31日提交中国专利局、申请号为2017104015014、发明名称为“防抖行程调节方法和装置、移动设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority from the Chinese Patent Application, filed on May 31, 2017, with the application number of 2017104015014, the invention entitled "anti-shake stroke adjustment method and device, mobile device and computer readable storage medium", The entire contents are incorporated herein by reference.
本申请涉及设备控制领域,特别是涉及一种防抖行程调节方法、移动设备和非易失性计算机可读存储介质。The present application relates to the field of device control, and in particular to an anti-shake stroke adjustment method, a mobile device, and a non-transitory computer readable storage medium.
摄影已成为人们生活中的一部分,用户随时随地可以使用具有摄像功能的设备拍摄想要拍摄的画面。为了防止拍摄过程中,因抖动导致拍摄的影像模糊的问题,传统的防抖方式是在设备中增加了防抖装置,通过防抖装置的电机控制镜头进行微小的移动来对抖动进行补偿,使得光路保持稳定。然而,传统的防抖方式的防抖效果差。Photography has become a part of people's lives, and users can use the camera-enabled device to take pictures of what they want to shoot anytime, anywhere. In order to prevent the blurring of the captured image caused by the jitter during the shooting process, the conventional anti-shake method adds an anti-shake device to the device, and the motor is controlled by the anti-shake device to perform slight movement to compensate the jitter. The light path remains stable. However, the traditional anti-shake method has a poor anti-shake effect.
发明内容Summary of the invention
本申请实施例提供一种防抖行程调节方法、移动设备和非易失性计算机可读存储介质,可以提高防抖效果。The embodiment of the present application provides an anti-shake stroke adjustment method, a mobile device, and a non-volatile computer readable storage medium, which can improve an anti-shake effect.
一种防抖行程调节方法,包括:An anti-shake stroke adjustment method includes:
检测移动设备的抖动方向;Detecting the direction of jitter of the mobile device;
根据所述抖动方向生成调节指令;及Generating an adjustment command according to the shaking direction; and
根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移 动,以增大所述镜头在拍照防抖时的可移动行程。The lens is controlled to move in the same or opposite direction as the shaking direction in accordance with the adjustment command to increase the movable stroke of the lens when the camera is anti-shake.
一种防抖行程调节装置,包括:An anti-shake stroke adjustment device includes:
方向检测模块,用于检测移动设备的抖动方向;a direction detecting module, configured to detect a jitter direction of the mobile device;
指令生成模块,用于根据所述抖动方向生成调节指令;及An instruction generation module, configured to generate an adjustment instruction according to the jitter direction; and
移动模块,用于根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照防抖时的可移动行程。And a movement module, configured to control the lens to move in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction, so as to increase the movable stroke of the lens when the camera is anti-shake.
一种移动设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现所述的防抖行程调节方法。A mobile device includes a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor implementing the anti-shake stroke adjustment method when the program is executed.
一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现所述的防抖行程调节方法。A computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the anti-shake stroke adjustment method.
本申请实施例中的防抖行程调节方法和装置、移动设备和计算机可读存储介质,检测到移动设备的抖动方向,生成调节指令,根据调节指令控制镜头沿着与抖动方向相同或相反的方向移动,以增大镜头在拍照防抖时的可移动行程,在拍照发生抖动时,可通过控制镜头移动更大的行程来减低抖动带来的影响,提高了防抖效果。The anti-shake stroke adjustment method and apparatus, the mobile device and the computer readable storage medium in the embodiment of the present application detect the shaking direction of the mobile device, generate an adjustment instruction, and control the lens in the same or opposite direction to the shaking direction according to the adjustment instruction. Move to increase the movable stroke of the lens during camera anti-shake. When the camera is shaken, it can reduce the impact of the jitter by controlling the lens to move more strokes, and improve the anti-shake effect.
为了更好地描述和说明这里公开的那些申请的实施例和/或示例,可以参考一幅或多幅附图。用于描述附图的附加细节或示例不应当被认为是对所公开的发明、目前描述的实施例和/或示例以及目前理解的这些申请的最佳模式中的任何一者的范围的限制。To better describe and illustrate the embodiments and/or examples of those applications disclosed herein, reference may be made to one or more drawings. The additional details or examples used to describe the drawings are not to be construed as limiting the scope of any of the disclosed inventions, the presently described embodiments and/or examples, and the best mode of the application.
图1为一个实施例中防抖行程调节方法的流程图;1 is a flow chart of an anti-shake stroke adjustment method in an embodiment;
图2为另一个实施例中防抖行程调节方法的流程图;2 is a flow chart of an anti-shake stroke adjustment method in another embodiment;
图3为另一个实施例中防抖行程调节方法的流程图;3 is a flow chart of an anti-shake stroke adjustment method in another embodiment;
图4为一个实施例中镜头移动示意图;Figure 4 is a schematic view of lens movement in one embodiment;
图5为一个实施例中防抖行程调节装置的结构框图;Figure 5 is a block diagram showing the structure of an anti-shake stroke adjusting device in one embodiment;
图6为与本申请实施例提供的计算机设备相关的手机的部分结构的框图。FIG. 6 is a block diagram showing a part of a structure of a mobile phone related to a computer device according to an embodiment of the present application.
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
图1为一个实施例中防抖行程调节方法的流程图。如图1所示,一种防抖行程调节方法,包括步骤102至步骤106。其中:1 is a flow chart of an anti-shake stroke adjustment method in one embodiment. As shown in FIG. 1, an anti-shake stroke adjustment method includes steps 102 to 106. among them:
步骤102,检测移动设备的抖动方向。Step 102: Detect a jitter direction of the mobile device.
移动设备可为具有拍摄功能的设备。该移动设备可为手机、平板电脑、穿戴式设备、个人数字助理等。移动设备被放置在支架或使用者手上拍摄时会产生一定的抖动。可通过移动设备中的陀螺仪检测移动设备的抖动方向。具体地,可通过陀螺仪检测移动设备在XYZ轴上的加速度,根据所述加速度增加的方向确定所述抖动方向。可将加速度增加的方向作为抖动方向。The mobile device can be a device with a shooting function. The mobile device can be a mobile phone, a tablet, a wearable device, a personal digital assistant, or the like. When the mobile device is placed on the stand or the user's hand, it will produce some jitter. The direction of the camera's jitter can be detected by a gyroscope in the mobile device. Specifically, the acceleration of the mobile device on the XYZ axis can be detected by a gyroscope, and the direction of the jitter is determined according to the direction in which the acceleration is increased. The direction in which the acceleration is increased can be used as the direction of the jitter.
例如,陀螺仪检测到移动设备在XYZ轴上的初始加速度均为0,当发生抖动时,检测到移动设备在XY轴上的加速度为0,在Z轴上的加速度为3,则将Z轴方向作为抖动方向。For example, the gyroscope detects that the initial acceleration of the mobile device on the XYZ axis is 0. When the jitter occurs, it is detected that the acceleration of the mobile device on the XY axis is 0, and the acceleration on the Z axis is 3, then the Z axis is The direction is the direction of the jitter.
在一个实施例中,可通过移动设备对待拍摄的画面拍摄多张图像,计算连续多张图像之间的偏移量,根据偏移量计算抖动方向。In one embodiment, a plurality of images may be taken by the mobile device to be photographed, a shift between successive images may be calculated, and a wobble direction may be calculated based on the offset.
步骤104,根据所述抖动方向生成调节指令。Step 104: Generate an adjustment instruction according to the shaking direction.
具体地,生成的调节指令可为默认控制镜头沿着与抖动方向相同的方向移动的指令,也可为控制镜头移动的指令。Specifically, the generated adjustment instruction may be an instruction that controls the movement of the lens in the same direction as the shaking direction by default, or an instruction that controls the movement of the lens.
步骤106,根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照防抖时的可移动行程。Step 106: Control the lens to move in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when the camera is anti-shake.
镜头是移动设备的图像采集装置中由透镜组成的光学装置,用于在成像传感器上成像。镜头防抖的可移动行程是指拍照时镜头在同一个平面内可以 移动的距离。镜头防抖的可移动行程即为防抖行程,是指镜头在上下、左右平面上可以移动的距离。A lens is an optical device consisting of a lens in an image acquisition device of a mobile device for imaging on an imaging sensor. The movable stroke of the lens anti-shake refers to the distance that the lens can move in the same plane when photographing. The movable stroke of the lens anti-shake is the anti-shake stroke, which refers to the distance that the lens can move in the upper and lower, left and right planes.
控制镜头沿着与抖动方向相同可以是与抖动方向趋同的方向,即与抖动方向不限于完全一致。与抖动方向相反可以是与抖动方向相反方向的趋同方向,即与抖动方向相反方向不限于完全一致。The control lens may be in the same direction as the dithering direction along the same direction as the dithering direction, that is, the direction of the dithering is not limited to be completely identical. The opposite direction to the dithering direction may be a converging direction opposite to the dithering direction, that is, the direction opposite to the dithering direction is not limited to being completely identical.
拍照过程中通过控制防抖装置的电机使得镜头进行移动可以对抖动进行补偿,使得光路保持稳定,镜头的可移动行程越大,拍照时进行抖动补偿的空间越大,防抖效果越好。During the photographing process, by controlling the motor of the anti-shake device, the lens can be moved to compensate the jitter, so that the optical path remains stable, the larger the movable stroke of the lens, the larger the space for the camera to compensate for the jitter, and the better the anti-shake effect.
上述防抖行程调节方法,检测到移动设备的抖动方向,生成调节指令,根据调节指令控制镜头沿着与抖动方向相同或相反的方向移动,以增大镜头在拍照时的可移动行程,提高了防抖效果。The anti-shake stroke adjustment method detects a shaking direction of the mobile device, generates an adjustment command, and controls the lens to move in the same or opposite direction to the shaking direction according to the adjustment instruction, so as to increase the movable stroke of the lens when photographing, thereby improving Anti-shake effect.
在一个实施例中,所述根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程包括:In one embodiment, the controlling the movement of the lens in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing comprises:
根据所述调节指令控制镜头沿着与所述抖动方向相同的方向移动;Controlling the lens to move in the same direction as the shaking direction according to the adjustment instruction;
判断所述镜头的可移动行程是否增加,若是,则继续控制所述镜头沿着与所述抖动方向相同的方向移动,若否,则控制所述镜头沿着与所述抖动方向相反的方向移动。Determining whether the movable stroke of the lens is increased, and if so, continuing to control the lens to move in the same direction as the shaking direction, and if not, controlling the lens to move in a direction opposite to the shaking direction .
在根据调节指令控制镜头沿着与抖动方向相同的方向移动后,获取镜头的可移动行程,将移动后镜头的可移动行程与移动前镜头的可移动行程比较,若移动后镜头的可移动行程大于移动前镜头的可移动行程,则表明镜头的可移动行程增加了,若移动后镜头的可移动行程小于移动前镜头的可移动行程,则表明镜头的可移动行程减小了,则移动方向错误,停止移动,并控制镜头沿着与抖动方向相反的方向移动。After the lens is controlled to move in the same direction as the shaking direction according to the adjustment command, the movable stroke of the lens is acquired, and the movable stroke of the moving lens is compared with the movable stroke of the moving lens, and if the movable stroke of the lens is moved The movable stroke larger than the moving lens indicates that the movable stroke of the lens is increased. If the movable stroke of the lens after moving is smaller than the movable stroke of the moving lens, it indicates that the movable stroke of the lens is reduced, and the moving direction is Error, stop moving, and control the lens to move in the opposite direction to the shaking direction.
镜头的可移动行程可通过距离传感器进行检测得到。The movable stroke of the lens can be detected by the distance sensor.
通过控制镜头先向抖动方向相同的方向移动,若检测到可移动行程减小,则及时控制镜头向抖动方向相反的方向移动,保证增大镜头的可移动行程,以保证提高防抖效果。By controlling the lens to move in the same direction of the shaking direction firstly, if it is detected that the movable stroke is reduced, the lens is controlled to move in the opposite direction of the shaking direction in time to ensure that the movable stroke of the lens is increased to ensure the anti-shake effect is improved.
在一个实施例中,所述根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程包括:根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动预设距离,以增大所述镜头在拍照时的可移动行程。In one embodiment, the controlling the lens to move in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing comprises: according to the adjustment instruction The control lens is moved by a preset distance in the same direction or in the opposite direction as the shaking direction to increase the movable stroke of the lens when photographing.
具体地,预设距离可为预先设定的距离。该预设距离小于或等于镜头可移动的最大距离。镜头可移动的最大距离受限于移动设备中图像采集装置的具体结构所形成的可供镜头活动的空间范围等。移动设备的镜头通常会在光轴上进行移动,也就是在一个空间维度上移动。可控制每次移动的距离,控制更加精准。Specifically, the preset distance may be a preset distance. The preset distance is less than or equal to the maximum distance the lens can move. The maximum distance that the lens can be moved is limited by the specific space structure of the image acquisition device in the mobile device, and the space range available for the lens to move. The lens of a mobile device usually moves on the optical axis, that is, in a spatial dimension. It can control the distance of each movement and the control is more precise.
在一个实施例中,所述根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程包括:移动设备的处理器根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向按照预设增幅移动,以增大所述镜头在拍照时的可移动行程。In one embodiment, the controlling the lens to move in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing comprises: a processor of the mobile device And controlling, according to the adjustment instruction, the lens to move according to a preset amplification in the same direction or opposite direction as the shaking direction to increase the movable stroke of the lens when photographing.
具体地,预设增幅可为预设的增加的幅度,例如5%、10%等。预设增幅也可为抖动幅度的比例值。抖动幅度是指发生抖动的幅度,可通过加速度增幅得到。加速度增幅可通过加速度增加值与增加前的加速度的比值得到。Specifically, the preset increase may be a preset increased range, such as 5%, 10%, and the like. The preset increase can also be the proportional value of the jitter amplitude. The jitter amplitude is the amplitude of the jitter that can be obtained by the acceleration gain. The acceleration increase can be obtained by the ratio of the acceleration increase value to the acceleration before the increase.
按照预设增幅移动可为按照当前可移动行程的预设增幅移动,或者按照镜头可移动的最大距离的预设增幅移动。当前可移动行程是指镜头每次在移动前的可移动行程。The movement according to the preset increase can be moved according to the preset increase of the current movable stroke, or according to the preset increase of the maximum distance that the lens can move. The current movable stroke refers to the movable stroke of the lens before each movement.
通过设定预设增幅,可更加精细的控制镜头的移动。By setting the preset increase, you can control the movement of the lens more finely.
图2为另一个实施例中防抖行程调节方法的流程图。如图2所示,在一个实施例中,一种防抖行程调节方法,还包括步骤202至步骤206。其中:2 is a flow chart of an anti-shake stroke adjustment method in another embodiment. As shown in FIG. 2, in one embodiment, an anti-shake stroke adjustment method further includes steps 202 to 206. among them:
步骤202,在拍照预览时,实时检测移动设备的抖动方向。Step 202: In the photo preview, the shaking direction of the mobile device is detected in real time.
拍照预览是指拍照之前捕捉画面的情况。移动设备可通过陀螺仪实时检测移动设备在XYZ轴上的加速度,根据所述加速度增加的方向确定所述抖动方向。可将加速度增加的方向作为抖动方向。Photo preview refers to the situation in which the picture is captured before taking a picture. The mobile device can detect the acceleration of the mobile device on the XYZ axis in real time through the gyroscope, and determine the direction of the jitter according to the direction in which the acceleration increases. The direction in which the acceleration is increased can be used as the direction of the jitter.
步骤204,根据所述抖动方向生成调节指令。Step 204: Generate an adjustment instruction according to the shaking direction.
步骤206,实时根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程。Step 206: Control the lens to move in the same direction or in the opposite direction to the shaking direction according to the adjustment instruction in real time to increase the movable stroke of the lens when photographing.
为了保证实时调整每次能够移动到位,实时检测的频率可以调高,每次移动的距离调小。实时检测的频率大于预设频率。移动距离小于指定距离。In order to ensure that the real-time adjustment can be moved into place every time, the frequency of real-time detection can be increased, and the distance of each movement is reduced. The frequency of real-time detection is greater than the preset frequency. The moving distance is less than the specified distance.
上述调节防抖行程调节方法,检测到移动设备的抖动方向,生成调节指令,根据调节指令控制镜头沿着与抖动方向相同或相反的方向移动,以增大镜头在拍照时的可移动行程,提高了防抖效果。The above-mentioned adjusting anti-shake stroke adjustment method detects the shaking direction of the mobile device, generates an adjustment instruction, and controls the lens to move in the same or opposite direction to the shaking direction according to the adjustment instruction, so as to increase the movable stroke of the lens when photographing, and improve The anti-shake effect.
在一个实施例中,步骤206可包括:根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动预设距离,以增大所述镜头在拍照时的可移动行程。该预设距离可设定的较小,以保证每次能够迅速移动到位。In one embodiment, step 206 may include controlling the lens to move a preset distance in the same or opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing. The preset distance can be set to be small to ensure that it can be quickly moved into position each time.
图3为另一个实施例中的防抖行程调节方法的流程图。如图3所示,一种防抖行程调节方法还包括:3 is a flow chart of an anti-shake stroke adjustment method in another embodiment. As shown in FIG. 3, an anti-shake stroke adjustment method further includes:
步骤302,检测接收到拍照指令时的移动设备的抖动方向。Step 302: Detect a direction of shaking of the mobile device when the photographing instruction is received.
拍照预览是指拍照之前捕捉画面的情况。可通过陀螺仪实时检测移动设备在XYZ轴上的加速度,根据所述加速度增加的方向确定所述抖动方向。可将加速度增加的方向作为抖动方向。Photo preview refers to the situation in which the picture is captured before taking a picture. The acceleration of the mobile device on the XYZ axis can be detected in real time by the gyroscope, and the direction of the jitter is determined according to the direction in which the acceleration is increased. The direction in which the acceleration is increased can be used as the direction of the jitter.
步骤304,根据所述抖动方向生成调节指令。Step 304: Generate an adjustment instruction according to the shaking direction.
步骤306,根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程。Step 306: Control the lens to move in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing.
具体地,微电机根据所述调节指令控制镜头沿着与所述抖动方向相同的方向移动;判断所述镜头的可移动行程是否增加,若是,则继续控制所述镜头沿着与所述抖动方向相同的方向移动,若否,则控制所述镜头沿着与所述抖动方向相反的方向移动。Specifically, the micromotor controls the lens to move in the same direction as the shaking direction according to the adjustment instruction; determines whether the movable stroke of the lens is increased, and if so, continues to control the lens along the direction of the shaking Moving in the same direction, if not, controlling the lens to move in a direction opposite to the direction of the shake.
在一个实施例中,根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动预设距离,以增大所述镜头在拍照时的可移动行程。In one embodiment, the lens is controlled to move the preset distance in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing.
在一个实施例中,根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向按照预设增幅移动,以增大所述镜头在拍照时的可移动行程。In one embodiment, the lens is controlled to move in a predetermined increment in the same or opposite direction as the shaking direction according to the adjustment command to increase the movable stroke of the lens when photographing.
步骤308,检测到镜头移动完成,执行所述拍照指令。 Step 308, detecting that the lens movement is completed, executing the photographing instruction.
镜头移动完成后,执行拍照指令,调用防抖装置的电机控制镜头的可移动行程增大,提高了防抖效果。After the lens movement is completed, the photographing instruction is executed, and the movable stroke of the motor control lens that invokes the anti-shake device is increased to improve the anti-shake effect.
上述防抖行程调节方法,检测接收到拍照指令是移动设备的抖动方向,生成调节指令,根据调节指令控制镜头沿着与抖动方向相同或相反的方向移动,以增大镜头在拍照时的可移动行程,在镜头移动完成后,进行拍照,调用防抖装置,镜头的可移动行程增大,提高了防抖效果。The anti-shake stroke adjustment method detects that the photographing instruction is the shaking direction of the mobile device, generates an adjustment instruction, and controls the lens to move in the same or opposite direction to the shaking direction according to the adjustment instruction, so as to increase the movable of the lens when photographing. The stroke, after the lens movement is completed, takes a picture and calls the anti-shake device, and the movable stroke of the lens is increased to improve the anti-shake effect.
本申请实施例的方法流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,本申请实施例的方法流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。The steps in the method flowchart of the embodiment of the present application are sequentially displayed in accordance with the indication of the arrow, but the steps are not necessarily performed in the order indicated by the arrow. Except as explicitly stated herein, the execution of these steps is not strictly limited, and may be performed in other sequences. Moreover, at least some of the steps in the method flowchart of the embodiment of the present application may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be executed at different times. The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
图4为一个实施例中镜头移动示意图。如图4所示,第一幅图中镜头402位于活动空间404的中间位置,镜头的可移动行程为L1,检测到抖动方向为箭头方向406;第二幅图中镜头402从活动空间404的中间位置移动到了镜头可移动的最大距离位置处;第三幅图表示拍照时镜头402的可移动行程L2,其中L2大于L1。Figure 4 is a schematic illustration of lens movement in one embodiment. As shown in FIG. 4, in the first figure, the lens 402 is located at the middle of the active space 404, the movable path of the lens is L1, and the direction of the shake is detected as the direction of the arrow 406; in the second picture, the lens 402 is from the active space 404. The intermediate position moves to the maximum distance position at which the lens can move; the third picture shows the movable stroke L2 of the lens 402 at the time of photographing, where L2 is greater than L1.
图5为一个实施例中防抖行程调节装置的结构框图。如图5所示,一种防抖行程调节装置,包括方向检测模块502、指令生成模块504和移动模块506。其中:Fig. 5 is a block diagram showing the structure of an anti-shake stroke adjusting device in one embodiment. As shown in FIG. 5, an anti-shake stroke adjustment device includes a direction detection module 502, an instruction generation module 504, and a movement module 506. among them:
方向检测模块502用于检测移动设备的抖动方向。The direction detecting module 502 is configured to detect a jitter direction of the mobile device.
具体地,方向检测模块502可通过陀螺仪检测移动设备在XYZ轴上的加速度,根据所述加速度增加的方向确定所述抖动方向。可将加速度增加的方向作为抖动方向。Specifically, the direction detecting module 502 can detect the acceleration of the mobile device on the XYZ axis by the gyroscope, and determine the shaking direction according to the direction in which the acceleration increases. The direction in which the acceleration is increased can be used as the direction of the jitter.
指令生成模块504用于根据所述抖动方向生成调节指令。The instruction generation module 504 is configured to generate an adjustment instruction according to the shaking direction.
移动模块506用于根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程。The moving module 506 is configured to control the lens to move in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing.
上述防抖行程调节装置,检测到移动设备的抖动方向,生成调节指令,根据调节指令控制镜头沿着与抖动方向相同或相反的方向移动,以增大镜头在拍照时的可移动行程,提高了防抖效果。The anti-shake stroke adjusting device detects the shaking direction of the mobile device, generates an adjustment command, and controls the lens to move in the same or opposite direction to the shaking direction according to the adjustment command, so as to increase the movable stroke of the lens when photographing, thereby improving the movement. Anti-shake effect.
在一个实施例中,所述移动模块506还用于根据所述调节指令控制镜头沿着与所述抖动方向相同的方向移动;判断所述镜头的可移动行程是否增加,若是,则继续控制所述镜头沿着与所述抖动方向相同的方向移动,若否,则控制所述镜头沿着与所述抖动方向相反的方向移动。In one embodiment, the moving module 506 is further configured to control the lens to move in the same direction as the shaking direction according to the adjustment instruction; determine whether the movable stroke of the lens is increased, and if yes, continue to control the The lens moves in the same direction as the shaking direction, and if not, controls the lens to move in a direction opposite to the shaking direction.
在一个实施例中,所述移动模块506还用于根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动预设距离,以增大所述镜头在拍照时的可移动行程;In an embodiment, the moving module 506 is further configured to control the lens to move the preset distance in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction, so as to increase the Moving itinerary
在一个实施例中,所述移动模块506还用于根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向按照预设增幅移动,以增大所述镜头在拍照时的可移动行程。In an embodiment, the moving module 506 is further configured to control, according to the adjustment instruction, that the lens moves according to a preset amplification in the same direction or opposite direction to the shaking direction to increase the time when the lens is photographed. Moveable trip.
在一个实施例中,方向检测模块502还用于在拍照预览时,实时检测移动设备的抖动方向;指令生成模块504还用于根据所述抖动方向生成调节指令;移动模块506还用于实时根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程。In one embodiment, the direction detecting module 502 is further configured to detect a direction of shaking of the mobile device in real time during the preview of the photograph; the instruction generating module 504 is further configured to generate an adjustment instruction according to the shaking direction; and the moving module 506 is further configured to The adjustment command controls the lens to move in the same or opposite direction as the shaking direction to increase the movable stroke of the lens when photographing.
在一个实施例中,上述防抖行程调节装置还包括执行模块。方向检测模块502检测接收到拍照指令时的移动设备的抖动方向;指令生成模块504还用于根据所述抖动方向生成调节指令;移动模块506还用于实时根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程;执行模块用于检测到镜头移动完成,执行所述拍照指令。In one embodiment, the anti-shake stroke adjustment device further includes an execution module. The direction detecting module 502 detects the direction of the jitter of the mobile device when the photographing instruction is received. The command generating module 504 is further configured to generate an adjustment instruction according to the shaking direction. The moving module 506 is further configured to control the lens along the real-time according to the adjusting instruction. The shaking direction is the same or moves in the opposite direction to increase the movable stroke of the lens when photographing; the executing module is configured to detect that the lens movement is completed, and execute the photographing instruction.
上述防抖行程调节装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于服务器中的处理器中, 也可以以软件形式存储于服务器中的存储器中,以便于处理器调用执行以上各个模块对应的操作。如在本申请中所使用的,术语“组件”、“模块”和“系统”等旨在表示计算机相关的实体,它可以是硬件、硬件和软件的组合、软件、或者执行中的软件。例如,组件可以是但不限于是,在处理器上运行的进程、处理器、对象、可执行码、执行的线程、程序和/或计算机。作为说明,运行在服务器上的应用程序和服务器都可以是组件。一个或多个组件可以驻留在进程和/或执行的线程中,并且组件可以位于一个计算机内和/或分布在两个或更多的计算机之间。Each of the above-described anti-shake stroke adjustment devices may be implemented in whole or in part by software, hardware, and combinations thereof. Each of the above modules may be embedded in or independent of the processor in the server in hardware, or may be stored in a memory in the server in a software form, so that the processor invokes the operations corresponding to the above modules. As used in this application, the terms "component", "module" and "system" and the like are intended to mean a computer-related entity, which may be hardware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and/or a computer. By way of illustration, both an application running on a server and a server can be a component. One or more components can reside within a process and/or executed thread, and the components can be located within one computer and/or distributed between two or more computers.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行如上所述防抖行程调节方法。The embodiment of the present application also provides a computer readable storage medium. One or more non-transitory computer readable storage media containing computer executable instructions that, when executed by one or more processors, cause the processor to perform anti-shake stroke adjustment as described above method.
本申请实施例还提供了一种计算机设备。如图6所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该计算机设备可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以计算机设备为手机为例:The embodiment of the present application also provides a computer device. As shown in FIG. 6 , for the convenience of description, only the parts related to the embodiments of the present application are shown. If the specific technical details are not disclosed, please refer to the method part of the embodiment of the present application. The computer device may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking a computer device as a mobile phone as an example. :
图6为与本申请实施例提供的计算机设备相关的手机的部分结构的框图。参考图6,手机600可以包括以下一个或多个组件:处理组件602、存储器604、多媒体组件606、音频组件608、输入/输出(I/O)的接口610、传感器组件612、通信组件614以及电源组件616。FIG. 6 is a block diagram showing a part of a structure of a mobile phone related to a computer device according to an embodiment of the present application. Referring to FIG. 6, handset 600 can include one or more of the following components: processing component 602, memory 604, multimedia component 606, audio component 608, input/output (I/O) interface 610, sensor component 612, communication component 614, and Power component 616.
处理组件602通常用于控制手机600的整体操作,诸如与显示、电话呼叫、数据通信、相机操作和记录操作相关联的操作。处理组件602可以包括一个或多个处理器620来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件602可以包括一个或多个模块,便于处理组件602和其他组件之间的交互。例如,处理组件602可以包括多媒体模块,以方便多媒体组 件608和处理组件602之间的交互。 Processing component 602 is typically used to control the overall operation of handset 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 602 can include one or more processors 620 to execute instructions to perform all or part of the steps of the above described methods. Moreover, processing component 602 can include one or more modules to facilitate interaction between component 602 and other components. For example, processing component 602 can include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.
存储器604存储各种类型的数据以支持在手机600的操作。这些数据可包括用于在手机600上操作的任何应用程序或方法的指令,联系人数据,通讯录数据,图片,视频等。存储器604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘等。Memory 604 stores various types of data to support operation at handset 600. These data may include instructions for any application or method for operation on the handset 600, contact data, address book data, pictures, videos, and the like. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk, etc.
多媒体组件606可包括在手机600和用户之间所提供的一个输出接口的屏幕。在一个实施例中,屏幕可以包括液晶显示器(LCD,Liquid Crystal Display)和触摸面板(TP,Touch Panel)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器,该触摸传感器用于感测触摸、滑动和触摸面板上的手势等。该触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一个实施例中,多媒体组件606包括一个前置摄像头和/或后置摄像头。当手机600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 606 can include a screen of an output interface provided between the handset 600 and the user. In one embodiment, the screen may include a liquid crystal display (LCD) and a touch panel (TP, Touch Panel). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors for sensing touches, swipes, gestures on the touch panel, and the like. The touch sensor can sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation. In one embodiment, the multimedia component 606 includes a front camera and/or a rear camera. When the handset 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
音频组件608被配置为输出和/或输入音频信号。例如,音频组件608包括一个麦克风(MIC)和一个扬声器。当手机600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器604或经由通信组件614发送。该扬声器用于输出音频信号。The audio component 608 is configured to output and/or input an audio signal. For example, audio component 608 includes a microphone (MIC) and a speaker. When the handset 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal may be further stored in memory 604 or transmitted via communication component 614. This speaker is used to output an audio signal.
I/O接口612可为处理组件602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:音量按钮、启动按钮和锁定按钮。The I/O interface 612 can provide an interface between the processing component 602 and the peripheral interface module, which can be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to, a volume button, a start button, and a lock button.
传感器组件612包括一个或多个传感器,用于为手机600提供各个方面的状态数据。例如,传感器组件612可以检测到手机600的打开/关闭状态,组件的相对定位,例如所述组件为手机600的显示器和小键盘,传感器组件612还可以检测手机600或手机600中一个组件的位置改变,手机600方位或加速/减速和手机600的温度变化。传感器组件612可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件612还可以包括光传感器,如CMOS(Complementary Metal-Oxide-Semiconductor,互补金属氧化物半导体)或CCD(Charge Coupled Device,电荷藕合器件图像传感器)图像传感器,用于在成像应用中使用。在一个实施例中,该传感器组件612还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器等。 Sensor assembly 612 includes one or more sensors for providing various aspects of status data to handset 600. For example, sensor component 612 can detect an open/closed state of handset 600, relative positioning of components, such as the display and keypad of handset 600, and sensor component 612 can also detect the location of a component in handset 600 or handset 600. Change, cell phone 600 orientation or acceleration/deceleration and temperature change of cell phone 600. Sensor assembly 612 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 612 can also include a light sensor, such as a CMOS (Complementary Metal-Oxide-Semiconductor) or CCD (Charge Coupled Device) image sensor for use in imaging applications. In one embodiment, the sensor assembly 612 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件614是为便于手机600和其他设备之间有线或无线方式的通信。手机600可以接入基于通信标准的无线网络,如WiFi,2G或3G或4G或5G或它们的组合。在一个实施例中,通信组件614经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个实施例中,所述通信组件614还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。 Communication component 614 is for facilitating wired or wireless communication between handset 600 and other devices. The handset 600 can access a wireless network based on communication standards such as WiFi, 2G or 3G or 4G or 5G or a combination thereof. In one embodiment, communication component 614 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel. In one embodiment, the communication component 614 also includes a near field communication (NFC) module to facilitate short range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
电源组件616为手机600的各种组件提供电力。电源组件616可以包括电源管理系统,一个或多个电源,及其他与为手机600生成、管理和分配电力相关联的组件。 Power component 616 provides power to various components of handset 600. Power component 616 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for handset 600.
在本申请实施例中,该移动终端所包括的处理器620执行存储在存储器上的计算机程序时实现以下步骤:In the embodiment of the present application, the processor 620 included in the mobile terminal implements the following steps when executing a computer program stored in the memory:
检测移动设备的抖动方向;Detecting the direction of jitter of the mobile device;
根据所述抖动方向生成调节指令;Generating an adjustment command according to the shaking direction;
根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移 动,以增大所述镜头在拍照时的可移动行程。The lens is controlled to move in the same or opposite direction as the shaking direction in accordance with the adjustment command to increase the movable stroke of the lens when photographing.
在其中一个实施例中,处理器620所执行的所述检测移动设备的抖动方向包括:In one embodiment, the detecting the jitter direction of the mobile device performed by the processor 620 includes:
通过陀螺仪检测移动设备在XYZ轴上的加速度,根据所述加速度增加的方向确定所述抖动方向。The acceleration of the mobile device on the XYZ axis is detected by a gyroscope, and the direction of the jitter is determined according to the direction in which the acceleration is increased.
在其中一个实施例中,处理器620所执行的根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程包括:In one embodiment, the processor 620 controls the lens to move in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing:
根据所述调节指令控制镜头沿着与所述抖动方向相同的方向移动;Controlling the lens to move in the same direction as the shaking direction according to the adjustment instruction;
判断所述镜头的可移动行程是否增加,若是,则继续控制所述镜头沿着与所述抖动方向相同的方向移动,若否,则控制所述镜头沿着与所述抖动方向相反的方向移动。Determining whether the movable stroke of the lens is increased, and if so, continuing to control the lens to move in the same direction as the shaking direction, and if not, controlling the lens to move in a direction opposite to the shaking direction .
在其中一个实施例中,处理器620所执行的所述根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程包括:In one embodiment, the performing, by the processor 620, controls the lens to move in the same or opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when taking a picture. include:
根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动预设距离,以增大所述镜头在拍照时的可移动行程。The lens is controlled to move the preset distance in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing.
在其中一个实施例中,处理器620所执行的所述根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程包括:In one embodiment, the performing, by the processor 620, controls the lens to move in the same or opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when taking a picture. include:
根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向按照预设增幅移动,以增大所述镜头在拍照时的可移动行程。And controlling, according to the adjustment instruction, the lens to move according to a preset amplification in the same direction or opposite direction as the shaking direction to increase the movable stroke of the lens when photographing.
在其中一个实施例中,处理器620还被用于执行:In one of these embodiments, the processor 620 is also used to perform:
在拍照预览时,实时检测移动设备的抖动方向;In the photo preview, the shaking direction of the mobile device is detected in real time;
根据所述抖动方向生成调节指令;Generating an adjustment command according to the shaking direction;
实时根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程。The lens is controlled to move in the same direction or in the opposite direction to the shaking direction in real time according to the adjustment command to increase the movable stroke of the lens when photographing.
在其中一个实施例中,处理器620还被用于执行:In one of these embodiments, the processor 620 is also used to perform:
检测接收到拍照指令时的移动设备的抖动方向;Detecting the direction of jitter of the mobile device when the camera command is received;
根据所述抖动方向生成调节指令;Generating an adjustment command according to the shaking direction;
根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程;Controlling, according to the adjustment instruction, the lens to move in the same direction or in the opposite direction as the shaking direction to increase the movable stroke of the lens when photographing;
检测到镜头移动完成,执行所述拍照指令。The completion of the lens movement is detected, and the photographing instruction is executed.
一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现以下步骤:A computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the following steps:
检测移动设备的抖动方向;Detecting the direction of jitter of the mobile device;
根据所述抖动方向生成调节指令;Generating an adjustment command according to the shaking direction;
根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程。The lens is controlled to move in the same or opposite direction as the shaking direction according to the adjustment command to increase the movable stroke of the lens when photographing.
在其中一个实施例中,处理器所执行的所述检测移动设备的抖动方向包括:In one of the embodiments, the detecting the direction of jitter of the mobile device performed by the processor comprises:
通过陀螺仪检测移动设备在XYZ轴上的加速度,根据所述加速度增加的方向确定所述抖动方向。The acceleration of the mobile device on the XYZ axis is detected by a gyroscope, and the direction of the jitter is determined according to the direction in which the acceleration is increased.
在其中一个实施例中,处理器所执行的根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程包括:In one embodiment, the processor controls, according to the adjustment instruction, to control the lens to move in the same direction or in the opposite direction as the shaking direction to increase the movable stroke of the lens when photographing:
根据所述调节指令控制镜头沿着与所述抖动方向相同的方向移动;Controlling the lens to move in the same direction as the shaking direction according to the adjustment instruction;
判断所述镜头的可移动行程是否增加,若是,则继续控制所述镜头沿着与所述抖动方向相同的方向移动,若否,则控制所述镜头沿着与所述抖动方向相反的方向移动。Determining whether the movable stroke of the lens is increased, and if so, continuing to control the lens to move in the same direction as the shaking direction, and if not, controlling the lens to move in a direction opposite to the shaking direction .
在其中一个实施例中,处理器所执行的所述根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程包括:In one embodiment, the performing, by the processor, controlling the lens to move in the same or opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing includes :
根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移 动预设距离,以增大所述镜头在拍照时的可移动行程。The lens is controlled to move the preset distance in the same direction or in the opposite direction as the shaking direction according to the adjustment command to increase the movable stroke of the lens when photographing.
在其中一个实施例中,处理器所执行的所述根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程包括:In one embodiment, the performing, by the processor, controlling the lens to move in the same or opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when photographing includes :
根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向按照预设增幅移动,以增大所述镜头在拍照时的可移动行程。And controlling, according to the adjustment instruction, the lens to move according to a preset amplification in the same direction or opposite direction as the shaking direction to increase the movable stroke of the lens when photographing.
在其中一个实施例中,处理器还被用于执行:In one of these embodiments, the processor is also used to perform:
在拍照预览时,实时检测移动设备的抖动方向;In the photo preview, the shaking direction of the mobile device is detected in real time;
根据所述抖动方向生成调节指令;Generating an adjustment command according to the shaking direction;
实时根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程。The lens is controlled to move in the same direction or in the opposite direction to the shaking direction in real time according to the adjustment command to increase the movable stroke of the lens when photographing.
在其中一个实施例中,处理器还被用于执行:In one of these embodiments, the processor is also used to perform:
检测接收到拍照指令时的移动设备的抖动方向;Detecting the direction of jitter of the mobile device when the camera command is received;
根据所述抖动方向生成调节指令;Generating an adjustment command according to the shaking direction;
根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照时的可移动行程;Controlling, according to the adjustment instruction, the lens to move in the same direction or in the opposite direction as the shaking direction to increase the movable stroke of the lens when photographing;
检测到镜头移动完成,执行所述拍照指令。The completion of the lens movement is detected, and the photographing instruction is executed.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、 双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。One of ordinary skill in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a non-volatile computer readable storage medium. Wherein, the program, when executed, may include the flow of an embodiment of the methods as described above. Any reference to a memory, storage, database or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM), which acts as an external cache. By way of illustration and not limitation, RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization. Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the claims. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.
Claims (18)
- 一种防抖行程调节方法,其特征在于,包括:An anti-shake stroke adjustment method, comprising:检测移动设备的抖动方向;Detecting the direction of jitter of the mobile device;根据所述抖动方向生成调节指令;及Generating an adjustment command according to the shaking direction; and根据所述调节指令控制镜头沿着与所述抖动方向相同或相反的方向移动,以增大所述镜头在拍照防抖时的可移动行程。The lens is controlled to move in the same or opposite direction as the shaking direction according to the adjustment command to increase the movable stroke of the lens when the camera is anti-shake.
- 根据权利要求1所述的防抖行程调节方法,其特征在于,所述检测移动设备的抖动方向包括:The anti-shake stroke adjustment method according to claim 1, wherein the detecting the shaking direction of the mobile device comprises:通过陀螺仪检测移动设备在XYZ轴上的加速度,根据所述加速度增加的方向确定所述抖动方向。The acceleration of the mobile device on the XYZ axis is detected by a gyroscope, and the direction of the jitter is determined according to the direction in which the acceleration is increased.
- 根据权利要求1所述的防抖行程调节方法,其特征在于,所述根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照防抖时的可移动行程,包括:The anti-shake stroke adjustment method according to claim 1, wherein the lens is controlled to move in the same or opposite direction to the dithering direction according to the adjustment instruction to increase the lens in the photo prevention The movable stroke when shaking, including:根据所述调节指令控制镜头沿着与所述抖动方向相同的方向移动;及Controlling the lens to move in the same direction as the shaking direction according to the adjustment command; and判断所述镜头防抖的可移动行程是否增加,若是,则继续控制所述镜头沿着与所述抖动方向相同的方向移动,若否,则控制所述镜头沿着与所述抖动方向相反的方向移动。Determining whether the movable stroke of the lens anti-shake is increased, and if so, continuing to control the lens to move in the same direction as the shaking direction, and if not, controlling the lens to be opposite to the shaking direction Move in direction.
- 根据权利要求1所述的防抖行程调节方法,其特征在于,所述根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照防抖时的可移动行程,包括:The anti-shake stroke adjustment method according to claim 1, wherein the lens is controlled to move in the same or opposite direction to the dithering direction according to the adjustment instruction to increase the lens in the photo prevention The movable stroke when shaking, including:根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动预设距离,以增大所述镜头在拍照防抖时的可移动行程。The lens is controlled to move the preset distance in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when the camera is anti-shake.
- 根据权利要求1所述的防抖行程调节方法,其特征在于,所述根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照防抖时的可移动行程,包括:The anti-shake stroke adjustment method according to claim 1, wherein the lens is controlled to move in the same or opposite direction to the dithering direction according to the adjustment instruction to increase the lens in the photo prevention The movable stroke when shaking, including:根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向按 照预设增幅移动,以增大所述镜头在拍照防抖时的可移动行程。The lens is controlled to move according to the preset amplification direction in the same direction or in the opposite direction according to the adjustment instruction to increase the movable stroke of the lens when the camera is anti-shake.
- 根据权利要求1所述的防抖行程调节方法,其特征在于,所述方法还包括:The anti-shake stroke adjustment method according to claim 1, wherein the method further comprises:在拍照预览时,实时检测移动设备的抖动方向;In the photo preview, the shaking direction of the mobile device is detected in real time;根据所述抖动方向生成调节指令;及Generating an adjustment command according to the shaking direction; and实时根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照防抖时的可移动行程。The lens is controlled to move in the same direction or in the opposite direction to the shaking direction in real time according to the adjustment instruction to increase the movable stroke of the lens when the camera is anti-shake.
- 一种移动设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现以下步骤:A mobile device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor performing the following steps when executing the program:检测移动设备的抖动方向;Detecting the direction of jitter of the mobile device;根据所述抖动方向生成调节指令;及Generating an adjustment command according to the shaking direction; and根据所述调节指令控制镜头沿着与所述抖动方向相同或相反的方向移动,以增大所述镜头在拍照防抖时的可移动行程。The lens is controlled to move in the same or opposite direction as the shaking direction according to the adjustment command to increase the movable stroke of the lens when the camera is anti-shake.
- 根据权利要求7所述的移动设备,其特征在于,所述处理器还用于通过陀螺仪检测移动设备在XYZ轴上的加速度,根据所述加速度增加的方向确定所述抖动方向。The mobile device according to claim 7, wherein the processor is further configured to detect an acceleration of the mobile device on the XYZ axis by a gyroscope, and determine the direction of the jitter according to the direction in which the acceleration increases.
- 根据权利要求7所述的移动设备,其特征在于,所述处理器还用于The mobile device of claim 7 wherein said processor is further根据所述调节指令控制镜头沿着与所述抖动方向相同的方向移动;及Controlling the lens to move in the same direction as the shaking direction according to the adjustment command; and判断所述镜头防抖的可移动行程是否增加,若是,则继续控制所述镜头沿着与所述抖动方向相同的方向移动,若否,则控制所述镜头沿着与所述抖动方向相反的方向移动。Determining whether the movable stroke of the lens anti-shake is increased, and if so, continuing to control the lens to move in the same direction as the shaking direction, and if not, controlling the lens to be opposite to the shaking direction Move in direction.
- 根据权利要求7所述的移动设备,其特征在于,所述处理器还用于The mobile device of claim 7 wherein said processor is further根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动预设距离,以增大所述镜头在拍照防抖时的可移动行程。The lens is controlled to move the preset distance in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when the camera is anti-shake.
- 根据权利要求7所述的移动设备,其特征在于,所述处理器还用于The mobile device of claim 7 wherein said processor is further根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向按 照预设增幅移动,以增大所述镜头在拍照防抖时的可移动行程。The lens is controlled to move according to the preset amplification direction in the same direction or in the opposite direction according to the adjustment instruction to increase the movable stroke of the lens when the camera is anti-shake.
- 根据权利要求7所述的移动设备,其特征在于,所述处理器还用于The mobile device of claim 7 wherein said processor is further在拍照预览时,实时检测移动设备的抖动方向;In the photo preview, the shaking direction of the mobile device is detected in real time;根据所述抖动方向生成调节指令;及Generating an adjustment command according to the shaking direction; and实时根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照防抖时的可移动行程。The lens is controlled to move in the same direction or in the opposite direction to the shaking direction in real time according to the adjustment instruction to increase the movable stroke of the lens when the camera is anti-shake.
- 一种非易失性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现以下步骤:A non-transitory computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the following steps:检测移动设备的抖动方向;Detecting the direction of jitter of the mobile device;根据所述抖动方向生成调节指令;及Generating an adjustment command according to the shaking direction; and根据所述调节指令控制镜头沿着与所述抖动方向相同或相反的方向移动,以增大所述镜头在拍照防抖时的可移动行程。The lens is controlled to move in the same or opposite direction as the shaking direction according to the adjustment command to increase the movable stroke of the lens when the camera is anti-shake.
- 根据权利要求13所述的非易失性计算机可读存储介质,其特征在于,所述处理器还被用于执行以下步骤:通过陀螺仪检测移动设备在XYZ轴上的加速度,根据所述加速度增加的方向确定所述抖动方向。The non-transitory computer readable storage medium according to claim 13, wherein the processor is further configured to perform: detecting, by the gyroscope, an acceleration of the mobile device on the XYZ axis, according to the acceleration The increased direction determines the direction of the jitter.
- 根据权利要求13所述的非易失性计算机可读存储介质,其特征在于,所述处理器还被用于执行以下步骤:The non-transitory computer readable storage medium of claim 13, wherein the processor is further configured to perform the following steps:根据所述调节指令控制镜头沿着与所述抖动方向相同的方向移动;及Controlling the lens to move in the same direction as the shaking direction according to the adjustment command; and判断所述镜头防抖的可移动行程是否增加,若是,则继续控制所述镜头沿着与所述抖动方向相同的方向移动,若否,则控制所述镜头沿着与所述抖动方向相反的方向移动。Determining whether the movable stroke of the lens anti-shake is increased, and if so, continuing to control the lens to move in the same direction as the shaking direction, and if not, controlling the lens to be opposite to the shaking direction Move in direction.
- 根据权利要求13所述的非易失性计算机可读存储介质,其特征在于,所述处理器还被用于执行以下步骤:The non-transitory computer readable storage medium of claim 13, wherein the processor is further configured to perform the following steps:根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动预设距离,以增大所述镜头在拍照防抖时的可移动行程。The lens is controlled to move the preset distance in the same direction or in the opposite direction as the shaking direction according to the adjustment instruction to increase the movable stroke of the lens when the camera is anti-shake.
- 根据权利要求13所述的非易失性计算机可读存储介质,其特征在于, 所述处理器还被用于执行以下步骤:The non-transitory computer readable storage medium according to claim 13, wherein the processor is further configured to perform the following steps:根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向按照预设增幅移动,以增大所述镜头在拍照防抖时的可移动行程。And controlling, according to the adjustment instruction, the lens to move according to a preset amplification in the same direction or opposite direction as the shaking direction to increase a movable stroke of the lens when the camera is anti-shake.
- 根据权利要求13所述的非易失性计算机可读存储介质,其特征在于,所述处理器还被用于执行以下步骤:The non-transitory computer readable storage medium of claim 13, wherein the processor is further configured to perform the following steps:在拍照预览时,实时检测移动设备的抖动方向;In the photo preview, the shaking direction of the mobile device is detected in real time;根据所述抖动方向生成调节指令;及Generating an adjustment command according to the shaking direction; and实时根据所述调节指令控制镜头沿着与所述抖动方向相同或与相反的方向移动,以增大所述镜头在拍照防抖时的可移动行程。The lens is controlled to move in the same direction or in the opposite direction to the shaking direction in real time according to the adjustment instruction to increase the movable stroke of the lens when the camera is anti-shake.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710401501.4A CN107181914A (en) | 2017-05-31 | 2017-05-31 | Stabilization stroke adjustment method and apparatus, mobile device and computer-readable storage medium |
CN201710401501.4 | 2017-05-31 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018219210A1 true WO2018219210A1 (en) | 2018-12-06 |
Family
ID=59835108
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/088215 WO2018219210A1 (en) | 2017-05-31 | 2018-05-24 | Image stabilization stroke adjustment method, mobile device, and computer storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107181914A (en) |
WO (1) | WO2018219210A1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107181914A (en) * | 2017-05-31 | 2017-09-19 | 广东欧珀移动通信有限公司 | Stabilization stroke adjustment method and apparatus, mobile device and computer-readable storage medium |
CN108111761B (en) * | 2017-12-27 | 2020-07-07 | 努比亚技术有限公司 | Anti-shake processing method, terminal and computer readable storage medium |
WO2019183807A1 (en) * | 2018-03-27 | 2019-10-03 | 深圳市大疆创新科技有限公司 | Stabilization degree adjustment method and device, and storage medium |
CN114244986A (en) * | 2021-12-15 | 2022-03-25 | 惠州Tcl移动通信有限公司 | Shooting anti-shake device and mobile terminal thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101426043A (en) * | 2007-10-31 | 2009-05-06 | 富士胶片株式会社 | Portable device and imaging device |
CN101762940A (en) * | 2008-12-11 | 2010-06-30 | 索尼株式会社 | Blur correcting device, blur correcting method, and image pickup apparatus |
CN102098438A (en) * | 2009-12-15 | 2011-06-15 | 索尼公司 | Image capturing apparatus and image capturing method |
CN102998878A (en) * | 2011-09-15 | 2013-03-27 | 佳能株式会社 | Interchangeable lens and camera system having the same |
JP2016080918A (en) * | 2014-10-17 | 2016-05-16 | キヤノン株式会社 | Image shake correction device and control method therefor |
CN107181914A (en) * | 2017-05-31 | 2017-09-19 | 广东欧珀移动通信有限公司 | Stabilization stroke adjustment method and apparatus, mobile device and computer-readable storage medium |
-
2017
- 2017-05-31 CN CN201710401501.4A patent/CN107181914A/en active Pending
-
2018
- 2018-05-24 WO PCT/CN2018/088215 patent/WO2018219210A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101426043A (en) * | 2007-10-31 | 2009-05-06 | 富士胶片株式会社 | Portable device and imaging device |
CN101762940A (en) * | 2008-12-11 | 2010-06-30 | 索尼株式会社 | Blur correcting device, blur correcting method, and image pickup apparatus |
CN102098438A (en) * | 2009-12-15 | 2011-06-15 | 索尼公司 | Image capturing apparatus and image capturing method |
CN102998878A (en) * | 2011-09-15 | 2013-03-27 | 佳能株式会社 | Interchangeable lens and camera system having the same |
JP2016080918A (en) * | 2014-10-17 | 2016-05-16 | キヤノン株式会社 | Image shake correction device and control method therefor |
CN107181914A (en) * | 2017-05-31 | 2017-09-19 | 广东欧珀移动通信有限公司 | Stabilization stroke adjustment method and apparatus, mobile device and computer-readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107181914A (en) | 2017-09-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101772177B1 (en) | Method and apparatus for obtaining photograph | |
US11061202B2 (en) | Methods and devices for adjusting lens position | |
EP3032821B1 (en) | Method and device for shooting a picture | |
CN105991930B (en) | Zoom processing method, device and the mobile terminal of dual camera | |
EP3136391B1 (en) | Method, device and terminal device for video effect processing | |
US9661223B2 (en) | Method and device for photographing including camera shake | |
US9959484B2 (en) | Method and apparatus for generating image filter | |
WO2018219210A1 (en) | Image stabilization stroke adjustment method, mobile device, and computer storage medium | |
CN106657780B (en) | Image preview method and device | |
WO2018219197A1 (en) | Optical image stabilization control method, mobile terminal, and computer readable storage medium | |
CN110769147B (en) | Shooting method and electronic equipment | |
WO2017031890A1 (en) | Panoramic photo generation method and apparatus | |
CN108829475B (en) | UI drawing method, device and storage medium | |
CN114727004A (en) | Image acquisition method and device, electronic equipment and storage medium | |
WO2018053722A1 (en) | Panoramic photo capture method and device | |
CN105959563B (en) | Image storage method and image storage device | |
CN112333384B (en) | Image preview method, image preview device and storage medium | |
CN112866612B (en) | Frame insertion method, device, terminal and computer readable storage medium | |
WO2023245319A1 (en) | Lens focusing method and apparatus, and storage medium | |
CN112087572B (en) | Method and device for controlling zoom of lens, electronic equipment and readable storage medium | |
CN112203015B (en) | Camera control method, device and medium system | |
WO2023230860A1 (en) | Zooming method, zooming device, electronic equipment, and storage medium | |
CN106454094A (en) | Shooting method and device, and mobile terminal | |
CN117241141A (en) | Lens shake compensation method, compensation device, electronic equipment and storage medium | |
CN117956268A (en) | Preview frame rate control method and device thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18809806 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18809806 Country of ref document: EP Kind code of ref document: A1 |