WO2021077650A1 - 一种拍摄方法、装置以及计算机可读存储介质 - Google Patents

一种拍摄方法、装置以及计算机可读存储介质 Download PDF

Info

Publication number
WO2021077650A1
WO2021077650A1 PCT/CN2020/077663 CN2020077663W WO2021077650A1 WO 2021077650 A1 WO2021077650 A1 WO 2021077650A1 CN 2020077663 W CN2020077663 W CN 2020077663W WO 2021077650 A1 WO2021077650 A1 WO 2021077650A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
height
shooting
image
shooting mode
Prior art date
Application number
PCT/CN2020/077663
Other languages
English (en)
French (fr)
Inventor
肖明
李凌志
王海滨
李洋
Original Assignee
深圳传音控股股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳传音控股股份有限公司 filed Critical 深圳传音控股股份有限公司
Priority to EP20803433.0A priority Critical patent/EP3840361B1/en
Priority to US17/044,224 priority patent/US11297230B2/en
Publication of WO2021077650A1 publication Critical patent/WO2021077650A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B35/00Stereoscopic photography
    • G03B35/02Stereoscopic photography by sequential recording
    • G03B35/04Stereoscopic photography by sequential recording with movement of beam-selecting members in a system defining two or more viewpoints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • 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/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/698Control of cameras or camera modules for achieving an enlarged field of view, e.g. panoramic image capture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/90Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/45Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices

Definitions

  • This application relates to the technical field of smart terminals, and in particular to a shooting method, device, and computer-readable storage medium.
  • the embodiments of the present application provide a shooting method and device, which can shoot multiple photos at different positions through one or more liftable cameras, so as to reduce the software debugging time of the camera and improve the photographing efficiency.
  • the present application proposes a shooting method, which is applied to a terminal device provided with one or more cameras.
  • the one or more cameras there are one or more cameras that can be raised and lowered, including:
  • the first camera is controlled to take at least two images at different heights to obtain the taken photos, and the first camera is one of the one or more cameras that can be raised and lowered.
  • the method before the receiving the shooting instruction, the method further includes:
  • the shooting mode is switched from the current shooting mode to the first shooting mode.
  • controlling the first camera to take at least two images at different heights to obtain the taken photos includes:
  • the height information further includes the direction of the terminal device, and the method further includes:
  • the method further includes:
  • the shooting interface In a case where it is determined that the first shooting mode corresponds to more than two pieces of height information, display the two or more pieces of height information on the shooting interface;
  • the first height information is determined as the height information of the first shooting mode.
  • the first camera taking at least two images at different heights to obtain the taken photos further includes:
  • the first camera moves the first camera to a third height, where the third height is the height of the camera set in the height information;
  • the at least two obtained images are fused to obtain a photographed picture.
  • the method further includes:
  • the first camera is adjusted to a height corresponding to the operation.
  • the method further includes:
  • Output prompt information for prompting whether to confirm the operation of the adjustable range
  • the method further includes:
  • the method further includes:
  • a prompt message for prompting that the terminal device cannot be moved is output.
  • the first shooting mode is a blur shooting mode
  • the subject information and depth information in the image are obtained from the first image and the second image
  • the first image and the The second image undergoes fusion processing to synthesize a blurred photo.
  • the embodiments of the present application provide a shooting method, which is applied to a terminal device provided with more than two cameras.
  • the two or more cameras there are one or more cameras that can be raised and lowered, including:
  • At least one of the second camera and the third camera is a liftable camera.
  • the second camera is a fixed camera
  • the third camera is a liftable camera, after receiving the shooting instruction
  • the third camera extends to the highest height, and shrinks from the highest height to the terminal direction, and simultaneously uninterrupted panoramic photography during the shrinking process;
  • the panoramic image captured by the third camera is merged with the image captured by the second camera to realize a panoramic photographing function.
  • the image taken by the second camera is taken as the central axis of the panoramic image.
  • controlling the second camera to shoot at different heights and the third camera to shoot at different heights to obtain the captured photos includes:
  • the second camera in a case where it is determined that the first height information and the second height information both include two or more heights, controlling the second camera to take the first image at a third height, Controlling the third camera to take a second image at a fourth height;
  • the third height and the fifth height are the values in the first height information.
  • Two different heights, the fourth height and the sixth height are two different heights in the second height information;
  • the first image, the second image, the third image, and the fourth image are fused to obtain a captured photo.
  • the embodiments of the present application provide a shooting method, which is applied to a terminal device provided with one or more cameras.
  • a terminal device provided with one or more cameras.
  • the one or more cameras there are one or more liftable cameras.
  • Camera including:
  • the liftable camera extends to the highest height, and shrinks from the highest height to the terminal direction, and uninterrupted panoramic photography is taken during the shrinking process.
  • the terminal device in addition to the liftable camera, also includes a fixed camera;
  • the fixed camera When receiving an automatic panoramic shooting instruction, the fixed camera is controlled to take pictures and output a fixed image, the liftable camera outputs a panoramic image, and the fixed image is merged with the panoramic image to obtain a panoramic image.
  • an embodiment of the present application provides a mobile terminal, the mobile terminal is provided with at least one elevating camera, the elevating camera reciprocatingly moves in a first direction to be in a first position in the first direction , Shoot separately at the second position.
  • the liftable camera extends beyond the housing of the mobile terminal in the first direction, and is used to shoot at the first position and the second position that extend beyond the housing and in the first direction, respectively, to obtain the photographed photo.
  • the at least one liftable camera is retracted Into the housing of the mobile terminal.
  • the pulled camera is moved to the drag operation Location.
  • an embodiment of the present application provides a photographing device, including:
  • the first display unit is used to display the shooting interface
  • the receiving unit is used to receive shooting instructions
  • the control unit is configured to control the first camera to take at least two images at different heights to obtain the taken photos, and the first camera is one of the one or more cameras that can be raised and lowered.
  • the device further includes:
  • the switching unit is configured to switch the shooting mode from the current shooting mode to the first shooting mode when a selection instruction for selecting the first shooting mode is detected.
  • control unit is specifically configured to:
  • the height information further includes the direction of the terminal device, and the apparatus further includes:
  • the first obtaining unit is configured to obtain a direction of the terminal device, where the direction is a vertical direction or a horizontal direction;
  • the first output unit is configured to output prompt information for prompting adjustment of the direction of the terminal device when it is determined that the direction in the height information corresponding to the first shooting mode is different from the obtained direction.
  • the device further includes:
  • the second acquiring unit acquires the height information corresponding to the first shooting mode according to the corresponding relationship between the shooting mode and the height information;
  • the first judging unit is used to judge whether the height information includes more than two heights.
  • the device further includes:
  • the second determining unit is configured to determine whether the first shooting mode corresponds to more than two pieces of height information
  • the second display unit is configured to display the two or more height information on the shooting interface when it is determined that the first shooting mode corresponds to more than two height information;
  • the determining unit is configured to determine the first height information as the height information of the first shooting mode when a selection operation of the first height information in the two or more height information is detected.
  • control unit is further configured to:
  • the first camera moves the first camera to a third height, where the third height is the height of the camera set in the height information;
  • the at least two obtained images are fused to obtain a photographed picture.
  • the device further includes:
  • the third display unit is configured to display the adjustable range when an adjustment instruction for adjusting the height of the first camera is detected;
  • the adjustment unit is configured to adjust the first camera to a height corresponding to the operation when an operation for the adjustable range is detected.
  • the device further includes:
  • the second output unit is configured to output prompt information for prompting whether to confirm the operation of the adjustable range
  • the detection unit is configured to detect the operation of the adjustable range for the confirmation of the prompt information input.
  • the device further includes:
  • a fourth display unit configured to display the adjustable range when an adjustment instruction for adjusting the height of the first camera is detected
  • the fifth display unit is configured to display the height of the dragged height of the first camera in the adjustable range when the dragging of the first camera is detected.
  • the device further includes:
  • the third output unit is configured to output prompt information for prompting that the terminal device cannot be moved during the shooting process of the first camera.
  • the first shooting mode is a blur shooting mode
  • the subject information and depth information in the image are obtained from the first image and the second image
  • the first image and the The second image undergoes fusion processing to synthesize a blurred photo.
  • an embodiment of the present application provides a photographing device, including:
  • the display unit is used to display the shooting interface
  • the receiving unit is used to receive shooting instructions
  • the control unit is used to control the second camera to shoot at different heights and the third camera to shoot at different heights to obtain the photographed photos.
  • At least one of the second camera and the third camera is a liftable camera.
  • the device further includes:
  • the photographing unit is used for extending the third camera to the highest height and shrinking from the highest height to the terminal direction, and simultaneously uninterrupted panoramic photographing during the shrinking process;
  • the fusion unit is used for fusing the panoramic image taken by the third camera with the image taken by the second camera to realize the panoramic photographing function.
  • the image taken by the second camera is taken as the central axis of the panoramic image.
  • control unit is specifically configured to:
  • control unit is further configured to:
  • the second camera is controlled to take the first image at the third height, and the third camera is controlled to be at the fourth height. Take the second image highly;
  • the third height and the fifth height are the values in the first height information.
  • Two different heights, the fourth height and the sixth height are two different heights in the second height information;
  • the first image, the second image, the third image, and the fourth image are fused to obtain a captured photo.
  • this application provides a photographing device, including:
  • the display unit is used to display the shooting interface
  • the receiving unit is used to receive shooting instructions
  • the control unit is used to control the liftable camera to extend to the highest height, and shrink from the highest height to the terminal direction, and uninterrupted panoramic photography during the shrinking process.
  • the terminal device in addition to the liftable camera, also includes a fixed camera;
  • the control unit is used to control a fixed camera to take pictures and output a fixed image when receiving an automatic panoramic shooting instruction, the liftable camera to output a panoramic image, and to fuse the fixed image with the panoramic image to obtain a panoramic image .
  • an embodiment of the present application provides a terminal device, which includes a processor, a memory, an input device, an output device, a camera, the processor, the memory, the input device, and the output device
  • the cameras are connected to each other, wherein the memory is used to store a computer program that supports the terminal device to execute the above process identification method, the computer program includes program instructions, and the processor is configured to call the program instructions Execute the method provided in the first aspect and/or any possible implementation manner of the first aspect.
  • an embodiment of the present application provides a terminal device.
  • the terminal device includes a processor, a memory, an input device, an output device, a camera, the processor, the memory, the input device, and the output device.
  • the cameras are connected to each other, wherein the memory is used to store a computer program that supports the terminal device to execute the above process identification method, the computer program includes program instructions, and the processor is configured to call the program instructions Execute the method provided in any possible implementation manner of the second aspect and/or the second aspect.
  • an embodiment of the present application provides a terminal device, which includes a processor, a memory, an input device, an output device, a camera, the processor, the memory, the input device, and the output device
  • the cameras are connected to each other, wherein the memory is used to store a computer program that supports the terminal device to execute the above process identification method, the computer program includes program instructions, and the processor is configured to call the program instructions , Execute the method provided in the third aspect and/or any possible implementation manner of the third aspect.
  • an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program includes program instructions that, when executed by a processor, cause the processor to execute The method provided by any one of the foregoing first aspect and/or the first aspect, any one of the second aspect and/or the second aspect, and any one of the third aspect and/or the third aspect.
  • the terminal device with one or more liftable cameras in one or more cameras.
  • the liftable cameras can shoot multiple images at different heights.
  • Image the terminal device processes the multiple images obtained, takes the processed result as the taken photos, and outputs the taken photos, and controls the lifting camera instead of multiple cameras to take the method, which can not only reduce the occupation of the interface from the hardware, but also
  • the circuit structure of the terminal device is simple, and the debugging time on the software can be reduced, and the shooting efficiency can be improved.
  • FIG. 1 is a schematic flowchart of a shooting method provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of another shooting method provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another shooting method provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a photographing device provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of another photographing device provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of another photographing device provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of another terminal device provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of another terminal device provided by an embodiment of the present application.
  • the term “if” can be construed as “when” or “once” or “in response to determination” or “in response to detection” depending on the context .
  • the phrase “if determined” or “if detected [described condition or event]” can be interpreted as meaning “once determined” or “in response to determination” or “once detected [described condition or event]” depending on the context ]” or “in response to detection of [condition or event described]”.
  • FIG. 1 is a schematic flowchart of a shooting method provided by an embodiment of the present application. Wherein, the method is applied to a terminal device provided with one or more cameras. Among the above-mentioned one or more cameras, there are one or more cameras that can be raised and lowered. As shown in FIG. 1, the shooting method may include:
  • the terminal device in the embodiment of the present application may include a mobile phone, a tablet computer, and a personal digital assistant (Personal Digital Assistant).
  • PDA Personal Digital Assistant
  • Mobile Internet Equipment Mobile Internet Device, MID
  • smart wearable devices such as smart watches, smart bracelets
  • other electronic devices that can integrate multiple cameras.
  • the terminal device can be provided with one or more cameras, and one of them is provided with a liftable camera on a single side.
  • the liftable camera is in a default position when not in use.
  • the default position is the position where the above liftable camera exists when no shooting software is started, and it can be the lowest position.
  • the terminal device displays the shooting interface, which can be to move the camera to a starting position after entering the photographing software, that is, the starting position is different from the above-mentioned default position, which is the position where the camera is ready to shoot, where the camera can be raised and lowered during the shooting process The lowest point.
  • the shooting button one or more shooting modes, one or more exposure parameter modes, flash on button, etc. can be displayed.
  • the content displayed in the above shooting interface is not limited here. Ground, shooting modes include blur shooting mode, 3D (3D) shooting mode, landscape shooting mode, portrait shooting mode, night scene mode and so on. If the shooting instruction input by the user is received, if the user does not switch the shooting mode, the shooting will be performed in the shooting mode of the current camera.
  • the shooting mode is switched from the current shooting mode to the above-mentioned first shooting mode, wherein the first shooting mode is any one selected by the user except the current shooting mode Shooting mode.
  • receiving the shooting instruction input by the user can be performed by clicking the shooting button in the above shooting interface to shoot, or it can be performed immediately when a specific expression or action of a character is detected in the shooting interface.
  • Shooting can also be timed shooting. The user sets a certain time in advance to automatically turn on the camera for shooting, and the shooting instructions input by the user's voice, etc. There is no limitation on the way of inputting the shooting instructions.
  • the photographing device controls the above-mentioned liftable camera to photograph multiple images at different heights.
  • the terminal device can obtain the height information taken by the camera according to the shooting mode, which may include one height or multiple heights. If the mode corresponds to multiple heights, it will move from the above-mentioned starting position to Multiple images are taken at positions of multiple heights, and if the value in the height information includes a height, the camera is moved to the height in the height information to take multiple images to obtain the captured images.
  • one shooting mode can correspond to multiple height information.
  • the height information taken by the camera is obtained.
  • the height information can include the orientation information of the terminal device.
  • the orientation information refers to whether the terminal device is shooting horizontally or vertically. Shoot.
  • multiple height information is displayed on the shooting interface, which can display the camera motion demonstration diagram during shooting, or the shooting effect diagram, which is not limited here.
  • the user is prompted to select one height information from the multiple height information as the height information corresponding to the current shooting mode.
  • the current orientation of the terminal device is obtained.
  • the gravity sensor can obtain the orientation of the terminal device, and obtain whether the terminal device is currently in the vertical direction or the horizontal direction, that is, whether the terminal device is in a landscape state or a portrait state.
  • prompt information for prompting the user to adjust the direction of the terminal device is output.
  • the direction of the terminal device is acquired again, and if the direction detected again is inconsistent with the direction in the height information, the prompt information is continuously output. If it is not detected within the preset time range that the direction of the terminal device is consistent with the direction in the height information corresponding to the current shooting mode, it is determined that the terminal device is currently unmanned, and the camera and display screen of the current terminal device can be put to sleep.
  • the output mode can be output in the form of text on the above-mentioned display interface, or output in the form of voice broadcast. , It can also be a flashing light to remind the user, the way of outputting the prompt information is not limited here.
  • the obtained images need to be fused and processed into one photo, which is used as the photographed photo.
  • the above-mentioned fusion processing of multiple images is divided into two categories, one is the fusion processing of multiple images with different exposure parameters taken by the aforementioned camera at the same position, and the other is the multiple images taken by the aforementioned camera at different positions.
  • Perform fusion processing where the above-mentioned camera can take multiple images at different heights for two-step fusion, the first step is to merge into one image for each height, and the second step is to perform fusion processing on images of different heights again, and finally multiple images
  • an image is obtained as a captured photo.
  • the above-mentioned camera shooting multiple images with different exposure parameters at the same position may be shooting two images with a lower exposure parameter and a higher exposure parameter.
  • the two images can be taken at a lower exposure.
  • the subject and the background under higher exposure can be blended, and the background under higher exposure and the subject under lower exposure can also be blended, which is not limited here.
  • the camera when the above-mentioned camera shoots multiple images at the same position, after receiving the shooting instruction, the camera may be moved to the height corresponding to the shooting mode to shoot, or the camera may be moved to the current shooting After the height corresponding to the mode, when the shooting instruction input by the user is received, the shooting is performed.
  • the adjustment instruction can be manually input, and the terminal device displays the adjustable range, and the adjustable range is Refers to the maximum range that the camera can adjust.
  • the adjustable range can be several fixed heights, or it can be a sliding height range adjustment, which is not limited here.
  • a prompt message can be output to the user to prompt the user whether to confirm the operation of the above-mentioned adjustable range, for example, the user can output "whether the camera is adjusted to the H1 position" ?", when the user's confirmation operation for the prompt information input is detected, the camera is adjusted to the height selected by the user.
  • adjusting the height of the camera may be to select the height that the user needs to adjust from the adjustable range displayed on the display screen, or it may be an operation of manually dragging the camera. That is, when the adjustment instruction input by the user is detected, the adjustable range is displayed. When a drag operation on the camera is detected, the height of the camera is obtained, and the height is displayed in the adjustable range of the current interface.
  • two photos with different exposure parameters can be taken at each position, and the two images can be synthesized to obtain one image at each height.
  • Different image information is obtained from images of different heights to perform fusion processing results to obtain photographs taken.
  • the saturation, brightness, hue and other parameters of the image can be processed, which is not limited here.
  • the processed photos are stored and output on the above-mentioned display screen, wherein the above-mentioned terminal device stores the final processing result, and the above-mentioned multiple captured images can be deleted to release the memory of the terminal device.
  • the terminal device will switch from the normal shooting mode to the blur shooting mode when detecting a selection instruction input by the user for selecting the first shooting mode, that is, the blur shooting mode.
  • the height information corresponding to the above-mentioned blur shooting is obtained, that is, the camera needs to shoot multiple images at the heights of H1 and H2, respectively, and obtain the subject information and depth information in the images, so as to be able to synthesize one image. This is similar to a blurred photo taken with a large aperture of a SLR camera.
  • the terminal device When detecting the selection instruction input by the user for selecting the second shooting mode, that is, the 3D shooting mode, and the normal shooting mode is switched to the 3D shooting mode, the terminal device obtains the corresponding 3D shooting according to the corresponding relationship between the shooting mode and the height information. Height information. It is understandable that when multiple images are obtained separately, the fusion processing of the blurred image and the fusion processing of the three-dimensional image are performed separately to obtain the blurred image and the three-dimensional image.
  • prompt information for prompting the user of the shooting mode of the current terminal device may be output on the shooting interface.
  • the height information may be the height information corresponding to the shooting mode stored in the factory settings of the terminal device.
  • the camera of the terminal device has a better effect of shooting people at the position of H3.
  • the above-mentioned camera has a better effect of shooting scenery at the position of H4. Therefore, the height information of H3 is correlated with the portrait shooting mode, and the height information of H4 is correlated with the landscape shooting mode. It is understandable that the above is only an example, including but not Limited to the above shooting modes.
  • the terminal device determines whether the above height information includes multiple heights, and in the case of determining that the above height information includes multiple heights, controls the camera to take the first image at the first height; controls the camera to take the second image at the second height,
  • the first height and the second height are two different heights in the height information; the first image and the second image are determined as multiple captured images, and after the multiple images are obtained, the multiple images Perform fusion processing to get the photo in the current shooting mode.
  • the camera takes multiple images at different heights, and is first moved to the first height in the height information in order to take one image, where the first height is different from the default position of the camera And the starting position is based on the first shooting height in the preset shooting process, which can be the moving sequence from high to low, or the moving sequence from low to high, which is not limited here.
  • the prompt information used to prompt the user to be unable to terminal equipment is output, and the output method is not limited here.
  • a reference line may be displayed in the shooting interface of the aforementioned terminal device to prompt the user to determine whether the terminal device has been moved.
  • the image can also be taken at the third height and the fourth height, which is not limited here.
  • the terminal device is applied to a terminal device with one or more liftable cameras in one or more cameras.
  • the shooting interface By displaying the shooting interface, it receives the shooting instructions input by the user, so that the liftable cameras are at different heights.
  • the terminal device processes the multiple images obtained, takes the processed result as the captured photo, and outputs the captured photo, and controls the liftable camera to replace multiple camera shooting methods, which can not only reduce the interface from the hardware
  • the occupation of the terminal device makes the circuit structure of the terminal device simple, and can also reduce the debugging time on the software and improve the shooting efficiency.
  • FIG. 2 is a schematic flowchart of another shooting method provided by an embodiment of the present application.
  • the method is applied to a terminal device provided with more than two cameras.
  • the two or more cameras there are one or more cameras that can be raised and lowered.
  • the shooting method may include:
  • the shooting interface is displayed.
  • step 201 to step 202 For the specific implementation process of step 201 to step 202, refer to the description of step 101 to step 102 in the embodiment corresponding to FIG. 1, and the details will not be repeated here.
  • At least one of the second camera and the third camera is a liftable camera.
  • the above-mentioned liftable camera may include at least one liftable camera.
  • the height information corresponding to the current shooting mode is obtained.
  • One camera corresponds to one height information, and one shooting mode is also It can correspond to multiple height information. After the user selects the shooting mode, the user can further select the height information of the camera. It is understandable that each camera corresponds to one height information.
  • the second camera and the third camera Respectively determine whether the height information corresponding to the two cameras includes multiple heights. In the case of determining that both of the two cameras include multiple heights, respectively control the two cameras to shoot according to the height in the height information, that is, through the second camera And the third camera shoots according to the corresponding height information to obtain multiple images respectively. If the height information of each camera contains two heights, four images are obtained for fusion to obtain a photo and output.
  • the number of liftable cameras is not limited, and the number of heights in the height information is also not limited.
  • the height information corresponding to the second camera can be the same as or different from the height information corresponding to the third camera. Here Not limited.
  • the second camera and the third camera include a liftable camera, and the other camera is a fixed camera, get the current shooting mode of the two cameras respectively.
  • the second camera is a fixed camera
  • the third camera is a liftable camera.
  • the third camera can be extended after receiving the shooting instruction input by the user.
  • the second camera takes a photo at a fixed position.
  • the panoramic image captured by the third camera is merged with the image captured by the second camera to realize the panoramic photographing function.
  • the terminal device may be vertical shooting, and the terminal device may also be horizontal shooting.
  • the image taken by the second camera ie, the fixed camera
  • the image taken by the second camera can be fused with the above-mentioned panoramic image as the center position, or the image taken by the second camera can be used as the starting or ending position image for fusion , Get a panoramic image.
  • the at least one liftable camera can shoot multiple images respectively.
  • the photos taken by fusion can obtain depth of field information from multiple photos, so that a better shooting effect can be obtained.
  • the terminal device is applied to a terminal device with one or more liftable cameras in one or more cameras.
  • the shooting interface By displaying the shooting interface, it receives the shooting instructions input by the user, so that the liftable cameras are at different heights.
  • the terminal device processes the multiple images obtained, takes the processed result as the captured photo, and outputs the captured photo, and controls the liftable camera to replace multiple camera shooting methods, which can not only reduce the interface from the hardware
  • the occupation of the terminal device makes the circuit structure of the terminal device simple, and can also reduce the debugging time on the software and improve the shooting efficiency.
  • FIG. 3 is a schematic flowchart of another shooting method proposed by the present application.
  • the method is applied to a terminal device provided with one or more cameras, and among the above-mentioned one or more cameras, there are one or more cameras that can be raised and lowered.
  • the shooting method may include:
  • step 301 to step 302 For the specific implementation process of step 301 to step 302, please refer to the description of step 101 to step 102 in the embodiment corresponding to FIG. 1, which will not be repeated here.
  • the control liftable camera extends to the highest height, and shrinks from the highest height to the terminal direction, and uninterrupted panoramic photography is taken during the shrinking process.
  • the above-mentioned liftable camera can be extended to the highest height, and from the highest height Shrink towards the terminal, and shoot without interruption during the shrinking process.
  • the above-mentioned liftable camera can be continuously raised from the lowest height until it reaches the highest height, where it is moving In the process of shooting at the same time uninterrupted. It is also possible for the user to select the starting height and the ending height. After receiving the shooting instruction, the user can move from the starting height to the ending height selected by the user, and the shooting will continue during the movement.
  • the panoramic mode you can control only one camera, that is, the above-mentioned liftable camera, or two cameras.
  • the second camera is a fixed camera.
  • the liftable camera can be controlled.
  • the camera shifts and shoots, the fixed camera shoots a fixed image, and the fixed image is merged with the photos taken by the liftable camera to obtain a panoramic image.
  • the terminal device is applied to a terminal device with one or more liftable cameras in one or more cameras.
  • the shooting interface By displaying the shooting interface, it receives the shooting instructions input by the user, so that the liftable cameras are at different heights.
  • the terminal device processes the multiple images obtained, takes the processed result as the captured photo, and outputs the captured photo, and controls the liftable camera to replace multiple camera shooting methods, which can not only reduce the interface from the hardware
  • the occupation of the terminal device makes the circuit structure of the terminal device simple, and can also reduce the debugging time on the software and improve the shooting efficiency.
  • FIG. 4 is a schematic structural diagram of a photographing device proposed in the present application.
  • the photographing device 4000 may include:
  • the first display unit 401 is configured to display a shooting interface
  • the receiving unit 402 is configured to receive a shooting instruction
  • the control unit 403 is configured to control the first camera to take at least two images at different heights to obtain the taken photos, and the first camera is one of the one or more cameras that can be raised and lowered.
  • the device 4000 further includes:
  • the switching unit 404 is configured to switch the shooting mode from the current shooting mode to the first shooting mode when a selection instruction for selecting the first shooting mode is detected.
  • control unit 403 is specifically configured to:
  • the height information further includes the direction of the terminal device, and the apparatus 4000 further includes:
  • the first obtaining unit 405 is configured to obtain a direction of the terminal device, where the direction is a vertical direction or a horizontal direction;
  • the first output unit 406 is configured to output prompt information for prompting adjustment of the direction of the terminal device when it is determined that the direction in the height information corresponding to the first shooting mode is different from the obtained direction.
  • the device 4000 further includes:
  • the second acquiring unit 407 acquires the height information corresponding to the first shooting mode according to the corresponding relationship between the shooting mode and the height information;
  • the first determining unit 408 is configured to determine whether the height information includes more than two heights.
  • the device 4000 further includes:
  • the second determining unit 409 is configured to determine whether the first shooting mode corresponds to more than two pieces of height information
  • the second display unit 410 is configured to display the two or more height information on the shooting interface when it is determined that the first shooting mode corresponds to more than two height information;
  • the determining unit 411 is configured to determine the first height information as the height information of the first shooting mode when a selection operation of the first height information in the two or more height information is detected.
  • control unit 403 is further configured to:
  • the first camera moves the first camera to a third height, where the third height is the height of the camera set in the height information;
  • the at least two obtained images are fused to obtain a photographed picture.
  • the device 4000 further includes:
  • the third display unit 412 is configured to display the adjustable range when an adjustment instruction for adjusting the height of the first camera is detected;
  • the adjustment unit 413 is configured to adjust the first camera to a height corresponding to the operation when an operation for the adjustable range is detected.
  • the device 4000 further includes:
  • the second output unit 414 is configured to output prompt information for prompting whether to confirm the operation of the adjustable range
  • the detection unit 415 is configured to detect an operation on the adjustable range for the confirmation of the prompt information input.
  • the device 4000 further includes:
  • the fourth display unit 416 is configured to display the adjustable range when an adjustment instruction for adjusting the height of the first camera is detected;
  • the fifth display unit 417 is configured to display the height of the dragged height of the first camera in the adjustable range when the drag of the first camera is detected.
  • the device 4000 further includes:
  • the third output unit 418 is configured to output prompt information for prompting that the terminal device cannot be moved during the shooting by the first camera.
  • the first shooting mode is a blur shooting mode
  • the subject information and depth information in the image are obtained from the first image and the second image
  • the first image and the The second image undergoes fusion processing to synthesize a blurred photo.
  • FIG. 5 is a schematic diagram of the structure of a photographing device proposed in the present application.
  • the photographing device 5000 may include:
  • the display unit 501 is used to display a shooting interface
  • the receiving unit 502 is configured to receive a shooting instruction input by the user
  • the control unit 503 controls the second camera to shoot at different heights and the third camera to shoot at different heights to obtain the captured photos.
  • the second camera and the third camera are among the one or more liftable cameras. At least one liftable camera.
  • the foregoing apparatus 5000 further includes:
  • the photographing unit 504 is configured to extend the above-mentioned third camera to the highest height and shrink from the highest height to the terminal direction, and simultaneously uninterrupted panoramic photographs during the shrinking process;
  • the fusion unit 505 is configured to merge the panoramic image captured by the third camera with the image captured by the second camera to realize the panoramic photographing function.
  • the foregoing apparatus 5000 further includes:
  • the image taken by the second camera is taken as the central axis of the panoramic image.
  • control unit 503 is specifically configured to:
  • control unit 503 is further configured to:
  • the second camera is controlled to take the first image at the third height, and the third camera is controlled to be at the fourth height. Take the second image highly;
  • the third height and the fifth height are the values in the first height information.
  • Two different heights, the fourth height and the sixth height are two different heights in the second height information;
  • the first image, the second image, the third image, and the fourth image are fused to obtain a captured photo.
  • the device in the embodiment of the present application is applied to a terminal device provided with one or more cameras with one or more liftable cameras, and by receiving a shooting instruction input by the user, the at least one liftable camera can take multiple pictures respectively
  • the images are fused to obtain the captured photos, and the depth information can be obtained from multiple photos, so that a better shooting effect can be obtained.
  • the photographing device 6000 may include:
  • the display unit 601 is used to display a shooting interface
  • the receiving unit 602 is configured to receive a shooting instruction input by the user
  • the control unit 603 is used to control the above-mentioned liftable camera to extend to the highest height, and to shrink from the highest height to the terminal direction, and simultaneously uninterrupted panoramic photography during the shrinking process.
  • the terminal device in addition to the liftable camera, also includes a fixed camera;
  • the control unit 603 is configured to control the fixed camera to take pictures and output a fixed image when receiving an automatic panoramic shooting instruction, the liftable camera to output a panoramic image, and to fuse the fixed image with the panoramic image to obtain a panoramic image image.
  • FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • the terminal device 7000 may include:
  • the aforementioned processor 701, input device 702, output device 703, memory 704, and camera 705 are connected by a bus.
  • the input device 702 and the output device 703 are used to receive and send data.
  • the memory 704 is configured to store a computer program, and the computer program includes program instructions.
  • the processor 701 is configured to execute the program instructions stored in the memory 704, where the processor 701 is configured to invoke the program instructions to perform the following steps:
  • the processor 701 controls the output device 703 to display a shooting interface
  • the processor 701 controls the input device 702 to receive a shooting instruction
  • the processor 701 controls the camera 705 to take multiple images at different heights to obtain the taken photos.
  • the first camera is one of the one or more cameras that can be raised and lowered.
  • the processor 701 controls the input device 702 to receive the shooting instruction input by the user, the processor 701 is further called to perform the following steps:
  • the shooting mode is switched from the current shooting mode to the above-mentioned first shooting mode.
  • the processor 701 controls the camera 705 to take multiple images at different heights to obtain the taken photos, including:
  • the above-mentioned height information further includes the direction of the terminal device, and the above-mentioned processor 701 is also called to perform the following steps:
  • the processor 701 controls the output device 703 to output prompt information for prompting the user to adjust the direction of the terminal device when it is determined that the direction in the height information corresponding to the first shooting mode is different from the obtained direction.
  • the processor 701 further includes the following steps before controlling the first camera to capture the first image at the first height:
  • the processor 701 After the processor 701 obtains the height information corresponding to the first shooting mode according to the corresponding relationship between the shooting mode and the height information, the processor 701 is further called to perform the following steps:
  • the shooting interface In a case where it is determined that the first shooting mode corresponds to more than two pieces of height information, display the two or more pieces of height information on the shooting interface;
  • the first height information is determined as the height information of the first shooting mode.
  • the processor 701 controls the camera 705 to take multiple images at different heights to obtain the taken photos, which further includes:
  • the first camera moves the first camera to a third height, where the third height is the height of the camera set in the height information;
  • the at least two obtained images are fused to obtain a photographed picture.
  • the processor 701 controls the output device 703 to display the adjustable range when it detects an adjustment instruction input by the user for adjusting the height of the first camera;
  • the above-mentioned processor 701 moves the above-mentioned camera 705 to adjust to the height corresponding to the above-mentioned user operation.
  • the processor 701 controls the output device 703 to output prompt information for prompting the user whether to confirm the operation of the adjustable range;
  • the method further includes:
  • the processor 701 controls the output device 703 to display the adjustable range when it detects an adjustment instruction input by the user for adjusting the height of the first camera;
  • the processor 701 controls the output device 703 to display the height of the dragged height of the first camera within the adjustable range when the dragging of the first camera is detected.
  • the processor 401 controls the output device 403 to be called to perform the following steps:
  • a prompt message for prompting the user that the terminal device cannot be moved is output.
  • the first shooting mode is a blur shooting mode
  • the first image and the second image obtain subject information and depth information in the image
  • the processor 701 combines the first image and the The second image undergoes fusion processing to synthesize a blurred photo.
  • the aforementioned processor 701 may be a central processing unit. (central processing unit, CPU), the processor may also be other general-purpose processors, digital signal processors (digital signal processors, DSP), and application specific integrated circuits (application-specific integrated circuits). specific integrated circuit (ASIC), ready-made programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 704 may include a read-only memory and a random access memory, and provides instructions and data to the processor 701. A part of the memory 704 may also include a non-volatile random access memory. For example, the memory 704 may also store device type information.
  • the above-mentioned input device 702 may include a touch screen, and the above-mentioned output device 703 may include a speaker and a screen with a display function.
  • the above-mentioned camera 705 is the above-mentioned liftable camera.
  • the above-mentioned terminal device can execute the implementation manners provided in each step in FIG. 1 through its built-in functional modules.
  • the implementation manners provided in the above-mentioned steps which will not be repeated here.
  • the terminal device displays the shooting interface and receives the shooting instruction input by the user, so that the liftable camera can shoot multiple images at different heights, and the terminal device processes the obtained multiple images, and the processing result
  • the method of controlling the liftable camera to replace multiple cameras can not only reduce the occupation of the interface from the hardware, make the circuit structure of the terminal device simple, but also reduce the debugging on the software. Time, improve shooting efficiency.
  • FIG. 8 is a schematic structural diagram of another terminal device provided by an embodiment of the present application.
  • the terminal device 8000 may include:
  • the aforementioned processor 801, input device 802, output device 803, memory 804, and camera 805 are connected by a bus.
  • the input device 802 and the output device 803 are used to receive and send data.
  • the memory 804 is configured to store a computer program, and the computer program includes program instructions.
  • the processor 801 is configured to execute the program instructions stored in the memory 804, where the processor 801 is configured to call the program instructions to perform the following steps:
  • the processor 801 controls the output device 803 to display a shooting interface
  • the processor 801 controls the input device 802 to receive a shooting instruction input by the user;
  • the processor 801 controls the camera 805 to shoot at different heights and the third camera to shoot at different heights to obtain photographs.
  • the second camera and the third camera are among the one or more liftable cameras. At least one liftable camera.
  • the second camera is a fixed camera
  • the third camera is a liftable camera
  • the shooting instruction is received
  • the processor 801 controls the third camera to extend to the highest height, and shrink from the highest height to the terminal direction, and simultaneously uninterrupted panoramic photography during the shrinking process;
  • the panoramic image captured by the third camera is merged with the image captured by the second camera to realize the panoramic photography function.
  • the above-mentioned processor 801 uses the image captured by the above-mentioned second camera as the central axis of the above-mentioned panoramic image.
  • the above-mentioned processor 801 controls the second camera to shoot at different heights and the third camera to shoot at different heights to obtain the captured photos, including:
  • the second camera is controlled to capture the first image at a third height, and the third height is controlled to The camera shoots the second image at the fourth height;
  • the first image, the second image, the third image, and the fourth image are fused to obtain a photographed picture.
  • the terminal device in the embodiment of the present application is applied to a terminal device that is provided with one or more cameras that can be raised and lowered.
  • the at least one raising and lowering camera can take multiple shots. Two images are fused to obtain a captured photo, and depth information can be obtained from multiple photos, so that a better shooting effect can be obtained.
  • FIG. 9 is a schematic structural diagram of another terminal device according to an embodiment of the present application.
  • the terminal device 9000 may include:
  • the aforementioned processor 901, input device 902, output device 903, memory 904, and camera 905 are connected by a bus.
  • the input device 902 and the output device 903 are used to receive and send data.
  • the memory 904 is configured to store a computer program, and the computer program includes program instructions.
  • the processor 901 is configured to execute the program instructions stored in the memory 904, where the processor 901 is configured to call the program instructions to perform the following steps:
  • the processor 901 controls the input device 902 to receive a shooting instruction
  • the above-mentioned processor 901 controls the above-mentioned liftable camera to extend to the highest height, and shrink from the highest height to the terminal direction, and at the same time uninterrupted panoramic photography during the shrinking process.
  • the above-mentioned terminal device includes a fixed camera in addition to the above-mentioned liftable camera; when the above-mentioned processor 901 receives an automatic panoramic shooting instruction, it controls the fixed camera to take pictures and output a fixed image, and the above-mentioned liftable camera outputs For a panoramic image, the above-mentioned fixed image and the above-mentioned panoramic image are merged to obtain a panoramic image.
  • the terminal device in the embodiment of the present application is applied to a terminal device that is provided with one or more cameras that can be raised and lowered.
  • the at least one raising and lowering camera can take multiple shots. Two images are fused to obtain a captured photo, and depth information can be obtained from multiple photos, so that a better shooting effect can be obtained.
  • the foregoing computer-readable storage medium may be the task processing device provided in any of the foregoing embodiments or the internal storage unit of the foregoing information processing device, such as the hard disk or memory of the information processing device.
  • the computer-readable storage medium may also be an external storage device of the information processing device, such as a plug-in hard disk or a smart memory card (smart memory card) equipped on the information processing device. media card, SMC), secure digital (secure digital, SD) card, flash card, etc.
  • the above-mentioned computer-readable storage medium may also include magnetic disks, optical disks, read-only storage memory (read-only memory, ROM) or random storage memory (random access memory, RAM) etc.
  • the computer-readable storage medium may also include both an internal storage unit of the information processing apparatus and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the information processing device.
  • the computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
  • the terminal device with one or more liftable cameras in one or more cameras.
  • the liftable cameras can shoot multiple images at different heights.
  • Image the terminal device processes the multiple images obtained, takes the processed result as the taken photos, and outputs the taken photos, and controls the lifting camera instead of multiple cameras to take the method, which can not only reduce the occupation of the interface from the hardware, but also
  • the circuit structure of the terminal device is simple, and the debugging time on the software can be reduced, and the shooting efficiency can be improved.

Abstract

本申请实施例公开了一种拍摄方法,该方法应用于设置有一个或两个以上摄像头的终端设备,所述一个或两个以上摄像头中存在一个或两个以上可升降的摄像头,其中,该方法包括:显示拍摄界面;接收拍摄指令;控制第一摄像头在不同高度拍摄至少两幅图像,得到拍摄的照片,所述第一摄像头为所述一个或两个以上可升降的摄像头中的一个。采用本申请实施例,能够减少对摄像头的软件调试时间,提升拍照效率。

Description

一种拍摄方法、装置以及计算机可读存储介质
本专利申请要求 2019年10月24日提交的中国专利申请号为201911016880.0,申请人为深圳传音控股股份有限公司,发明名称为“一种拍摄方法、装置以及计算机可读存储介质”的优先权,该申请的全文以引用的方式并入本申请中。
技术领域
本申请涉及智能终端技术领域,尤其涉及一种拍摄方法、装置以及计算机可读存储介质。
背景技术
随着终端技术的发展,移动终端的普及率越来越高,移动终端的拍摄能力已成为广大消费者关注的重点。现如今,带有后置单摄像头的移动终端已经能够满足消费者日常的拍摄需求,但是在某些场景下,需要拍摄主体突出而虚化其他取景对象的照片时,具有大光圈的摄像头以及选择在合适的距离进行拍摄才能实现。而在移动终端中,受限于摄像头的规格和工艺水平,无法生产出完全满足要求的摄像头。
技术问题
目前,业界提出了使用阵列摄像头来解决上述问题(一般为后置双摄像头),通过两个摄像头在同一时刻拍摄同一场景不同角度的多幅图像,根据多幅图像可以分别获取图像主体以及景深信息,从而将背景虚化以得到虚化照片。采用这种方式,会增加对摄像头的软件调试时间,使得拍照效率低。
技术解决方案
本申请实施例提供一种拍摄方法及装置,能够通过一个或多个可升降式摄像头在不同位置拍摄多张照片以减少对摄像头的软件调试时间,提升拍照效率。
第一方面,本申请提出一种拍摄方法,该方法应用于设置有一个或两个以上摄像头的终端设备,所述一个或两个以上摄像头中存在一个或两个以上可升降的摄像头,包括:
显示拍摄界面;
接收拍摄指令;
控制第一摄像头在不同高度拍摄至少两幅图像,得到拍摄的照片,所述第一摄像头为所述一个或两个以上可升降的摄像头中的一个。
在一种可能的实现方式中,所述接收拍摄指令之前,所述方法还包括:
当检测到选择第一拍摄模式的选择指令时,将拍摄模式由当前拍摄模式切换至所述第一拍摄模式。
在一种可能的实现方式中,所述控制第一摄像头在不同高度拍摄至少两幅图像,得到拍摄的照片,包括:
控制所述第一摄像头在第一高度拍摄第一图像;
控制所述第一摄像头在第二高度拍摄第二图像,所述第一高度和所述第二高度为高度信息中的两个不同高度;
将所述第一图像和所述第二图像进行融合处理,得到拍摄的照片。
在一种可能的实现方式中,所述高度信息还包括终端设备的方向,所述方法还包括:
获取所述终端设备的方向,所述方向为竖直方向或水平方向;
在判断出所述第一拍摄模式对应的高度信息中的方向与获取到的方向不同的情况下,输出用于提示调整终端设备方向的提示信息。
在一种可能的实现方式中,在所述控制所述第一摄像头在第一高度拍摄第一图像之前还包括以下步骤:
根据拍摄模式与高度信息的对应关系获取所述第一拍摄模式对应的高度信息;
判断所述高度信息中是否包括两个以上高度。
在一种可能的实现方式中,所述根据拍摄模式与高度信息的对应关系获取所述第一拍摄模式对应的高度信息之后,所述方法还包括:
判断所述第一拍摄模式是否对应两个以上高度信息;
在判断出所述第一拍摄模式对应两个以上高度信息的情况下,在所述拍摄界面显示所述两个以上高度信息;
当检测到所述两个以上高度信息中第一高度信息的选择操作时,将所述第一高度信息确定为所述第一拍摄模式的高度信息。
在一种可能的实现方式中,所述第一摄像头在不同高度拍摄至少两幅图像,得到拍摄的照片,还包括:
在判断出所述高度信息中不包括两个以上高度的情况下,移动所述第一摄像头至第三高度,所述第三高度为所述高度信息中设置的摄像头所在高度;
在所述第三高度拍摄在不同曝光参数下的图像,得到至少两幅图像;
将所述得到的至少两幅图像进行融合处理,得到拍摄的照片。
在一种可能的实现方式中,所述移动所述第一摄像头至第三高度之后,所述方法还包括:
当检测到用于调整所述第一摄像头高度的调整指令时,显示可调范围;
当检测到针对所述可调范围的操作时,将所述第一摄像头调整至所述操作对应高度。
在一种可能的实现方式中,所述显示所可调范围之后,所述方法还包括:
输出用于提示是否确认操作所述可调范围的提示信息;
检测针对所述提示信息输入的确认对所述可调范围的操作。
在一种可能的实现方式中,所述移动所述第一摄像头至第三高度之后,所述方法还包括:
当检测到用于调整所述第一摄像头高度的调整指令时,显示可调范围;
当检测到对所述第一摄像头的拖动时,显示所述第一摄像头拖动后的高度在所述可调范围中的高度。
在一种可能的实现方式中,所述方法还包括:
在所述第一摄像头拍摄的过程中,输出用于提示不能移动所述终端设备的提示信息。
在一种可能的实现方式中,所述第一拍摄模式为虚化拍摄模式,所述第一图像、所述第二图像得到图像中的主体信息以及景深信息,将所述第一图像和所述第二图像进行融合处理,从而合成虚化照片。
第二方面,本申请实施例提供了一种拍摄方法,该方法应用于设置有两个以上摄像头的终端设备,所述两个以上摄像头中存在一个或两个以上可升降的摄像头,包括:
显示拍摄界面;
接收拍摄指令;
控制第二摄像头在不同高度拍摄以及第三摄像头在不同高度拍摄,得到拍摄的照片,所述第二摄像头和所述第三摄像头中至少一个为可升降式摄像头。
在一种可能的实现方式中,所述第二摄像头为固定摄像头,所述第三摄像头为可升降式摄像头,所述接收拍摄指令后;
所述第三摄像头伸出至最高高度,并从最高高度往终端方向收缩,在收缩过程中同时不间断进行全景拍照;
将所述第三摄像头拍出的全景图像与所述第二摄像头拍出的图像融合,以实现全景拍照功能。
在一种可能的实现方式中,在所述照片融合过程中,以所述第二摄像头拍出的图像为所述全景图像的中心轴。
在一种可能的实现方式中,所述控制第二摄像头在不同高度拍摄以及第三摄像头在不同高度拍摄,得到拍摄的照片,包括:
根据拍摄模式与高度信息的对应关系获取第二拍摄模式对应的高度信息;
根据所述第二拍摄模式获取所述第二摄像头对应的第一高度信息以及所述第三摄像头对应的第二高度信息;
判断所述第一高度信息和所述第二高度信息是否均包括两个以上高度。
在一种可能的实现方式中,在判断出所述第一高度信息和所述第二高度信息均包括两个以上高度的情况下,控制所述第二摄像头在第三高度拍摄第一图像,控制所述第三摄像头在第四高度拍摄第二图像;
控制所述第二摄像头在第五高度拍摄第三图像,控制所述第三摄像头在第六高度拍摄第四图像,所述第三高度和所述第五高度为所述第一高度信息中的两个不同高度,所述第四高度和所述第六高度为所述第二高度信息中的两个不同高度;
将所述第一图像、所述第二图像、所述第三图像以及所述第四图像进行融合处理,得到拍摄的照片。
第三方面,本申请实施例提供了一种拍摄方法,所述方法应用于设置有一个或两个以上摄像头的终端设备,所述一个或两个以上摄像头中存在一个或两个以上可升降的摄像头,包括:
显示拍摄界面;
接收拍摄指令;
所述可升降的摄像头伸出至最高高度,并从最高高度往终端方向收缩,在收缩过程中不间断进行全景拍照。
在一种可能的实现方式中,所述终端设备除了所述可升降的摄像头外还包括固定摄像头;
在接收自动全景拍摄指令时,控制固定摄像头进行拍照输出固定图像,所述可升降摄像头输出全景图像,将所述固定图像与所述全景图像进行融合,以得到全景图像。
第四方面,本申请实施例提供了一种移动终端,所述移动终端设置有至少一个可升降摄像头,所述可升降摄像头沿第一方向往复移动,用以在第一方向上的第一位置、第二位置分别拍摄。
在一种可能的实现方式中,所述可升降摄像头沿第一方向超出移动终端壳体,用以在超出壳体且在第一方向上的第一位置、第二位置分别拍摄,得到拍摄的照片。
在一种可能的实现方式中,当所述可升降摄像头处于所述壳体外的任一位置并接收到对所述至少一个可升降摄像头的推动操作时,将所述至少一个可升降摄像头回缩至所述移动终端的壳体内。
在一种可能的实现方式中,在接收到针对所述至少一个可升降摄像头中的一个可升降摄像头在接收到用户的拖动操作时,将所述被拉动的摄像头移动至所述拖动操作的所在位置。
第五方面,本申请实施例提供了一种拍摄装置,包括:
第一显示单元,用于显示拍摄界面;
接收单元,用于接收拍摄指令;
控制单元,用于控制第一摄像头在不同高度拍摄至少两幅图像,得到拍摄的照片,所述第一摄像头为所述一个或两个以上可升降的摄像头中的一个。
在一种可能的实现方式中,所述装置还包括:
切换单元,用于当检测到选择第一拍摄模式的选择指令时,将拍摄模式由当前拍摄模式切换至所述第一拍摄模式。
在一种可能的实现方式中,所述控制单元,具体用于:
控制所述第一摄像头在第一高度拍摄第一图像;
控制所述第一摄像头在第二高度拍摄第二图像,所述第一高度和所述第二高度为高度信息中的两个不同高度;
将所述第一图像和所述第二图像进行融合处理,得到拍摄的照片。
在一种可能的实现方式中,所述高度信息还包括终端设备的方向,所述装置还包括:
第一获取单元,用于获取所述终端设备的方向,所述方向为竖直方向或水平方向;
第一输出单元,用于在判断出所述第一拍摄模式对应的高度信息中的方向与获取到的方向不同的情况下,输出用于提示调整终端设备方向的提示信息。
在一种可能的实现方式中,所述装置还包括:
第二获取单元,根据拍摄模式与高度信息的对应关系获取所述第一拍摄模式对应的高度信息;
第一判断单元,用于判断所述高度信息中是否包括两个以上高度。
在一种可能的实现方式中,所述装置还包括:
第二判断单元,用于判断所述第一拍摄模式是否对应两个以上高度信息;
第二显示单元,用于在判断出所述第一拍摄模式对应两个以上高度信息的情况下,在所述拍摄界面显示所述两个以上高度信息;
确定单元,用于当检测到所述两个以上高度信息中第一高度信息的选择操作时,将所述第一高度信息确定为所述第一拍摄模式的高度信息。
在一种可能的实现方式中,所述控制单元,还用于:
在判断出所述高度信息中不包括两个以上高度的情况下,移动所述第一摄像头至第三高度,所述第三高度为所述高度信息中设置的摄像头所在高度;
在所述第三高度拍摄在不同曝光参数下的图像,得到至少两幅图像;
将所述得到的至少两幅图像进行融合处理,得到拍摄的照片。
在一种可能的实现方式中,所述装置还包括:
第三显示单元,用于当检测到用于调整所述第一摄像头高度的调整指令时,显示可调范围;
调整单元,用于当检测到针对所述可调范围的操作时,将所述第一摄像头调整至所述操作对应高度。
在一种可能的实现方式中,所述装置还包括:
第二输出单元,用于输出用于提示是否确认操作所述可调范围的提示信息;
检测单元,用于检测针对所述提示信息输入的确认对所述可调范围的操作。
在一种可能的实现方式中,所述装置还包括:
第四显示单元,用于当检测到用于调整所述第一摄像头高度的调整指令时,显示可调范围;
第五显示单元,用于当检测到对所述第一摄像头的拖动时,显示所述第一摄像头拖动后的高度在所述可调范围中的高度。
在一种可能的实现方式中,所述装置还包括:
第三输出单元,用于在所述第一摄像头拍摄的过程中,输出用于提示不能移动所述终端设备的提示信息。
在一种可能的实现方式中,所述第一拍摄模式为虚化拍摄模式,所述第一图像、所述第二图像得到图像中的主体信息以及景深信息,将所述第一图像和所述第二图像进行融合处理,从而合成虚化照片。
第六方面,本申请实施例提供了一种拍摄装置,包括:
显示单元,用于显示拍摄界面;
接收单元,用于接收拍摄指令;
控制单元,用于控制第二摄像头在不同高度拍摄以及第三摄像头在不同高度拍摄,得到拍摄的照片,所述第二摄像头和所述第三摄像头中至少一个为可升降式摄像头。
在一种可能的实现方式中,所述装置还包括;
拍照单元,用于所述第三摄像头伸出至最高高度,并从最高高度往终端方向收缩,在收缩过程中同时不间断进行全景拍照;
融合单元,用于将所述第三摄像头拍出的全景图像与所述第二摄像头拍出的图像融合,以实现全景拍照功能。
在一种可能的实现方式中,在所述照片融合过程中,以所述第二摄像头拍出的图像为所述全景图像的中心轴。
在一种可能的实现方式中,所述控制单元,具体用于:
根据拍摄模式与高度信息的对应关系获取第二拍摄模式对应的高度信息;
根据所述第二拍摄模式获取所述第二摄像头对应的第一高度信息以及所述第三摄像头对应的第二高度信息;
判断所述第一高度信息和所述第二高度信息是否均包括两个以上高度。
在一种可能的实现方式中,所述控制单元,还用于:
在判断出所述第一高度信息和所述第二高度信息均包括两个以上高度的情况下,控制所述第二摄像头在第三高度拍摄第一图像,控制所述第三摄像头在第四高度拍摄第二图像;
控制所述第二摄像头在第五高度拍摄第三图像,控制所述第三摄像头在第六高度拍摄第四图像,所述第三高度和所述第五高度为所述第一高度信息中的两个不同高度,所述第四高度和所述第六高度为所述第二高度信息中的两个不同高度;
将所述第一图像、所述第二图像、所述第三图像以及所述第四图像进行融合处理,得到拍摄的照片。
第七方面,本申请提供了一种拍摄装置,包括:
显示单元,用于显示拍摄界面;
接收单元,用于接收拍摄指令;
控制单元,用于控制所述可升降的摄像头伸出至最高高度,并从最高高度往终端方向收缩,在收缩过程中不间断进行全景拍照。
在一种可能的实现方式中,所述终端设备除了所述可升降的摄像头外还包括固定摄像头;
所述控制单元,用于在接收自动全景拍摄指令时,控制固定摄像头进行拍照输出固定图像,所述可升降摄像头输出全景图像,将所述固定图像与所述全景图像进行融合,以得到全景图像。
第七方面,本申请实施例提供了一种终端设备,该终端设备包括处理器、存储器、输入设备、输出设备、摄像头,所述处理器、所述存储器、所述输入设备、所述输出设备、所述摄像头相互连接,其中,所述存储器用于存储支持所述终端设备执行上述进程识别方法的计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上述第一方面和/或第一方面任一种可能的实施方式所提供的方法。
第八方面,本申请实施例提供了一种终端设备,该终端设备包括处理器、存储器、输入设备、输出设备、摄像头,所述处理器、所述存储器、所述输入设备、所述输出设备、所述摄像头相互连接,其中,所述存储器用于存储支持所述终端设备执行上述进程识别方法的计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上述第二方面和/或第二方面任一种可能的实施方式所提供的方法。
第九方面,本申请实施例提供了一种终端设备,该终端设备包括处理器、存储器、输入设备、输出设备、摄像头,所述处理器、所述存储器、所述输入设备、所述输出设备、所述摄像头相互连接,其中,所述存储器用于存储支持所述终端设备执行上述进程识别方法的计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上述第三方面和/或第三方面任一种可能的实施方式所提供的方法。
第十方面,本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序包括程序指令,该程序指令当被处理器执行时使该处理器执行上述第一方面和/或第一方面任一种,第二方面和/或第二方面任一种以及第三方面和/或第三方面任一种可能的实施方式所提供的方法。
有益效果
在本申请实施例中,应用于设置有一个或多个摄像头中存在一个或多个可升降摄像头的终端设备,通过显示拍摄界面,接收拍摄指令,使可升降的摄像头在不同的高度拍摄多幅图像,终端设备对得到的多幅图像进行处理,将处理结果作为拍摄的照片,并且输出拍摄的照片,控制可升降摄像头替代多个摄像头拍摄的方法,能够不仅从硬件上能够减少接口的占用,使得终端设备电路结构简单,还可以从减少在软件上的调试时间,提高拍摄效率。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种拍摄方法的流程示意图;
图2是本申请实施例提供的另一种拍摄方法的流程示意图;
图3是本申请实施例提供的又一种拍摄方法的流程示意图;
图4是本申请实施例提供的一种拍摄装置的结构示意图;
图5是本申请实施例提供的另一种拍摄装置的结构示意图;
图6是本申请实施例提供的又一种拍摄装置的结构示意图;
图7是本申请实施例提供的一种终端设备的结构示意图;
图8是本申请实施例提供的另一种终端设备的结构示意图;
图9是本申请实施例提供的又一种终端设备的结构示意图。
本发明的最佳实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和 “包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/ 或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为 “当... 时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。
请参阅图1,图1是本申请实施例提供的一种拍摄方法的流程示意图。其中,该方法应用于设置有一个或多个摄像头的终端设备,上述一个或多个摄像头中存在一个或多个可升降的摄像头,如图1所示,该拍摄方法可以包括:
101、显示拍摄界面。
在一种可能的实现方式中,本申请实施例中的终端设备可以包括移动手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、移动互联网设备(Mobile Internet Device,MID)、智能穿戴设备(如智能手表、智能手环)等各种能够集成有多个摄像头的电子设备。
其中,该终端设备可以设置一个或多个摄像头,其中在单侧设置了一个的可升降的摄像头。其中,可升降的摄像头在未使用的时候在一个默认位置,这个默认位置是上述可升降摄像头在未启动任何拍摄软件时存在的位置,可以是下降到最低的位置。
在终端设备显示拍摄界面,可以是进入拍照软件后,将摄像头移动至一个启动位置,即启动位置区别与上述默认位置,为该摄像头准备拍摄的位置,其中该位置为在拍摄过程中摄像头可升降的最低点。在终端设备的拍摄界面中,可以显示拍摄按钮、一种或多种拍摄模式、一种或多种曝光参数模式、闪光灯开启按钮等等,这里对上述拍摄界面中显示的内容不做限定,具体地,拍摄模式包括虚化拍摄模式、3维(3D)拍摄模式、风景拍摄模式、人像拍摄模式、夜景模式等等。若接收到用户输入的拍摄指令时,在用户没有切换拍摄模式的情况下,将以当前相机的拍摄模式进行拍摄。
当检测到用户输入的用于选择第一拍摄模式的选择指令时,将拍摄模式由当前拍摄模式切换至上述第一拍摄模式,其中第一拍摄模式是用户选择的除当前拍摄模式以外的任一拍摄模式。
102、接收拍摄指令。
在一种可能的实现方式中,接收用户输入的拍摄指令,可以是在上述拍摄界面中点击拍摄按钮进行拍摄,也可以是当检测到上述拍摄界面中出现特定人物表情或者人物动作时,随即进行拍摄,还可以是定时拍摄,用户提前设置了在几点几分的时候自动打开相机进行拍摄,以及用户语音输入的拍摄指令等等,对输入拍摄指令的方式不做限定。
103、控制第一摄像头在不同高度拍摄多幅图像,上述第一摄像头为上述一个或多个可升降的摄像头中的一个。
在一种可能的实现方式中,拍摄装置控制上述可升降的摄像头在不同高度拍摄多幅图像。具体地,在用户选择了拍摄模式后,终端设备可以根据拍摄模式获取摄像头拍摄的高度信息,可以包括一个高度或者多个高度,若是该模式对应有多个高度,则从上述启动位置分别移动到多个高度的位置分别进行拍摄多幅图像,若是高度信息中值包含一个高度,则将摄像头移动到高度信息中的高度进行拍摄多幅图像,得到拍摄的图像。
其中,一个拍摄模式可以对应多个高度信息,在用户选择了当前拍摄模式时,获取摄像头拍摄的高度信息,高度信息中可以包括终端设备的方向信息,方向信息指终端设备是水平拍摄还是竖直拍摄。
当判断出当前拍摄模式对应多个高度信息的情况下,在拍摄界面显示多个高度信息,可以显示拍摄时摄像头的运动演示图,也可以显示拍摄效果图,这里不做限定。在显示多个高度信息后,提示用户从多个高度信息中选择一个高度信息作为当前拍摄模式对应的高度信息。
在确定了高度信息之后,获取终端设备当前的方向,可以由重力传感器获取终端设备的方向,获取到终端设备当前处于竖直方向还是水平方向,即横屏状态还是竖屏状态。在判断出当前拍摄模式对应的高度信息中的需要的方向与获取到的方向不同的情况下,输出用于提示用户调整终端设备方向的提示信息。
在间隔一定时间后,再次获取终端设备的方向,若再次获取到的终端设备的方向与当前拍摄模式对应的高度信息中的方向一致的情况下,则在显示界面中不显示提示信息,并等待接收用户的拍摄指令。
可选地,在间隔一定时间后,再次获取终端设备的方向,若再次检测到的方向与高度信息中的方向不一致,则持续输出提示信息。若在预设时间范围内并未检测到终端设备的方向与当前拍摄模式对应的高度信息中的方向一致,则确定当前无人操作终端设备,可以使当前终端设备的相机和显示屏休眠。
其中,在拍摄的过程中,不可避免地,若当前拍摄模式对应的高度信息中包含多个高度时,摄像头从启动位置依次移动至上述高度信息中的多个高度需要一定的时间,为了拍摄效果更好,终端设备在摄像头移动拍摄的过程中,是需要保持不动的。所以在摄像头的拍摄色过程中,输出用于提示用户不能移动终端设备的移动信息,其中,输出方式可以是在上述显示界面中以文字的形式输出的,也可以是以语音播报的形式输出的,还可以是闪烁灯光的方式提醒来提示用户,在这里输出提示信息的方式不做限定。
在一种可能的实现方式中,在得到多幅图像之后,需将得到的图像融合处理为一张照片,作为拍摄的照片。上述对多幅图像进行融合处理分为两类,一类是对上述摄像头在同一位置拍摄的不同曝光参数的多幅图像进行融合处理,另一类是对上述摄像头在不同位置拍摄的多幅图像进行融合处理,其中,上述摄像头可以在不同高度拍摄多幅图像进行两步融合,第一步融合成每一个高度对应一张图像,第二步将不同高度的图像再次进行融合处理,最终多幅图像处理的结果,得到一张图像,作为拍摄的照片。
具体地,上述摄像头在同一位置拍摄不同曝光参数的多幅图像可以是拍摄较低曝光参数和较高曝光参数的两幅图像,将两幅图像进行融合的时候,可以取在较低曝光度下的主体以及较高曝光度下的背景进行融合处理,也可以取在较高曝光度下的背景以及在较低曝光度下的主体进行融合,这里不做限定。
在一种可能的实现方式中,上述摄像头在同一位置拍摄多张图像时,可以是在接收到拍摄指令后,将摄像头移动至拍摄模式对应的高度进行拍摄,也可以是将摄像头移动至当前拍摄模式对应的高度后,当接收到用户输入的拍摄指令时,进行拍摄。
具体地,若用户认为摄像头在预设位置不能获得想要的拍摄效果时,需要移动摄像头至不处于预设拍摄高度时,可以手动输入调整指令,则终端设备显示可调范围,可调范围是指摄像头可以调整的最大范围。可调范围可以是几个固定的高度,也可以是一个可滑动操作的高度范围调节,这里不做限定,当检测到针对上述可调范围的用户操作时,将摄像头调整至上述用户操作对应高度。在调整摄像头的高度之前,在用户选定调节的高度时,可向用户输出用于提示用户是否确认操作上述可调范围的提示信息,例如,可以向用户输出“是否将摄像头调整至H1的位置?”,在检测到用户针对提示信息输入的确认操作时,将摄像头调整至用户选定的高度。
其中,调节摄像头的高度可以是从显示屏中显示的可调范围中选择用户需要调节到的高度,还可以是手动对摄像头进行拖动的操作。即在检测到用户输入的调整指令时,显示可调范围。在检测到对摄像头的拖动操作时,获取摄像头的高度,将该高度显示在当前界面的可调范围中。
具体地,上述摄像头在多个位置拍摄的多幅图像,首先可以在每个位置拍摄两幅曝光参数不同的照片,将两幅图像进行合成,得到每一个高度有一张图像,并且根据需求分别从不同高度的图像中获取不同的图像信息进行融合处理结果,得到拍摄的照片。
可选地,在对图像进行融合处理时,可以对图像的饱和度、亮度、色调等参数进行处理,这里不做限定。
在一种可能的实现方式中,将处理后的照片存储并输出在上述显示屏上,其中,上述终端设备中存储最后的处理结果,上述拍摄到的多张图像可以删除以便释放终端设备内存。
例如,若终端设备当前拍摄模式为普通拍摄模式,当检测到用户输入的用于选择第一拍摄模式即虚化拍摄模式的选择指令时,将普通拍摄模式切换成虚化拍摄模式时,终端设备根据拍摄模式与高度信息的对应关系获取上述虚化拍摄对应的高度信息,即摄像头需分别在H1和H2的高度分别拍摄多幅图像,分别得到图像中的主体信息以及景深信息,从而能够合成一张类似于单反相机大光圈拍摄出的虚化照片。当检测到用户输入的用于选择第二拍摄模式即三维拍摄模式的选择指令时,将普通拍摄模式切换成三维拍摄模式时,终端设备根据拍摄模式与高度信息的对应关系获取上述三维拍摄对应的高度信息。可以理解的是,在分别得到多幅图像时,分别进行虚化图像的融合处理以及三维图像的融合处理,得到虚化图像以及三维图像。
可选地,可以在拍摄界面输出用于提示用户的当前终端设备的拍摄模式的提示信息。
在一种可能的实现方式中,高度信息可以是在终端设备出厂设置中存储好的拍摄模式对应的高度信息,例如,人们在研发时发现终端设备的摄像头在H3的位置拍摄人物效果比较好,上述摄像头在H4的位置拍风景效果比较好,所以将H3的高度信息与人物拍摄模式对应起来,将H4的高度信息与风景拍摄模式对应起来,可以理解的是,上述仅为举例,包含但不限于上述拍摄模式。终端设备判断上述高度信息中是否包含多个高度,在判断出上述高度信息中包括多个高度的情况下,控制摄像头在第一高度拍摄第一图像;控制摄像头在第二高度拍摄第二图像,上述第一高度和上述第二高度为上述高度信息中的两个不同高度;将上述第一图像和上述第二图像确定为拍摄到的多幅图像,在得到多幅图像后,对多幅图像进行融合处理,得到当前拍摄模式下的照片。
在一种可能的实现方式中,摄像头分别在不同的高度拍摄多幅图像,按照顺序首先被移动至高度信息中的第一高度,拍摄一张图像,其中第一高度是不同于摄像头的默认位置和启动位置的,为按照预设的拍摄流程中的第一拍摄高度,可以是按照从高至低的顺序作为移动顺序,也可以是按照从低至高的顺序作为移动顺序,这里不做限定。
在上述摄像头拍摄的过程中,输出用于提示用户不能终端设备设备的提示信息,这里对输出的方式不做限定。
可选地,在拍摄的过程中,在上述终端设备的拍摄界面中可以显示参考线,以提示用户判断是否移动了终端设备。
在一种可能的实现方式中,在第一高度拍摄完毕后,移动上述摄像头至第二高度,其中第一高度与第二高度是两个不同的高度,其中,上述在摄像头移动至第二高度拍摄图像之后,还可以在第三高度、第四高度拍摄图像,这里不做限定。
在本申请实施例中,应用于设置有一个或多个摄像头中存在一个或多个可升降摄像头的终端设备,通过显示拍摄界面,接收用户输入的拍摄指令,使可升降的摄像头在不同的高度拍摄多幅图像,终端设备对得到的多幅图像进行处理,将处理结果作为拍摄的照片,并且输出拍摄的照片,控制可升降摄像头替代多个摄像头拍摄的方法,能够不仅从硬件上能够减少接口的占用,使得终端设备电路结构简单,还可以从减少在软件上的调试时间,提高拍摄效率。
本发明的实施方式
请参阅图2,图2是本申请实施例提供的另一种拍摄方法的流程示意图。其中,该方法应用于设置有两个以上摄像头的终端设备,所述两个以上摄像头中存在一个或两个以上可升降的摄像头,如图2所示,该拍摄方法可以包括:
201、显示拍摄界面。
202、接收拍摄指令。
其中,步骤201-步骤202的具体实现过程可参见上述图1所对应实施例中对步骤101-步骤102的描述,这里将不再继续进行赘述。
203、控制第二摄像头在不同高度拍摄以及第三摄像头在不同高度拍摄,得到拍摄的照片,所述第二摄像头和所述第三摄像头中至少一个为可升降式摄像头。
在一种可能的实现方式中,上述可升降摄像头中可包括至少一个可升降摄像头,当包括至少一个摄像头时,获取当前拍摄模式对应的高度信息,其中一个摄像头对应一个高度信息,一个拍摄模式也可以对应多个高度信息,当用户选择了拍摄模式之后,可进一步选择摄像头的高度信息,可以理解的是,每一个摄像头对应一个高度信息。
这里以两个可升降摄像头为例,第二摄像头以及第三摄像头。分别判断两个摄像头对应的高度信息中是否均包含多个高度,在判断出两个均包括多个高度的情况下,分别控制两个摄像头按照高度信息中的高度进行拍摄,即通过第二摄像头以及第三摄像头分别按照对应的高度信息进行拍摄,分别得到多张图像,以每个摄像头的高度信息中包含两个高度,则得到四张图像进行融合得到一张照片并输出。这里可升降摄像头的个数不受限定,并且高度信息中的高度的个数也不受限定,其中,第二摄像头对应的高度信息可以和第三摄像头对应的高度信息相同,也可以不同,这里不做限定。
在一种可能的实现方式中,以两个摄像头为例,若第二摄像头和第三摄像头中包含一个可升降的摄像头,而另一个摄像头为固定的摄像头,分别获取两个摄像头在当前拍摄模式下的高度信息,其中,固定的摄像头的高度信息为一个固定的高度,可以拍摄不同曝光参数下的图像,也可以拍摄一张图像,与另一个可升降的摄像头在不同高度下拍摄到的图像进行融合,得到拍摄的照片。
例如,上述第二摄像头为一个固定的摄像头,第三摄像头为可升降的摄像头,在当前拍摄模式为全景拍摄的情况下,接收到用户输入的拍摄的指令后,可以将上述第三摄像头伸出至最高高度,并从最高高度往终端方向收缩,在收缩过程中同时不间断进行全景拍照;并且第二摄像头拍摄一张固定位置的照片。需要说明的是,在得到多幅图像之后,进行融合时,将上述第三摄像头拍出的全景图像与上述第二摄像头拍出的图像融合,以实现全景拍照功能。其中,终端设备可以是竖直的拍摄,终端设备也可以是水平拍摄。在融合的过程中,可以将第二摄像头(即固定的摄像头)拍出的图像为上述全景图像为中心位置进行融合,也可以将第二摄像头拍摄的图像作为起始或者结束的位置图像进行融合,得到全景图像。
在本申请实施例中,应用于设置有一个或多个摄像头中存在一个或多个可升降摄像头的终端设备,通过接收用户输入的拍摄指令,使得至少一个可升降的摄像头分别拍摄多张图像进行融合得到拍摄的照片,能够从多张照片中获得景深信息,从而能够获得更好的拍摄效果。
在本申请实施例中,应用于设置有一个或多个摄像头中存在一个或多个可升降摄像头的终端设备,通过显示拍摄界面,接收用户输入的拍摄指令,使可升降的摄像头在不同的高度拍摄多幅图像,终端设备对得到的多幅图像进行处理,将处理结果作为拍摄的照片,并且输出拍摄的照片,控制可升降摄像头替代多个摄像头拍摄的方法,能够不仅从硬件上能够减少接口的占用,使得终端设备电路结构简单,还可以从减少在软件上的调试时间,提高拍摄效率。
请参阅图3,图3是本申请提出的又一种拍摄方法的流程示意图。其中,该方法应用于设置有一个或两个以上摄像头的终端设备,上述一个或两个以上摄像头中存在一个或两个以上可升降的摄像头。如图2所示,该拍摄方法可以包括:
301、显示拍摄界面。
302、接收拍摄指令。
其中,步骤301-步骤302的具体实现过程可参见上述图1所对应实施例中对步骤101-步骤102的描述,这里将不再继续进行赘述。
303、所述控制可升降的摄像头伸出至最高高度,并从最高高度往终端方向收缩,在收缩过程中不间断进行全景拍照。
在一种可能的实现方式中,在拍摄的过程中若设置拍摄的模式为全景模式,则在接收到用户输入的拍摄指令后,可以将上述可升降摄像头伸出至最高高度,并从最高高度往终端方向收缩,在收缩的过程中同时不间断拍摄,还可以在接收到用户输入的拍摄指令后,将上述可升降摄像头从最低高度不断升高,直到升高至最高的高度,其中在移动的过程中同时不间断的拍摄。还可以由用户选择起始高度和结束高度,在接收到拍摄指令后,从用户选取的起始高度移动至结束高度,在移动的过程中也不间断拍摄。
其中,在全景模式下,可以只控制一个摄像头,即上述可升降的摄像头,也可以控制两个摄像头,第二个摄像头为固定摄像头,在接收到用户输入的拍摄指令的情况下,可升降的摄像头发生位移并拍摄,固定摄像头拍摄一张固定图像,将固定的图像与可升降的摄像头拍摄的照片进行融合,得到全景图像。
在本申请实施例中,应用于设置有一个或多个摄像头中存在一个或多个可升降摄像头的终端设备,通过显示拍摄界面,接收用户输入的拍摄指令,使可升降的摄像头在不同的高度拍摄多幅图像,终端设备对得到的多幅图像进行处理,将处理结果作为拍摄的照片,并且输出拍摄的照片,控制可升降摄像头替代多个摄像头拍摄的方法,能够不仅从硬件上能够减少接口的占用,使得终端设备电路结构简单,还可以从减少在软件上的调试时间,提高拍摄效率。
请参阅图4,图4是本申请提出的一种拍摄装置结构示意图。如图4所示,该拍摄装置4000可以包括:
第一显示单元401,用于显示拍摄界面;
接收单元402,用于接收拍摄指令;
控制单元403,用于控制第一摄像头在不同高度拍摄至少两幅图像,得到拍摄的照片,所述第一摄像头为所述一个或两个以上可升降的摄像头中的一个。
在一种可能的实现方式中,所述装置4000还包括:
切换单元404,用于当检测到选择第一拍摄模式的选择指令时,将拍摄模式由当前拍摄模式切换至所述第一拍摄模式。
在一种可能的实现方式中,所述控制单元403,具体用于:
控制所述第一摄像头在第一高度拍摄第一图像;
控制所述第一摄像头在第二高度拍摄第二图像,所述第一高度和所述第二高度为高度信息中的两个不同高度;
将所述第一图像和所述第二图像进行融合处理,得到拍摄的照片。
在一种可能的实现方式中,所述高度信息还包括终端设备的方向,所述装置4000还包括:
第一获取单元405,用于获取所述终端设备的方向,所述方向为竖直方向或水平方向;
第一输出单元406,用于在判断出所述第一拍摄模式对应的高度信息中的方向与获取到的方向不同的情况下,输出用于提示调整终端设备方向的提示信息。
在一种可能的实现方式中,所述装置4000还包括:
第二获取单元407,根据拍摄模式与高度信息的对应关系获取所述第一拍摄模式对应的高度信息;
第一判断单元408,用于判断所述高度信息中是否包括两个以上高度。
在一种可能的实现方式中,所述装置4000还包括:
第二判断单元409,用于判断所述第一拍摄模式是否对应两个以上高度信息;
第二显示单元410,用于在判断出所述第一拍摄模式对应两个以上高度信息的情况下,在所述拍摄界面显示所述两个以上高度信息;
确定单元411,用于当检测到所述两个以上高度信息中第一高度信息的选择操作时,将所述第一高度信息确定为所述第一拍摄模式的高度信息。
在一种可能的实现方式中,所述控制单元403,还用于:
在判断出所述高度信息中不包括两个以上高度的情况下,移动所述第一摄像头至第三高度,所述第三高度为所述高度信息中设置的摄像头所在高度;
在所述第三高度拍摄在不同曝光参数下的图像,得到至少两幅图像;
将所述得到的至少两幅图像进行融合处理,得到拍摄的照片。
在一种可能的实现方式中,所述装置4000还包括:
第三显示单元412,用于当检测到用于调整所述第一摄像头高度的调整指令时,显示可调范围;
调整单元413,用于当检测到针对所述可调范围的操作时,将所述第一摄像头调整至所述操作对应高度。
在一种可能的实现方式中,所述装置4000还包括:
第二输出单元414,用于输出用于提示是否确认操作所述可调范围的提示信息;
检测单元415,用于检测针对所述提示信息输入的确认对所述可调范围的操作。
在一种可能的实现方式中,所述装置4000还包括:
第四显示单元416,用于当检测到用于调整所述第一摄像头高度的调整指令时,显示可调范围;
第五显示单元417,用于当检测到对所述第一摄像头的拖动时,显示所述第一摄像头拖动后的高度在所述可调范围中的高度。
在一种可能的实现方式中,所述装置4000还包括:
第三输出单元418,用于在所述第一摄像头拍摄的过程中,输出用于提示不能移动所述终端设备的提示信息。
在一种可能的实现方式中,所述第一拍摄模式为虚化拍摄模式,所述第一图像、所述第二图像得到图像中的主体信息以及景深信息,将所述第一图像和所述第二图像进行融合处理,从而合成虚化照片。
请参阅图5,图5是本申请提出的一种拍摄装置结构示意图。如图5所示,该拍摄装置5000可以包括:
显示单元501,用于显示拍摄界面;
接收单元502,用于接收用户输入的拍摄指令;
控制单元503,控制第二摄像头在不同高度拍摄以及控制第三摄像头在不同高度拍摄,得到拍摄的照片,上述第二摄像头和上述第三摄像头中为上述一个或多个可升降的摄像头中存在的至少一个可升降式摄像头。
在一种可能的实现方式中,上述装置5000还包括:
拍照单元504,用于上述第三摄像头伸出至最高高度,并从最高高度往终端方向收缩,在收缩过程中同时不间断进行全景拍照;
融合单元505,用于将上述第三摄像头拍出的全景图像与上述第二摄像头拍出的图像融合,以实现全景拍照功能。
在一种可能的实现方式中,上述装置5000还包括:
在一种可能的实现方式中,在所述照片融合过程中,以所述第二摄像头拍出的图像为所述全景图像的中心轴。
在一种可能的实现方式中,所述控制单元503,具体用于:
根据拍摄模式与高度信息的对应关系获取第二拍摄模式对应的高度信息;
根据所述第二拍摄模式获取所述第二摄像头对应的第一高度信息以及所述第三摄像头对应的第二高度信息;
判断所述第一高度信息和所述第二高度信息是否均包括两个以上高度。
在一种可能的实现方式中,所述控制单元503,还用于:
在判断出所述第一高度信息和所述第二高度信息均包括两个以上高度的情况下,控制所述第二摄像头在第三高度拍摄第一图像,控制所述第三摄像头在第四高度拍摄第二图像;
控制所述第二摄像头在第五高度拍摄第三图像,控制所述第三摄像头在第六高度拍摄第四图像,所述第三高度和所述第五高度为所述第一高度信息中的两个不同高度,所述第四高度和所述第六高度为所述第二高度信息中的两个不同高度;
将所述第一图像、所述第二图像、所述第三图像以及所述第四图像进行融合处理,得到拍摄的照片。
在本申请实施例中的装置,应用于设置有一个或多个摄像头中存在一个或多个可升降摄像头的终端设备,通过接收用户输入的拍摄指令,使得至少一个可升降的摄像头分别拍摄多张图像进行融合得到拍摄的照片,能够从多张照片中获得景深信息,从而能够获得更好的拍摄效果。
请参阅图6是本申请提出的又一种拍摄装置结构示意图。如图6所示,该拍摄装置6000可以包括:
显示单元601,用于显示拍摄界面;
接收单元602,用于接收用户输入的拍摄指令;
控制单元603,用于控制上述可升降的摄像头伸出至最高高度,并从最高高度往终端方向收缩,在收缩过程中同时不间断进行全景拍照。
在一种可能的实现方式中,所述终端设备除了所述可升降的摄像头外还包括固定摄像头;
所述控制单元603,用于在接收自动全景拍摄指令时,控制固定摄像头进行拍照输出固定图像,所述可升降摄像头输出全景图像,将所述固定图像与所述全景图像进行融合,以得到全景图像。
请参阅图7,图7是本申请实施例提供的一种终端设备的结构示意图。如图7所示,该终端设备7000可以包括:
一个或多个处理器701、输入设备702、输出设备703、存储器704及摄像头705。上述处理器701、输入设备702、输出设备703、存储器704以及摄像头705通过总线连接。输入设备702和输出设备703用于接收和发送数据。存储器704用于存储计算机程序,该计算机程序包括程序指令,处理器701用于执行存储器704存储的程序指令,其中,处理器701被配置用于调用程序指令执行以下步骤:
上述处理器701控制上述输出设备703显示拍摄界面;
上述处理器701控制上述输入设备702接收拍摄指令;
上述处理器701控制上述摄像头705在不同高度拍摄多幅图像,得到拍摄的照片,上述第一摄像头为上述一个或多个可升降的摄像头中的一个。
在一种可能的实现方式中,上述处理器701控制上述输入设备702接收用户输入的拍摄指令之前,上述处理器701还被调用执行如下步骤:
当检测到用户输入的用于选择第一拍摄模式的选择指令时,将拍摄模式由当前拍摄模式切换至上述第一拍摄模式。
在一种可能的实现方式中,上述处理器701控制上述摄像头705在不同高度拍摄多幅图像,得到拍摄的照片,包括:
控制上述第一摄像头在第一高度拍摄第一图像;
控制上述第一摄像头在第二高度拍摄第二图像,上述第一高度和上述第二高度为上述高度信息中的两个不同高度;
将上述第一图像和上述第二图像进行融合处理,得到拍摄的照片。
在一种可能的实现方式中,上述高度信息还包括终端设备的方向,上述处理器701还被调用执行如下步骤:
获取上述终端设备的方向,上述方向为竖直方向或水平方向;
上述处理器701控制上述输出设备703在判断出上述第一拍摄模式对应的高度信息中的方向与获取到的方向不同的情况下,输出用于提示用户调整终端设备方向的提示信息。
在一种可能的实现方式中,上述处理器701在控制上述第一摄像头在第一高度拍摄第一图像之前还包括以下步骤:
根据拍摄模式与高度信息的对应关系获取上述第一拍摄模式对应的高度信息;判断上述高度信息中是否包括多个高度。
在一种可能的实现方式中,上述处理器701上述根据拍摄模式与高度信息的对应关系获取上述第一拍摄模式对应的高度信息之后,上述处理器701还被调用执行如下步骤:
判断所述第一拍摄模式是否对应两个以上高度信息;
在判断出所述第一拍摄模式对应两个以上高度信息的情况下,在所述拍摄界面显示所述两个以上高度信息;
当检测到所述两个以上高度信息中第一高度信息的选择操作时,将所述第一高度信息确定为所述第一拍摄模式的高度信息。
在一种可能的实现方式中,上述处理器701控制上述摄像头705在不同高度拍摄多幅图像,得到拍摄的照片,还包括:
在判断出所述高度信息中不包括两个以上高度的情况下,移动所述第一摄像头至第三高度,所述第三高度为所述高度信息中设置的摄像头所在高度;
在所述第三高度拍摄在不同曝光参数下的图像,得到至少两幅图像;
将所述得到的至少两幅图像进行融合处理,得到拍摄的照片。
在一种可能的实现方式中,上述处理器701移动上述摄像头705至第三高度之后,还被调用执行如下步骤:
上述处理器701控制上述输出设备703当检测到用户输入的用于调整上述第一摄像头高度的调整指令时,显示可调范围;
当检测到针对上述可调范围的用户操作时,上述处理器701移动上述摄像头705调整至上述用户操作对应高度。
在一种可能的实现方式中,上述处理器701控制上述输出设备703显示所可调范围之后,还被调用执行如下步骤:
上述处理器701控制上述输出设备703输出用于提示用户是否确认操作上述可调范围的提示信息;
检测用户针对上述提示信息输入的确认对上述可调范围的操作。
在一种可能的实现方式中,上述处理器701移动上述摄像头705至第三高度之后,上述方法还包括:
上述处理器701控制上述输出设备703当检测到用户输入的用于调整上述第一摄像头高度的调整指令时,显示可调范围;
上述处理器701控制上述输出设备703当检测到对上述第一摄像头的拖动时,显示上述第一摄像头拖动后的高度在上述可调范围中的高度。
在一种可能的实现方式中,上述处理器401控制上述输出设备403还被调用执行如下步骤:
在上述第一摄像头拍摄的过程中,输出用于提示用户不能移动上述终端设备的提示信息。
在一种可能的实现方式中,上述第一拍摄模式为虚化拍摄模式,上述第一图像、上述第二图像得到图像中的主体信息以及景深信息,上述处理器701将上述第一图像和上述第二图像进行融合处理,从而合成虚化照片。
应当理解,在一些可行的实施方式中,上述处理器701可以是中央处理单元 (central processing unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器 (digital signal processor,DSP)、专用集成电路 (application specific integrated circuit,ASIC)、现成可编程门阵列 (field-programmable gate array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
该存储器704可以包括只读存储器和随机存取存储器,并向处理器701提供指令和数据。存储器704的一部分还可以包括非易失性随机存取存储器。例如,存储器704还可以存储设备类型的信息。
上述输入设备702可以包括触控屏,上述输出设备703可以包括音响、有显示功能的屏幕。上述摄像头705为上述可升降的摄像头。
具体实现中,上述终端设备可通过其内置的各个功能模块执行如上述图1中各个步骤所提供的实现方式,具体可参见上述各个步骤所提供的实现方式,在此不再赘述。
在本申请实施例中的终端设备,通过显示拍摄界面,接收用户输入的拍摄指令,使可升降的摄像头在不同的高度拍摄多幅图像,终端设备对得到的多幅图像进行处理,将处理结果作为拍摄的照片,并且输出拍摄的照片,控制可升降摄像头替代多个摄像头拍摄的方法,能够不仅从硬件上能够减少接口的占用,使得终端设备电路结构简单,还可以从减少在软件上的调试时间,提高拍摄效率。
请参阅图8,图8是本申请实施例提供的另一种终端设备的结构示意图。如图8所示,该终端设备8000可以包括:
一个或多个处理器801、输入设备802、输出设备803、存储器804及摄像头805。上述处理器801、输入设备802、输出设备803、存储器804以及摄像头805通过总线连接。输入设备802和输出设备803用于接收和发送数据。存储器804用于存储计算机程序,该计算机程序包括程序指令,处理器801用于执行存储器804存储的程序指令,其中,处理器801被配置用于调用程序指令执行以下步骤:
上述处理器801控制上述输出设备803显示拍摄界面;
上述处理器801控制上述输入设备802接收用户输入的拍摄指令;
上述处理器801控制上述摄像头805在不同高度拍摄以及控制第三摄像头在不同高度拍摄,得到拍摄的照片,上述第二摄像头和上述第三摄像头中为上述一个或多个可升降的摄像头中存在的至少一个可升降式摄像头。
在一种可能的实现方式中,上述第二摄像头为固定摄像头,上述第三摄像头为可升降式摄像头,上述接收拍摄指令后;
上述处理器801控制上述第三摄像头伸出至最高高度,并从最高高度往终端方向收缩,在收缩过程中同时不间断进行全景拍照;
将上述第三摄像头拍出的全景图像与上述第二摄像头拍出的图像融合,以实现全景拍照功能。
在一种可能的实现方式中,在上述照片融合过程中,上述处理器801以上述第二摄像头拍出的图像为上述全景图像的中心轴。
在一种可能的实现方式中,上述处理器801控制第二摄像头在不同高度拍摄以及控制第三摄像头在不同高度拍摄,得到拍摄的照片,包括:
根据拍摄模式与高度信息的对应关系获取第二拍摄模式对应的高度信息,上述第二拍摄模式为上述用户选择的拍摄模式;
根据上述第二拍摄模式获取上述第二摄像头对应的第一高度信息以及上述第三摄像头对应的第二高度信息;
判断上述第一高度信息和上述第二高度信息是否均包括多个高度。
在一种可能的实现方式中,在判断出上述第一高度信息和上述第二高度信息均包括多个高度的情况下,控制上述第二摄像头在第三高度拍摄第一图像,控制上述第三摄像头在第四高度拍摄第二图像;
控制上述第二摄像头在第五高度拍摄第三图像,控制上述第三摄像头在第六高度拍摄第四图像,上述第三高度和上述第五高度为上述第一高度信息中的两个不同高度,上述第四高度和上述第六高度为上述第二高度信息中的两个不同高度;
将上述第一图像、上述第二图像、上述第三图像以及上述第四图像进行融合处理,得到拍摄的照片。
在本申请实施例中的终端设备,应用于设置有一个或多个摄像头中存在一个或多个可升降摄像头的终端设备,通过接收用户输入的拍摄指令,使得至少一个可升降的摄像头分别拍摄多张图像进行融合得到拍摄的照片,能够从多张照片中获得景深信息,从而能够获得更好的拍摄效果。
请参阅图9,图9是本申请实施例提供的又一种终端设备的结构示意图。如图9所示,该终端设备9000可以包括:
一个或多个处理器901、输入设备902、输出设备903、存储器904及摄像头905。上述处理器901、输入设备902、输出设备903、存储器904以及摄像头905通过总线连接。输入设备902和输出设备903用于接收和发送数据。存储器904用于存储计算机程序,该计算机程序包括程序指令,处理器901用于执行存储器904存储的程序指令,其中,处理器901被配置用于调用程序指令执行以下步骤:
显示拍摄界面;
上述处理器901控制上述输入设备902接收拍摄指令;
上述处理器901控制上述可升降的摄像头伸出至最高高度,并从最高高度往终端方向收缩,在收缩过程中同时不间断进行全景拍照。
在一种可能的实现方式中,上述终端设备除了上述可升降的摄像头外还包括固定摄像头;上述处理器901在接收自动全景拍摄指令时,控制固定摄像头进行拍照输出固定图像,上述可升降摄像头输出全景图像,将上述固定图像与上述全景图像进行融合,以得到全景图像。
在本申请实施例中的终端设备,应用于设置有一个或多个摄像头中存在一个或多个可升降摄像头的终端设备,通过接收用户输入的拍摄指令,使得至少一个可升降的摄像头分别拍摄多张图像进行融合得到拍摄的照片,能够从多张照片中获得景深信息,从而能够获得更好的拍摄效果。
上述计算机可读存储介质可以是前述任一实施例提供的任务处理装置或者上述信息处理装置的内部存储单元,例如信息处理装置的硬盘或内存。该计算机可读存储介质也可以是该信息处理装置的外部存储设备,例如该信息处理装置上配备的插接式硬盘,智能存储卡(smart media card, SMC),安全数字(secure digital, SD)卡,闪存卡(flash card)等。上述计算机可读存储介质还可以包括磁碟、光盘、只读存储记忆体(read-only memory,ROM)或随机存储记忆体(random access memory,RAM)等。进一步地,该计算机可读存储介质还可以既包括该信息处理装置的内部存储单元也包括外部存储设备。该计算机可读存储介质用于存储该计算机程序以及该信息处理装置所需的其他程序和数据。该计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。
本申请的权利要求书和说明书及附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置展示该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。在本申请说明书和所附权利要求书中使用的术语“和/ 或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
以上所揭露的仅为本申请较佳实施例而已,当然不能以此来限定本申请之权利范围,因此依本申请权利要求所作的等同变化,仍属本申请所涵盖的范围。
工业实用性
在本申请实施例中,应用于设置有一个或多个摄像头中存在一个或多个可升降摄像头的终端设备,通过显示拍摄界面,接收拍摄指令,使可升降的摄像头在不同的高度拍摄多幅图像,终端设备对得到的多幅图像进行处理,将处理结果作为拍摄的照片,并且输出拍摄的照片,控制可升降摄像头替代多个摄像头拍摄的方法,能够不仅从硬件上能够减少接口的占用,使得终端设备电路结构简单,还可以从减少在软件上的调试时间,提高拍摄效率。

Claims (27)

  1. 一种拍摄方法,其中,所述方法应用于设置有一个或两个以上摄像头的终端设备,所述一个或两个以上摄像头中存在一个或两个以上可升降的摄像头,包括:
    显示拍摄界面;
    接收拍摄指令;
    控制第一摄像头在不同高度拍摄至少两幅图像,得到拍摄的照片,所述第一摄像头为所述一个或两个以上可升降的摄像头中的一个。
  2. 根据权利要求1所述的方法,其中,所述接收拍摄指令之前,所述方法还包括:
    当检测到选择第一拍摄模式的选择指令时,将拍摄模式由当前拍摄模式切换至所述第一拍摄模式。
  3. 根据权利要求2所述的方法,其中,所述控制第一摄像头在不同高度拍摄至少两幅图像,得到拍摄的照片,包括:
    控制所述第一摄像头在第一高度拍摄第一图像;
    控制所述第一摄像头在第二高度拍摄第二图像,所述第一高度和所述第二高度为高度信息中的两个不同高度;
    将所述第一图像和所述第二图像进行融合处理,得到拍摄的照片。
  4. 根据权利要求3所述的方法,其中,所述高度信息还包括终端设备的方向,所述方法还包括:
    获取所述终端设备的方向,所述方向为竖直方向或水平方向;
    在判断出所述第一拍摄模式对应的高度信息中的方向与获取到的方向不同的情况下,输出用于提示调整终端设备方向的提示信息。
  5. 根据权利要求3所述的方法,其中,在所述控制所述第一摄像头在第一高度拍摄第一图像之前还包括以下步骤:
    根据拍摄模式与高度信息的对应关系获取所述第一拍摄模式对应的高度信息;
    判断所述高度信息中是否包括两个以上高度。
  6. 根据权利要求5所述的方法,其中,所述根据拍摄模式与高度信息的对应关系获取所述第一拍摄模式对应的高度信息之后,所述方法还包括:
    判断所述第一拍摄模式是否对应两个以上高度信息;
    在判断出所述第一拍摄模式对应两个以上高度信息的情况下,在所述拍摄界面显示所述两个以上高度信息;
    当检测到所述两个以上高度信息中第一高度信息的选择操作时,将所述第一高度信息确定为所述第一拍摄模式的高度信息。
  7. 根据权利要求5所述的方法,其中,所述第一摄像头在不同高度拍摄至少两幅图像,得到拍摄的照片,还包括:
    在判断出所述高度信息中不包括两个以上高度的情况下,移动所述第一摄像头至第三高度,所述第三高度为所述高度信息中设置的摄像头所在高度;
    在所述第三高度拍摄在不同曝光参数下的图像,得到至少两幅图像;
    将所述得到的至少两幅图像进行融合处理,得到拍摄的照片。
  8. 根据权利要求7所述的方法,其中,所述移动所述第一摄像头至第三高度之后,所述方法还包括:
    当检测到用于调整所述第一摄像头高度的调整指令时,显示可调范围;
    当检测到针对所述可调范围的操作时,将所述第一摄像头调整至所述操作对应高度。
  9. 根据权利要求8所述的方法,其中,所述显示所可调范围之后,所述方法还包括:
    输出用于提示是否确认操作所述可调范围的提示信息;
    检测针对所述提示信息输入的确认对所述可调范围的操作。
  10. 根据权利要求7所述的方法,其中,所述移动所述第一摄像头至第三高度之后,所述方法还包括:
    当检测到用于调整所述第一摄像头高度的调整指令时,显示可调范围;
    当检测到对所述第一摄像头的拖动时,显示所述第一摄像头拖动后的高度在所述可调范围中的高度。
  11. 根据权利要求1-4任一项所述的方法,其中,所述方法还包括:
    在所述第一摄像头拍摄的过程中,输出用于提示不能移动所述终端设备的提示信息。
  12. 根据权利要求3所述的方法,其中,所述第一拍摄模式为虚化拍摄模式,所述第一图像、所述第二图像得到图像中的主体信息以及景深信息,将所述第一图像和所述第二图像进行融合处理,从而合成虚化照片。
  13. 一种拍摄方法,其中,所述方法应用于设置有两个以上摄像头的终端设备,所述两个以上摄像头中存在一个或两个以上可升降的摄像头,包括:
    显示拍摄界面;
    接收拍摄指令;
    控制第二摄像头在不同高度拍摄以及第三摄像头在不同高度拍摄,得到拍摄的照片,所述第二摄像头和所述第三摄像头中至少一个为可升降式摄像头。
  14. 根据权利要求13所述的方法,其中,所述第二摄像头为固定摄像头,所述第三摄像头为可升降式摄像头,所述接收拍摄指令后;
    所述第三摄像头伸出至最高高度,并从最高高度往终端方向收缩,在收缩过程中同时不间断进行全景拍照;
    将所述第三摄像头拍出的全景图像与所述第二摄像头拍出的图像融合,以实现全景拍照功能。
  15. 根据权利要求14所述的方法,其中,在所述照片融合过程中,以所述第二摄像头拍出的图像为所述全景图像的中心轴。
  16. 根据权利要求13所述的方法,其中,所述控制第二摄像头在不同高度拍摄以及第三摄像头在不同高度拍摄,得到拍摄的照片,包括:
    根据拍摄模式与高度信息的对应关系获取第二拍摄模式对应的高度信息;
    根据所述第二拍摄模式获取所述第二摄像头对应的第一高度信息以及所述第三摄像头对应的第二高度信息;
    判断所述第一高度信息和所述第二高度信息是否均包括两个以上高度。
  17. 根据权利要求16所述的方法,其中,在判断出所述第一高度信息和所述第二高度信息均包括两个以上高度的情况下,控制所述第二摄像头在第三高度拍摄第一图像,控制所述第三摄像头在第四高度拍摄第二图像;
    控制所述第二摄像头在第五高度拍摄第三图像,控制所述第三摄像头在第六高度拍摄第四图像,所述第三高度和所述第五高度为所述第一高度信息中的两个不同高度,所述第四高度和所述第六高度为所述第二高度信息中的两个不同高度;
    将所述第一图像、所述第二图像、所述第三图像以及所述第四图像进行融合处理,得到拍摄的照片。
  18. 一种拍摄方法,其中,所述方法应用于设置有一个或两个以上摄像头的终端设备,所述一个或两个以上摄像头中存在一个或两个以上可升降的摄像头,包括:
    显示拍摄界面;
    接收拍摄指令;
    所述控制可升降的摄像头伸出至最高高度,并从最高高度往终端方向收缩,在收缩过程中不间断进行全景拍照。
  19. 根据权利要求18所述的方法,其中,所述终端设备除了所述可升降的摄像头外还包括固定摄像头;
    在接收自动全景拍摄指令时,控制固定摄像头进行拍照输出固定图像,所述可升降摄像头输出全景图像,将所述固定图像与所述全景图像进行融合,以得到全景图像。
  20. 一种移动终端,其中,所述移动终端设置有至少一个可升降摄像头,所述可升降摄像头沿第一方向往复移动,用以在第一方向上的第一位置、第二位置分别拍摄。
  21. 根据权利要求20所述的移动终端,其中,所述可升降摄像头沿第一方向超出移动终端壳体,用以在超出壳体且在第一方向上的第一位置、第二位置分别拍摄,得到拍摄的照片。
  22. 根据权利要求21所述的移动终端,其中,当所述可升降摄像头处于所述壳体外的任一位置并接收到对所述至少一个可升降摄像头的推动操作时,将所述至少一个可升降摄像头回缩至所述移动终端的壳体内。
  23. 根据权利要求22所述的移动终端,其中,在接收到针对所述至少一个可升降摄像头中的一个可升降摄像头在接收到用户的拖动操作时,将所述被拉动的摄像头移动至所述拖动操作的所在位置。
  24. 一种拍摄装置,其中,包括:
    显示单元,用于显示拍摄界面;
    接收单元,用于接收拍摄指令;
    控制单元,用于控制所述拍摄装置中的第一摄像头在不同高度拍摄至少两幅图像,所述第一摄像头为所述可升降的摄像头;
    处理单元,用于对所述至少两幅图像进行融合处理,得到拍摄的照片;
    输出单元,用于输出所述拍摄的照片。
  25. 根据权利要求24所述的装置,其中,所述装置还包括:
    切换单元,用于当检测到选择第一拍摄模式的选择指令时,将拍摄模式由当前拍摄模式切换至所述第一拍摄模式,所述第一拍摄模式为除所述当前拍摄模式以外的任一拍摄模式。
  26. 一种移动终端,其中,包括处理器、存储器、输入设备、输出设备、摄像头,所述处理器、所述存储器、所述输入设备、所述输出设备、所述摄像头相互连接,其中,所述存储器用于存储支持所述拍摄装置执行上述进程识别方法的计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如权利要求1-12或权利要求13-17或权利要求18-19任一项所述的拍摄方法。
  27. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行如权利要求1-12或权利要求13-17或权利要求18-19任一项所述的拍摄方法。
PCT/CN2020/077663 2019-10-24 2020-03-03 一种拍摄方法、装置以及计算机可读存储介质 WO2021077650A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20803433.0A EP3840361B1 (en) 2019-10-24 2020-03-03 Photographing method and device, and computer-readable storage medium
US17/044,224 US11297230B2 (en) 2019-10-24 2020-03-03 Shooting method, device and computer-readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911016880.0 2019-10-24
CN201911016880.0A CN110740260B (zh) 2019-10-24 2019-10-24 一种拍摄方法、装置以及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2021077650A1 true WO2021077650A1 (zh) 2021-04-29

Family

ID=69271107

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/077663 WO2021077650A1 (zh) 2019-10-24 2020-03-03 一种拍摄方法、装置以及计算机可读存储介质

Country Status (4)

Country Link
US (1) US11297230B2 (zh)
EP (1) EP3840361B1 (zh)
CN (1) CN110740260B (zh)
WO (1) WO2021077650A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143527A (zh) * 2021-11-09 2022-03-04 长沙眸瑞网络科技有限公司 一种分段式拍摄指令控制方法、装置、系统、电子装置和存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278366B (zh) * 2018-03-14 2020-12-01 虹软科技股份有限公司 一种全景图像虚化方法、终端及计算机可读存储介质
CN110740260B (zh) * 2019-10-24 2023-04-07 深圳传音控股股份有限公司 一种拍摄方法、装置以及计算机可读存储介质
CN112291471B (zh) * 2020-10-28 2022-06-10 维沃移动通信有限公司 拍摄控制方法、拍摄控制装置、电子设备和可读存储介质
CN114390219B (zh) * 2022-01-18 2023-11-14 Oppo广东移动通信有限公司 拍摄方法、装置、电子设备及存储介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002122425A (ja) * 2000-10-13 2002-04-26 Toyota Motor Corp 周辺認識装置
CN101472119A (zh) * 2007-12-26 2009-07-01 奥林巴斯映像株式会社 图像文件生成装置、图像文件生成方法
CN103167227A (zh) * 2011-12-14 2013-06-19 深圳富泰宏精密工业有限公司 全景拍照系统及方法
CN109639975A (zh) * 2018-12-24 2019-04-16 维沃移动通信有限公司 一种拍摄控制方法及移动终端
CN109889709A (zh) * 2019-02-21 2019-06-14 维沃移动通信有限公司 一种摄像头模组控制系统、方法及移动终端
CN110177217A (zh) * 2019-06-28 2019-08-27 Oppo广东移动通信有限公司 图像拍摄方法、装置、电子设备及存储介质
CN110278366A (zh) * 2018-03-14 2019-09-24 虹软科技股份有限公司 一种全景图像虚化方法、终端及计算机可读存储介质
CN110740260A (zh) * 2019-10-24 2020-01-31 深圳传音控股股份有限公司 一种拍摄方法、装置以及计算机可读存储介质

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202488510U (zh) 2012-02-20 2012-10-10 中兴通讯股份有限公司 移动设备
WO2014179540A1 (en) * 2013-05-01 2014-11-06 Bio-Rad Laboratories, Inc. Adjustable digital microscope display
CN105518427B (zh) * 2013-08-19 2018-06-12 实耐宝公司 改进的自标定多相机定位系统
CN103986872A (zh) * 2014-05-28 2014-08-13 宇龙计算机通信科技(深圳)有限公司 一种终端及终端拍摄方法
CN105120179B (zh) * 2015-09-22 2019-01-11 三星电子(中国)研发中心 一种拍照方法和装置
CN108322644A (zh) * 2018-01-18 2018-07-24 努比亚技术有限公司 一种图像处理方法、移动终端以及计算机可读存储介质
CN108833621A (zh) * 2018-06-06 2018-11-16 宇龙计算机通信科技(深圳)有限公司 移动终端及其控制方法
CN109194875A (zh) 2018-10-31 2019-01-11 维沃移动通信有限公司 一种拍摄方法及电子设备
US11356586B2 (en) * 2019-03-16 2022-06-07 Microsoft Technology Licensing, Llc Panoramic camera system
CN110213414B (zh) 2019-05-31 2021-04-16 维沃移动通信(杭州)有限公司 一种驱动控制方法、终端及计算机可读存储介质

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002122425A (ja) * 2000-10-13 2002-04-26 Toyota Motor Corp 周辺認識装置
CN101472119A (zh) * 2007-12-26 2009-07-01 奥林巴斯映像株式会社 图像文件生成装置、图像文件生成方法
CN103167227A (zh) * 2011-12-14 2013-06-19 深圳富泰宏精密工业有限公司 全景拍照系统及方法
CN110278366A (zh) * 2018-03-14 2019-09-24 虹软科技股份有限公司 一种全景图像虚化方法、终端及计算机可读存储介质
CN109639975A (zh) * 2018-12-24 2019-04-16 维沃移动通信有限公司 一种拍摄控制方法及移动终端
CN109889709A (zh) * 2019-02-21 2019-06-14 维沃移动通信有限公司 一种摄像头模组控制系统、方法及移动终端
CN110177217A (zh) * 2019-06-28 2019-08-27 Oppo广东移动通信有限公司 图像拍摄方法、装置、电子设备及存储介质
CN110740260A (zh) * 2019-10-24 2020-01-31 深圳传音控股股份有限公司 一种拍摄方法、装置以及计算机可读存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3840361A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143527A (zh) * 2021-11-09 2022-03-04 长沙眸瑞网络科技有限公司 一种分段式拍摄指令控制方法、装置、系统、电子装置和存储介质
CN114143527B (zh) * 2021-11-09 2023-05-26 长沙眸瑞网络科技有限公司 一种分段式拍摄指令控制方法、装置、系统、电子装置和存储介质

Also Published As

Publication number Publication date
EP3840361B1 (en) 2023-05-10
CN110740260A (zh) 2020-01-31
US11297230B2 (en) 2022-04-05
EP3840361A4 (en) 2021-06-30
US20210258483A1 (en) 2021-08-19
EP3840361A1 (en) 2021-06-23
CN110740260B (zh) 2023-04-07

Similar Documents

Publication Publication Date Title
WO2021077650A1 (zh) 一种拍摄方法、装置以及计算机可读存储介质
US10334153B2 (en) Image preview method, apparatus and terminal
US9282242B2 (en) Method and electric device for taking panoramic photograph
EP3346329B1 (en) Image processing method and apparatus
CN109218606B (zh) 摄像控制设备、其控制方法及计算机可读介质
US10158798B2 (en) Imaging apparatus and method of controlling the same
US9838609B2 (en) Image capturing apparatus, control apparatus and control method for controlling zooming function
KR20140106779A (ko) 이미지 촬영장치 및 방법
WO2015161561A1 (zh) 一种终端基于多摄像头实现合照的方法及装置
WO2013155804A1 (zh) 一种照片拍摄方法及电子设备
US9706074B2 (en) Method and apparatus for capturing images in an electronic device
WO2019214574A1 (zh) 图像拍摄方法、装置及电子终端
EP2323102A1 (en) Image capturing aid
CN107124551A (zh) 一种移动终端拍照自动合成的方法、存储装置及移动终端
CN106791390B (zh) 广角自拍实时预览方法及用户终端
WO2022022633A1 (zh) 图像显示方法、装置和电子设备
CN111083371A (zh) 拍摄方法和电子设备
WO2021136035A1 (zh) 拍照方法、装置、存储介质及电子设备
WO2018196854A1 (zh) 一种拍照方法、拍照装置及移动终端
WO2021185374A1 (zh) 一种拍摄图像的方法及电子设备
CN103813103A (zh) 一种移动终端的防抖动拍照方法及装置
JP2010041365A (ja) 撮像装置
EP2890116A1 (en) Method of displaying a photographing mode by using lens characteristics, computer-readable storage medium of recording the method and an electronic apparatus
CN104735353A (zh) 一种拍摄全景照片的方法及装置
WO2018184408A1 (zh) 视频拍摄方法及装置

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2020803433

Country of ref document: EP

Effective date: 20201117

NENP Non-entry into the national phase

Ref country code: DE