WO2022121731A1 - Image photographing method and apparatus, and electronic device and readable storage medium - Google Patents

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

Info

Publication number
WO2022121731A1
WO2022121731A1 PCT/CN2021/134312 CN2021134312W WO2022121731A1 WO 2022121731 A1 WO2022121731 A1 WO 2022121731A1 CN 2021134312 W CN2021134312 W CN 2021134312W WO 2022121731 A1 WO2022121731 A1 WO 2022121731A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
camera
images
multiple frames
frames
Prior art date
Application number
PCT/CN2021/134312
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 维沃移动通信有限公司
Priority to JP2023532574A priority Critical patent/JP2023551037A/en
Priority to EP21902438.7A priority patent/EP4258648A4/en
Priority to KR1020237023017A priority patent/KR102683253B1/en
Publication of WO2022121731A1 publication Critical patent/WO2022121731A1/en
Priority to US18/326,663 priority patent/US20230328367A1/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/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • 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/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • 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
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B17/00Details of cameras or camera bodies; Accessories therefor
    • G03B17/56Accessories
    • G03B17/561Support related camera accessories
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/45Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • 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
    • 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/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • 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/60Control of cameras or camera modules
    • H04N23/698Control of cameras or camera modules for achieving an enlarged field of view, e.g. panoramic image capture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/90Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • H04N5/77Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • H04N5/77Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
    • H04N5/772Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera the recording apparatus and the television camera being placed in the same enclosure

Definitions

  • the present application belongs to the field of image processing, and in particular relates to an image capturing method, apparatus, electronic device and readable storage medium.
  • the shooting device when shooting a scene with multiple frames of images such as a streamer shutter, the shooting device usually needs to be fixed for a long time to shoot, and a large movement cannot be performed, otherwise the shooting quality will be affected. Therefore, the shooting equipment is often assisted and fixed by equipment such as a tripod, which makes shooting difficult.
  • the purpose of the embodiments of the present application is to provide an image capturing method, apparatus, electronic device, and readable storage medium, so as to solve the problem of difficult capturing in the current multi-frame image capturing scene.
  • an embodiment of the present application provides an image capturing method, which is applied to an electronic device, where the electronic device includes a first camera, a second camera, a free pan-tilt and a fixed pan-tilt; the first camera is installed on the On the free PTZ, the second camera is installed on the fixed PTZ; the method includes:
  • the multiple frames of the first images and the multiple frames of the second images are combined to obtain a combined image.
  • an embodiment of the present application provides an image capturing apparatus, which is applied to an electronic device, where the electronic device includes a first camera, a second camera, a free pan/tilt, and a fixed pan/tilt; the first camera is installed in the On the free PTZ, the second camera is installed on the fixed PTZ; the device includes:
  • a receiving module for receiving a first input for triggering image shooting
  • an acquiring module configured to acquire, in response to the first input, multiple frames of first images captured by the first camera, and multiple frames of second images captured by the second camera; wherein, during the image capturing process, The free PTZ controls the actual shooting position of the first camera to remain unchanged, and the fixed PTZ controls the second camera to move synchronously with the electronic device;
  • the synthesis module is used for synthesizing the multiple frames of the first images and the multiple frames of the second images to obtain a synthesized image.
  • an embodiment of the present application provides 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 The steps of the method of the first aspect are implemented when executed by the processor.
  • 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 steps of the method according to the first aspect are implemented .
  • 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, and implement the first aspect the method described.
  • an embodiment of the present application provides a computer program product, the computer program product is stored in a non-transitory storage medium, and the computer program product is executed by at least one processor to implement the first aspect. method described.
  • multiple frames of first images captured by the first camera installed on the free pan/tilt head may be acquired, and a second image shot by the fixed pan/tilt head may be acquired.
  • the multiple frames of second images captured by the camera are synthesized, and the multiple frames of the first images and the multiple frames of the second images are synthesized to obtain a synthesized image.
  • the shooting difficulty can be reduced by using a gimbal instead of a tripod and other equipment to assist the shooting of multi-frame images.
  • the actual shooting position of the first camera controlled by the free pan-tilt remains unchanged, and the fixed pan-tilt controls the second camera to move synchronously with the electronic device, so the first camera and the second camera can capture the image.
  • Different image contents so that the final synthesized image contains more image contents and improves the image quality.
  • FIG. 1 is a flowchart of an image capturing method provided by an embodiment of the present application.
  • FIG. 2 is a schematic flow chart of an image capturing process in a specific example of the present application.
  • Fig. 3 is one of the schematic diagrams of the mobile phone interface in the specific example of this application.
  • FIG. 5 is a schematic diagram of an image synthesis process in a specific example of the present application.
  • FIG. 6 is a schematic structural diagram of an image capturing apparatus provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
  • 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 the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “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.
  • FIG. 1 is a flowchart of an image capturing method provided by an embodiment of the present application, and the method is applied to an electronic device.
  • the electronic device may include a first camera, a second camera, a free pan/tilt and a fixed pan/tilt.
  • the first camera is installed on the free pan-tilt
  • the second camera is mounted on the fixed pan-tilt.
  • Both the free gimbal and the fixed gimbal are support devices for installing and fixing the camera, which can achieve the effect of anti-shake without additional fixed equipment.
  • the image capturing method in this embodiment of the present application may include the following steps:
  • Step 101 Receive a first input for triggering image capture.
  • an instruction for triggering image shooting may be input to the electronic device by the user clicking the shooting button.
  • the electronic device receives a first input for triggering image capturing.
  • Step 102 In response to the first input, acquire multiple frames of first images captured by the first camera, and acquire multiple frames of second images captured by the second camera.
  • the actual shooting position of the first camera controlled by the free pan/tilt remains unchanged, and the fixed pan/tilt controls the second camera to move/move synchronously with the electronic device. That is to say, the function of the free gimbal is to control the first camera on the electronic device to rotate in the reverse direction when the electronic device rotates in the forward direction, or control the first camera on it to rotate when the electronic device rotates in the reverse direction.
  • the rotation in the positive direction locks the shooting object and ensures that the actual shooting position of the first camera remains unchanged.
  • the function of the fixed pan/tilt is to control the second camera to move synchronously with the electronic device during the image capture process, that is, to control the second camera and the electronic device to remain relatively still, and to provide an appropriate anti-shake effect when the electronic device rotates to ensure the image quality. quality.
  • the first image captured by the first camera and/or the second image captured by the second camera may be stored in the electronic device in the form of a buffer queue.
  • the buffer queue may be discarded. Store images at the head of the queue, and continue to store new captured images at the tail of the buffer queue.
  • the upper limit can be set based on the actual situation of the user. For example, the upper limit may be set to the number of images captured within 2s, that is, if the first camera and the second camera capture 30 frames of images per second, the upper limit of the buffer queue is 60 frames of images.
  • Step 103 Synthesize multiple frames of the first image and multiple frames of the second image to obtain a combined image.
  • the embodiments of the present application do not limit the image synthesis method, and an existing image synthesis method may be used.
  • Scenarios applicable to the embodiments of the present application include, but are not limited to, multi-frame image shooting scenarios, such as streaming shutter shooting scenarios, panoramic shooting scenarios, and the like.
  • multiple frames of first images captured by the first camera installed on the free gimbal may be obtained, and multiple frames of the first image captured by the first camera installed on the free gimbal may be obtained, and multiple frames of the first image captured by the first camera installed on the free gimbal may be obtained, and the first image captured by the first camera installed on the free gimbal may be obtained.
  • the multi-frame second image captured by the second camera is synthesized, and the multi-frame first image and the multi-frame second image are synthesized to obtain a composite image.
  • the shooting difficulty can be reduced by using a gimbal instead of a tripod and other equipment to assist the shooting of multi-frame images.
  • the actual shooting position of the first camera controlled by the free pan-tilt remains unchanged, and the fixed pan-tilt controls the second camera to move synchronously with the electronic device, so the first camera and the second camera can capture the image.
  • Different image contents so that the final synthesized image contains more image contents and improves the image quality.
  • a first target image may be selected from multiple frames of first images, and a second target image may be selected from multiple frames of second images, and the first target image and the second target image may be selected.
  • the images are composited to obtain a composite image.
  • the number of the first target images may be one frame or multiple frames.
  • the number of the second target images may be one frame or multiple frames.
  • the electronic device may select based on a user selection operation, or may select based on a preset selection rule in the electronic device, which is not limited.
  • the image synthesis process in the above step 103 may include: selecting a first target image from multiple frames of first images, and selecting multiple frames of second target images from multiple frames of second images; using multiple frames of second target images; The image supplements the image content of the first target image to obtain a composite image.
  • the first target image and the second target image may be selected from cached images after the shooting is completed. In this way, after the shooting is completed, the first target image and the second target image can be selected, which can realize selection from the full amount of cached images, thereby ensuring the quality of the selected images.
  • the first target image may be selected as the image with the highest definition among the multiple frames of the first image. Since the second camera moves or rotates during the image capturing process, that is, the images captured by the second camera are images in different scenes, so in order to ensure the image synthesis effect, multiple frames can be selected from the second images captured by the second camera The second target image, and the multiple frames of the second target image are respectively images captured by the second camera when rotated to different angles.
  • the 6 frames of second target images may be corresponding to the free pan/tilt head rotation angles of T/6, T/3, T/ 2, 2T/3, 5T/6, T images.
  • the composite image can not only include the image content at the initial shooting position, but also supplement the image content after the electronic device is rotated, thereby ensuring the quality of the composite image.
  • the initial shooting position of the first camera cannot be locked, that is, when the rotation angle of the free pan/tilt reaches the preset threshold, the The limit of the first camera is locked. If it continues to rotate, the initial shooting position of the first camera cannot be locked. Therefore, when the electronic device detects that the rotation angle of the free gimbal reaches a preset threshold, the shooting process can be stopped.
  • the preset threshold can be set based on the corresponding free PTZ.
  • the image capturing method of this embodiment may further include: stopping the capturing process when it is monitored that the rotation angle of the free pan/tilt head reaches a preset threshold, or an input for triggering stop of image capturing is received.
  • the electronic device can monitor whether the rotation angle of the free gimbal reaches a preset threshold, or whether it receives an input for triggering the stop of image capture, and monitors that the rotation angle of the free gimbal reaches a predetermined threshold.
  • a preset threshold or if an input is received to trigger the stop of image capture, the capture process is stopped.
  • the input may be achieved by the user clicking the capture button.
  • the first target image and the second target image may be selected based on a user selection operation.
  • the above process of selecting the first target image and the second target image may include:
  • the first target image is selected from the plurality of frames of the first images
  • the plurality of frames of the second target image is selected from the plurality of frames of the second image.
  • the buffered multi-frame first images and multi-frame second images may be displayed on the display interface of the electronic device, so that the user can select the first target from the multi-frame first images image, and selecting a second target image from the plurality of frames of the second image.
  • the multiple frames of the first image and the multiple frames of the second image may be displayed simultaneously on the display interface of the electronic device, or may be displayed sequentially, for example, the multiple frames of the first image are displayed first and then the multiple frames of the second image are displayed, or the multiple frames are displayed first.
  • the second image then displays multiple frames of the first image.
  • the image capturing method in this embodiment may further include: displaying the image captured by the second camera on the preview interface for the user to view.
  • the mobile phone includes a first rear camera, a second rear camera, a free gimbal and a fixed gimbal, wherein the first rear camera is installed on the free gimbal,
  • the second rear camera is mounted on a fixed gimbal.
  • the image capturing process using streamer shutter shooting as an example may include the following steps:
  • Step 201 Based on the user input, the mobile phone starts the camera application, turns on the first rear camera and the second rear camera, and enters the dual-camera shooting mode.
  • the interface of the mobile phone can display information for the user to choose whether to enter the dual-header shooting mode. After the user clicks the "Pro" button, they can enter the dual-head shooting mode.
  • Step 202 The mobile phone receives an input for triggering image shooting based on the user's operation of clicking the shooting button, and starts image shooting.
  • the free gimbal and the fixed gimbal take effect at the same time, and the free gimbal will lock the currently captured image.
  • the actual location is the same. Therefore, when the user starts to shoot the streamer shutter, the user needs to press the shooting button, and the image shooting starts immediately after pressing the button.
  • Step 203 During the image shooting process, the mobile phone moves, and the actual shooting position of the first rear camera controlled by the free gimbal remains unchanged, that is, the initial shooting position is locked, and the first image captured by the first rear camera is cached.
  • Step 204 During the image capturing process, the mobile phone moves, and the fixed PTZ controls the second rear camera to move synchronously with the mobile phone, that is, the mobile phone and the second rear camera remain relatively stationary, and the second rear camera captured by the second rear camera is cached. image.
  • Step 205 Determine whether the rotation angle of the free pan/tilt head reaches a preset threshold, or whether an input for triggering stop of image capturing is received.
  • the rotation of the free gimbal can be displayed through the rectangular frame on the mobile phone interface as shown in FIG. 4 . In order for users to understand the movement of the free PTZ.
  • the free gimbal When shooting the light painting scene of the streamer shutter, the free gimbal has locked the starting shooting position. As the user starts to draw the light painting pattern, the shooting user starts to move the mobile phone correspondingly until the entire pattern is drawn. During the shooting process, the mobile phone application needs to determine whether the maximum free gimbal rotation has been reached. Assuming that the maximum rotation angle of the free gimbal is T, when the mobile phone starts to move, the free gimbal will lock the starting shooting position through its own rotation. When the rotation angle of the free gimbal reaches T, it means that the shooting limit has been reached. If you continue to rotate, the free head can no longer lock to the starting position of the shot. When the user presses the shooting button again to input a shooting stop instruction, or when the rotation reaches the limit of the free pan/tilt head, the shooting is completed, and the process proceeds to step 206 .
  • Step 206 After the shooting is completed, read out the first image captured by the first rear camera, and select the first target image from it, and read out the second image captured by the second rear camera, and select multiple frames of the second target from there image.
  • the free gimbal Since the free gimbal is always locked to the starting position of the shooting, the captured image is more important, while the fixed gimbal rotates with the phone to shoot, adding more details. Therefore, when reading out the images corresponding to the two PTZs, the image corresponding to the free PTZ can be selected the clearest, while the images corresponding to the fixed PTZ are images in different scenarios, and it is necessary to select the images corresponding to different rotation angles. frame image.
  • Step 207 Synthesize the first target image and multiple frames of the second target image to obtain a combined image.
  • the first image on the left is the first image taken by the free gimbal. Since multiple frames were taken, you can click on this area to pop up a series of relatively clear images saved, and select the clearest image based on user input. image.
  • the second from the left and the third from the left are the extended images obtained by rotating the fixed gimbal and the mobile phone, which can be freely selected by the user to supplement more scenes than the initial shooting scene. After the user selects an image to be synthesized, the image is synthesized in the background. In this way, a composite image can be obtained by synthesizing the three frames of images shown in FIG. 5 .
  • step 202 After that, if the user continues to capture images, return to step 202; otherwise, exit the camera and end.
  • the example of the present application uses the free gimbal and the fixed gimbal to not only lock the initial shooting position, but also supplement the image part after the mobile phone starts to rotate, and finally complete the shooting in a multi-frame scene through image synthesis.
  • the execution subject may be an image capturing device, or a control module in the image capturing device for executing the image capturing method.
  • the image capturing device provided by the embodiment of the present application is described by taking the image capturing method performed by the image capturing device as an example.
  • FIG. 6 is a schematic structural diagram of an image capturing apparatus provided by an embodiment of the present application, which is applied to an electronic device.
  • the electronic device may include a first camera, a second camera, a free pan/tilt and a fixed pan/tilt.
  • the first camera is installed on the free pan-tilt
  • the second camera is mounted on the fixed pan-tilt.
  • Both the free gimbal and the fixed gimbal are support devices for installing and fixing the camera, which can achieve the effect of anti-shake.
  • the image shooting process the actual shooting position of the first camera controlled by the free PTZ remains unchanged, and the fixed PTZ controls the second camera to move synchronously with the electronic device.
  • the image capturing device 60 includes:
  • a receiving module 61 configured to receive a first input for triggering image shooting
  • an acquisition module 62 configured to acquire, in response to the first input, multiple frames of first images captured by the first camera, and multiple frames of second images captured by the second camera;
  • the synthesis module 63 is used for synthesizing the multiple frames of the first images and the multiple frames of the second images to obtain a synthesized image.
  • the synthesis module 63 includes:
  • a selection unit for selecting a first target image from the multiple frames of the first image, and selecting multiple frames of the second target image from the multiple frames of the second image;
  • a synthesizing unit configured to supplement the image content of the first target image by using the multiple frames of the second target image to obtain the composite image
  • the first target image is an image with the highest definition among the multiple frames of the first image; the multiple frames of the second target image are images captured by the second camera when rotated to different angles.
  • the image capturing device 60 further includes:
  • the control module is configured to stop the photographing process when it is monitored that the rotation angle of the free pan/tilt head reaches the preset threshold, or an input for triggering stop of image photographing is received.
  • the selection unit includes:
  • a receiving subunit for receiving a second input to the multiple frames of the first image and the multiple frames of the second image
  • a selection subunit for selecting a first target image from the plurality of frames of first images and selecting the plurality of frames of second target images from the plurality of frames of second images in response to the second input.
  • the image capturing device 60 further includes:
  • the display module is configured to display the image captured by the second camera on the preview interface.
  • 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 (Personal Digital Assistant).
  • the non-mobile electronic device may be a personal computer (Personal Computer, PC), a television (Television, TV), a teller machine or a self-service machine, etc., which are not specifically limited in the embodiments of the present application.
  • PC Personal Computer
  • TV Television
  • teller machine teller machine
  • self-service machine etc., which are not specifically limited in the embodiments of the present application.
  • 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 60 provided in this embodiment of the present application can implement each process implemented by the method embodiment shown in FIG. 1 , and achieve the same technical effect. To avoid repetition, details are not described here.
  • an embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, a program or instruction stored in the memory 702 and executable on the processor 701,
  • an electronic device 700 including a processor 701, a memory 702, a program or instruction stored in the memory 702 and executable on the processor 701,
  • the program or instruction is executed by the processor 701
  • each process of the above-mentioned image capturing method embodiment can be realized, and the same technical effect can be achieved. To avoid repetition, details are not described here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810, etc. part.
  • the input unit 804 may include a camera assembly 8041 .
  • the camera assembly 8041 may include a first camera, a second camera, a free pan-tilt and a fixed pan-tilt.
  • the first camera is installed on the free pan-tilt, and the free pan-tilt controls the actual shooting position of the first camera to remain unchanged during the image shooting process.
  • the second camera is installed on the fixed pan-tilt, and the fixed pan-tilt controls the second camera to move synchronously with the electronic device 800 during the image capturing process.
  • the electronic device 800 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 810 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 8 does not constitute a limitation on 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 807 is configured to receive a first input for triggering image shooting
  • the processor 810 is configured to, in response to the first input, acquire multiple frames of first images captured by the first camera, and acquire multiple frames of second images captured by the second camera; The image and the multiple frames of second images are combined to obtain a combined image.
  • the processor 810 is further configured to select a first target image from the multiple frames of first images, and select multiple frames of second target images from the multiple frames of second images; using the multiple frames of the first image
  • the second target image supplements the image content of the first target image to obtain the composite image; wherein, the first target image is the image with the highest definition among the multiple frames of first images; the multiple frames of the first image
  • the two target images are respectively images captured by the second camera when rotated to different angles.
  • the processor 810 is further configured to stop shooting when it is monitored that the rotation angle of the free pan/tilt head reaches the preset threshold, or the user input unit 807 receives an input for triggering stop of image shooting. process.
  • the user input unit 807 is further configured to receive a second input to the multiple frames of the first image and the multiple frames of the second image;
  • the processor 810 is further configured to, in response to the second input, select a first target image from the multiple frames of first images, and select the multiple frames of second target images from the multiple frames of second images.
  • the display unit 806 is configured to display the image captured by the second camera on the preview interface.
  • the electronic device 800 provided in this embodiment of the present application can implement the various processes implemented by the method embodiment shown in FIG. 1 , and achieve the same technical effect. In order to avoid repetition, details are not repeated here.
  • the input unit 804 may further include a graphics processor (Graphics Processing Unit, GPU) 8042 and a microphone 8043, and the graphics processor 8042 is used to communicate with the image capture device in the video capture mode or the image capture mode (eg, the camera component 8041) to process image data of still pictures or videos.
  • the display unit 806 may include a display panel 8061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 807 includes a touch panel 8071 and other input devices 8072 .
  • the touch panel 8071 is also called a touch screen.
  • the touch panel 8071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 8072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described herein again.
  • Memory 809 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 810.
  • 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, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • 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.
  • 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
  • the disclosed apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

Disclosed are an image photographing method and apparatus, and an electronic device and a readable storage medium, which belong to the field of image processing. The specific implementation solution involves: receiving a first input for triggering image photographing; in response to the first input, acquiring a plurality of frames of first images photographed by a first camera, and acquiring a plurality of frames of second images photographed by a second camera, wherein during the process of image photographing, a free gimbal controls an actual photographing position of the first camera to be unchanged, and a fixed gimbal controls the second camera to synchronously move with an electronic device; and synthesizing the plurality of frames of first images and the plurality of frames of second images, so as to obtain a synthesized image.

Description

图像拍摄方法、装置、电子设备和可读存储介质Image capturing method, apparatus, electronic device and readable storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张在2020年12月07日在中国提交的中国专利申请No.202011429676.4的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202011429676.4 filed in China on Dec. 07, 2020, the entire contents of which are hereby incorporated by reference.
技术领域technical field
本申请属于图像处理领域,具体涉及一种图像拍摄方法、装置、电子设备和可读存储介质。The present application belongs to the field of image processing, and in particular relates to an image capturing method, apparatus, electronic device and readable storage medium.
背景技术Background technique
目前在拍摄流光快门等多帧图像的场景时,通常需要拍摄设备较长时间的固定拍摄,不能进行较大幅度地移动,否则影响拍摄质量。由此,拍摄设备常由三脚架等器材辅助固定,从而造成拍摄难度较大。At present, when shooting a scene with multiple frames of images such as a streamer shutter, the shooting device usually needs to be fixed for a long time to shoot, and a large movement cannot be performed, otherwise the shooting quality will be affected. Therefore, the shooting equipment is often assisted and fixed by equipment such as a tripod, which makes shooting difficult.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种图像拍摄方法、装置、电子设备和可读存储介质,以解决目前的多帧图像拍摄场景下的拍摄难度较大的问题。The purpose of the embodiments of the present application is to provide an image capturing method, apparatus, electronic device, and readable storage medium, so as to solve the problem of difficult capturing in the current multi-frame image capturing scene.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:
第一方面,本申请实施例提供了一种图像拍摄方法,应用于电子设备,,所述电子设备包括第一摄像头、第二摄像头、自由云台和固定云台;所述第一摄像头安装在所述自由云台上,所述第二摄像头安装在所述固定云台上;所述方法包括:In a first aspect, an embodiment of the present application provides an image capturing method, which is applied to an electronic device, where the electronic device includes a first camera, a second camera, a free pan-tilt and a fixed pan-tilt; the first camera is installed on the On the free PTZ, the second camera is installed on the fixed PTZ; the method includes:
接收用于触发图像拍摄的第一输入;receiving a first input for triggering image capture;
响应于所述第一输入,获取所述第一摄像头拍摄的多帧第一图像,和获取所述第二摄像头拍摄的多帧第二图像;其中,在图像拍摄过程中,所述自由云台控制所述第一摄像头的实际拍摄位置不变,所述固定云台控制所述第二摄像头随着所述电子设备同步移动;In response to the first input, acquiring multiple frames of first images captured by the first camera, and acquiring multiple frames of second images captured by the second camera; wherein, during the image capturing process, the free pan/tilt head The actual shooting position of the first camera is controlled to remain unchanged, and the fixed PTZ controls the second camera to move synchronously with the electronic device;
对所述多帧第一图像和所述多帧第二图像进行合成,得到合成图像。The multiple frames of the first images and the multiple frames of the second images are combined to obtain a combined image.
第二方面,本申请实施例提供了一种图像拍摄装置,应用于电子设备,所述电子设备包括第一摄像头、第二摄像头、自由云台和固定云台;所述第一摄像头安装在所述自由云台上,所述第二摄像头安装在所述固定云台上;所述装置包括:In a second aspect, an embodiment of the present application provides an image capturing apparatus, which is applied to an electronic device, where the electronic device includes a first camera, a second camera, a free pan/tilt, and a fixed pan/tilt; the first camera is installed in the On the free PTZ, the second camera is installed on the fixed PTZ; the device includes:
接收模块,用于接收用于触发图像拍摄的第一输入;a receiving module for receiving a first input for triggering image shooting;
获取模块,用于响应于所述第一输入,获取所述第一摄像头拍摄的多帧第一图像,和获取所述第二摄像头拍摄的多帧第二图像;其中,在图像拍摄过程中,所述自由云台控制所述第一摄像头的实际拍摄位置不变,所述固定云台控制所述第二摄像头随着所述电子设备同步移动;an acquiring module, configured to acquire, in response to the first input, multiple frames of first images captured by the first camera, and multiple frames of second images captured by the second camera; wherein, during the image capturing process, The free PTZ controls the actual shooting position of the first camera to remain unchanged, and the fixed PTZ controls the second camera to move synchronously with the electronic device;
合成模块,用于对所述多帧第一图像和所述多帧第二图像进行合成,得到合成图像。The synthesis module is used for synthesizing the multiple frames of the first images and the multiple frames of the second images to obtain a synthesized image.
第三方面,本申请实施例提供了一种电子设备,所述电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, an embodiment of the present application provides 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 The steps of the method of the first aspect are implemented when executed by the processor.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth 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 steps of the method according to the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth 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, and implement the first aspect the method described.
第六方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品被存储在非瞬态的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如第一方面所述的方法。In a sixth aspect, an embodiment of the present application provides a computer program product, the computer program product is stored in a non-transitory storage medium, and the computer program product is executed by at least one processor to implement the first aspect. method described.
本申请实施例中,在接收用于触发图像拍摄的第一输入之后,可以获取安装在自由云台上的第一摄像头拍摄的多帧第一图像,和获取安装在固定云台上的第二摄像头拍摄的多帧第二图像,并对多帧第一图像和多帧第二图像进行合成,得到合成图像。这样,通过云台代替三脚架等器材来辅助多帧图像的拍摄,可以降低拍摄难度。进一步的,由于在图像拍摄过程中,自由云台控制第一摄像头的实际拍摄位置不变,固定云台控制第二摄像头随着电子 设备同步移动,因此可以使得第一摄像头和第二摄像头拍摄到不同的图像内容,从而使得最后合成的图像包含较多的图像内容,提升图像质量。In this embodiment of the present application, after receiving the first input for triggering image shooting, multiple frames of first images captured by the first camera installed on the free pan/tilt head may be acquired, and a second image shot by the fixed pan/tilt head may be acquired. The multiple frames of second images captured by the camera are synthesized, and the multiple frames of the first images and the multiple frames of the second images are synthesized to obtain a synthesized image. In this way, the shooting difficulty can be reduced by using a gimbal instead of a tripod and other equipment to assist the shooting of multi-frame images. Further, during the image capturing process, the actual shooting position of the first camera controlled by the free pan-tilt remains unchanged, and the fixed pan-tilt controls the second camera to move synchronously with the electronic device, so the first camera and the second camera can capture the image. Different image contents, so that the final synthesized image contains more image contents and improves the image quality.
附图说明Description of drawings
图1是本申请实施例提供的一种图像拍摄方法的流程图;1 is a flowchart of an image capturing method provided by an embodiment of the present application;
图2是本申请具体实例中的图像拍摄过程的流程示意图;2 is a schematic flow chart of an image capturing process in a specific example of the present application;
图3是本申请具体实例中的手机界面的示意图之一;Fig. 3 is one of the schematic diagrams of the mobile phone interface in the specific example of this application;
图4是本申请具体实例中的手机界面的示意图之二;4 is the second schematic diagram of the mobile phone interface in the specific example of the present application;
图5是本申请具体实例中的图像合成过程的示意图;5 is a schematic diagram of an image synthesis process in a specific example of the present application;
图6是本申请实施例提供的一种图像拍摄装置的结构示意图;6 is a schematic structural diagram of an image capturing apparatus provided by an embodiment of the present application;
图7是本申请实施例提供的一种电子设备的结构示意图;7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图8是本申请实施例提供的另一种电子设备的结构示意图。FIG. 8 is a schematic structural diagram of another 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 the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. 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 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,图1是本申请实施例提供的一种图像拍摄方法的流程图,该方法应用于电子设备。该电子设备可以包括第一摄像头、第二摄像头、自 由云台和固定云台。其中,第一摄像头安装在自由云台上,第二摄像头安装在固定云台上。自由云台和固定云台都是安装、固定摄像头的支撑设备,可以起到防抖动的效果,无需额外的固定设备。Please refer to FIG. 1. FIG. 1 is a flowchart of an image capturing method provided by an embodiment of the present application, and the method is applied to an electronic device. The electronic device may include a first camera, a second camera, a free pan/tilt and a fixed pan/tilt. Among them, the first camera is installed on the free pan-tilt, and the second camera is mounted on the fixed pan-tilt. Both the free gimbal and the fixed gimbal are support devices for installing and fixing the camera, which can achieve the effect of anti-shake without additional fixed equipment.
如图1所示,本申请实施例中的图像拍摄方法可以包括如下步骤:As shown in FIG. 1 , the image capturing method in this embodiment of the present application may include the following steps:
步骤101:接收用于触发图像拍摄的第一输入。Step 101: Receive a first input for triggering image capture.
本实施例中,当启动电子设备中的拍摄功能之后,可以通过用户点击拍摄按钮向电子设备输入用于触发图像拍摄的指令。相应的,电子设备接收用于触发图像拍摄的第一输入。In this embodiment, after the shooting function in the electronic device is activated, an instruction for triggering image shooting may be input to the electronic device by the user clicking the shooting button. Correspondingly, the electronic device receives a first input for triggering image capturing.
步骤102:响应于第一输入,获取第一摄像头拍摄的多帧第一图像,和获取第二摄像头拍摄的多帧第二图像。Step 102: In response to the first input, acquire multiple frames of first images captured by the first camera, and acquire multiple frames of second images captured by the second camera.
本实施例中,在图像拍摄过程中,自由云台控制第一摄像头的实际拍摄位置不变,固定云台控制第二摄像头随着电子设备同步移动/运动。也就是说,自由云台的作用是在电子设备进行正方向旋转时,控制其上的第一摄像头进行反方向的旋转,或者在电子设备进行反方向旋转时,控制其上的第一摄像头进行正方向的旋转,从而锁定拍摄对象,保证第一摄像头的实际拍摄位置不变。固定云台的作用是在图像拍摄过程中控制第二摄像头随着电子设备同步移动,即控制第二摄像头与电子设备保持相对静止,当电子设备转动时,提供适当的防抖效果,保证图像的质量。In this embodiment, during the image capturing process, the actual shooting position of the first camera controlled by the free pan/tilt remains unchanged, and the fixed pan/tilt controls the second camera to move/move synchronously with the electronic device. That is to say, the function of the free gimbal is to control the first camera on the electronic device to rotate in the reverse direction when the electronic device rotates in the forward direction, or control the first camera on it to rotate when the electronic device rotates in the reverse direction. The rotation in the positive direction locks the shooting object and ensures that the actual shooting position of the first camera remains unchanged. The function of the fixed pan/tilt is to control the second camera to move synchronously with the electronic device during the image capture process, that is, to control the second camera and the electronic device to remain relatively still, and to provide an appropriate anti-shake effect when the electronic device rotates to ensure the image quality. quality.
一具体示例中,对于第一摄像头拍摄的第一图像和/或第二摄像头拍摄的第二图像,可以以缓冲队列的形式在电子设备中存储,当存储图像达到上限后,可以丢弃缓冲队列的队头的存储图像,并在缓冲队列的队尾继续存储新的拍摄图像。该上限可以基于用户实际情况设定。比如该上限可以设定为2s内拍摄的图像数量,即若第一摄像头和第二摄像头每秒拍摄30帧图像,则缓冲队列的上限为60帧图像。In a specific example, the first image captured by the first camera and/or the second image captured by the second camera may be stored in the electronic device in the form of a buffer queue. When the stored images reach the upper limit, the buffer queue may be discarded. Store images at the head of the queue, and continue to store new captured images at the tail of the buffer queue. The upper limit can be set based on the actual situation of the user. For example, the upper limit may be set to the number of images captured within 2s, that is, if the first camera and the second camera capture 30 frames of images per second, the upper limit of the buffer queue is 60 frames of images.
步骤103:对多帧第一图像和多帧第二图像进行合成,得到合成图像。Step 103: Synthesize multiple frames of the first image and multiple frames of the second image to obtain a combined image.
需指出的,本申请实施例不限定图像合成方式,可以采用现有的图像合成方式。本申请实施例适用的场景包括但不限于多帧图像拍摄场景,比如流光快门的拍摄场景、全景拍摄场景等。It should be noted that the embodiments of the present application do not limit the image synthesis method, and an existing image synthesis method may be used. Scenarios applicable to the embodiments of the present application include, but are not limited to, multi-frame image shooting scenarios, such as streaming shutter shooting scenarios, panoramic shooting scenarios, and the like.
本申请实施例的图像拍摄方法,在接收用于触发图像拍摄的第一输入之 后,可以获取安装在自由云台上的第一摄像头拍摄的多帧第一图像,和获取安装在固定云台上的第二摄像头拍摄的多帧第二图像,并对多帧第一图像和多帧第二图像进行合成,得到合成图像。这样,通过云台代替三脚架等器材来辅助多帧图像的拍摄,可以降低拍摄难度。进一步的,由于在图像拍摄过程中,自由云台控制第一摄像头的实际拍摄位置不变,固定云台控制第二摄像头随着电子设备同步移动,因此可以使得第一摄像头和第二摄像头拍摄到不同的图像内容,从而使得最后合成的图像包含较多的图像内容,提升图像质量。In the image capturing method of the embodiment of the present application, after receiving the first input for triggering image capturing, multiple frames of first images captured by the first camera installed on the free gimbal may be obtained, and multiple frames of the first image captured by the first camera installed on the free gimbal may be obtained, and multiple frames of the first image captured by the first camera installed on the free gimbal may be obtained, and the first image captured by the first camera installed on the free gimbal may be obtained The multi-frame second image captured by the second camera is synthesized, and the multi-frame first image and the multi-frame second image are synthesized to obtain a composite image. In this way, the shooting difficulty can be reduced by using a gimbal instead of a tripod and other equipment to assist the shooting of multi-frame images. Further, during the image capturing process, the actual shooting position of the first camera controlled by the free pan-tilt remains unchanged, and the fixed pan-tilt controls the second camera to move synchronously with the electronic device, so the first camera and the second camera can capture the image. Different image contents, so that the final synthesized image contains more image contents and improves the image quality.
本申请实施例中,为了保证图像合成效果,可以从多帧第一图像中选择第一目标图像,和从多帧第二图像中选择第二目标图像,并对第一目标图像和第二目标图像进行合成,得到合成图像。其中,第一目标图像的数量可以为一帧或者多帧。第二目标图像的数量可以为一帧或者多帧。在选择第一目标图像和第二目标图像时,电子设备可以基于用户选择操作来选择,也可以基于电子设备中预设的选择规则来选择,对此不进行限制。In this embodiment of the present application, in order to ensure the image synthesis effect, a first target image may be selected from multiple frames of first images, and a second target image may be selected from multiple frames of second images, and the first target image and the second target image may be selected. The images are composited to obtain a composite image. The number of the first target images may be one frame or multiple frames. The number of the second target images may be one frame or multiple frames. When selecting the first target image and the second target image, the electronic device may select based on a user selection operation, or may select based on a preset selection rule in the electronic device, which is not limited.
可选的,上述步骤103中的图像合成过程可以包括:从多帧第一图像中选择第一目标图像,和从多帧第二图像中选择多帧第二目标图像;利用多帧第二目标图像对第一目标图像进行图像内容补充,得到合成图像。Optionally, the image synthesis process in the above step 103 may include: selecting a first target image from multiple frames of first images, and selecting multiple frames of second target images from multiple frames of second images; using multiple frames of second target images; The image supplements the image content of the first target image to obtain a composite image.
一种实施方式中,第一目标图像和第二目标图像可以是在拍摄完成之后从缓存图像中选择的。这样,在拍摄完成后再选择第一目标图像和第二目标图像,可以实现从全量缓存图像中进行选择,从而保证所选图像的质量。In one embodiment, the first target image and the second target image may be selected from cached images after the shooting is completed. In this way, after the shooting is completed, the first target image and the second target image can be selected, which can realize selection from the full amount of cached images, thereby ensuring the quality of the selected images.
需指出的,由于第一摄像头的实际拍摄位置不变,即第一摄像头实际上是在起始拍摄位置拍摄的多帧图像,因此在从第一摄像头拍摄的多帧第一图像中选择第一目标图像时,可以将第一目标图像选为多帧第一图像中的清晰度最高的图像。由于第二摄像头在图像拍摄过程中进行了移动或旋转,即第二摄像头拍摄的图像是不同场景下的图像,因此为了保证图像合成效果,可以从第二摄像头拍摄的第二图像中选择多帧第二目标图像,且多帧第二目标图像分别为第二摄像头在旋转至不同角度时拍摄的图像。比如,若自由云台的最大旋转角度为T,选择6帧第二目标图像,则这6帧第二目标图像可以为分别对应于自由云台旋转角度为T/6、T/3、T/2、2T/3、5T/6、T时的图像。It should be pointed out that since the actual shooting position of the first camera does not change, that is, the first camera is actually a multi-frame image shot at the starting shooting position, the first When the target image is selected, the first target image may be selected as the image with the highest definition among the multiple frames of the first image. Since the second camera moves or rotates during the image capturing process, that is, the images captured by the second camera are images in different scenes, so in order to ensure the image synthesis effect, multiple frames can be selected from the second images captured by the second camera The second target image, and the multiple frames of the second target image are respectively images captured by the second camera when rotated to different angles. For example, if the maximum rotation angle of the free pan/tilt head is T, and 6 frames of second target images are selected, the 6 frames of second target images may be corresponding to the free pan/tilt head rotation angles of T/6, T/3, T/ 2, 2T/3, 5T/6, T images.
这样,可以使得合成图像既包含了起始拍摄位置时的图像内容,又补充了电子设备旋转后的图像内容,从而保证了合成图像的质量。In this way, the composite image can not only include the image content at the initial shooting position, but also supplement the image content after the electronic device is rotated, thereby ensuring the quality of the composite image.
本申请实施例中,由于自由云台的旋转角度超过预设阈值时,无法锁定第一摄像头的起始拍摄位置不变,即当自由云台的旋转角度达到预设阈值时,就达到了其锁定第一摄像头的极限,如果继续旋转则无法锁定第一摄像头的起始拍摄位置不变,因此,当电子设备监测到自由云台的旋转角度达到预设阈值时,可以停止拍摄过程。该预设阈值可以基于相应自由云台设置。In the embodiment of the present application, when the rotation angle of the free pan/tilt exceeds the preset threshold, the initial shooting position of the first camera cannot be locked, that is, when the rotation angle of the free pan/tilt reaches the preset threshold, the The limit of the first camera is locked. If it continues to rotate, the initial shooting position of the first camera cannot be locked. Therefore, when the electronic device detects that the rotation angle of the free gimbal reaches a preset threshold, the shooting process can be stopped. The preset threshold can be set based on the corresponding free PTZ.
可选的,本实施例的图像拍摄方法还可以包括:在监测到自由云台的旋转角度达到预设阈值,或者接收到用于触发停止图像拍摄的输入的情况下,停止拍摄过程。Optionally, the image capturing method of this embodiment may further include: stopping the capturing process when it is monitored that the rotation angle of the free pan/tilt head reaches a preset threshold, or an input for triggering stop of image capturing is received.
也就是说,在图像拍摄过程中,电子设备可以监测自由云台的旋转角度是否达到预设阈值,或者是否接收到用于触发停止图像拍摄的输入,并在监测到自由云台的旋转角度达到预设阈值,或者接收到用于触发停止图像拍摄的输入的情况下,停止拍摄过程。该输入可以是通过用户点击拍摄按钮实现的。That is to say, during the image capture process, the electronic device can monitor whether the rotation angle of the free gimbal reaches a preset threshold, or whether it receives an input for triggering the stop of image capture, and monitors that the rotation angle of the free gimbal reaches a predetermined threshold. A preset threshold, or if an input is received to trigger the stop of image capture, the capture process is stopped. The input may be achieved by the user clicking the capture button.
本申请实施例中,第一目标图像和第二目标图像可以是基于用户选择操作选择的。上述选择第一目标图像和第二目标图像的过程可以包括:In this embodiment of the present application, the first target image and the second target image may be selected based on a user selection operation. The above process of selecting the first target image and the second target image may include:
接收对多帧第一图像和多帧第二图像的第二输入;该第二输入可以包括但不限于按压操作、滑动操作等;Receive a second input for multiple frames of first images and multiple frames of second images; the second input may include but is not limited to pressing operations, sliding operations, etc.;
响应于第二输入,从多帧第一图像中选择第一目标图像,和从多帧第二图像中选择多帧第二目标图像。In response to the second input, the first target image is selected from the plurality of frames of the first images, and the plurality of frames of the second target image is selected from the plurality of frames of the second image.
这样,借助用户选择操作来选择所需的第一目标图像和第二目标图像,可以保证所选图像的质量,进而提升后续图像合成效果。In this way, by using the user selection operation to select the required first target image and the second target image, the quality of the selected image can be guaranteed, thereby improving the effect of subsequent image synthesis.
一具体示例中,在图像拍摄完成之后,可以在电子设备的显示界面上显示出已缓存的多帧第一图像和多帧第二图像,以供用户从多帧第一图像中选择第一目标图像,和从多帧第二图像中选择第二目标图像。该多帧第一图像和多帧第二图像在电子设备的显示界面上可以同时显示,也可以依次显示出,比如先显示多帧第一图像再显示多帧第二图像,或者先显示多帧第二图像再显示多帧第一图像。In a specific example, after the image capturing is completed, the buffered multi-frame first images and multi-frame second images may be displayed on the display interface of the electronic device, so that the user can select the first target from the multi-frame first images image, and selecting a second target image from the plurality of frames of the second image. The multiple frames of the first image and the multiple frames of the second image may be displayed simultaneously on the display interface of the electronic device, or may be displayed sequentially, for example, the multiple frames of the first image are displayed first and then the multiple frames of the second image are displayed, or the multiple frames are displayed first. The second image then displays multiple frames of the first image.
可选的,本实施例的图像拍摄方法还可以包括:在预览界面上展示第二摄像头拍摄的图像,以供用户查看。Optionally, the image capturing method in this embodiment may further include: displaying the image captured by the second camera on the preview interface for the user to view.
需指出的,由于第一摄像头的实际拍摄位置不变,即锁定了起始拍摄位置的图像,而第二摄像头拍摄的图像是不同场景下的图像,因此不需要在预览界面展示第一摄像头拍摄的图像,只展示第二摄像头拍摄的图像即可。It should be pointed out that since the actual shooting position of the first camera does not change, that is, the image of the starting shooting position is locked, and the image captured by the second camera is an image in a different scene, so there is no need to display the shooting of the first camera on the preview interface. , only display the image captured by the second camera.
下面结合图2至图5对本申请具体实例进行详细说明。Specific examples of the present application will be described in detail below with reference to FIGS. 2 to 5 .
本申请具体实例中,以电子设备为手机为例,手机包括第一后置摄像头、第二后置摄像头、自由云台和固定云台,其中,第一后置摄像头安装在自由云台上,第二后置摄像头安装在固定云台上。如图2所示,以流光快门拍摄为例的图像拍摄过程可以包括如下步骤:In the specific example of this application, taking the electronic device as a mobile phone as an example, the mobile phone includes a first rear camera, a second rear camera, a free gimbal and a fixed gimbal, wherein the first rear camera is installed on the free gimbal, The second rear camera is mounted on a fixed gimbal. As shown in FIG. 2 , the image capturing process using streamer shutter shooting as an example may include the following steps:
步骤201:手机基于用户输入,开启相机应用,打开第一后置摄像头和第二后置摄像头,并进入双云台拍摄模式。Step 201: Based on the user input, the mobile phone starts the camera application, turns on the first rear camera and the second rear camera, and enters the dual-camera shooting mode.
如图3所示,在手机开启相机应用,打开后置摄像头之后,手机界面上可显示出供用户选择的是否进入双云台拍摄模式的信息。在用户点击“专业”按钮之后,即可进入双云台拍摄模式。As shown in FIG. 3 , after the camera application is opened on the mobile phone and the rear camera is turned on, the interface of the mobile phone can display information for the user to choose whether to enter the dual-header shooting mode. After the user clicks the "Pro" button, they can enter the dual-head shooting mode.
步骤202:手机基于用户点击拍摄按钮的操作,接收用于触发图像拍摄的输入,并开始进行图像拍摄。Step 202: The mobile phone receives an input for triggering image shooting based on the user's operation of clicking the shooting button, and starts image shooting.
由于双云台拍摄模式下,自由云台和固定云台同时生效,自由云台会将当前拍摄的图像锁定,当手机在一定范围移动时,自由云台也会进行对应的移动,保证拍摄的实际位置相同。因此当用户开始进行流光快门的拍摄时,需要按下拍摄按钮,按下后立即开始图像拍摄。Since in the dual-gimbal shooting mode, the free gimbal and the fixed gimbal take effect at the same time, and the free gimbal will lock the currently captured image. The actual location is the same. Therefore, when the user starts to shoot the streamer shutter, the user needs to press the shooting button, and the image shooting starts immediately after pressing the button.
步骤203:在图像拍摄过程中,手机移动,自由云台控制第一后置摄像头的实际拍摄位置不变,即锁定起始拍摄位置,并缓存第一后置摄像头拍摄的第一图像。Step 203: During the image shooting process, the mobile phone moves, and the actual shooting position of the first rear camera controlled by the free gimbal remains unchanged, that is, the initial shooting position is locked, and the first image captured by the first rear camera is cached.
步骤204:在图像拍摄过程中,手机移动,固定云台控制第二后置摄像头随着手机同步移动,即手机与第二后置摄像头保持相对静止,并缓存第二后置摄像头拍摄的第二图像。Step 204: During the image capturing process, the mobile phone moves, and the fixed PTZ controls the second rear camera to move synchronously with the mobile phone, that is, the mobile phone and the second rear camera remain relatively stationary, and the second rear camera captured by the second rear camera is cached. image.
其中,在拍摄流光快门的过程中,经常需要长时间的曝光,在这个过程中,固定云台就能提供适当的防抖效果,不需要额外使用固定设备。Among them, in the process of shooting the streamer shutter, a long exposure is often required. In this process, a fixed gimbal can provide a proper anti-shake effect, and no additional fixed equipment is required.
步骤205:判断自由云台的旋转角度是否达到预设阈值,或者是否接收到用于触发停止图像拍摄的输入。Step 205: Determine whether the rotation angle of the free pan/tilt head reaches a preset threshold, or whether an input for triggering stop of image capturing is received.
一种实施方式中,由于自由云台并不能无休止地抵消摄像头的位移,因此在手机移动过程中,可以通过如图4所示的手机界面上的矩形框来展现自由云台的转动情况,以便用户了解自由云台移动情况。In one embodiment, since the free gimbal cannot endlessly offset the displacement of the camera, during the movement of the mobile phone, the rotation of the free gimbal can be displayed through the rectangular frame on the mobile phone interface as shown in FIG. 4 . In order for users to understand the movement of the free PTZ.
在拍摄流光快门的光绘场景时,自由云台已经锁定了起始拍摄位置,随着用户开始绘制光绘的图案,拍摄用户开始把手机进行对应的移动,直到完成整个图案的绘制。在拍摄过程中,手机应用需要判断是否达到了自由云台旋转的最大值。假设自由云台最大的旋转角度为T,当手机开始移动时,自由云台会通过自身的转动,锁定起始拍摄位置,当自由云台旋转的角度达到T时,说明达到了拍摄的极限,如果继续旋转,则自由云台无法再锁定拍摄的起始位置了。当用户再次按下拍摄按钮即输入拍摄停止指令,或者旋转达到自由云台的极限时,拍摄完成,进入步骤206。When shooting the light painting scene of the streamer shutter, the free gimbal has locked the starting shooting position. As the user starts to draw the light painting pattern, the shooting user starts to move the mobile phone correspondingly until the entire pattern is drawn. During the shooting process, the mobile phone application needs to determine whether the maximum free gimbal rotation has been reached. Assuming that the maximum rotation angle of the free gimbal is T, when the mobile phone starts to move, the free gimbal will lock the starting shooting position through its own rotation. When the rotation angle of the free gimbal reaches T, it means that the shooting limit has been reached. If you continue to rotate, the free head can no longer lock to the starting position of the shot. When the user presses the shooting button again to input a shooting stop instruction, or when the rotation reaches the limit of the free pan/tilt head, the shooting is completed, and the process proceeds to step 206 .
步骤206:拍摄完成之后,读出第一后置摄像头拍摄的第一图像,并从中选取第一目标图像,和读出第二后置摄像头拍摄的第二图像,并从中选取多帧第二目标图像。Step 206: After the shooting is completed, read out the first image captured by the first rear camera, and select the first target image from it, and read out the second image captured by the second rear camera, and select multiple frames of the second target from there image.
由于自由云台一直锁定着拍摄的起始位置,拍摄的图像更为重要,而固定云台随着手机转动拍摄,补充了更多的细节。因此,在读出这两个云台对应的图像时,自由云台对应的图像选最清晰的即可,而固定云台对应的图像是不同场景下的图像,需要选取不同旋转角度下的多帧图像。Since the free gimbal is always locked to the starting position of the shooting, the captured image is more important, while the fixed gimbal rotates with the phone to shoot, adding more details. Therefore, when reading out the images corresponding to the two PTZs, the image corresponding to the free PTZ can be selected the clearest, while the images corresponding to the fixed PTZ are images in different scenarios, and it is necessary to select the images corresponding to different rotation angles. frame image.
步骤207:对第一目标图像和多帧第二目标图像进行合成,得到合成图像。Step 207: Synthesize the first target image and multiple frames of the second target image to obtain a combined image.
比如,如图5所示,左一为自由云台拍摄的第一图像,由于拍摄了多帧,可以通过点击该区域,弹出保存的一系列比较清晰的图像,并基于用户输入选取最清晰的图像。左二和左三是通过固定云台与手机旋转得到的扩展的图像,可以由用户自由选择,补充起始拍摄场景之外的更多的场景。用户选择了需要合成的图像后,由后台完成图像的合成。这样通过对图5所示的三帧图像进行合成,可以得到合成图像。For example, as shown in Figure 5, the first image on the left is the first image taken by the free gimbal. Since multiple frames were taken, you can click on this area to pop up a series of relatively clear images saved, and select the clearest image based on user input. image. The second from the left and the third from the left are the extended images obtained by rotating the fixed gimbal and the mobile phone, which can be freely selected by the user to supplement more scenes than the initial shooting scene. After the user selects an image to be synthesized, the image is synthesized in the background. In this way, a composite image can be obtained by synthesizing the three frames of images shown in FIG. 5 .
之后,若用户继续拍摄图像,则返回执行步骤202,否则退出相机结束。After that, if the user continues to capture images, return to step 202; otherwise, exit the camera and end.
这样,本申请实例通过自由云台和固定云台,既锁定了起始的拍摄位置,又可以补充手机开始旋转后的图像部分,最后通过图像的合成,完成多帧场景下的拍摄。In this way, the example of the present application uses the free gimbal and the fixed gimbal to not only lock the initial shooting position, but also supplement the image part after the mobile phone starts to rotate, and finally complete the shooting in a multi-frame scene through image synthesis.
需要说明的是,本申请实施例提供的图像拍摄方法,执行主体可以为图像拍摄装置,或者该图像拍摄装置中的用于执行图像拍摄方法的控制模块。本申请实施例中以图像拍摄装置执行图像拍摄方法为例,说明本申请实施例提供的图像拍摄装置。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 image capturing method. In the embodiment of the present application, the image capturing device provided by the embodiment of the present application is described by taking the image capturing method performed by the image capturing device as an example.
请参见图6,图6是本申请实施例提供的一种图像拍摄装置的结构示意图,应用于电子设备。电子设备可以包括第一摄像头、第二摄像头、自由云台和固定云台。其中,第一摄像头安装在自由云台上,第二摄像头安装在固定云台上。自由云台和固定云台都是安装、固定摄像头的支撑设备,可以起到防抖动的效果。在图像拍摄过程中,自由云台控制第一摄像头的实际拍摄位置不变,固定云台控制第二摄像头随着电子设备同步移动。如图6所示,该图像拍摄装置60包括:Please refer to FIG. 6. FIG. 6 is a schematic structural diagram of an image capturing apparatus provided by an embodiment of the present application, which is applied to an electronic device. The electronic device may include a first camera, a second camera, a free pan/tilt and a fixed pan/tilt. Among them, the first camera is installed on the free pan-tilt, and the second camera is mounted on the fixed pan-tilt. Both the free gimbal and the fixed gimbal are support devices for installing and fixing the camera, which can achieve the effect of anti-shake. During the image shooting process, the actual shooting position of the first camera controlled by the free PTZ remains unchanged, and the fixed PTZ controls the second camera to move synchronously with the electronic device. As shown in FIG. 6, the image capturing device 60 includes:
接收模块61,用于接收用于触发图像拍摄的第一输入;a receiving module 61, configured to receive a first input for triggering image shooting;
获取模块62,用于响应于所述第一输入,获取所述第一摄像头拍摄的多帧第一图像,和获取所述第二摄像头拍摄的多帧第二图像;an acquisition module 62, configured to acquire, in response to the first input, multiple frames of first images captured by the first camera, and multiple frames of second images captured by the second camera;
合成模块63,用于对所述多帧第一图像和所述多帧第二图像进行合成,得到合成图像。The synthesis module 63 is used for synthesizing the multiple frames of the first images and the multiple frames of the second images to obtain a synthesized image.
可选的,所述合成模块63包括:Optionally, the synthesis module 63 includes:
选择单元,用于从所述多帧第一图像中选择第一目标图像,和从所述多帧第二图像中选择多帧第二目标图像;a selection unit for selecting a first target image from the multiple frames of the first image, and selecting multiple frames of the second target image from the multiple frames of the second image;
合成单元,用于利用所述多帧第二目标图像对所述第一目标图像进行图像内容补充,得到所述合成图像;a synthesizing unit, configured to supplement the image content of the first target image by using the multiple frames of the second target image to obtain the composite image;
其中,所述第一目标图像为所述多帧第一图像中的清晰度最高的图像;所述多帧第二目标图像分别为所述第二摄像头在旋转至不同角度时拍摄的图像。The first target image is an image with the highest definition among the multiple frames of the first image; the multiple frames of the second target image are images captured by the second camera when rotated to different angles.
可选的,该图像拍摄装置60还包括:Optionally, the image capturing device 60 further includes:
控制模块,用于在监测到所述自由云台的旋转角度达到所述预设阈值, 或者接收到用于触发停止图像拍摄的输入的情况下,停止拍摄过程。The control module is configured to stop the photographing process when it is monitored that the rotation angle of the free pan/tilt head reaches the preset threshold, or an input for triggering stop of image photographing is received.
可选的,所述选择单元包括:Optionally, the selection unit includes:
接收子单元,用于接收对所述多帧第一图像和所述多帧第二图像的第二输入;a receiving subunit for receiving a second input to the multiple frames of the first image and the multiple frames of the second image;
选择子单元,用于响应于所述第二输入,从所述多帧第一图像中选择第一目标图像,和从所述多帧第二图像中选择所述多帧第二目标图像。A selection subunit for selecting a first target image from the plurality of frames of first images and selecting the plurality of frames of second target images from the plurality of frames of second images in response to the second input.
可选的,该图像拍摄装置60还包括:Optionally, the image capturing device 60 further includes:
展示模块,用于在预览界面上展示所述第二摄像头拍摄的图像。The display module is configured to display the image captured by the second camera on the preview interface.
本申请实施例中的图像拍摄装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(Ultra-Mobile Personal Computer,UMPC)、上网本或者个人数字助理(Personal Digital Assistant,PDA)等,非移动电子设备可以为个人计算机(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., the non-mobile electronic device may be a personal computer (Personal Computer, PC), a television (Television, TV), a teller machine or a self-service machine, etc., which are not specifically limited in the embodiments of the present application.
本申请实施例中的图像拍摄装置可以为具有操作***的装置。该操作***可以为安卓(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.
本申请实施例提供的图像拍摄装置60能够实现图1所示的方法实施例实现的各个过程,且达到相同的技术效果,为避免重复,这里不再赘述。The image capturing apparatus 60 provided in this embodiment of the present application can implement each process implemented by the method embodiment shown in FIG. 1 , and achieve the same technical effect. To avoid repetition, details are not described here.
可选的,如图7所示,本申请实施例还提供一种电子设备700,包括处理器701,存储器702,存储在存储器702上并可在所述处理器701上运行的程序或指令,该程序或指令被处理器701执行时实现上述图像拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 7 , an embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, a program or instruction stored in the memory 702 and executable on the processor 701, When the program or instruction is executed by the processor 701, each process of the above-mentioned image capturing method embodiment can be realized, and the same technical effect can be achieved. To avoid repetition, details are not described 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.
图8为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、 接口单元808、存储器809、以及处理器810等部件。The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810, etc. part.
在本申请实施例中,输入单元804可以包括摄像组件8041。该摄像组件8041可以包括第一摄像头、第二摄像头、自由云台和固定云台。其中,第一摄像头安装在自由云台上,自由云台在图像拍摄过程中控制第一摄像头的实际拍摄位置不变。第二摄像头安装在固定云台上,固定云台在图像拍摄过程中控制第二摄像头随着电子设备800同步移动。In this embodiment of the present application, the input unit 804 may include a camera assembly 8041 . The camera assembly 8041 may include a first camera, a second camera, a free pan-tilt and a fixed pan-tilt. Wherein, the first camera is installed on the free pan-tilt, and the free pan-tilt controls the actual shooting position of the first camera to remain unchanged during the image shooting process. The second camera is installed on the fixed pan-tilt, and the fixed pan-tilt controls the second camera to move synchronously with the electronic device 800 during the image capturing process.
本领域技术人员可以理解,电子设备800还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理***与处理器810逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 800 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 810 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 structure of the electronic device shown in FIG. 8 does not constitute a limitation on 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. .
其中,用户输入单元807,用于接收用于触发图像拍摄的第一输入;Wherein, the user input unit 807 is configured to receive a first input for triggering image shooting;
处理器810,用于响应于所述第一输入,获取所述第一摄像头拍摄的多帧第一图像,和获取所述第二摄像头拍摄的多帧第二图像;对所述多帧第一图像和所述多帧第二图像进行合成,得到合成图像。The processor 810 is configured to, in response to the first input, acquire multiple frames of first images captured by the first camera, and acquire multiple frames of second images captured by the second camera; The image and the multiple frames of second images are combined to obtain a combined image.
可选的,处理器810,还用于从所述多帧第一图像中选择第一目标图像,和从所述多帧第二图像中选择多帧第二目标图像;利用所述多帧第二目标图像对所述第一目标图像进行图像内容补充,得到所述合成图像;其中,所述第一目标图像为所述多帧第一图像中的清晰度最高的图像;所述多帧第二目标图像分别为所述第二摄像头在旋转至不同角度时拍摄的图像。Optionally, the processor 810 is further configured to select a first target image from the multiple frames of first images, and select multiple frames of second target images from the multiple frames of second images; using the multiple frames of the first image The second target image supplements the image content of the first target image to obtain the composite image; wherein, the first target image is the image with the highest definition among the multiple frames of first images; the multiple frames of the first image The two target images are respectively images captured by the second camera when rotated to different angles.
可选的,处理器810,还用于在监测到所述自由云台的旋转角度达到所述预设阈值,或者用户输入单元807接收到用于触发停止图像拍摄的输入的情况下,停止拍摄过程。Optionally, the processor 810 is further configured to stop shooting when it is monitored that the rotation angle of the free pan/tilt head reaches the preset threshold, or the user input unit 807 receives an input for triggering stop of image shooting. process.
可选的,用户输入单元807,还用于接收对所述多帧第一图像和所述多帧第二图像的第二输入;Optionally, the user input unit 807 is further configured to receive a second input to the multiple frames of the first image and the multiple frames of the second image;
处理器810,还用于响应于所述第二输入,从所述多帧第一图像中选择第一目标图像,和从所述多帧第二图像中选择所述多帧第二目标图像。The processor 810 is further configured to, in response to the second input, select a first target image from the multiple frames of first images, and select the multiple frames of second target images from the multiple frames of second images.
可选的,显示单元806,用于在预览界面上展示第二摄像头拍摄的图像。Optionally, the display unit 806 is configured to display the image captured by the second camera on the preview interface.
本申请实施例提供的电子设备800能够实现图1所示的方法实施例实现 的各个过程,且达到相同的技术效果,为避免重复,这里不再赘述。The electronic device 800 provided in this embodiment of the present application can implement the various processes implemented by the method embodiment shown in FIG. 1 , and achieve the same technical effect. In order to avoid repetition, details are not repeated here.
应理解的是,本申请实施例中,输入单元804还可以包括图形处理器(Graphics Processing Unit,GPU)8042和麦克风8043,图形处理器8042对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像组件8041)获得的静态图片或视频的图像数据进行处理。显示单元806可包括显示面板8061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板8061。用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器809可用于存储软件程序以及各种数据,包括但不限于应用程序和操作***。处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。It should be understood that, in this embodiment of the present application, the input unit 804 may further include a graphics processor (Graphics Processing Unit, GPU) 8042 and a microphone 8043, and the graphics processor 8042 is used to communicate with the image capture device in the video capture mode or the image capture mode (eg, the camera component 8041) to process image data of still pictures or videos. The display unit 806 may include a display panel 8061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072 . The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts, a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described herein again. Memory 809 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 810.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述图像拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。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, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述图像拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。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.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如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.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this disclosure.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的***、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直 接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。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 (15)

  1. 一种图像拍摄方法,应用于电子设备,所述电子设备包括第一摄像头、第二摄像头、自由云台和固定云台;所述第一摄像头安装在所述自由云台上,所述第二摄像头安装在所述固定云台上;所述方法包括:An image capturing method, applied to an electronic device, the electronic device includes a first camera, a second camera, a free pan/tilt and a fixed pan/tilt; the first camera is installed on the free pan/tilt, the second camera The camera is installed on the fixed pan/tilt; the method includes:
    接收用于触发图像拍摄的第一输入;receiving a first input for triggering image capture;
    响应于所述第一输入,获取所述第一摄像头拍摄的多帧第一图像,和获取所述第二摄像头拍摄的多帧第二图像;其中,在图像拍摄过程中,所述自由云台控制所述第一摄像头的实际拍摄位置不变,所述固定云台控制所述第二摄像头随着所述电子设备同步移动;In response to the first input, acquiring multiple frames of first images captured by the first camera, and acquiring multiple frames of second images captured by the second camera; wherein, during the image capturing process, the free pan/tilt head The actual shooting position of the first camera is controlled to remain unchanged, and the fixed PTZ controls the second camera to move synchronously with the electronic device;
    对所述多帧第一图像和所述多帧第二图像进行合成,得到合成图像。The multiple frames of the first images and the multiple frames of the second images are combined to obtain a combined image.
  2. 根据权利要求1所述的方法,其中,所述对所述多帧第一图像和所述多帧第二图像进行合成,得到合成图像,包括:The method according to claim 1, wherein the combining the multiple frames of the first images and the multiple frames of the second images to obtain a combined image comprises:
    从所述多帧第一图像中选择第一目标图像,和从所述多帧第二图像中选择多帧第二目标图像;selecting a first target image from the plurality of first images, and selecting a plurality of second target images from the plurality of second images;
    利用所述多帧第二目标图像对所述第一目标图像进行图像内容补充,得到所述合成图像;Using the multiple frames of the second target image to supplement the image content of the first target image to obtain the composite image;
    其中,所述第一目标图像为所述多帧第一图像中的清晰度最高的图像;所述多帧第二目标图像分别为所述第二摄像头在旋转至不同角度时拍摄的图像。The first target image is an image with the highest definition among the multiple frames of the first image; the multiple frames of the second target image are images captured by the second camera when rotated to different angles.
  3. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    在监测到所述自由云台的旋转角度达到预设阈值,或者接收到用于触发停止图像拍摄的输入的情况下,停止拍摄过程。When it is monitored that the rotation angle of the free pan/tilt head reaches a preset threshold, or an input for triggering the stop of image capturing is received, the capturing process is stopped.
  4. 根据权利要求2所述的方法,其中,所述从所述多帧第一图像中选择第一目标图像,和从所述多帧第二图像中选择多帧第二目标图像,包括:The method of claim 2, wherein the selecting a first target image from the plurality of first images and selecting a plurality of second target images from the plurality of second images comprises:
    接收对所述多帧第一图像和所述多帧第二图像的第二输入;receiving a second input to the plurality of frames of first images and the plurality of frames of second images;
    响应于所述第二输入,从所述多帧第一图像中选择第一目标图像,和从所述多帧第二图像中选择所述多帧第二目标图像。In response to the second input, a first target image is selected from the plurality of frames of first images, and the plurality of frames of second target images are selected from the plurality of frames of second images.
  5. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    在预览界面上展示所述第二摄像头拍摄的图像。The image captured by the second camera is displayed on the preview interface.
  6. 一种图像拍摄装置,应用于电子设备,所述电子设备包括第一摄像头、第二摄像头、自由云台和固定云台;所述第一摄像头安装在所述自由云台上,所述第二摄像头安装在所述固定云台上;所述装置包括:An image capturing device is applied to electronic equipment, the electronic equipment includes a first camera, a second camera, a free pan-tilt and a fixed pan-tilt; the first camera is installed on the free pan-tilt, the second camera The camera is installed on the fixed pan/tilt; the device includes:
    接收模块,用于接收用于触发图像拍摄的第一输入;a receiving module for receiving a first input for triggering image shooting;
    获取模块,用于响应于所述第一输入,获取所述第一摄像头拍摄的多帧第一图像,和获取所述第二摄像头拍摄的多帧第二图像;其中,在图像拍摄过程中,所述自由云台控制所述第一摄像头的实际拍摄位置不变,所述固定云台控制所述第二摄像头随着所述电子设备同步移动;an acquisition module, configured to acquire, in response to the first input, multiple frames of first images captured by the first camera, and multiple frames of second images captured by the second camera; wherein, during the image capturing process, The free PTZ controls the actual shooting position of the first camera to remain unchanged, and the fixed PTZ controls the second camera to move synchronously with the electronic device;
    合成模块,用于对所述多帧第一图像和所述多帧第二图像进行合成,得到合成图像。The synthesis module is used for synthesizing the multiple frames of the first images and the multiple frames of the second images to obtain a synthesized image.
  7. 根据权利要求6所述的装置,其中,所述合成模块包括:The apparatus of claim 6, wherein the synthesis module comprises:
    选择单元,用于从所述多帧第一图像中选择第一目标图像,和从所述多帧第二图像中选择多帧第二目标图像;a selection unit for selecting a first target image from the multiple frames of the first image, and selecting multiple frames of the second target image from the multiple frames of the second image;
    合成单元,用于利用所述多帧第二目标图像对所述第一目标图像进行图像内容补充,得到所述合成图像;a synthesizing unit, configured to supplement the image content of the first target image by using the multiple frames of the second target image to obtain the composite image;
    其中,所述第一目标图像为所述多帧第一图像中的清晰度最高的图像;所述多帧第二目标图像分别为所述第二摄像头在旋转至不同角度时拍摄的图像。The first target image is an image with the highest definition among the multiple frames of the first image; the multiple frames of the second target image are images captured by the second camera when rotated to different angles.
  8. 根据权利要求6所述的装置,其中,所述装置还包括:The apparatus of claim 6, wherein the apparatus further comprises:
    控制模块,用于在监测到所述自由云台的旋转角度达到预设阈值,或者接收到用于触发停止图像拍摄的输入的情况下,停止拍摄过程。The control module is configured to stop the photographing process when it is monitored that the rotation angle of the free pan/tilt head reaches a preset threshold, or an input for triggering stop of image photographing is received.
  9. 根据权利要求7所述的装置,其中,所述选择单元包括:The apparatus of claim 7, wherein the selection unit comprises:
    接收子单元,用于接收对所述多帧第一图像和所述多帧第二图像的第二输入;a receiving subunit for receiving a second input to the multiple frames of the first image and the multiple frames of the second image;
    选择子单元,用于响应于所述第二输入,从所述多帧第一图像中选择第一目标图像,和从所述多帧第二图像中选择所述多帧第二目标图像。A selection subunit for selecting a first target image from the plurality of frames of first images and selecting the plurality of frames of second target images from the plurality of frames of second images in response to the second input.
  10. 根据权利要求6所述的装置,其中,所述装置还包括:The apparatus of claim 6, wherein the apparatus further comprises:
    展示模块,用于在预览界面上展示所述第二摄像头拍摄的图像。The display module is configured to display the image captured by the second camera on the preview interface.
  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 claim 1 The steps of the image capturing method described in any one of -5.
  12. 一种可读存储介质,其中,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-5中任一项所述的图像拍摄方法的步骤。A readable storage medium, wherein a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the image capturing method according to any one of claims 1-5 are implemented .
  13. 一种芯片,包括处理器和通信接口,其中,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-5中任一项所述的图像拍摄方法的步骤。A chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used for running a program or an instruction to realize the image capturing according to any one of claims 1-5 steps of the method.
  14. 一种计算机程序产品,其中,所述计算机程序产品被存储在非瞬态的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如权利要求1-5中任一项所述的图像拍摄方法的步骤。A computer program product, wherein the computer program product is stored in a non-transitory storage medium, the computer program product being executed by at least one processor to implement the method of any one of claims 1-5 The steps of the image capturing method.
  15. 一种终端,被配置为执行如权利要求1-5中任一项所述的图像拍摄方法的步骤。A terminal configured to perform the steps of the image capturing method according to any one of claims 1-5.
PCT/CN2021/134312 2020-12-07 2021-11-30 Image photographing method and apparatus, and electronic device and readable storage medium WO2022121731A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2023532574A JP2023551037A (en) 2020-12-07 2021-11-30 Image capture methods, devices, electronic equipment and readable storage media
EP21902438.7A EP4258648A4 (en) 2020-12-07 2021-11-30 Image photographing method and apparatus, and electronic device and readable storage medium
KR1020237023017A KR102683253B1 (en) 2020-12-07 2021-11-30 Imaging methods, devices, electronics and readable storage media
US18/326,663 US20230328367A1 (en) 2020-12-07 2023-05-31 Image shooting method and apparatus, electronic device, and readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011429676.4A CN112492214B (en) 2020-12-07 2020-12-07 Image shooting method and device, electronic equipment and readable storage medium
CN202011429676.4 2020-12-07

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/326,663 Continuation US20230328367A1 (en) 2020-12-07 2023-05-31 Image shooting method and apparatus, electronic device, and readable storage medium

Publications (1)

Publication Number Publication Date
WO2022121731A1 true WO2022121731A1 (en) 2022-06-16

Family

ID=74940032

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/134312 WO2022121731A1 (en) 2020-12-07 2021-11-30 Image photographing method and apparatus, and electronic device and readable storage medium

Country Status (5)

Country Link
US (1) US20230328367A1 (en)
EP (1) EP4258648A4 (en)
JP (1) JP2023551037A (en)
CN (1) CN112492214B (en)
WO (1) WO2022121731A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492214B (en) * 2020-12-07 2022-05-24 维沃移动通信有限公司 Image shooting method and device, electronic equipment and readable storage medium
CN113163130B (en) * 2021-03-25 2023-04-07 维沃移动通信有限公司 Shooting auxiliary equipment, image pair acquisition calibration method and electronic equipment
CN113473004B (en) * 2021-06-16 2023-05-23 维沃移动通信(杭州)有限公司 Shooting method and device
CN114143462A (en) * 2021-11-30 2022-03-04 维沃移动通信有限公司 Shooting method and device
CN114339047A (en) * 2021-12-31 2022-04-12 维沃移动通信有限公司 Shooting control method and device, electronic equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554383A (en) * 2015-12-17 2016-05-04 努比亚技术有限公司 Mobile terminal and method for controlling camera shooting by utilizing mobile terminal
KR20170057058A (en) * 2015-11-16 2017-05-24 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN107566738A (en) * 2017-10-13 2018-01-09 维沃移动通信有限公司 A kind of panorama shooting method, mobile terminal and computer-readable recording medium
CN109639975A (en) * 2018-12-24 2019-04-16 维沃移动通信有限公司 A kind of filming control method and mobile terminal
CN110290300A (en) * 2019-06-28 2019-09-27 Oppo广东移动通信有限公司 Equipment imaging method, device, storage medium and electronic equipment
WO2019208915A1 (en) * 2018-04-25 2019-10-31 삼성전자 주식회사 Electronic device for acquiring image using plurality of cameras through position adjustment of external device, and method therefor
CN112492214A (en) * 2020-12-07 2021-03-12 维沃移动通信有限公司 Image shooting method and device, electronic equipment and readable storage medium

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101782713B (en) * 2009-01-21 2014-12-10 北京华旗资讯数码科技有限公司 Full-view image shooting device
CN103763519A (en) * 2013-12-31 2014-04-30 南宁市公安局 Automatic monitoring method based on multiple cameras
CN103727372A (en) * 2014-01-17 2014-04-16 李永亮 In-vehicle bird-shooting fixing support
CN105635555B (en) * 2014-11-07 2020-12-29 青岛海尔智能技术研发有限公司 Camera focusing control method, camera shooting device and wearable intelligent terminal
US10567641B1 (en) * 2015-01-19 2020-02-18 Devon Rueckner Gaze-directed photography
CN105467741B (en) * 2015-12-16 2019-01-29 魅族科技(中国)有限公司 A kind of panorama photographic method and terminal
CN105611187A (en) * 2015-12-22 2016-05-25 歌尔声学股份有限公司 Image wide dynamic compensation method and system based on double cameras
CN105657103A (en) * 2016-03-22 2016-06-08 北京奇虎科技有限公司 Mobile terminal with two cameras
CN106412439B (en) * 2016-10-27 2020-01-07 北京小米移动软件有限公司 Image acquisition equipment, image acquisition method and controller
CN106791419A (en) * 2016-12-30 2017-05-31 大连海事大学 A kind of supervising device and method for merging panorama and details
KR102378472B1 (en) * 2017-08-10 2022-03-25 삼성전자주식회사 Method for capturing image using camera including driving device capable of rotating mirror and electronic device
CN109348091A (en) * 2018-09-19 2019-02-15 天津卓扬世纪集团有限公司 A kind of mobile phone camera
CN208900983U (en) * 2018-09-25 2019-05-24 穷奇科技石家庄有限责任公司 Rotating pick-up device
CN210401976U (en) * 2019-09-12 2020-04-24 北京字节跳动网络技术有限公司 Cloud platform camera
CN111862169B (en) * 2020-06-22 2024-04-09 上海摩象网络科技有限公司 Target follow-up method and device, cradle head camera and storage medium
CN112040126A (en) * 2020-08-31 2020-12-04 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170057058A (en) * 2015-11-16 2017-05-24 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN105554383A (en) * 2015-12-17 2016-05-04 努比亚技术有限公司 Mobile terminal and method for controlling camera shooting by utilizing mobile terminal
CN107566738A (en) * 2017-10-13 2018-01-09 维沃移动通信有限公司 A kind of panorama shooting method, mobile terminal and computer-readable recording medium
WO2019208915A1 (en) * 2018-04-25 2019-10-31 삼성전자 주식회사 Electronic device for acquiring image using plurality of cameras through position adjustment of external device, and method therefor
CN109639975A (en) * 2018-12-24 2019-04-16 维沃移动通信有限公司 A kind of filming control method and mobile terminal
CN110290300A (en) * 2019-06-28 2019-09-27 Oppo广东移动通信有限公司 Equipment imaging method, device, storage medium and electronic equipment
CN112492214A (en) * 2020-12-07 2021-03-12 维沃移动通信有限公司 Image shooting method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
JP2023551037A (en) 2023-12-06
US20230328367A1 (en) 2023-10-12
KR20230117422A (en) 2023-08-08
CN112492214A (en) 2021-03-12
EP4258648A1 (en) 2023-10-11
CN112492214B (en) 2022-05-24
EP4258648A4 (en) 2024-07-03

Similar Documents

Publication Publication Date Title
WO2022121731A1 (en) Image photographing method and apparatus, and electronic device and readable storage medium
US10136069B2 (en) Apparatus and method for positioning image area using image sensor location
CN108495032B (en) Image processing method, image processing device, storage medium and electronic equipment
WO2022262720A1 (en) Photographing method and device
US20230111361A1 (en) Method and apparatus for processing video data
WO2022206499A1 (en) Image capture method and apparatus, electronic device and readable storage medium
CN113840070B (en) Shooting method, shooting device, electronic equipment and medium
US20240129620A1 (en) Video Shooting Method and Electronic Device
KR20140106265A (en) Apparatus and method for processing a image in device
US20150271388A1 (en) Photographing Starting Apparatus And Method For Built-In Camera Of Portable Data Processing Device
WO2022237839A1 (en) Photographing method and apparatus, and electronic device
WO2022078241A1 (en) Photographing method and apparatus, and electronic device
CN114125179B (en) Shooting method and device
US20180035170A1 (en) Method and device for controlling playing state
WO2023134583A1 (en) Video recording method and apparatus, and electronic device
WO2022222002A1 (en) Photographing device and control method thereof, and storage medium
WO2024061134A1 (en) Photographing method and apparatus, electronic device, and medium
CN112214621A (en) Image viewing method and electronic equipment
WO2023005908A1 (en) Photographing method and apparatus, device, and storage medium
CN111586305A (en) Anti-shake method, anti-shake device and electronic equipment
WO2022095878A1 (en) Photographing method and apparatus, and electronic device and readable storage medium
KR102683253B1 (en) Imaging methods, devices, electronics and readable storage media
CN112887624B (en) Shooting method and device and electronic equipment
CN112653841B (en) Shooting method and device and electronic equipment
CN114245018A (en) Image shooting method and device

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2023532574

Country of ref document: JP

ENP Entry into the national phase

Ref document number: 20237023017

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021902438

Country of ref document: EP

Effective date: 20230707