WO2023071948A1 - 一种图像拍摄方法与相关设备 - Google Patents

一种图像拍摄方法与相关设备 Download PDF

Info

Publication number
WO2023071948A1
WO2023071948A1 PCT/CN2022/126806 CN2022126806W WO2023071948A1 WO 2023071948 A1 WO2023071948 A1 WO 2023071948A1 CN 2022126806 W CN2022126806 W CN 2022126806W WO 2023071948 A1 WO2023071948 A1 WO 2023071948A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
shooting
camera
electronic device
area
Prior art date
Application number
PCT/CN2022/126806
Other languages
English (en)
French (fr)
Inventor
卢跃东
林尤辉
周学而
魏凡翔
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023071948A1 publication Critical patent/WO2023071948A1/zh

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/63Control of cameras or camera modules by using electronic viewfinders
    • 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/69Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming
    • 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/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

Definitions

  • the present application relates to the technical field of terminals, and in particular to an image capturing method and related equipment.
  • an electronic device is provided with a wide-angle camera, and the wide-angle camera is used to capture panoramic images.
  • the image resolution capability that is, camera resolution
  • the panoramic image captured by the wide-angle camera contains more scenes, the details of the image are not clear enough, which affects the shooting experience.
  • the present application provides an image capturing method and related equipment for improving image capturing experience.
  • an image capturing method is provided. This method is suitable for electronic equipment.
  • the electronic device includes a first camera and a second camera, and the method includes: in response to the first operation, displaying a shooting interface, where a first image is displayed in the shooting interface, and the first image is captured by the first camera image; in response to the second operation, a second image is obtained by shooting, the second image is obtained based on the first image and the third image, the third image is captured by the second camera, and the There is an overlapping area between the third image and the first image, and at least one same object is included in the overlapping area; wherein, the second shooting parameter used when the second camera shoots the third image is the same as that of the first The first shooting parameters used when the camera shoots the first image are related.
  • the first camera on the electronic device captures the first image
  • the second camera captures the third image
  • the second image is obtained through the third image and the first image.
  • the third image is fused with the first image to obtain the second image, so that the image quality of the second image is improved compared with the first image, which can improve the shooting experience.
  • the second shooting parameter when the second camera shoots the third image is related to the first shooting parameter when the first camera shoots the first image
  • the third image and the first image can be more fused, further improving The image quality of the second image.
  • the first camera is a wide-angle camera
  • the second camera is a telephoto camera
  • the image analysis capability (i.e. camera resolution) of the wide-angle camera is weak, so although the panoramic image captured by the wide-angle camera contains more scenes, the image definition is low, while the image analysis ability (i.e. camera resolution) of the telephoto camera is relatively weak. rate) is strong, so the resolution of the image captured by the telephoto camera is relatively high.
  • the electronic device obtains the second image based on the image captured by the telephoto camera (the third image) and the panoramic image (ie, the first image) captured by the wide-angle camera. In this way, the second image can have a large viewing angle , can also have higher definition.
  • the first shooting parameters include: at least one of a first exposure time, a first aperture number, a first sensitivity, a first white balance, a first object distance, and a first focal length; And/or, the second shooting parameter includes: at least one of a second exposure time, a second aperture number, a second sensitivity, a second white balance, a second object distance, and a second focal length. It should be noted that this is an example of shooting parameters, and may include more or fewer parameters, such as saturation, color temperature, filter, etc., as long as the second shooting parameters are related to the first shooting parameters.
  • the shooting by the second camera is related to the first shooting parameter, including at least one of the following:
  • the difference between the second degree of white balance and the first degree of white balance is smaller than a first threshold
  • a difference between the second focal length and the first focal length is less than a second threshold
  • a difference between the second object distance and the first object distance is smaller than a third threshold
  • the first exposure time, the first sensitivity and the first f-number and the second exposure time, the second sensitivity and the second f-number satisfy a preset functional relationship.
  • the second shooting parameter when the second camera shoots the third image is related to the first shooting parameter when the first camera shoots the first image, the third image and the first image can be more fused, which can Improve the image quality of the second image.
  • the preset functional relationship includes:
  • S1 is the first sensitivity
  • T1 is the first exposure time
  • A1 is the first aperture number
  • A2 is the second aperture number
  • S2 is the second sensitivity
  • T2 is the second exposure time.
  • the electronic device captures the second image in response to the second operation, including: determining the first region on the first image in response to the second operation; adjusting the shooting of the second camera Angle, so that the shooting object in the first area is within the viewing angle range of the second camera, and the third image is obtained by shooting; on the first image, based on the first image and the third image, the the second image. That is to say, after the electronic device obtains the first image, it determines the first area on the first image, photographs the first area in detail to obtain a third image, and obtains a second image based on the third image and the first image. The details of the first region are supplemented on the second image obtained in this way, and the definition of the first region is improved.
  • the first area satisfies at least one of the following:
  • An area on the first image whose resolution is lower than a preset resolution.
  • the electronic device after the electronic device obtains the first image, it can take detailed photos of the area where the user is interested in, the area set by the user, etc. on the first image, so as to supplement the clarity of these areas. In this way, the definition of the area that the user pays attention to is improved, which helps to improve the shooting experience.
  • the electronic device captures the second image in response to the second operation, including: displaying N shooting instruction points on the first image in response to the second operation, where N is a positive integer; adjusting The shooting angle of the second camera is such that the shooting object in the area where the first shooting point is located among the N shooting pointing points is within the viewing angle range of the second camera, and the third image is obtained by shooting; During the third operation of instructing to shoot, the second image is obtained based on the first image and the third image. That is to say, the electronic device displays N shooting instruction points on the first image, and the user can shoot objects in the area where some shooting instruction points are located, so as to supplement the detail clarity of the area where these shooting instruction points are located.
  • the electronic device captures the second image in response to the second operation, including: displaying N shooting instruction points on the first image in response to the second operation, where N is a positive integer; Adjust the shooting angle of the second camera so that the second camera shoots the objects in the area where each shooting indication point is located to obtain N third images; when it is detected that the shooting of all shooting indication points is completed, The second image is obtained based on the N third images and the first image. That is to say, the electronic device displays N shooting instruction points on the first image, and the electronic device can respectively shoot objects in the area where each shooting instruction point is located to obtain N third images. Based on the N third images and the first image to get the second image.
  • the number of shooting instruction points is related to the first shooting parameter and/or the second shooting parameter; wherein, the number of shooting instruction points includes the number in the horizontal direction and /or the amount in the vertical direction.
  • the number of shooting indication points is related to the first shooting parameter and/or the second shooting parameter, including: the number k1 of the shooting indication points in the horizontal direction is related to the first camera at The viewing angle range in the horizontal direction is related to a ratio of the viewing angle range of the second camera in the horizontal direction.
  • the number k1 of the shooting indication points in the horizontal direction satisfies:
  • W1 is the width of the imaging plane corresponding to the first camera
  • f1 is the focal length of the first camera
  • W2 is the width of the imaging plane corresponding to the second camera
  • f2 is the focal length of the first camera
  • the number of the shooting instruction points is related to the first shooting parameter and/or the second shooting parameter, including: the number k2 of the shooting instruction points in the vertical direction is related to the first shooting parameter
  • the viewing angle range of the camera in the vertical direction is related to a ratio of the viewing angle range of the second camera in the vertical direction.
  • the number k2 of the shooting instruction points in the vertical direction satisfies:
  • h1 is the height of the imaging plane corresponding to the first camera
  • f1 is the focal length of the first camera
  • h2 is the height of the imaging plane corresponding to the second camera
  • f2 is the focal length of the first camera
  • each shooting indication point in the horizontal direction is related to the ratio of the viewing angle range of the first camera in the horizontal direction to the viewing angle range of the second camera in the horizontal direction
  • there are k1 areas corresponding to the horizontal direction and these k1 areas can completely cover the width of the first image (ie, the horizontal width). If each area is supplemented with details, Then it can be ensured that details are supplemented for all regions in the horizontal direction of the first image captured by the first camera.
  • each shooting indication point in the vertical direction is related to the ratio of the viewing angle range of the first camera in the vertical direction to the viewing angle range of the second camera in the vertical direction
  • there are k2 areas corresponding to the vertical direction and these k2 areas can completely cover the height of the first image (that is, the vertical height). If each area is If details are supplemented, it can be ensured that details are supplemented for all areas in the vertical direction of the first image captured by the first camera. In this way, it can be avoided that some areas on the first image have not been supplemented with details, resulting in poor image integrity.
  • an image capturing method is provided, which is applied to a system including a first electronic device and a second electronic device, and the method includes: the first electronic device displays a shooting interface in response to a first operation, and the shooting A first image is displayed on the interface, and the first image is an image collected by a first camera on the second electronic device; the first electronic device responds to the second operation through the first image on the first electronic device
  • the third image is captured by the second camera, and there is an overlapping area between the third image and the first image, and at least one identical object is included in the overlapping area; wherein, when the second camera captures the third image, use
  • the second shooting parameter is related to the first shooting parameter used when the first camera shoots the first image; the first electronic device obtains a second image based on the third image and the first image; or The first electronic device sends the second image to the second electronic device after obtaining a second image based on the third image and the first image.
  • the first shooting parameters include: at least one of a first exposure time, a first aperture number, a first sensitivity, a first white balance, a first object distance, and a first focal length; and / or,
  • the second shooting parameters include: at least one of a second exposure time, a second aperture number, a second sensitivity, a second white balance, a second object distance, and a second focal length.
  • the shooting by the second camera is related to the first shooting parameter, including at least one of the following:
  • the difference between the second degree of white balance and the first degree of white balance is smaller than a first threshold
  • a difference between the second focal length and the first focal length is less than a second threshold
  • a difference between the second object distance and the first object distance is smaller than a third threshold
  • the first exposure time, the first sensitivity and the first f-number and the second exposure time, the second sensitivity and the second f-number satisfy a preset functional relationship.
  • the preset functional relationship includes:
  • S1 is the first sensitivity
  • T1 is the first exposure time
  • A1 is the first aperture number
  • A2 is the second aperture number
  • S2 is the second sensitivity
  • T2 is the second exposure time.
  • the first electronic device in response to the second operation, captures the third image through the second camera on the first electronic device, including: the first electronic device responds to the second Operation, determining a first area on the first image; the first electronic device adjusts the shooting angle of the second camera so that the shooting object in the first area is within the viewing angle range of the second camera , and capture the third image.
  • the first region satisfies at least one of the following:
  • An area on the first image whose resolution is lower than a preset resolution.
  • the first electronic device in response to the second operation, captures the third image through the second camera on the first electronic device, including: the first electronic device responds to the second Operation, displaying N shooting instruction points on the first image, where N is a positive integer; the first electronic device adjusts the shooting angle of the second camera so that the first shooting instruction in the N shooting instruction points The shooting object in the area where the point is located is within the viewing angle range of the second camera, and the third image is obtained by shooting.
  • the first electronic device in response to the second operation, captures the third image through the second camera on the first electronic device, including: the first electronic device responds to the second Operation, displaying N shooting instruction points on the first image; N is a positive integer; the first electronic device sequentially adjusts the shooting angle of the second camera, so that the second camera can control each shooting instruction point The shooting objects in the area are photographed to obtain N third images.
  • the number of shooting instruction points is related to the first shooting parameter and/or the second shooting parameter; wherein, the number of shooting instruction points includes the number in the horizontal direction and /or the amount in the vertical direction.
  • the number of shooting indication points is related to the first shooting parameter and/or the second shooting parameter, including: the number k1 of the shooting indication points in the horizontal direction satisfies :
  • W1 is the width of the imaging plane corresponding to the first camera
  • f1 is the focal length of the first camera
  • W2 is the width of the imaging plane corresponding to the second camera
  • f2 is the focal length of the first camera
  • the number of shooting indication points is related to the first shooting parameter and/or the second shooting parameter, including: the number k2 of the shooting indication points in the vertical direction satisfy:
  • h1 is the height of the imaging plane corresponding to the first camera
  • f1 is the focal length of the first camera
  • h2 is the height of the imaging plane corresponding to the second camera
  • f2 is the focal length of the first camera
  • the first camera is a wide-angle camera
  • the second camera is a telephoto camera
  • a system including: a first electronic device and a second electronic device;
  • the first electronic device includes: a processor; a memory; wherein the memory stores one or more computer programs, and the one or more computer programs include instructions, and when the instructions are executed by the processor, making the first electronic device execute the steps of the first electronic device in the method described in the second aspect above;
  • the second electronic device includes: a processor; a memory; wherein the memory stores one or more computer programs, and the one or more computer programs include instructions, and when the instructions are executed by the processor, Making the second electronic device execute the steps of the second electronic device in the method provided by the second aspect above.
  • an electronic device including:
  • processor memory, and, one or more programs
  • the one or more programs are stored in the memory, the one or more programs include instructions, and when the instructions are executed by the processor, the electronic device performs the above-mentioned first aspect The method steps provided.
  • a computer-readable storage medium the computer-readable storage medium is used to store a computer program, and when the computer program is run on a computer, the computer is made to perform the above-mentioned first or second aspect. provided method.
  • a computer program product including a computer program, which, when the computer program is run on a computer, causes the computer to execute the method as described in the first aspect or the second aspect above.
  • a graphical user interface on an electronic device the electronic device has a display screen, a memory, and a processor, and the processor is used to execute one or more computer programs stored in the memory,
  • the graphical user interface includes a graphical user interface displayed when the electronic device executes the method described in the first aspect or the second aspect.
  • the embodiment of the present application further provides a chip, the chip is coupled with the memory in the electronic device, and is used to call the computer program stored in the memory and execute the technical solution of the first aspect or the second aspect of the embodiment of the present application , "Coupling" in the embodiments of the present application means that two components are directly or indirectly combined with each other.
  • FIG. 1 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a software structure of an electronic device provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a GUI of a mobile phone provided by an embodiment of the present application.
  • 4 to 5 are schematic diagrams of a mobile phone shooting interface provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a shooting progress indication provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of image fusion provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a camera on an electronic device provided by an embodiment of the present application.
  • FIG. 9 is another schematic diagram of a shooting interface of an electronic device provided by an embodiment of the present application.
  • FIGS. 10A to 10B are schematic diagrams of the imaging principle provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of the distribution of shooting instruction points provided by an embodiment of the present application.
  • FIG. 12 is a schematic flowchart of an image capturing method provided by an embodiment of the present application.
  • FIG. 13 to 14 are other schematic diagrams of the shooting interface on the mobile phone provided by an embodiment of the present application.
  • FIG. 15 is another schematic flowchart of an image capturing method provided by an embodiment of the present application.
  • FIG. 16 is a schematic diagram of a system provided by an embodiment of the present application.
  • FIG. 17 is another schematic flowchart of an image capturing method provided by an embodiment of the present application.
  • FIG. 18 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of this embodiment, unless otherwise specified, “plurality” means two or more.
  • the image capturing method provided in the embodiment of the present application may be applicable to electronic devices.
  • the electronic device may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer) , UMPC), netbook, personal digital assistant (personal digital assistant, PDA) and other electronic devices, the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
  • FIG. 1 shows a schematic structural diagram of an electronic device.
  • the electronic device may be a mobile phone, a tablet computer and the like.
  • the electronic device can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, A display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. Wherein, the controller may be the nerve center and command center of the electronic equipment. The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction. A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the processor may fuse images collected by multiple cameras on the electronic device to obtain a panoramic image. The processor for performing image fusion may be a CPU or a GPU.
  • the USB interface 130 is an interface that conforms to the USB standard specification, including but not limited to a Mini USB interface, a Micro USB interface, and a USB Type C interface.
  • the USB interface 130 can be used to connect a charger to charge the electronic device, and can also be used to transmit data between the electronic device and peripheral devices.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the wireless communication function of the electronic device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G/6G applied to electronic devices.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system, etc. (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology.
  • the display screen 194 is used to display the display interface of the application and the like.
  • the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the N cameras include at least one wide-angle camera, the wide-angle camera is used to take a panoramic image (called a main image), and other cameras are used to take an auxiliary image, and the auxiliary image A global image with clearer details is obtained by merging with the subject image. The specific implementation principle will be introduced later.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device by executing instructions stored in the internal memory 121 .
  • the internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the storage program area can store an operating system, software codes of at least one application program, and the like.
  • the data storage area can store data (such as images, videos, etc.) generated during the use of the electronic device.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a general flash memory, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function.
  • the electronic device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device. In some embodiments, the angular velocity of the electronic device about three axes (ie, x, y, and z axes) may be determined by the gyro sensor 180B.
  • the gyro sensor 180B can be used for image stabilization.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the acceleration sensor 180E can detect the acceleration of the electronic device in various directions (generally three axes).
  • the distance sensor 180F is used to measure the distance. Electronic devices can measure distance via infrared or laser light. In some embodiments, when shooting a scene, the electronic device can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The electronic device can use the proximity light sensor 180G to detect that the user holds the electronic device close to the ear to make a call, so as to automatically turn off the screen to save power.
  • LEDs light emitting diodes
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the electronic device can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints. Electronic devices can use the collected fingerprint features to unlock fingerprints, access application locks, take pictures with fingerprints, answer incoming calls with fingerprints, etc.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device, which is different from the position of the display screen 194 .
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to realize contact and separation with the electronic device.
  • FIG. 1 do not constitute a specific limitation on the electronic device.
  • the electronic device in the embodiment of the present invention may include more or less components than those shown in FIG. 1 .
  • the combination/connection relationship between the components in FIG. 1 can also be adjusted and modified.
  • FIG. 2 is a schematic diagram of a software structure of an electronic device provided by an embodiment of the present application.
  • the software structure of the electronic device may be a layered structure.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the layered architecture may be, for example, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of this application uses a layered architecture
  • the system is taken as an example to illustrate the software structure of the electronic device 100 .
  • the The system is divided into five layers, from top to bottom are application program layer, application program framework layer, Android runtime (Android runtime) and system library, kernel layer and hardware layer.
  • the application layer can include a series of application packages.
  • application packages such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video and other applications.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window managers, content providers, view systems, phone managers, resource managers, notification managers, and so on.
  • a window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications. Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications.
  • a display interface can consist of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
  • the Android Runtime includes core library and virtual machine.
  • the Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • the surface manager is used to manage the display subsystem, and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the fusion management module is used to calculate the second shooting parameters of the second camera according to the first shooting parameters used when the first camera captures the first image, and is also used to provide the second shooting parameters to the imaging management module, so as to pass the imaging management
  • the module sets the shooting parameters of the second camera as the second shooting parameters.
  • the imaging management module sends the second image to the fusion management module.
  • the fusion management module fuses the first image collected by the first camera with the second image collected by the second camera.
  • the first camera is a wide-angle camera
  • the first image is a panoramic image
  • the second camera is a telephoto camera
  • the second image is a detail image (that is, the viewing angle is smaller than the first image)
  • the system library may also include a transmission management module (not shown in the figure), which is used to receive or send images with other electronic devices.
  • the transmission management module can call a transceiver in the hardware layer through the kernel layer to receive or send images.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • the first camera and the second camera may also include other hardware such as sensors and displays.
  • FIG. 3 shows a graphical user interface (graphical user interface, GUI) of the mobile phone, and the GUI is the desktop 201 of the mobile phone.
  • the desktop 201 includes icons of various applications (applications, APPs), including an icon 202 of a camera application.
  • APPs graphical user interface
  • the mobile phone detects an operation (such as a click operation) on the icon 202 of the camera application, the camera application can be started, and another GUI as shown in (b) in FIG. 3 is displayed.
  • This GUI can be called the shooting interface 203 .
  • the viewfinder interface 203 can display a preview image in real time.
  • image A is displayed on the shooting interface 203 in (b) of FIG. 3 .
  • Image A takes a landscape image as an example, including subjects such as boats.
  • the viewfinder interface 203 includes a control 204 for indicating a photographing mode, a control 205 for indicating a video recording mode, a control 206 for indicating a panorama mode, and a shooting control 207 .
  • FIG. 3 takes the mobile phone currently in the photographing mode as an example.
  • the photographing mode when the mobile phone detects an operation on the photographing control 207, the mobile phone executes the photographing operation. Assuming that the mobile phone detects the operation for the video recording control 206, it enters the video recording mode.
  • the mobile phone In the video recording mode, after the mobile phone detects the operation for the shooting control 207, the mobile phone performs a video recording operation (not shown in the process figure).
  • image B When the mobile phone detects an operation on the panorama control 206, it enters the panorama mode, and displays a shooting interface as shown in (c) in FIG. 3 , in which image B is displayed.
  • Image B has a larger angle of view (FOV) than image A.
  • image B includes more objects such as trees and dogs in addition to the existing objects in image A (such as boats).
  • FOV angle of view
  • image B includes more objects such as trees and dogs in addition to the existing objects in image A (such as boats).
  • the preview image in the shooting interface is switched from image A to image B, and switched to an image with a larger viewing angle.
  • image B is referred to as the first image hereinafter.
  • the first image is an image captured by the first camera.
  • the first camera may be a wide-angle camera.
  • the mobile phone when the mobile phone displays the interface shown in (c) in FIG. 3 , if the mobile phone detects an operation on the shooting control 207, it performs a photographing action to obtain a panoramic image, which is taken by a wide-angle camera. Image.
  • This method is more convenient, but because the image resolution capability (i.e. camera resolution) of the wide-angle camera is relatively weak, although the panoramic image captured by the wide-angle camera includes more scenes, the details of the image are not clear enough.
  • an embodiment of the present application provides an image capture method, which can supplement the details of a panoramic image captured by a wide-angle camera, so as to improve the clarity of details of the panoramic image.
  • the electronic device in addition to the panoramic image captured by the wide-angle camera, the electronic device also captures a detailed image, and a panoramic image with enhanced detail definition is obtained by fusing the detailed image with the panoramic image captured by the wide-angle camera.
  • the electronic device has at least two cameras, for example, a first camera and a second camera.
  • the first camera is used to collect the first image (that is, the panoramic image)
  • the second camera is used to collect the second image (the detail image used to supplement the details of the panoramic image).
  • the first camera may be a wide-angle camera.
  • the second camera can use a camera with stronger image resolution (that is, camera resolution), for example, the second camera’s
  • the resolution is higher than that of the first camera, for example, the second camera may be a telephoto camera, or other types of cameras.
  • the mobile phone displays the interface shown in (c) in FIG. 3
  • the mobile phone detects an operation on the shooting control 207 , it displays the interface 400 as shown in FIG. 4 .
  • the interface 400 displays the first image (ie image B) and four shooting instruction points: shooting instruction point 402 , shooting instruction point 403 , shooting instruction point 404 , and shooting instruction point 405 .
  • the shooting instruction point is used to prompt the user to point the second camera at the shooting instruction point to shoot the detail map.
  • shooting at the shooting indication point mentioned here can be understood as adjusting the shooting angle of the second camera so that the shooting object in the area where the shooting indication point is located is within the viewing angle range of the second camera.
  • the area where the shooting indication point 402 is located is an area 1 centered on the shooting indication point 402, whose length is a preset length, and whose width is a preset width (such as area 1 in FIG. 7 below) , that is, adjust the shooting parameters of the second camera so that the shooting object in area 1 is within the viewing angle range of the second camera.
  • specific values such as the preset length and the preset width are not limited in this application.
  • prompt information may also be displayed on the interface 400: shoot at the shooting instruction point.
  • the interface 400 also includes a reference point 401 .
  • the display position of the reference point 401 changes as the shooting angle of the second camera changes.
  • the user judges whether to aim at the shooting instruction point through the reference point 401 .
  • the reference point 401 overlaps with a shooting instruction point or covers the upper layer of the shooting instruction point, it is considered that the shooting instruction point is aligned.
  • the shape, color, etc. of the reference point 401 and the shooting instruction point may be the same or different.
  • the second camera captures the image 1 .
  • the image 1 is captured by the second camera; or, the mobile phone detects that the reference point 401 is aligned with the shooting indication point 402
  • a user operation for example, an operation of clicking or double-clicking the reference point 401
  • the image 1 is captured by the second camera.
  • the mobile phone detects that the reference point 401 aligns with the shooting instruction point 402 and takes an image 1. It may be that the mobile phone takes the image 1 in the background, and the foreground does not display the taken image 1, that is, on the interface 400 Image 1 does not appear in . Since the image 1 does not appear in the foreground, the user cannot know whether the shooting of the shooting instruction point 402 is completed. In some embodiments, when the mobile phone finishes shooting the image 1 , it may output a prompt to remind the user that the shooting of the shooting instruction point 402 is completed. The prompt can be sound or vibration. Alternatively, as shown in FIG.
  • the mobile phone when the mobile phone detects that the reference point 401 is aligned with the shooting indication point 402 and takes a picture, it displays a shooting progress indication on the reference point 401 .
  • the shooting progress indicator may be an indicator needle 600 .
  • the indicating needle 600 rotates from 0 degree to 360 degrees, representing the shooting progress. When it rotates to 360 degrees, it means the shooting is complete.
  • the foreground of the mobile phone may not display the captured detailed image (that is, image 1), but may remind the user that the detailed image of the shooting instruction point 402 has been captured through certain prompt information.
  • the mobile phone can automatically adjust the reference point 401 to the next shooting instruction point (such as the shooting instruction point 403) or the user can change the shooting angle of the second camera so that the reference point 401 is aligned to the next shooting instruction point.
  • the second camera captures the image 2 .
  • the principle of the shooting process of the mobile phone to the shooting instruction point 403 is the same as the shooting process of the shooting instruction point 402 , which will not be repeated.
  • the mobile phone can shoot the remaining shooting instruction points. For example, as shown in (c) of FIG.
  • the second camera captures the image 3 .
  • the image 4 is captured. That is to say, the second camera has respectively photographed the corresponding detailed pictures of the four shooting indication points, that is, image 1 to image 4.
  • the four images are respectively fused with the first image to obtain the second image.
  • the mobile phone fuses the four images into corresponding areas on the first image.
  • the first image includes four areas, area 1 to area 4 .
  • the center point of area 1 is the location of shooting instruction point 402
  • the center point of area 2 is the location of shooting instruction point 403
  • the center point of area 3 is the location of shooting instruction point 404
  • the center point of area 4 is the location of shooting instruction point 405 Location.
  • image 1 is a detailed map corresponding to area 1
  • the mobile phone fuses image 1 into area 1, that is, fuses image 1 with the image blocks in area 1, and similarly fuses image 2 into area 2, and merges image 3 into area 1. Blend into area 3 and image 4 into area 4.
  • the mobile phone detects that the four shooting instruction points have been traversed, it can automatically fuse the four images (image 1 to image 4) with the first image to obtain the second image. That is to say, the user only needs to click the shooting button 207 once to obtain a panorama with clear details.
  • the user clicks the shooting button 207 once, and then enters the interface 400 shown in FIG. 4 or FIG. 5 to shoot the detailed image.
  • the four images ie, images 1 to 4
  • the mobile phone detects that the user triggers the shooting button 207 again
  • the four images are fused with the first image to obtain a second image.
  • the user needs to click the shooting button 207 twice to complete the panoramic shooting.
  • One possible scenario is that the mobile phone has traversed the four shooting instruction points, but before detecting that the user triggers the shooting button 207 again, the four images will not be fused with the first image, and the user can be allowed to give one of the shooting instructions. Click to retake.
  • the mobile phone when the mobile phone detects that the reference point 401 is aligned with the shooting instruction point 402 again, it captures image 5 and replaces image 1 with image 5 .
  • the mobile phone detects that the user triggers the capture button 207 again, the four images (image 2 to image 5 ) are fused with the first image to obtain a second image.
  • the shooting indication point 402 and the shooting indication point 403 are photographed to obtain two detailed images (ie image 1 and image 2), and these two images are fused with the first image to obtain a second image.
  • image 1 and image 2 are fused with the first image to obtain a second image.
  • the photographing instruction point 404 and the photographing instruction point 405 are not photographed.
  • the user can add details only to the areas of interest. For example, as shown in (d) in Figure 5, on the first image, the user only cares about the shooting quality of the area where the dog is located, then only the shooting instruction point 404 can be shot in detail, so that not only the workload can be reduced, but also the shooting experience of the user can not be affected , because the detail clarity of the parts that the user cares about has been improved.
  • the mobile phone takes pictures of the four shooting instruction points respectively through the second camera.
  • the mobile phone may also use different cameras to take pictures of the four shooting instruction points respectively.
  • five cameras are arranged on the back of the mobile phone (the side opposite to the display screen of the mobile phone), wherein camera 1 is a wide-angle camera (ie, the first camera) for collecting the first image.
  • Cameras 2 to 5 may be telephoto cameras or other types of cameras.
  • the cameras 2 to 5 are respectively used for shooting different shooting instruction points.
  • image 1 may be captured by camera 2
  • image 2 may be captured by camera 3
  • image 4 may be captured by camera 5.
  • the image 1 and the image 2 are taken by the camera 2
  • the image 3 and the image 4 are taken by the camera 3, and so on, which are not limited in this embodiment of the present application.
  • the mobile phone displays the shooting reminder point, and instructs the user to take a detailed picture shooting through the shooting instruction point.
  • the mobile phone may not display the shooting instruction point.
  • the mobile phone displays the interface shown in FIG. 3(c)
  • the background of the mobile phone determines the first area on the first image, and the first area is the first area to be viewed on the first image. Areas for additional detail.
  • the mobile phone adjusts the shooting angle of the second camera so that the object in the first area is within the shooting range of the second camera, and takes a third image through the second camera, and the third image is used for Detail drawing of the first area for supplementary details.
  • the mobile phone integrates the third image into the first area on the first image to obtain the second image.
  • the second image is a panoramic image but with higher detail definition than the first image.
  • the mobile phone does not display the shooting prompt point, but automatically recognizes the first area, and takes a detailed map (ie, the third image) of the first area, and fuses the third image into the A second image is obtained within the first region of the first image. That is to say, the user clicks once on the shooting control 207 to automatically obtain a panoramic image with high detail definition.
  • the first area may be an area on the first image where the subject of interest to the user is located.
  • the mobile phone may record which subjects the user has retouched and the number of times the user has retouched each subject, so the subjects of interest to the user may be those whose pictures have been retouched more than a preset number of times.
  • the mobile phone stores a plurality of images, and the number of images containing a subject (such as a dog) is greater than a preset number, then the subject is the subject of interest to the user.
  • the first area is an area on the first image whose resolution is lower than a preset resolution.
  • the first area is a central area of the first image.
  • the first area may also be an area set by the user.
  • the user may draw a circle in the interface shown in (c) in FIG. 3 to select the first area.
  • the user can specify which area on the first image needs to be supplemented with details, so as to improve the clarity of details in the area that the user cares about.
  • the first area may be one area or multiple areas. Taking two areas, that is, the first area and the second area as an example, the mobile phone adjusts the shooting angle of the second camera to shoot the first area to obtain the third image, and then adjusts the shooting angle of the second camera to shoot the second area to obtain The fourth image, and then the third image is fused into the first region on the first image, and the fourth image is fused into the second region on the first image to obtain the second image.
  • the mobile phone takes detailed pictures through the second camera.
  • the image quality captured by the second camera is related to the shooting parameters of the second camera, and the shooting parameters may include at least one of sensitivity, shutter speed, focal length, object distance, white balance, brightness, color temperature, etc. kind.
  • the embodiment of the present application provides at least one of the following manners for determining a shooting parameter of the second camera.
  • the shooting parameters of the second camera are set by default (for example, the default is an initial value), or are set when the setting was used last time. For example, if the shooting parameters set by the user last time when using the second camera include a sensitivity of 50 and a shutter speed of 1/250 second, then the second camera will use a sensitivity of 50 and a shutter speed of 1/250 second to shoot at the shooting point. .
  • the second shooting parameter of the second camera is related to the first shooting parameter of the first camera.
  • the first photographing parameters include: at least one of a first exposure time, a first aperture number, a first sensitivity, a first white balance, a first object distance, and a first focal length.
  • the second shooting parameters include: at least one of a second exposure time, a second aperture number, a second sensitivity, a second white balance, a second object distance, and a second focal length.
  • the shooting by the second camera is related to the first shooting parameter, including at least one of the following:
  • the difference between the second white balance degree and the first white balance degree is smaller than a first threshold. For example, if the first white balance of the first camera is 6000K, then the second white balance of the second camera is 6000K.
  • the difference between the second focal length and the first focal length is less than a second threshold. For example, if the first object distance of the first camera is 100m, then the object distance of the second camera is 100m.
  • a difference between the second object distance and the first object distance is smaller than a third threshold.
  • the first exposure time, the first sensitivity and the first f-number and the second exposure time, the second sensitivity and the second f-number satisfy a preset functional relationship.
  • the preset functional relationship includes:
  • S1 is the first sensitivity
  • T1 is the first exposure time
  • A1 is the first aperture number
  • A2 is the second aperture number
  • S2 is the second sensitivity
  • T2 is the second exposure time.
  • the aperture of the camera is known, that is, the second aperture number A2 of the second camera and the first aperture number A1 of the first camera are known, and the first shutter time T1 and In the case of the first sensitivity S1, the product of the second sensitivity S2 of the second camera and the second shutter time T2 can be obtained through the above formula (1), and then the product of the second sensitivity S2 and the second shutter time T2 can be obtained respectively value.
  • the second aperture of the second camera is 3.5.
  • S2T2 0.189.
  • Step 1 when taking an image, the exposure time satisfies the following formula (2):
  • A is the number of apertures
  • T is the shutter time
  • L is the brightness of the scene
  • S is the sensitivity
  • K is the correction constant of the reflective light meter, which is a constant.
  • Step 2 because L is a fixed value and K is a fixed value in the formula (2), so the above formula (2) can be simplified to the following formula (3):
  • Step 3 for each lens satisfies the above formula (3), then the following formula (1) is satisfied between different lenses:
  • the second shooting parameters of the second camera are related to the first shooting parameters when the first camera captures the first image
  • the detailed image captured by the second camera is adapted to the first image, for example, There is little difference in color, brightness, etc.
  • the detailed images such as image 1 to image 4
  • they can be well fused.
  • the shooting parameters of the second camera may also be set by the user, in other words, adjustable by the user.
  • shooting parameters 900 for example, aperture 50, shutter speed 1/250 second
  • the shooting parameter 900 is the current shooting parameter of the second camera.
  • the user can increase or decrease the aperture or shutter speed, for example, by pressing the "+" button to increase, or by pressing the "-" button to decrease, and the second camera uses the adjusted shooting parameters to shoot the shooting indication point 402 .
  • the shooting parameters used by the second camera are different when shooting the four shooting instruction points, then the images captured by the four shooting instruction points (ie There may be noticeable differences in brightness, color, etc. between image 1 to image 4). If the four images are fused with different areas on the first image (as shown in FIG. 7 ), there will be large differences in the brightness and color of different areas on the fused image, which will affect the overall aesthetic feeling of the image. Therefore, in the embodiment of the present application, the second shooting parameters used by the second camera when shooting each shooting indication point may be the same. For example, the second shooting parameter is determined through any one of the above first to third manners.
  • the embodiment of the present application does not limit the number of shooting instruction points, and it may be at least one.
  • the number of shooting indication points may be set by default by the system or set by the user, or the number of shooting indication points is related to the first shooting parameter of the first camera and/or the second shooting parameter of the second camera.
  • the number of shooting instruction points includes the number in the horizontal direction and/or the number in the vertical direction.
  • the number of shooting indication points in the horizontal direction satisfies:
  • W1 is the width of the imaging plane corresponding to the first camera
  • f1 is the focal length of the first camera
  • W2 is the width of the imaging plane corresponding to the second camera
  • f2 is the focal length of the first camera.
  • the focal length of the second camera is 95mm
  • f2 95mm
  • the imaging planes of the two cameras have the same size
  • the width w is 36mm
  • the height h is 24mm.
  • the number of shooting indication points in the vertical direction satisfies:
  • h1 is the height of the imaging plane corresponding to the first camera
  • f1 is the focal length of the first camera
  • h2 is the height of the imaging plane corresponding to the second camera
  • f2 is the focal length of the second camera.
  • the focal length of the second camera is 95mm
  • f2 95mm
  • the imaging planes of the two cameras have the same size
  • the width w is 36mm
  • the height h is 24mm.
  • the shooting instruction points include a 4*4 matrix with 4 points in the horizontal direction and 4 points in the vertical direction, as shown in FIG. 4 .
  • the above formulas (4) and (5) can be stored in the mobile phone in advance, or obtained through the following steps:
  • Step 1 based on the imaging principle of the camera, it can be known that the viewing angle ⁇ 11 of the first camera in the horizontal direction satisfies the following formula (6):
  • f1 is the focal length of the first camera
  • w1 is the dimension of the imaging plane of the first camera in the horizontal direction, that is, the width.
  • the viewing angle ⁇ 12 of the first camera in the vertical direction satisfies the following formula (7):
  • f1 is the focal length of the first camera
  • h1 is the dimension of the imaging plane of the first camera in the vertical direction, that is, the height.
  • FIG. 10A is a schematic diagram of the relationship between the first camera and the imaging plane.
  • the light passing through the first camera forms an image on the plane.
  • the angle of view ⁇ 1 of the first camera includes the angle of view ⁇ 11 in the horizontal direction and the angle of view ⁇ 12 in the vertical direction.
  • ⁇ 11 corresponds to the width w1 of the imaging plane
  • ⁇ 12 corresponds to the height h1 of the imaging plane.
  • ⁇ 11, w1 and focal length f1 satisfy the above formula (6)
  • ⁇ 12, h1 and focal length f1 satisfy the above formula (7).
  • the viewing angle ⁇ 21 of the second camera in the horizontal direction satisfies the following formula (8):
  • f2 is the focal length of the second camera
  • w2 is the horizontal dimension of the imaging plane of the second camera, that is, the width.
  • the viewing angle ⁇ 22 of the second camera in the vertical direction satisfies the following formula (9):
  • f2 is the focal length of the second camera
  • h2 is the vertical dimension of the imaging plane of the second camera, that is, the height.
  • FIG. 10B is a schematic diagram of the relationship between the second camera and the imaging plane.
  • the light passing through the second camera forms an image on this plane.
  • the angle of view ⁇ 2 of the first camera includes an angle of view ⁇ 21 in the horizontal direction and an angle of view ⁇ 22 in the vertical direction.
  • ⁇ 21 corresponds to the width w2 of the imaging plane
  • ⁇ 22 corresponds to the height h2 of the imaging plane.
  • ⁇ 21, w2 and focal length f2 satisfy the above formula (8)
  • ⁇ 22, h2 and focal length f2 satisfy the above formula (9).
  • the number k1 of shooting indication points in the horizontal direction is related to the ratio of the viewing angle ⁇ 11 of the first camera in the horizontal direction to the viewing angle ⁇ 21 of the second camera in the horizontal direction.
  • the number of shooting indication points in the horizontal direction satisfies the following formula:
  • the number k2 of shooting indication points in the vertical direction is related to the ratio of the viewing angle ⁇ 12 of the first camera in the vertical direction to the viewing angle ⁇ 22 of the second camera in the vertical direction.
  • the number of shooting indication points in the vertical direction is:
  • the number of shooting instruction points in the horizontal direction is calculated by formula (4)
  • the number of shooting instruction points in the vertical direction is calculated by formula (5).
  • the number of shooting instruction points in the vertical direction is equal to the number of shooting instruction points in the horizontal direction, or, when After the number of shooting instruction points in the vertical direction is determined by formula (5), the number of shooting instruction points in the horizontal direction is equal to the number of shooting instruction points in the vertical direction.
  • the number of shooting instruction points may also be set by the user or set by default by the system, etc., which is not limited in this embodiment of the present application.
  • the positions of the shooting indication points may be determined, for example, evenly distributed on the first image.
  • the uniform distribution may be understood as the same distance between each shooting indication point in the horizontal direction, and the same distance between each shooting indication point in the vertical direction.
  • the distance between each shooting instruction point is L1
  • the distance between each shooting instruction point is L2.
  • FIG. 12 is a schematic flowchart of an image capturing method provided by an embodiment of the present application. As shown in the figure, the flow of the method includes:
  • the electronic device displays a shooting interface in response to a first operation, where a first image is displayed on the shooting interface, and the first image is an image captured by the first camera.
  • the first operation may be an operation on the panorama button 206 in (b) in FIG. 3 .
  • the shooting interface may be the shooting interface shown in (c) in FIG. 3 .
  • the first camera may be a wide-angle camera on an electronic device.
  • the first image is image B.
  • the electronic device captures a second image in response to the second operation, the second image is obtained based on the first image and a third image, the third image is captured by the second camera, and There is an overlapping area between the third image and the first image, and at least one same object is included in the overlapping area; wherein, the second shooting parameter used when the second camera shoots the third image is the same as that of the The first shooting parameters used when the first camera shoots the first image are related.
  • the second operation may be an operation in which the user clicks the shooting button 207 in (c) in FIG. 3 .
  • the viewing angle range of the second camera overlaps with the viewing angle range of the first camera, so the second image captured by the second camera overlaps with the first image captured by the first camera, and at least one same object is included in the overlapping area.
  • the repeated area may be any of the areas 1 to 4 in FIG. 7 . In this way, the overlapping area on the second image can be merged with the overlapping area on the first image, so as to improve the definition of the overlapping area on the first image.
  • the electronic device may not display the shooting instruction point.
  • the background determines the first area on the first image
  • the first area is The area on the first image to add detail to.
  • the mobile phone adjusts the shooting angle of the second camera so that the object in the first area is within the shooting range of the second camera, and takes a third image through the second camera, and the third image is used for Detail drawing of the first area for supplementary details.
  • the mobile phone integrates the third image into the first area on the first image to obtain the second image.
  • the second image is a panoramic image but with higher detail definition than the first image.
  • the second shooting parameter used when the second camera shoots the third image is related to the first shooting parameter used when the first camera shoots the first image.
  • the first photographing parameters include: at least one of a first exposure time, a first aperture number, a first sensitivity, a first white balance, a first object distance, and a first focal length.
  • the second shooting parameters include: at least one of a second exposure time, a second aperture number, a second sensitivity, a second white balance, a second object distance, and a second focal length.
  • the shooting by the second camera is related to the first shooting parameter, including at least one of the following:
  • the difference between the second white balance degree and the first white balance degree is smaller than a first threshold.
  • the second white balance degree is equal to the first white balance degree.
  • the difference between the second focal length and the first focal length is less than a second threshold.
  • the second focal length is equal to the first focal length.
  • a difference between the second object distance and the first object distance is smaller than a third threshold.
  • the second object distance is equal to the first object distance.
  • the first exposure time, the first sensitivity and the first f-number and the second exposure time, the second sensitivity and the second f-number satisfy a preset functional relationship.
  • the preset functional relationship is the formula (1) in the above.
  • the image capture method provided in the embodiment of the present application may also be applied to the system.
  • the system includes a first electronic device and a second electronic device.
  • the first electronic device is used to take the first image (namely the panoramic image)
  • the second electronic device is used to take the second image
  • the second image is a detail map for supplementing the details of the first image, such as in the above embodiment Image 1 to Image 4.
  • the second image taken by the second electronic device is fused with the first image taken by the first electronic device to obtain a panoramic image with clear details.
  • the first camera may be a wide-angle camera.
  • the resolution of the second camera is higher than that of the first camera.
  • the second camera may be a telephoto camera, and of course may be other types of cameras.
  • the first electronic device and the second electronic device may be of the same type, for example, both are mobile phones; or may be of different types, for example, one is a mobile phone, and the other is a tablet computer, drone and so on.
  • the first electronic device is a drone and the second electronic device is a mobile phone.
  • the mobile phone establishes a connection with the drone, and the connection includes a wireless connection, and the specific connection process will not be repeated here.
  • the drone sends the image collected by the first camera on the drone to the mobile phone.
  • a button for sending images to a mobile phone is set on the drone or a remote control device connected to the drone, and the user can control the drone to send the captured image to the mobile phone through the button.
  • the first camera can be a wide-angle camera.
  • image C is displayed, and image C is an image captured by the wide-angle camera on the mobile phone, and mark 1300 is also displayed.
  • the marker 1300 may appear when the phone is connected to the drone or when the phone receives images from the drone.
  • the mobile phone detects the mark 1300, it displays the shooting interface as described in (b) in FIG. 13 , the shooting interface includes an image D, and the image D is an image taken by a drone. That is to say, the mobile phone displays the images taken by the drone in the shooting interface.
  • the image D is referred to as the first image.
  • the mobile phone When the mobile phone detects an operation on the shooting control 207, an interface 1400 as shown in FIG. to the shooting instruction point 1405).
  • the mobile phone sequentially shoots four shooting instruction points through the second camera to obtain four images.
  • the second shooting parameter of the second camera is related to the first shooting parameter of the first camera on the drone.
  • the specific implementation process is the same as the above, and will not be repeated here.
  • the mobile phone After the mobile phone gets the four detailed images, it can send them to the UAV, and the UAV will fuse these four images with the first image taken by the UAV itself to obtain a panoramic image with clear details. Alternatively, after the mobile phone fuses the four images with the first image taken by the drone itself to obtain a panoramic image with clear details, the panoramic image is sent to the drone.
  • FIG. 15 is a schematic flowchart of an image capturing method provided by an embodiment of the present application. The flow of the method includes:
  • the first electronic device sends the first image and first shooting parameters used when the first camera shoots the first image to the second electronic device.
  • the first camera may be a wide-angle camera on the drone.
  • the second electronic device displays a shooting interface, where the first image is displayed in the shooting interface.
  • the first operation may be an operation directed to the identifier 1300 in (a) in FIG. 13 .
  • the shooting interface may be the interface shown in (b) in FIG. 13 , and the first image may be image D.
  • the second electronic device obtains a third image by taking pictures with the second camera. There is an overlapping area on the third image and the first image, and at least one same object is included in the overlapping area.
  • the second shooting parameter used when the second camera shoots the third image is related to the first shooting parameter used when the first camera shoots the first image.
  • the second operation may be an operation in which the user clicks the shooting button 207 in (b) in FIG. 13 .
  • the mobile phone may not display the shooting instruction point.
  • the background determines the first area on the first image.
  • the mobile phone adjusts the shooting angle of the second camera so that the object in the first area is within the shooting range of the second camera, and takes a third image through the second camera, and the third image is used for Detail drawing of the first area for supplementary details.
  • the specific implementation process of this part please refer to the previous description.
  • the second shooting parameter used when the second camera shoots the third image is related to the first shooting parameter used when the first camera shoots the first image.
  • the first photographing parameters include: at least one of a first exposure time, a first aperture number, a first sensitivity, a first white balance, a first object distance, and a first focal length.
  • the second shooting parameters include: at least one of a second exposure time, a second aperture number, a second sensitivity, a second white balance, a second object distance, and a second focal length.
  • the shooting by the second camera is related to the first shooting parameter, including at least one of the following:
  • the difference between the second white balance degree and the first white balance degree is smaller than a first threshold.
  • the second white balance degree is equal to the first white balance degree.
  • the difference between the second focal length and the first focal length is less than a second threshold.
  • the second focal length is equal to the first focal length.
  • a difference between the second object distance and the first object distance is smaller than a third threshold.
  • the second object distance is equal to the first object distance.
  • the first exposure time, the first sensitivity and the first f-number and the second exposure time, the second sensitivity and the second f-number satisfy a preset functional relationship.
  • the preset functional relationship is the formula (1) in the above.
  • the second electronic device sends the third image to the first electronic device.
  • the first electronic device obtains the second image based on the third image and the first image.
  • S1505 may be replaced by: the second electronic device obtains the second image based on the third image and the first image.
  • S1506 may be replaced by: the second electronic device sends the second image to the first electronic device.
  • FIG. 16 is a schematic structural diagram of a system provided by an embodiment of the present application.
  • the left half of Fig. 16 is the software structure of the first electronic device, and the right half is the software structure of the second electronic device.
  • the first electronic device includes a first fusion management module, a first transmission management module, and a first imaging management module, and also includes a first camera.
  • the second electronic device includes a second fusion management module, a second transmission management module, and a second imaging management module, and also includes a second camera.
  • FIG. 17 is a schematic flowchart of an image capturing method provided by an embodiment of the present application.
  • the schematic flowchart can be understood as the information interaction diagram between the first electronic device and the second electronic device shown in FIG. 16 or a detailed flowchart of FIG. 15 .
  • the first electronic device may be, for example, a drone
  • the second electronic device may be, for example, a mobile phone.
  • the process includes:
  • a first camera on a first electronic device collects a first image.
  • the first camera sends the first image and the first shooting parameters to the first imaging management module.
  • the first shooting parameter is a shooting parameter used when the first camera captures the first image.
  • the first imaging management module sends the first image and the first shooting parameters to the first transmission management module.
  • the first transmission management module sends the first image and the first shooting parameters to the second transmission management module in the second electronic device.
  • the second transmission management module sends the first image and the first shooting parameters to the second fusion management module.
  • the second fusion management module calculates the second shooting parameters of the second camera and the number and/or positions of shooting indication points according to the first shooting parameters.
  • the second shooting parameter is related to the first shooting parameter
  • the number of shooting indication points is related to the first shooting parameter and/or the second shooting parameter, so please refer to the above for the implementation process of S1605.
  • the shooting instruction point is displayed on the second electronic device.
  • the second fusion management module sends the second shooting parameters to the second imaging management module.
  • the second imaging management module sets the shooting parameters of the second camera as the second shooting parameters.
  • the second camera obtains a second image by using the second shooting parameters.
  • the second imaging management module acquires a second image.
  • the second imaging management module sends the second image to the second transmission management module.
  • the second transmission management module sends the second image to the first transmission management module.
  • the first transmission management module sends the second image to the first fusion management module.
  • the first fusion management module fuses the second image with the first image to obtain a panoramic image.
  • FIG. 18 is a schematic structural diagram of an electronic device 1800 provided by an embodiment of the present application.
  • the electronic device 1800 may be the aforementioned mobile phone.
  • an electronic device 1800 may include: one or more processors 1801; one or more memories 1802; a communication interface 1803, and one or more computer programs 1804, and each of the above devices may communicate through one or more bus 1805 connection.
  • the one or more computer programs 1804 are stored in the memory 1802 and are configured to be executed by the one or more processors 1801, and the one or more computer programs 1804 include instructions.
  • the above instructions can be used to execute the relevant steps of the mobile phone in the above corresponding embodiments.
  • the communication interface 1803 is used to realize the communication between the mobile phone and other devices (for example, drone), for example, the communication interface may be a transceiver.
  • the embodiment of the present application also provides a communication system.
  • the communication system includes a first electronic device and a second electronic device.
  • the first electronic device may be the aforementioned drone
  • the second electronic device may be the aforementioned mobile phone.
  • the structures of the first electronic device and the second electronic device can be referred to as shown in FIG. 18 .
  • the electronic device 18 shown in FIG. 18 is the first electronic device
  • the first electronic device executes the first electronic device (i.e. UAV) steps.
  • the electronic device 1800 shown in FIG. 18 is a second electronic device
  • the instructions of one or more computer programs 1804 are executed by the processor
  • the second electronic device executes the second electronic device ( i.e. mobile phone) steps.
  • the method provided in the embodiments of the present application is introduced from the perspective of an electronic device (such as a mobile phone) as an execution subject.
  • the electronic device may include a hardware structure and/or a software module, and realize the above-mentioned functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above-mentioned functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
  • the terms “when” or “after” may be interpreted to mean “if” or “after” or “in response to determining" or “in response to detecting ".
  • the phrases “in determining” or “if detected (a stated condition or event)” may be interpreted to mean “if determining" or “in response to determining" or “on detecting (a stated condition or event)” or “in response to detecting (a stated condition or event)”.
  • relational terms such as first and second are used to distinguish one entity from another, without limiting any actual relationship and order between these entities.
  • references to "one embodiment” or “some embodiments” or the like in this specification means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
  • the terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless specifically stated otherwise.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present invention will be generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server, or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a Solid State Disk (SSD)).
  • a magnetic medium such as a floppy disk, a hard disk, or a magnetic tape
  • an optical medium such as a DVD
  • a semiconductor medium such as a Solid State Disk (SSD)

Landscapes

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

Abstract

一种图像拍摄方法与相关设备。电子设备上包括第一摄像头和第二摄像头,该电子设备响应于第一操作,显示拍摄界面,所述拍摄界面中显示第一图像,所述第一图像为所述第一摄像头采集的图像;响应于第二操作,拍摄得到第二图像,所述第二图像是基于所述第一图像和第三图像得到的,所述第三图像是所述第二摄像头拍摄的,且所述第三图像与所述第一图像上存在重叠区域,所述重叠区域内包括至少一个相同对象;其中,所述第二摄像头拍摄所述第三图像时使用的第二拍摄参数与所述第一摄像头拍摄所述第一图像时使用的第一拍摄参数相关。通过这种方式,电子设备可以拍摄得到清晰度较高的图像,提升拍摄体验。

Description

一种图像拍摄方法与相关设备
相关申请的交叉引用
本申请要求在2021年11月01日提交中国国家知识产权局、申请号为202111282790.3、申请名称为“一种图像拍摄方法与相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种图像拍摄方法与相关设备。
背景技术
用户对图像拍摄要求越来越高,比如,用户旅行时,期望将沿途景物的全貌进行拍摄。为了满足用户需求,部分电子设备(比如手机)具有全景拍摄功能,全景拍摄功能用于拍摄具有大视角(angle of view,FOV)的图像,即一张图像上可以包括更多拍摄对象。
一般,电子设备上设置有广角摄像头,该广角摄像头用于拍摄全景图像。然而,广角摄像头的图像解析能力(即摄像头分辨率)较弱,所以广角摄像头拍摄的全景图像虽然包含了更多景物,但是图像细节不够清楚,影响拍摄体验。
发明内容
本申请提供了一种图像拍摄方法与相关设备,用于提升图像拍摄体验。
第一方面,提供一种图像拍摄方法。该方法适用于电子设备。电子设备上包括第一摄像头和第二摄像头,所述方法包括:响应于第一操作,显示拍摄界面,所述拍摄界面中显示第一图像,所述第一图像为所述第一摄像头采集的图像;响应于第二操作,拍摄得到第二图像,所述第二图像是基于所述第一图像和第三图像得到的,所述第三图像是所述第二摄像头拍摄的,且所述第三图像与所述第一图像上存在重叠区域,所述重叠区域内包括至少一个相同对象;其中,所述第二摄像头拍摄所述第三图像时使用的第二拍摄参数与所述第一摄像头拍摄所述第一图像时使用的第一拍摄参数相关。
也就是说,电子设备上的第一摄像头采集了第一图像,第二摄像头采集了第三图像,且第三图像与第二图像上有重叠区域,通过第三图像与第一图像得到第二图像,比如,将第三图像与第一图像融合得到第二图像,这样第二图像的图像质量比第一图像有提升,可以提升拍摄体验。进一步地,由于第二摄像头拍摄第三图像时的第二拍摄参数与第一摄像头拍摄第一图像时的第一拍摄参数相关,所以第三图像与第一图像能够更高的融合,进一步的提升第二图像的图像质量。
在一种可能的设计中,所述第一摄像头是广角摄像头,所述第二摄像头是长焦摄像头。
一般,广角摄像头的图像解析能力(即摄像头分辨率)较弱,所以广角摄像头拍摄的全景图像虽然包含了更多景物,但是图像清晰度较低,而长焦摄像头的图像解析能力(即摄像头分辨率)较强,所以长焦摄像头采集的图像的清晰度较高。本申请实施例中,电子设备基于长焦摄像头采集的图像(第三图像)与广角摄像头拍摄的全景图像(即第一图像) 得到第二图像,这样的话,第二图像上既可以具有大视角,也可以具有较高的清晰度。
在一种可能的设计中,所述第一拍摄参数包括:第一曝光时间、第一光圈数、第一感光度、第一白平衡、第一物距、第一焦距中的至少一种;和/或,所述第二拍摄参数包括:第二曝光时间、第二光圈数、第二感光度、第二白平衡、第二物距、第二焦距中的至少一种。需要说明的是,此处是对拍摄参数的举例,还可以包括更多或更少的参数,比如饱和度、色温、滤镜等等,只要第二拍摄参数与第一拍摄参数相关即可。
在一种可能的设计中,所述第二摄像头拍摄与所述第一拍摄参数相关,包括如下至少一项:
所述第二白平衡度与所述第一白平衡度之间的差值小于第一阈值;
所述第二焦距与所述第一焦距之间的差值小于第二阈值;
所述第二物距与所述第一物距之间的差值小于第三阈值;
所述第一曝光时间、所述第一感光度以及所述第一光圈数与所述第二曝光时间、所述第二感光度以及所述第二光圈数满足预设函数关系。
需要说明的是,由于第二摄像头拍摄第三图像时的第二拍摄参数与第一摄像头拍摄第一图像时的第一拍摄参数相关,所以第三图像与第一图像能够更高的融合,可以提升第二图像的图像质量。
在一种可能的设计中,所述预设函数关系,包括:
Figure PCTCN2022126806-appb-000001
其中,S1为所述第一感光度,T1为所述第一曝光时间,A1为所述第一光圈数,所述A2为所述第二光圈数,S2为所述第二感光度,T2为所述第二曝光时间。
在一种可能的设计中,电子设备响应于第二操作,拍摄得到第二图像,包括:响应于第二操作,确定所述第一图像上的第一区域;调整所述第二摄像头的拍摄角度,使得所述第一区域内的拍摄对象处于所述第二摄像头的视角范围内,并拍摄得到第三图像;在所述第一图像上基于所述第一图像和所述第三图像得到所述第二图像。也就是说,电子设备得到第一图像之后,确定第一图像上的第一区域,对第一区域进行细节拍摄,得到第三图像,基于第三图像和第一图像得到第二图像。这种方式所得到的第二图像上对第一区域作了细节补充,第一区域的清晰度提升。
示例性的,所述第一区域满足如下至少一种:
所述第一图像上用户感兴趣的拍摄对象所在区域;
所述第一图像的中心区域;
用户设定的区域;
所述第一图像上清晰度低于预设清晰度的区域。
因此,本申请实施例中,电子设备得到第一图像之后,可以对第一图像上用户感兴趣对应所在区域、用户设定的区域等进行细节拍摄,以补充这些区域的清晰度。这样,用户关注的区域的清晰度提升,有助于提升拍摄体验。
在一种可能的设计中,电子设备响应于第二操作,拍摄得到第二图像,包括:响应于第二操作,在所述第一图像上显示N个拍摄指示点,N为正整数;调整所述第二摄像头的拍摄角度,使得所述N个拍摄指示点中第一拍摄指示点所在区域内的拍摄对象处于所述第二摄像头的视角范围内,并拍摄得到第三图像;检测到用于指示拍摄的第三操作时,基于 所述第一图像和所述第三图像得到所述第二图像。也就是说,电子设备在第一图像上显示N个拍摄指示点,用户可以对其中部分拍摄指示点所在区域内的拍摄对象进行拍摄,以补充这部分拍摄指示点所在区域的细节清晰度。
在一种可能的设计中,电子设备响应于第二操作,拍摄得到第二图像,包括:响应于第二操作,在所述第一图像上显示N个拍摄指示点,N为正整数;依次调整所述第二摄像头的拍摄角度,使得所述第二摄像头对每个拍摄指示点所在区域内的拍摄对象进行拍摄,得到N张第三图像;检测到对所有拍摄指示点均拍摄完成时,基于所述N张第三图像与所述第一图像得到所述第二图像。也就是说,电子设备在第一图像上显示N个拍摄指示点,电子设备可以分别对每个拍摄指示点所在区域内的拍摄对象进行拍摄,得到N张第三图像,基于N张第三图像和第一图像得到第二图像。
在一种可能的设计中,所述拍摄指示点的数量与所述第一拍摄参数和/或所述第二拍摄参数相关;其中,所述拍摄指示点的数量包括在水平方向上的数量和/或在竖直方向上的数量。
比如,所述拍摄指示点的数量与所述第一拍摄参数和/或所述第二拍摄参数相关,包括:在所述水平方向上所述拍摄指示点的数量k1与所述第一摄像头在水平方向上的视角范围与所述第二摄像头在水平方向上的视角范围的比值相关。
示例性的,在所述水平方向上所述拍摄指示点的数量k1满足:
Figure PCTCN2022126806-appb-000002
其中,W1为所述第一摄像头对应的成像平面的宽度,f1为所述第一摄像头的焦距,W2为所述第二摄像头对应的成像平面的宽度,f2为所述第一摄像头的焦距。
再比如,所述拍摄指示点的数量与所述第一拍摄参数和/或所述第二拍摄参数相关,包括:在所述竖直方向上所述拍摄指示点的数量k2与所述第一摄像头在竖直方向上的视角范围与所述第二摄像头在竖直方向上的视角范围的比值相关。
示例性的,在所述竖直方向上所述拍摄指示点的数量k2满足:
Figure PCTCN2022126806-appb-000003
其中,h1为所述第一摄像头对应的成像平面的高度,f1为所述第一摄像头的焦距,h2为所述第二摄像头对应的成像平面的高度,f2为所述第一摄像头的焦距。
需要说明的是,由于水平方向上拍摄指示点的数量k1与第一摄像头在水平方向上的视角范围与第二摄像头在水平方向上的视角范围的比值相关,如果每个拍摄指示点对应一个区域(该区域的中心点为拍摄指示点),那么在水平方向上对应k1个区域,这k1个区域能够完全覆盖第一图像的宽度(即水平宽度),如果对每个区域均进行细节补充,那么能够保证对第一摄像头采集的第一图像的水平方向上的所有区域均进行细节补充。同理,由于竖直方向上拍摄指示点的数量k2与第一摄像头在竖直方向上的视角范围与第二摄像头在竖直方向上的视角范围的比值相关,如果每个拍摄指示点对应一个区域(该区域的中心点为拍摄指示点),那么在竖直方向上对应k2个区域,这k2个区域能够完全覆盖第一图像的高度(即竖直高度),如果对每个区域均进行细节补充,那么能够保证对第一摄像 头采集的第一图像的竖直方向上的所有区域均进行细节补充。这样,可以避免第一图像上存在部分区域没有经过细节补充,导致图像完整性差。
第二方面,提供一种图像拍摄方法,应用于包括第一电子设备和第二电子设备的系统,所述方法包括:所述第一电子设备响应于第一操作,显示拍摄界面,所述拍摄界面中显示第一图像,所述第一图像为所述第二电子设备上的第一摄像头采集的图像;所述第一电子设备响应于第二操作,通过所述第一电子设备上的第二摄像头拍摄得到第三图像,所述第三图像与所述第一图像上存在重叠区域,所述重叠区域内包括至少一个相同对象;其中,所述第二摄像头拍摄所述第三图像时使用的第二拍摄参数与所述第一摄像头拍摄所述第一图像时使用的第一拍摄参数相关;所述第一电子设备基于所述第三图像和所述第一图像得到第二图像;或者,所述第一电子设备基于所述第三图像和所述第一图像得到第二图像后将所述第二图像发送给所述第二电子设备。
在一种可能的设计中,所述第一拍摄参数包括:第一曝光时间、第一光圈数、第一感光度、第一白平衡、第一物距、第一焦距中的至少一种;和/或,
所述第二拍摄参数包括:第二曝光时间、第二光圈数、第二感光度、第二白平衡、第二物距、第二焦距中的至少一种。
在一种可能的设计中,所述第二摄像头拍摄与所述第一拍摄参数相关,包括如下至少一项:
所述第二白平衡度与所述第一白平衡度之间的差值小于第一阈值;
所述第二焦距与所述第一焦距之间的差值小于第二阈值;
所述第二物距与所述第一物距之间的差值小于第三阈值;
所述第一曝光时间、所述第一感光度以及所述第一光圈数与所述第二曝光时间、所述第二感光度以及所述第二光圈数满足预设函数关系。
在一种可能的设计中,所述预设函数关系,包括:
Figure PCTCN2022126806-appb-000004
其中,S1为所述第一感光度,T1为所述第一曝光时间,A1为所述第一光圈数,所述A2为所述第二光圈数,S2为所述第二感光度,T2为所述第二曝光时间。
在一种可能的设计中,所述第一电子设备响应于第二操作,通过所述第一电子设备上的第二摄像头拍摄得到第三图像,包括:所述第一电子设备响应于第二操作,确定所述第一图像上的第一区域;所述第一电子设备调整所述第二摄像头的拍摄角度,使得所述第一区域内的拍摄对象处于所述第二摄像头的视角范围内,并拍摄得到第三图像。
在一种可能的设计中,所述第一区域满足如下至少一种:
所述第一图像上用户感兴趣的拍摄对象所在区域;
所述第一图像的中心区域;
用户设定的区域;
所述第一图像上清晰度低于预设清晰度的区域。
在一种可能的设计中,所述第一电子设备响应于第二操作,通过所述第一电子设备上的第二摄像头拍摄得到第三图像,包括:所述第一电子设备响应于第二操作,在所述第一图像上显示N个拍摄指示点,N为正整数;所述第一电子设备调整所述第二摄像头的拍摄 角度,使得所述N个拍摄指示点中第一拍摄指示点所在区域内的拍摄对象处于所述第二摄像头的视角范围内,并拍摄得到第三图像。
在一种可能的设计中,所述第一电子设备响应于第二操作,通过所述第一电子设备上的第二摄像头拍摄得到第三图像,包括:所述第一电子设备响应于第二操作,在所述第一图像上显示N个拍摄指示点;N为正整数;所述第一电子设备依次调整所述第二摄像头的拍摄角度,使得所述第二摄像头对每个拍摄指示点所在区域内的拍摄对象进行拍摄,得到N张第三图像。
在一种可能的设计中,所述拍摄指示点的数量与所述第一拍摄参数和/或所述第二拍摄参数相关;其中,所述拍摄指示点的数量包括在水平方向上的数量和/或在竖直方向上的数量。
在一种可能的设计中,所述拍摄指示点的数量与所述第一拍摄参数和/或所述第二拍摄参数相关,包括:在所述水平方向上所述拍摄指示点的数量k1满足:
Figure PCTCN2022126806-appb-000005
其中,W1为所述第一摄像头对应的成像平面的宽度,f1为所述第一摄像头的焦距,W2为所述第二摄像头对应的成像平面的宽度,f2为所述第一摄像头的焦距。
在一种可能的设计中,所述拍摄指示点的数量与所述第一拍摄参数和/或所述第二拍摄参数相关,包括:在所述竖直方向上所述拍摄指示点的数量k2满足:
Figure PCTCN2022126806-appb-000006
其中,h1为所述第一摄像头对应的成像平面的高度,f1为所述第一摄像头的焦距,h2为所述第二摄像头对应的成像平面的高度,f2为所述第一摄像头的焦距。
在一些可能的设计中,所述第一摄像头是广角摄像头,所述第二摄像头是长焦摄像头。
第三方面,还提供一种系统,包括:第一电子设备和第二电子设备;
所述第一电子设备包括:处理器;存储器;其中,所述存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述处理器执行时,使得所述第一电子设备执行如上述第二方面所述的方法中第一电子设备的步骤;
所述第二电子设备包括:处理器;存储器;其中,所述存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述处理器执行时,使得所述第二电子设备执行如上述第二方面提供的方法中第二电子设备的步骤。
第四方面,还提供一种电子设备,包括:
处理器,存储器,以及,一个或多个程序;
其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述处理器执行时,使得所述电子设备执行如上述第一方面提供的方法步骤。
第五方面,还提供一种计算机可读存储介质,计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述第一方面或第二方面提供的方法。
第六方面,还提供一种计算机程序产品,包括计算机程序,当所述计算机程序在计算 机上运行时,使得所述计算机执行如上述第一方面或第二方面所述的方法。
第七方面,还提供一种电子设备上的图形用户界面,所述电子设备具有显示屏、存储器、以及处理器,所述处理器用于执行存储在所述存储器中的一个或多个计算机程序,所述图形用户界面包括所述电子设备执行上述第一方面或第二方面所述的方法时显示的图形用户界面。
第八方面,本申请实施例还提供一种芯片,所述芯片与电子设备中的存储器耦合,用于调用存储器中存储的计算机程序并执行本申请实施例第一方面或第二方面的技术方案,本申请实施例中“耦合”是指两个部件彼此直接或间接地结合。
上述第二方面至第八方面的有益效果,参见第一方面的有益效果,不重复赘述。
附图说明
图1为本申请一实施例提供的电子设备的硬件结构示意图;
图2为本申请一实施例提供的电子设备的软件结构示意图;
图3为本申请一实施例提供的手机的GUI的示意图;
图4至图5为本申请一实施例提供的手机拍摄界面的示意图;
图6为本申请一实施例提供的拍摄进度指示的示意图;
图7为本申请一实施例提供的图像融合的示意图;
图8为本申请一实施例提供的电子设备上摄像头的示意图;
图9为本申请一实施例提供的电子设备的拍摄界面的另一些示意图;
图10A至图10B为本申请一实施例提供的成像原理的示意图;
图11为本申请一实施例提供的拍摄指示点的分布示意图;
图12为本申请一实施例提供的图像拍摄方法的一种流程示意图;
图13至图14为本申请一实施例提供的手机上拍摄界面的另一些示意图;
图15为本申请一实施例提供的图像拍摄方法的另一种流程示意图;
图16为本申请一实施例提供的系统的示意图;
图17为本申请一实施例提供的图像拍摄方法的又一种流程示意图;
图18为本申请一实施例提供的电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请实施例提供的图像拍摄方法可以适用于电子设备。所述电子设备可以是手机、 平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等电子设备上,本申请实施例对电子设备的具体类型不作任何限制。
图1示出了电子设备的结构示意图。所述电子设备可以是手机、平板电脑等等。如图1所示,电子设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器可以对电子设备上多个摄像头采集的图像进行融合,得到一张全景图像。所述进行图像融合的处理器可以是CPU或GPU。
USB接口130是符合USB标准规范的接口,包括但不限于Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备充电,也可以用于电子设备与外围设备之间传输数据。充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。电子设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。
移动通信模块150可以提供应用在电子设备上的包括2G/3G/4G/5G/6G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例 中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块160可以提供应用在电子设备上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信。
显示屏194用于显示应用的显示界面等。电子设备可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。
在一些实施例中,电子设备可以包括1个或N个摄像头193,N为大于1的正整数。以电子设备包括N个摄像头为例,所述N个摄像头中包括至少一个广角摄像头,所述广角摄像头用于拍摄全景图像(称为主体图),其它摄像头用于拍摄辅助图,所述辅助图与所述主体图融合得到细节更清楚的全局图像。具体实现原理将在后文介绍。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,以及至少一个应用程序的软件代码等。存储数据区可存储电子设备使用过程中所产生的数据(例如图像、视频等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。
电子设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。陀螺仪传感器180B可以用于确定电子设备的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备围绕三个轴(即,x,y和z轴)的角速度。
陀螺仪传感器180B可以用于拍摄防抖。气压传感器180C用于测量气压。在一些实施例中,电子设备通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。磁传感器180D包括霍尔传感器。加速度传感器180E可检测电子设备在各个方向上(一般为三轴)加速度的大小。距离传感器180F,用于测量距离。电子设备可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备可以利用距离传感器180F测距以实现快速对焦。接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。电子设备可以利用接近光传感器180G检测用户手持电子设备贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。
环境光传感器180L用于感知环境光亮度。电子设备可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备是否在口袋里,以防误触。指纹传感器180H用于采集指纹。电子设备可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备利用温度传感器180J检测的温度,执行温度处理策略。
触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备可以接收按键输入,产生与电子设备的用户设置以及功能控制有关的键信号输入。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备的接触和分离。
可以理解的是,图1所示的部件并不构成对电子设备的具体限定。本发明实施例中的电子设备可以包括比图1中更多或更少的部件。此外,图1中的部件之间的组合/连接关系也是可以调整修改的。
图2为本申请一实施例提供的电子设备的软件结构的示意图。
如图2所示,电子设备的软件结构可以是分层结构,所述分层架构是将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。所述分层架构比如可以是事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的
Figure PCTCN2022126806-appb-000007
系统为例,示例性说明电子设备100的软件结构。在一些实施例中,将
Figure PCTCN2022126806-appb-000008
系统分为五层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,内核层以及硬件层。
如图2所示,应用程序层可以包括一系列应用程序包。比如相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。其中,表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。2D图形引擎是2D绘图的绘图引擎。
系统库中还包括融合管理模块,以及成像管理模块。其中,融合管理模块用于根据第一摄像头采集第一图像时使用的第一拍摄参数计算第二摄像头的第二拍摄参数,还用于将第二拍摄参数提供给成像管理模块,以通过成像管理模块设置第二摄像头的拍摄参数为第二拍摄参数。当第二摄像头使用第二拍摄参数采集到第二图像(第二图像可以是多个图像的集合)时,成像管理模块将第二图像发送给融合管理模块。融合管理模块将第一摄像头采集的第一图像与第二摄像头采集的第二图像进行融合。示例性的,第一摄像头是广角摄像头,那么第一图像是全景图像,第二摄像头是长焦摄像头,第二图像是细节图像(即视 角小于第一图像),所以第一图像和第二图像融合可以得到细节清晰的全景图像。
可选的,系统库中还可以包括传输管理模块(图中未示出),用于与其它电子设备实现图像的接收或发送。具体的,传输管理模块可以通过内核层调用硬件层中的收发器实现图像的接收或发送。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
硬件层中包括多个摄像头。比如,第一摄像头和第二摄像头,还可以包括传感器、显示器等其它硬件。
为了便于理解,本申请以下实施例将以电子设备是手机为例,结合附图对本申请实施例提供的图像拍摄方法进行具体阐述。
图3中的(a)示出了手机的一种图形用户界面(graphical user interface,GUI),该GUI为手机的桌面201。桌面201中包括各种应用(application,APP)的图标,其中包括相机应用的图标202。当手机检测到针对相机应用的图标202的操作(比如点击操作)后,可以启动相机应用,显示如图3中的(b)所示的另一GUI,该GUI可以称为拍摄界面203。在预览状态下,该取景界面203内可以实时显示预览图像。示例性的,图3中的(b)中拍摄界面203中显示图像A。图像A以风景图为例,包括船只等拍摄对象。
继续参见图3中的(b),取景界面203中包括用于指示拍照模式的控件204,用于指示录像模式的控件205,用于指示全景模式的控件206,以及拍摄控件207。图3中的(b)以手机当前正处于拍照模式为例,在拍照模式下,当手机检测到针对拍摄控件207的操作后,手机执行拍照操作。假设手机检测到针对录像控件206的操作,则进入录像模式,在录像模式下,手机检测到针对拍摄控件207的操作后,手机执行录像操作(该过程图中未示出)。当手机检测到针对全景控件206的操作时,进入全景模式,显示如图3中的(c)所示的拍摄界面,该拍摄界面中显示图像B。图像B比图像A具有更大的视角(angle of view,FOV)。比如,图像B中除了包括图像A中已有的拍摄对象(如船只)以外,还包括树、狗等更多的拍摄对象。对比图3中的(b)和图3中的(c)可知,手机从拍照模式切换到全景模式时,拍摄界面中的预览图像由图像A切换为图像B,切换为视角更大的图像。为了方便描述,下文将图像B称为第一图像。
在一些实施例中,第一图像是第一摄像头拍摄的图像。示例性的,所述第一摄像头可以是广角摄像头。
在一些实施例中,当手机显示图3中的(c)所示的界面时,若手机检测到针对拍摄控件207的操作,执行拍照动作,得到一张全景图像,该全景图像即广角摄像头拍摄的图像。这种方式比较便捷,但是由于广角摄像头的图像解析能力(即摄像头分辨率)较弱,所以广角摄像头拍摄的全景图像虽然包含了更多景物,但是图像细节不够清楚。
为了提升广角摄像头拍摄的全景图像的细节清晰度,本申请实施例提供一种图像拍摄方法,该方法可以对广角摄像头拍摄的全景图像作细节补充,以提升全景图像的细节清晰度。比如,除了广角摄像头拍摄的全景图像以外,电子设备还拍摄了细节图,通过将细节图与广角摄像头所拍摄的全景图像融合的方式得到细节清晰度增强的全景图像。
示例性的,电子设备上具有至少两个摄像头,比如,第一摄像头和第二摄像头。其中,第一摄像头用于采集第一图像(即全景图像),第二摄像头用于采集第二图像(用于对全 景图像作细节补充的细节图)。其中,第一摄像头可以是广角摄像头。考虑到第二图像用于做细节补充,所以尽量保证第二图像上细节清晰度较高,所以第二摄像头可以使用图像解析力(即摄像头分辨率)较强的摄像头,比如,第二摄像头的分辨率高于第一摄像头的分辨率,如,第二摄像头可以是长焦摄像头,当然也可以是其他类型摄像头。
一种可实现方式为,当手机显示图3中的(c)所示的界面时,若手机检测到针对拍摄控件207的操作时,显示如图4所示的界面400。该界面400中显示第一图像(即图像B),以及四个拍摄指示点:拍摄指示点402、拍摄指示点403、拍摄指示点404、拍摄指示点405。其中,拍摄指示点用于提示用户将第二摄像头对准拍摄指示点进行细节图的拍摄。需要说明的是,此处提到的对准拍摄指示点进行拍摄可以理解为,调整第二摄像头的拍摄角度使得拍摄指示点所在区域内的拍摄对象处于第二摄像头的视角范围内。比如,以拍摄指示点402为例,拍摄指示点402所在区域是以拍摄指示点402为中心、长度为预设长度、宽度为预设宽度的区域1(如后面的图7中的区域1),即调整第二摄像头的拍摄参数使得区域1内的拍摄对象处于第二摄像头的视角范围内。其中,预设长度、预设宽度等具体取值本申请不限定。为了方便指导用户操作,界面400中还可以显示提示信息:对准拍摄指示点进行拍摄。
为了方便提示用户是否对准拍摄指示点,界面400中还包括基准点401。基准点401的显示位置随着第二摄像头拍摄角度的变化而变化。用户通过基准点401判断是否对准拍摄指示点。比如,当基准点401与某个拍摄指示点位置重叠或者覆盖于该拍摄指示点上层时,认为对准了该拍摄指示点。示例性的,基准点401与拍摄指示点的形状、颜色等可以相同或不同。
示例性的,如图5中的(a),手机检测到基准点401对准拍摄指示点402时,通过第二摄像头拍摄图像1。一些实施例中,当手机检测到基准点401对准拍摄指示点402并保持对准状态预设时长时,通过第二摄像头拍摄图像1;或者,手机检测到基准点401对准拍摄指示点402并且检测到用户操作(比如单击或双击基准点401的操作)时,通过第二摄像头拍摄图像1。需要说明的是,图5中的(a)中手机检测到基准点401对准拍摄指示点402并拍摄图像1,可以是手机后台拍摄图像1,前台不展示拍摄的图像1,即在界面400中不出现图像1。由于前台不出现图像1,所以用户无法获知是否对拍摄指示点402拍摄完成。在一些实施例中,手机拍摄完图像1时,可以输出提示,以提示用户对拍摄指示点402拍摄完成。所述提示可以是声音、振动。或者,如图6所示,手机检测到基准点401对准拍摄指示点402并进行拍摄时,在基准点401上显示拍摄进度指示。所述拍摄进度指示可以是指示针600。指示针600从0度到360度进行旋转,代表拍摄进度。当旋转到360度时,代表拍摄完成。总之,手机前台可以不展示拍摄的细节图(即图像1),但是可以通过一定的提示信息向用户提示对拍摄指示点402的细节图拍摄完成。
对拍摄指示点402拍摄完成之后,手机可以自动调整基准点401对准下一个拍摄指示点(比如拍摄指示点403)或者用户改变第二摄像头的拍摄角度以使基准点401对准下一个拍摄指示点。如图5中的(b),手机检测到基准点401对准拍摄指示点403时,通过第二摄像头拍摄图像2。其中,手机对拍摄指示点403的拍摄过程与对拍摄指示点402的拍摄过程原理相同,不重叠赘述。以此类推,手机可以对剩余的拍摄指示点进行拍摄。比如,如图5中的(c),手机检测到基准点401对准拍摄指示点404时,通过第二摄像头拍摄图像3。如图5中的(d),手机检测到基准点401对准拍摄指示点405时,拍摄图像4。也 就是说,第二摄像头对四个拍摄指示点分别拍摄了对应的细节图,即图像1至图像4。
在一些实施例中,手机检测到遍历完四个拍摄指示点后,将四张图像(图像1至图像4)分别与第一图像融合得到第二图像。具体地,手机将四张图像分别融合到第一图像上对应区域内。比如,请参见图7,第一图像上包括四个区域,区域1至区域4。区域1的中心点为拍摄指示点402所在位置,区域2的中心点为拍摄指示点403所在位置,区域3的中心点为拍摄指示点404所在位置,区域4的中心点为拍摄指示点405所在位置。由于图像1是与区域1对应的细节图,所以手机将图像1融合到区域1中,即将图像1与区域1内的图像块融合,同理,将图像2融合到区域2中,将图像3融合到区域3中,将图像4融合到区域4中。需要说明的是,在图3中的(c)中,用户点击了一次拍摄按键207,然后进入图4或图5所示的界面400进行细节图的拍摄。当手机检测到遍历完四个拍摄指示点时,可以自动将四张图像(图像1至图像4)和第一图像融合得到第二图像。也就是说,只需用户点击一次拍摄按键207,即可拍摄得到一张细节清楚的全景图。
在另一些实施例中,在图3中的(c)中,用户点击了一次拍摄按键207,然后进入图4或图5所示的界面400进行细节图的拍摄。在遍历完四个拍摄指示点时,若手机检测到用户再次触发拍摄按键207时,将四张图像(即图像1至图像4)和第一图像融合得到第二图像。这种方式,需要用户点击两次拍摄按键207完成全景拍摄。一种可能的场景为,手机已遍历完四个拍摄指示点,但是在检测到用户再次触发拍摄按键207之前,不会将四张图像与第一图像融合,可以允许用户对其中某个拍摄指示点进行重新拍摄。比如,手机检测到基准点401再次对准拍摄指示点402时拍摄图像5,将图像5替换图像1。当手机检测到用户再次触发拍摄按键207时,将四张图像(图像2至图像5)与第一图像融合得到第二图像。
在一些实施例中,四个拍摄指示点中不需要全部遍历完。比如,只对拍摄指示点402和拍摄指示点403进行拍摄,得到两张细节图(即图像1和图像2),将这两张图像与第一图像融合得到第二图像。一种可实现方式为,在图3中的(c)中,用户点击了一次拍摄按键207,然后进入图4的界面400,用户将基准点401对准拍摄指示点402拍摄得到图像1,将基准点401对准拍摄指示点403拍摄得到图像2。此时,手机检测到用户再次触发拍摄按键207,则将图像1和图像2分别与第一图像融合得到第二图像。该过程中,并未对拍摄指示点404与拍摄指示点405进行拍摄。这种方式中,用户可以只对关心的区域作细节补充。比如,如图5中的(d),第一图像上用户只关心狗所在区域的拍摄质量,那么可以只对拍摄指示点404进行细节拍摄,这样不仅工作量可以降低,而且不影响用户拍摄体验,因为用户关心的部分的细节清晰度已提升。
在上面的实施例中,以手机通过第二摄像头对四个拍摄指示点分别进行拍摄为例。在另一些实施例中,手机还可以使用不同摄像头分别对四个拍摄指示点进行拍摄。比如,请参见图8,手机背面(与手机显示屏相对的一面)上设置有五个摄像头,其中摄像头1是广角摄像头(即第一摄像头),用于采集第一图像。摄像头2至摄像头5可以是长焦摄像头或其他类型摄像头。摄像头2至摄像头5分别用于对不同的拍摄指示点进行拍摄。比如图像1可以是摄像头2拍摄的,图像2可以是摄像头3拍摄的,图像3可以是摄像头4拍摄的,图像4可以是摄像头5拍摄的。或者,图像1和图像2是摄像头2拍摄的,图像3和图像4是摄像头3拍摄的,等等,本申请实施例不作限定。
在上面的实施例中,手机显示拍摄提示点,通过拍摄指示点指示用户进行细节图的拍 摄。在另一些实施例中,手机也可以不显示拍摄指示点。比如,当手机显示图3(c)所示的界面时,若手机检测到针对拍摄控件207的操作时,手机后台确定第一图像上的第一区域,该第一区域为第一图像上待补充细节的区域。在确定第一区域之后,手机调整第二摄像头的拍摄角度使得第一区域内的拍摄对象处于第二摄像头的拍摄范围内,并通过第二摄像头拍摄第三图像,该第三图像即用于对第一区域作细节补充的细节图。手机将第三图像融入第一图像上第一区域内得到第二图像。该第二图像是全景图像但是细节清晰度高于第一图像。这种方式中,用户点击了拍摄控件207之后,手机未显示拍摄提示点,而是自动识别第一区域,并对第一区域作细节图(即第三图像)拍摄,将第三图像融合到第一图像的第一区域内得到第二图像。也就是说,用户点击一次拍摄控件207即自动得到细节清晰度较高的全景图像。
示例性的,第一区域可以是第一图像上用户感兴趣的拍摄对象所在区域。比如,手机可以记录用户对哪些拍摄对象修图过以及对每个拍摄对象修图的次数,那么用户感兴趣的拍摄对象可以是修图次数大于预设次数的对象。或者,手机中存储多张图像,其中包含某一拍摄对象(比如狗)的图像的数量大于预设数量,那么该拍摄对象即用户感兴趣拍摄对象。
或者,第一区域是第一图像上清晰度低于预设清晰度的区域。
或者,第一区域是第一图像的中心区域。
或者,第一区域也可以是用户设定的区域。比如,用户可以在图3中的(c)所示的界面中画圈操作选定第一区域。这种方式中,用户可以指定第一图像上哪个区域需要做细节补充,提升用户关心的区域内的细节清晰度。
在一些实施例中,第一区域可以是一个区域或多个区域。以两个区域,即第一区域和第二区域为例,手机调整第二摄像头的拍摄角度对第一区域进行拍摄得到第三图像,然后调整第二摄像头的拍摄角度对第二区域进行拍摄得到第四图像,然后将第三图像融合到第一图像上的第一区域内,将第四图像融合到第一图像上的第二区域内,得到第二图像。
如前文所述,手机通过第二摄像头拍摄细节图。可以理解的是,第二摄像头拍摄的图像质量与第二摄像头的拍摄参数相关,所述拍摄参数可以包括感光度、快门速度、焦距、物距、白平衡度、亮度、色温等中的至少一种。本申请实施例提供如下至少一种确定第二摄像头的拍摄参数的方式。
第一种方式,第二摄像头的拍摄参数是默认设置好的(比如默认是初始值),或者,是上一次设置使用时设置的。比如,用户上一次使用第二摄像头时设置的拍摄参数包括感光度50,快门速度1/250秒,那么第二摄像头对拍摄指示点拍摄时,使用感光度50,快门速度1/250秒进行拍摄。
第二种方式,第二摄像头的第二拍摄参数与第一摄像头的第一拍摄参数相关。其中,所述第一拍摄参数包括:第一曝光时间、第一光圈数、第一感光度、第一白平衡、第一物距、第一焦距中的至少一种。所述第二拍摄参数包括:第二曝光时间、第二光圈数、第二感光度、第二白平衡、第二物距、第二焦距中的至少一种。
示例性的,所述第二摄像头拍摄与所述第一拍摄参数相关,包括如下至少一项:
所述第二白平衡度与所述第一白平衡度之间的差值小于第一阈值。比如,第一摄像头的第一白平衡为6000K,那么第二摄像头的第二白平衡度为6000K。
所述第二焦距与所述第一焦距之间的差值小于第二阈值。比如,第一摄像头的第一物距为100m,那么,第二摄像头的物距为100m。
所述第二物距与所述第一物距之间的差值小于第三阈值。
所述第一曝光时间、所述第一感光度以及所述第一光圈数与所述第二曝光时间、所述第二感光度以及所述第二光圈数满足预设函数关系。
示例性的,所述预设函数关系,包括:
Figure PCTCN2022126806-appb-000009
其中,S1为所述第一感光度,T1为所述第一曝光时间,A1为所述第一光圈数,所述A2为所述第二光圈数,S2为所述第二感光度,T2为所述第二曝光时间。
一般情况下,摄像头的光圈是已知的,即第二摄像头的第二光圈数A2和第一摄像头的第一光圈数A1是已知的,在已知第一摄像头的第一快门时间T1和第一感光度S1的情况下,通过上述公式(1)可以得到第二摄像头的第二感光度S2与第二快门时间T2的乘积,进而分别得到第二感光度S2与第二快门时间T2的取值。举例来说,假设第一摄像头的第一拍摄参数包括:第一感光度为100,第一快门速度(即第一曝光时间)为1/2000,第一光圈数为1.8,即A1=1.8、S1=100、T1=1/2000。再假设第二摄像头的第二光圈数为3.5。那么,通过上述公式(1)可以计算出,S2T2=0.189。示例性的,可以取S2=50,T2=1/250,只要S2与T2的乘积等于0.189即可。
需要说明的是,上述公式(1)可以是存储于手机中的,或者可以通过如下步骤1至步骤3得到。
步骤1,在拍摄图像时,曝光时间满足如下公式(2):
Figure PCTCN2022126806-appb-000010
其中,A为光圈数,T为快门时间,L为景物亮度,S为感光度,K为反光式测光表校正常数,是一个常数。上述曝光时间所满足的公式(2)是已知的,比如ISO协议(ISO2720:1974)中给出的。
步骤2,因为公式(2)中L是固定值,K是固定值,所以上述公式(2)可以简化为下面的公式(3):
Figure PCTCN2022126806-appb-000011
其中M为常数,
Figure PCTCN2022126806-appb-000012
步骤3,对于每个镜头都满足上述的公式(3),那么不同镜头之间满足如下公式(1):
Figure PCTCN2022126806-appb-000013
因此,通过以上的步骤1至步骤3得到上面的公式(1)。
在第二种方式中,由于第二摄像头的第二拍摄参数与第一摄像头拍摄第一图像时的第一拍摄参数相关,所以第二摄像头拍摄出的细节图与第一图像适配,比如,色彩、亮度等差异不大。这样细节图(比如图像1至图像4)与第一图像融合时,能够很好的融合。
第三种方式,第二摄像头的拍摄参数还可以是用户设置的,换言之,用户可调整。比如,请参见图9中的(a),当基准点401对准拍摄指示点402时,在第一图像上显示拍摄参数900(比如,光圈50,快门速度1/250秒)。拍摄参数900是第二摄像头当前拍摄参数。用户可以增加或降低光圈或快门速度,比如通过“+”按键来增加,通过“-”按键来降低,第二摄像头使用调整后的拍摄参数对拍摄指示点402进行拍摄。同理,如图9中的(b),在 基准点401对准拍摄指示点403时,显示拍摄参数901,用户可以调整该拍摄参数901,第二摄像头使用调整后的拍摄参数对拍摄指示点403进行拍摄。同理,如图9中的(c),在基准点401对准拍摄指示点404时,显示拍摄参数902,用户可以调整该拍摄参数。如图9中的(d),在基准点401对准拍摄指示点405时,显示拍摄参数903,用户可以调整该拍摄参数。
值得说明的是,以图4中的四个拍摄指示点为例,如果第二摄像头对四个拍摄指示点拍摄时使用的拍摄参数不同,那么对四个拍摄指示点所拍摄出的图像(即图像1至图像4)之间可能存在亮度、色彩等的明显差异。如果将所述四张图像与第一图像上不同区域(如图7)融合,那么融合之后的图像上不同区域的亮度、色彩等存在较大差异,影响图像整体的美感。因此,在本申请实施例中,第二摄像头对每个拍摄指示点拍摄时使用的第二拍摄参数可以相同。比如,所述第二拍摄参数是经过上述第一种至第三种方式中的任一种确定的。
在上面的实施例中,以四个拍摄指示点为例,需要说明的是,本申请实施例不限定拍摄指示点的数量,可以是至少一个。比如,拍摄指示点的数量可以是系统默认设置的或者用户设置的,或者拍摄指示点的数量与第一摄像头的第一拍摄参数和/或第二摄像头的第二拍摄参数相关。其中,拍摄指示点的数量包括在水平方向上的数量和/或在竖直方向上的数量。
示例性的,所述拍摄指示点在水平方向上的数量满足:
Figure PCTCN2022126806-appb-000014
其中,W1为所述第一摄像头对应的成像平面的宽度,f1为所述第一摄像头的焦距,W2为所述第二摄像头对应的成像平面的宽度,f2为所述第一摄像头的焦距。比如,第一摄像头的焦距为27mm,即f1=27mm,第二摄像头的焦距为95mm,即f2=95mm,两个摄像头的成像平面大小相同,宽w为36mm,高h为24mm,那么通过上面的公式(4)可以得到k1=3.33,通过向上取整的方式可知在水平方向上需要4个拍摄提示点。
示例性的,所述拍摄指示点在竖直方向上的数量满足:
Figure PCTCN2022126806-appb-000015
其中,h1为第一摄像头对应的成像平面的高度,f1为第一摄像头的焦距,h2为第二摄像头对应的成像平面的高度,f2为第二摄像头的焦距。比如,第一摄像头的焦距为27mm,即f1=27mm,第二摄像头的焦距为95mm,即f2=95mm,两个摄像头的成像平面大小相同,宽w为36mm,高h为24mm,那么通过上面的公式(5)可以得到k2=3.33,通过向上取整的方式可知在竖直方向上需要4个拍摄提示点。
也就是说,拍摄指示点包括水平方向4个,竖直方向4个的4*4的矩阵,如图4所示。
在一些实施例中,上面的公式(4)和(5)可以事先存储在手机中,或者通过如下步骤得到:
步骤1,基于摄像头的成像原理可知,第一摄像头在水平方向上的视角大小α11满足如 下公式(6):
Figure PCTCN2022126806-appb-000016
其中,f1是第一摄像头的焦距,w1是第一摄像头的成像平面在水平方向上的尺寸即宽度。
第一摄像头在竖直方向上的视角大小α12满足如下公式(7):
Figure PCTCN2022126806-appb-000017
其中,f1是第一摄像头的焦距,h1是第一摄像头的成像平面在竖直方向上的尺寸即高度。
为了方便理解,请参见图10A,为第一摄像头与成像平面之间的关系示意图。经过第一摄像头的光线在该平面上形成图像。可以理解的是,第一摄像头的视角α1包括在水平方向上视角α11,竖直方向上的视角α12。α11对应成像平面的宽度w1,α12对应成像平面的高度h1。其中,α11、w1与焦距f1满足上述公式(6),α12、h1与焦距f1满足上述公式(7)。
同理,第二摄像头在水平方向上的视角大小α21满足如下公式(8):
Figure PCTCN2022126806-appb-000018
其中,f2是第二摄像头的焦距,w2是第二摄像头的成像平面在水平方向上的尺寸即宽度。
第二摄像头在竖直方向上的视角大小α22满足如下公式(9):
Figure PCTCN2022126806-appb-000019
其中,f2是第二摄像头的焦距,h2是第二摄像头的成像平面在竖直方向上的尺寸即高度。
为了方便理解,请参见图10B,为第二摄像头与成像平面之间的关系示意图。经过第二摄像头的光线在该平面上形成图像。可以理解的是,第一摄像头的视角α2包括在水平方向上视角α21,竖直方向上的视角α22。α21对应成像平面的宽度w2,α22对应成像平面的高度h2。其中,α21、w2与焦距f2满足上述公式(8),α22、h2与焦距f2满足上述公式(9)。
步骤2,拍摄指示点在水平方向上的数量k1与第一摄像头在水平方向上的视角α11和第二摄像头在水平方向上的视角α21的比值相关。比如,水平方向上的拍摄指示点的个数满足如下公式:
Figure PCTCN2022126806-appb-000020
因此,通过上述方式得到公式(4)。
拍摄指示点在竖直方向上的数量k2与第一摄像头在竖直方向上的视角α12和第二摄像头在竖直方向上的视角α22的比值相关。比如,竖直方向上拍摄指示点的个数为:
Figure PCTCN2022126806-appb-000021
因此,通过上述方式得到公式(5)。
在上面的实施例中,通过公式(4)计算水平方向上的拍摄指示点的数量,通过公式(5)计算竖直方向上的拍摄指示点的数量。在另一些实施例中,当通过公式(4)确定出水平方向上的拍摄指示点的数量之后,竖直方向上的拍摄指示点数量等于水平方向上的拍摄指示点数量即可,或者,当通过公式(5)确定竖直方向上的拍摄指示点的数量之后,水平方向上的拍摄指示点的数量等于竖直方向上的拍摄指示点的数量即可。
在其它实施例中,拍摄指示点的数量还可以是用户设置的或者系统默认设置的等等,本申请实施例不作限定。
在确定拍摄指示点在水平方向上的数量以及在竖直方向上的数量之后,可以确定拍摄指示点的位置,比如,均匀分布于第一图像上。示例性的,所述均匀分布可以理解为在水平方向上各个拍摄指示点之间的距离相同,在竖直方向上各个拍摄指示点之间的距离相同。比如,请参见图11,在水平方向上,各个拍摄指示点之间的距离均为L1,在竖直方向上各个拍摄指示点之间的距离均为L2。
图12为本申请一实施例提供的图像拍摄方法的流程示意图。如图所示,该方法的流程包括:
S1201,电子设备响应于第一操作,显示拍摄界面,所述拍摄界面中显示第一图像,所述第一图像为所述第一摄像头采集的图像。
示例性的,所述第一操作可以是针对图3中的(b)中全景按键206的操作。所述拍摄界面可以是图3中的(c)所示的拍摄界面。所述第一摄像头可以是电子设备上的广角摄像头。所述第一图像是图像B。
S1202,电子设备响应于第二操作,拍摄得到第二图像,所述第二图像是基于所述第一图像和第三图像得到的,所述第三图像是所述第二摄像头拍摄的,且所述第三图像与所述第一图像上存在重叠区域,所述重叠区域内包括至少一个相同对象;其中,所述第二摄像头拍摄所述第三图像时使用的第二拍摄参数与所述第一摄像头拍摄所述第一图像时使用的第一拍摄参数相关。
示例性的,所述第二操作可以是在图3中的(c)中,用户点击拍摄按键207的操作。
其中,第二摄像头的视角范围与第一摄像头的视角范围有重叠,所以第二摄像头采集的第二图像与第一摄像头采集的第一图像上有重叠区域,重叠区域内包括至少一个相同对象。比如,重复区域可以是图7中区域1至区域4中的任一区域。这样,第二图像上的重叠区域与第一图像上的重叠区域可以融合,以提升第一图像上该重叠区域的清晰度。
一种可实现方式为,在图3中的(c)中,用户点击了一次拍摄按键207(即第二操作),然后进入图4或图5所示的界面400,通过对拍摄指示点进行细节图的拍摄,得到四张图像(图像1至图像4)。当手机检测到遍历完四个拍摄指示点时,可以自动将四张图像(图像1至图像4)和第一图像融合得到第二图像。也就是说,只需用户点击一次拍摄按键207,即可拍摄得到一张细节清楚的全景图。这部分的具体实现过程可以参见前文描述。
另一种可实现方式为,在图3中的(c)中,用户点击了一次拍摄按键207(即第二操作),然后进入图4或图5所示的界面400进行细节图的拍摄。在遍历完四个拍摄指示点或者不需要全部遍历完只对其中部分拍摄指示点进行拍摄,在手机检测到用户再次触发拍摄按键207时,将得到的细节图与第一图像融合得到第二图像。这部分的具体实现过程请参见前文描述。
又一种可实现方式为,电子设备也可以不显示拍摄指示点。比如,当显示图3中的(c)所示的界面时,若检测到针对拍摄控件207的操作(即第二操作)时,后台确定第一图像上的第一区域,该第一区域为第一图像上待补充细节的区域。在确定第一区域之后,手机调整第二摄像头的拍摄角度使得第一区域内的拍摄对象处于第二摄像头的拍摄范围内,并通过第二摄像头拍摄第三图像,该第三图像即用于对第一区域作细节补充的细节图。手机将第三图像融入第一图像上第一区域内得到第二图像。该第二图像是全景图像但是细节清晰度高于第一图像。这部分的具体实现过程请参见前文描述。
在本申请实施例中,第二摄像头拍摄第三图像时使用的第二拍摄参数与第一摄像头拍摄第一图像时使用的第一拍摄参数相关。其中,所述第一拍摄参数包括:第一曝光时间、第一光圈数、第一感光度、第一白平衡、第一物距、第一焦距中的至少一种。所述第二拍摄参数包括:第二曝光时间、第二光圈数、第二感光度、第二白平衡、第二物距、第二焦距中的至少一种。
示例性的,所述第二摄像头拍摄与所述第一拍摄参数相关,包括如下至少一项:
所述第二白平衡度与所述第一白平衡度之间的差值小于第一阈值。比如,所述第二白平衡度等于所述第一白平衡度。
所述第二焦距与所述第一焦距之间的差值小于第二阈值。比如,所述第二焦距等于所述第一焦距。
所述第二物距与所述第一物距之间的差值小于第三阈值。比如,所述第二物距等于所述第一物距。
所述第一曝光时间、所述第一感光度以及所述第一光圈数与所述第二曝光时间、所述第二感光度以及所述第二光圈数满足预设函数关系。所述预设函数关系,即前文中的公式(1),关于公式(1)的推导过程,请参见前文,为了节省篇幅,不重复赘述。
本申请实施例提供的图像拍摄方法还可以适用于系统。该系统中包括第一电子设备和第二电子设备。第一电子设备用于拍摄第一图像(即全景图像),第二电子设备用于拍摄第二图像,第二图像是用于对第一图像作细节补充的细节图,比如上面的实施例中图像1至图像4。第二电子设备拍摄的第二图像与第一电子设备拍摄的第一图像融合得到细节清晰的全景图像。其中,第一摄像头可以是广角摄像头。第二摄像头的分辨率高于第一摄像头的分辨率,如,第二摄像头可以是长焦摄像头,当然也可以是其它类型的摄像头。
其中,第一电子设备与第二电子设备可以是相同类型的设备,比如都是手机;或者,也可以是不同类型的设备,比如一个是手机,另一个是平板电脑、无人机等等。
为了方面描述,以第一电子设备是无人机、第二电子设备是手机为例。
在一些实施例中,手机与无人机建立连接,所述连接包括无线连接,具体的连接过程本文不多赘述。手机与无人机连接之后,无人机向手机发送无人机上第一摄像头采集的图像。示例性的,无人机上或者与无人机连接的遥控设备上设置用于向手机发送图像的按键 等,用户可以通过该按键控制无人机将采集的图像发送给手机。所述第一摄像头可以广角摄像头。
请参见图13中的(a),手机进入全景模式之后,显示图像C,图像C是手机上广角摄像头拍摄的图像,还显示标记1300。一些实施例中,当手机与无人机连接时或者手机接收到无人机的图像时,可以出现标记1300。当手机检测到标记1300时,显示如图13中的(b)所述的拍摄界面,该拍摄界面中包括图像D,图像D是无人机拍摄的图像。也就是说,手机在拍摄界面中展示无人机拍摄的图像。为了方便描述,将图像D称为第一图像。
当手机检测到针对拍摄控件207的操作时,显示如图14的界面1400,该界面1400中显示第一图像(即图像D),还显示基准点1401以及四个拍摄指示点(拍摄指示点1402至拍摄指示点1405)。手机通过第二摄像头依次对四个拍摄指示点进行拍摄得到四张图像。其中,第二摄像头的第二拍摄参数与无人机上第一摄像头的第一拍摄参数相关。具体的实现过程与前文相同,此处不重复赘述。
手机得到四张细节图之后可以将其发送给无人机,无人机将这四张图像与无人机本机拍摄的第一图像融合得到一张细节清晰的全景图像。或者,手机将这四张图像与无人机本机拍摄的第一图像融合得到一张细节清晰的全景图像之后,将该全景图像发送给无人机。
图15为本申请实施例提供的图像拍摄方法的流程示意图。该方法的流程包括:
S1501,第一电子设备上第一摄像头采集第一图像。
S1502,第一电子设备将第一图像以及第一摄像头拍摄第一图像时使用的第一拍摄参数发送给第二电子设备。
示例性的,以第一电子设备是无人机为例,所述第一摄像头可以是无人机上的广角摄像头。
S1503,第二电子设备响应于第一操作,显示拍摄界面,该拍摄界面中显示第一图像。
比如,以第二电子设备是手机为例,所述第一操作可以是针对图13中的(a)中的标识1300的操作。拍摄界面可以是图13中的(b)所示的界面,第一图像可以是图像D。
S1504,第二电子设备响应于第二操作,通过第二摄像头拍摄得到第三图像。第三图像与第一图像上有重叠区域,重叠区域内包括至少一个相同对象。其中,第二摄像头拍摄第三图像时使用的第二拍摄参数与第一摄像头拍摄第一图像时使用的第一拍摄参数相关。
示例性的,所述第二操作可以是在图13中的(b)中,用户点击拍摄按键207的操作。
一种可实现方式为,在图13中的(b)中,用户点击了一次拍摄按键207(即第二操作),然后进入图14所示的界面1400,通过对四个拍摄指示点进行细节图的拍摄,得到四张第三图像(图像1至图像4)。这部分的具体实现过程可以参见前文图4、图5等的描述。
另一种可实现方式为,在图13中的(b)中,用户点击了一次拍摄按键207(即第二操作),然后进入图14所示的界面1400进行细节图的拍摄。在遍历完四个拍摄指示点或者不需要全部遍历完只对其中部分拍摄指示点进行拍摄,在检测到用户再次触发拍摄按键207时,得到的第三图像(可以是一张或多张)。这部分的具体实现过程请参见前文描述。
又一种可实现方式为,手机也可以不显示拍摄指示点。比如,当显示图13中的(b)所示的界面时,若检测到针对拍摄控件207的操作(即第二操作)时,后台确定第一图像上的第一区域。在确定第一区域之后,手机调整第二摄像头的拍摄角度使得第一区域内的拍摄对象处于第二摄像头的拍摄范围内,并通过第二摄像头拍摄第三图像,该第三图像即用于对第一区域作细节补充的细节图。这部分的具体实现过程请参见前文描述。
在本申请实施例中,第二摄像头拍摄第三图像时使用的第二拍摄参数与第一摄像头拍摄第一图像时使用的第一拍摄参数相关。其中,所述第一拍摄参数包括:第一曝光时间、第一光圈数、第一感光度、第一白平衡、第一物距、第一焦距中的至少一种。所述第二拍摄参数包括:第二曝光时间、第二光圈数、第二感光度、第二白平衡、第二物距、第二焦距中的至少一种。
示例性的,所述第二摄像头拍摄与所述第一拍摄参数相关,包括如下至少一项:
所述第二白平衡度与所述第一白平衡度之间的差值小于第一阈值。比如,所述第二白平衡度等于所述第一白平衡度。
所述第二焦距与所述第一焦距之间的差值小于第二阈值。比如,所述第二焦距等于所述第一焦距。
所述第二物距与所述第一物距之间的差值小于第三阈值。比如,所述第二物距等于所述第一物距。
所述第一曝光时间、所述第一感光度以及所述第一光圈数与所述第二曝光时间、所述第二感光度以及所述第二光圈数满足预设函数关系。所述预设函数关系,即前文中的公式(1),关于公式(1)的推导过程,请参见前文,为了节省篇幅,不重复赘述。
S1505,第二电子设备向第一电子设备发送第三图像。
S1506,第一电子设备基于第三图像和第一图像得到第二图像。
在另一些实施例中,S1505可以替换成:第二电子设备基于第三图像和第一图像得到第二图像。S1506可以替换成:第二电子设备将第二图像发送给第一电子设备。
需要说明的是,为了节省篇幅,该实施例的各种实现方式不重复赘述,前文中的各种实现方式(比如拍摄指示点的数量和/或位置的确定)均可以应用于该实施例中。
图16为本申请实施例提供的一种系统的结构示意图。
图16中左半部分是第一电子设备的软件结构,右半部分是第二电子设备的软件结构。其中,第一电子设备中包括第一融合管理模块、第一传输管理模块和第一成像管理模块,还包括第一摄像头。第二电子设备中包括第二融合管理模块、第二传输管理模块和第二成像管理模块,还包括第二摄像头。
图17为本申请实施例提供的图像拍摄方法的流程示意图。该流程示意图可以理解为图16所示的第一电子设备与第二电子设备的信息交互图或者对图15的一种细化流程图。其中,第一电子设备例如可以是无人机,第二电子设备例如可以是手机。如图17,所述流程包括:
S1701,第一电子设备上的第一摄像头采集第一图像。
S1702,第一摄像头将第一图像以及第一拍摄参数发送给第一成像管理模块。其中,第一拍摄参数是第一摄像头采集第一图像时使用的拍摄参数。
S1703,第一成像管理模块将第一图像以及第一拍摄参数发送给第一传输管理模块。
S1704,第一传输管理模块将第一图像以及第一拍摄参数发送给第二电子设备中的第二传输管理模块。
S1705,第二传输管理模块将第一图像以及第一拍摄参数发送给第二融合管理模块。
S1706,第二融合管理模块通过第一拍摄参数计算第二摄像头的第二拍摄参数,以及拍摄指示点的数量和/或位置。
前文已经描述过,第二拍摄参数与第一拍摄参数相关,拍摄指示点的数量与第一拍摄参数和/或第二拍摄参数相关,所以S1605的实现过程请参见前文。
可以理解的是,在S1606之后,第二电子设备上显示拍摄指示点。
S1707,第二融合管理模块将第二拍摄参数发送给第二成像管理模块。
S1708,第二成像管理模块设置第二摄像头的拍摄参数为所述第二拍摄参数。
S1709,第二摄像头使用第二拍摄参数拍摄得到第二图像。
S1710,第二成像管理模块获取第二图像。
S1711,第二成像管理模块将第二图像发送给第二传输管理模块。
S1712,第二传输管理模块将第二图像发送给第一传输管理模块。
S1713,第一传输管理模块将第二图像发送给第一融合管理模块。
S1714,第一融合管理模块将第二图像与第一图像融合得到全景图像。
图18为本申请实施例提供的电子设备1800的结构示意图。电子设备1800可以是前文中的手机。如图18所示,电子设备1800可以包括:一个或多个处理器1801;一个或多个存储器1802;通信接口1803,以及一个或多个计算机程序1804,上述各器件可以通过一个或多个通信总线1805连接。其中该一个或多个计算机程序1804被存储在上述存储器1802中并被配置为被该一个或多个处理器1801执行,该一个或多个计算机程序1804包括指令。比如,上述指令可以用于执行如上面相应实施例中手机的相关步骤。通信接口1803用于实现手机与其他设备(比如,无人机)的通信,比如通信接口可以是收发器。
本申请实施例还提供一种通信系统。所述通信系统中包括第一电子设备和第二电子设备。其中,第一电子设备可以是前文中的无人机,第二电子设备可以是前文中的手机。其中,第一电子设备和第二电子设备的结构可以参见图18所示。比如,当图18所示的电子设备18是第一电子设备时,当一个或多个计算机程序1804的指令被处理器执行时,使得所述第一电子设备执行如前文中第一电子设备(即无人机)的步骤。当图18所示的电子设备1800是第二电子设备时,当一个或多个计算机程序1804的指令被所述处理器执行时,使得所述第二电子设备执行如前文中第二电子设备(即手机)的步骤。
上述本申请提供的实施例中,从电子设备(如手机)作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。
以上实施例中所用,根据上下文,术语“当…时”或“当…后”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。另外,在上述实施例中,使用诸如第一、第二之类的关系术语来区份一个实体和另一个实体,而并不限制这些实体之间的任何实际的关系和顺序。
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外 一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。在不冲突的情况下,以上各实施例的方案都可以组合使用。
需要指出的是,本专利申请文件的一部分包含受著作权保护的内容。除了对专利局的专利文件或记录的专利文档内容制作副本以外,著作权人保留著作权。

Claims (25)

  1. 一种图像拍摄方法,其特征在于,应用于电子设备,所述电子设备上包括第一摄像头和第二摄像头,所述方法包括:
    响应于第一操作,显示拍摄界面,所述拍摄界面中显示第一图像,所述第一图像为所述第一摄像头采集的图像;
    响应于第二操作,拍摄得到第二图像,所述第二图像是基于所述第一图像和第三图像得到的,所述第三图像是所述第二摄像头拍摄的,且所述第三图像与所述第一图像上存在重叠区域,所述重叠区域内包括至少一个相同对象;
    其中,所述第二摄像头拍摄所述第三图像时使用的第二拍摄参数与所述第一摄像头拍摄所述第一图像时使用的第一拍摄参数相关。
  2. 根据权利要求1所述的方法,其特征在于,
    所述第一拍摄参数包括:第一曝光时间、第一光圈数、第一感光度、第一白平衡、第一物距、第一焦距中的至少一种;和/或,
    所述第二拍摄参数包括:第二曝光时间、第二光圈数、第二感光度、第二白平衡、第二物距、第二焦距中的至少一种。
  3. 根据权利要求2所述的方法,其特征在于,所述第二摄像头拍摄与所述第一拍摄参数相关,包括如下至少一项:
    所述第二白平衡度与所述第一白平衡度之间的差值小于第一阈值;
    所述第二焦距与所述第一焦距之间的差值小于第二阈值;
    所述第二物距与所述第一物距之间的差值小于第三阈值;
    所述第一曝光时间、所述第一感光度以及所述第一光圈数与所述第二曝光时间、所述第二感光度以及所述第二光圈数满足预设函数关系。
  4. 根据权利要求3所述的方法,其特征在于,所述预设函数关系,包括:
    Figure PCTCN2022126806-appb-100001
    其中,S1为所述第一感光度,T1为所述第一曝光时间,A1为所述第一光圈数,所述A2为所述第二光圈数,S2为所述第二感光度,T2为所述第二曝光时间。
  5. 根据权利要求1-4任一所述的方法,其特征在于,响应于第二操作,拍摄得到第二图像,包括:
    响应于第二操作,确定所述第一图像上的第一区域;
    调整所述第二摄像头的拍摄角度,使得所述第一区域内的拍摄对象处于所述第二摄像头的视角范围内,并拍摄得到第三图像;
    基于所述第一图像和所述第三图像得到所述第二图像。
  6. 根据权利要求5所述的方法,其特征在于,所述第一区域满足如下至少一种:
    所述第一图像上用户感兴趣的拍摄对象所在区域;
    所述第一图像的中心区域;
    用户设定的区域;
    所述第一图像上清晰度低于预设清晰度的区域。
  7. 根据权利要求1-4任一所述的方法,其特征在于,响应于第二操作,拍摄得到第二图像,包括:
    响应于第二操作,在所述第一图像上显示N个拍摄指示点,N为正整数;
    调整所述第二摄像头的拍摄角度,使得所述N个拍摄指示点中第一拍摄指示点所在区域内的拍摄对象处于所述第二摄像头的视角范围内,并拍摄得到第三图像;
    检测到用于指示拍摄的第三操作时,基于所述第一图像和所述第三图像得到所述第二图像。
  8. 根据权利要求1-4任一所述的方法,其特征在于,响应于第二操作,拍摄得到第二图像,包括:
    响应于第二操作,在所述第一图像上显示N个拍摄指示点,N为正整数;
    依次调整所述第二摄像头的拍摄角度,使得所述第二摄像头对每个拍摄指示点所在区域内的拍摄对象进行拍摄,得到N张第三图像;
    检测到对所有拍摄指示点均拍摄完成或者检测到用于指示拍摄的操作时,基于所述N张第三图像与所述第一图像得到所述第二图像。
  9. 根据权利要求7或8所述的方法,其特征在于,
    所述拍摄指示点的数量与所述第一拍摄参数和/或所述第二拍摄参数相关;
    其中,所述拍摄指示点的数量包括在水平方向上的数量和/或在竖直方向上的数量。
  10. 根据权利要求9所述的方法,其特征在于,所述拍摄指示点的数量与所述第一拍摄参数和/或所述第二拍摄参数相关,包括:
    在所述水平方向上所述拍摄指示点的数量k1满足:
    Figure PCTCN2022126806-appb-100002
    其中,W1为所述第一摄像头对应的成像平面的宽度,f1为所述第一摄像头的焦距,W2为所述第二摄像头对应的成像平面的宽度,f2为所述第一摄像头的焦距。
  11. 根据权利要求9或10所述的方法,其特征在于,所述拍摄指示点的数量与所述第一拍摄参数和/或所述第二拍摄参数相关,包括:
    在所述竖直方向上所述拍摄指示点的数量k2满足:
    Figure PCTCN2022126806-appb-100003
    其中,h1为所述第一摄像头对应的成像平面的高度,f1为所述第一摄像头的焦距,h2为所述第二摄像头对应的成像平面的高度,f2为所述第一摄像头的焦距。
  12. 一种图像拍摄方法,其特征在于,应用于包括第一电子设备和第二电子设备的系统,所述方法包括:
    所述第一电子设备响应于第一操作,显示拍摄界面,所述拍摄界面中显示第一图像,所述第一图像为所述第二电子设备上的第一摄像头采集的图像;
    所述第一电子设备响应于第二操作,通过所述第一电子设备上的第二摄像头拍摄得到第三图像,所述第三图像与所述第一图像上存在重叠区域,所述重叠区域内包括至少一个相同对象;其中,所述第二摄像头拍摄所述第三图像时使用的第二拍摄参数与所述第一摄像头拍摄所述第一图像时使用的第一拍摄参数相关;
    所述第一电子设备将所述第三图像发送给所述第一电子设备,所述第一电子设备基于所述第三图像和所述第一图像得到第二图像;或者,所述第一电子设备基于所述第三图像和所述第一图像得到第二图像后将所述第二图像发送给所述第二电子设备。
  13. 根据权利要求12所述的方法,其特征在于,
    所述第一拍摄参数包括:第一曝光时间、第一光圈数、第一感光度、第一白平衡、第一物距、第一焦距中的至少一种;和/或,
    所述第二拍摄参数包括:第二曝光时间、第二光圈数、第二感光度、第二白平衡、第二物距、第二焦距中的至少一种。
  14. 根据权利要求13所述的方法,其特征在于,所述第二摄像头拍摄与所述第一拍摄参数相关,包括如下至少一项:
    所述第二白平衡度与所述第一白平衡度之间的差值小于第一阈值;
    所述第二焦距与所述第一焦距之间的差值小于第二阈值;
    所述第二物距与所述第一物距之间的差值小于第三阈值;
    所述第一曝光时间、所述第一感光度以及所述第一光圈数与所述第二曝光时间、所述第二感光度以及所述第二光圈数满足预设函数关系。
  15. 根据权利要求14所述的方法,其特征在于,所述预设函数关系,包括:
    Figure PCTCN2022126806-appb-100004
    其中,S1为所述第一感光度,T1为所述第一曝光时间,A1为所述第一光圈数,所述A2为所述第二光圈数,S2为所述第二感光度,T2为所述第二曝光时间。
  16. 根据权利要求12-15任一所述的方法,其特征在于,所述第一电子设备响应于第二操作,通过所述第一电子设备上的第二摄像头拍摄得到第三图像,包括:
    所述第一电子设备响应于第二操作,确定所述第一图像上的第一区域;
    所述第一电子设备调整所述第二摄像头的拍摄角度,使得所述第一区域内的拍摄对象处于所述第二摄像头的视角范围内,并拍摄得到第三图像。
  17. 根据权利要求16所述的方法,其特征在于,所述第一区域满足如下至少一种:
    所述第一图像上用户感兴趣的拍摄对象所在区域;
    所述第一图像的中心区域;
    用户设定的区域;
    所述第一图像上清晰度低于预设清晰度的区域。
  18. 根据权利要求12-15任一所述的方法,其特征在于,所述第一电子设备响应于第二操作,通过所述第一电子设备上的第二摄像头拍摄得到第三图像,包括:
    所述第一电子设备响应于第二操作,在所述第一图像上显示N个拍摄指示点,N为正整数;
    所述第一电子设备调整所述第二摄像头的拍摄角度,使得所述N个拍摄指示点中第一拍摄指示点所在区域内的拍摄对象处于所述第二摄像头的视角范围内,并拍摄得到第三图像。
  19. 根据权利要求12-15任一所述的方法,其特征在于,所述第一电子设备响应于第二操作,通过所述第一电子设备上的第二摄像头拍摄得到第三图像,包括:
    所述第一电子设备响应于第二操作,在所述第一图像上显示N个拍摄指示点;N为正整数;
    所述第一电子设备依次调整所述第二摄像头的拍摄角度,使得所述第二摄像头对每个拍摄指示点所在区域内的拍摄对象进行拍摄,得到N张第三图像。
  20. 根据权利要求18或19所述的方法,其特征在于,
    所述拍摄指示点的数量与所述第一拍摄参数和/或所述第二拍摄参数相关;
    其中,所述拍摄指示点的数量包括在水平方向上的数量和/或在竖直方向上的数量。
  21. 根据权利要求20所述的方法,其特征在于,所述拍摄指示点的数量与所述第一拍摄参数和/或所述第二拍摄参数相关,包括:
    在所述水平方向上所述拍摄指示点的数量k1满足:
    Figure PCTCN2022126806-appb-100005
    其中,W1为所述第一摄像头对应的成像平面的宽度,f1为所述第一摄像头的焦距,W2为所述第二摄像头对应的成像平面的宽度,f2为所述第一摄像头的焦距。
  22. 根据权利要求20或21所述的方法,其特征在于,所述拍摄指示点的数量与所述第一拍摄参数和/或所述第二拍摄参数相关,包括:
    在所述竖直方向上所述拍摄指示点的数量k2满足:
    Figure PCTCN2022126806-appb-100006
    其中,h1为所述第一摄像头对应的成像平面的高度,f1为所述第一摄像头的焦距,h2为所述第二摄像头对应的成像平面的高度,f2为所述第一摄像头的焦距。
  23. 一种电子设备,其特征在于,包括:
    处理器,存储器,以及,一个或多个程序;
    其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述处理器执行时,使得所述电子设备执行如权利要求1至11中任意一项所述的方法步骤。
  24. 一种通信系统,其特征在于,包括:第一电子设备和第二电子设备;
    所述第一电子设备包括:处理器;存储器;其中,所述存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述处理器执行时,使得所述第一电子设备执行如权利要求12至22任一项所述的方法中第一电子设备的步骤;
    所述第二电子设备包括:处理器;存储器;其中,所述存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述处理器执行时,使得所述第二电子设备执行如权利要求12至22任一项所述的方法中第二电子设备的步骤。
  25. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1至22中任意一项所述的方法。
PCT/CN2022/126806 2021-11-01 2022-10-21 一种图像拍摄方法与相关设备 WO2023071948A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111282790.3A CN116095516A (zh) 2021-11-01 2021-11-01 一种图像拍摄方法与相关设备
CN202111282790.3 2021-11-01

Publications (1)

Publication Number Publication Date
WO2023071948A1 true WO2023071948A1 (zh) 2023-05-04

Family

ID=86160348

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/126806 WO2023071948A1 (zh) 2021-11-01 2022-10-21 一种图像拍摄方法与相关设备

Country Status (2)

Country Link
CN (1) CN116095516A (zh)
WO (1) WO2023071948A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006238326A (ja) * 2005-02-28 2006-09-07 Canon Inc カメラ装置システムおよび撮影動画像再生方法
CN109639974A (zh) * 2018-12-20 2019-04-16 Oppo广东移动通信有限公司 控制方法、控制装置、电子装置及介质
CN112087571A (zh) * 2019-06-14 2020-12-15 Oppo广东移动通信有限公司 图像采集方法和装置、电子设备、计算机可读存储介质
CN112738403A (zh) * 2020-12-30 2021-04-30 维沃移动通信(杭州)有限公司 拍摄方法、拍摄装置、电子设备和介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006238326A (ja) * 2005-02-28 2006-09-07 Canon Inc カメラ装置システムおよび撮影動画像再生方法
CN109639974A (zh) * 2018-12-20 2019-04-16 Oppo广东移动通信有限公司 控制方法、控制装置、电子装置及介质
CN112087571A (zh) * 2019-06-14 2020-12-15 Oppo广东移动通信有限公司 图像采集方法和装置、电子设备、计算机可读存储介质
CN112738403A (zh) * 2020-12-30 2021-04-30 维沃移动通信(杭州)有限公司 拍摄方法、拍摄装置、电子设备和介质

Also Published As

Publication number Publication date
CN116095516A (zh) 2023-05-09

Similar Documents

Publication Publication Date Title
WO2020238871A1 (zh) 一种投屏方法、系统及相关装置
WO2021093793A1 (zh) 一种拍摄方法及电子设备
WO2021147482A1 (zh) 一种长焦拍摄的方法及电子设备
WO2021121236A1 (zh) 一种控制方法、电子设备、计算机可读存储介质、芯片
CN111526314B (zh) 视频拍摄方法及电子设备
WO2021185250A1 (zh) 图像处理方法及装置
WO2020113534A1 (zh) 一种拍摄长曝光图像的方法和电子设备
WO2022262475A1 (zh) 拍摄方法、图形用户界面及电子设备
CN113630558B (zh) 一种摄像曝光方法及电子设备
CN115442509B (zh) 拍摄方法、用户界面及电子设备
US20230276125A1 (en) Photographing method and electronic device
WO2021052388A1 (zh) 一种视频通信方法及视频通信装置
CN116489268A (zh) 一种设备识别方法及相关装置
WO2023071948A1 (zh) 一种图像拍摄方法与相关设备
WO2022222773A1 (zh) 拍摄方法、相关装置及系统
CN114466131B (zh) 一种跨设备的拍摄方法及相关设备
CN114079691B (zh) 一种设备识别方法及相关装置
CN116723382B (zh) 一种拍摄方法及相关设备
WO2023142731A1 (zh) 一种分享多媒体文件的方法、发送端设备和接收端设备
CN116055871B (zh) 视频处理方法及其相关设备
WO2023143171A1 (zh) 一种采集音频的方法及电子设备
WO2022161058A1 (zh) 一种全景图像的拍摄方法及电子设备
WO2022228010A1 (zh) 一种生成封面的方法及电子设备
WO2024114785A1 (zh) 一种图像处理方法、电子设备及系统
WO2022121751A1 (zh) 相机控制方法、装置和存储介质

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

Country of ref document: EP

Kind code of ref document: A1