WO2022206499A1 - Image capture method and apparatus, electronic device and readable storage medium - Google Patents

Image capture method and apparatus, electronic device and readable storage medium Download PDF

Info

Publication number
WO2022206499A1
WO2022206499A1 PCT/CN2022/082420 CN2022082420W WO2022206499A1 WO 2022206499 A1 WO2022206499 A1 WO 2022206499A1 CN 2022082420 W CN2022082420 W CN 2022082420W WO 2022206499 A1 WO2022206499 A1 WO 2022206499A1
Authority
WO
WIPO (PCT)
Prior art keywords
input
camera
shutter
image capturing
motion trajectory
Prior art date
Application number
PCT/CN2022/082420
Other languages
French (fr)
Chinese (zh)
Inventor
彭桂林
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022206499A1 publication Critical patent/WO2022206499A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time

Definitions

  • the present application relates to the field of photographing technologies, and in particular, to an image photographing method, apparatus, electronic device and readable storage medium.
  • Embodiments of the present application provide an image capturing method, apparatus, electronic device, and readable storage medium, which can solve the technical problem in the related art that photos with synthetic motion effects are relatively slow to produce pictures.
  • an embodiment of the present application provides an image capturing method, the method includes: receiving a first input; in response to the first input, acquiring a target motion trajectory pattern indicated by the first input; receiving a second input; Input, open the shutter of the camera, after the shutter is opened, control the gimbal equipped with the camera to move according to the target movement trajectory pattern, and close the shutter after the movement to get the photo taken by the camera.
  • an embodiment of the present application provides an image capturing device, the device includes: a first receiving unit, configured to receive a first input; a first determination unit, configured to respond to the first input and obtain a first input indication The second receiving unit is used to receive the second input; the first execution unit is used to open the shutter of the camera in response to the second input, and after the shutter is opened, control the camera-mounted pan/tilt to move according to the target Track style movement, and close the shutter after the movement to get the picture taken by the camera.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the image capturing method according to the first aspect when executed.
  • an embodiment of the present application provides an electronic device, where the electronic device is configured to implement the steps of the image capturing method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the image capturing method according to the first aspect is implemented A step of.
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the first aspect The described image capturing method.
  • the camera-equipped pan/tilt can be controlled to move according to the target motion after the shutter is opened during the shooting.
  • Track-style movement, and close the shutter after the movement you can drive the movement of the camera through the gimbal to achieve the effect of the object moving in the imaging, after shooting, you can get a photo with the effect of object movement without waiting for software synthesis processing,
  • the invention can solve the technical problem of slow rendering of photos of synthetic object motion effects in the related art, can improve the rendering speed of photos, and can save computing power.
  • FIG. 1 is a schematic flowchart of an image capturing method provided by an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of an application scenario of an image capturing method provided by an embodiment of the present application
  • FIG. 3 is an interactive schematic diagram of an image capturing method provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an image capturing device provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the image capturing methods provided in the embodiments of the present application can be applied to electronic devices such as mobile phones, tablet computers, and notebook computers, which are equipped with cameras and a camera-equipped pan/tilt.
  • the electronic devices have computing capabilities and can control the camera and the pan/tilt.
  • FIG. 1 it is a flowchart of an example of an image capturing method provided by an embodiment of the present application.
  • the method includes the following steps 101-104:
  • Step 101 receiving a first input.
  • the electronic device that executes the image capturing method provided by the embodiments of the present application may be configured with a device that detects an input operation.
  • input may be received through input devices such as a keyboard, mouse, touch screen, and the like.
  • the first input may be an input operation or a combination of more than one input operation received by the input device.
  • the input operation may be tapping a keyboard button, clicking a mouse button, moving the mouse, clicking on the touch screen, double-clicking the touch screen, or sliding the touch screen. and many more.
  • Each input action may trigger a corresponding display. For example, after the user clicks the first icon control displayed on the touch screen, the second icon control is displayed, and the user clicks the second icon control, thereby realizing the first input. That is, the user can realize the first input through interaction with the electronic device.
  • Step 102 in response to the first input, obtain the target motion trajectory pattern indicated by the first input.
  • the first input is used to indicate the target motion trajectory pattern.
  • the target motion trajectory style may be the trajectory style of the motion effect of the object in the photo, or may refer to the motion trajectory of the camera.
  • the first input After receiving the first input, acquire the target motion trajectory pattern indicated by the first input.
  • the first input may be to draw a motion trajectory.
  • the user draws a motion trajectory by sliding on the touch screen, so as to obtain the target trajectory style.
  • the drawn motion trajectory is then smoothed to generate the target motion trajectory style.
  • Step 103 receiving a second input.
  • the second input may be an input operation or a combination of more than one input operation received by the input device.
  • the input operation may be pressing a keyboard button, clicking a mouse button, moving the mouse, clicking the touch screen, double-clicking the touch screen, sliding the touch screen, and the like.
  • the user implements the second input after clicking the icon of the camera button displayed on the touch screen. Similar to the first input, each input operation may trigger a corresponding display.
  • another implementation of the input operation is to determine whether a preset condition is met through parameters detected by a sensor configured in the electronic device, and if the preset condition is met, it is determined that the second input is received. For example, when a user takes a picture with a mobile phone, when the user says "take a picture", the sound sensor detects the sound, and the processor of the mobile phone determines that a photographing instruction has been received after voice recognition, thereby realizing receiving the second input.
  • Step 104 in response to the second input, open the shutter of the camera, after the shutter is opened, control the pan/tilt equipped with the camera to move according to the target motion trajectory pattern, and close the shutter after the movement to obtain a photo taken by the camera.
  • the process of taking a photo may include the following sub-steps: first, open the shutter of the camera, and this sub-step can be realized by controlling the shutter through an electronic device; secondly, after the shutter is opened, control the pan-tilt carrying the camera to move, and the trajectory of the movement is It is determined according to the pattern of the target motion trajectory; then, the shutter is closed after the movement; finally, after the shutter is closed, the electrical signal generated by the image sensor sensing light during the shutter opening to closing period can be obtained.
  • ISP Image Signal Processing, image Signal processing is mainly used to process the output signal of the front-end image sensor to match the image sensors of different manufacturers) to obtain the final photo after processing.
  • the movement of the gimbal can include rotation and translation.
  • the gimbal can rotate and translate at the same time, or rotate and translate separately.
  • An example implementation of a PTZ is shown in FIG. 2 .
  • Figure 2 shows the back of a mobile phone (electronic device), the camera 201 of the mobile phone is mounted on the PTZ 203, and the PTZ 203 can control the camera 201 to rotate, or to move up and down or left and right.
  • the pan/tilt head 203 can also be controlled to move the camera 201 to the initial position 204.
  • the camera 201 in the dotted line in FIG. 2 is before the initial position 204.
  • the PTZ 203 can control the camera 201 to move clockwise and then to the right, so as to move to the initial position 204 .
  • the initial position 204 may be the reset position, or may be the initial position set by the preset PTZ track.
  • the pan/tilt By moving the pan/tilt while the shutter is open, the effect of object motion can be simulated, and the pan/tilt can be moved according to a preset trajectory, so that the object in the imaging presents a motion effect according to the preset trajectory.
  • the imaging position of the object can vary greatly, which can be suitable for shooting star trails. and other application scenarios, reduce the time for waiting for the object to move, and prevent the camera from being affected by vibration, water mist, etc. during the waiting period, resulting in blurred photos.
  • the gimbal equipped with the camera may be controlled to move according to the pattern of the target motion trajectory after the shutter is opened, and the shutter may be closed after the motion is completed.
  • the movement of the camera is driven by the gimbal to achieve the effect of the object moving in the imaging. After shooting, you can get a photo with the object motion effect without waiting for the software to synthesize it. Slow technical problems can improve the speed of photographing and save computing power.
  • the method may further include the following steps:
  • Step 11 Obtain the jitter parameters of the gimbal detected by the motion sensor.
  • the mounting environment of the gimbal may be an electronic device that executes the image capturing method provided by the embodiments of the present application.
  • a motion sensor may be mounted in the electronic device to detect motion parameters of the electronic device, thereby obtaining the jitter parameters of the gimbal.
  • the motion sensor may be a gyroscope sensor, etc.
  • the jitter parameter may be the rotation angle of the gyroscope.
  • Step 12 in the case that the gimbal is determined to be in a stable state according to the jitter parameter, open the shutter of the camera.
  • the rotation angle of the gyroscope is less than the preset angle threshold, it is determined that the gimbal is in a stable state, and it is considered that the environment of the gimbal is relatively stable at this time, and the shooting can be started and the shutter of the camera can be opened.
  • the shooting process is a long exposure, if the environment mounted on the gimbal moves greatly during the shooting process, after superimposing with the movement of the gimbal, the camera cannot move according to the target movement trajectory. Therefore, through steps 11 and 12, it is possible to detect whether the mounting environment of the gimbal is stable based on the jitter parameters of the gimbal, so as to prevent shooting under the condition that the electronic device is unstable, resulting in that the long-exposure photos cannot follow the preset trajectory pattern. Displays the case of object motion effects.
  • step 104 the implementation of controlling the camera-equipped pan/tilt to move according to the target motion trajectory pattern may include the following steps:
  • Step 21 Search for a preset PTZ trajectory corresponding to the target motion trajectory pattern.
  • Step 22 control the gimbal to move along the preset track of the gimbal.
  • the target motion trajectory pattern can be pre-configured with a corresponding PTZ trajectory, so that the corresponding preset PTZ trajectory can be found according to the target motion trajectory pattern set by the user, thereby controlling the PTZ to move along the preset PTZ trajectory, It saves the computing power and time for calculating the PTZ trajectory according to the target motion trajectory pattern.
  • the method may further include the following steps:
  • Step 31 searching for preset shooting parameters corresponding to the target motion trajectory pattern.
  • Step 32 set the shooting parameters of the camera according to the preset shooting parameters.
  • the target motion trajectory pattern may be pre-configured with corresponding shooting parameters, and the shooting parameters may include the camera's photosensitive parameters, exposure time, white balance, color temperature, focusing method, and the like. In this way, the corresponding preset configuration parameters can be found according to the target motion trajectory pattern set by the user.
  • step 101 receiving the first input may include the following steps:
  • Step 41 displaying multiple candidate motion track patterns.
  • Step 42 Receive an input for selecting a target motion trajectory pattern from among the multiple candidate motion trajectory patterns.
  • the display screen of the mobile phone can display a plurality of schematic icons of candidate star trail styles (candidate motion trail styles), including no effect, meteor shower, crossing the sky, etc. etc., if the user clicks the icon of the meteor shower (receives the first input), and then clicks the camera button icon 303 (receives the second input), the shooting can be started, and after the shooting is completed, the photos taken by the mobile phone camera can be displayed in the area 301 .
  • users can shoot star trails through their mobile phones.
  • the user can use a tripod to fix the mobile phone in the environment of shooting the starry sky, and then click the icon of the star track as shown in Figure 3, and select one of the preset star track styles among the multiple candidate star track style icons displayed.
  • the camera button 303 the camera of the mobile phone takes a long-time exposure photo, and during the shutter opening of the mobile phone, the micro-cloud platform 203 of the mobile phone as shown in FIG. 2 will move according to the selected star trail pattern, simulating the earth's The rotation movement finally makes the photographed starry sky get the preset star trail effect.
  • the method implementation process in this application scenario may include the following steps:
  • Step 601 The user turns on the camera of the mobile phone, clicks the icon of the starry sky effect, and enters the starry sky mode.
  • Step 602 The user fixes the mobile phone with a tripod.
  • the user can use a tripod to prevent the camera shake from affecting the motion effect of the gimbal
  • Step 603 The mobile phone acquires the gyroscope information to perform tripod mode (stable state) detection. If the tripod mode is entered, the corresponding words can be displayed in the area 301 as shown in FIG. 3 .
  • Step 604 The user selects a preset star trail mode effect style in the interface as shown in FIG. 2 .
  • different gimbal motion trajectories can be preset inside the camera, which correspond to different star trail effects one by one, and the user can select the star trail effect they want on the camera interface.
  • Step 605 The user clicks the photo button 303.
  • Step 606 Control the micro-cloud platform 203 as shown in FIG. 2 to move to the starting position 204 of the track.
  • Step 607 the camera shutter is opened, the shooting process is started, and according to the different trajectory patterns selected by the user, the corresponding exposure parameters are issued to the camera for corresponding exposure, and the micro-cloud platform 203 is controlled to move based on the trajectory patterns selected by the user.
  • the movement time of the gimbal may also be different, so different star trail effects can correspond to different exposure times.
  • This step is the key step of the invention.
  • the movement of the gimbal replaces the traditional rotation of the earth, and at the same time rotates according to the preset effect, which increases the diversity of star orbits.
  • Step 608 the motion of the gimbal ends, and the shutter is closed.
  • Step 609 the camera performs ISP processing on the photosensitive signal during the opening of the shutter to obtain and output the photographed photo.
  • the camera-based micro-head function allows the micro-head movement to replace the rotation of the earth.
  • the micro-head rotates faster, which greatly shortens the time for shooting star tracks.
  • the exposure that needs to be shot is greatly reduced, thereby improving the problem of many dead pixels caused by the unstable exposure signal of the camera for a long time.
  • Software processing can get a relatively pure star trail photo.
  • the star trail effect can be preset, and the effect of shooting star trail can be finally achieved by controlling the gimbal to move according to the preset effect.
  • the variety of star trails is increased, allowing users to take different star trail photos, which greatly improves the user experience.
  • the embodiment of the present application also provides an image capturing apparatus.
  • the execution subject may be an image capturing device, or a control module in the image capturing device for executing the loading image capturing method.
  • the image capturing method provided by the embodiment of the present application is described by taking the image capturing apparatus executing the loaded image capturing method as an example.
  • the image capturing apparatus 500 may include a first receiving unit 501 , a first determining unit 502 , a second receiving unit 503 , and a first executing unit 504 .
  • the first execution unit 504 is configured to open the shutter of the camera in response to the second input, and after the shutter is opened, control the pan/tilt equipped with the camera to move according to the target movement trajectory pattern, and close the shutter after the movement to obtain a photo captured by the camera.
  • the device may further include: a first acquisition unit, for acquiring the shaking parameters of the pan/tilt head detected by the motion sensor before opening the shutter of the camera; a second execution unit for determining the pan/tilt head according to the shaking parameters. In a steady state, open the camera shutter.
  • the first execution unit may include: a first search unit for searching a preset pan-tilt trajectory corresponding to the target motion trajectory pattern; a control unit for controlling the pan-tilt to move along the preset pan-tilt trajectory.
  • the device may further include: a second search unit, configured to search for preset shooting parameters corresponding to the target motion trajectory pattern before opening the shutter of the camera after acquiring the target motion trajectory pattern indicated by the first input; setting The unit is used to set the shooting parameters of the camera according to the preset shooting parameters.
  • a second search unit configured to search for preset shooting parameters corresponding to the target motion trajectory pattern before opening the shutter of the camera after acquiring the target motion trajectory pattern indicated by the first input
  • setting The unit is used to set the shooting parameters of the camera according to the preset shooting parameters.
  • the apparatus may further include: a display unit for displaying multiple candidate motion trajectory patterns; correspondingly, the first receiving unit may include: a third receiving unit for receiving a selection from the multiple candidate motion trajectory patterns Input for the target motion trajectory style.
  • the camera-mounted pan/tilt can be controlled to move according to the target motion trajectory pattern after the shutter is opened, and the shutter can be closed after the motion ends.
  • the movement of the camera is driven by the gimbal to achieve the effect of the object moving in the imaging. After shooting, you can get a photo with the object motion effect without waiting for the software to synthesize it. Slow technical problems can improve the speed of photographing and save computing power.
  • the image capturing apparatus in this embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the image capturing apparatus in this embodiment of the present application may be an apparatus having an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the image capturing apparatus provided in the embodiments of the present application can implement each process implemented by the image capturing apparatus in the method embodiments of FIG. 1 to FIG. 3 . To avoid repetition, details are not described here.
  • An embodiment of the present application further provides an electronic device, including a processor, a memory, a program or an instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, the above-mentioned image capturing method can be implemented. In order to avoid repetition, the details are not repeated here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, and a processor 410, etc. part.
  • the electronic device 400 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • the input unit 404 may include a graphics processor, a microphone, and the like.
  • Display assembly 406 may include a display panel.
  • the user input unit 407 may include a touch panel, other input devices, and the like.
  • the memory 409 may store application programs, an operating system, and the like.
  • the structure of the electronic device shown in FIG. 5 does not constitute a limitation to the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the user input unit 407 is used for receiving the first input
  • the processor 410 is configured to, in response to the first input, obtain the target motion trajectory pattern indicated by the first input;
  • the user input unit 407 is used for receiving the second input
  • the processor 410 is configured to open the shutter of the camera in response to the second input, and after the shutter is opened, control the gimbal equipped with the camera to move according to the target movement trajectory pattern, and close the shutter after the movement to obtain a photo captured by the camera.
  • the processor 410 may also acquire the shaking parameter of the gimbal detected by the motion sensor before opening the shutter of the camera; and open the shutter of the camera when it is determined according to the shaking parameter that the gimbal is in a stable state.
  • the processor 410 may perform: searching for a preset pan/tilt trajectory corresponding to the target motion profile pattern; and controlling the pan/tilt to move along the preset pan/tilt trajectory.
  • the processor 410 may also search for preset shooting parameters corresponding to the target motion trajectory pattern; the camera is photographed according to the preset shooting parameters. parameter settings.
  • the display unit 406 may be configured to display multiple candidate motion trajectory patterns; when receiving the first input, the user input unit 407 receives an input of selecting a target motion trajectory pattern among the multiple candidate motion trajectory patterns.
  • the electronic device after determining the target motion trajectory pattern, can control the camera-mounted pan/tilt to move according to the target motion trajectory pattern after the shutter is opened during shooting, and close the shutter after the motion is completed.
  • the gimbal drives the movement of the camera to achieve the effect of the object moving in the imaging. After shooting, you can get a photo with the object motion effect without waiting for software synthesis processing, which can solve the problem that the composite object motion effect in the related art is relatively slow. It can improve the speed of taking pictures and save computing power.
  • the embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium.
  • a program or an instruction is stored on the readable storage medium.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, and examples of the computer-readable storage medium may include non-volatile memory, such as computer read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory) Memory, referred to as RAM), magnetic disk or optical disk, etc.
  • non-volatile memory such as computer read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory) Memory, referred to as RAM), magnetic disk or optical disk, etc.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the above image capturing method embodiments.
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is configured to run a program or an instruction to implement the above image capturing method embodiments.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • processors may be, but are not limited to, general purpose processors, special purpose processors, application specific processors, or field programmable logic circuits. It will also be understood that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can also be implemented by special purpose hardware for performing the specified functions or actions, or by special purpose hardware and/or A combination of computer instructions is implemented.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

Abstract

The present application belongs to the technical field of photography, and provides an image capture method and apparatus, an electronic device and a readable storage medium. The image capture method comprises: receiving a first input; in response to the first input, acquiring a target motion trajectory pattern indicated by the first input; receiving a second input; and in response to the second input, opening the shutter of a camera, once the shutter is opened, controlling a cradle head equipped with the camera to move according to the target motion trajectory pattern, and closing the shutter once the movement ends to obtain a photo captured by the camera.

Description

图像拍摄方法、装置、电子设备和可读存储介质Image capturing method, apparatus, electronic device and readable storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求享有于2021年03月30日提交的中国专利申请202110342259.4的优先权,该申请的全部内容通过引用并入本文中。This application claims priority to Chinese Patent Application No. 202110342259.4 filed on March 30, 2021, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请涉及拍摄技术领域,特别是涉及一种图像拍摄方法、装置、电子设备和可读存储介质。The present application relates to the field of photographing technologies, and in particular, to an image photographing method, apparatus, electronic device and readable storage medium.
背景技术Background technique
相关技术中在拍摄物体移动轨迹时,通常是拍摄物体移动的多张照片,然后通过图像处理方式,利用软件处理的手段将物体移动的多张照片合成为一张照片,得到一张能够显示出物体运动效果的照片。但是,这种方式需要软件处理,出图较慢。In the related art, when shooting the moving trajectory of an object, it is usually to take multiple photos of the moving object, and then through the image processing method, the multiple photos of the moving object are synthesized into one photo by means of software processing, and a photo that can display the moving object is obtained. Photos of objects in motion. However, this method requires software processing, and the drawing is slower.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种图像拍摄方法、装置、电子设备和可读存储介质,能够解决相关技术中合成运动效果照片出图较慢的技术问题。Embodiments of the present application provide an image capturing method, apparatus, electronic device, and readable storage medium, which can solve the technical problem in the related art that photos with synthetic motion effects are relatively slow to produce pictures.
第一方面,本申请实施例提供一种图像拍摄方法,该方法包括:接收第一输入;响应于第一输入,获取第一输入指示的目标运动轨迹样式;接收第二输入;响应于第二输入,打开摄像头的快门,在快门打开之后,控制搭载摄像头的云台根据目标运动轨迹样式运动,并在运动结束后关闭快门,得到摄像头拍摄的照片。In a first aspect, an embodiment of the present application provides an image capturing method, the method includes: receiving a first input; in response to the first input, acquiring a target motion trajectory pattern indicated by the first input; receiving a second input; Input, open the shutter of the camera, after the shutter is opened, control the gimbal equipped with the camera to move according to the target movement trajectory pattern, and close the shutter after the movement to get the photo taken by the camera.
第二方面,本申请实施例提供了一种图像拍摄装置,该装置包括:第一接收单元,用于接收第一输入;第一确定单元,用于响应于第一输入,获取第一输入指示的目标运动轨迹样式;第二接收单元,用于接收第二输入;第一执行单元,用于响应于第二输入,打开摄像头的快门,在快门打开之后,控制搭载摄像头的云台根据目标运动轨迹样式运动,并在运动结束后关闭快门,得到摄像头拍摄的照片。In a second aspect, an embodiment of the present application provides an image capturing device, the device includes: a first receiving unit, configured to receive a first input; a first determination unit, configured to respond to the first input and obtain a first input indication The second receiving unit is used to receive the second input; the first execution unit is used to open the shutter of the camera in response to the second input, and after the shutter is opened, control the camera-mounted pan/tilt to move according to the target Track style movement, and close the shutter after the movement to get the picture taken by the camera.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的图像拍摄方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the image capturing method according to the first aspect when executed.
第四方面,本申请实施例提供了一种电子设备,该电子设备被配置用于执行时实现如第一方面所述的图像拍摄方法的步骤。In a fourth aspect, an embodiment of the present application provides an electronic device, where the electronic device is configured to implement the steps of the image capturing method according to the first aspect when executed.
第五方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程 序或指令,所述程序或指令被处理器执行时实现如第一方面所述的图像拍摄方法的步骤。In a fifth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the image capturing method according to the first aspect is implemented A step of.
第六方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的图像拍摄方法。In a sixth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the first aspect The described image capturing method.
在本申请实施例的图像拍摄方法、装置、电子设备、可读存储介质和芯片中,在确定目标运动轨迹样式之后,可以在拍摄时,控制搭载摄像头的云台在快门打开之后,根据目标运动轨迹样式运动,并在运动结束后关闭快门,可以通过云台带动摄像头的移动,实现物体在成像中运动的效果,在拍摄之后不需要等待软件合成处理,就可以得到具有物体运动效果的照片,能够解决相关技术中合成物体运动效果照片出图较慢的技术问题,可以提高照相的出图速度,并且可以节约算力。In the image capturing method, device, electronic device, readable storage medium, and chip of the embodiments of the present application, after determining the target motion trajectory pattern, the camera-equipped pan/tilt can be controlled to move according to the target motion after the shutter is opened during the shooting. Track-style movement, and close the shutter after the movement, you can drive the movement of the camera through the gimbal to achieve the effect of the object moving in the imaging, after shooting, you can get a photo with the effect of object movement without waiting for software synthesis processing, The invention can solve the technical problem of slow rendering of photos of synthetic object motion effects in the related art, can improve the rendering speed of photos, and can save computing power.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图作简单的介绍,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the embodiments of the present application. For those of ordinary skill in the art, without creative work, the Additional drawings can be obtained from these drawings.
图1是本申请一个实施例提供的图像拍摄方法的流程示意图;1 is a schematic flowchart of an image capturing method provided by an embodiment of the present application;
图2是本申请一个实施例提供的图像拍摄方法的应用场景的结构示意图;2 is a schematic structural diagram of an application scenario of an image capturing method provided by an embodiment of the present application;
图3是本申请一个实施例提供的图像拍摄方法的交互示意图;3 is an interactive schematic diagram of an image capturing method provided by an embodiment of the present application;
图4是本申请一个实施例提供的图像拍摄装置的结构示意图;4 is a schematic structural diagram of an image capturing device provided by an embodiment of the present application;
图5是本申请一个实施例提供的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that embodiments of the application can be practiced in sequences other than those illustrated or described herein. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
本申请实施例提供的图像拍摄方法可以应用于手机、平板电脑、笔记本电脑等配置有摄像头和搭载摄像头的云台的电子设备,电子设备具有运算能力,并可以控制摄像头和云台。The image capturing methods provided in the embodiments of the present application can be applied to electronic devices such as mobile phones, tablet computers, and notebook computers, which are equipped with cameras and a camera-equipped pan/tilt. The electronic devices have computing capabilities and can control the camera and the pan/tilt.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的图像拍摄方法进行详细地说明。The image capturing method provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
如图1所示,为本申请实施例提供的图像拍摄方法的一种示例的流程图。该方法包括如下步骤101-步骤104:As shown in FIG. 1 , it is a flowchart of an example of an image capturing method provided by an embodiment of the present application. The method includes the following steps 101-104:
步骤101,接收第一输入。 Step 101, receiving a first input.
执行本申请实施例提供的图像拍摄方法的电子设备可以配置有检测输入操作的设备。例如,可以通过键盘、鼠标、触摸屏等输入设备接收输入。The electronic device that executes the image capturing method provided by the embodiments of the present application may be configured with a device that detects an input operation. For example, input may be received through input devices such as a keyboard, mouse, touch screen, and the like.
第一输入可以是输入设备接收到的一个输入操作或一个以上的输入操作的组合,示例性的,输入操作可以是敲击键盘按钮、点击鼠标按键、移动鼠标、点击触摸屏、双击触摸屏、滑动触摸屏等等。每个输入操作可能会触发对应的显示。例如,用户在点击触摸屏显示的第一图标控件之后显示第二图标控件,用户点击第二图标控件,从而实现第一输入。也即,用户可以通过与电子设备的交互来实现第一输入。The first input may be an input operation or a combination of more than one input operation received by the input device. Exemplarily, the input operation may be tapping a keyboard button, clicking a mouse button, moving the mouse, clicking on the touch screen, double-clicking the touch screen, or sliding the touch screen. and many more. Each input action may trigger a corresponding display. For example, after the user clicks the first icon control displayed on the touch screen, the second icon control is displayed, and the user clicks the second icon control, thereby realizing the first input. That is, the user can realize the first input through interaction with the electronic device.
步骤102,响应于第一输入,获取第一输入指示的目标运动轨迹样式。 Step 102, in response to the first input, obtain the target motion trajectory pattern indicated by the first input.
第一输入用于指示目标运动轨迹样式。目标运动轨迹样式可以是照片中物体的运动效果的轨迹样式,也可以是指摄像头的运动轨迹。The first input is used to indicate the target motion trajectory pattern. The target motion trajectory style may be the trajectory style of the motion effect of the object in the photo, or may refer to the motion trajectory of the camera.
在接收到第一输入之后,获取第一输入指示的目标运动轨迹样式。示例性的,第一输入可以是绘制运动轨迹,例如,用户在触摸屏上通过滑动来绘制运动轨迹,从而得到目标轨迹样式,可选的,为了防止人手绘制的线不平滑,可以在获取到用户绘制的运动轨迹之后进行平滑,生成目标运动轨迹样式。After receiving the first input, acquire the target motion trajectory pattern indicated by the first input. Exemplarily, the first input may be to draw a motion trajectory. For example, the user draws a motion trajectory by sliding on the touch screen, so as to obtain the target trajectory style. The drawn motion trajectory is then smoothed to generate the target motion trajectory style.
步骤103,接收第二输入。 Step 103, receiving a second input.
第二输入可以是输入设备接收到的一个输入操作或一个以上的输入操作的组合。The second input may be an input operation or a combination of more than one input operation received by the input device.
示例性的,输入操作可以是敲击键盘按钮、点击鼠标按键、移动鼠标、点击触摸屏、双击触摸屏、滑动触摸屏等等。例如,用户在点击触摸屏显示的照相按钮的图标之后,实现第二输入。与第一输入相似的,每个输入操作可能会触发对应的显示。Exemplarily, the input operation may be pressing a keyboard button, clicking a mouse button, moving the mouse, clicking the touch screen, double-clicking the touch screen, sliding the touch screen, and the like. For example, the user implements the second input after clicking the icon of the camera button displayed on the touch screen. Similar to the first input, each input operation may trigger a corresponding display.
或者,输入操作的另一种实施方式为,通过电子设备配置的传感器检测的参数,判断是否达到预设条件,如果达到预设条件则确定接收到第二输入。例如,用户通过手机拍照,在用户说“拍照”时,声音传感器检测到声音,手机的处理器在经过语音识别之后确定接收到拍照指令,从而实现接收第二输入。Or, another implementation of the input operation is to determine whether a preset condition is met through parameters detected by a sensor configured in the electronic device, and if the preset condition is met, it is determined that the second input is received. For example, when a user takes a picture with a mobile phone, when the user says "take a picture", the sound sensor detects the sound, and the processor of the mobile phone determines that a photographing instruction has been received after voice recognition, thereby realizing receiving the second input.
步骤104,响应于第二输入,打开摄像头的快门,在快门打开之后,控制搭载摄像头的云台根据目标运动轨迹样式运动,并在运动结束后关闭快门,得到摄像头拍摄的照片。 Step 104, in response to the second input, open the shutter of the camera, after the shutter is opened, control the pan/tilt equipped with the camera to move according to the target motion trajectory pattern, and close the shutter after the movement to obtain a photo taken by the camera.
在接收到第二输入之后,响应于第二输入,拍摄一张照片。具体而言,拍摄照片的过程可以包括以下子步骤:首先,打开摄像头的快门,该子步骤可以通过电子设备控制快门实现;其次,在快门打开之后,控制搭载摄像头的云台移动,移动的轨迹是根据目标运动轨迹样式确定的;接着,在运动结束后关闭快门;最后,在关闭快门之后,可以得到快门打开到关闭期间图像传感器感应光生成的电信号,在经过ISP(Image Signal Processing,图像信号处理,主要用来对前端的图像传感器输出信号进行处理的单元,以匹配不同厂商的图像传感器)处理之后得到最终的照片。After receiving the second input, a photograph is taken in response to the second input. Specifically, the process of taking a photo may include the following sub-steps: first, open the shutter of the camera, and this sub-step can be realized by controlling the shutter through an electronic device; secondly, after the shutter is opened, control the pan-tilt carrying the camera to move, and the trajectory of the movement is It is determined according to the pattern of the target motion trajectory; then, the shutter is closed after the movement; finally, after the shutter is closed, the electrical signal generated by the image sensor sensing light during the shutter opening to closing period can be obtained. After the ISP (Image Signal Processing, image Signal processing is mainly used to process the output signal of the front-end image sensor to match the image sensors of different manufacturers) to obtain the final photo after processing.
云台的移动方式可以包括旋转和平移。云台可以同时旋转和平移,或者分别进行旋转和平移。云台的一种示例实施方式如图2所示。图2示出了一个手机(电子设 备)的背面,手机的摄像头201搭载在云台203之上,云台203可以控制摄像头201进行旋转,或者进行上下或左右方向的移动。The movement of the gimbal can include rotation and translation. The gimbal can rotate and translate at the same time, or rotate and translate separately. An example implementation of a PTZ is shown in FIG. 2 . Figure 2 shows the back of a mobile phone (electronic device), the camera 201 of the mobile phone is mounted on the PTZ 203, and the PTZ 203 can control the camera 201 to rotate, or to move up and down or left and right.
示例性的,在接收到第一输入之后,在打开摄像头201的快门202之前,还可以控制云台203使得摄像头201移动至初始位置204,图2中的虚线的摄像头201为在初始位置204之前所处的位置,云台203可以控制摄像头201沿顺时针方向移动,然后向右移动,从而移动到初始位置204。可选的,这个初始位置204可以是复位位置,也可以是预设云台轨迹所设置的初始位置。Exemplarily, after receiving the first input, before opening the shutter 202 of the camera 201, the pan/tilt head 203 can also be controlled to move the camera 201 to the initial position 204. The camera 201 in the dotted line in FIG. 2 is before the initial position 204. At the position, the PTZ 203 can control the camera 201 to move clockwise and then to the right, so as to move to the initial position 204 . Optionally, the initial position 204 may be the reset position, or may be the initial position set by the preset PTZ track.
这样,通过在快门开启的期间移动云台,可以模拟出物体运动的效果,并且可以按照预设的轨迹来移动云台,使得成像中的物体按照预设轨迹的样式呈现运动效果。此外,由于云台的移动相对于拍摄物体的移动速度是比较快的,对于静态或移动速度较慢的物体,在照片中,物体成像的位置可以是变化较大的,可以适用于拍摄星轨等应用场景,减少等待物体运动的时间,防止等待期间摄像头受到振动、水雾等影响导致拍摄照片模糊的情况。In this way, by moving the pan/tilt while the shutter is open, the effect of object motion can be simulated, and the pan/tilt can be moved according to a preset trajectory, so that the object in the imaging presents a motion effect according to the preset trajectory. In addition, since the movement of the gimbal is relatively fast relative to the moving speed of the photographed object, for static or slow moving objects, in the photo, the imaging position of the object can vary greatly, which can be suitable for shooting star trails. and other application scenarios, reduce the time for waiting for the object to move, and prevent the camera from being affected by vibration, water mist, etc. during the waiting period, resulting in blurred photos.
本申请实施例提供的图像拍摄方法,在确定目标运动轨迹样式之后,可以在拍摄时,控制搭载摄像头的云台在快门打开之后,根据目标运动轨迹样式运动,并在运动结束后关闭快门,可以通过云台带动摄像头的移动,实现物体在成像中运动的效果,在拍摄之后不需要等待软件合成处理,就可以得到具有物体运动效果的照片,能够解决相关技术中合成物体运动效果照片出图较慢的技术问题,可以提高照相的出图速度,并且可以节约算力。In the image capturing method provided by the embodiment of the present application, after determining the pattern of the target motion trajectory, during shooting, the gimbal equipped with the camera may be controlled to move according to the pattern of the target motion trajectory after the shutter is opened, and the shutter may be closed after the motion is completed. The movement of the camera is driven by the gimbal to achieve the effect of the object moving in the imaging. After shooting, you can get a photo with the object motion effect without waiting for the software to synthesize it. Slow technical problems can improve the speed of photographing and save computing power.
在一个示例的实施方式中,在执行步骤104中打开摄像头的快门之前,该方法还可以包括如下步骤:In an exemplary implementation, before performing the opening of the shutter of the camera in step 104, the method may further include the following steps:
步骤11,获取运动传感器检测到的云台的抖动参数。Step 11: Obtain the jitter parameters of the gimbal detected by the motion sensor.
云台的搭载环境可以是执行本申请实施例提供的图像拍摄方法的电子设备,相应的,运动传感器可以搭载于电子设备中,用于检测电子设备的运动参数,从而得到云台的抖动参数。例如,运动传感器可以是陀螺仪传感器等,抖动参数可以是陀螺仪的旋转角度。The mounting environment of the gimbal may be an electronic device that executes the image capturing method provided by the embodiments of the present application. Correspondingly, a motion sensor may be mounted in the electronic device to detect motion parameters of the electronic device, thereby obtaining the jitter parameters of the gimbal. For example, the motion sensor may be a gyroscope sensor, etc., and the jitter parameter may be the rotation angle of the gyroscope.
步骤12,在根据抖动参数确定云台处于稳定状态的情况下,打开摄像头的快门。Step 12, in the case that the gimbal is determined to be in a stable state according to the jitter parameter, open the shutter of the camera.
如果根据抖动参数,确定符合预设条件,例如陀螺仪的旋转角度小于预设角度阈值,则确定云台处于稳定状态,认为此时云台搭载环境比较稳定,可以开始拍摄,打开摄像头的快门。If it is determined that the preset conditions are met according to the jitter parameters, for example, the rotation angle of the gyroscope is less than the preset angle threshold, it is determined that the gimbal is in a stable state, and it is considered that the environment of the gimbal is relatively stable at this time, and the shooting can be started and the shutter of the camera can be opened.
由于拍摄过程是长曝光的,如果在拍摄过程中云台搭载的环境大幅度移动,在与云台的运动叠加之后,摄像头就无法按照目标运动轨迹样式运动了。因此,通过步骤11和12,可以基于云台的抖动参数对云台的搭载环境是否稳定进行检测,防止在电子设备不稳定的情况下进行拍摄,导致长曝光的照片中无法按照预设轨迹样式显示物体运动效果的情况。Since the shooting process is a long exposure, if the environment mounted on the gimbal moves greatly during the shooting process, after superimposing with the movement of the gimbal, the camera cannot move according to the target movement trajectory. Therefore, through steps 11 and 12, it is possible to detect whether the mounting environment of the gimbal is stable based on the jitter parameters of the gimbal, so as to prevent shooting under the condition that the electronic device is unstable, resulting in that the long-exposure photos cannot follow the preset trajectory pattern. Displays the case of object motion effects.
在一个示例的实施方式中,步骤104中控制搭载摄像头的云台根据目标运动轨迹样式运动的实施方式,可以包括如下步骤:In an exemplary implementation, in step 104, the implementation of controlling the camera-equipped pan/tilt to move according to the target motion trajectory pattern may include the following steps:
步骤21,查找目标运动轨迹样式对应的预设云台轨迹。Step 21: Search for a preset PTZ trajectory corresponding to the target motion trajectory pattern.
步骤22,控制云台沿预设云台轨迹运动。Step 22, control the gimbal to move along the preset track of the gimbal.
也即,目标运动轨迹样式可以预先配置有对应的云台轨迹,这样,可以根据用户设置的目标运动轨迹样式查找到对应的预设云台轨迹,从而控制云台沿预设云台轨迹运动,节约了根据目标运动轨迹样式计算云台轨迹的算力和时间。That is, the target motion trajectory pattern can be pre-configured with a corresponding PTZ trajectory, so that the corresponding preset PTZ trajectory can be found according to the target motion trajectory pattern set by the user, thereby controlling the PTZ to move along the preset PTZ trajectory, It saves the computing power and time for calculating the PTZ trajectory according to the target motion trajectory pattern.
在一个示例的实施方式中,在步骤102获取第一输入指示的目标运动轨迹样式之后,在执行步骤104中打开摄像头的快门之前,该方法还可以包括如下步骤:In an exemplary implementation, after obtaining the target motion trajectory pattern indicated by the first input in step 102, and before performing the opening of the shutter of the camera in step 104, the method may further include the following steps:
步骤31,查找目标运动轨迹样式对应的预设拍摄参数。Step 31 , searching for preset shooting parameters corresponding to the target motion trajectory pattern.
步骤32,根据预设拍摄参数对摄像头进行拍摄参数设置。Step 32 , set the shooting parameters of the camera according to the preset shooting parameters.
也即,目标运动轨迹样式可以预先配置有对应的拍摄参数,拍摄参数可以包括摄像头的感光参数、曝光时间、白平衡、色温、对焦方式等等。这样,可以根据用户设置的目标运动轨迹样式查找到对应的预设配置参数。That is, the target motion trajectory pattern may be pre-configured with corresponding shooting parameters, and the shooting parameters may include the camera's photosensitive parameters, exposure time, white balance, color temperature, focusing method, and the like. In this way, the corresponding preset configuration parameters can be found according to the target motion trajectory pattern set by the user.
在一个示例的实施方式中,步骤101接收第一输入可以包括如下步骤:In an exemplary implementation, step 101 receiving the first input may include the following steps:
步骤41,显示多个候选运动轨迹样式。Step 41, displaying multiple candidate motion track patterns.
步骤42,接收在多个候选运动轨迹样式中选择目标运动轨迹样式的输入。Step 42: Receive an input for selecting a target motion trajectory pattern from among the multiple candidate motion trajectory patterns.
如图3所示,用户在点击星轨效果的图标302之后,手机的显示屏可以显示出多个候选星轨样式(候选运动轨迹样式)的示意图标,包括无效果、流星雨、划过天际等等,如果用户点击流星雨的图标(接收第一输入),再点击照相按钮图标303(接收第二输入),则可以开始拍摄,在拍摄结束之后,可以在区域301内显示手机摄像头所拍摄的照片。As shown in FIG. 3 , after the user clicks the icon 302 of the star trail effect, the display screen of the mobile phone can display a plurality of schematic icons of candidate star trail styles (candidate motion trail styles), including no effect, meteor shower, crossing the sky, etc. etc., if the user clicks the icon of the meteor shower (receives the first input), and then clicks the camera button icon 303 (receives the second input), the shooting can be started, and after the shooting is completed, the photos taken by the mobile phone camera can be displayed in the area 301 .
下面结合一个具体应用场景对本申请实施例提供的图像拍摄方法进行详细说明。The image capturing method provided by the embodiment of the present application will be described in detail below with reference to a specific application scenario.
在这个应用场景中,用户可以通过手机拍摄星轨。首先,用户可以在拍摄星空的环境中,使用三脚架固定手机,然后点击如图3所示的星轨轨迹的图标,在显示的多个候选星轨样式图标中选择其中一个的预设星轨样式,然后点击拍照按钮303之后,手机的摄像头进行长时间曝光拍照,在手机快门开启的期间,如图2所示的手机的微云台203会根据所选择的星轨样式进行运动,模拟地球的自转运动,最终使得拍摄的星空得到预设的星轨效果。In this application scenario, users can shoot star trails through their mobile phones. First of all, the user can use a tripod to fix the mobile phone in the environment of shooting the starry sky, and then click the icon of the star track as shown in Figure 3, and select one of the preset star track styles among the multiple candidate star track style icons displayed. , and then click the camera button 303, the camera of the mobile phone takes a long-time exposure photo, and during the shutter opening of the mobile phone, the micro-cloud platform 203 of the mobile phone as shown in FIG. 2 will move according to the selected star trail pattern, simulating the earth's The rotation movement finally makes the photographed starry sky get the preset star trail effect.
具体而言,在这个应用场景中的方法实施流程可以包括如下步骤:Specifically, the method implementation process in this application scenario may include the following steps:
步骤601:用户打开手机的相机,点击星空效果的图标,进入星空模式。Step 601: The user turns on the camera of the mobile phone, clicks the icon of the starry sky effect, and enters the starry sky mode.
步骤602:用户用三脚架固定手机。Step 602: The user fixes the mobile phone with a tripod.
该步骤中,用户使用三脚架可以防止拍照手抖动影响云台的运动效果In this step, the user can use a tripod to prevent the camera shake from affecting the motion effect of the gimbal
步骤603:手机获取陀螺仪信息进行脚架模式(稳定状态)检测。如果进入脚架模式,可以在如图3所示的区域301中显示对应的字样。Step 603: The mobile phone acquires the gyroscope information to perform tripod mode (stable state) detection. If the tripod mode is entered, the corresponding words can be displayed in the area 301 as shown in FIG. 3 .
步骤604:用户在如图2所示的界面中选择预设的星轨模式效果样式。Step 604: The user selects a preset star trail mode effect style in the interface as shown in FIG. 2 .
本步骤中相机内部可以预设有不同的云台运动轨迹,一一对应了不同的星轨效果,用户可以在相机界面选择自己想要的星轨效果。In this step, different gimbal motion trajectories can be preset inside the camera, which correspond to different star trail effects one by one, and the user can select the star trail effect they want on the camera interface.
步骤605:用户点击拍照按钮303。Step 605: The user clicks the photo button 303.
步骤606:控制如图2所示的微云台203运动到轨迹的起始位置204。Step 606: Control the micro-cloud platform 203 as shown in FIG. 2 to move to the starting position 204 of the track.
步骤607:相机快门开启,开始拍摄过程,根据用户所选的不同的轨迹样式,向 相机下发对应的曝光参数以进行对应的曝光,并控制微云台203基于用户选择的轨迹样式进行运动。Step 607: the camera shutter is opened, the shooting process is started, and according to the different trajectory patterns selected by the user, the corresponding exposure parameters are issued to the camera for corresponding exposure, and the micro-cloud platform 203 is controlled to move based on the trajectory patterns selected by the user.
由于星轨的样式不同,云台运动时间也可能不同,所以不同的星轨效果可以对应不同的曝光时间。Due to the different styles of star trails, the movement time of the gimbal may also be different, so different star trail effects can correspond to different exposure times.
本步骤为发明的关键步骤,云台的运动取代了传统的地球自转,同时按照预设的效果转动,增加了星轨的多样性。This step is the key step of the invention. The movement of the gimbal replaces the traditional rotation of the earth, and at the same time rotates according to the preset effect, which increases the diversity of star orbits.
步骤608:云台运动结束,快门关闭。Step 608 : the motion of the gimbal ends, and the shutter is closed.
步骤609,相机对于快门开启期间的感光信号进行ISP处理,得到并输出拍摄的照片。Step 609, the camera performs ISP processing on the photosensitive signal during the opening of the shutter to obtain and output the photographed photo.
在该应用场景中,基于相机的微云台功能,让微云台运动取代了地球的自转,对比之前传统的拍摄星轨的方式,微云台转动的时间快,使拍摄星轨的时间大大减少,从原来的几个小时变成了几秒,大大节省了拍摄星轨的时间。In this application scenario, the camera-based micro-head function allows the micro-head movement to replace the rotation of the earth. Compared with the previous traditional way of shooting star trails, the micro-head rotates faster, which greatly shortens the time for shooting star tracks. The reduction, from the original hours to a few seconds, greatly saves the time of shooting star trails.
另一方面也大大减少了所需要拍摄的曝光,从而改善相机由于长时间曝光信号不稳定导致的噪声坏点多的问题,镜头在拍摄过程中起水雾的概率也相对减少,让用户无需后期软件处理就能得到一个相对纯净的星轨照片。On the other hand, the exposure that needs to be shot is greatly reduced, thereby improving the problem of many dead pixels caused by the unstable exposure signal of the camera for a long time. Software processing can get a relatively pure star trail photo.
同时,抛弃了传统方式后期图片合成的方法,对于拍摄星轨的专业性大大降低,让大部分摄影用户都能拍出很美的星轨照片。At the same time, the traditional method of post-image synthesis is abandoned, which greatly reduces the professionalism of shooting star trails, allowing most photography users to take beautiful star trail photos.
此外,可以预设星轨效果,通过控制云台按照预设的效果运动,最终达到拍摄星轨的效果。通过提供多个候选的预设星轨效果,增加了星轨的多样化,让用户拍出不同的星轨照片,大大提升了用户体验。In addition, the star trail effect can be preset, and the effect of shooting star trail can be finally achieved by controlling the gimbal to move according to the preset effect. By providing multiple candidate preset star trail effects, the variety of star trails is increased, allowing users to take different star trail photos, which greatly improves the user experience.
本申请实施例还提供了一种图像拍摄装置。需要说明的是,本申请实施例提供的图像拍摄方法,执行主体可以为图像拍摄装置,或者该图像拍摄装置中的用于执行加载图像拍摄方法的控制模块。本申请实施例中以图像拍摄装置执行加载图像拍摄方法为例,说明本申请实施例提供的图像拍摄方法。The embodiment of the present application also provides an image capturing apparatus. It should be noted that, in the image capturing method provided by the embodiments of the present application, the execution subject may be an image capturing device, or a control module in the image capturing device for executing the loading image capturing method. In the embodiment of the present application, the image capturing method provided by the embodiment of the present application is described by taking the image capturing apparatus executing the loaded image capturing method as an example.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的图像拍摄装置进行详细地说明。在本申请实施例提供的图像拍摄装置中未详述的内容,可以参考本申请实施例提供的图像拍摄方法,在此不再赘述。The image capturing apparatus provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings. For content that is not described in detail in the image capturing apparatus provided in the embodiments of the present application, reference may be made to the image capturing methods provided in the embodiments of the present application, and details are not described herein again.
如图4所示,本申请实施例提供的图像拍摄装置500可以包括第一接收单元501,第一确定单元502,第二接收单元503和第一执行单元504。As shown in FIG. 4 , the image capturing apparatus 500 provided in this embodiment of the present application may include a first receiving unit 501 , a first determining unit 502 , a second receiving unit 503 , and a first executing unit 504 .
其中,第一接收单元501用于接收第一输入;第一确定单元502用于响应于第一输入,获取第一输入指示的目标运动轨迹样式;第二接收单元503用于接收第二输入;第一执行单元504用于响应于第二输入,打开摄像头的快门,在快门打开之后,控制搭载摄像头的云台根据目标运动轨迹样式运动,并在运动结束后关闭快门,得到摄像头拍摄的照片。Wherein, the first receiving unit 501 is used for receiving the first input; the first determining unit 502 is used for obtaining the target motion trajectory pattern indicated by the first input in response to the first input; the second receiving unit 503 is used for receiving the second input; The first execution unit 504 is configured to open the shutter of the camera in response to the second input, and after the shutter is opened, control the pan/tilt equipped with the camera to move according to the target movement trajectory pattern, and close the shutter after the movement to obtain a photo captured by the camera.
可选的,该装置还可以包括:第一获取单元,用于在打开摄像头的快门之前,获取运动传感器检测到的云台的抖动参数;第二执行单元,用于在根据抖动参数确定云台处于稳定状态的情况下,打开摄像头的快门。Optionally, the device may further include: a first acquisition unit, for acquiring the shaking parameters of the pan/tilt head detected by the motion sensor before opening the shutter of the camera; a second execution unit for determining the pan/tilt head according to the shaking parameters. In a steady state, open the camera shutter.
可选的,第一执行单元可以包括:第一查找单元,用于查找目标运动轨迹样式对 应的预设云台轨迹;控制单元,用于控制云台沿预设云台轨迹运动。Optionally, the first execution unit may include: a first search unit for searching a preset pan-tilt trajectory corresponding to the target motion trajectory pattern; a control unit for controlling the pan-tilt to move along the preset pan-tilt trajectory.
可选的,该装置还可以包括:第二查找单元,用于在获取第一输入指示的目标运动轨迹样式之后,在打开摄像头的快门之前,查找目标运动轨迹样式对应的预设拍摄参数;设置单元,用于根据预设拍摄参数对摄像头进行拍摄参数设置。Optionally, the device may further include: a second search unit, configured to search for preset shooting parameters corresponding to the target motion trajectory pattern before opening the shutter of the camera after acquiring the target motion trajectory pattern indicated by the first input; setting The unit is used to set the shooting parameters of the camera according to the preset shooting parameters.
可选的,该装置还可以包括:显示单元,用于显示多个候选运动轨迹样式;相应的,第一接收单元可以包括:第三接收单元,用于接收在多个候选运动轨迹样式中选择目标运动轨迹样式的输入。Optionally, the apparatus may further include: a display unit for displaying multiple candidate motion trajectory patterns; correspondingly, the first receiving unit may include: a third receiving unit for receiving a selection from the multiple candidate motion trajectory patterns Input for the target motion trajectory style.
本申请实施例提供的图像拍摄装置,在确定目标运动轨迹样式之后,可以在拍摄时,控制搭载摄像头的云台在快门打开之后,根据目标运动轨迹样式运动,并在运动结束后关闭快门,可以通过云台带动摄像头的移动,实现物体在成像中运动的效果,在拍摄之后不需要等待软件合成处理,就可以得到具有物体运动效果的照片,能够解决相关技术中合成物体运动效果照片出图较慢的技术问题,可以提高照相的出图速度,并且可以节约算力。In the image capturing device provided by the embodiment of the present application, after determining the target motion trajectory pattern, during shooting, the camera-mounted pan/tilt can be controlled to move according to the target motion trajectory pattern after the shutter is opened, and the shutter can be closed after the motion ends. The movement of the camera is driven by the gimbal to achieve the effect of the object moving in the imaging. After shooting, you can get a photo with the object motion effect without waiting for the software to synthesize it. Slow technical problems can improve the speed of photographing and save computing power.
本申请实施例中的图像拍摄装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The image capturing apparatus in this embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的图像拍摄装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The image capturing apparatus in this embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的图像拍摄装置能够实现图1至图3的方法实施例中图像拍摄装置实现的各个过程,为避免重复,这里不再赘述。The image capturing apparatus provided in the embodiments of the present application can implement each process implemented by the image capturing apparatus in the method embodiments of FIG. 1 to FIG. 3 . To avoid repetition, details are not described here.
本申请实施例还提供一种电子设备,包括处理器,存储器,存储在存储器上并可在所述处理器上运行的程序或指令,该程序或指令被处理器执行时实现上述图像拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides an electronic device, including a processor, a memory, a program or an instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, the above-mentioned image capturing method can be implemented. In order to avoid repetition, the details are not repeated here.
需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
图5为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备400包括但不限于:射频单元401、网络模块402、音频输出单元403、输入单元404、传感器405、显示单元406、用户输入单元407、接口单元408、存储器409、以及处理器410等部件。The electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, and a processor 410, etc. part.
本领域技术人员可以理解,电子设备400还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。输入单元404可以包括图形处理器、 麦克风等。显示组件406可以包括显示面板。用户输入单元407可以包括触控面板和其他输入设备等。存储器409可以存储有应用程序和操作系统等。图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 400 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions. The input unit 404 may include a graphics processor, a microphone, and the like. Display assembly 406 may include a display panel. The user input unit 407 may include a touch panel, other input devices, and the like. The memory 409 may store application programs, an operating system, and the like. The structure of the electronic device shown in FIG. 5 does not constitute a limitation to the electronic device. The electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
其中,用户输入单元407用于接收第一输入;Wherein, the user input unit 407 is used for receiving the first input;
处理器410用于响应于第一输入,获取第一输入指示的目标运动轨迹样式;The processor 410 is configured to, in response to the first input, obtain the target motion trajectory pattern indicated by the first input;
用户输入单元407用于接收第二输入;The user input unit 407 is used for receiving the second input;
处理器410用于响应于第二输入,打开摄像头的快门,在快门打开之后,控制搭载摄像头的云台根据目标运动轨迹样式运动,并在运动结束后关闭快门,得到摄像头拍摄的照片。The processor 410 is configured to open the shutter of the camera in response to the second input, and after the shutter is opened, control the gimbal equipped with the camera to move according to the target movement trajectory pattern, and close the shutter after the movement to obtain a photo captured by the camera.
可选的,处理器410还可以在打开摄像头的快门之前,获取运动传感器检测到的云台的抖动参数;在根据抖动参数确定云台处于稳定状态的情况下,打开摄像头的快门。Optionally, the processor 410 may also acquire the shaking parameter of the gimbal detected by the motion sensor before opening the shutter of the camera; and open the shutter of the camera when it is determined according to the shaking parameter that the gimbal is in a stable state.
可选的,处理器410在控制搭载摄像头的云台根据目标运动轨迹样式运动时,可以执行:查找目标运动轨迹样式对应的预设云台轨迹;控制云台沿预设云台轨迹运动。Optionally, when controlling the camera-equipped pan/tilt to move according to the target motion trajectory pattern, the processor 410 may perform: searching for a preset pan/tilt trajectory corresponding to the target motion profile pattern; and controlling the pan/tilt to move along the preset pan/tilt trajectory.
可选的,处理器410在获取第一输入指示的目标运动轨迹样式之后,在打开摄像头的快门之前,还可以查找目标运动轨迹样式对应的预设拍摄参数;根据预设拍摄参数对摄像头进行拍摄参数设置。Optionally, after acquiring the target motion trajectory pattern indicated by the first input, before opening the shutter of the camera, the processor 410 may also search for preset shooting parameters corresponding to the target motion trajectory pattern; the camera is photographed according to the preset shooting parameters. parameter settings.
可选的,显示单元406可以用于显示多个候选运动轨迹样式;用户输入单元407在接收第一输入时,接收在多个候选运动轨迹样式中选择目标运动轨迹样式的输入。Optionally, the display unit 406 may be configured to display multiple candidate motion trajectory patterns; when receiving the first input, the user input unit 407 receives an input of selecting a target motion trajectory pattern among the multiple candidate motion trajectory patterns.
本申请实施例提供的电子设备,在确定目标运动轨迹样式之后,可以在拍摄时,控制搭载摄像头的云台在快门打开之后,根据目标运动轨迹样式运动,并在运动结束后关闭快门,可以通过云台带动摄像头的移动,实现物体在成像中运动的效果,在拍摄之后不需要等待软件合成处理,就可以得到具有物体运动效果的照片,能够解决相关技术中合成物体运动效果照片出图较慢的技术问题,可以提高照相的出图速度,并且可以节约算力。The electronic device provided by the embodiment of the present application, after determining the target motion trajectory pattern, can control the camera-mounted pan/tilt to move according to the target motion trajectory pattern after the shutter is opened during shooting, and close the shutter after the motion is completed. The gimbal drives the movement of the camera to achieve the effect of the object moving in the imaging. After shooting, you can get a photo with the object motion effect without waiting for software synthesis processing, which can solve the problem that the composite object motion effect in the related art is relatively slow. It can improve the speed of taking pictures and save computing power.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述图像拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium. When the program or instruction is executed by a processor, each process of the above image capturing method embodiment can be achieved, and the same can be achieved. In order to avoid repetition, the technical effect will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质包括计算机可读存储介质,计算机可读存储介质的示例可包括非易失性存储器,如计算机只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, and examples of the computer-readable storage medium may include non-volatile memory, such as computer read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory) Memory, referred to as RAM), magnetic disk or optical disk, etc.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述图像拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the above image capturing method embodiments. Each process can achieve the same technical effect. In order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统 或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
上面参考根据本申请的实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本申请的各方面。应当理解,流程图和/或框图中的每个方框以及流程图和/或框图中各方框的组合可以由计算机程序指令实现。这些计算机程序指令可被提供给通用计算机、专用计算机、或其它可编程数据处理装置的处理器,以产生一种机器,使得经由计算机或其它可编程数据处理装置的处理器执行的这些指令使能对流程图和/或框图的一个或多个方框中指定的功能/动作的实现。这种处理器可以是但不限于是通用处理器、专用处理器、特殊应用处理器或者现场可编程逻辑电路。还可理解,框图和/或流程图中的每个方框以及框图和/或流程图中的方框的组合,也可以由执行指定的功能或动作的专用硬件来实现,或可由专用硬件和计算机指令的组合来实现。Aspects of the present application are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine such that execution of the instructions via the processor of the computer or other programmable data processing apparatus enables the Implementation of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams. Such processors may be, but are not limited to, general purpose processors, special purpose processors, application specific processors, or field programmable logic circuits. It will also be understood that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can also be implemented by special purpose hardware for performing the specified functions or actions, or by special purpose hardware and/or A combination of computer instructions is implemented.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (14)

  1. 一种图像拍摄方法,包括:An image capturing method comprising:
    接收第一输入;receive a first input;
    响应于所述第一输入,获取所述第一输入指示的目标运动轨迹样式;In response to the first input, acquiring the target motion trajectory pattern indicated by the first input;
    接收第二输入;receive a second input;
    响应于所述第二输入,打开摄像头的快门,在所述快门打开之后,控制搭载所述摄像头的云台根据所述目标运动轨迹样式运动,并在运动结束后关闭所述快门,得到所述摄像头拍摄的照片。In response to the second input, the shutter of the camera is opened, and after the shutter is opened, the gimbal equipped with the camera is controlled to move according to the target movement track pattern, and the shutter is closed after the movement is completed, to obtain the Photo taken by the camera.
  2. 根据权利要求1所述的图像拍摄方法,其中,在打开所述摄像头的快门之前,所述方法还包括:The image capturing method according to claim 1, wherein, before opening the shutter of the camera, the method further comprises:
    获取运动传感器检测到的所述云台的抖动参数;obtaining the jitter parameters of the gimbal detected by the motion sensor;
    在根据所述抖动参数确定所述云台处于稳定状态的情况下,打开所述摄像头的快门。When it is determined that the gimbal is in a stable state according to the shaking parameter, the shutter of the camera is opened.
  3. 根据权利要求1所述的图像拍摄方法,其中,所述控制搭载所述摄像头的云台根据所述目标运动轨迹样式运动,包括:The image capturing method according to claim 1, wherein the controlling the pan/tilt mounted with the camera to move according to the target movement trajectory pattern comprises:
    查找所述目标运动轨迹样式对应的预设云台轨迹;Find the preset PTZ trajectory corresponding to the target motion trajectory pattern;
    控制所述云台沿所述预设云台轨迹运动。The gimbal is controlled to move along the preset track of the gimbal.
  4. 根据权利要求1所述的图像拍摄方法,其中,在获取所述第一输入指示的目标运动轨迹样式之后,在打开所述摄像头的快门之前,所述方法还包括:The image capturing method according to claim 1, wherein, after acquiring the target motion trajectory pattern indicated by the first input, before opening the shutter of the camera, the method further comprises:
    查找所述目标运动轨迹样式对应的预设拍摄参数;Find the preset shooting parameters corresponding to the target motion trajectory pattern;
    根据所述预设拍摄参数对所述摄像头进行拍摄参数设置。Shooting parameters are set for the camera according to the preset shooting parameters.
  5. 根据权利要求1所述的图像拍摄方法,其中,The image capturing method according to claim 1, wherein,
    在接收第一输入之前,所述方法还包括:显示多个候选运动轨迹样式;Before receiving the first input, the method further includes: displaying a plurality of candidate motion trajectory patterns;
    所述接收第一输入,包括:接收在所述多个候选运动轨迹样式中选择所述目标运动轨迹样式的输入。The receiving the first input includes: receiving an input for selecting the target motion trajectory pattern among the plurality of candidate motion trajectory patterns.
  6. 一种图像拍摄装置,包括:An image capturing device, comprising:
    第一接收单元,用于接收第一输入;a first receiving unit for receiving a first input;
    第一确定单元,用于响应于所述第一输入,获取所述第一输入指示的目标运动轨 迹样式;a first determining unit, configured to acquire, in response to the first input, a target motion trajectory pattern indicated by the first input;
    第二接收单元,用于接收第二输入;a second receiving unit for receiving a second input;
    第一执行单元,用于响应于所述第二输入,打开摄像头的快门,在所述快门打开之后,控制搭载所述摄像头的云台根据所述目标运动轨迹样式运动,并在运动结束后关闭所述快门,得到所述摄像头拍摄的照片。The first execution unit is configured to open the shutter of the camera in response to the second input, and after the shutter is opened, control the pan/tilt carrying the camera to move according to the target movement trajectory pattern, and close after the movement ends The shutter obtains the photo taken by the camera.
  7. 根据权利要求6所述的图像拍摄装置,还包括:The image capturing device according to claim 6, further comprising:
    第一获取单元,用于在打开所述摄像头的快门之前,获取运动传感器检测到的所述云台的抖动参数;a first acquisition unit, configured to acquire the shaking parameters of the pan/tilt head detected by a motion sensor before opening the shutter of the camera;
    第二执行单元,用于在根据所述抖动参数确定所述云台处于稳定状态的情况下,打开所述摄像头的快门。The second execution unit is configured to open the shutter of the camera when it is determined that the pan/tilt head is in a stable state according to the shaking parameter.
  8. 根据权利要求6所述的图像拍摄装置,其中,所述第一执行单元包括:The image capturing apparatus according to claim 6, wherein the first execution unit comprises:
    第一查找单元,用于查找所述目标运动轨迹样式对应的预设云台轨迹;a first search unit, used to search for a preset pan-tilt trajectory corresponding to the target motion trajectory pattern;
    控制单元,用于控制所述云台沿所述预设云台轨迹运动。A control unit, configured to control the pan/tilt to move along the preset pan/tilt trajectory.
  9. 根据权利要求6所述的图像拍摄装置,还包括:The image capturing device according to claim 6, further comprising:
    第二查找单元,用于在获取所述第一输入指示的目标运动轨迹样式之后,在打开所述摄像头的快门之前,查找所述目标运动轨迹样式对应的预设拍摄参数;A second search unit, configured to search for preset shooting parameters corresponding to the target motion trajectory pattern before opening the shutter of the camera after acquiring the target motion trajectory pattern indicated by the first input;
    设置单元,用于根据所述预设拍摄参数对所述摄像头进行拍摄参数设置。A setting unit, configured to set shooting parameters of the camera according to the preset shooting parameters.
  10. 根据权利要求6所述的图像拍摄装置,其中,The image capturing apparatus according to claim 6, wherein,
    所述装置还包括:显示单元,用于显示多个候选运动轨迹样式;The apparatus further includes: a display unit for displaying a plurality of candidate motion trajectory patterns;
    所述第一接收单元包括:第三接收单元,用于接收在所述多个候选运动轨迹样式中选择所述目标运动轨迹样式的输入。The first receiving unit includes: a third receiving unit, configured to receive an input for selecting the target motion trajectory pattern among the plurality of candidate motion trajectory patterns.
  11. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-5任一项所述的图像拍摄方法的步骤。An electronic device, comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being executed by the processor to achieve as claimed in claims 1-5 The steps of any one of the image capturing methods.
  12. 一种电子设备,被配置用于执行如权利要求1-5任一项所述的图像拍摄方法的步骤。An electronic device configured to perform the steps of the image capturing method of any one of claims 1-5.
  13. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-5任一项所述的图像拍摄方法的步骤。A readable storage medium on which programs or instructions are stored, and when the programs or instructions are executed by a processor, the steps of the image capturing method according to any one of claims 1-5 are implemented.
  14. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦 合,所述处理器用于运行程序或指令,实现如权利要求1-5任一项所述的图像拍摄方法。A chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or an instruction to realize the image shooting according to any one of claims 1-5 method.
PCT/CN2022/082420 2021-03-30 2022-03-23 Image capture method and apparatus, electronic device and readable storage medium WO2022206499A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110342259.4A CN113114933A (en) 2021-03-30 2021-03-30 Image shooting method and device, electronic equipment and readable storage medium
CN202110342259.4 2021-03-30

Publications (1)

Publication Number Publication Date
WO2022206499A1 true WO2022206499A1 (en) 2022-10-06

Family

ID=76712814

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/082420 WO2022206499A1 (en) 2021-03-30 2022-03-23 Image capture method and apparatus, electronic device and readable storage medium

Country Status (2)

Country Link
CN (1) CN113114933A (en)
WO (1) WO2022206499A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114933A (en) * 2021-03-30 2021-07-13 维沃移动通信有限公司 Image shooting method and device, electronic equipment and readable storage medium
CN114339047A (en) * 2021-12-31 2022-04-12 维沃移动通信有限公司 Shooting control method and device, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125407A (en) * 2014-08-13 2014-10-29 深圳市中兴移动通信有限公司 Object motion track shooting method and mobile terminal
CN105894455A (en) * 2016-06-27 2016-08-24 联想(北京)有限公司 Photographing method, device and electronic equipment
US20170048427A1 (en) * 2014-05-16 2017-02-16 Lg Electronics Inc. Mobile terminal and control method therefor
CN110337621A (en) * 2018-04-09 2019-10-15 深圳市大疆创新科技有限公司 Motion profile determination, time-lapse photography method, equipment and machine readable storage medium
CN112492215A (en) * 2020-12-09 2021-03-12 维沃移动通信有限公司 Shooting control method and device and electronic equipment
CN113114933A (en) * 2021-03-30 2021-07-13 维沃移动通信有限公司 Image shooting method and device, electronic equipment and readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102090624B1 (en) * 2013-02-26 2020-03-18 삼성전자 주식회사 Apparatus and method for processing a image in device
CN104113696B (en) * 2014-07-28 2016-03-23 深圳市中兴移动通信有限公司 The image pickup method of the track of moving object and device
KR20170014556A (en) * 2015-07-30 2017-02-08 삼성전자주식회사 Method and photographing device for photographing a moving object

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170048427A1 (en) * 2014-05-16 2017-02-16 Lg Electronics Inc. Mobile terminal and control method therefor
CN104125407A (en) * 2014-08-13 2014-10-29 深圳市中兴移动通信有限公司 Object motion track shooting method and mobile terminal
CN105894455A (en) * 2016-06-27 2016-08-24 联想(北京)有限公司 Photographing method, device and electronic equipment
CN110337621A (en) * 2018-04-09 2019-10-15 深圳市大疆创新科技有限公司 Motion profile determination, time-lapse photography method, equipment and machine readable storage medium
CN112492215A (en) * 2020-12-09 2021-03-12 维沃移动通信有限公司 Shooting control method and device and electronic equipment
CN113114933A (en) * 2021-03-30 2021-07-13 维沃移动通信有限公司 Image shooting method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN113114933A (en) 2021-07-13

Similar Documents

Publication Publication Date Title
CN109600659B (en) Operation method, device and equipment for playing video and storage medium
KR101772177B1 (en) Method and apparatus for obtaining photograph
WO2022206499A1 (en) Image capture method and apparatus, electronic device and readable storage medium
CN107770452B (en) Photographing method, terminal and related medium product
WO2022262720A1 (en) Photographing method and device
WO2022121731A1 (en) Image photographing method and apparatus, and electronic device and readable storage medium
WO2023072088A1 (en) Focusing method and apparatus
CN112637515B (en) Shooting method and device and electronic equipment
WO2022078241A1 (en) Photographing method and apparatus, and electronic device
WO2021026789A1 (en) Photographing method based on handheld gimbal, and handheld gimbal and storage medium
WO2018053722A1 (en) Panoramic photo capture method and device
WO2023134583A1 (en) Video recording method and apparatus, and electronic device
WO2023036179A1 (en) Photographing processing method and electronic device
CN114125179B (en) Shooting method and device
WO2024061134A1 (en) Photographing method and apparatus, electronic device, and medium
CN112492215B (en) Shooting control method and device and electronic equipment
KR101645427B1 (en) Operation method of camera apparatus through user interface
WO2022095878A1 (en) Photographing method and apparatus, and electronic device and readable storage medium
CN111654623B (en) Photographing method and device and electronic equipment
CN114245018A (en) Image shooting method and device
CN113873147A (en) Video recording method and device and electronic equipment
CN112399092A (en) Shooting method and device and electronic equipment
CN112672059B (en) Shooting method and shooting device
CN115134536B (en) Shooting method and device thereof
CN114040099B (en) Image processing method and device and electronic equipment

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: 22778682

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE