WO2020259445A1 - Device imaging method and apparatus, storage medium, and electronic device - Google Patents

Device imaging method and apparatus, storage medium, and electronic device Download PDF

Info

Publication number
WO2020259445A1
WO2020259445A1 PCT/CN2020/097497 CN2020097497W WO2020259445A1 WO 2020259445 A1 WO2020259445 A1 WO 2020259445A1 CN 2020097497 W CN2020097497 W CN 2020097497W WO 2020259445 A1 WO2020259445 A1 WO 2020259445A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
image
scene
shooting
shot
Prior art date
Application number
PCT/CN2020/097497
Other languages
French (fr)
Chinese (zh)
Inventor
李亮
占文喜
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020259445A1 publication Critical patent/WO2020259445A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/58Means for changing the camera field of view without moving the camera body, e.g. nutating or panning of optics or image sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • H04N23/675Focus control based on electronic image sensor signals comprising setting of focusing regions
    • 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

  • This application relates to the field of image processing technology, and in particular to a device imaging method, device, storage medium and electronic equipment.
  • the embodiments of the present application provide an equipment imaging method, device, storage medium, and electronic equipment, which can improve the quality of the entire imaging image captured by the electronic equipment.
  • an embodiment of the present application provides a device imaging method, which is applied to an electronic device.
  • the electronic device includes a first camera and a second camera.
  • the second camera can rotate relative to the first camera.
  • the device imaging method includes:
  • Image synthesis processing is performed on the plurality of second images and the base image, and the synthesized image is set as the imaged image of the image shooting request.
  • an embodiment of the present application provides a device imaging device applied to an electronic device.
  • the electronic device includes a first camera and a second camera.
  • the second camera can rotate relative to the first camera.
  • the equipment imaging device includes:
  • the request receiving module is used to receive an image shooting request of the scene to be shot
  • a base acquisition module configured to photograph the scene to be photographed through the first camera according to the image photographing request, and set the photographed first image as a base image
  • the auxiliary image acquisition module is used to control the rotation of the second camera relative to the first camera, and shoot the scene to be shot through the second camera at multiple preset shooting positions during the rotation process to obtain A plurality of second images, wherein the shooting area of the second camera at each of the preset shooting positions overlaps with different parts of the shooting area of the first camera;
  • the image imaging module is configured to perform image synthesis processing on the plurality of second images and the base image, and set the synthesized image as the imaged image requested by the image shooting.
  • an embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the device imaging method provided in the embodiment of the present application.
  • an embodiment of the present application provides an electronic device, including a processor, a memory, a first camera, and a second camera, the second camera can rotate relative to the first camera, and the memory stores a computer A program, the processor is used to execute the device imaging method provided in the embodiment of the present application by calling the computer program.
  • FIG. 1 is a schematic flowchart of a device imaging method provided by an embodiment of the present application.
  • Fig. 2 is a schematic diagram of an arrangement of the first camera and the second camera in an embodiment of the present application.
  • Fig. 3 is a schematic diagram of an operation for triggering an input image shooting request in an embodiment of the present application.
  • Fig. 4 is a schematic diagram of a preset shooting position set in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a comparison between the shooting area of the second camera at different preset shooting positions and the shooting area of the first camera in an embodiment of the present application.
  • Fig. 6 is a schematic diagram of image content comparison between a second image and a base image in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of an overlapping area where all the second images and the base image overlap at the same time in an embodiment of the present application.
  • Fig. 8 is a schematic diagram of the arrangement of an angle adjustment component in an embodiment of the present application.
  • Fig. 9 is a schematic diagram of the arrangement of two first cameras in an embodiment of the present application.
  • FIG. 10 is another schematic flowchart of the device imaging method provided by the embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of an equipment imaging device provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 13 is another schematic diagram of the structure of an electronic device provided by an embodiment of the present application.
  • the embodiment of the present application first provides a device imaging method, which is applied to an electronic device.
  • the execution subject of the device imaging method may be the device imaging device provided in the embodiment of the application, or an electronic device integrated with the device imaging device.
  • the device imaging device may be implemented in hardware or software, and the electronic device may be a smart device.
  • Mobile phones, tablet computers, handheld computers, notebook computers, or desktop computers are equipped with processors and have processing capabilities.
  • the present application provides a device imaging method applied to an electronic device.
  • the electronic device includes a first camera and a second camera.
  • the second camera can rotate relative to the first camera.
  • the device imaging method includes:
  • Image synthesis processing is performed on the plurality of second images and the base image, and the synthesized image is set as the imaged image of the image shooting request.
  • the electronic device further includes a limit component set at each of the preset shooting positions, and the second camera is controlled to rotate relative to the first camera, and the number of stops during the rotation Shooting the scene to be shot through the second camera at a preset shooting position includes:
  • the electronic device further includes an angle adjustment component, and before the shooting of the scene to be shot by the fixed second camera, the method further includes:
  • the photographing the scene to be photographed through the fixed second camera includes:
  • the method before focusing and shooting the scene to be shot based on the target focus area by the fixed second camera, the method further includes:
  • the fixed second camera is used to focus and shoot the scene to be shot based on the target focus area.
  • the method before focusing and shooting the scene to be shot based on the target focus area by the fixed second camera, the method further includes:
  • the fixed second camera is used to focus and photograph the scene to be photographed based on the target focus area.
  • the electronic device includes two first cameras, and the shooting of the scene to be shot through the first cameras and setting the first image obtained by shooting as a base image includes:
  • the photographing the scene to be photographed through the first camera and setting the photographed first image as a base image includes:
  • Image synthesis processing is performed on the plurality of first images, and the synthesized image is set as the base image.
  • the method further includes:
  • the first image with the highest definition is selected from the plurality of first images as the base image.
  • the electronic device further includes an electrochromic component covering the first camera and/or the second camera, and before the receiving an image shooting request of the scene to be shot, further includes:
  • the method After performing image synthesis processing on the plurality of second images and the base image, and setting the synthesized image as the imaging image of the image shooting request, the method further includes:
  • the electrochromic component is switched to a colored state to hide the first camera and/or the second camera.
  • FIG. 1 is a schematic flowchart of a device imaging method according to an embodiment of the application.
  • the device imaging method is applied to the electronic device provided in the embodiment of the present application.
  • the process of the device imaging method provided in the embodiment of the present application may be as follows:
  • the electronic device includes different types of first cameras and second cameras, where the first camera is a standard type of camera, or a camera with a field of view of about 45 degrees, the first The second camera is a telephoto camera, or a camera with a field of view angle of less than 40 degrees.
  • the second camera can rotate relative to the first camera, and the second camera faces and intersects the axis of the first camera.
  • the electronic device is provided with a first camera and a circular track arranged around the first camera.
  • the second camera is arranged on the circular track by a moving mechanism (not shown in the figure), and the electronic device can pass through
  • the moving mechanism drives the second camera to rotate around the first camera.
  • the user can turn the second camera around the first camera, and so on.
  • the image shooting request may be directly input by the user to instruct the electronic device to shoot the scene to be shot.
  • the scene to be photographed is the object that the first camera is aimed at when the electronic device receives the input image photographing request, including but not limited to people, objects, and scenery.
  • a shooting application such as the system application "camera” of the electronic device
  • the "photograph” button virtual button
  • the "camera” preview interface inputs an image shooting request to the electronic device, as shown in Figure 3.
  • the user can speak the voice command "photograph" and input to the electronic device Image capture request.
  • the scene to be shot is shot by the first camera, and the first image obtained by shooting is set as the base image.
  • the electronic device when it receives an image shooting request of the scene to be shot input by the user through voice, it is based on the image shooting request and according to preset shooting parameters (such as exposure value, contrast, etc.) to be shot through the first camera.
  • preset shooting parameters such as exposure value, contrast, etc.
  • the second camera is controlled to rotate relative to the first camera, and the scene to be photographed is captured by the second camera at multiple preset shooting positions during the rotation to obtain multiple second images, where the second camera is The shooting area at each preset shooting position overlaps with different parts of the shooting area of the first camera.
  • a plurality of preset shooting positions are preset on the rotation path of the second camera.
  • the shooting positions are preset shooting position A, preset shooting position B, preset shooting position C, and preset shooting position D.
  • the second camera Since the axis of the second camera intersects the axis of the first camera, the second camera is Suppose the shooting area a of the shooting position C corresponds to the upper left corner of the shooting area of the first camera, the shooting area b of the second camera at the preset shooting position D corresponds to the upper right corner of the shooting area of the first camera, and the second camera is shooting at the preset
  • the shooting area c at position B corresponds to the lower left corner of the shooting area of the first camera, and the shooting area d of the second camera at the preset shooting position A corresponds to the lower right corner of the shooting area of the first camera, so that the second camera is at each
  • the shooting area at the preset shooting position overlaps with different parts of the shooting area of the first camera.
  • the electronic device not only uses the first camera to capture the scene to be shot to obtain the base image, but also uses the second camera to capture the scene to be shot.
  • the electronic device controls the second camera to rotate relative to the first camera, and shoots the scene to be shot by the second camera at a plurality of preset shooting positions during the rotation, thereby obtaining a plurality of second images.
  • the four preset shooting positions shown in Figure 4 are set on the circular track (corresponding to the rotation path of the second camera).
  • the second camera rotates to any preset shooting position the scene to be shot is captured by the second camera, and the image taken by the second camera is recorded as the second image, so that four second images of the scene to be shot are captured.
  • the image content of the second image H captured by the second camera at the preset shooting position C corresponds to the image content in the upper left corner of the base image
  • the image content of the second image I captured by the second camera at the preset shooting position D corresponds to the base image
  • the image content in the upper right corner, the image content of the second image K captured by the second camera at the preset shooting position A corresponds to the image content in the lower right corner of the base image
  • the image content of the second camera at the preset shooting position B corresponds to the lower left corner of the base image
  • image synthesis processing is performed on the plurality of second images and the base image, and the synthesized image is set as the imaged image requested for image shooting.
  • the electronic device aligns the multiple second images obtained by shooting with the substrate image after obtaining the base image through the first camera and multiple second images through the multiple second cameras.
  • the electronic device Based on the aligned base image and the second image, for the overlapping part of the base image and the second image, calculate the average pixel value of each overlapping pixel.
  • the electronic device also Four second images are captured by four second cameras. Please refer to Figure 6.
  • the overlap area where each second image overlaps the base image at the same time is located in the middle area of the base image.
  • a certain The pixel values of the pixels at the position in the five images are 0.8, 0.9, 1.1, 1.2 and 1, respectively, and the average pixel value of the pixels at the position can be calculated to be 1. .
  • the composite image is obtained according to the average pixel value of each pixel in the corresponding position in the base image.
  • the pixel value of each pixel of the base image can be adjusted to the calculated average pixel value to obtain the composite image.
  • the synthesized image obtained by the synthesis is set as the imaging image requested by the image shooting.
  • the electronic device has completed the corresponding The received image shooting requests a complete shooting operation.
  • Figure 7 thus shows the definition change from the base image to the imaging image, where the X axis represents the common overlap area from the edge area of the image to all cameras (because the axis of the second camera faces the first The axis of a camera is tilted so that the common overlap area of all cameras is located in the middle area of the base image), and the position changes from the common overlap area to the edge area.
  • the Y axis represents the definition following the change of the X axis. It can be seen that in the base In the image, the sharpness of the central area is the highest. As the central area spreads to the edge area, the sharpness gradually decreases and the changes are more dramatic.
  • the sharpness of the central area is the highest, and compared to the base image, The sharpness of the edge area of the imaged image is improved as a whole. As the central area spreads to the edge area, although the sharpness gradually decreases and the change is smoother, the overall image quality of the imaged image is improved.
  • the electronic device includes a first camera and a second camera that can rotate relative to the first camera. It can receive an image shooting request of the scene to be shot, and respond to the image shooting request by The first camera captures the base image of the scene to be photographed, and the rotating second camera captures multiple second images of the scene to be photographed, and finally performs image synthesis processing on the multiple second images and the base image, and the synthesized
  • the image is set as the imaged image requested by the image capture.
  • the present application can improve the definition of both the edge area and the middle area of the imaged image, and the overall image sharpness changes more smoothly, thereby improving the quality of the entire imaged image.
  • the electronic device further includes a limit component set at each preset shooting position, “control the second camera to rotate relative to the first camera, and pass the second camera at multiple preset shooting positions during the rotation.
  • a limit component set at each preset shooting position, “control the second camera to rotate relative to the first camera, and pass the second camera at multiple preset shooting positions during the rotation.
  • Shoot the scene to be shot including:
  • a limit component is also provided at each preset shooting position for fixing the second camera.
  • the limit component can achieve the purpose of fixing the second camera by fixing the moving mechanism .
  • the current preset shooting position referred to in the embodiments of this application does not specifically refer to a certain preset shooting position, but refers to the preset shooting position to which the second camera is rotated at the current moment, which may be the position of the electronic device. Any one of the multiple preset shooting positions set.
  • the current limit component also does not specifically refer to a certain limit component, but rather refers to a limit component set at the current preset shooting position. For different "current preset shooting positions", the current limit component is different.
  • the electronic device when the second camera is controlled to rotate to the current preset shooting position, the rotation of the second camera is stopped, and the current limit component set in the current preset shooting position is enabled to be fixed by the current limit component The second camera. After the second camera is fixed by the current limit component, the electronic device shoots the shooting scene through the fixed second camera to obtain the second image. Wherein, when the electronic device uses the second camera to shoot the scene to be shot, it uses the same shooting parameters as the first camera, so that the second camera can obtain the same shooting effect as the first camera.
  • the electronic device After the electronic device takes the second image through the second camera at the current preset shooting position, it stops enabling the current limit component, and no longer fixes the second camera through the current limit component, so as to continue to select the second camera to other presets Shoot at the shooting location. In this way, by fixing the second camera by the position-limiting component set at each preset shooting position, the second image of the scene to be shot can be obtained more stably.
  • the electronic device further includes an angle adjustment component, and before "shooting the scene to be shot through a fixed second camera", it further includes:
  • the embodiment of the present application when the second camera is used to shoot the scene to be shot, the same focus area as the first camera is selected, and the focus area is located at each preset of the second camera.
  • the shooting position is within the common overlapping area of the shooting area.
  • the embodiment of the present application also includes an angle adjustment component. For example, please refer to FIG. 8.
  • the electronic device first obtains the target focus area when the first camera is shooting before shooting the scene to be shot through the fixed second camera.
  • the electronic device when the electronic device shoots through the first camera, it can use a preset autofocus algorithm to determine the focus area of the scene to be shot, record it as the target focus area, and focus and shoot the scene to be shot based on the target focus area through the first camera.
  • the electronic device may also determine the target focus area according to the focus area selection information carried in the image shooting request, and so on.
  • the shooting angle of the fixed second camera is adjusted by the angle adjustment component according to the target focus area, so that the target focus area is located in the second camera.
  • the second camera is within the common overlapping area of the shooting area when the camera is at each preset shooting position.
  • the electronic device uses the fixed second camera to focus and shoot the scene to be shot based on the target focus area, so as to obtain multiple second images.
  • the method before “focusing and shooting the scene to be shot based on the target focus area through the fixed second camera”, the method further includes:
  • the second camera since the second camera is not fixedly installed on the electronic device, when the electronic device shakes as a whole, it will cause greater shaking of the second camera. , The image content of the image captured by the electronic device through the first camera and the second camera will have a large difference, which will affect the synthesis effect of the imaged image.
  • the electronic device first determines whether it is currently in a shake state before focusing and shooting the scene to be shot based on the target focus area through the fixed second camera. Among them, the electronic device can judge the jitter state in many different ways.
  • the electronic device can determine whether the current speed in each direction is greater than the preset speed, if it is, it is judged that it is in the jitter state, if not, it is judged that the current Not in a jitter state (or a stable state); for another example, the electronic device can determine whether the current displacement in each direction is greater than the preset displacement, if it is, it determines that it is currently in a jitter state, if not, it determines that it is not currently in a jitter status.
  • the jitter state can also be determined in a manner not listed in the embodiment of the present application, which is not specifically limited in the embodiment of the present application.
  • the electronic device uses the fixed second camera to focus and shoot the scene to be shot based on the target focus area. For details, refer to the relevant description in the above embodiment, which will not be repeated here.
  • the method before “focusing and shooting the scene to be shot based on the target focus area through the fixed second camera”, the method further includes:
  • the fixed second camera is used to focus and shoot the scene to be shot based on the target focus area.
  • the electronic device when the electronic device is not in a shaking state, if the scene to be photographed is not in a static state (for example, the scene to be photographed includes a moving object), the electronic device passes through the first
  • the image content of the image captured by the camera and the second camera may also be quite different.
  • the electronic device determines that it is not currently in a shaking state, it does not immediately use the fixed second camera to shoot the scene to be photographed, but further detects whether the scene to be photographed is in a static state. It is detected that the scene to be photographed is in a static state, and then the fixed second camera is used to focus and shoot the scene to be photographed based on the target focus area.
  • the electronic device determines that it is not currently in a shaking state, it does not immediately use the fixed second camera to shoot the scene to be photographed, but further detects whether the scene to be photographed is in a static state. It is detected that the scene to be photographed is in a static state, and then the fixed second camera is used to focus and shoot the scene to be photographed based on the target focus area.
  • the electronic device includes two first cameras, the scene to be shot is captured by the first cameras, and the first image obtained by shooting is set as the base image, including:
  • the electronic device includes two standard types of first cameras.
  • the electronic device includes two first cameras, namely the first camera E and the first camera F.
  • the center line of the first camera E and the first camera F is connected to the left/right side of the electronic device parallel.
  • the electronic device can photograph the object to be photographed through the two first cameras to obtain at least two first images with the same image content . Then, image synthesis processing is performed on at least two first images, and the synthesized image is set as the base image.
  • the electronic device when it performs image synthesis processing on at least two first images, it first aligns at least two first images, and then calculates the average pixel value of each pixel overlapping at least two first images, and finally obtains according to the calculation Each average pixel value of to obtain a composite image of at least two first images, and the composite image is set as the base image.
  • the base image with higher definition can be obtained in the embodiments of the present application, so that the finally obtained imaged image also has higher definition.
  • "taking a photograph of the subject to be photographed through the first camera, and setting the photographed first image as the base image” includes:
  • the electronic device when the first camera is used to shoot the object to be photographed, and the first image obtained by shooting is set as the base image, the electronic device can continuously photograph the object to be photographed through the first camera according to the received image shooting request , Get multiple first images.
  • the electronic device may use the first camera to shoot the object to be photographed within a unit time according to the set shooting frame rate, thereby realizing continuous shooting of the object to be photographed. For example, assuming that the shooting frame rate of the first camera is 15FPS, the electronic device will capture 15 images of the subject to be photographed within 1 second of unit time. Because these images all correspond to the same subject to be photographed, and the difference between each image The interval between the shooting moments is small, and the image content of these images can be regarded as the same.
  • the electronic device selects the first image with the highest definition from them, aligns other first images with the first image with the highest definition, and then calculates multiple first images
  • the average pixel value of each overlapped pixel is finally obtained according to the calculated average pixel value to obtain a composite image of a plurality of first images, and the composite image is set as a base image.
  • the base image with higher definition can be obtained in the embodiments of the present application, so that the finally obtained imaged image also has higher definition.
  • the method further includes:
  • the image with the highest definition is selected from the plurality of first images obtained by shooting as the base image, and used as the second image obtained by the second camera to perform image synthesis processing to obtain an imaged image.
  • the contrast of the image can be used to measure the sharpness of the image.
  • the electronic device further includes an electrochromic component covering the first camera and/or the second camera, and before "receiving an image shooting request of the scene to be shot", it further includes:
  • the first camera and/or the second camera are covered with an electrochromic component, so that the electrochromic component is used to hide the camera when needed.
  • Electrochromism refers to the phenomenon that the color/transparency of a material undergoes a stable and reversible change under the action of an external electric field.
  • Materials with electrochromic properties can be called electrochromic materials.
  • the electrochromic components in the embodiments of this application are made of electrochromic materials.
  • the electrochromic component may include two conductive layers arranged in a stack, and a color changing layer, an electrolyte layer, and an ion storage layer located between the two conductive layers.
  • the electrochromic component when no voltage is applied (or the voltage is 0V) on the two transparent conductive layers of the electrochromic component, the electrochromic component will be in a transparent state, and when applied between the two transparent conductive layers When the voltage changes from 0V to 3V, the electrochromic component will appear black, when the voltage applied between its two transparent conductive layers changes from 3V to -3V, the electrochromic component will change from black to transparent, etc. Wait.
  • the first camera and/or the second camera can be concealed by using the color-adjustable feature of the electrochromic component.
  • the electronic device can switch the electrochromic component covering the first camera and/or the second camera to a transparent state while starting the shooting application, so that the first camera and the second camera can Shoot the subject to be photographed.
  • the electronic device switches the electrochromic component to Color state, thereby hiding the first camera and/or the second camera.
  • the electronic device does not start shooting applications
  • the electrochromic component is stored in a black colored state, the first camera and the second camera are hidden; and when the shooting application is started, the electrochromic component is switched to the transparent state synchronously, so that the electronic device can pass the first The camera and the second camera shoot; and after the imaged image is finally synthesized and the activated shooting application is exited, the electronic device switches the electrochromic component to a black colored state, so that the first camera and the second camera are hidden again.
  • FIG. 10 is a schematic diagram of another flow chart of a device imaging method provided by an embodiment of this application.
  • the device imaging method is applied to an electronic device provided by an embodiment of this application.
  • the electronic device includes two first cameras, The circular track set around one of the first cameras and the second camera set on the circular track by the moving mechanism enable the second camera to rotate around the first camera in the circular track, and the axis of the second camera faces the axis of the first camera The axes are inclined and intersect.
  • the process of the device imaging method may include:
  • the electronic device receives an image shooting request of the scene to be shot.
  • the electronic device includes different types of first cameras and second cameras, where the first camera is a standard type of camera, or a camera with a field of view of about 45 degrees, the first The second camera is a telephoto camera, or a camera with a field of view angle of less than 40 degrees.
  • the second camera can rotate relative to the first camera, and the second camera faces and intersects the axis of the first camera.
  • the electronic device includes two first cameras, namely a first camera E and a first camera F.
  • the electronic device also includes an annular track set around the first camera E, and a moving mechanism is set on the annular track
  • the electronic device can drive the second camera E to rotate around the first camera through a moving mechanism.
  • the image shooting request may be directly input by the user to instruct the electronic device to shoot the scene to be shot.
  • the scene to be photographed is the object that the first camera is aimed at when the electronic device receives the input image photographing request, including but not limited to people, objects, and scenery.
  • a shooting application such as the system application "camera” of the electronic device
  • the "photograph” button virtual button
  • the "camera” preview interface inputs an image shooting request to the electronic device, as shown in Figure 3.
  • the user after the user operates the electronic device to start a shooting application, and moves the electronic device so that the first camera and the second camera of the electronic device are aimed at the scene to be photographed, the user can speak the voice command "photograph" and input to the electronic device Image capture request.
  • the electronic device photographs the object to be photographed through the two first cameras according to the received image photographing request to obtain two first images.
  • the electronic device After the electronic device receives the image shooting request, that is, according to the received image shooting request, the scene to be shot is captured by the two first cameras according to the same shooting parameters to obtain two first images with the same image content.
  • the electronic device performs image synthesis processing on the two first images, and sets the synthesized image as a base image.
  • the electronic device when the electronic device performs image synthesis processing on the two captured first images, it first aligns the two captured first images, and then calculates the average pixel of each pixel overlapping the captured two first images Finally, the composite image of the two first images obtained by shooting is obtained according to the calculated average pixel values, and the composite image is set as the base image.
  • the electronic device controls the second camera to rotate relative to the first camera in the circular track, and uses the second camera to shoot the scene to be shot at the four preset shooting positions during the rotation to obtain four second images.
  • the shooting area of the second camera at each preset shooting position overlaps with different edges of the shooting area of the first camera in the circular track.
  • the preset shooting position A there are four preset shooting positions on the circular track, namely the preset shooting position A, the preset shooting position B, the preset shooting position C, and the preset shooting position D.
  • the shooting area a of the second camera at the preset shooting position C corresponds to the upper left corner of the shooting area of the first camera
  • the shooting area b of the second camera at the preset shooting position D corresponds to the first camera
  • the shooting area c of the second camera at the preset shooting position B corresponds to the lower left corner of the shooting area of the first camera
  • the shooting area d of the second camera at the preset shooting position A corresponds to the shooting of the first camera
  • the lower right corner of the area so that the shooting area of the second camera at each preset shooting position overlaps with different edges of the shooting area of the first camera.
  • the electronic device not only uses the first camera to capture the scene to be shot to obtain the base image, but also uses the second camera to capture the scene to be shot.
  • the electronic device controls the second camera to rotate relative to the first camera in the circular track, and uses the second camera to shoot the scene to be shot at four preset shooting positions during the rotation to obtain four second images.
  • the electronic device obtains four second images captured by the second camera, where the image content of the second image H captured by the second camera at the preset shooting position C corresponds to the image content in the upper left corner of the base image
  • the image content of the second image I captured by the second camera at the preset shooting position D corresponds to the image content in the upper right corner of the base image
  • the image content of the second image K captured by the second camera at the preset shooting position A corresponds to the right of the base image
  • the image content in the lower corner, the image content of the second camera at the preset shooting position B corresponds to the image content in the lower left corner of the base image, so that the image content of different second images covers the image content of different edge areas in the base image. It also covers the image content in the central area of the base image.
  • the electronic device performs image synthesis processing on the four second images and the base image, and sets the synthesized image as the imaged image requested for image shooting.
  • the electronic device aligns the four second images obtained by shooting with the substrate image after obtaining the base image through the first camera and four second images through the four second cameras.
  • each second image overlaps the base image at the same time
  • the overlapping area is located in the middle area of the base image.
  • the pixel values of a certain position of the pixel in the five images are 0.8, 0.9, 1.1, 1.2 and 1, then the average pixel value of the pixel at this position can be calculated to be 1.
  • the composite image is obtained according to the average pixel value of each pixel in the corresponding position in the base image.
  • the pixel value of each pixel of the base image can be adjusted to the calculated average pixel value to obtain the composite image.
  • the synthesized image is set as the imaging image requested by the image shooting. So far, the electronic device has completed the corresponding The received image shooting requests a complete shooting operation.
  • Figure 7 shows the definition change from the base image to the imaging image, where the X axis represents the image edge area to the center area (corresponding to the target focus area of the scene to be shot), and then The position changes from the center area to the edge area, and the Y axis represents the sharpness following the change of the X axis.
  • the sharpness of the center area is the highest.
  • the sharpness of the central area is the highest, and compared with the base image, the sharpness of the edge area of the imaged image is improved as a whole.
  • the central area spreads to the edge area, although The sharpness gradually decreases and the changes are smoother, which improves the overall image quality of the imaged image.
  • the embodiment of the present application also provides an equipment imaging device.
  • FIG. 11 is a schematic structural diagram of a device imaging device provided by an embodiment of the application.
  • the equipment imaging device is applied to electronic equipment.
  • the electronic equipment includes a first camera and a second camera.
  • the second camera can rotate around the first camera.
  • the equipment imaging device includes a request receiving module 301, a substrate acquisition module 302, and auxiliary image acquisition.
  • the module 303 and the image imaging module 304 are as follows:
  • the request receiving module 301 is configured to receive an image shooting request of the scene to be shot.
  • the base acquisition module 302 is configured to photograph the scene to be photographed through the first camera according to the image photographing request, and set the photographed first image as the base image.
  • the auxiliary image acquisition module 303 is used to control the rotation of the second camera relative to the first camera, and use the second camera to shoot the scene to be shot at multiple preset shooting positions during the rotation to obtain multiple second images, where: The shooting area of the second camera at each preset shooting position overlaps with different parts of the shooting area of the first camera.
  • the image imaging module 304 is configured to perform image synthesis processing on a plurality of second images and a base image, and set the synthesized image as the imaging image requested by the image shooting.
  • the electronic device further includes a limit component set at each preset shooting position, and the second camera is controlled to rotate relative to the first camera, and a plurality of preset shooting positions pass through the second camera during the rotation process.
  • the auxiliary image acquisition module 303 is used to:
  • the scene to be photographed is captured by the fixed second camera, and after the second image is captured, the second camera is stopped to be fixed by the current limit component, so as to continue to rotate the second camera to another preset shooting position to shoot.
  • the electronic device further includes an angle adjustment component.
  • the auxiliary image acquisition module 303 is further configured to:
  • the auxiliary image acquisition module 303 is used to:
  • the fixed second camera focuses and shoots the scene to be shot based on the target focus area.
  • the auxiliary image acquisition module 303 is further configured to:
  • the fixed second camera is used to focus and shoot the scene to be shot based on the target focus area.
  • the auxiliary image acquisition module 303 is further configured to:
  • the fixed second camera is used to focus and shoot the scene to be shot based on the target focus area.
  • the electronic device includes two first cameras.
  • the base acquisition module 302 is used to:
  • the electronic device further includes an electrochromic component covering the first camera and/or the second camera, and the device imaging device further includes an electrochromic module for switching before receiving an image shooting request of the scene to be shot The electrochromic component becomes transparent;
  • the electrochromic component is switched to the colored state to hide the first camera and the base image. / Or the second camera.
  • the device imaging device provided in the embodiment of the application belongs to the same concept as the device imaging method in the above embodiment. Any method provided in the device imaging method embodiment can be run on the device imaging device, and its specific implementation For details of the process, refer to the embodiment of the device imaging method, which will not be repeated here.
  • the embodiment of the present application provides a computer-readable storage medium on which a computer program is stored.
  • the computer is caused to execute the steps in the device imaging method provided in the embodiment of the present application.
  • the storage medium may be a magnetic disk, an optical disc, a read only memory (Read Only Memory, ROM,) or a random access device (Random Access Memory, RAM), etc.
  • An embodiment of the present application also provides an electronic device. Please refer to FIG. 12.
  • the electronic device includes a processor 401, a memory 402, a first type of first camera 403, and a second type of second camera 404, and the second camera 404 can Rotate 403 around the first camera.
  • the processor 401 is electrically connected to the memory 402, the first camera 403, and the second camera 404.
  • the processor 401 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device. It executes the electronic device by running or loading the computer program stored in the memory 402 and calling the data stored in the memory 402. Various functions and process data.
  • the memory 402 can be used to store software programs and modules.
  • the processor 401 executes various functional applications and data processing by running the computer programs and modules stored in the memory 402.
  • the memory 402 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, a computer program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of electronic equipment, etc.
  • the memory 402 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, or other volatile solid-state storage devices.
  • the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
  • the first camera 403 is a standard type of camera, or a camera with a field of view of about 45 degrees.
  • the second camera 404 is a telephoto camera, or a camera with a field of view angle of less than 40 degrees.
  • the processor 401 in the electronic device loads the instructions corresponding to the process of one or more computer programs into the memory 402 according to the following steps, and the processor 401 runs and stores them in the memory 402
  • the computer program to achieve various functions, as follows:
  • the scene to be shot is shot through the first camera, and the first image obtained by shooting is set as the base image;
  • Image synthesis processing is performed on the plurality of second images and the base image, and the synthesized image is set as the imaged image requested by the image shooting.
  • FIG. 13 is another schematic structural diagram of the electronic device provided by an embodiment of the application. The difference from the electronic device shown in FIG. 12 is that the electronic device further includes components such as an input unit 405 and an output unit 406.
  • the input unit 405 may be used to receive inputted numbers, character information or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • user characteristic information such as fingerprints
  • the output unit 406 may be used to display information input by the user or information provided to the user, such as a screen.
  • the processor 401 in the electronic device loads the instructions corresponding to the process of one or more computer programs into the memory 402 according to the following steps, and the processor 401 runs and stores them in the memory 402
  • the computer program to achieve various functions, as follows:
  • the scene to be shot is shot through the first camera, and the first image obtained by shooting is set as the base image;
  • Image synthesis processing is performed on the plurality of second images and the base image, and the synthesized image is set as the imaged image requested by the image shooting.
  • the electronic device further includes a limit component set at each preset shooting position, and the second camera is controlled to rotate relative to the first camera, and a plurality of preset shooting positions pass through the second camera during the rotation process.
  • the processor 401 executes:
  • the scene to be photographed is captured by the fixed second camera, and after the second image is captured, the second camera is stopped to be fixed by the current limit component, so as to continue to rotate the second camera to another preset shooting position to shoot.
  • the electronic device further includes an angle adjustment component.
  • the processor 401 Before shooting the scene to be shot through the fixed second camera, the processor 401 further executes:
  • the processor 401 may execute:
  • the fixed second camera focuses and shoots the scene to be shot based on the target focus area.
  • the processor 401 executes:
  • the fixed second camera is used to focus and shoot the scene to be shot based on the target focus area.
  • the processor 401 before the fixed second camera is used to focus and shoot the scene to be shot based on the target focus area, the processor 401 further executes:
  • the fixed second camera is used to focus and shoot the scene to be shot based on the target focus area.
  • the electronic device includes two first cameras.
  • the processor 401 executes:
  • the electronic device further includes an electrochromic component covering the first camera and/or the second camera, and before receiving an image shooting request of the scene to be shot, the processor 401 further executes:
  • the processor 401 After performing image synthesis processing on the multiple second images and the base image, and setting the synthesized image as the imaging image requested by the image shooting, the processor 401 further executes:
  • the electronic device provided in the embodiments of this application belongs to the same concept as the device imaging method in the above embodiments. Any method provided in the device imaging method embodiment can be run on the electronic device. The specific implementation process is detailed. See the embodiment of the feature extraction method, which will not be repeated here.
  • the device imaging method of the embodiment of the present application ordinary testers in the field can understand that all or part of the process of implementing the device imaging method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program.
  • the computer program may be stored in a computer readable storage medium, such as stored in the memory of an electronic device, and executed by at least one processor in the electronic device.
  • the execution process may include such as device imaging method.
  • the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
  • the device imaging device of the embodiment of the present application its functional modules may be integrated into one processing chip, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, etc. .

Abstract

Disclosed in embodiments of the present application are a device imaging method and apparatus, a storage medium, and an electronic device. The electronic device comprises a first camera, and a second camera that can rotate relative to the first camera. A base image is captured by means of the first camera, and a plurality of second images are captured by means of rotating the second camera. Finally, image synthesis is performed on the plurality of second images and the base image, and the synthesized image is set as an imaging image of an image capture request.

Description

设备成像方法、装置、存储介质及电子设备Equipment imaging method, device, storage medium and electronic equipment
本申请要求于2019年06月28日提交中国专利局、申请号为201910578280.7、发明名称为“设备成像方法、装置、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on June 28, 2019, the application number is 201910578280.7, and the invention title is "equipment imaging method, device, storage medium and electronic equipment", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请涉及图像处理技术领域,具体涉及一种设备成像方法、装置、存储介质及电子设备。This application relates to the field of image processing technology, and in particular to a device imaging method, device, storage medium and electronic equipment.
背景技术Background technique
目前,用户通常利用具有摄像头的电子设备拍摄图像,能够通过这些电子设备随时随地的记录身边发生的事情,看到的景物等。然而,由于摄像头本身的硬件缺陷,使得其拍摄的图像往往中间区域比较清晰,而边缘区域则相对模糊。At present, users usually use electronic devices with cameras to capture images, and they can use these electronic devices to record things happening around them, scenes they see, etc. anytime and anywhere. However, due to the hardware defects of the camera itself, the images taken by it are often clear in the middle area, while the edge area is relatively blurred.
发明内容Summary of the invention
本申请实施例提供了一种设备成像方法、装置、存储介质及电子设备,能够提高电子设备拍摄得到的整张成像图像的质量。The embodiments of the present application provide an equipment imaging method, device, storage medium, and electronic equipment, which can improve the quality of the entire imaging image captured by the electronic equipment.
第一方面,本申请实施例提供了一种设备成像方法,应用于电子设备,所述电子设备包括第一摄像头和第二摄像头,所述第二摄像头能够相对于所述第一摄像头旋转,所述设备成像方法包括:In the first aspect, an embodiment of the present application provides a device imaging method, which is applied to an electronic device. The electronic device includes a first camera and a second camera. The second camera can rotate relative to the first camera. The device imaging method includes:
接收对待拍摄场景的图像拍摄请求;Receive an image shooting request of the scene to be shot;
根据所述图像拍摄请求,通过所述第一摄像头对所述待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像;Photographing the scene to be photographed through the first camera according to the image photographing request, and setting the photographed first image as a base image;
控制所述第二摄像头相对于所述第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过所述第二摄像头对所述待拍摄场景进行拍摄,得到多个第二图像,其中,所述第二摄像头在各所述预设拍摄位置时的拍摄区域与所述第一摄像头拍摄区域的不同部分重叠;Control the second camera to rotate relative to the first camera, and use the second camera to shoot the scene to be shot at multiple preset shooting positions during the rotation to obtain multiple second images, where , The shooting area of the second camera at each of the preset shooting positions overlaps with a different part of the shooting area of the first camera;
对所述多个第二图像与所述基底图像进行图像合成处理,将合成得到的图像设为所述图像拍摄请求的成像图像。Image synthesis processing is performed on the plurality of second images and the base image, and the synthesized image is set as the imaged image of the image shooting request.
第二方面,本申请实施例提供了一种设备成像装置,应用于电子设备,所述电子设备包括第一摄像头和第二摄像头,所述第二摄像头能够相对于所述第一摄像头旋转,所述设备成像装置包括:In the second aspect, an embodiment of the present application provides a device imaging device applied to an electronic device. The electronic device includes a first camera and a second camera. The second camera can rotate relative to the first camera. The equipment imaging device includes:
请求接收模块,用于接收对待拍摄场景的图像拍摄请求;The request receiving module is used to receive an image shooting request of the scene to be shot;
基底获取模块,用于根据所述图像拍摄请求,通过所述第一摄像头对所述待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像;A base acquisition module, configured to photograph the scene to be photographed through the first camera according to the image photographing request, and set the photographed first image as a base image;
辅图获取模块,用于控制所述第二摄像头相对于所述第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过所述第二摄像头对所述待拍摄场景进行拍摄,得到多个第二图像,其中,所述第二摄像头在各所述预设拍摄位置时的拍摄区域与所述第一摄像头拍摄区域的不同部分重叠;The auxiliary image acquisition module is used to control the rotation of the second camera relative to the first camera, and shoot the scene to be shot through the second camera at multiple preset shooting positions during the rotation process to obtain A plurality of second images, wherein the shooting area of the second camera at each of the preset shooting positions overlaps with different parts of the shooting area of the first camera;
图像成像模块,用于对所述多个第二图像与所述基底图像进行图像合成处理,将合成得到的图像设 为所述图像拍摄请求的成像图像。The image imaging module is configured to perform image synthesis processing on the plurality of second images and the base image, and set the synthesized image as the imaged image requested by the image shooting.
第三方面,本申请实施例提供了一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如本申请实施例提供的设备成像方法。In a third aspect, an embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the device imaging method provided in the embodiment of the present application.
第四方面,本申请实施例提供了一种电子设备,包括处理器、存储器、第一摄像头和第二摄像头,所述第二摄像头能够相对于所述第一摄像头旋转,所述存储器存储有计算机程序,所述处理器通过调用所述计算机程序,用于执行如本申请实施例提供的设备成像方法。In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a first camera, and a second camera, the second camera can rotate relative to the first camera, and the memory stores a computer A program, the processor is used to execute the device imaging method provided in the embodiment of the present application by calling the computer program.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained from these drawings without creative work.
图1是本申请实施例提供的设备成像方法的一流程示意图。FIG. 1 is a schematic flowchart of a device imaging method provided by an embodiment of the present application.
图2是本申请实施例中第一摄像头和第二摄像头的一种设置方式示意图。Fig. 2 is a schematic diagram of an arrangement of the first camera and the second camera in an embodiment of the present application.
图3是本申请实施例中触发输入图像拍摄请求的操作示意图。Fig. 3 is a schematic diagram of an operation for triggering an input image shooting request in an embodiment of the present application.
图4是本申请实施例中设置的预设拍摄位置的示意图。Fig. 4 is a schematic diagram of a preset shooting position set in an embodiment of the present application.
图5是本申请实施例中第二摄像头在不同预设拍摄位置时的拍摄区域与第一摄像头的拍摄区域对比示意图。FIG. 5 is a schematic diagram of a comparison between the shooting area of the second camera at different preset shooting positions and the shooting area of the first camera in an embodiment of the present application.
图6是本申请实施例中第二图像和基底图像的图像内容对比示意图。Fig. 6 is a schematic diagram of image content comparison between a second image and a base image in an embodiment of the present application.
图7是本申请实施例中所有第二图像和基底图像同时重叠的重叠区域示意图。FIG. 7 is a schematic diagram of an overlapping area where all the second images and the base image overlap at the same time in an embodiment of the present application.
图8是本申请实施例中角度调整组件的设置示意图。Fig. 8 is a schematic diagram of the arrangement of an angle adjustment component in an embodiment of the present application.
图9是本申请实施例中两个第一摄像头的设置方式示意图。Fig. 9 is a schematic diagram of the arrangement of two first cameras in an embodiment of the present application.
图10是本申请实施例提供的设备成像方法的另一流程示意图。FIG. 10 is another schematic flowchart of the device imaging method provided by the embodiment of the present application.
图11是本申请实施例提供的设备成像装置的一结构示意图。FIG. 11 is a schematic structural diagram of an equipment imaging device provided by an embodiment of the present application.
图12是本申请实施例提供的电子设备的一结构示意图。FIG. 12 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图13是本申请实施例提供的电子设备的另一结构示意图。FIG. 13 is another schematic diagram of the structure of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings, in which the same component symbols represent the same components, and the principle of the present application is implemented in an appropriate computing environment for illustration. The following description is based on the exemplified specific embodiments of the present application, which should not be regarded as limiting other specific embodiments that are not described in detail herein.
本申请实施例首先提供一种设备成像方法,该设备成像方法应用于电子设备。其中,该设备成像方法的执行主体可以是本申请实施例提供的设备成像装置,或者集成了该设备成像装置的电子设备,该设备成像装置可以采用硬件或者软件的方式实现,电子设备可以是智能手机、平板电脑、掌上电脑、笔记本电脑、或者台式电脑等配置有处理器而具有处理能力的设备。The embodiment of the present application first provides a device imaging method, which is applied to an electronic device. Wherein, the execution subject of the device imaging method may be the device imaging device provided in the embodiment of the application, or an electronic device integrated with the device imaging device. The device imaging device may be implemented in hardware or software, and the electronic device may be a smart device. Mobile phones, tablet computers, handheld computers, notebook computers, or desktop computers are equipped with processors and have processing capabilities.
本申请提供一种设备成像方法,应用于电子设备,所述电子设备包括第一摄像头和第二摄像头,所述第二摄像头能够相对于所述第一摄像头旋转,所述设备成像方法包括:The present application provides a device imaging method applied to an electronic device. The electronic device includes a first camera and a second camera. The second camera can rotate relative to the first camera. The device imaging method includes:
接收对待拍摄场景的图像拍摄请求;Receive an image shooting request of the scene to be shot;
根据所述图像拍摄请求,通过所述第一摄像头对所述待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像;Photographing the scene to be photographed through the first camera according to the image photographing request, and setting the photographed first image as a base image;
控制所述第二摄像头相对于所述第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过所述第二摄像头对所述待拍摄场景进行拍摄,得到多个第二图像,其中,所述第二摄像头在各所述预设拍摄位置时的拍摄区域与所述第一摄像头拍摄区域的不同部分重叠;Control the second camera to rotate relative to the first camera, and use the second camera to shoot the scene to be shot at multiple preset shooting positions during the rotation to obtain multiple second images, where , The shooting area of the second camera at each of the preset shooting positions overlaps with a different part of the shooting area of the first camera;
对所述多个第二图像与所述基底图像进行图像合成处理,将合成得到的图像设为所述图像拍摄请求的成像图像。Image synthesis processing is performed on the plurality of second images and the base image, and the synthesized image is set as the imaged image of the image shooting request.
在一实施例中,所述电子设备还包括设置在各所述预设拍摄位置的限位组件,所述控制所述第二摄像头相对于所述第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过所述第二摄像头对所述待拍摄场景进行拍摄,包括:In an embodiment, the electronic device further includes a limit component set at each of the preset shooting positions, and the second camera is controlled to rotate relative to the first camera, and the number of stops during the rotation Shooting the scene to be shot through the second camera at a preset shooting position includes:
当控制所述第二摄像头旋转至当前预设拍摄位置时,停止旋转所述第二摄像头,并通过所述当前预设拍摄位置所设置的当前限位组件固定所述第二摄像头;When controlling the second camera to rotate to the current preset shooting position, stop rotating the second camera, and fix the second camera through the current limit component set at the current preset shooting position;
通过固定的所述第二摄像头对所述待拍摄场景进行拍摄,并在拍摄得到第二图像后停止通过所述当前限位组件固定所述第二摄像头,以继续旋转所述第二摄像头至其它预设拍摄位置拍摄。Use the fixed second camera to shoot the scene to be shot, and after the second image is captured, stop fixing the second camera through the current limit component to continue rotating the second camera to other Shoot at the preset shooting position.
在一实施例中,所述电子设备还包括角度调整组件,所述通过固定的所述第二摄像头对所述待拍摄场景进行拍摄之前,还包括:In an embodiment, the electronic device further includes an angle adjustment component, and before the shooting of the scene to be shot by the fixed second camera, the method further includes:
获取所述第一摄像头拍摄时的目标对焦区域;Acquiring a target focus area during shooting by the first camera;
所述通过固定的所述第二摄像头对所述待拍摄场景进行拍摄,包括:The photographing the scene to be photographed through the fixed second camera includes:
通过所述角度调整组件调整固定的所述第二摄像头的拍摄角度,使得所述目标对焦区域位于所述第二摄像头在各预设拍摄位置时的拍摄区域的共同重叠区域之内;Adjusting the shooting angle of the fixed second camera by the angle adjustment component, so that the target focus area is located within the common overlapping area of the shooting area when the second camera is at each preset shooting position;
通过固定的所述第二摄像头基于所述目标对焦区域对所述待拍摄场景对焦拍摄。Focusing and shooting the scene to be shot based on the target focus area through the fixed second camera.
在一实施例中,所述通过固定的所述第二摄像头基于所述目标对焦区域对所述待拍摄场景对焦拍摄之前,还包括:In an embodiment, before focusing and shooting the scene to be shot based on the target focus area by the fixed second camera, the method further includes:
检测当前是否处于抖动状态;Check whether it is currently in a jitter state;
若当前不处于抖动状态,则通过固定的所述第二摄像头基于所述目标对焦区域对所述待拍摄场景对焦拍摄。If it is not currently in a shaking state, the fixed second camera is used to focus and shoot the scene to be shot based on the target focus area.
在一实施例中,所述通过固定的所述第二摄像头基于所述目标对焦区域对所述待拍摄场景对焦拍摄之前,还包括:In an embodiment, before focusing and shooting the scene to be shot based on the target focus area by the fixed second camera, the method further includes:
若当前不处于抖动状态,则检测所述待拍摄场景是否处于静止状态;If it is not currently in a shaking state, detecting whether the scene to be photographed is in a static state;
若所述待拍摄场景处于静止状态,则通过固定的所述第二摄像头基于所述目标对焦区域对所述待拍摄场景对焦拍摄。If the scene to be photographed is in a static state, the fixed second camera is used to focus and photograph the scene to be photographed based on the target focus area.
在一实施例中,所述电子设备包括两个第一摄像头,所述通过所述第一摄像头对所述待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像,包括:In an embodiment, the electronic device includes two first cameras, and the shooting of the scene to be shot through the first cameras and setting the first image obtained by shooting as a base image includes:
通过所述两个第一摄像头对所述待拍摄场景进行拍摄,得到至少两个第一图像;Shooting the scene to be shot by using the two first cameras to obtain at least two first images;
对所述至少两个第一图像进行图像合成处理,将合成得到的图像设为所述基底图像。Perform image synthesis processing on the at least two first images, and set the synthesized image as the base image.
在一实施例中,所述通过所述第一摄像头对所述待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像,包括:In an embodiment, the photographing the scene to be photographed through the first camera and setting the photographed first image as a base image includes:
通过所述第一摄像头基于所述目标对焦区域对所述待拍摄场景连续对焦拍摄,得到多个第一图像;Using the first camera to continuously focus and shoot the scene to be shot based on the target focus area to obtain multiple first images;
对所述多个第一图像进行图像合成处理,将合成得到的图像设为所述基底图像。Image synthesis processing is performed on the plurality of first images, and the synthesized image is set as the base image.
在一实施例中,所述通过所述第一摄像头基于所述目标对焦区域对所述待拍摄场景连续对焦拍摄,得到多个第一图像之后,还包括:In an embodiment, after the first camera continuously focuses and shoots the scene to be shot based on the target focus area, and obtains multiple first images, the method further includes:
从所述多个第一图像中选取清晰度最高的第一图像作为所述基底图像。The first image with the highest definition is selected from the plurality of first images as the base image.
在一实施例中,所述电子设备还包括覆盖所述第一摄像头和/或所述第二摄像头的电致变色组件,所述接收对待拍摄场景的图像拍摄请求之前,还包括:In an embodiment, the electronic device further includes an electrochromic component covering the first camera and/or the second camera, and before the receiving an image shooting request of the scene to be shot, further includes:
切换所述电致变色组件至透明状态;Switching the electrochromic component to a transparent state;
所述对所述多个第二图像与所述基底图像进行图像合成处理,将合成得到的图像设为所述图像拍摄请求的成像图像之后,还包括:After performing image synthesis processing on the plurality of second images and the base image, and setting the synthesized image as the imaging image of the image shooting request, the method further includes:
将所述电致变色组件切换至着色状态,以隐藏所述第一摄像头和/或所述第二摄像头。The electrochromic component is switched to a colored state to hide the first camera and/or the second camera.
请参照图1,图1为本申请实施例提供的设备成像方法的流程示意图。该设备成像方法应用于本申请实施例提供的电子设备,如图1所示,本申请实施例提供的设备成像方法的流程可以如下:Please refer to FIG. 1, which is a schematic flowchart of a device imaging method according to an embodiment of the application. The device imaging method is applied to the electronic device provided in the embodiment of the present application. As shown in FIG. 1, the process of the device imaging method provided in the embodiment of the present application may be as follows:
在101中,接收对待拍摄场景的图像拍摄请求。In 101, an image shooting request of the scene to be shot is received.
应当说明的是,在本申请实施例中,电子设备包括不同类型的第一摄像头和第二摄像头,其中,第一摄像头为标准类型的摄像头,或者说视场角为45度左右的摄像头,第二摄像头为长焦类型的摄像头,或者说视场角为40度以内的摄像头,第二摄像头能够相对于第一摄像头旋转,且第二摄像头朝向第一摄像头的轴线并相交。It should be noted that in this embodiment of the application, the electronic device includes different types of first cameras and second cameras, where the first camera is a standard type of camera, or a camera with a field of view of about 45 degrees, the first The second camera is a telephoto camera, or a camera with a field of view angle of less than 40 degrees. The second camera can rotate relative to the first camera, and the second camera faces and intersects the axis of the first camera.
示例性的,请参照图2,电子设备设置有第一摄像头,以及环绕第一摄像头设置的环形轨道,第二摄像头通过移动机构(图中未示出)设置在环形轨道上,电子设备可以通过移动机构驱动第二摄像头绕第一摄像头旋转。Exemplarily, please refer to Figure 2. The electronic device is provided with a first camera and a circular track arranged around the first camera. The second camera is arranged on the circular track by a moving mechanism (not shown in the figure), and the electronic device can pass through The moving mechanism drives the second camera to rotate around the first camera.
此外,还可以直接将第二摄像头设置在环形轨道时,由用户拨动第二摄像头绕第一摄像头旋转,等等。In addition, when the second camera is directly set on the circular track, the user can turn the second camera around the first camera, and so on.
本申请实施例中,图像拍摄请求可由用户直接输入,用于指示电子设备对待拍摄场景进行拍摄。其中,待拍摄场景即电子设备在接收到输入的图像拍摄请求时,第一摄像头所对准的对象,包括但不限于人、物以及景等。In the embodiment of the present application, the image shooting request may be directly input by the user to instruct the electronic device to shoot the scene to be shot. Wherein, the scene to be photographed is the object that the first camera is aimed at when the electronic device receives the input image photographing request, including but not limited to people, objects, and scenery.
比如,用户在操作电子设备启动拍摄类应用(比如电子设备的系统应用“相机”),并通过移动电子设备,使得电子设备的第一摄像头以及第二摄像头对准待拍摄场景之后,可以通过点击“相机”预览界面提供的“拍照”按键(为虚拟按键),向电子设备输入图像拍摄请求,如图3所示。For example, after the user operates the electronic device to start a shooting application (such as the system application "camera" of the electronic device), and moves the electronic device so that the first camera and the second camera of the electronic device are aligned with the scene to be shot, they can click The "photograph" button (virtual button) provided by the "camera" preview interface inputs an image shooting request to the electronic device, as shown in Figure 3.
又比如,用户在操作电子设备启动拍摄类应用,并通过移动电子设备,使得电子设备的第一摄像头 以及第二摄像头对准待拍摄场景之后,可以说出语音指令“拍照”,向电子设备输入图像拍摄请求。For another example, after the user operates an electronic device to start a shooting application and moves the electronic device so that the first camera and second camera of the electronic device are aimed at the scene to be photographed, the user can speak the voice command "photograph" and input to the electronic device Image capture request.
在102中,根据图像拍摄请求,通过第一摄像头对待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像。In 102, according to the image shooting request, the scene to be shot is shot by the first camera, and the first image obtained by shooting is set as the base image.
比如,电子设备在接收到用户通过语音方式输入的对待拍摄场景的图像拍摄请求时,即根据该图像拍摄请求,按照预先设定的拍摄参数(比如曝光值、对比度等)通过第一摄像头对待拍摄场景进行一次拍摄,将第一摄像头拍摄得到的图像记为第一图像,并将该第一图像设为基底图像。For example, when the electronic device receives an image shooting request of the scene to be shot input by the user through voice, it is based on the image shooting request and according to preset shooting parameters (such as exposure value, contrast, etc.) to be shot through the first camera. The scene is shot once, and the image captured by the first camera is recorded as the first image, and the first image is set as the base image.
在103中,控制第二摄像头相对于第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过第二摄像头对待拍摄场景进行拍摄,得到多个第二图像,其中,第二摄像头在各预设拍摄位置时的拍摄区域与第一摄像头拍摄区域的不同部分重叠。In 103, the second camera is controlled to rotate relative to the first camera, and the scene to be photographed is captured by the second camera at multiple preset shooting positions during the rotation to obtain multiple second images, where the second camera is The shooting area at each preset shooting position overlaps with different parts of the shooting area of the first camera.
应当说明的是,本申请实施例中预先在第二摄像头的旋转路径上设置有多个预设拍摄位置。比如,请一并参照图4和图5,以第二摄像头通过环形轨道的方式绕第一摄像头旋转的方案为例,在环形轨道(对应于第二摄像头的旋转路径)上设置有四个预设拍摄位置,分别为预设拍摄位置A、预设拍摄位置B、预设拍摄位置C以及预设拍摄位置D,由于第二摄像头的轴线与第一摄像头的轴线相交,使得第二摄像头在预设拍摄位置C的拍摄区域a对应第一摄像头的拍摄区域的左上角,第二摄像头在预设拍摄位置D的拍摄区域b对应第一摄像头的拍摄区域的右上角,第二摄像头在预设拍摄位置B的拍摄区域c对应第一摄像头的拍摄区域的左下角,第二摄像头在预设拍摄位置A的拍摄区域d对应第一摄像头的拍摄区域的右下角,由此,使得第二摄像头在各预设拍摄位置时的拍摄区域与第一摄像头拍摄区域的不同部分重叠。It should be noted that, in the embodiment of the present application, a plurality of preset shooting positions are preset on the rotation path of the second camera. For example, please refer to Figures 4 and 5 together. Take the scheme in which the second camera rotates around the first camera through a circular track as an example. There are four presets on the circular track (corresponding to the rotation path of the second camera). Suppose the shooting positions are preset shooting position A, preset shooting position B, preset shooting position C, and preset shooting position D. Since the axis of the second camera intersects the axis of the first camera, the second camera is Suppose the shooting area a of the shooting position C corresponds to the upper left corner of the shooting area of the first camera, the shooting area b of the second camera at the preset shooting position D corresponds to the upper right corner of the shooting area of the first camera, and the second camera is shooting at the preset The shooting area c at position B corresponds to the lower left corner of the shooting area of the first camera, and the shooting area d of the second camera at the preset shooting position A corresponds to the lower right corner of the shooting area of the first camera, so that the second camera is at each The shooting area at the preset shooting position overlaps with different parts of the shooting area of the first camera.
本申请实施例中,电子设备除了通过第一摄像头对待拍摄场景进行拍摄得到基底图像之外,还通过第二摄像头对待拍摄场景拍摄。其中,电子设备控制第二摄像头相对于第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过第二摄像头对待拍摄场景进行拍摄,从而得到多个第二图像。In the embodiment of the present application, the electronic device not only uses the first camera to capture the scene to be shot to obtain the base image, but also uses the second camera to capture the scene to be shot. The electronic device controls the second camera to rotate relative to the first camera, and shoots the scene to be shot by the second camera at a plurality of preset shooting positions during the rotation, thereby obtaining a plurality of second images.
比如,以第二摄像头通过环形轨道的方式绕第一摄像头旋转的方案为例,在环形轨道(对应于第二摄像头的旋转路径)上设置有图4所示的四个预设拍摄位置,当第二摄像头旋转到任一预设拍摄位置时,通过第二摄像头对待拍摄场景进行拍摄,将第二摄像头拍摄得到的图像记为第二图像,从而拍摄得到待拍摄场景的四个第二图像,其中,第二摄像头在预设拍摄位置C拍摄的第二图像H的图像内容对应基底图像左上角的图像内容,第二摄像头在预设拍摄位置D拍摄的第二图像I的图像内容对应基底图像右上角的图像内容,第二摄像头在预设拍摄位置A拍摄的第二图像K的图像内容对应基底图像右下角的图像内容,第二摄像头在预设拍摄位置B的图像内容对应基底图像左下角的图像内容,这样,不同的第二图像的图像内容即覆盖了基底图像中的不同区域。For example, taking the solution of the second camera rotating around the first camera through a circular track as an example, the four preset shooting positions shown in Figure 4 are set on the circular track (corresponding to the rotation path of the second camera). When the second camera rotates to any preset shooting position, the scene to be shot is captured by the second camera, and the image taken by the second camera is recorded as the second image, so that four second images of the scene to be shot are captured. The image content of the second image H captured by the second camera at the preset shooting position C corresponds to the image content in the upper left corner of the base image, and the image content of the second image I captured by the second camera at the preset shooting position D corresponds to the base image The image content in the upper right corner, the image content of the second image K captured by the second camera at the preset shooting position A corresponds to the image content in the lower right corner of the base image, and the image content of the second camera at the preset shooting position B corresponds to the lower left corner of the base image In this way, the image content of a different second image covers different areas in the base image.
在104中,对多个第二图像与基底图像进行图像合成处理,将合成得到的图像设为图像拍摄请求的成像图像。In 104, image synthesis processing is performed on the plurality of second images and the base image, and the synthesized image is set as the imaged image requested for image shooting.
本申请实施例中,电子设备在通过第一摄像头拍摄得到基底图像,以及通过多个第二摄像头拍摄得到多个第二图像之后,将拍摄得到的多个第二图像与基底图像对齐。In the embodiment of the present application, the electronic device aligns the multiple second images obtained by shooting with the substrate image after obtaining the base image through the first camera and multiple second images through the multiple second cameras.
基于对齐后的基底图像和第二图像,对于基底图像和第二图像的重叠部分,计算重叠的各像素点的 平均像素值,比如,电子设备除了通过第一摄像头拍摄得到基底图像之外,还通过四个第二摄像头拍摄得到四个第二图像,请参照图6,各第二图像与基底图像同时重叠的重叠区域位于基底图像的中间区域,这样,对于图6所示的重叠区域,某位置的像素点在五个图像(即基底图像和四个第二图像)中的像素值分别为0.8、0.9、1.1、1.2和1,则可计算得到该位置的像素点的平均像素值为1。Based on the aligned base image and the second image, for the overlapping part of the base image and the second image, calculate the average pixel value of each overlapping pixel. For example, in addition to the base image captured by the first camera, the electronic device also Four second images are captured by four second cameras. Please refer to Figure 6. The overlap area where each second image overlaps the base image at the same time is located in the middle area of the base image. Thus, for the overlap area shown in Figure 6, a certain The pixel values of the pixels at the position in the five images (ie the base image and the four second images) are 0.8, 0.9, 1.1, 1.2 and 1, respectively, and the average pixel value of the pixels at the position can be calculated to be 1. .
之后,根据基底图像中对应的各位置像素点所得到的平均像素值得到合成图像,比如,可以将基底图像的各像素点的像素值相应调整为计算得到的各平均像素值,从而得到合成图像;又比如,还可以根据计算得到各平均像素值,生成一幅新的图像,即合成图像。After that, the composite image is obtained according to the average pixel value of each pixel in the corresponding position in the base image. For example, the pixel value of each pixel of the base image can be adjusted to the calculated average pixel value to obtain the composite image. ; For another example, you can also generate a new image based on the calculated average pixel values, that is, a composite image.
本申请实施例中,电子设备在对拍摄得到的多个第二图像与基底图像进行图像合成处理之后,将合成得到的合成图像设为图像拍摄请求的成像图像,至此,电子设备即完成了对应接收到的图像拍摄请求一次完整拍摄操作。In the embodiment of the present application, after the electronic device performs image synthesis processing on the multiple second images obtained by shooting and the base image, the synthesized image obtained by the synthesis is set as the imaging image requested by the image shooting. At this point, the electronic device has completed the corresponding The received image shooting requests a complete shooting operation.
比如,请继续参照图7,图7由此示出了基底图像到成像图像的清晰度变化,其中,X轴表示由图像边缘区域到所有摄像头的共同重叠区域(由于第二摄像头的轴线朝向第一摄像头的轴线倾斜,使得所有摄像头的共同重叠区域位于基底图像的中间区域),再由共同重叠区域到边缘区域的位置变化,Y轴表示跟随X轴变化的清晰度,可以看出,在基底图像中,中心区域的清晰度最高,随着中心区域向边缘区域的扩散,清晰度逐渐降低,且变化较为剧烈,而在成像图像中,中心区域的清晰度最高,且相较于基底图像,成像图像的边缘区域的清晰度被整体提高,随着中心区域向边缘区域的扩散,虽然清晰度逐渐降低,且变化更为平滑,使得成像图像的整体图像质量得以提高。For example, please continue to refer to Figure 7. Figure 7 thus shows the definition change from the base image to the imaging image, where the X axis represents the common overlap area from the edge area of the image to all cameras (because the axis of the second camera faces the first The axis of a camera is tilted so that the common overlap area of all cameras is located in the middle area of the base image), and the position changes from the common overlap area to the edge area. The Y axis represents the definition following the change of the X axis. It can be seen that in the base In the image, the sharpness of the central area is the highest. As the central area spreads to the edge area, the sharpness gradually decreases and the changes are more dramatic. In the imaged image, the sharpness of the central area is the highest, and compared to the base image, The sharpness of the edge area of the imaged image is improved as a whole. As the central area spreads to the edge area, although the sharpness gradually decreases and the change is smoother, the overall image quality of the imaged image is improved.
由上可知,本申请实施例中,电子设备包括第一摄像头,以及能够相对于第一摄像头旋转的第二摄像头,可以通过接收对待拍摄场景的图像拍摄请求,并响应于该图像拍摄请求,通过第一摄像头拍摄得到待拍摄场景的基底图像,以及通过旋转的第二摄像头拍摄得到待拍摄场景的多个第二图像,最后对多个第二图像与基底图像进行图像合成处理,将合成得到的图像设为图像拍摄请求的成像图像。相比于相关技术,本申请能够使得成像图像的边缘区域和中间区域清晰度都得以提高,且图像整体的清晰度变化更为平缓,从而提高了整张成像图像的质量。It can be seen from the above that, in the embodiment of the present application, the electronic device includes a first camera and a second camera that can rotate relative to the first camera. It can receive an image shooting request of the scene to be shot, and respond to the image shooting request by The first camera captures the base image of the scene to be photographed, and the rotating second camera captures multiple second images of the scene to be photographed, and finally performs image synthesis processing on the multiple second images and the base image, and the synthesized The image is set as the imaged image requested by the image capture. Compared with related technologies, the present application can improve the definition of both the edge area and the middle area of the imaged image, and the overall image sharpness changes more smoothly, thereby improving the quality of the entire imaged image.
在一实施例中,电子设备还包括设置在各预设拍摄位置的限位组件,“控制第二摄像头相对于第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过第二摄像头对待拍摄场景进行拍摄”,包括:In an embodiment, the electronic device further includes a limit component set at each preset shooting position, “control the second camera to rotate relative to the first camera, and pass the second camera at multiple preset shooting positions during the rotation. Shoot the scene to be shot", including:
(1)当控制第二摄像头旋转至当前预设拍摄位置时,停止旋转第二摄像头,并通过当前预设拍摄位置所设置的当前限位组件固定第二摄像头;(1) When controlling the second camera to rotate to the current preset shooting position, stop rotating the second camera, and fix the second camera through the current limit component set at the current preset shooting position;
(2)通过固定的第二摄像头对待拍摄场景进行拍摄,并在拍摄得到第二图像后停止通过当前限位组件固定第二摄像头,以继续旋转第二摄像头至其它预设拍摄位置拍摄。(2) Use the fixed second camera to shoot the scene to be shot, and after the second image is captured, stop fixing the second camera through the current limit component to continue rotating the second camera to other preset shooting positions to shoot.
为了使得第二摄像头能够稳定的对待拍摄场景进行拍摄,本申请实施例中,在各预设拍摄位置处还设置有限位组件,用于固定第二摄像头。比如,以第二摄像头通过环形轨道的方式绕第一摄像头旋转的方案为例,若第二摄像头通过移动机构设置在环形轨道,则限位组件可以通过固定移动机构来达到固定第二摄像头的目的。In order to enable the second camera to shoot the scene to be shot stably, in this embodiment of the present application, a limit component is also provided at each preset shooting position for fixing the second camera. For example, taking the solution of the second camera rotating around the first camera through a circular track as an example, if the second camera is arranged on the circular track by a moving mechanism, the limit component can achieve the purpose of fixing the second camera by fixing the moving mechanism .
应当说明的是,本申请实施例中所指的当前预设拍摄位置并非特指某预设拍摄位置,而是代指当前 时刻第二摄像头所旋转至的预设拍摄位置,可以为电子设备所设置的多个预设拍摄位置中的任一预设拍摄位置。相应的,当前限位组件同样并非特指某限位组件,而是代指设置在当前预设拍摄位置的限位组件,对于不同的“当前预设拍摄位置”,当前限位组件不同。It should be noted that the current preset shooting position referred to in the embodiments of this application does not specifically refer to a certain preset shooting position, but refers to the preset shooting position to which the second camera is rotated at the current moment, which may be the position of the electronic device. Any one of the multiple preset shooting positions set. Correspondingly, the current limit component also does not specifically refer to a certain limit component, but rather refers to a limit component set at the current preset shooting position. For different "current preset shooting positions", the current limit component is different.
本申请实施例中,当控制第二摄像头旋转至当前预设拍摄位置时,停止旋转第二摄像头,并使能当前预设拍摄位置所设置的当前限位组件,以通过该当前限位组件固定第二摄像头。当通过当前限位组件固定第二摄像头之后,电子设备即通过固定的第二摄像头对拍摄场景进行拍摄,得到第二图像。其中,电子设备在通过第二摄像头对待拍摄场景进行拍摄时,采用与第一摄像头相同的拍摄参数,使得第二摄像头能够获得与第一摄像头相同的拍摄效果。In the embodiment of the present application, when the second camera is controlled to rotate to the current preset shooting position, the rotation of the second camera is stopped, and the current limit component set in the current preset shooting position is enabled to be fixed by the current limit component The second camera. After the second camera is fixed by the current limit component, the electronic device shoots the shooting scene through the fixed second camera to obtain the second image. Wherein, when the electronic device uses the second camera to shoot the scene to be shot, it uses the same shooting parameters as the first camera, so that the second camera can obtain the same shooting effect as the first camera.
电子设备通过第二摄像头在当前预设拍摄位置拍摄得到第二图像之后,即停止使能当前限位组件,不再通过当前限位组件固定第二摄像头,从而继续选中第二摄像头至其它预设拍摄位置拍摄。由此,通过设置在各预设拍摄位置的限位组件固定第二摄像头,能够更稳定的拍摄得到待拍摄场景的第二图像。After the electronic device takes the second image through the second camera at the current preset shooting position, it stops enabling the current limit component, and no longer fixes the second camera through the current limit component, so as to continue to select the second camera to other presets Shoot at the shooting location. In this way, by fixing the second camera by the position-limiting component set at each preset shooting position, the second image of the scene to be shot can be obtained more stably.
在一实施例中,电子设备还包括角度调整组件,“通过固定的第二摄像头对待拍摄场景进行拍摄”之前,还包括:In an embodiment, the electronic device further includes an angle adjustment component, and before "shooting the scene to be shot through a fixed second camera", it further includes:
(1)获取第一摄像头拍摄时的目标对焦区域;(1) Obtain the target focus area when the first camera is shooting;
“通过固定的第二摄像头对待拍摄场景进行拍摄”,包括:"Shooting the scene to be shot through a fixed second camera" includes:
(2)通过角度调整组件调整固定的第二摄像头的拍摄角度,使得目标对焦区域位于第二摄像头在各预设拍摄位置时的拍摄区域的共同重叠区域之内;(2) Adjust the shooting angle of the fixed second camera through the angle adjustment component, so that the target focus area is within the common overlapping area of the shooting area when the second camera is at each preset shooting position;
(3)通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄。(3) Focusing and shooting the scene to be shot based on the target focus area through the fixed second camera.
为了进一步提高成像图像的整体质量,本申请实施例中,在利用第二摄像头对待拍摄场景进行拍摄时,选取与第一摄像头相同的对焦区域,并且使得该对焦区域位于第二摄像头在各预设拍摄位置时的拍摄区域的共同重叠区域之内。为此,本申请实施例还包括角度调整组件,示例性的,请参照图8,以第二摄像头通过环形轨道的方式绕第一摄像头旋转的方案为例,假设通过移动机构来驱动第二摄像头绕第一摄像头旋转,则可以将移动机构设置在环形轨道上,将角度调整组件设置在移动机构上,再将第二摄像头设置在角度调整组件上,这样,既可以通过移动机构绕第一摄像头旋转第二摄像头,还可以通过角度调整组价调整第二摄像头的拍摄角度。In order to further improve the overall quality of the imaged image, in the embodiment of the present application, when the second camera is used to shoot the scene to be shot, the same focus area as the first camera is selected, and the focus area is located at each preset of the second camera. The shooting position is within the common overlapping area of the shooting area. For this reason, the embodiment of the present application also includes an angle adjustment component. For example, please refer to FIG. 8. Taking the solution of the second camera rotating around the first camera through a circular track as an example, assuming that the second camera is driven by a moving mechanism Rotate around the first camera, you can set the moving mechanism on the circular track, set the angle adjustment assembly on the move mechanism, and then set the second camera on the angle adjustment assembly, so that the first camera can be moved around the moving mechanism By rotating the second camera, you can also adjust the shooting angle of the second camera through the angle adjustment group price.
其中,电子设备在通过固定的第二摄像头对待拍摄场景进行拍摄之前,首先获取第一摄像头拍摄时的目标对焦区域。其中,电子设备在通过第一摄像头拍摄时,可以采用预设的自动对焦算法确定待拍摄场景的对焦区域,记为目标对焦区域,并通过第一摄像头基于目标对焦区域对待拍摄场景对焦拍摄。此外,电子设备还可以根据图像拍摄请求中所携带的对焦区域选择信息来确定目标对焦区域,等等。Wherein, the electronic device first obtains the target focus area when the first camera is shooting before shooting the scene to be shot through the fixed second camera. Wherein, when the electronic device shoots through the first camera, it can use a preset autofocus algorithm to determine the focus area of the scene to be shot, record it as the target focus area, and focus and shoot the scene to be shot based on the target focus area through the first camera. In addition, the electronic device may also determine the target focus area according to the focus area selection information carried in the image shooting request, and so on.
本申请实施例中,电子设备在获取到第一摄像头拍摄的目标对焦区域之后,即根据该目标对焦区域,通过角度调整组件对固定的第二摄像头的拍摄角度进行调整,使得目标对焦区域位于第二摄像头在各预设拍摄位置时的拍摄区域的共同重叠区域之内。In the embodiment of the present application, after the electronic device obtains the target focus area shot by the first camera, the shooting angle of the fixed second camera is adjusted by the angle adjustment component according to the target focus area, so that the target focus area is located in the second camera. The second camera is within the common overlapping area of the shooting area when the camera is at each preset shooting position.
在完成拍摄角度的调整之后,电子设备即通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄,从而拍摄得到多个第二图像。After the adjustment of the shooting angle is completed, the electronic device uses the fixed second camera to focus and shoot the scene to be shot based on the target focus area, so as to obtain multiple second images.
在一实施例中,“通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄”之前,还包括:In an embodiment, before “focusing and shooting the scene to be shot based on the target focus area through the fixed second camera”, the method further includes:
(1)检测当前是否处于抖动状态;(1) Detect whether it is currently in a jitter state;
(2)若当前不处于抖动状态,则通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄。(2) If it is not currently in a shaking state, focus and shoot the scene to be shot based on the target focus area through the fixed second camera.
根据以上实施例中的相关描述,本领域普通技术人员可以理解的是,由于第二摄像头并不是固定不动的设置在电子设备,当电子设备整体抖动时,将导致第二摄像头更大的抖动,电子设备通过第一摄像头和第二摄像头拍摄得到图像的图像内容将存在较大的差异,影响成像图像的合成效果。According to the relevant description in the above embodiments, those of ordinary skill in the art can understand that since the second camera is not fixedly installed on the electronic device, when the electronic device shakes as a whole, it will cause greater shaking of the second camera. , The image content of the image captured by the electronic device through the first camera and the second camera will have a large difference, which will affect the synthesis effect of the imaged image.
因此,在本申请实施例中,电子设备在通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄之前,首先判断自身当前是否处于抖动状态。其中,电子设备可以通过多种不同方式进行抖动状态的判断,比如,电子设备可以判断当前在各方向的速度是否均大于预设速度,若是,则判定当前处于抖动状态,若否,则判定当前不处于抖动状态(或者说,稳定状态);又比如,电子设备可以判断当前在各方向的位移是否均大于预设位移,若是,则判定当前处于抖动状态,若否,则判定当前不处于抖动状态。此外,还可以通本申请实施例未列出的方式进行抖动状态的判断,本申请实施例对此不做具体限制。Therefore, in the embodiment of the present application, the electronic device first determines whether it is currently in a shake state before focusing and shooting the scene to be shot based on the target focus area through the fixed second camera. Among them, the electronic device can judge the jitter state in many different ways. For example, the electronic device can determine whether the current speed in each direction is greater than the preset speed, if it is, it is judged that it is in the jitter state, if not, it is judged that the current Not in a jitter state (or a stable state); for another example, the electronic device can determine whether the current displacement in each direction is greater than the preset displacement, if it is, it determines that it is currently in a jitter state, if not, it determines that it is not currently in a jitter status. In addition, the jitter state can also be determined in a manner not listed in the embodiment of the present application, which is not specifically limited in the embodiment of the present application.
在判定当前不处于抖动状态时,电子设备即通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄,具体可参照以上实施例中的相关描述,此处不再赘述。When determining that it is not currently in a jitter state, the electronic device uses the fixed second camera to focus and shoot the scene to be shot based on the target focus area. For details, refer to the relevant description in the above embodiment, which will not be repeated here.
在一实施例中,“通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄”之前,还包括:In an embodiment, before “focusing and shooting the scene to be shot based on the target focus area through the fixed second camera”, the method further includes:
(1)若当前不处于抖动状态,则检测待拍摄场景是否处于静止状态;(1) If it is not currently in a shaking state, detect whether the scene to be shot is in a static state;
(2)若待拍摄场景处于静止状态,则通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄。(2) If the scene to be shot is in a static state, the fixed second camera is used to focus and shoot the scene to be shot based on the target focus area.
根据以上相关描述,本领域普通技术人员可以理解的是,在电子设备不处于抖动状态的情况下,若待拍摄场景不处于静止状态(比如,待拍摄场景包括运动物体),电子设备通过第一摄像头和第二摄像头拍摄得到图像的图像内容也可能存在较大的差异。According to the above related description, those of ordinary skill in the art can understand that when the electronic device is not in a shaking state, if the scene to be photographed is not in a static state (for example, the scene to be photographed includes a moving object), the electronic device passes through the first The image content of the image captured by the camera and the second camera may also be quite different.
因此,在本申请实施例中,电子设备在判定其自身当前不处于抖动状态时,并不立即通过固定的第二摄像头对待拍摄场景进行拍摄,而是进一步检测待拍摄场景是否处于静止状态,若检测到待拍摄场景处于静止状态,再通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄,具体可参照以上实施例中的相关描述,此处不再赘述。Therefore, in the embodiment of the present application, when the electronic device determines that it is not currently in a shaking state, it does not immediately use the fixed second camera to shoot the scene to be photographed, but further detects whether the scene to be photographed is in a static state. It is detected that the scene to be photographed is in a static state, and then the fixed second camera is used to focus and shoot the scene to be photographed based on the target focus area. For details, reference may be made to the relevant description in the above embodiment, which will not be repeated here.
其中,对于如何判断待拍摄场景是否处于静止状态,可由本领域普通技术人员是根据实际需要选取合适的方式进行判断,本申请实施例对此不做具体限制,比如,可以采用光流法、残差法等来判断待拍摄场景是否处于静止状态。Among them, as to how to determine whether the scene to be shot is in a static state, a person of ordinary skill in the art can select an appropriate method according to actual needs to make the judgment. The embodiment of the present application does not impose specific restrictions on this, for example, optical flow method or residual Difference method, etc. to determine whether the scene to be shot is in a static state.
在一实施例中,电子设备包括两个第一摄像头,通过第一摄像头对待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像,包括:In an embodiment, the electronic device includes two first cameras, the scene to be shot is captured by the first cameras, and the first image obtained by shooting is set as the base image, including:
(1)通过两个第一摄像头对待拍摄场景进行拍摄,得到至少两个第一图像;(1) Take shots of the scene to be shot through two first cameras to obtain at least two first images;
(2)对至少两个第一图像进行图像合成处理,将合成得到的图像设为基底图像。(2) Perform image synthesis processing on at least two first images, and set the synthesized image as a base image.
本申请实施例中,电子设备包括两个标准类型的第一摄像头。比如,请参照图9,电子设备包括两个第一摄像头,分别为第一摄像头E和第一摄像头F,第一摄像头E和第一摄像头F的中心连线与电子 设备的左/右侧边平行。In the embodiment of the present application, the electronic device includes two standard types of first cameras. For example, referring to Figure 9, the electronic device includes two first cameras, namely the first camera E and the first camera F. The center line of the first camera E and the first camera F is connected to the left/right side of the electronic device parallel.
在通过第一摄像头对待拍摄对象进行拍摄,将拍摄得到的第一图像设为基底图像时,电子设备可以通过两个第一摄像头对待拍摄对象进行拍摄,得到图像内容相同的至少两个第一图像。然后再对至少两个第一图像进行图像合成处理,将合成得到的图像设为基底图像。When the object to be photographed is photographed by the first camera, and the first image obtained is set as the base image, the electronic device can photograph the object to be photographed through the two first cameras to obtain at least two first images with the same image content . Then, image synthesis processing is performed on at least two first images, and the synthesized image is set as the base image.
其中,电子设备在对至少两个第一图像进行图像合成处理时,首先将至少两个第一图像对齐,再计算至少两个第一图像重叠的各像素点的平均像素值,最后根据计算得到的各平均像素值得到至少两个第一图像的合成图像,将该合成图像设为基底图像。Wherein, when the electronic device performs image synthesis processing on at least two first images, it first aligns at least two first images, and then calculates the average pixel value of each pixel overlapping at least two first images, and finally obtains according to the calculation Each average pixel value of to obtain a composite image of at least two first images, and the composite image is set as the base image.
相较于直接将第一摄像头拍摄得到的第一图像设为基底图像,本申请实施例中能够获得更高清晰度的基底图像,使得最终得到的成像图像也具有更高的清晰度。Compared with directly setting the first image captured by the first camera as the base image, the base image with higher definition can be obtained in the embodiments of the present application, so that the finally obtained imaged image also has higher definition.
在一实施例中,“通过第一摄像头对待拍摄对象进行拍摄,将拍摄得到的第一图像设为基底图像”,包括:In one embodiment, "taking a photograph of the subject to be photographed through the first camera, and setting the photographed first image as the base image" includes:
(1)通过第一摄像头对待拍摄对象进行连续拍摄,得到多个第一图像;(1) Continuously photograph the object to be photographed through the first camera to obtain multiple first images;
(2)对多个第一图像进行图像合成处理,将合成得到的图像设为基底图像。(2) Perform image synthesis processing on a plurality of first images, and set the synthesized image as a base image.
本申请实施例中,通过第一摄像头对待拍摄对象进行拍摄,将拍摄得到的第一图像设为基底图像时,电子设备可以根据接收到的图像拍摄请求,通过第一摄像头对待拍摄对象进行连续拍摄,得到多个第一图像。其中,电子设备可以按照设定的拍摄帧率,在单位时长内通过第一摄像头对待拍摄对象进行拍摄,从而实现对待拍摄对象的连续拍摄。比如,假设第一摄像头的拍摄帧率为15FPS,则在单位时长1秒内,电子设备将拍摄得到待拍摄对象的15个图像,由于这些图像均对应于同一待拍摄对象,且各图像间的拍摄时刻的间隔较小,可以将这些图像的图像内容看做相同。In the embodiments of the present application, when the first camera is used to shoot the object to be photographed, and the first image obtained by shooting is set as the base image, the electronic device can continuously photograph the object to be photographed through the first camera according to the received image shooting request , Get multiple first images. Wherein, the electronic device may use the first camera to shoot the object to be photographed within a unit time according to the set shooting frame rate, thereby realizing continuous shooting of the object to be photographed. For example, assuming that the shooting frame rate of the first camera is 15FPS, the electronic device will capture 15 images of the subject to be photographed within 1 second of unit time. Because these images all correspond to the same subject to be photographed, and the difference between each image The interval between the shooting moments is small, and the image content of these images can be regarded as the same.
在拍摄得到多个待拍摄对象的第一图像之后,电子设备从中选取出清晰度最高的第一图像,将其它第一图像与该清晰度最高的第一图像对齐,再计算多个第一图像重叠的各像素点的平均像素值,最后根据计算得到的各平均像素值得到多个第一图像的合成图像,将该合成图像设为基底图像。After the first images of multiple objects to be photographed are obtained, the electronic device selects the first image with the highest definition from them, aligns other first images with the first image with the highest definition, and then calculates multiple first images The average pixel value of each overlapped pixel is finally obtained according to the calculated average pixel value to obtain a composite image of a plurality of first images, and the composite image is set as a base image.
相较于直接将第一摄像头拍摄得到的第一图像设为基底图像,本申请实施例中能够获得更高清晰度的基底图像,使得最终得到的成像图像也具有更高的清晰度。Compared with directly setting the first image captured by the first camera as the base image, the base image with higher definition can be obtained in the embodiments of the present application, so that the finally obtained imaged image also has higher definition.
可选的,在通过第一摄像头对待拍摄对象进行连续拍摄,得到多个第一图像之后,还包括:Optionally, after the object to be photographed is continuously photographed through the first camera to obtain multiple first images, the method further includes:
从拍摄得到的多个第一图像中选取清晰度最高的图像作为基底图像,用作与第二摄像头拍摄得到的第二图像进行图像合成处理以得到成像图像。The image with the highest definition is selected from the plurality of first images obtained by shooting as the base image, and used as the second image obtained by the second camera to perform image synthesis processing to obtain an imaged image.
通常来说,图像越清晰,其对比度越高。因此,可以使用图像的对比度来衡量图像的清晰度。Generally speaking, the clearer the image, the higher the contrast. Therefore, the contrast of the image can be used to measure the sharpness of the image.
在一实施例中,电子设备还包括覆盖第一摄像头和/或第二摄像头的电致变色组件,“接收对待拍摄场景的图像拍摄请求”之前,还包括:In an embodiment, the electronic device further includes an electrochromic component covering the first camera and/or the second camera, and before "receiving an image shooting request of the scene to be shot", it further includes:
切换电致变色组件至透明状态;Switch the electrochromic component to a transparent state;
“对多个第二图像与基底图像进行图像合成处理,将合成得到的图像设为图像拍摄请求的成像图像”之后,还包括:After "performing image synthesis processing on multiple second images and base images, and setting the synthesized image as the imaging image requested by the image capture", it also includes:
将电致变色组件切换至着色状态,以隐藏第一摄像头和/或第二摄像头。Switch the electrochromic component to the colored state to hide the first camera and/or the second camera.
本申请实施例中,为了提升电子设备的完整性,还第一摄像头和/或第二摄像头之上覆盖电致变色组件,从而在需要时利用电致变色组件对摄像头进行隐藏。In the embodiments of the present application, in order to improve the integrity of the electronic device, the first camera and/or the second camera are covered with an electrochromic component, so that the electrochromic component is used to hide the camera when needed.
以下首先对电致变色组件的工作原理进行简单介绍。The following first briefly introduces the working principle of the electrochromic component.
电致变色是指材料的颜色/透明度在外加电场的作用下发生稳定、可逆的变化的现象。具有电致变色性能的材料可以称为电致变色材料。而本申请实施例中的电致变色组件,就是利用电致变色材料制成。Electrochromism refers to the phenomenon that the color/transparency of a material undergoes a stable and reversible change under the action of an external electric field. Materials with electrochromic properties can be called electrochromic materials. The electrochromic components in the embodiments of this application are made of electrochromic materials.
其中,电致变色组件可以包括层叠设置的两层导电层,以及位于两个导电层之间的变色层、电解质层、离子存储层。比如,电致变色组件的两个透明导电层之上未施加电压(或者说,电压为0V)时,该电致变色组件将呈透明状态,而当施加在其两个透明导电层之间的电压由0V变为3V时,该电致变色组件将呈黑色,当施加在其两个透明导电层之间的电压由3V变为-3V时,该电致变色组件将由黑色变为透明,等等。Wherein, the electrochromic component may include two conductive layers arranged in a stack, and a color changing layer, an electrolyte layer, and an ion storage layer located between the two conductive layers. For example, when no voltage is applied (or the voltage is 0V) on the two transparent conductive layers of the electrochromic component, the electrochromic component will be in a transparent state, and when applied between the two transparent conductive layers When the voltage changes from 0V to 3V, the electrochromic component will appear black, when the voltage applied between its two transparent conductive layers changes from 3V to -3V, the electrochromic component will change from black to transparent, etc. Wait.
这样,利用电致变色组件颜色可调的特性,可以对第一摄像头和/或第二摄像头进行隐藏。In this way, the first camera and/or the second camera can be concealed by using the color-adjustable feature of the electrochromic component.
本申请实施例中,电子设备可以在启动拍摄类应用的同时,将覆盖于第一摄像头和/或第二摄像头之上的电致变色组件切换至透明状态,使得第一摄像头和第二摄像头能够对待拍摄对象进行拍摄。In the embodiments of the present application, the electronic device can switch the electrochromic component covering the first camera and/or the second camera to a transparent state while starting the shooting application, so that the first camera and the second camera can Shoot the subject to be photographed.
而在通过第一摄像头获取到基底图像,以及通过多个第二摄像头拍摄得到多个第二图像,并最终合成得到成像图像且退出启动的拍摄类应用之后,电子设备即将电致变色组件切换至着色状态,从而隐藏第一摄像头和/或第二摄像头。After the substrate image is acquired through the first camera, and multiple second images are acquired through multiple second cameras, and the imaged images are finally synthesized and the activated shooting application is exited, the electronic device switches the electrochromic component to Color state, thereby hiding the first camera and/or the second camera.
比如,电子设备设置有同时覆盖全部第一摄像头和第二摄像头的电致变色组件,且电子设备设置有第一摄像头和第二摄像头的一面的颜色为黑色,则电子设备在未启动拍摄类应用时,保存电致变色组件处于黑色的着色状态,使得第一摄像头和第二摄像头被隐藏;而在启动拍摄类应用时,同步将电致变色组件切换至透明状态,使得电子设备能够通过第一摄像头和第二摄像头进行拍摄;而在最终合成得到成像图像且退出启动的拍摄类应用之后,电子设备将电致变色组件切换至黑色的着色状态,使得第一摄像头和第二摄像头再次被隐藏。For example, if the electronic device is provided with an electrochromic component that covers all the first camera and the second camera at the same time, and the color of the side of the electronic device with the first camera and the second camera is black, the electronic device does not start shooting applications When the electrochromic component is stored in a black colored state, the first camera and the second camera are hidden; and when the shooting application is started, the electrochromic component is switched to the transparent state synchronously, so that the electronic device can pass the first The camera and the second camera shoot; and after the imaged image is finally synthesized and the activated shooting application is exited, the electronic device switches the electrochromic component to a black colored state, so that the first camera and the second camera are hidden again.
请参照图10,图10为本申请实施例提供的设备成像方法的另一种流程示意图,该设备成像方法应用于本申请实施例提供的电子设备,如该电子设备包括两个第一摄像头、环绕其中一个第一摄像头设置的环形轨道、通过移动机构设置在环形轨道上的第二摄像头,使得第二摄像头能够绕环形轨道中的第一摄像头旋转,且第二摄像头的轴线朝向第一摄像头的轴线倾斜并相交,该设备成像方法的流程可以包括:Please refer to FIG. 10, which is a schematic diagram of another flow chart of a device imaging method provided by an embodiment of this application. The device imaging method is applied to an electronic device provided by an embodiment of this application. For example, the electronic device includes two first cameras, The circular track set around one of the first cameras and the second camera set on the circular track by the moving mechanism enable the second camera to rotate around the first camera in the circular track, and the axis of the second camera faces the axis of the first camera The axes are inclined and intersect. The process of the device imaging method may include:
在201中,电子设备接收对待拍摄场景的图像拍摄请求。In 201, the electronic device receives an image shooting request of the scene to be shot.
应当说明的是,在本申请实施例中,电子设备包括不同类型的第一摄像头和第二摄像头,其中,第一摄像头为标准类型的摄像头,或者说视场角为45度左右的摄像头,第二摄像头为长焦类型的摄像头,或者说视场角为40度以内的摄像头,第二摄像头能够相对于第一摄像头旋转,且第二摄像头朝向第一摄像头的轴线并相交。请参照图9,电子设备包括两个第一摄像头,分别为第一摄像头E和第一摄像头F,此外,电子设备还包括环绕第一摄像头E设置的环形轨道,以及通过移动机构设置在环形轨道上的第二摄像头,电子设备可以通过移动机构驱动第二摄像头E绕第一摄像头旋转。It should be noted that in this embodiment of the application, the electronic device includes different types of first cameras and second cameras, where the first camera is a standard type of camera, or a camera with a field of view of about 45 degrees, the first The second camera is a telephoto camera, or a camera with a field of view angle of less than 40 degrees. The second camera can rotate relative to the first camera, and the second camera faces and intersects the axis of the first camera. Referring to FIG. 9, the electronic device includes two first cameras, namely a first camera E and a first camera F. In addition, the electronic device also includes an annular track set around the first camera E, and a moving mechanism is set on the annular track On the second camera, the electronic device can drive the second camera E to rotate around the first camera through a moving mechanism.
本申请实施例中,图像拍摄请求可由用户直接输入,用于指示电子设备对待拍摄场景进行拍摄。其中,待拍摄场景即电子设备在接收到输入的图像拍摄请求时,第一摄像头所对准的对象,包括但不限于人、物以及景等。In the embodiment of the present application, the image shooting request may be directly input by the user to instruct the electronic device to shoot the scene to be shot. Wherein, the scene to be photographed is the object that the first camera is aimed at when the electronic device receives the input image photographing request, including but not limited to people, objects, and scenery.
比如,用户在操作电子设备启动拍摄类应用(比如电子设备的系统应用“相机”),并通过移动电子设备,使得电子设备的第一摄像头以及第二摄像头对准待拍摄场景之后,可以通过点击“相机”预览界面提供的“拍照”按键(为虚拟按键),向电子设备输入图像拍摄请求,如图3所示。For example, after the user operates the electronic device to start a shooting application (such as the system application "camera" of the electronic device), and moves the electronic device so that the first camera and the second camera of the electronic device are aligned with the scene to be shot, they can click The "photograph" button (virtual button) provided by the "camera" preview interface inputs an image shooting request to the electronic device, as shown in Figure 3.
又比如,用户在操作电子设备启动拍摄类应用,并通过移动电子设备,使得电子设备的第一摄像头以及第二摄像头对准待拍摄场景之后,可以说出语音指令“拍照”,向电子设备输入图像拍摄请求。For another example, after the user operates the electronic device to start a shooting application, and moves the electronic device so that the first camera and the second camera of the electronic device are aimed at the scene to be photographed, the user can speak the voice command "photograph" and input to the electronic device Image capture request.
在202中,电子设备根据接收到的图像拍摄请求,通过两个第一摄像头对待拍摄对象进行拍摄,得到两个第一图像。In 202, the electronic device photographs the object to be photographed through the two first cameras according to the received image photographing request to obtain two first images.
电子设备在接收到图像拍摄请求之后,即根据接收到的图像拍摄请求,按照相同的拍摄参数通过两个第一摄像头对待拍摄场景进行拍摄,得到图像内容相同的两个第一图像。After the electronic device receives the image shooting request, that is, according to the received image shooting request, the scene to be shot is captured by the two first cameras according to the same shooting parameters to obtain two first images with the same image content.
在203中,电子设备对两个第一图像进行图像合成处理,将合成得到的图像设为基底图像。In 203, the electronic device performs image synthesis processing on the two first images, and sets the synthesized image as a base image.
其中,电子设备在对拍摄的的两个第一图像进行图像合成处理时,首先将拍摄得到的两个第一图像对齐,再计算拍摄得到的两个第一图像重叠的各像素点的平均像素值,最后根据计算得到的各平均像素值得到拍摄得到的两个第一图像的合成图像,将该合成图像设为基底图像。Wherein, when the electronic device performs image synthesis processing on the two captured first images, it first aligns the two captured first images, and then calculates the average pixel of each pixel overlapping the captured two first images Finally, the composite image of the two first images obtained by shooting is obtained according to the calculated average pixel values, and the composite image is set as the base image.
在204中,电子设备控制第二摄像头相对于环形轨道中的第一摄像头旋转,并在旋转过程中的四个预设拍摄位置通过第二摄像头对待拍摄场景进行拍摄,得到四个第二图像,其中,第二摄像头在各预设拍摄位置时的拍摄区域与环形轨道中的第一摄像头拍摄区域的不同边缘部分重叠。In 204, the electronic device controls the second camera to rotate relative to the first camera in the circular track, and uses the second camera to shoot the scene to be shot at the four preset shooting positions during the rotation to obtain four second images. Wherein, the shooting area of the second camera at each preset shooting position overlaps with different edges of the shooting area of the first camera in the circular track.
请参照图9,在环形轨道上设置有四个预设拍摄位置,分别为预设拍摄位置A、预设拍摄位置B、预设拍摄位置C以及预设拍摄位置D,由于第二摄像头的轴线与第一摄像头的轴线相交,使得第二摄像头在预设拍摄位置C的拍摄区域a对应第一摄像头的拍摄区域的左上角,第二摄像头在预设拍摄位置D的拍摄区域b对应第一摄像头的拍摄区域的右上角,第二摄像头在预设拍摄位置B的拍摄区域c对应第一摄像头的拍摄区域的左下角,第二摄像头在预设拍摄位置A的拍摄区域d对应第一摄像头的拍摄区域的右下角,由此,使得第二摄像头在各预设拍摄位置时的拍摄区域与第一摄像头拍摄区域的不同边缘部分重叠。Referring to Figure 9, there are four preset shooting positions on the circular track, namely the preset shooting position A, the preset shooting position B, the preset shooting position C, and the preset shooting position D. Due to the axis of the second camera Intersect the axis of the first camera so that the shooting area a of the second camera at the preset shooting position C corresponds to the upper left corner of the shooting area of the first camera, and the shooting area b of the second camera at the preset shooting position D corresponds to the first camera The shooting area c of the second camera at the preset shooting position B corresponds to the lower left corner of the shooting area of the first camera, and the shooting area d of the second camera at the preset shooting position A corresponds to the shooting of the first camera The lower right corner of the area, so that the shooting area of the second camera at each preset shooting position overlaps with different edges of the shooting area of the first camera.
本申请实施例中,电子设备除了通过第一摄像头对待拍摄场景进行拍摄得到基底图像之外,还通过第二摄像头对待拍摄场景拍摄。其中,电子设备控制第二摄像头相对于环形轨道中的第一摄像头旋转,并在旋转过程中的四个预设拍摄位置通过第二摄像头对待拍摄场景进行拍摄,得到四个第二图像。In the embodiment of the present application, the electronic device not only uses the first camera to capture the scene to be shot to obtain the base image, but also uses the second camera to capture the scene to be shot. Wherein, the electronic device controls the second camera to rotate relative to the first camera in the circular track, and uses the second camera to shoot the scene to be shot at four preset shooting positions during the rotation to obtain four second images.
比如,请继续参照图9,电子设备通过第二摄像头拍摄得到四个第二图像,其中,第二摄像头在预设拍摄位置C拍摄的第二图像H的图像内容对应基底图像左上角的图像内容,第二摄像头在预设拍摄位置D拍摄的第二图像I的图像内容对应基底图像右上角的图像内容,第二摄像头在预设拍摄位置A拍摄的第二图像K的图像内容对应基底图像右下角的图像内容,第二摄像头在预设拍摄位置B的图像内容对应基底图像左下角的图像内容,这样,不同的第二图像的图像内容即覆盖了基底图像中的不同边缘 区域的图像内容,且同时覆盖了基底图像中心区域的图像内容。For example, please continue to refer to FIG. 9, the electronic device obtains four second images captured by the second camera, where the image content of the second image H captured by the second camera at the preset shooting position C corresponds to the image content in the upper left corner of the base image The image content of the second image I captured by the second camera at the preset shooting position D corresponds to the image content in the upper right corner of the base image, and the image content of the second image K captured by the second camera at the preset shooting position A corresponds to the right of the base image The image content in the lower corner, the image content of the second camera at the preset shooting position B corresponds to the image content in the lower left corner of the base image, so that the image content of different second images covers the image content of different edge areas in the base image. It also covers the image content in the central area of the base image.
在205中,电子设备对四个第二图像与基底图像进行图像合成处理,将合成得到的图像设为图像拍摄请求的成像图像。In 205, the electronic device performs image synthesis processing on the four second images and the base image, and sets the synthesized image as the imaged image requested for image shooting.
本申请实施例中,电子设备在通过第一摄像头拍摄得到基底图像,以及通过四个第二摄像头拍摄得到四个第二图像之后,将拍摄得到的四个第二图像与基底图像对齐。In the embodiment of the present application, the electronic device aligns the four second images obtained by shooting with the substrate image after obtaining the base image through the first camera and four second images through the four second cameras.
基于对齐后的基底图像和第二图像,对于基底图像和第二图像的重叠部分,计算重叠的各像素点的平均像素值,比如,请参照图7,各第二图像与基底图像同时重叠的重叠区域位于基底图像的中间区域,这样,对于图7所示的重叠区域,某位置的像素点在五个图像(即基底图像和四个第二图像)中的像素值分别为0.8、0.9、1.1、1.2和1,则可计算得到该位置的像素点的平均像素值为1。Based on the aligned base image and the second image, for the overlapping part of the base image and the second image, calculate the average pixel value of each overlapped pixel. For example, please refer to Figure 7, where each second image overlaps the base image at the same time The overlapping area is located in the middle area of the base image. Thus, for the overlapping area shown in Figure 7, the pixel values of a certain position of the pixel in the five images (ie the base image and the four second images) are 0.8, 0.9, 1.1, 1.2 and 1, then the average pixel value of the pixel at this position can be calculated to be 1.
之后,根据基底图像中对应的各位置像素点所得到的平均像素值得到合成图像,比如,可以将基底图像的各像素点的像素值相应调整为计算得到的各平均像素值,从而得到合成图像;又比如,还可以根据计算得到各平均像素值,生成一幅新的图像,即合成图像。After that, the composite image is obtained according to the average pixel value of each pixel in the corresponding position in the base image. For example, the pixel value of each pixel of the base image can be adjusted to the calculated average pixel value to obtain the composite image. ; For another example, you can also generate a new image based on the calculated average pixel values, that is, a composite image.
本申请实施例中,电子设备在对拍摄得到的四个第二图像与基底图像进行图像合成处理之后,将合成得到的合成图像设为图像拍摄请求的成像图像,至此,电子设备即完成了对应接收到的图像拍摄请求一次完整拍摄操作。In the embodiment of the present application, after the electronic device performs image synthesis processing on the four second images obtained by shooting and the base image, the synthesized image is set as the imaging image requested by the image shooting. So far, the electronic device has completed the corresponding The received image shooting requests a complete shooting operation.
比如,请继续参照图7,图7由此示出了基底图像到成像图像的清晰度变化,其中,X轴表示由图像边缘区域到中心区域(对应于待拍摄场景的目标对焦区域),再由中心区域到边缘区域的位置变化,Y轴表示跟随X轴变化的清晰度,可以看出,在基底图像中,中心区域的清晰度最高,随着中心区域向边缘区域的扩散,清晰度逐渐降低,且变化较为剧烈,而在成像图像中,中心区域的清晰度最高,且相较于基底图像,成像图像的边缘区域的清晰度被整体提高,随着中心区域向边缘区域的扩散,虽然清晰度逐渐降低,且变化更为平滑,使得成像图像的整体图像质量得以提高。For example, please continue to refer to Figure 7, which shows the definition change from the base image to the imaging image, where the X axis represents the image edge area to the center area (corresponding to the target focus area of the scene to be shot), and then The position changes from the center area to the edge area, and the Y axis represents the sharpness following the change of the X axis. It can be seen that in the base image, the sharpness of the center area is the highest. As the center area spreads to the edge area, the sharpness gradually In the imaged image, the sharpness of the central area is the highest, and compared with the base image, the sharpness of the edge area of the imaged image is improved as a whole. As the central area spreads to the edge area, although The sharpness gradually decreases and the changes are smoother, which improves the overall image quality of the imaged image.
本申请实施例还提供一种设备成像装置。请参照图11,图11为本申请实施例提供的设备成像装置的结构示意图。其中该设备成像装置应用于电子设备,该电子设备包括第一摄像头和第二摄像头,第二摄像头能够绕第一摄像头旋转,该设备成像装置包括请求接收模块301、基底获取模块302、辅图获取模块303以及图像成像模块304,如下:The embodiment of the present application also provides an equipment imaging device. Please refer to FIG. 11, which is a schematic structural diagram of a device imaging device provided by an embodiment of the application. The equipment imaging device is applied to electronic equipment. The electronic equipment includes a first camera and a second camera. The second camera can rotate around the first camera. The equipment imaging device includes a request receiving module 301, a substrate acquisition module 302, and auxiliary image acquisition. The module 303 and the image imaging module 304 are as follows:
请求接收模块301,用于接收对待拍摄场景的图像拍摄请求。The request receiving module 301 is configured to receive an image shooting request of the scene to be shot.
基底获取模块302,用于根据图像拍摄请求,通过第一摄像头对待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像。The base acquisition module 302 is configured to photograph the scene to be photographed through the first camera according to the image photographing request, and set the photographed first image as the base image.
辅图获取模块303,用于控制第二摄像头相对于第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过第二摄像头对待拍摄场景进行拍摄,得到多个第二图像,其中,第二摄像头在各预设拍摄位置时的拍摄区域与第一摄像头拍摄区域的不同部分重叠。The auxiliary image acquisition module 303 is used to control the rotation of the second camera relative to the first camera, and use the second camera to shoot the scene to be shot at multiple preset shooting positions during the rotation to obtain multiple second images, where: The shooting area of the second camera at each preset shooting position overlaps with different parts of the shooting area of the first camera.
图像成像模块304用于对多个第二图像与基底图像进行图像合成处理,将合成得到的图像设为图像拍摄请求的成像图像。The image imaging module 304 is configured to perform image synthesis processing on a plurality of second images and a base image, and set the synthesized image as the imaging image requested by the image shooting.
在一实施例中,电子设备还包括设置在各预设拍摄位置的限位组件,在控制第二摄像头相对于第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过第二摄像头对待拍摄场景进行拍摄时,辅图获取模块303用于:In an embodiment, the electronic device further includes a limit component set at each preset shooting position, and the second camera is controlled to rotate relative to the first camera, and a plurality of preset shooting positions pass through the second camera during the rotation process. When shooting the scene to be shot, the auxiliary image acquisition module 303 is used to:
当控制第二摄像头旋转至当前预设拍摄位置时,停止旋转第二摄像头,并通过当前预设拍摄位置所设置的当前限位组件固定第二摄像头;When controlling the second camera to rotate to the current preset shooting position, stop rotating the second camera, and fix the second camera through the current limit component set at the current preset shooting position;
通过固定的第二摄像头对待拍摄场景进行拍摄,并在拍摄得到第二图像后停止通过当前限位组件固定第二摄像头,以继续旋转第二摄像头至其它预设拍摄位置拍摄。The scene to be photographed is captured by the fixed second camera, and after the second image is captured, the second camera is stopped to be fixed by the current limit component, so as to continue to rotate the second camera to another preset shooting position to shoot.
在一实施例中,电子设备还包括角度调整组件,在通过固定的第二摄像头对待拍摄场景进行拍摄之前,辅图获取模块303还用于:In an embodiment, the electronic device further includes an angle adjustment component. Before shooting the scene to be shot through the fixed second camera, the auxiliary image acquisition module 303 is further configured to:
获取第一摄像头拍摄时的目标对焦区域;Acquiring the target focus area when the first camera is shooting;
在通过固定的第二摄像头对待拍摄场景进行拍摄时,辅图获取模块303用于:When shooting the scene to be shot by the fixed second camera, the auxiliary image acquisition module 303 is used to:
通过角度调整组件调整固定的第二摄像头的拍摄角度,使得目标对焦区域位于第二摄像头在各预设拍摄位置时的拍摄区域的共同重叠区域之内;以及Adjust the shooting angle of the fixed second camera by the angle adjustment component, so that the target focus area is within the common overlapping area of the shooting area when the second camera is at each preset shooting position; and
通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄。The fixed second camera focuses and shoots the scene to be shot based on the target focus area.
在一实施例中,在通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄之前,辅图获取模块303还用于:In an embodiment, before focusing and shooting the scene to be shot based on the target focus area by the fixed second camera, the auxiliary image acquisition module 303 is further configured to:
检测当前是否处于抖动状态;Check whether it is currently in a jitter state;
若当前不处于抖动状态,则通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄。If it is not currently in a shaking state, the fixed second camera is used to focus and shoot the scene to be shot based on the target focus area.
在一实施例中,在通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄之前,辅图获取模块303还用于:In an embodiment, before focusing and shooting the scene to be shot based on the target focus area by the fixed second camera, the auxiliary image acquisition module 303 is further configured to:
若当前不处于抖动状态,则检测待拍摄场景是否处于静止状态;If it is not currently in a shaking state, detect whether the scene to be shot is in a static state;
若待拍摄场景处于静止状态,则通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄。If the scene to be shot is in a static state, the fixed second camera is used to focus and shoot the scene to be shot based on the target focus area.
在一实施例中,电子设备包括两个第一摄像头,在通过第一摄像头对待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像时,基底获取模块302用于:In an embodiment, the electronic device includes two first cameras. When the scene to be photographed is captured by the first camera and the first image obtained by shooting is set as the base image, the base acquisition module 302 is used to:
通过两个第一摄像头对待拍摄场景进行拍摄,得到至少两个第一图像;Shooting the scene to be shot by using two first cameras to obtain at least two first images;
对至少两个第一图像进行图像合成处理,将合成得到的图像设为基底图像。Perform image synthesis processing on at least two first images, and set the synthesized image as a base image.
在一实施例中,电子设备还包括覆盖第一摄像头和/或第二摄像头的电致变色组件,设备成像装置还包括电致变色模块,用于在接收对待拍摄场景的图像拍摄请求之前,切换电致变色组件至透明状态;以及In an embodiment, the electronic device further includes an electrochromic component covering the first camera and/or the second camera, and the device imaging device further includes an electrochromic module for switching before receiving an image shooting request of the scene to be shot The electrochromic component becomes transparent; and
在图像成像模块304对多个第二图像与基底图像进行图像合成处理,将合成得到的图像设为图像拍摄请求的成像图像之后,将电致变色组件切换至着色状态,以隐藏第一摄像头和/或第二摄像头。After the image imaging module 304 performs image synthesis processing on the multiple second images and the base image, and sets the synthesized image as the imaged image requested by the image capture, the electrochromic component is switched to the colored state to hide the first camera and the base image. / Or the second camera.
应当说明的是,本申请实施例提供的设备成像装置与上文实施例中的设备成像方法属于同一构思,在设备成像装置上可以运行设备成像方法实施例中提供的任一方法,其具体实现过程详见设备成像方法实施例,此处不再赘述。It should be noted that the device imaging device provided in the embodiment of the application belongs to the same concept as the device imaging method in the above embodiment. Any method provided in the device imaging method embodiment can be run on the device imaging device, and its specific implementation For details of the process, refer to the embodiment of the device imaging method, which will not be repeated here.
本申请实施例提供一种计算机可读的存储介质,其上存储有计算机程序,当其存储的计算机程序在计算机上执行时,使得计算机执行如本申请实施例提供的设备成像方法中的步骤。其中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM,)或者随机存取器(Random Access Memory,RAM)等。The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the stored computer program is executed on a computer, the computer is caused to execute the steps in the device imaging method provided in the embodiment of the present application. Among them, the storage medium may be a magnetic disk, an optical disc, a read only memory (Read Only Memory, ROM,) or a random access device (Random Access Memory, RAM), etc.
本申请实施例还提供一种电子设备,请参照图12,电子设备包括处理器401、存储器402、第一类型的第一摄像头403以及第二类型的第二摄像头404,且第二摄像头404能够绕第一摄像头旋转403。其中,处理器401与存储器402、第一摄像头403以及第二摄像头404电性连接。An embodiment of the present application also provides an electronic device. Please refer to FIG. 12. The electronic device includes a processor 401, a memory 402, a first type of first camera 403, and a second type of second camera 404, and the second camera 404 can Rotate 403 around the first camera. The processor 401 is electrically connected to the memory 402, the first camera 403, and the second camera 404.
处理器401是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器402内的计算机程序,以及调用存储在存储器402内的数据,执行电子设备的各种功能并处理数据。The processor 401 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device. It executes the electronic device by running or loading the computer program stored in the memory 402 and calling the data stored in the memory 402. Various functions and process data.
存储器402可用于存储软件程序以及模块,处理器401通过运行存储在存储器402的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器402可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器402可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器402还可以包括存储器控制器,以提供处理器401对存储器402的访问。The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the computer programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area. The storage program area may store an operating system, a computer program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of electronic equipment, etc. In addition, the memory 402 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, or other volatile solid-state storage devices. Correspondingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
第一摄像头403为标准类型的摄像头,或者说视场角为45度左右的摄像头。The first camera 403 is a standard type of camera, or a camera with a field of view of about 45 degrees.
第二摄像头404为长焦类型的摄像头,或者说视场角为40度以内的摄像头。The second camera 404 is a telephoto camera, or a camera with a field of view angle of less than 40 degrees.
在本申请实施例中,电子设备中的处理器401会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器402中,并由处理器401运行存储在存储器402中的计算机程序,从而实现各种功能,如下:In the embodiment of the present application, the processor 401 in the electronic device loads the instructions corresponding to the process of one or more computer programs into the memory 402 according to the following steps, and the processor 401 runs and stores them in the memory 402 The computer program to achieve various functions, as follows:
接收对待拍摄场景的图像拍摄请求;Receive an image shooting request of the scene to be shot;
根据图像拍摄请求,通过第一摄像头对待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像;According to the image shooting request, the scene to be shot is shot through the first camera, and the first image obtained by shooting is set as the base image;
控制第二摄像头相对于第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过第二摄像头对待拍摄场景进行拍摄,得到多个第二图像,其中,第二摄像头在各预设拍摄位置时的拍摄区域与第一摄像头拍摄区域的不同部分重叠;Control the second camera to rotate relative to the first camera, and use the second camera to shoot the scene to be shot at multiple preset shooting positions during the rotation to obtain multiple second images, where the second camera shoots at each preset The shooting area at the position overlaps with different parts of the shooting area of the first camera;
对多个第二图像与基底图像进行图像合成处理,将合成得到的图像设为图像拍摄请求的成像图像。Image synthesis processing is performed on the plurality of second images and the base image, and the synthesized image is set as the imaged image requested by the image shooting.
请参照图13,图13为本申请实施例提供的电子设备的另一结构示意图,与图12所示电子设备的区别在于,电子设备还包括输入单元405和输出单元406等组件。Please refer to FIG. 13. FIG. 13 is another schematic structural diagram of the electronic device provided by an embodiment of the application. The difference from the electronic device shown in FIG. 12 is that the electronic device further includes components such as an input unit 405 and an output unit 406.
其中,输入单元405可用于接收输入的数字、字符信息或用户特征信息(比如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入等。The input unit 405 may be used to receive inputted numbers, character information or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
输出单元406可用于显示由用户输入的信息或提供给用户的信息,如屏幕。The output unit 406 may be used to display information input by the user or information provided to the user, such as a screen.
在本申请实施例中,电子设备中的处理器401会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器402中,并由处理器401运行存储在存储器402中的计算机程序,从而实现各种功能,如下:In the embodiment of the present application, the processor 401 in the electronic device loads the instructions corresponding to the process of one or more computer programs into the memory 402 according to the following steps, and the processor 401 runs and stores them in the memory 402 The computer program to achieve various functions, as follows:
接收对待拍摄场景的图像拍摄请求;Receive an image shooting request of the scene to be shot;
根据图像拍摄请求,通过第一摄像头对待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像;According to the image shooting request, the scene to be shot is shot through the first camera, and the first image obtained by shooting is set as the base image;
控制第二摄像头相对于第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过第二摄像头对待拍摄场景进行拍摄,得到多个第二图像,其中,第二摄像头在各预设拍摄位置时的拍摄区域与第一摄像头拍摄区域的不同部分重叠;Control the second camera to rotate relative to the first camera, and use the second camera to shoot the scene to be shot at multiple preset shooting positions during the rotation to obtain multiple second images, where the second camera shoots at each preset The shooting area at the position overlaps with different parts of the shooting area of the first camera;
对多个第二图像与基底图像进行图像合成处理,将合成得到的图像设为图像拍摄请求的成像图像。Image synthesis processing is performed on the plurality of second images and the base image, and the synthesized image is set as the imaged image requested by the image shooting.
在一实施例中,电子设备还包括设置在各预设拍摄位置的限位组件,在控制第二摄像头相对于第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过第二摄像头对待拍摄场景进行拍摄时,处理器401执行:In an embodiment, the electronic device further includes a limit component set at each preset shooting position, and the second camera is controlled to rotate relative to the first camera, and a plurality of preset shooting positions pass through the second camera during the rotation process. When shooting the scene to be shot, the processor 401 executes:
当控制第二摄像头旋转至当前预设拍摄位置时,停止旋转第二摄像头,并通过当前预设拍摄位置所设置的当前限位组件固定第二摄像头;When controlling the second camera to rotate to the current preset shooting position, stop rotating the second camera, and fix the second camera through the current limit component set at the current preset shooting position;
通过固定的第二摄像头对待拍摄场景进行拍摄,并在拍摄得到第二图像后停止通过当前限位组件固定第二摄像头,以继续旋转第二摄像头至其它预设拍摄位置拍摄。The scene to be photographed is captured by the fixed second camera, and after the second image is captured, the second camera is stopped to be fixed by the current limit component, so as to continue to rotate the second camera to another preset shooting position to shoot.
在一实施例中,电子设备还包括角度调整组件,在通过固定的第二摄像头对待拍摄场景进行拍摄之前,处理器401还执行:In an embodiment, the electronic device further includes an angle adjustment component. Before shooting the scene to be shot through the fixed second camera, the processor 401 further executes:
获取第一摄像头拍摄时的目标对焦区域;Acquiring the target focus area when the first camera is shooting;
在通过固定的第二摄像头对待拍摄场景进行拍摄时,处理器401可以执行:When shooting the scene to be shot through the fixed second camera, the processor 401 may execute:
通过角度调整组件调整固定的第二摄像头的拍摄角度,使得目标对焦区域位于第二摄像头在各预设拍摄位置时的拍摄区域的共同重叠区域之内;以及Adjust the shooting angle of the fixed second camera by the angle adjustment component, so that the target focus area is within the common overlapping area of the shooting area when the second camera is at each preset shooting position; and
通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄。The fixed second camera focuses and shoots the scene to be shot based on the target focus area.
在一实施例中,在通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄之前,处理器401执行:In an embodiment, before focusing and shooting the scene to be shot based on the target focus area through the fixed second camera, the processor 401 executes:
检测当前是否处于抖动状态;Check whether it is currently in a jitter state;
若当前不处于抖动状态,则通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄。If it is not currently in a shaking state, the fixed second camera is used to focus and shoot the scene to be shot based on the target focus area.
在一实施例中,在通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄之前,处理器401还执行:In an embodiment, before the fixed second camera is used to focus and shoot the scene to be shot based on the target focus area, the processor 401 further executes:
若当前不处于抖动状态,则检测待拍摄场景是否处于静止状态;If it is not currently in a shaking state, detect whether the scene to be shot is in a static state;
若待拍摄场景处于静止状态,则通过固定的第二摄像头基于目标对焦区域对待拍摄场景对焦拍摄。If the scene to be shot is in a static state, the fixed second camera is used to focus and shoot the scene to be shot based on the target focus area.
在一实施例中,电子设备包括两个第一摄像头,在通过第一摄像头对待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像时,处理器401还执行:In an embodiment, the electronic device includes two first cameras. When the scene to be photographed is captured by the first camera and the first image obtained is set as the base image, the processor 401 further executes:
通过两个第一摄像头对待拍摄场景进行拍摄,得到至少两个第一图像;Shooting the scene to be shot by using two first cameras to obtain at least two first images;
对至少两个第一图像进行图像合成处理,将合成得到的图像设为基底图像。Perform image synthesis processing on at least two first images, and set the synthesized image as a base image.
在一实施例中,电子设备还包括覆盖第一摄像头和/或第二摄像头的电致变色组件,在接收对待拍摄场景的图像拍摄请求之前,处理器401还执行:In an embodiment, the electronic device further includes an electrochromic component covering the first camera and/or the second camera, and before receiving an image shooting request of the scene to be shot, the processor 401 further executes:
切换电致变色组件至透明状态;Switch the electrochromic component to a transparent state;
在对多个第二图像与基底图像进行图像合成处理,将合成得到的图像设为图像拍摄请求的成像图像之后,处理器401还执行:After performing image synthesis processing on the multiple second images and the base image, and setting the synthesized image as the imaging image requested by the image shooting, the processor 401 further executes:
将电致变色组件切换至着色状态,以隐藏第一摄像头和/或第二摄像头。Switch the electrochromic component to the colored state to hide the first camera and/or the second camera.
应当说明的是,本申请实施例提供的电子设备与上文实施例中的设备成像方法属于同一构思,在电子设备上可以运行设备成像方法实施例中提供的任一方法,其具体实现过程详见特征提取方法实施例,此处不再赘述。It should be noted that the electronic device provided in the embodiments of this application belongs to the same concept as the device imaging method in the above embodiments. Any method provided in the device imaging method embodiment can be run on the electronic device. The specific implementation process is detailed. See the embodiment of the feature extraction method, which will not be repeated here.
需要说明的是,对本申请实施例的设备成像方法而言,本领域普通测试人员可以理解实现本申请实施例的设备成像方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如设备成像方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。It should be noted that for the device imaging method of the embodiment of the present application, ordinary testers in the field can understand that all or part of the process of implementing the device imaging method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program. The computer program may be stored in a computer readable storage medium, such as stored in the memory of an electronic device, and executed by at least one processor in the electronic device. The execution process may include such as device imaging method. The flow of the embodiment. Wherein, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
对本申请实施例的设备成像装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the device imaging device of the embodiment of the present application, its functional modules may be integrated into one processing chip, or each module may exist alone physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, etc. .
以上对本申请实施例所提供的一种设备成像方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The device imaging method, device, storage medium, and electronic equipment provided by the embodiments of the application are described in detail above. Specific examples are used in this article to illustrate the principles and implementation of the application. The description of the above embodiments is only It is used to help understand the methods and core ideas of this application; at the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation and the scope of application. In summary, this specification The content should not be construed as a limitation on this application.

Claims (20)

  1. 一种设备成像方法,应用于电子设备,其中,所述电子设备包括第一摄像头和第二摄像头,所述第二摄像头能够相对于所述第一摄像头旋转,所述设备成像方法包括:A device imaging method applied to an electronic device, wherein the electronic device includes a first camera and a second camera, the second camera can rotate relative to the first camera, and the device imaging method includes:
    接收对待拍摄场景的图像拍摄请求;Receive an image shooting request of the scene to be shot;
    根据所述图像拍摄请求,通过所述第一摄像头对所述待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像;Photographing the scene to be photographed through the first camera according to the image photographing request, and setting the photographed first image as a base image;
    控制所述第二摄像头相对于所述第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过所述第二摄像头对所述待拍摄场景进行拍摄,得到多个第二图像,其中,所述第二摄像头在各所述预设拍摄位置时的拍摄区域与所述第一摄像头拍摄区域的不同部分重叠;Control the second camera to rotate relative to the first camera, and use the second camera to shoot the scene to be shot at multiple preset shooting positions during the rotation to obtain multiple second images, where , The shooting area of the second camera at each of the preset shooting positions overlaps with a different part of the shooting area of the first camera;
    对所述多个第二图像与所述基底图像进行图像合成处理,将合成得到的图像设为所述图像拍摄请求的成像图像。Image synthesis processing is performed on the plurality of second images and the base image, and the synthesized image is set as the imaged image of the image shooting request.
  2. 根据权利要求1所述的设备成像方法,其中,所述电子设备还包括设置在各所述预设拍摄位置的限位组件,所述控制所述第二摄像头相对于所述第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过所述第二摄像头对所述待拍摄场景进行拍摄,包括:The device imaging method according to claim 1, wherein the electronic device further comprises a limit component set at each of the preset shooting positions, and the controlling the second camera to rotate relative to the first camera, And shooting the scene to be shot through the second camera at multiple preset shooting positions during the rotation process, including:
    当控制所述第二摄像头旋转至当前预设拍摄位置时,停止旋转所述第二摄像头,并通过所述当前预设拍摄位置所设置的当前限位组件固定所述第二摄像头;When controlling the second camera to rotate to the current preset shooting position, stop rotating the second camera, and fix the second camera through the current limit component set at the current preset shooting position;
    通过固定的所述第二摄像头对所述待拍摄场景进行拍摄,并在拍摄得到第二图像后停止通过所述当前限位组件固定所述第二摄像头,以继续旋转所述第二摄像头至其它预设拍摄位置拍摄。Use the fixed second camera to shoot the scene to be shot, and after the second image is captured, stop fixing the second camera through the current limit component to continue rotating the second camera to other Shoot at the preset shooting position.
  3. 根据权利要求要求2所述的设备成像方法,其中,所述电子设备还包括角度调整组件,所述通过固定的所述第二摄像头对所述待拍摄场景进行拍摄之前,还包括:The device imaging method according to claim 2, wherein the electronic device further comprises an angle adjustment component, and before the shooting of the scene to be shot by the fixed second camera, the method further comprises:
    获取所述第一摄像头拍摄时的目标对焦区域;Acquiring a target focus area during shooting by the first camera;
    所述通过固定的所述第二摄像头对所述待拍摄场景进行拍摄,包括:The photographing the scene to be photographed through the fixed second camera includes:
    通过所述角度调整组件调整固定的所述第二摄像头的拍摄角度,使得所述目标对焦区域位于所述第二摄像头在各预设拍摄位置时的拍摄区域的共同重叠区域之内;Adjusting the shooting angle of the fixed second camera by the angle adjustment component, so that the target focus area is located within the common overlapping area of the shooting area when the second camera is at each preset shooting position;
    通过固定的所述第二摄像头基于所述目标对焦区域对所述待拍摄场景对焦拍摄。Focusing and shooting the scene to be shot based on the target focus area through the fixed second camera.
  4. 根据权利要求3所述的设备成像方法,其中,所述通过固定的所述第二摄像头基于所述目标对焦区域对所述待拍摄场景对焦拍摄之前,还包括:4. The device imaging method according to claim 3, wherein before the fixed second camera focuses and shoots the scene to be shot based on the target focus area, the method further comprises:
    检测当前是否处于抖动状态;Check whether it is currently in a jitter state;
    若当前不处于抖动状态,则通过固定的所述第二摄像头基于所述目标对焦区域对所述待拍摄场景对焦拍摄。If it is not currently in a shaking state, the fixed second camera is used to focus and shoot the scene to be shot based on the target focus area.
  5. 根据权利要求4所述的设备成像方法,其中,所述通过固定的所述第二摄像头基于所述目标对焦区域对所述待拍摄场景对焦拍摄之前,还包括:4. The device imaging method according to claim 4, wherein before the fixed second camera focuses and shoots the scene to be shot based on the target focus area, the method further comprises:
    若当前不处于抖动状态,则检测所述待拍摄场景是否处于静止状态;If it is not currently in a shaking state, detecting whether the scene to be photographed is in a static state;
    若所述待拍摄场景处于静止状态,则通过固定的所述第二摄像头基于所述目标对焦区域对所述待拍 摄场景对焦拍摄。If the scene to be photographed is in a static state, the fixed second camera is used to focus and photograph the scene to be photographed based on the target focus area.
  6. 根据权利要求1所述的设备成像方法,其中,所述电子设备包括两个第一摄像头,所述通过所述第一摄像头对所述待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像,包括:The device imaging method according to claim 1, wherein the electronic device includes two first cameras, the scene to be shot is photographed by the first cameras, and the first image obtained by the shooting is set as Base image, including:
    通过所述两个第一摄像头对所述待拍摄场景进行拍摄,得到至少两个第一图像;Shooting the scene to be shot by using the two first cameras to obtain at least two first images;
    对所述至少两个第一图像进行图像合成处理,将合成得到的图像设为所述基底图像。Perform image synthesis processing on the at least two first images, and set the synthesized image as the base image.
  7. 根据权利要求1所述的设备成像方法,其中,所述通过所述第一摄像头对所述待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像,包括:The device imaging method according to claim 1, wherein the photographing the scene to be photographed by the first camera and setting the photographed first image as a base image comprises:
    通过所述第一摄像头基于所述目标对焦区域对所述待拍摄场景连续对焦拍摄,得到多个第一图像;Using the first camera to continuously focus and shoot the scene to be shot based on the target focus area to obtain multiple first images;
    对所述多个第一图像进行图像合成处理,将合成得到的图像设为所述基底图像。Image synthesis processing is performed on the plurality of first images, and the synthesized image is set as the base image.
  8. 根据权利要求7所述的设备成像方法,其中,所述通过所述第一摄像头基于所述目标对焦区域对所述待拍摄场景连续对焦拍摄,得到多个第一图像之后,还包括:7. The device imaging method according to claim 7, wherein the step of continuously focusing and shooting the scene to be shot based on the target focus area through the first camera, and obtaining multiple first images, further comprising:
    从所述多个第一图像中选取清晰度最高的第一图像作为所述基底图像。The first image with the highest definition is selected from the plurality of first images as the base image.
  9. 根据权利要求1所述的设备成像方法,其中,所述电子设备还包括覆盖所述第一摄像头和/或所述第二摄像头的电致变色组件,所述接收对待拍摄场景的图像拍摄请求之前,还包括:The device imaging method according to claim 1, wherein the electronic device further comprises an electrochromic component covering the first camera and/or the second camera, and before the receiving an image shooting request of the scene to be shot ,Also includes:
    切换所述电致变色组件至透明状态;Switching the electrochromic component to a transparent state;
    所述对所述多个第二图像与所述基底图像进行图像合成处理,将合成得到的图像设为所述图像拍摄请求的成像图像之后,还包括:After performing image synthesis processing on the plurality of second images and the base image, and setting the synthesized image as the imaging image of the image shooting request, the method further includes:
    将所述电致变色组件切换至着色状态,以隐藏所述第一摄像头和/或所述第二摄像头。The electrochromic component is switched to a colored state to hide the first camera and/or the second camera.
  10. 一种设备成像装置,应用于电子设备,其中,所述电子设备包括第一摄像头和第二摄像头,所述第二摄像头能够相对于所述第一摄像头旋转,所述设备成像装置包括:An equipment imaging device applied to electronic equipment, wherein the electronic equipment includes a first camera and a second camera, the second camera can rotate relative to the first camera, and the equipment imaging device includes:
    请求接收模块,用于接收对待拍摄场景的图像拍摄请求;The request receiving module is used to receive an image shooting request of the scene to be shot;
    基底获取模块,用于根据所述图像拍摄请求,通过所述第一摄像头对所述待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像;A base acquisition module, configured to photograph the scene to be photographed through the first camera according to the image photographing request, and set the photographed first image as a base image;
    辅图获取模块,用于控制所述第二摄像头相对于所述第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过所述第二摄像头对所述待拍摄场景进行拍摄,得到多个第二图像,其中,所述第二摄像头在各所述预设拍摄位置时的拍摄区域与所述第一摄像头拍摄区域的不同部分重叠;The auxiliary image acquisition module is used to control the rotation of the second camera relative to the first camera, and shoot the scene to be shot through the second camera at multiple preset shooting positions during the rotation process to obtain A plurality of second images, wherein the shooting area of the second camera at each of the preset shooting positions overlaps with different parts of the shooting area of the first camera;
    图像成像模块,用于对所述多个第二图像与所述基底图像进行图像合成处理,将合成得到的图像设为所述图像拍摄请求的成像图像。The image imaging module is configured to perform image synthesis processing on the multiple second images and the base image, and set the synthesized image as the imaging image requested by the image shooting.
  11. 一种存储介质,其上存储有计算机程序,适用于包括第一摄像头和第二摄像头的计算机,其中,所述第二摄像头能够相对于所述第一摄像头旋转,当所述计算机程序在计算机上运行时,使得所述计算机执行:A storage medium on which a computer program is stored, and is suitable for a computer including a first camera and a second camera, wherein the second camera can rotate relative to the first camera, and when the computer program is on the computer When running, make the computer execute:
    接收对待拍摄场景的图像拍摄请求;Receive an image shooting request of the scene to be shot;
    根据所述图像拍摄请求,通过所述第一摄像头对所述待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像;Photographing the scene to be photographed through the first camera according to the image photographing request, and setting the photographed first image as a base image;
    控制所述第二摄像头相对于所述第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过所述第二摄像头对所述待拍摄场景进行拍摄,得到多个第二图像,其中,所述第二摄像头在各所述预设拍摄位置时的拍摄区域与所述第一摄像头拍摄区域的不同部分重叠;Control the second camera to rotate relative to the first camera, and use the second camera to shoot the scene to be shot at multiple preset shooting positions during the rotation to obtain multiple second images, where , The shooting area of the second camera at each of the preset shooting positions overlaps with a different part of the shooting area of the first camera;
    对所述多个第二图像与所述基底图像进行图像合成处理,将合成得到的图像设为所述图像拍摄请求的成像图像。Image synthesis processing is performed on the plurality of second images and the base image, and the synthesized image is set as the imaged image of the image shooting request.
  12. 一种电子设备,包括处理器、存储器、第一摄像头和第二摄像头,所述第二摄像头能够相对于所述第一摄像头旋转,所述存储器储存有计算机程序,其中,所述处理器通过调用所述计算机程序,用于执行:An electronic device includes a processor, a memory, a first camera, and a second camera, the second camera can rotate relative to the first camera, the memory stores a computer program, and the processor calls The computer program is used to execute:
    接收对待拍摄场景的图像拍摄请求;Receive an image shooting request of the scene to be shot;
    根据所述图像拍摄请求,通过所述第一摄像头对所述待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像;Photographing the scene to be photographed through the first camera according to the image photographing request, and setting the photographed first image as a base image;
    控制所述第二摄像头相对于所述第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过所述第二摄像头对所述待拍摄场景进行拍摄,得到多个第二图像,其中,所述第二摄像头在各所述预设拍摄位置时的拍摄区域与所述第一摄像头拍摄区域的不同部分重叠;Control the second camera to rotate relative to the first camera, and use the second camera to shoot the scene to be shot at multiple preset shooting positions during the rotation to obtain multiple second images, where , The shooting area of the second camera at each of the preset shooting positions overlaps with a different part of the shooting area of the first camera;
    对所述多个第二图像与所述基底图像进行图像合成处理,将合成得到的图像设为所述图像拍摄请求的成像图像。Image synthesis processing is performed on the plurality of second images and the base image, and the synthesized image is set as the imaged image of the image shooting request.
  13. 根据权利要求12所述的电子设备,其中,所述电子设备还包括设置在各所述预设拍摄位置的限位组件,在控制所述第二摄像头相对于所述第一摄像头旋转,并在旋转过程中的多个预设拍摄位置通过所述第二摄像头对所述待拍摄场景进行拍摄时,所述处理器用于执行:The electronic device according to claim 12, wherein the electronic device further comprises a limit component set at each of the preset shooting positions, when controlling the rotation of the second camera relative to the first camera, and When multiple preset shooting positions in the rotation process are used to shoot the scene to be shot through the second camera, the processor is configured to execute:
    当控制所述第二摄像头旋转至当前预设拍摄位置时,停止旋转所述第二摄像头,并通过所述当前预设拍摄位置所设置的当前限位组件固定所述第二摄像头;When controlling the second camera to rotate to the current preset shooting position, stop rotating the second camera, and fix the second camera through the current limit component set at the current preset shooting position;
    通过固定的所述第二摄像头对所述待拍摄场景进行拍摄,并在拍摄得到第二图像后停止通过所述当前限位组件固定所述第二摄像头,以继续旋转所述第二摄像头至其它预设拍摄位置拍摄。Use the fixed second camera to shoot the scene to be shot, and after the second image is captured, stop fixing the second camera through the current limit component to continue rotating the second camera to other Shoot at the preset shooting position.
  14. 根据权利要求要求13所述的电子设备,其中,所述电子设备还包括角度调整组件,在通过固定的所述第二摄像头对所述待拍摄场景进行拍摄之前,所述处理器还用于执行:The electronic device according to claim 13, wherein the electronic device further comprises an angle adjustment component, and before the scene to be shot is photographed by the fixed second camera, the processor is further configured to execute :
    获取所述第一摄像头拍摄时的目标对焦区域;Acquiring a target focus area during shooting by the first camera;
    所述通过固定的所述第二摄像头对所述待拍摄场景进行拍摄,包括:The photographing the scene to be photographed through the fixed second camera includes:
    通过所述角度调整组件调整固定的所述第二摄像头的拍摄角度,使得所述目标对焦区域位于所述第二摄像头在各预设拍摄位置时的拍摄区域的共同重叠区域之内;Adjusting the shooting angle of the fixed second camera by the angle adjustment component, so that the target focus area is located within the common overlapping area of the shooting area when the second camera is at each preset shooting position;
    通过固定的所述第二摄像头基于所述目标对焦区域对所述待拍摄场景对焦拍摄。Focusing and shooting the scene to be shot based on the target focus area through the fixed second camera.
  15. 根据权利要求14所述的电子设备,其中,在通过固定的所述第二摄像头基于所述目标对焦区域对所述待拍摄场景对焦拍摄之前,所述处理器还用于执行:The electronic device according to claim 14, wherein, before focusing and shooting the scene to be shot based on the target focus area by the fixed second camera, the processor is further configured to execute:
    检测当前是否处于抖动状态;Check whether it is currently in a jitter state;
    若当前不处于抖动状态,则通过固定的所述第二摄像头基于所述目标对焦区域对所述待拍摄场景对 焦拍摄。If it is not currently in a shaking state, the fixed second camera is used to focus and shoot the scene to be shot based on the target focus area.
  16. 根据权利要求15所述的电子设备,其中,在通过固定的所述第二摄像头基于所述目标对焦区域对所述待拍摄场景对焦拍摄之前,所述处理器还用于执行:The electronic device according to claim 15, wherein before the fixed second camera is used to focus and shoot the scene to be shot based on the target focus area, the processor is further configured to execute:
    若当前不处于抖动状态,则检测所述待拍摄场景是否处于静止状态;If it is not currently in a shaking state, detecting whether the scene to be photographed is in a static state;
    若所述待拍摄场景处于静止状态,则通过固定的所述第二摄像头基于所述目标对焦区域对所述待拍摄场景对焦拍摄。If the scene to be photographed is in a static state, the fixed second camera is used to focus and photograph the scene to be photographed based on the target focus area.
  17. 根据权利要求12所述的电子设备,其中,所述电子设备包括两个第一摄像头,在通过所述第一摄像头对所述待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像时,所述处理器用于执行:The electronic device according to claim 12, wherein the electronic device comprises two first cameras, and when the scene to be photographed is captured by the first cameras, the first image obtained by the shooting is set as the base image When, the processor is used to execute:
    通过所述两个第一摄像头对所述待拍摄场景进行拍摄,得到至少两个第一图像;Shooting the scene to be shot by using the two first cameras to obtain at least two first images;
    对所述至少两个第一图像进行图像合成处理,将合成得到的图像设为所述基底图像。Perform image synthesis processing on the at least two first images, and set the synthesized image as the base image.
  18. 根据权利要求12所述的电子设备,其中,在通过所述第一摄像头对所述待拍摄场景进行拍摄,将拍摄得到的第一图像设为基底图像时,所述处理器用于执行:The electronic device according to claim 12, wherein, when the scene to be photographed is photographed by the first camera, and the first image obtained by the photographing is set as a base image, the processor is configured to execute:
    通过所述第一摄像头基于所述目标对焦区域对所述待拍摄场景连续对焦拍摄,得到多个第一图像;Using the first camera to continuously focus and shoot the scene to be shot based on the target focus area to obtain multiple first images;
    对所述多个第一图像进行图像合成处理,将合成得到的图像设为所述基底图像。Image synthesis processing is performed on the plurality of first images, and the synthesized image is set as the base image.
  19. 根据权利要求18所述的电子设备,其中,在通过所述第一摄像头基于所述目标对焦区域对所述待拍摄场景连续对焦拍摄,得到多个第一图像之后,所述处理器还用于执行:The electronic device according to claim 18, wherein after the first camera is used to continuously focus and shoot the scene to be shot based on the target focus area to obtain multiple first images, the processor is further configured to carried out:
    从所述多个第一图像中选取清晰度最高的第一图像作为所述基底图像。The first image with the highest definition is selected from the plurality of first images as the base image.
  20. 根据权利要求12所述的电子设备,其中,所述电子设备还包括覆盖所述第一摄像头和/或所述第二摄像头的电致变色组件,在接收对待拍摄场景的图像拍摄请求之前,所述处理器还用于执行:The electronic device according to claim 12, wherein the electronic device further comprises an electrochromic component covering the first camera and/or the second camera, and before receiving an image shooting request of the scene to be shot, The processor is also used to execute:
    切换所述电致变色组件至透明状态;Switching the electrochromic component to a transparent state;
    所述对所述多个第二图像与所述基底图像进行图像合成处理,将合成得到的图像设为所述图像拍摄请求的成像图像之后,还包括:After performing image synthesis processing on the plurality of second images and the base image, and setting the synthesized image as the imaging image of the image shooting request, the method further includes:
    将所述电致变色组件切换至着色状态,以隐藏所述第一摄像头和/或所述第二摄像头。The electrochromic component is switched to a colored state to hide the first camera and/or the second camera.
PCT/CN2020/097497 2019-06-28 2020-06-22 Device imaging method and apparatus, storage medium, and electronic device WO2020259445A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910578280.7 2019-06-28
CN201910578280.7A CN110290300A (en) 2019-06-28 2019-06-28 Equipment imaging method, device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
WO2020259445A1 true WO2020259445A1 (en) 2020-12-30

Family

ID=68019791

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/097497 WO2020259445A1 (en) 2019-06-28 2020-06-22 Device imaging method and apparatus, storage medium, and electronic device

Country Status (2)

Country Link
CN (1) CN110290300A (en)
WO (1) WO2020259445A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113163130A (en) * 2021-03-25 2021-07-23 维沃移动通信有限公司 Shooting auxiliary equipment, image pair acquisition calibration method and electronic equipment

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290300A (en) * 2019-06-28 2019-09-27 Oppo广东移动通信有限公司 Equipment imaging method, device, storage medium and electronic equipment
KR20210106277A (en) * 2020-02-20 2021-08-30 삼성전기주식회사 Camera module and portable electronic device including the same
CN112492214B (en) * 2020-12-07 2022-05-24 维沃移动通信有限公司 Image shooting method and device, electronic equipment and readable storage medium
CN113592751A (en) * 2021-06-24 2021-11-02 荣耀终端有限公司 Image processing method and device and electronic equipment
CN113810598B (en) * 2021-08-11 2022-11-22 荣耀终端有限公司 Photographing method, electronic device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030003991A (en) * 2001-07-04 2003-01-14 김덕우 Management system to providing independent pictures for each user
KR20060014228A (en) * 2004-08-10 2006-02-15 주식회사 팬택 Multi focus photographing method and apparatus in a mobile communication terminal having many cameras
CN202488510U (en) * 2012-02-20 2012-10-10 中兴通讯股份有限公司 Mobile device
CN108495045A (en) * 2018-05-17 2018-09-04 Oppo广东移动通信有限公司 Image capturing method, device, electronic device and storage medium
CN109379522A (en) * 2018-12-06 2019-02-22 Oppo广东移动通信有限公司 Imaging method, imaging device, electronic device and medium
CN109379528A (en) * 2018-12-20 2019-02-22 Oppo广东移动通信有限公司 Imaging method, imaging device, electronic device and medium
CN109600551A (en) * 2018-12-29 2019-04-09 Oppo广东移动通信有限公司 Imaging method, imaging device, electronic device and medium
CN109639997A (en) * 2018-12-20 2019-04-16 Oppo广东移动通信有限公司 Image processing method, electronic device and medium
CN110290300A (en) * 2019-06-28 2019-09-27 Oppo广东移动通信有限公司 Equipment imaging method, device, storage medium and electronic equipment
CN110493514A (en) * 2019-08-07 2019-11-22 Oppo广东移动通信有限公司 Image processing method, storage medium and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635579B (en) * 2015-12-31 2018-01-09 宇龙计算机通信科技(深圳)有限公司 A kind of method for displaying image and device
CN205510278U (en) * 2016-02-04 2016-08-24 国家电网公司 Intelligent equipment monitoring system of synthesizing use of management and control platform of logistics
JP6752685B2 (en) * 2016-10-28 2020-09-09 キヤノン株式会社 Imaging equipment, imaging methods and programs
CN107230192B (en) * 2017-05-31 2020-07-21 Oppo广东移动通信有限公司 Image processing method, image processing device, computer-readable storage medium and mobile terminal
CN108322646B (en) * 2018-01-31 2020-04-10 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN108924420B (en) * 2018-07-10 2020-08-04 Oppo广东移动通信有限公司 Image shooting method, image shooting device, image shooting medium, electronic equipment and model training method
CN109040570A (en) * 2018-10-26 2018-12-18 Oppo(重庆)智能科技有限公司 CCD camera assembly, flash lamp component and the electronic equipment of electronic equipment
CN109639974A (en) * 2018-12-20 2019-04-16 Oppo广东移动通信有限公司 Control method, control device, electronic device and medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030003991A (en) * 2001-07-04 2003-01-14 김덕우 Management system to providing independent pictures for each user
KR20060014228A (en) * 2004-08-10 2006-02-15 주식회사 팬택 Multi focus photographing method and apparatus in a mobile communication terminal having many cameras
CN202488510U (en) * 2012-02-20 2012-10-10 中兴通讯股份有限公司 Mobile device
CN108495045A (en) * 2018-05-17 2018-09-04 Oppo广东移动通信有限公司 Image capturing method, device, electronic device and storage medium
CN109379522A (en) * 2018-12-06 2019-02-22 Oppo广东移动通信有限公司 Imaging method, imaging device, electronic device and medium
CN109379528A (en) * 2018-12-20 2019-02-22 Oppo广东移动通信有限公司 Imaging method, imaging device, electronic device and medium
CN109639997A (en) * 2018-12-20 2019-04-16 Oppo广东移动通信有限公司 Image processing method, electronic device and medium
CN109600551A (en) * 2018-12-29 2019-04-09 Oppo广东移动通信有限公司 Imaging method, imaging device, electronic device and medium
CN110290300A (en) * 2019-06-28 2019-09-27 Oppo广东移动通信有限公司 Equipment imaging method, device, storage medium and electronic equipment
CN110493514A (en) * 2019-08-07 2019-11-22 Oppo广东移动通信有限公司 Image processing method, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113163130A (en) * 2021-03-25 2021-07-23 维沃移动通信有限公司 Shooting auxiliary equipment, image pair acquisition calibration method and electronic equipment
CN113163130B (en) * 2021-03-25 2023-04-07 维沃移动通信有限公司 Shooting auxiliary equipment, image pair acquisition calibration method and electronic equipment

Also Published As

Publication number Publication date
CN110290300A (en) 2019-09-27

Similar Documents

Publication Publication Date Title
WO2020259445A1 (en) Device imaging method and apparatus, storage medium, and electronic device
WO2020259401A1 (en) Imaging method and device for apparatus, storage medium, and electronic apparatus
US10645272B2 (en) Camera zoom level and image frame capture control
US11750918B2 (en) Assist for orienting a camera at different zoom levels
US11483469B2 (en) Camera zoom level and image frame capture control
CN110213493B (en) Device imaging method and device, storage medium and electronic device
CN110290299B (en) Imaging method, imaging device, storage medium and electronic equipment
KR20200079353A (en) Dual-aperture zoom digital camera with automatic adjustable tele field of view
US9571739B2 (en) Camera timer
CN110213492B (en) Device imaging method and device, storage medium and electronic device
JP2017505553A (en) Camera control by face detection
JP7364802B2 (en) Zoom settings adjustment for digital cameras
US20140098255A1 (en) Image pickup apparatus, control method of image pickup apparatus, program, and storage medium
US11431923B2 (en) Method of imaging by multiple cameras, storage medium, and electronic device
CN110430375B (en) Imaging method, imaging device, storage medium and electronic equipment
US11409434B2 (en) Image collection and processing method, apparatus, and storage medium
US11647278B2 (en) Imaging apparatus

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20832925

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20832925

Country of ref document: EP

Kind code of ref document: A1