WO2020238380A1 - 全景拍摄方法及终端设备 - Google Patents

全景拍摄方法及终端设备 Download PDF

Info

Publication number
WO2020238380A1
WO2020238380A1 PCT/CN2020/081822 CN2020081822W WO2020238380A1 WO 2020238380 A1 WO2020238380 A1 WO 2020238380A1 CN 2020081822 W CN2020081822 W CN 2020081822W WO 2020238380 A1 WO2020238380 A1 WO 2020238380A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
camera
shooting
image
preset
Prior art date
Application number
PCT/CN2020/081822
Other languages
English (en)
French (fr)
Inventor
毛红根
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2020238380A1 publication Critical patent/WO2020238380A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/698Control of cameras or camera modules for achieving an enlarged field of view, e.g. panoramic image capture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • 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/2624Studio 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 for obtaining an image which is composed of whole input images, e.g. splitscreen
    • 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

Definitions

  • the embodiments of the present disclosure relate to the field of communication technologies, and in particular, to a panoramic shooting method and terminal equipment.
  • the terminal device can take a panoramic photo through the panoramic shooting function.
  • Panoramic shooting refers to the combination of multiple photos taken into a panoramic photo.
  • the basic shooting principle is to search for the edges of two pictures and overlap the areas with the closest imaging effect to complete the automatic splicing of the pictures.
  • the photographer can take photos of the subject in different positions to obtain multiple photos, and then the terminal device combines the multiple photos into a panoramic photo.
  • the baseline changes during each shooting, resulting in cross-section and blurring of the panoramic photos synthesized by stitching, which results in poor display effects of the panoramic photos.
  • the embodiments of the present disclosure provide a panoramic shooting method and terminal device to solve the problem of poor display effect of panoramic photos taken by the terminal device in the related art.
  • the embodiments of the present disclosure provide a panoramic shooting method, which is applied to a terminal device, the terminal device includes a rotatable camera, and the method includes: receiving a user's first input during the shooting process; and responding to the first input.
  • the camera is controlled to rotate N times in the first direction, and each time the camera pauses to rotate, an image is captured; and the captured N images are stitched into a target panoramic image, where N is an integer greater than 1.
  • embodiments of the present disclosure provide a terminal device, the terminal device includes a rotatable camera, and the terminal device includes a receiving module, a control module, a photographing module, and a processing module.
  • the receiving module is used to receive the first input of the user during the shooting process.
  • the control module is used for controlling the camera to rotate N times in the first direction in response to the first input received by the receiving module.
  • the shooting module is used to shoot an image every time the control module controls the camera to pause rotation, and N is an integer greater than 1.
  • the processing module is used for stitching the N images taken by the photographing module into a target panoramic image.
  • the embodiments of the present disclosure provide a terminal device.
  • the terminal device includes a processor, a memory, and a computer program stored on the memory and running on the processor.
  • the computer program implements the foregoing first Steps in the panoramic shooting method on the one hand.
  • embodiments of the present disclosure provide a computer-readable storage medium storing a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the panoramic shooting method in the first aspect are implemented.
  • the user's first input may be received during the shooting process; in response to the first input, the rotatable camera of the control terminal device is sequentially rotated in the first direction N times, and each time the camera is paused After the rotation, an image is taken; and the taken N images are spliced into a target panoramic image, where N is an integer greater than 1.
  • the embodiments of the present disclosure can control the camera to automatically rotate N times when the user triggers the shooting of a panoramic image (for example, the user selects N continuous shooting), and take one shot after each rotation is paused, and after turning N times in sequence Obtain N images, thereby synthesizing the N images into a panoramic image.
  • the terminal device intelligently controls the panoramic shooting, without the user manually operating the terminal device, thereby avoiding the displacement of the terminal device from affecting the synthesis effect of the panoramic image.
  • FIG. 1 is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present disclosure
  • FIG. 2 is one of the schematic diagrams of the panoramic shooting method provided by the embodiment of the disclosure.
  • FIG. 3 is a second schematic diagram of a panoramic shooting method provided by an embodiment of the disclosure.
  • FIG. 4 is the third schematic diagram of the panoramic shooting method provided by the embodiments of the disclosure.
  • FIG. 5 is one of the schematic diagrams of the interface of the panoramic shooting method application provided by the embodiment of the disclosure.
  • FIG. 6 is the second schematic diagram of the interface of the panoramic shooting method application provided by the embodiments of the disclosure.
  • FIG. 7 is the third schematic diagram of the interface of the panoramic shooting method application provided by the embodiments of the disclosure.
  • FIG. 8 is the fourth schematic diagram of the interface of the panoramic shooting method application provided by the embodiments of the disclosure.
  • FIG. 9 is a fourth schematic diagram of a panoramic shooting method provided by an embodiment of the disclosure.
  • FIG. 10 is a fifth schematic diagram of a panoramic shooting method provided by an embodiment of the disclosure.
  • FIG. 11 is a sixth schematic diagram of a panoramic shooting method provided by an embodiment of the disclosure.
  • FIG. 12 is one of schematic structural diagrams of a terminal device provided by an embodiment of the disclosure.
  • FIG. 13 is a second structural diagram of a terminal device provided by an embodiment of the disclosure.
  • FIG. 14 is a schematic diagram of hardware of a terminal device provided by an embodiment of the disclosure.
  • first and second in the specification and claims of the present disclosure are used to distinguish different objects, rather than to describe a specific order of objects.
  • first input and the second input are used to distinguish different inputs, rather than to describe a specific order of input.
  • words such as “exemplary” or “for example” are used as examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present disclosure should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
  • multiple refers to two or more than two, for example, multiple processing units refers to two or more processing units, etc.; multiple An element refers to two or more elements, etc.
  • Panoramic shooting refers to taking a horizontal ⁇ degree (for example, 0 degree ⁇ ⁇ 360 degrees) and vertical ⁇ degree (for example, 0 degree ⁇ ⁇ 180 degrees) shooting with a certain point as the center, and stitching multiple images into A panoramic image.
  • the panoramic shooting method involves an image shooting method and an image stitching method.
  • the embodiments of the present disclosure provide a panoramic shooting method and terminal device, which can receive a user's first input during the shooting process; in response to the first input, control the rotatable camera of the terminal device to rotate N times in a first direction in sequence, And every time the camera pauses to rotate, an image is captured; and the captured N images are spliced into a target panoramic image, where N is an integer greater than 1.
  • the embodiments of the present disclosure can control the camera to automatically rotate N times when the user triggers the shooting of a panoramic image (for example, the user selects N continuous shooting), and take one shot after each rotation is paused, and after turning N times in sequence Obtain N images, thereby synthesizing the N images into a panoramic image.
  • the terminal device intelligently controls the panoramic shooting, without the user manually operating the terminal device, thereby avoiding the displacement of the terminal device from affecting the synthesis effect of the panoramic image.
  • the terminal device in the embodiment of the present disclosure may be a terminal device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present disclosure.
  • the following uses the Android operating system as an example to introduce the software environment applied by the panoramic shooting method provided by the embodiments of the present disclosure.
  • FIG. 1 it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present disclosure.
  • the architecture of the Android operating system includes 4 layers, namely: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
  • the system runtime layer includes a library (also called a system library) and an Android operating system runtime environment.
  • the library mainly provides various resources needed by the Android operating system.
  • the Android operating system operating environment is used to provide a software environment for the Android operating system.
  • the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
  • developers can develop software programs that implement the panoramic shooting method provided in the embodiments of the present disclosure based on the system architecture of the Android operating system as shown in FIG.
  • the shooting method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the terminal device can implement the panoramic shooting method provided by the embodiment of the present disclosure by running the software program in the Android operating system.
  • the terminal device in the embodiment of the present disclosure may be a mobile terminal or a non-mobile terminal.
  • the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant
  • the non-mobile terminal may be a personal computer (PC), a television (television, TV), a teller machine or a self-service machine, etc., which are not specifically limited in the embodiment of the present disclosure.
  • the execution subject of the panoramic shooting method provided in the embodiments of the present disclosure may be the aforementioned terminal device, or may be a functional module and/or functional entity in the terminal device that can implement the panoramic shooting method, and the specifics may be determined according to actual usage requirements.
  • the embodiments of the present disclosure are not limited.
  • a terminal device is taken as an example, and the panoramic shooting method provided in the embodiments of the present disclosure is exemplarily described in conjunction with various drawings.
  • an embodiment of the present disclosure provides a panoramic shooting method, which is applied to a terminal device including a rotatable camera, and the panoramic shooting method may include the following steps 200 to 203.
  • Step 200 During the shooting process, the terminal device receives the user's first input.
  • the user can trigger the opening of the panoramic function in the camera application (also called panoramic mode) through the first input ), and then the terminal device can use the panoramic function to shoot and obtain panoramic images (also called panoramic photos).
  • the first input of the user may be the user's selection input of the "panorama” option or the “panorama” control in the camera application, or the user's input to the panoramic shortcut keys in the terminal device.
  • the touch input may also be any other input that meets actual use requirements, and may be specifically determined according to actual use requirements, which is not limited in the embodiments of the present disclosure.
  • the above-mentioned panoramic shooting may be a basic panoramic shooting, or a fun panoramic shooting (that is, the panoramic image captured by the fun panoramic function can show the effect of the object "clone", etc.), and may also include any other possibilities Panoramic shots.
  • the panoramic shooting method provided in the embodiments of the present disclosure can be applied to basic panoramic shooting, interesting panoramic shooting, and other possible panoramic shooting, which can be specifically determined according to actual usage requirements, and the embodiments of the present disclosure are not limited.
  • Step 201 In response to the first input, the terminal device controls the camera to rotate in the first direction N times in sequence.
  • Step 202 The terminal device takes an image every time the camera stops rotating.
  • the camera of the aforementioned terminal device is a rotatable camera, and the rotatable camera can be centered at a certain point and rotated in a certain direction by a specific angle ⁇ (for example, 0 degree ⁇ 360 degrees).
  • the terminal device can control the rotation of the camera of the terminal device, and shoot after the camera pauses rotation, and then rotates again after the camera has finished shooting. Shoot again after the camera has been rotated, and so on, until the shooting process ends after the camera has rotated N times.
  • the camera rotates once to capture one image; the camera rotates twice to capture two images; and so on, the camera rotates N times to capture N images.
  • the number of rotations of the aforementioned camera (that is, the aforementioned N times) can be set by default by the terminal device, or can be customized by the user (for example, the user can select the number of continuous shooting in the panorama function setting ).
  • N may be an integer greater than 1, for example, N may be 2, or 5, or 10, or may be other values that meet actual usage requirements. Specifically, it can be determined according to actual usage requirements, and the embodiment of the present disclosure does not limit it.
  • the terminal device can control the camera to rotate 5 times in the first direction.
  • the above-mentioned first direction may be a counterclockwise direction, or a clockwise direction, or any other direction that meets actual use requirements, which can be specifically determined according to actual use requirements.
  • the implementation of the present disclosure The examples are not limited.
  • the above-mentioned first direction may be set by the terminal device by default, or may be selected by the user in the panoramic function setting, which may be specifically determined according to actual use requirements, and the embodiment of the present disclosure does not limit it.
  • Step 203 The terminal device stitches the captured N images into a target panoramic image.
  • the terminal device may use image splicing technology or algorithm to splice the N images obtained by shooting into a target panoramic image.
  • the above-mentioned image stitching technology is to spatially match and align a group of overlapping image sequences, and form a complete, high-definition new image of a wide-view scene containing the information of each image sequence after resampling and synthesis. technology.
  • image stitching technology please refer to the description of the image stitching technology in the related art, which will not be repeated here.
  • the target panoramic image formed by splicing N images can present a picture with a wider field of view.
  • the target panoramic image synthesized by splicing N images presents a picture with a wider field of view, and the objects in the picture can show a "clone" effect.
  • the terminal device can control the camera to rotate in the first direction in response to the first input of the user, and take an image after the camera pauses to rotate. Then, the terminal device controls the camera to continue to rotate in the first direction, and after the camera pauses to rotate, the target object is photographed again to obtain another image.
  • the terminal device can control the camera to rotate N times in the first direction, and each time the camera pauses to rotate, an image is captured, so after the camera rotates N times, N images are finally obtained, and the terminal device will The N images obtained by shooting are spliced into a target panoramic image.
  • the terminal device can control the camera to automatically rotate and shoot automatically during the panoramic shooting process, it is possible to avoid camera shake caused by the user manually rotating the terminal device.
  • the embodiments of the present disclosure control the automatic rotation of the camera to keep the baseline of multiple shots basically the same during the panoramic shooting process, which can prevent the panoramic image from appearing torn, blur, etc., thereby improving the display effect of the panoramic image obtained by stitching. .
  • the embodiment of the present disclosure can avoid the user's multiple triggering of the shooting operation by controlling the camera to automatically rotate and automatically shoot, and also avoid the need for multiple people to participate in the interesting panoramic shooting (in the embodiment of the present disclosure, a single person is sufficient. Complete shooting), which can improve the convenience and flexibility of users using terminal equipment for interesting panoramic shooting.
  • the panoramic shooting method provided by the embodiments of the present disclosure can receive the first input of the user during the shooting process; in response to the first input, the rotatable camera of the terminal device is controlled to rotate in the first direction N times in sequence, and the camera After each time the rotation is paused, an image is taken; and the captured N images are stitched into a target panoramic image, where N is an integer greater than 1.
  • the embodiments of the present disclosure can control the camera to automatically rotate N times when the user triggers the shooting of a panoramic image (for example, the user selects N continuous shooting), and take one shot after each rotation is paused, and after turning N times in sequence Obtain N images, thereby synthesizing the N images into a panoramic image.
  • the terminal device intelligently controls the panoramic shooting, without the user manually operating the terminal device, thereby avoiding the displacement of the terminal device from affecting the synthesis effect of the panoramic image.
  • the panoramic shooting method provided by the embodiment of the present disclosure may further include the following step 204.
  • the above-mentioned step 203 can be specifically implemented by the following step 203a.
  • Step 204 After each image is taken, the terminal device detects whether the photographing process is over.
  • the terminal device controls the camera to continue rotating in the first direction, and after the camera pauses to rotate, another image is captured; further, After the other image is captured, the terminal device continues to detect whether the shooting process is over; and so on, after each image is captured, the terminal device detects whether the shooting process is over until the terminal device detects the end of the shooting process.
  • the terminal device detects the end of the shooting process, the terminal device splices the multiple images obtained by shooting to obtain the target panoramic image (that is, the following step 203a).
  • step 204 may be specifically implemented by the following step 204a.
  • Step 204a The terminal device detects whether the number of captured images is equal to N.
  • the terminal device may compare the number of captured images with the preset number N to detect the relationship between the number of captured images and the preset number N. Specifically, when the number of captured images is equal to the preset number N, the terminal device can determine that the shooting process is over; when the number of captured images is less than the preset number N, the terminal device can determine that the shooting process is not complete. End.
  • the above-mentioned preset number N may be the number of continuous shooting of panoramic shooting selected by the user, or the number of continuous shooting of panoramic shooting set by the terminal device by default, which can be specifically determined according to actual usage requirements. Not limited.
  • the user can select 5-continuous shooting panorama, 8-continuous shooting panorama, or any other continuous shooting panorama.
  • the preset number is 5
  • the terminal device detects that the number of captured images reaches 5 (that is, the number of captured images is equal to the preset number)
  • the shooting process is over, then the shooting ends after the terminal device has captured 5 images.
  • the terminal device may also determine that the shooting process is over when the object is not scanned within the preset range, thus realizing the intelligent control of the panoramic shooting by the terminal device.
  • the preset range may be a preset duration range or a preset angle range.
  • the terminal device may determine that the shooting process is over.
  • the terminal device can determine that the shooting process is over .
  • the method for the terminal device in the embodiment of the present disclosure to detect whether the shooting is over includes but is not limited to the above methods, and may also include any other method that may meet actual usage requirements.
  • the terminal device may detect a specific gesture of a target object. After finishing shooting.
  • the method for the terminal device to detect whether the shooting is over may be specifically determined according to actual usage requirements, which is not limited in the embodiment of the present disclosure.
  • Step 203a In the case of detecting the end of the shooting process, the terminal device stitches the captured N images into a target panoramic image.
  • the terminal device can detect whether the shooting process is over after each image is captured, and in the case of detecting the end of the shooting process, the terminal device stitches the captured N images into Panoramic image of the target. In this way, the user does not need to operate the terminal device in the process of shooting the panoramic image, thereby realizing the intelligent control of the panoramic shooting by the terminal device.
  • the terminal device can control the camera to rotate N times in the first direction, and each time the camera pauses to rotate, an image is captured.
  • the embodiment of the present disclosure provides two control methods to control the camera to pause rotation, that is, after the camera recognizes an object, the terminal device controls the camera to pause rotation; the terminal device periodically controls the camera to pause rotation.
  • the two control methods provided by the embodiments of the present disclosure will be described in detail below through the following first implementation manner and second implementation manner, respectively.
  • the panoramic shooting method provided in the embodiment of the present disclosure further includes the following steps 205 and 206.
  • the above-mentioned step 202 can be specifically implemented by the following step 202a.
  • Step 205 During each rotation of the camera, the terminal device recognizes the object through the camera.
  • step 205 may be specifically implemented by the following step 205a.
  • Step 205a The terminal device recognizes whether the image collected by the camera contains facial feature information or preset facial feature information.
  • the aforementioned facial feature information can refer to any facial feature information
  • the aforementioned preset facial feature information can refer to facial feature information preset by the user
  • the terminal device can recognize the image collected by the camera. Whether it contains facial feature information, or whether the image collected by the camera contains preset facial feature information can also be identified, which can be specifically determined according to actual use requirements, and the embodiment of the present disclosure does not limit it.
  • the terminal device controls the camera to pause rotation. If the image collected by the camera does not contain facial feature information or preset facial feature information, the terminal device continues to control the camera to rotate until the camera recognizes the object.
  • the embodiments of the present disclosure do not limit the direction in which the terminal device recognizes the object.
  • the terminal device may recognize in a clockwise direction, or may recognize in a counterclockwise direction, or may start to recognize from any position.
  • Step 206 When the target object is recognized through the camera, the terminal device controls the camera to pause rotation.
  • the above-mentioned target object may be a human, an animal, a still life, or any other possible object, which may be specifically determined according to actual use requirements, and the embodiment of the present disclosure does not limit it.
  • the target object as a person as an example, once the camera recognizes the same person, the terminal device controls the camera to pause rotation.
  • the terminal device After the terminal device recognizes the target object, if the target object disappears from the view frame, the terminal device can recognize the object again.
  • the terminal device may determine the target object in at least one of the following (1), (2), (3) and (4).
  • the terminal device determines a person (for example, through algorithms such as face, legs, and shape) as the target object. If the terminal device detects a person (through algorithms such as face, leg, shape, etc.), the terminal device determines that the target object is recognized.
  • a person for example, through algorithms such as face, legs, and shape
  • the terminal device After the terminal device scans the photos in the album, it determines the face that appears most frequently as the target object. If the human face recognized when the camera rotates matches the target object, the terminal device determines that the target object is recognized.
  • the terminal device After scanning the photos in the album, the terminal device determines all the scanned faces as target objects. If the face recognized when the camera rotates matches the target object, the terminal device determines that the target object is recognized.
  • the terminal device determines the object selected by the user as the target object. If the object recognized when the camera rotates matches the target object, the terminal device determines that the target object is recognized. Among them, the user can select the target object through any of the following a, b, and c.
  • the terminal device automatically scans the album, and sorts the scanned faces by the number of appearances or shooting time, etc. (For example, the terminal device can display all the faces, or only the most recent or frequent people Face, for the user to choose), then the user can select an object from the sorted photos and determine it as the target object.
  • the user can select an object from the existing photos in the album as the target object.
  • the user can select an object in the viewfinder as the target object.
  • the terminal device may display a user selection interface 30.
  • the user selection interface 30 includes a sub-interface 31.
  • the sub-interface 31 displays objects (such as face images) that are intelligently detected by the terminal device after scanning the album. , For the user to choose a subject for panoramic shooting.
  • the user selection interface 30 also includes a control 32 and a control 33. If the user inputs to the control 32, as shown in FIG. 6, the terminal device displays an album interface 34 in which multiple photos in the album are displayed. If the user selects a photo from a plurality of photos, as shown in FIG. 7, the terminal device displays a photo 35 for the user to select an object to be shot in a panoramic view from the photo 35. If the user inputs to the control 33, as shown in FIG. 8, the terminal device turns on the camera and displays a viewing frame 36 for the user to select a panoramic shot object from the preview image displayed in the viewing frame 36.
  • Step 202a After the camera pauses to rotate each time, the terminal device shoots the target object to obtain an image.
  • the terminal device can control the camera to rotate N times in the first direction, and during each rotation of the camera, the terminal device recognizes the object through the camera, and when the target object is recognized through the camera, the terminal device Control the camera to pause rotation, and after each pause of the camera rotation, take a picture of the target object and get an image.
  • the terminal device may control the camera to rotate in the first direction in response to the user's first input, and during the camera rotation, the terminal device recognizes the object through the camera, and when the target object is recognized through the camera, the terminal device Control the camera to pause rotation, and after the camera pauses to rotate, shoot the target object to get an image. Then, the terminal device controls the camera to continue to rotate in the first direction, and during the camera rotation, the terminal device continues to recognize the object through the camera, and when the target object is recognized through the camera, the terminal device controls the camera to pause the rotation, and After pausing the rotation, shoot the target object again to get another image.
  • the terminal device can control the camera to rotate in the first direction N times in sequence, and take an image of the target object after each pause of the camera rotation, so that after the camera rotates N times, N images are finally obtained.
  • the terminal device controls the camera to pause rotation and take an image, which realizes the intelligent panoramic shooting of the terminal device, which can improve the flexibility and convenience of the terminal device to take panoramic images.
  • the above example takes the terminal device to perform step 205 and step 206 before step 202 as an example.
  • the embodiments of the present disclosure include but are not limited to the foregoing execution sequence, since the terminal device in the embodiment of the present disclosure After the camera is controlled to stop rotating, the camera is controlled to continue to rotate. Therefore, the terminal device can also perform step 205 and step 206 after step 202.
  • the panoramic shooting method provided in the embodiment of the present disclosure further includes the following steps 207 and 208.
  • Step 207 The terminal device receives the second input of the user on the first face image.
  • the first face image may be a pre-stored image or a preview image displayed in a view frame.
  • the above-mentioned first face image may be an image stored in the gallery of the terminal device, or may be a preview image displayed in the viewfinder of the camera application of the terminal device, or may be the terminal device according to the images in the gallery.
  • the face image obtained by the screening of each image may be any other input that meets actual use requirements, and may be specifically determined according to actual use requirements, which is not limited in the embodiments of the present disclosure.
  • the second input of the user may be a click input (for example, a single-click input or a double-click input), a sliding input, or any other possible form of input.
  • the specific input may be based on actual conditions. The use requirements are determined, and the embodiments of the present disclosure are not limited.
  • the user's selection and input of images in the gallery of the terminal device may be the user's selection and input of images in the viewfinder of the camera application of the terminal device, or it may be the user's input to the terminal device according to multiple images in the gallery. Selection input of face images obtained by image screening.
  • Step 208 In response to the second input, the terminal device determines the facial feature information corresponding to the first facial image as preset facial feature information.
  • the terminal device can perform image analysis on the first face image to obtain the facial feature information contained in the first face image, and then The facial feature information is determined to be preset facial feature information. Further, during the panoramic shooting process, the terminal device can identify whether the image collected by the camera contains preset facial feature information, and in the case of identifying that the image contains preset facial feature information, the terminal device controls the camera to pause rotation To perform shooting operations.
  • the terminal device controls the camera to automatically rotate and capture the target object. There is no need for the target object to move a fixed angle each time.
  • the target object can be moved in any order and any angle for shooting, avoiding the difficulty of moving a fixed angle each time.
  • the terminal device may prompt the user to start shooting.
  • the prompt mode of the terminal device may be: prompt by flash; prompt by colored lights on the camera or on the back of the terminal device; prompt by voice, etc. Specifically, it can be determined according to actual usage requirements, and the embodiment of the present disclosure does not limit it.
  • the terminal device controls the color light to light green to remind the user; (2) If the user is detected too far from the terminal device If the terminal device is far away, the terminal device controls the colored light to turn on yellow to indicate (where the farther the user is from the terminal device, the lighter the light turns to purple); if the terminal device detects that the user is too close to the device, the terminal device controls the colored light to turn on gray Prompt (Among them, the closer the distance between the user and the terminal device, the more black the light will turn on; if it is detected that the distance between the user and the terminal device is moderate, the terminal device controls the colored light to turn green; (3) When the countdown is about to shoot The terminal device controls the colored light to flash green (or red), and the flashing frequency increases with time; (4) After the shooting is completed, the terminal device controls the colored light to flash blue (for example, keep on) to remind the user that the shooting is complete .
  • the terminal device controls the colored light to flash blue (for example, keep on) to remind the user that the shooting is complete .
  • the camera recognizes the target object in a counterclockwise direction from the starting position. After the target object is recognized, the camera pauses to rotate (that is, it is fixed) and lights up in green Prompt, after 3 seconds, the indicator light flashes for 5 seconds to prompt the start of shooting, and the blue light will turn on for 5 seconds after the shooting is completed and wait for the user to the next shooting point. The camera continues to rotate counterclockwise to identify the target object, and continues shooting until the shooting process ends.
  • the user does not need to operate the terminal device, and the next behavior of the user is prompted by the color of the light or voice, etc., and the shooting can be completed by a single person, which simplifies the complexity of interesting panoramic shooting.
  • a single person can shoot interesting panoramic images with better results.
  • the panoramic shooting method provided in the embodiment of the present disclosure further includes the following step 209.
  • Step 209 During each rotation of the camera, the terminal device controls the camera to rotate a preset angle, and controls the camera to pause rotation.
  • the above-mentioned preset angle may be 10 degrees, or 20 degrees, or 30 degrees, or any other angle that meets actual use requirements, which can be specifically determined according to actual use requirements
  • the embodiments of the present disclosure are not limited.
  • the terminal device can control the camera to rotate in the first direction N times in sequence, and during each rotation of the camera, the terminal device detects whether the angle of the camera rotation is equal to the preset angle.
  • the terminal device controls the camera to pause rotation, and after each pause of the camera rotation, an image is captured. In this way, after the terminal device controls the camera to rotate N times in the first direction, the terminal device can finally obtain N images. Further, the terminal device may stitch the N images obtained by shooting into a target panoramic image.
  • the terminal device can control the camera to rotate to the shooting start position (assuming the camera rotates clockwise, the shooting start position can be the starting point of the camera clockwise rotation).
  • the terminal device may prompt the user that the terminal device is ready.
  • a preset period of time which can be several seconds or tens of seconds
  • the terminal device can prompt the user to start shooting.
  • the terminal device can control the camera to rotate a preset angle, and after the camera pauses to rotate, the terminal device prompts the user to start shooting. This cycle continues until the camera rotates N times, and N images are captured. In the case where it is determined that the shooting process is finished, the terminal device stitches the N images obtained by shooting into interesting panoramic images.
  • the user does not need to manually operate the terminal device, which realizes the intelligent control of the panoramic shooting by the terminal device, thereby preventing the displacement of the device from affecting the final panoramic image effect.
  • the terminal device prompts the user in a manner: via a flashlight prompt; via a colored light on the camera or on the back of the terminal device; via voice prompts, etc.
  • the manner in which the terminal device prompts the user may also be any other manner that meets actual use requirements, and may be specifically determined according to actual use requirements, which is not limited in the embodiment of the present disclosure.
  • the color light prompt as an example: (1) When the camera is rotated to the corresponding position and ready, it will be bright green to remind the user; (2) When the countdown is about to take a picture, it will be bright green (or red) flashing prompt, and the flashing frequency It increases with the decrease of time; (3) After the shooting is completed, the user is reminded that the shooting is completed with a steady blue light.
  • the user does not need to operate the terminal device, and the next behavior of the user is prompted by the color of the light or voice, etc., and the shooting can be completed by a single person, which simplifies the complexity of interesting panoramic shooting.
  • a single person can shoot interesting panoramic images with better results.
  • the terminal device controls the camera to pause. After the rotation, the camera is controlled to continue to rotate, so the terminal device can also perform step 209 after step 202.
  • the terminal device controls the camera to pause rotation.
  • the terminal device can output a prompt message to remind the user that the camera is about to take pictures automatically, or prompt the user to take pictures after adjusting the position.
  • the panoramic shooting method provided by the embodiment of the present disclosure further includes the following step 210.
  • Step 210 The terminal device outputs the first prompt information or the second prompt information.
  • the above-mentioned first prompt information may be used to indicate that the target distance is not within the preset distance range
  • the above-mentioned second prompt information may be used to indicate that the target distance is within the preset distance range and the shooting operation will be performed after the preset time period.
  • the target distance is the distance between the identified object and the terminal device.
  • the above-mentioned first prompt information may be prompted by voice, or may be prompted by a flash, or may be prompted by a color indicator light.
  • the prompt mode of the second prompt information and the first prompt information may be the same or different.
  • step 210 can be specifically implemented by the following step 210a or step 210b.
  • Step 210a In the case of outputting the first prompt information, the terminal device controls the indicator lamp to continuously emit light in a first color for a first preset time period, and the first color is used to indicate that the target distance is not within the preset distance range.
  • the user can learn how to adjust the distance and orientation relationship between the target object and the terminal device through the first prompt information, so as to improve the accuracy of the terminal device when capturing panoramic images.
  • Step 210b In the case of outputting the second prompt information, the terminal device controls the indicator light to continuously emit light in a second color for a second preset time period, and the second color is used to indicate that the target distance is within the preset distance range and is adjusted. The focus is completed; and the control indicator light flashes in a third color within the third preset time period. The third color is used to indicate that the shooting operation will be performed after the third time period; and after the shooting operation is performed, the control indicator light is in the first Within four preset periods of time, the fourth color continues to emit light, and the fourth color is used to indicate the completion of shooting.
  • the terminal device outputs the second prompt information
  • the user can learn that the distance and orientation relationship between the target object and the terminal device is appropriate through the second prompt information, and the terminal device will shoot the target object.
  • the user does not need to operate the terminal device in the process of shooting the panoramic image, thereby realizing the intelligent control of the panoramic shooting by the terminal device, which can improve the flexibility and convenience of the terminal device in shooting the panoramic image.
  • step 210 is performed after step 209.
  • the embodiments of the present disclosure include but are not limited to the foregoing manners, and FIG. 11 may also be combined Figure 4 or Figure 9 and so on (that is, the terminal device may also perform step 210 after step 206), which can be specifically determined according to actual usage requirements, which is not limited in the embodiment of the present disclosure.
  • the terminal device may first detect whether the distance between the target object and the terminal device is appropriate, and then determine whether to output the first prompt information or the second prompt information according to the detection result. For example, if the detection result is that the distance between the target object and the terminal device is not appropriate, the terminal device outputs first prompt information; if the detection result is that the distance between the target object and the terminal device is appropriate, the terminal device outputs second prompt information .
  • the terminal device may detect whether the distance between the target object and the terminal device is appropriate according to the comparison result of the size of the object in the view frame with respect to the size of the view frame.
  • the panoramic shooting method provided in the embodiment of the present disclosure further includes the following step 211 or step 212.
  • Step 211 The terminal device detects whether the target distance is within the preset distance range according to the ratio between the height of the object in the viewing frame of the terminal device and the height of the viewing frame and the inclusion relationship of the first ratio range.
  • the terminal device can determine that the distance between the object and the terminal device is appropriate without adjusting the object and The distance of the terminal device. In this case, the terminal device can output the aforementioned second prompt information. If the ratio between the height of the object in the viewing frame of the terminal device and the height of the viewing frame is not within the first ratio range, the terminal device can determine that the distance between the object and the terminal device is not appropriate, and accordingly need to adjust the distance between the object and the terminal device. Distance, in this case, the terminal device can output the above-mentioned first prompt information.
  • the above-mentioned first ratio range may be a numerical range determined according to empirical values, and may be specifically determined according to actual use requirements, which is not limited in the embodiments of the present disclosure.
  • the first ratio range may be [0.4, 0.7].
  • Step 212 The terminal device detects whether the target distance is within a preset distance range according to the inclusion relationship between the area ratio of the object in the viewing frame and the second ratio range.
  • the terminal device can determine that the distance between the object and the terminal device is appropriate without adjusting the distance between the object and the terminal device. In this case, the terminal device can output the aforementioned second prompt information. If the area of the object in the viewfinder frame is not within the second ratio range, the terminal device can determine that the distance between the object and the terminal device is inappropriate, and the distance between the object and the terminal device needs to be adjusted accordingly. In this case Next, the terminal device can output the above-mentioned first prompt information.
  • the above-mentioned second ratio range may be a numerical range determined according to empirical values, and may be specifically determined according to actual use requirements, which is not limited in the embodiments of the present disclosure.
  • the second ratio range may be [10%, 20%].
  • an embodiment of the present disclosure provides a terminal device 700 that includes a rotatable camera.
  • the terminal device 700 may include a receiving module 701, a control module 702, a photographing module 703, and a processing module 704.
  • the receiving module 701 is configured to receive the user's first input during the shooting process.
  • the control module 702 is configured to respond to the first input received by the receiving module 701 to control the camera to rotate in the first direction N times in sequence.
  • the photographing module 703 is used to photograph an image every time the control module 702 controls the camera to pause rotation.
  • the processing module 704 is configured to stitch the N images taken by the photographing module 703 into a target panoramic image. Wherein, N can be an integer greater than 1.
  • the terminal device 700 provided in the embodiment of the present disclosure may further include a detection module 705.
  • the detection module 705 is configured to detect whether the shooting process is over after the shooting module 703 shoots an image each time.
  • the processing module 704 is specifically configured to stitch the N captured images into a target panoramic image when the detection module 705 detects the end of the shooting process.
  • the detection module 705 is specifically configured to detect whether the number of captured images is equal to N; and when the number of captured images is equal to N, determine the end of the shooting process; when the number of captured images is less than N, determine the shooting process Not over.
  • the processing module 704 is further configured to use the camera to identify an object during each rotation of the camera.
  • the control module 702 is further configured to control the camera to pause rotation when the processing module 704 recognizes the target object through the camera.
  • the photographing module 703 is specifically configured to photograph the target object to obtain an image.
  • the processing module 704 is specifically configured to identify whether the image collected by the camera contains facial feature information or preset facial feature information.
  • the receiving module 701 is further configured to receive the user's second input of the first face image before receiving the user's first input.
  • the first face image may be a pre-stored image or a display in the viewfinder. Preview the image.
  • the processing module 704 is further configured to, in response to the second input received by the receiving module 701, determine the facial feature information corresponding to the first facial image as the aforementioned preset facial feature information.
  • control module 702 is further configured to control the camera to rotate a preset angle during each rotation of the camera, and to control the camera to pause rotation.
  • the detection module 705 is further configured to output first prompt information after the control module 702 controls the camera to pause rotation, where the first prompt information is used to indicate that the target distance is not within a preset distance range; or output second prompt information, The second prompt information is used to indicate that the target distance is within the preset distance range, and the shooting operation will be performed after the preset time period.
  • the target distance may be the distance between the recognized object and the terminal device 700.
  • the terminal device 700 may be provided with an indicator light.
  • the control module 702 is further configured to control the indicator lamp to continuously emit light in a first color within the first preset time period when the detection module 705 outputs the first prompt information, and the first color is used to indicate that the target distance is not at the preset distance Within range.
  • control module 702 is further configured to control the indicator lamp to continuously emit light in a second color for a second preset time period when the detection module 705 outputs the second prompt information, and the second color is used to indicate the target distance Within the preset distance range and the focus adjustment is completed; the control indicator light flashes in a third color within the third preset time period, and the third color is used to indicate that the shooting operation will be performed after the third time period; after the shooting operation is performed , The control indicator light continuously emits light in a fourth color within the fourth preset time period, and the fourth color is used to indicate the completion of shooting.
  • the detection module 705 is further configured to, before outputting the first prompt information or outputting the second prompt information, according to the ratio between the height of the object in the viewing frame of the terminal device and the height of the viewing frame and the inclusion of the first ratio range Relationship, detecting whether the distance between the object and the terminal device is within the preset distance range; or detecting the distance between the object and the terminal device based on the inclusion relationship between the area ratio of the object in the finder frame and the second ratio range Whether it is within the preset distance range.
  • the terminal device provided in the embodiment of the present disclosure can implement each process implemented by the terminal device in the foregoing method embodiment, and to avoid repetition, details are not described herein again.
  • the terminal device provided by the embodiment of the present disclosure can receive the first input of the user during the shooting process; in response to the first input, the rotatable camera of the terminal device is controlled to rotate in the first direction N times in sequence, and each time the camera After the rotation is paused for the second time, one image is taken; and the taken N images are stitched into the target panoramic image, where N is an integer greater than 1.
  • the embodiments of the present disclosure can control the camera to automatically rotate N times when the user triggers the shooting of a panoramic image (for example, the user selects N continuous shooting), and take one shot after each rotation is paused, and after turning N times in sequence Obtain N images, thereby synthesizing the N images into a panoramic image.
  • the terminal device intelligently controls the panoramic shooting without the need for the user to manually operate the terminal device, thereby avoiding the displacement of the terminal device from affecting the synthesis effect of the panoramic image.
  • FIG. 14 is a schematic diagram of the hardware structure of a terminal device that implements various embodiments of the present disclosure.
  • the terminal device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, and a memory 809 , Processor 810, and power supply 811.
  • a radio frequency unit 801 includes a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, and a memory 809 , Processor 810, and power supply 811.
  • the terminal device may include more or fewer components than shown in the figure, or a combination of certain components, or different components. Layout.
  • terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and ped
  • the user input unit 807 is used to receive the first input of the user during the shooting process; the processor 810 is used to control the camera to rotate N times in the first direction in response to the first input received by the user input unit 807 , And each time the camera pauses to rotate, an image is captured, and the captured N images are stitched into a target panoramic image; where N is an integer greater than 1.
  • the embodiment of the present disclosure provides a terminal device, the terminal device includes a rotatable camera, the terminal device can receive a user's first input during the shooting process; in response to the first input, control the camera to rotate in a first direction sequentially N times, and each time the camera pauses to rotate, an image is taken; and the taken N images are spliced into a target panoramic image, where N is an integer greater than 1.
  • the embodiments of the present disclosure can control the camera to automatically rotate N times when the user triggers the shooting of a panoramic image (for example, the user selects N continuous shooting), and take one shot after each rotation is paused, and after turning N times in sequence Obtain N images, thereby synthesizing the N images into a panoramic image.
  • the terminal device intelligently controls the panoramic shooting, without the user manually operating the terminal device, thereby avoiding the displacement of the terminal device from affecting the synthesis effect of the panoramic image.
  • the radio frequency unit 801 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 810; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 801 can also communicate with the network and other devices through a wireless communication system.
  • the terminal device 800 provides users with wireless broadband Internet access through the network module 802, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 803 can convert the audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into audio signals and output them as sounds. Moreover, the audio output unit 803 may also provide audio output related to a specific function performed by the terminal device 800 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 804 is used to receive audio or video signals.
  • the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042.
  • the graphics processor 8041 is used to capture still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 806.
  • the image frame processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or sent via the radio frequency unit 801 or the network module 802.
  • the microphone 8042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 801 for output in the case of a telephone call mode.
  • the terminal device 800 also includes at least one sensor 805, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 8061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 8061 and the display panel 8061 when the terminal device 800 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of the terminal device (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensor 805 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 806 is used to display information input by the user or information provided to the user.
  • the display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 807 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the terminal device.
  • the user input unit 807 includes a touch panel 8071 and other input devices 8072.
  • the touch panel 8071 also known as the touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 8071 or near the touch panel 8071. operating).
  • the touch panel 8071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 810, the command sent by the processor 810 is received and executed.
  • the touch panel 8071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 807 may also include other input devices 8072.
  • other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 8071 can cover the display panel 8061.
  • the touch panel 8071 detects a touch operation on or near it, it transmits it to the processor 810 to determine the type of the touch event.
  • the type of event provides corresponding visual output on the display panel 8061.
  • the touch panel 8071 and the display panel 8061 are used as two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 8071 and the display panel 8061 can be integrated
  • the implementation of the input and output functions of the terminal device is not specifically limited here.
  • the interface unit 808 is an interface for connecting an external device with the terminal device 800.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 808 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the terminal device 800 or can be used to connect to the terminal device 800 and external devices. Transfer data between devices.
  • the memory 809 can be used to store software programs and various data.
  • the memory 809 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones.
  • the memory 809 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 810 is the control center of the terminal device. It uses various interfaces and lines to connect the various parts of the entire terminal device, runs or executes the software programs and/or modules stored in the memory 809, and calls the data stored in the memory 809. , Perform various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole.
  • the processor 810 may include one or more processing units; optionally, the processor 810 may integrate an application processor and a modem processor.
  • the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 810.
  • the terminal device 800 may also include a power source 811 (such as a battery) for supplying power to various components.
  • a power source 811 such as a battery
  • the power source 811 may be logically connected to the processor 810 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the terminal device 800 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present disclosure further provides a terminal device, including a processor 810 as shown in FIG. 14, a memory 809, a computer program stored in the memory 809 and running on the processor 810, the computer program being
  • the processor 810 implements each process of the above-mentioned panoramic shooting method embodiment during execution, and can achieve the same technical effect. To avoid repetition, details are not described herein again.
  • the embodiments of the present disclosure also provide a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above-mentioned panoramic shooting method embodiment is realized, and the same technology can be achieved. The effect, in order to avoid repetition, will not be repeated here.
  • the computer-readable storage medium may include read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
  • the technical solution of the present disclosure essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ) Includes several instructions to make a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods disclosed in the various embodiments of the present disclosure.
  • a terminal device which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

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

Abstract

本公开实施例提供了一种全景拍摄方法及终端设备。该方法应用于包括可转动的摄像头的终端设备,该方法包括:在拍摄过程中,接收用户的第一输入;并响应于该第一输入,控制摄像头沿第一方向依次转动N次,并在该摄像头每次暂停转动后,拍摄一个图像;且将拍摄的N个图像拼接成目标全景图像,N为大于1的整数。

Description

全景拍摄方法及终端设备
相关申请的交叉引用
本申请主张在2019年5月31日在中国提交的中国专利申请号为201910470520.1的优先权,其全部内容通过引用包含于此。
技术领域
本公开实施例涉及通信技术领域,尤其涉及一种全景拍摄方法及终端设备。
背景技术
随着终端设备的应用范围越来越广,终端设备的拍摄功能越来越强大。例如,终端设备可以通过全景拍摄功能,拍摄得到全景照片。
全景拍摄是指将所拍摄的多个照片拼成一张全景照片,其基本拍摄原理是搜索两张图片的边缘部分,并将成像效果最为接近的区域加以重合,以完成图片的自动拼接。以拍摄趣味全景照片为例,拍摄者可以拍摄被拍摄者位于不同方位时的照片,以得到多个照片,然后终端设备再将多个照片合成一个全景照片。
然而,在针对不同方位拍摄多个照片的过程中,每次拍摄时基准线发生变化,导致通过拼接合成的全景照片出现断面、模糊等现象,如此导致全景照片的显示效果不佳。
发明内容
本公开实施例提供一种全景拍摄方法及终端设备,以解决相关技术中终端设备拍摄的全景照片的显示效果不佳的问题。
为了解决上述技术问题,本公开是这样实现的:
第一方面,本公开实施例提供了一种全景拍摄方法,应用于终端设备,该终端设备包括可转动的摄像头,该方法包括:在拍摄过程中,接收用户的第一输入;响应于该第一输入,控制摄像头沿第一方向依次转动N次,并在该摄像头每次暂停转动后,拍摄一个图像;且将拍摄的N个图像拼接成目标全景图像,N为大于1的整数。
第二方面,本公开实施例提供了一种终端设备,该终端设备包括可转动的摄像头,且该终端设备包括接收模块、控制模块、拍摄模块和处理模块。接收模块用于在拍摄过程中,接收用户的第一输入。控制模块用于响应于接收模块接收的该第一输入,控制摄像头沿第一方向依次转动N次。拍摄模块用于在控制模块控制摄像头每次暂停转动后,拍摄一个图像,N为大于1的整数。处理模块用于将拍摄模块拍摄的N个图像拼接成目标全景图像。
第三方面,本公开实施例提供了一种终端设备,该终端设备包括处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述第一方面中的全景拍摄方法的步骤。
第四方面,本公开实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现上述第一方面中的全景拍摄方法的步骤。
在本公开实施例中,可以在拍摄过程中,接收用户的第一输入;响应于该第一输入,控制终端设备的可转动摄像头沿第一方向依次转动N次,并在该摄像头每次暂停转动后,拍摄一个图像;且将拍摄的N个图像拼接成目标全景图像,N为大于1的整数。通过该方案,本公开实施例可以在用户触发拍摄全景图像的情况下(例如用户选择N连拍),通过控制摄像头自动转动N次,且每次转动暂停后拍摄一次,在依次转动N次之后获得N个图像,从而将N个图像合成全景图像。如此,在拍摄全景图像过程中,终端设备对全景拍摄智能控制,无需用户人为地对终端设备进行操作,从而可以避免终端设备位移对全景图像的合成效果产生影响。
附图说明
图1为本公开实施例提供的一种可能的安卓操作***的架构示意图;
图2为本公开实施例提供的全景拍摄方法的示意图之一;
图3为本公开实施例提供的全景拍摄方法的示意图之二;
图4为本公开实施例提供的全景拍摄方法的示意图之三;
图5为本公开实施例提供的全景拍摄方法应用的界面示意图之一;
图6为本公开实施例提供的全景拍摄方法应用的界面示意图之二;
图7为本公开实施例提供的全景拍摄方法应用的界面示意图之三;
图8为本公开实施例提供的全景拍摄方法应用的界面示意图之四;
图9为本公开实施例提供的全景拍摄方法的示意图之四;
图10为本公开实施例提供的全景拍摄方法的示意图之五;
图11为本公开实施例提供的全景拍摄方法的示意图之六;
图12为本公开实施例提供的终端设备的结构示意图之一;
图13为本公开实施例提供的终端设备的结构示意图之二;
图14为本公开实施例提供的终端设备的硬件示意图。
具体实施方式
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。
本公开的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一输入和第二输入等是用于区别不同的输入,而不是用于描述输入的特定顺序。
在本公开实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本公开实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
在本公开实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上, 例如,多个处理单元是指两个或者两个以上的处理单元等;多个元件是指两个或者两个以上的元件等。
下面首先对本公开的权利要求书和说明书中涉及的一些名词或者术语进行解释说明。
全景拍摄:是指以某个点为中心进行水平α度(例如0度<α≤360度)和垂直β度(例如0度<β≤180度)拍摄,将所拍摄的多个图像拼接成一个全景图像。全景拍摄方法涉及图像拍摄方法和图像拼接方法。
本公开实施例提供一种全景拍摄方法及终端设备,可以在拍摄过程中,接收用户的第一输入;响应于该第一输入,控制终端设备的可转动摄像头沿第一方向依次转动N次,并在该摄像头每次暂停转动后,拍摄一个图像;且将拍摄的N个图像拼接成目标全景图像,N为大于1的整数。通过该方案,本公开实施例可以在用户触发拍摄全景图像的情况下(例如用户选择N连拍),通过控制摄像头自动转动N次,且每次转动暂停后拍摄一次,在依次转动N次之后获得N个图像,从而将N个图像合成全景图像。如此,在拍摄全景图像过程中,终端设备对全景拍摄智能控制,无需用户人为地对终端设备进行操作,从而可以避免终端设备位移对全景图像的合成效果产生影响。
本公开实施例中的终端设备可以为具有操作***的终端设备。该操作***可以为安卓(Android)操作***,可以为ios操作***,还可以为其他可能的操作***,本公开实施例不作具体限定。
下面以安卓操作***为例,介绍一下本公开实施例提供的全景拍摄方法所应用的软件环境。
如图1所示,为本公开实施例提供的一种可能的安卓操作***的架构示意图。在图1中,安卓操作***的架构包括4层,分别为:应用程序层、应用程序框架层、***运行库层和内核层(具体可以为Linux内核层)。
其中,应用程序层包括安卓操作***中的各个应用程序(包括***应用程序和第三方应用程序)。
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。
***运行库层包括库(也称为***库)和安卓操作***运行环境。库主要为安卓操作***提供其所需的各类资源。安卓操作***运行环境用于为安卓操作***提供软件环境。
内核层是安卓操作***的操作***层,属于安卓操作***软件层次的最底层。内核层基于Linux内核为安卓操作***提供核心***服务和与硬件相关的驱动程序。
以安卓操作***为例,本公开实施例中,开发人员可以基于上述如图1所示的安卓操作***的***架构,开发实现本公开实施例提供的全景拍摄方法的软件程序,从而使得该全景拍摄方法可以基于如图1所示的安卓操作***运行。即处理器或者终端设备可以通过在安卓操作***中运行该软件程序实现本公开实施例提供的全景拍摄方法。
本公开实施例中的终端设备可以为移动终端,也可以为非移动终端。示例性的,移动终端可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、超级移动 个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动终端可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本公开实施例不作具体限定。
本公开实施例提供的全景拍摄方法的执行主体可以为上述的终端设备,也可以为该终端设备中能够实现该全景拍摄方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本公开实施例不作限定。下面以终端设备为例,结合各个附图,对本公开实施例提供的全景拍摄方法进行示例性的说明。
如图2所示,本公开实施例提供一种全景拍摄方法,该方法应用于包括可转动的摄像头的终端设备,该全景拍摄方法可以包括下述的步骤200-步骤203。
步骤200、在拍摄过程中,终端设备接收用户的第一输入。
本公开实施例中,如果用户需要通过终端设备进行全景拍摄,那么此时在终端设备运行相机应用的情况下,用户可以通过第一输入,触发开启相机应用中的全景功能(也称为全景模式),进而终端设备可以采用全景功能进行拍摄,并获得全景图像(也称为全景照片)。
可选的,本公开实施例中,上述用户的第一输入可以为用户对相机应用中的“全景”选项或“全景”控件的选择输入,也可以为用户对终端设备中的全景快捷按键的触控输入,还可以为其它任意满足实际使用需求的输入,具体可以根据实际使用需求确定,本公开实施例不作限定。
本公开实施例中,上述全景拍摄可以为基本全景拍摄,也可以为趣味全景拍摄(即通过该趣味全景功能拍摄得到的全景图像可以显示出对象“分身”效果等),还可以包括其它任意可能的全景拍摄。本公开实施例提供的全景拍摄方法既可以适用于基本全景拍摄,也可以适用于趣味全景拍摄,还可以适用于其它可能的全景拍摄,具体可以根据实际使用需求确定,本公开实施例不作限定。
步骤201、终端设备响应于第一输入,控制摄像头沿第一方向依次转动N次。
步骤202、在摄像头每次暂停转动后,终端设备拍摄一个图像。
本公开实施例中,上述终端设备的摄像头为可转动摄像头,该可转动摄像头可以以某个点为中心,沿某一方向转动特定角度γ(例如0度<γ≤360度)。
本公开实施例中,在用户对终端设备进行第一输入,触发终端设备开启全景功能之后,终端设备可以控制终端设备的摄像头转动,在摄像头暂停转动后进行拍摄,在摄像头拍摄完成后再次转动,在摄像头暂停转动后再次进行拍摄,依次类推,直至摄像头转动N次之后拍摄过程结束。
具体的,摄像头转动一次,拍摄得到一个图像;摄像头转动两次,拍摄得到两个图像;以此类推,摄像头转动N次,拍摄得到N个图像。
可选的,本公开实施例中,上述摄像头的转动次数(即上述的N次)可以是终端设备默认设置的,也可以由用户自定义设置(例如用户可以在全景功能设置中选择连拍次数)。其中,N可以为大于1的整数,例如N可以为2,也可以为5,还可以为10,或者可以为其它满足实际使用需求的数值。具体可以根据实际使用需求确定,本公开实施例不作限定。
示例性的,以用户自定义设置为例,若用户在全景功能设置中选择5连拍(即N为5),则终端设备可以控制摄像头沿第一方向依次转动5次。
可选的,本公开实施例中,上述第一方向可以为逆时针方向,也可以为顺时针方向,还可以为其它任意满足实际使用需求的方向,具体可以根据实际使用需求确定,本公开实施例不作限定。
可选的,本公开实施例中,上述第一方向可以是终端设备默认设置的,也可以由用户在全景功能设置中选择,具体可以根据实际使用需求确定,本公开实施例不作限定。
步骤203、终端设备将拍摄的N个图像拼接成目标全景图像。
本公开实施例中,终端设备在拍摄得到N个图像之后,可以采用图像拼接技术或算法,将拍摄得到的N个图像拼接成目标全景图像。
其中,上述图像拼接技术是将一组相互间重叠部分的图像序列进行空间匹配对准,经重采样合成后形成一个包含各图像序列信息的宽视角场景的、完整的、高清晰的新图像的技术。对于图像拼接技术的描述具体可以参见相关技术中对图像拼接技术的描述,此处不予赘述。
示例性的,以基本全景拍摄为例,将N个图像拼接合成的目标全景图像可以呈现出较宽视场的画面。以趣味全景拍摄为例,将N个图像拼接合成的目标全景图像呈现出较宽视场的画面,且画面中的对象可以呈现“分身”效果。
本公开实施例中,终端设备可以响应于用户的第一输入,控制摄像头沿第一方向转动,并在摄像头暂停转动后,拍摄得到一个图像。然后,终端设备控制摄像头沿第一方向继续转动,并在摄像头暂停转动后,再次对目标对象拍摄,得到另一个图像。以此类推,终端设备可以控制摄像头沿第一方向依次转动N次,并在摄像头每次暂停转动后,拍摄得到一个图像,如此在摄像头转动N次后,最终得到N个图像,并且终端设备将拍摄得到的N个图像拼接成目标全景图像。通过本方案,在拍摄全景图像过程中无需用户对终端设备进行操作,从而实现了终端设备的智能全景拍摄,如此可以提升终端设备拍摄全景图像的灵活性和便捷性。
通过上述方案,由于在全景拍摄过程中终端设备可以控制摄像头自动转动并自动拍摄,因此可以避免由用户手动转动终端设备带来的摄像头抖动。如此,本公开实施例通过控制摄像头自动转动,在全景拍摄过程中多次拍摄的基准线基本保持一致,可以避免全景图像出现断层、模糊等现象,从而可以改善通过拼接得到的全景图像的显示效果。
此外,对于趣味全景拍摄过程,本公开实施例通过控制摄像头自动转动并自动拍摄,可以避免用户的多次触发拍摄操作,也避免趣味全景拍摄需要多人参与(本公开实施例中单人即可完成拍摄),从而可以提升用户使用终端设备进行趣味全景拍摄的便捷性和灵活性。
本公开实施例提供的全景拍摄方法,可以在拍摄过程中,接收用户的第一输入;响应于该第一输入,控制终端设备的可转动摄像头沿第一方向依次转动N次,并在该摄像头每次暂停转动后,拍摄一个图像;且将拍摄的N个图像拼接成目标全景图像,N为大于1的整数。通过该方案,本公开实施例可以在用户触发拍摄全景图像的情况下(例如用户选择N连拍),通过控制摄像头自动转动N次,且每次转动暂停后拍摄一次,在依次转动N次之后获得N个图像,从而将N个图像合成全景图像。如此,在拍摄全景图像过程中,终端设备对全景拍摄智能控制,无需用户人为地对终端设备进行操作,从而可以避免终端设备位移对全景图像的合成效果产生影响。
可选的,结合图2,如图3所示,在上述的步骤202之后,以及上述的步骤203之前,本公开实施例提供的全景拍摄方法还可以包括下述的步骤204。在此情况下,上述的步骤203具体可以通过下述的步骤203a实现。
步骤204、在每次拍摄一个图像之后,终端设备检测拍摄过程是否结束。
一方面,在上次拍摄得到一个图像之后,若终端设备检测拍摄过程未结束,则终端设备控制摄像头继续沿第一方向转动,并在摄像头暂停转动后,拍摄得到另一个图像;进一步的,在拍摄得到该另一个图像之后,终端设备继续检测拍摄过程是否结束;以此类推,在每次拍摄得到一个图像之后,终端设备检测拍摄过程是否结束,直至终端设备检测到拍摄过程结束为止。
另一方面,在每次拍摄得到一个图像之后,若终端设备检测到拍摄过程结束,则终端设备对拍摄得到的多个图像进行拼接,得到目标全景图像(即下述的步骤203a)。
可选的,本公开实施例中,上述步骤204具体可以通过下述的步骤204a实现。
步骤204a、终端设备检测拍摄的图像数量是否等于N。
其中,终端设备可以将拍摄得到的图像的数量与预设数量N进行比较,以检测拍摄得到的图像的数量和预设数量N的大小关系。具体的,在拍摄得到的图像的数量等于预设数量N的情况下,终端设备可以确定拍摄过程结束;在拍摄得到的图像的数量小于预设数量N的情况下,终端设备可以确定拍摄过程未结束。
本公开实施例中,上述预设数量N可以为用户选择的全景拍摄的连拍次数,也可以为终端设备默认设置的全景拍摄的连拍次数,具体可以根据实际使用需求确定,本公开实施例不作限定。
示例性的,以用户选择全景拍摄的连拍次数为例,用户可以选择5连拍全景、8连拍全景或其它任意连拍全景。举例来说,假设用户选择5连拍全景(即预设数量为5),那么在终端设备在检测拍摄得到的图像的数量达到5(即已拍摄图像的数量等于预设数量)的情况下,可以确定拍摄过程结束,那么在终端设备拍摄得到5个图像后结束拍摄。
可选的,本公开实施例中,终端设备还可以在预设范围内未扫描到对象的情况下,确定拍摄过程结束,如此实现终端设备对全景拍摄的智能控制。该预设范围可以为预设时长范围或预设角度范围。
举例来说,假设预设范围为预设时长范围,那么若终端设备在预设时长范围内未扫描到对象(例如在扫描1分钟后未扫描到对象),则终端设备可以确定拍摄过程结束。
再举例来说,假设预设范围为预设角度范围,那么若终端设备在预设角度范围内未扫描到对象(例如在扫描360度后未扫描到对象),则终端设备可以确定拍摄过程结束。
需要说明的是,本公开实施例终端设备检测拍摄是否结束的方法包括但不限于上述方式,还可以包括其它任意可能满足实际使用需求的方法,例如,终端设备可以在检测到目标对象的特定手势后结束拍摄。终端设备检测拍摄是否结束的方法具体可以根据实际使用需求确定,本公开实施例不作限定。
步骤203a、在检测到拍摄过程结束的情况下,终端设备将拍摄的N个图像拼接成目标全景图像。
通过该方案,在全景拍摄过程中,终端设备可以在每次拍摄得到一个图像之后,检测拍摄过程是否结束,并在检测到拍摄过程结束的情况下,终端设备将拍摄得到的N个图像 拼接成目标全景图像。如此,在拍摄全景图像过程中无需用户对终端设备进行操作,从而实现了终端设备对全景拍摄的智能控制。
需要说明的是,本公开实施例提供的全景拍摄方法中,终端设备可以控制摄像头沿第一方向转动N次,并在摄像头每次暂停转动后,拍摄得到一个图像。其中,本公开实施例提供了两种控制方法来控制摄像头暂停转动,即在摄像头识别到对象后,终端设备控制摄像头暂停转动;终端设备周期性地控制摄像头暂停转动。下面通过下述的第一实现方式和第二实现方式,分别对本公开实施例提供的两种控制方法进行详细描述。
第一实现方式
可选的,结合图2,如图4所示,在上述的步骤202之前,本公开实施例提供的全景拍摄方法还包括下述的步骤205和步骤206。相应地,上述的步骤202具体可以通过下述的步骤202a实现。
步骤205、在摄像头每次转动过程中,终端设备通过摄像头,识别对象。
可选的,上述的步骤205具体可以通过下述的步骤205a实现。
步骤205a、终端设备识别摄像头采集到的图像中是否包含人脸特征信息或者预设人脸特征信息。
可选的,本公开实施例中,上述人脸特征信息可以指任意人脸特征信息,上述预设人脸特征信息可以指用户预设的人脸特征信息,终端设备可以识别摄像头采集到的图像中是否包含人脸特征信息,也可以识别摄像头采集到的图像中是否包含预设人脸特征信息,具体可以根据实际使用需求确定,本公开实施例不作限定。
本公开实施例中,若终端设备识别到摄像头采集到的图像中包含人脸特征信息或者预设人脸特征信息,则终端设备控制摄像头暂停转动。若摄像头采集到的图像中不包含人脸特征信息或者预设人脸特征信息,则终端设备继续控制摄像头转动,直到摄像头识别到对象为止。
需要说明的是,本公开实施例不作限定终端设备识别对象的方向,例如,终端设备可以沿顺时针方向识别,或者可以沿逆时针方向识别,或者可以从任意位置开始识别。
步骤206、在通过摄像头识别到目标对象的情况下,终端设备控制摄像头暂停转动。
可选的,本公开实施例中,上述目标对象可以为人,也可以为动物,还可以为静物,或者可以为其它任意可能的对象,具体可以根据实际使用需求确定,本公开实施例不作限定。示例性的,以目标对象为人为例,一旦摄像头识别到同一个人,则终端设备控制摄像头暂停转动。
需要说明的是,在终端设备识别到目标对象之后,如果目标对象从取景框中消失,那么终端设备可以重新识别对象。
可选的,本公开实施例中,终端设备确定目标对象的方式可以为下述的(1)、(2)、(3)和(4)中的至少一种。
(1)终端设备将人物(例如通过人脸、腿、形状等算法)确定为目标对象。若终端设备检测到有人(通过人脸、腿、形状等算法),则终端设备确定识别到目标对象。
(2)终端设备在扫描相册中的照片后,将出现次数最多的人脸确定为目标对象。若摄像头转动时识别到的人脸与目标对象匹配,则终端设备确定识别到目标对象。
(3)终端设备在扫描相册中的照片后,将所有扫描到的人脸确定为目标对象。若摄 像头转动时识别到的人脸与目标对象匹配,则终端设备确定识别到目标对象。
(4)终端设备将用户选择的对象,确定为目标对象。若摄像头转动时识别到的对象与目标对象匹配,则终端设备确定识别到目标对象。其中,用户可以通过下述的a、b、c中的任一项来选择目标对象。
a、假设终端设备自动扫描相册,并将扫描到的人脸以出现次数多少或拍摄时间等方式排序(例如,终端设备可以显示所有的人脸,也可以只显示最近或出现次数较多的人脸,供用户选择),那么用户可以从排序后的照片中选择一个对象,确定为目标对象。
b、用户可以在相册已有照片中选择一个对象,作为目标对象。
c、用户可以在取景框中选择一个对象,作为目标对象。
下面参考图5至图8,示例性的说明用户通过终端设备选择全景拍摄的对象的过程。
如图5所示,终端设备可以显示用户选择界面30,该用户选择界面30中包括子界面31,该子界面31中显示有终端设备对相册扫描后智能检测到的对象(例如人脸图像),供用户从中选择全景拍摄的对象。
如图5所示,该用户选择界面30中还包括控件32和控件33。若用户对控件32输入,则如图6所示,终端设备显示相册界面34,该相册界面中显示有相册中的多个照片。若用户从多个照片中选中一个照片,则如图7所示,终端设备显示照片35,供用户在照片35中选择全景拍摄的对象。若用户对控件33输入,则如图8所示,终端设备开启摄像头并显示取景框36,供用户从取景框36中显示的预览图像选择全景拍摄的对象。
步骤202a、在摄像头每次暂停转动后,终端设备对目标对象拍摄,得到一个图像。
本公开实施例中,终端设备可以控制摄像头沿第一方向依次转动N次,并在摄像头每次转动过程中,终端设备通过摄像头识别对象,且在通过摄像头识别到目标对象的情况下,终端设备控制摄像头暂停转动,并且在摄像头每次暂停转动之后,对目标对象拍摄,得到一个图像。
具体的,终端设备可以响应于用户的第一输入,控制摄像头沿第一方向转动,并在摄像头转动过程中,终端设备通过摄像头识别对象,且在通过摄像头识别到目标对象的情况下,终端设备控制摄像头暂停转动,并且在摄像头暂停转动后,对目标对象拍摄,得到一个图像。然后,终端设备控制摄像头沿第一方向继续转动,并在摄像头转动过程中,终端设备继续通过摄像头识别对象,且在通过摄像头识别到目标对象的情况下,终端设备控制摄像头暂停转动,并且在摄像头暂停转动后,再次对目标对象拍摄,得到另一个图像。以此类推,终端设备可以控制摄像头沿第一方向依次转动N次,并在摄像头每次暂停转动后,对目标对象拍摄得到一个图像,如此在摄像头转动N次后,最终得到N个图像。
通过本方案,在摄像头识别到对象后,终端设备控制摄像头暂停转动并拍摄图像,实现了终端设备的智能全景拍摄,如此可以提升终端设备拍摄全景图像的灵活性和便捷性。
需要说明的是,以上以终端设备在步骤202之前执行步骤205和步骤206为例示例性的说明,可以理解,本公开实施例包括但不限于上述执行顺序,由于本公开实施例中终端设备在控制摄像头暂停转动后,控制摄像头继续转动,因此终端设备还可以在步骤202之后执行步骤205和步骤206。
可选的,结合图4,如图9所示,在上述的步骤200之前,本公开实施例提供的全景拍摄方法还包括下述的步骤207和步骤208。
步骤207、终端设备接收用户对第一人脸图像的第二输入。
其中,该第一人脸图像可以为预先存储的图像或者取景框中显示的预览图像。
本公开实施例中,上述第一人脸图像可以为终端设备的图库中存储的图像,也可以为终端设备的相机应用的取景框中显示的预览图像,还可以为终端设备根据图库中的多个图像筛选得出的人脸图像,或者可以为其它任意满足实际使用需求的输入,具体可以根据实际使用需求确定,本公开实施例不作限定。
可选的,本公开实施例中,上述用户的第二输入可以为点击输入(例如单击输入或双击输入),也可以为滑动输入,还可以是其它任意可能形式的输入,具体可以根据实际使用需求确定,本公开实施例不作限定。
示例性的,用户对终端设备的图库中的图像的选择输入,或者可以为用户对终端设备的相机应用的取景框中的图像的选择输入,或者可以为用户对终端设备根据图库中的多个图像筛选得出的人脸图像的选择输入。
步骤208、终端设备响应于第二输入,将第一人脸图像对应的人脸特征信息确定为预设人脸特征信息。
本公开实施例中,在用户对第一人脸图像进行第二输入之后,终端设备可以对该第一人脸图像进行图像分析,获得该第一人脸图像包含的人脸特征信息,并将该人脸特征信息确定为预设人脸特征信息。进一步的,在全景拍摄过程中,终端设备可以识别摄像头采集到的图像中是否包含预设人脸特征信息,在识别到图像中包含预设人脸特征信息的情况下,终端设备控制摄像头暂停转动,以执行拍摄操作。
通过本方案,当用户拍摄趣味全景照片时,无需人为地转动终端设备,避免终端设备位移对最终全景图像效果产生影响。终端设备控制摄像头自动转动并捕捉目标对象,无需目标对象每次移动固定角度,目标对象可以以任意顺序移动任意角度进行拍摄,避免了每次移动固定角度的操作难度。
可选的,本公开实施例中,在终端设备识别到目标对象之后,终端设备可以提示用户即将开始拍摄。终端设备提示的方式可以为:通过闪光灯提示;通过摄像头上或终端设备背部的彩色灯光提示;通过语音提示等。具体可以根据实际使用需求确定,本公开实施例不作限定。
举例来说,以通过彩色灯光提示为例:(1)在摄像头转动并识别到目标对象,调焦完成之后,终端设备控制彩色灯亮绿色以提示用户;(2)若检测到用户距离终端设备太远,则终端设备控制彩色灯亮黄色提示(其中,用户与终端设备的距离越远,灯点亮的颜色越偏向紫色);若终端设备检测到用户距离设备太近,则终端设备控制彩色灯亮灰色提示(其中,用户与终端设备的距离越近,灯点亮的颜色越偏向黑色;若检测到用户与终端设备的距离适中,则终端设备控制彩色灯亮绿色;(3)当倒计时将要拍摄时,则终端设备控制彩色灯亮绿色(或红色)闪烁提示,并且闪烁频率随着时间的减少而增加;(4)在拍摄完成之后,终端设备控制彩色灯亮蓝色(例如长亮)以提示用户拍摄完成。
示例性的,以趣味全景拍摄为例,在全景拍摄过程中,摄像头从起始位置开始以逆时针方向识别目标对象,在识别到目标对象之后,摄像头暂停转动(即固定不动),亮绿灯提示,3秒后指示灯闪烁5秒提示开始拍摄,拍摄完成后亮蓝灯5秒待用户到下一个拍摄点。摄像头继续逆时针转动识别目标对象,继续拍摄直至拍摄过程结束。
通过该方案,在拍摄全景图像过程中,无需用户对终端设备进行操作,通过灯的颜色或语音等提示用户接下来的行为,单人即可完成拍摄,如此简化了趣味全景拍摄的复杂程度,单人即可拍出效果较好的趣味全景图像。
第二实现方式
可选的,结合图2,如图10所示,在上述的步骤202之前,本公开实施例提供的全景拍摄方法还包括下述的步骤209。
步骤209、在摄像头每次转动过程中,终端设备控制摄像头转动预设角度,并控制摄像头暂停转动。
可选的,本公开实施例中,上述预设角度可以为10度,或者可以为20度,或者可以为30度,或者可以为其它任意满足实际使用需求的角度,具体可以根据实际使用需求确定,本公开实施例不作限定。
本公开实施例中,终端设备可以控制摄像头沿第一方向依次转动N次,并在摄像头每次转动过程中,终端设备检测摄像头转动的角度是否等于预设角度。在终端设备检测到摄像头转动的角度等于预设角度的情况下,终端设备控制摄像头暂停转动,并且在摄像头每次暂停转动之后,拍摄得到一个图像。如此,在终端设备控制摄像头沿第一方向依次转动N次之后,终端设备最终可以得到N个图像。进一步的,终端设备可以将拍摄得到的N个图像拼接成目标全景图像。
具体的,在用户触发终端设备启用全景拍摄功能之后,终端设备可以控制摄像头转动到拍摄起始位置(假设摄像头顺时针转动,那么拍摄起始位置可以为摄像头顺时针转动的起点)。在摄像头转动到拍摄起始位置之后,终端设备可以提示用户终端设备已经就绪。然后,在预设时长(可以是几秒,也可以是几十秒)之后,终端设备可以提示用户将要开始拍摄。在拍摄得到一个图像之后,终端设备可以控制摄像头转动预设角度,并在摄像头暂停转动后,终端设备提示用户将要开始拍摄。如此循环,直至摄像头转动N次,拍摄得到N个图像。在确定拍摄过程结束的情况下,终端设备将拍摄得到的N个图像拼接成趣味全景图像。
通过本方案,在拍摄全景图像过程中,无需用户人为地对终端设备进行操作,实现终端设备对全景拍摄的智能控制,从而可以避免设备位移对最终全景图像效果产生影响。
可选的,本公开实施例中,终端设备提示用户的方式可以为:通过闪光灯提示;通过摄像头上或终端设备背部的彩色灯光提示;通过语音提示等。当然,终端设备提示用户的方式还可以为其它任意满足实际使用需求的方式,具体可以根据实际使用需求确定,本公开实施例不作限定。
举例来说,以通过彩色灯光提示为例:(1)当摄像头转动到相应位置并就绪以后,亮绿色提示用户;(2)倒计时将要拍摄时,亮绿色(或红色)闪烁提示,并且闪烁频率随着时间的减少而增加;(3)拍摄完成后以蓝色常亮提示用户拍摄完成。
通过该方案,在拍摄全景图像过程中,无需用户对终端设备进行操作,通过灯的颜色或语音等提示用户接下来的行为,单人即可完成拍摄,如此简化了趣味全景拍摄的复杂程度,单人即可拍出效果较好的趣味全景图像。
需要说明的是,以上以终端设备在步骤202之前执行步骤209为例示例性的说明,可以理解,本公开实施例包括但不限于上述执行顺序,由于本公开实施例中终端设备在控制 摄像头暂停转动后,控制摄像头继续转动,因此终端设备还可以在步骤202之后执行步骤209。
可选的,在摄像头每次转动过程中,不管是在通过摄像头识别到目标对象的情况下终端设备控制摄像头暂停转动,还是在摄像头转动预设角度的情况下终端设备控制摄像头暂停转动,在摄像头每次暂停转动之后,终端设备可以输出提示信息,以提示用户即将自动拍摄,或者提示用户在调整位置后拍摄。
示例性的,结合图10,如图11所示,在上述的步骤209之后,本公开实施例提供的全景拍摄方法还包括下述的步骤210。
步骤210、终端设备输出第一提示信息或第二提示信息。
其中,上述第一提示信息可以用于指示目标距离不在预设距离范围内,上述第二提示信息可以用于指示目标距离在预设距离范围内且将在预设时长之后执行拍摄操作。其中,目标距离为所识别的对象与终端设备之间的距离。
可选的,本公开实施例中,上述第一提示信息可以通过语音提示,或者可以通过闪光灯提示,或者可以通过彩色指示灯提示。第二提示信息与第一提示信息的提示方式可以相同,也可以不同。
示例性的,以通过彩色指示灯提示第一提示信息和第二提示信息为例,假设终端设备设置有彩色指示灯,那么上述步骤210具体可以通过下述的步骤210a或步骤210b实现。
步骤210a、在输出第一提示信息的情况下,终端设备控制指示灯在第一预设时长内,以第一颜色持续发光,该第一颜色用于指示目标距离不在预设距离范围内。
在终端设备输出第一提示信息的情况下,用户可以通过第一提示信息获知如何调整目标对象与终端设备之间的距离以及方位关系,以提升终端设备在拍摄全景图像时采集图像的准确性。
步骤210b、在输出第二提示信息的情况下,终端设备控制指示灯在第二预设时长内,以第二颜色持续发光,该第二颜色用于指示目标距离在预设距离范围内且调焦完成;并控制指示灯在第三预设时长内,以第三颜色闪烁发光,该第三颜色用于指示第三时长后将执行拍摄操作;且在执行拍摄操作之后,控制指示灯在第四预设时长内,以第四颜色持续发光,该第四颜色用于指示拍摄完成。
在终端设备输出第二提示信息的情况下,用户可以通过第二提示信息获知目标对象与终端设备之间的距离以及方位关系是合适的,终端设备将对目标对象拍摄。通过本方案,在拍摄全景图像过程中无需用户对终端设备进行操作,从而实现终端设备对全景拍摄的智能控制,如此可以提升终端设备拍摄全景图像的灵活性和便捷性。
通过该方案,通过灯的颜色或语音等提示全景拍摄的过程,单人即可完成拍摄。极大的简化了趣味全景拍摄的复杂程度,单人即可拍出效果较好的趣味全景照片。
需要说明的是,以上是以图11结合图10(即在步骤209之后执行步骤210)为例示例性的说明,可以理解,本公开实施例包括但不限于上述方式,还可以将图11结合图4或图9等(即终端设备还可以在步骤206之后执行步骤210),具体可以根据实际使用需求确定,本公开实施例不作限定。
本公开实施例中,在摄像头每次暂停转动之后,终端设备可以先检测目标对象与终端 设备之间的距离是否合适,再根据检测结果,确定是输出第一提示信息还是第二提示信息。例如,若检测结果为目标对象与终端设备之间的距离不合适,则终端设备输出第一提示信息;若检测结果为目标对象与终端设备之间的距离合适,则终端设备输出第二提示信息。
可选的,本公开实施例中,终端设备可以根据取景框中对象的尺寸相对于取景框的尺寸的比较结果,检测目标对象与终端设备之间的距离是否合适。
示例性的,在上述的步骤210之前,本公开实施例提供的全景拍摄方法还包括下述的步骤211或步骤212。
步骤211、终端设备根据终端设备的取景框中对象的高度与取景框的高度之间的比值与第一比值范围的包含关系,检测目标距离是否在预设距离范围内。
本公开实施例中,若终端设备的取景框中对象的高度与取景框的高度之间的比值在第一比值范围内,则终端设备可以确定该对象与终端设备的距离合适,无需调整对象与终端设备的距离,在此情况下,终端设备可以输出上述第二提示信息。若终端设备的取景框中对象的高度与取景框的高度之间的比值不在第一比值范围内,则终端设备可以确定该对象与终端设备的距离不合适,相应地需要调整对象与终端设备的距离,在此情况下,终端设备可以输出上述第一提示信息。
本公开实施例中,上述第一比值范围可以为根据经验值确定的数值范围,具体可以根据实际使用需求确定,本公开实施例不作限定。示例性的,第一比值范围可以为[0.4,0.7]。
步骤212、终端设备根据取景框中的对象在取景框中的面积占比与第二比值范围的包含关系,检测目标距离是否在预设距离范围内。
本公开实施例中,若取景框中的对象在取景框中的面积占比在第二比值范围内,则终端设备可以确定该对象与终端设备的距离合适,无需调整对象与终端设备的距离,在此情况下,终端设备可以输出上述第二提示信息。若取景框中的对象在取景框中的面积占比不在第二比值范围内,则终端设备可以确定该对象与终端设备的距离不合适,相应地需要调整对象与终端设备的距离,在此情况下,终端设备可以输出上述第一提示信息。
本公开实施例中,上述第二比值范围可以为根据经验值确定的数值范围,具体可以根据实际使用需求确定,本公开实施例不作限定。示例性的,第二比值范围可以为[10%,20%]。
需要说明的是,上述预设距离范围用于描述对象与终端设备的距离是否合适,具体数值可以根据实际使用需求确定,本公开实施例不作限定。
如图12所示,本公开实施例提供一种终端设备700,该终端设备700包括可转动的摄像头,该终端设备700可以包括接收模块701、控制模块702、拍摄模块703和处理模块704。接收模块701用于在拍摄过程中,接收用户的第一输入。控制模块702用于响应于接收模块701接收的该第一输入,控制摄像头沿第一方向依次转动N次。拍摄模块703用于在控制模块702控制摄像头每次暂停转动后,拍摄一个图像。处理模块704用于将拍摄模块703拍摄的N个图像拼接成目标全景图像。其中,N可以为大于1的整数。
可选的,结合图12,如图13所示,本公开实施例提供的终端设备700还可以包括检测模块705。检测模块705用于在拍摄模块703每次拍摄一个图像之后,检测拍摄过程是否结束。处理模块704具体用于在检测模块705检测到拍摄过程结束的情况下,将拍摄的N个图像拼接成目标全景图像。
可选的,检测模块705具体用于检测拍摄的图像数量是否等于N;并且在拍摄的图像 数量等于N的情况下,确定拍摄过程结束;在拍摄的图像数量小于N的情况下,确定拍摄过程未结束。
可选的,处理模块704还用于在摄像头每次转动过程中,通过该摄像头,识别对象。控制模块702还用于在处理模块704通过摄像头识别到目标对象的情况下,控制该摄像头暂停转动。拍摄模块703具体用于对该目标对象拍摄,得到一个图像。
可选的,处理模块704具体用于识别该摄像头采集到的图像中是否包含人脸特征信息或者预设人脸特征信息。
可选的,接收模块701还用于在接收用户的第一输入之前,接收用户对第一人脸图像的第二输入,该第一人脸图像可以为预先存储的图像或者取景框中显示的预览图像。处理模块704还用于响应于接收模块701接收的该第二输入,将该第一人脸图像对应的人脸特征信息确定为上述预设人脸特征信息。
可选的,控制模块702还用于在摄像头每次转动过程中,控制该摄像头转动预设角度,并控制该摄像头暂停转动。
可选的,检测模块705还用于在控制模块702控制摄像头暂停转动之后,输出第一提示信息,该第一提示信息用于指示目标距离不在预设距离范围内;或者输出第二提示信息,该第二提示信息用于指示目标距离在该预设距离范围内,且将在预设时长之后执行拍摄操作。其中,该目标距离可以为所识别的对象与终端设备700之间的距离。
可选的,终端设备700可以设置有指示灯。控制模块702还用于在检测模块705输出第一提示信息的情况下,控制指示灯在第一预设时长内,以第一颜色持续发光,该第一颜色用于指示目标距离不在预设距离范围内。
可选的,控制模块702还用于在检测模块705输出第二提示信息的情况下,控制指示灯在第二预设时长内,以第二颜色持续发光,该第二颜色用于指示目标距离在预设距离范围内且调焦完成;控制指示灯在第三预设时长内,以第三颜色闪烁发光,该第三颜色用于指示第三时长后将执行拍摄操作;在执行拍摄操作之后,控制指示灯在第四预设时长内,以第四颜色持续发光,该第四颜色用于指示拍摄完成。
可选的,检测模块705还用于在输出第一提示信息或者输出第二提示信息之前,根据终端设备的取景框中对象的高度与取景框的高度之间的比值与第一比值范围的包含关系,检测该对象与终端设备的距离是否在预设距离范围内;或者根据取景框中的对象在取景框中的面积占比与第二比值范围的包含关系,检测该对象与终端设备的距离是否在预设距离范围内。
本公开实施例提供的终端设备能够实现上述方法实施例中终端设备实现的各个过程,为避免重复,这里不再赘述。
本公开实施例提供的终端设备,可以在拍摄过程中,接收用户的第一输入;响应于该第一输入,控制终端设备的可转动摄像头沿第一方向依次转动N次,并在该摄像头每次暂停转动后,拍摄一个图像;且将拍摄的N个图像拼接成目标全景图像,N为大于1的整数。通过该方案,本公开实施例可以在用户触发拍摄全景图像的情况下(例如用户选择N连拍),通过控制摄像头自动转动N次,且每次转动暂停后拍摄一次,在依次转动N次之后获得N个图像,从而将N个图像合成全景图像。如此,在拍摄全景图像过程中,终端设备对全景拍摄智能控制,无需用户人为地对终端设备进行操 作,从而可以避免终端设备位移对全景图像的合成效果产生影响。
图14为实现本公开各个实施例的一种终端设备的硬件结构示意图。如图14所示,该终端设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、处理器810、以及电源811等部件。本领域技术人员可以理解,图14中示出的终端设备结构并不构成对终端设备的限定,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,终端设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
其中,用户输入单元807,用于在拍摄过程中,接收用户的第一输入;处理器810,用于响应于用户输入单元807接收的该第一输入,控制摄像头沿第一方向依次转动N次,并在该摄像头每次暂停转动后,拍摄一个图像,且将拍摄的N个图像拼接成目标全景图像;其中,N为大于1的整数。
本公开实施例提供一种终端设备,该终端设备包括可转动的摄像头,该终端设备可以在拍摄过程中,接收用户的第一输入;响应于该第一输入,控制摄像头沿第一方向依次转动N次,并在该摄像头每次暂停转动后,拍摄一个图像;且将拍摄的N个图像拼接成目标全景图像,N为大于1的整数。通过该方案,本公开实施例可以在用户触发拍摄全景图像的情况下(例如用户选择N连拍),通过控制摄像头自动转动N次,且每次转动暂停后拍摄一次,在依次转动N次之后获得N个图像,从而将N个图像合成全景图像。如此,在拍摄全景图像过程中,终端设备对全景拍摄智能控制,无需用户人为地对终端设备进行操作,从而可以避免终端设备位移对全景图像的合成效果产生影响。
应理解的是,本公开实施例中,射频单元801可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器810处理;另外,将上行的数据发送给基站。通常,射频单元801包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元801还可以通过无线通信***与网络和其他设备通信。
终端设备800通过网络模块802为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元803可以将射频单元801或网络模块802接收的或者在存储器809中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元803还可以提供与终端设备800执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元803包括扬声器、蜂鸣器以及受话器等。
输入单元804用于接收音频或视频信号。输入单元804可以包括图形处理器(graphics processing unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元806上。经图形处理器8041处理后的图像帧可以存储在存储器809(或其它存储介质)中或者经由射频单元801或网络模块802进行发送。麦克风8042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元801发送到移动通信基站的格式输出。
终端设备800还包括至少一种传感器805,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板8061的亮度,接近传感器可在终端设备800移动到耳边时,关闭显示面板8061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器805还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元806用于显示由用户输入的信息或提供给用户的信息。显示单元806可包括显示面板8061,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示面板8061。
用户输入单元807可用于接收输入的数字或字符信息,以及产生与终端设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板8071上或在触控面板8071附近的操作)。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器810,接收处理器810发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板8071。除了触控面板8071,用户输入单元807还可以包括其他输入设备8072。具体地,其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板8071可覆盖在显示面板8061上,当触控面板8071检测到在其上或附近的触摸操作后,传送给处理器810以确定触摸事件的类型,随后处理器810根据触摸事件的类型在显示面板8061上提供相应的视觉输出。虽然在图14中,触控面板8071与显示面板8061是作为两个独立的部件来实现终端设备的输入和输出功能,但是在某些实施例中,可以将触控面板8071与显示面板8061集成而实现终端设备的输入和输出功能,具体此处不做限定。
接口单元808为外部装置与终端设备800连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元808可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端设备800内的一个或多个元件或者可以用于在终端设备800和外部装置之间传输数据。
存储器809可用于存储软件程序以及各种数据。存储器809可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器809可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器810是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器809内的软件程序和/或模块,以及调用存储在存储器809内的数据,执行终端设备的各种功能和处理数据,从而对终端设备进行整体监控。处理器810可包括一个或多个处理单元;可选的,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。
终端设备800还可以包括给各个部件供电的电源811(比如电池),可选的,电源811可以通过电源管理***与处理器810逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。
另外,终端设备800包括一些未示出的功能模块,在此不再赘述。
可选的,本公开实施例还提供一种终端设备,包括如图14所示的处理器810,存储器809,存储在存储器809上并可在处理器810上运行的计算机程序,该计算机程序被处理器810执行时实现上述全景拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述全景拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,该计算机可读存储介质可以包括只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例公开的方法。
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。

Claims (22)

  1. 一种全景拍摄方法,应用于包括可转动的摄像头的终端设备,所述方法包括:
    在拍摄过程中,接收用户的第一输入;
    响应于所述第一输入,控制摄像头沿第一方向依次转动N次,并在所述摄像头每次暂停转动后,拍摄一个图像;
    将拍摄的N个图像拼接成目标全景图像;
    其中,N为大于1的整数。
  2. 根据权利要求1所述的方法,其中,所述方法还包括:
    在每次拍摄一个图像之后,检测拍摄过程是否结束;
    所述将拍摄的N个图像拼接成目标全景图像,包括:
    在检测到拍摄过程结束的情况下,将拍摄的N个图像拼接成目标全景图像。
  3. 根据权利要求2所述的方法,其中,所述检测拍摄过程是否结束,包括:
    检测拍摄的图像数量是否等于N;
    在检测到拍摄的图像数量等于N的情况下,确定拍摄过程结束;
    在检测到拍摄的图像数量小于N的情况下,确定拍摄过程未结束。
  4. 根据权利要求1所述的方法,其中,所述方法还包括:
    在所述摄像头每次转动过程中,通过所述摄像头,识别对象;
    在通过所述摄像头识别到目标对象的情况下,控制所述摄像头暂停转动;
    所述拍摄一个图像,包括:
    对所述目标对象拍摄,得到一个图像。
  5. 根据权利要求4所述的方法,其中,所述识别对象,包括:
    识别所述摄像头采集到的图像中是否包含人脸特征信息或者预设人脸特征信息。
  6. 根据权利要求5所述的方法,其中,在接收用户的第一输入之前,所述方法还包括:
    接收用户对第一人脸图像的第二输入,所述第一人脸图像为预先存储的图像或者取景框中显示的预览图像;
    响应于所述第二输入,将所述第一人脸图像对应的人脸特征信息确定为所述预设人脸特征信息。
  7. 根据权利要求1所述的方法,其中,所述方法还包括:
    在所述摄像头每次转动过程中,控制所述摄像头转动预设角度,并控制所述摄像头暂停转动。
  8. 根据权利要求4至7中任一项所述的方法,其中,在控制所述摄像头暂停转动之后,所述方法还包括:
    输出第一提示信息,所述第一提示信息用于指示目标距离不在预设距离范围内;
    或者,
    输出第二提示信息,所述第二提示信息用于指示目标距离在所述预设距离范围内,且在预设时长之后执行拍摄操作;
    其中,所述目标距离为所识别的对象与所述终端设备之间的距离。
  9. 根据权利要求8所述的方法,其中,所述终端设备设置有指示灯;
    在输出第一提示信息的情况下,控制所述指示灯在第一预设时长内,以第一颜色持续发光,所述第一颜色用于指示所述目标距离不在预设距离范围内。
  10. 根据权利要求8所述的方法,其中,所述终端设备设置有指示灯;
    在输出第二提示信息的情况下,控制所述指示灯在第二预设时长内,以第二颜色持续发光,所述第二颜色用于指示所述目标距离在预设距离范围内且调焦完成;
    控制所述指示灯在第三预设时长内,以第三颜色闪烁发光,所述第三颜色用于指示第三时长后将执行拍摄操作;
    在执行拍摄操作之后,控制所述指示灯在第四预设时长内,以第四颜色持续发光,所述第四颜色用于指示拍摄完成。
  11. 一种终端设备,包括可转动的摄像头,所述终端设备包括接收模块、控制模块、拍摄模块和处理模块;
    所述接收模块,用于在拍摄过程中,接收用户的第一输入;
    所述控制模块,用于响应于所述接收模块接收的所述第一输入,控制摄像头沿第一方向依次转动N次;
    所述拍摄模块,用于在所述控制模块控制所述摄像头每次暂停转动后,拍摄一个图像;
    所述处理模块,用于将所述拍摄模块拍摄的N个图像拼接成目标全景图像;
    其中,N为大于1的整数。
  12. 根据权利要求11所述的终端设备,其中,所述终端设备还包括检测模块;
    所述检测模块,用于在所述拍摄模块每次拍摄一个图像之后,检测拍摄过程是否结束;
    所述处理模块,具体用于在所述检测模块检测到拍摄过程结束的情况下,将拍摄的N个图像拼接成目标全景图像。
  13. 根据权利要求12所述的终端设备,其中,所述检测模块,具体用于检测拍摄的图像数量是否等于N;并且在拍摄的图像数量等于N的情况下,确定拍摄过程结束,以及在拍摄的图像数量小于N的情况下,确定拍摄过程未结束。
  14. 根据权利要求11所述的终端设备,其中,所述处理模块,还用于在所述摄像头每次转动过程中,通过所述摄像头,识别对象;
    所述控制模块,还用于在所述处理模块通过所述摄像头识别到目标对象的情况下,控制所述摄像头暂停转动;
    所述拍摄模块,具体用于对所述目标对象拍摄,得到一个图像。
  15. 根据权利要求14所述的终端设备,其中,所述处理模块,具体用于识别所述摄像头采集到的图像中是否包含人脸特征信息或者预设人脸特征信息。
  16. 根据权利要求15所述的终端设备,其中,所述接收模块,还用于在接收用户的第一输入之前,接收用户对第一人脸图像的第二输入,所述第一人脸图像为预先存储的图像或者取景框中显示的预览图像;
    所述处理模块,还用于响应于所述接收模块接收的所述第二输入,将所述第一人脸图像对应的人脸特征信息确定为所述预设人脸特征信息。
  17. 根据权利要求11所述的终端设备,其中,所述控制模块,还用于在所述摄像 头每次转动过程中,控制所述摄像头转动预设角度,并控制所述摄像头暂停转动。
  18. 根据权利要求12所述的终端设备,其中,所述检测模块,还用于在所述控制模块控制所述摄像头暂停转动之后,输出第一提示信息,所述第一提示信息用于指示目标距离不在预设距离范围内;或者输出第二提示信息,所述第二提示信息用于指示目标距离在所述预设距离范围内,且将在预设时长之后执行拍摄操作;其中,所述目标距离为所识别的对象与所述终端设备之间的距离。
  19. 根据权利要求18所述的终端设备,其中,所述终端设备设置有指示灯;
    所述控制模块,还用于在所述检测模块输出第一提示信息的情况下,控制所述指示灯在第一预设时长内,以第一颜色持续发光,所述第一颜色用于指示所述目标距离不在预设距离范围内。
  20. 根据权利要求19所述的终端设备,其中,所述控制模块,还用于在所述检测模块输出第二提示信息的情况下,控制所述指示灯在第二预设时长内,以第二颜色持续发光,所述第二颜色用于指示所述目标距离在预设距离范围内且调焦完成;控制所述指示灯在第三预设时长内,以第三颜色闪烁发光,所述第三颜色用于指示第三时长后将执行拍摄操作;在执行拍摄操作之后,控制所述指示灯在第四预设时长内,以第四颜色持续发光,所述第四颜色用于指示拍摄完成。
  21. 一种终端设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至10中任一项所述的全景拍摄方法的步骤。
  22. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至10中任一项所述的全景拍摄方法的步骤。
PCT/CN2020/081822 2019-05-31 2020-03-27 全景拍摄方法及终端设备 WO2020238380A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910470520.1 2019-05-31
CN201910470520.1A CN110266941A (zh) 2019-05-31 2019-05-31 一种全景拍摄方法及终端设备

Publications (1)

Publication Number Publication Date
WO2020238380A1 true WO2020238380A1 (zh) 2020-12-03

Family

ID=67916302

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/081822 WO2020238380A1 (zh) 2019-05-31 2020-03-27 全景拍摄方法及终端设备

Country Status (2)

Country Link
CN (1) CN110266941A (zh)
WO (1) WO2020238380A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449172A (zh) * 2022-02-14 2022-05-06 维沃移动通信有限公司 拍摄方法、装置和电子设备

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241618B (zh) * 2017-08-07 2020-07-28 苏州市广播电视总台 收录方法和收录装置
CN110266941A (zh) * 2019-05-31 2019-09-20 维沃移动通信(杭州)有限公司 一种全景拍摄方法及终端设备
CN111161144B (zh) * 2019-12-18 2021-07-20 北京城市网邻信息技术有限公司 全景图获取方法、全景图获取装置及存储介质
CN111107269B (zh) * 2019-12-31 2021-10-26 维沃移动通信有限公司 拍摄方法、电子设备及存储介质
CN111458958B (zh) * 2020-03-25 2022-04-08 东莞市至品创造数码科技有限公司 一种相机移动速度可调节的延时摄影方法及装置
CN111741223B (zh) * 2020-07-17 2022-04-26 北京搜房科技发展有限公司 一种全景图像拍摄方法、装置和***
CN113228619A (zh) * 2020-08-25 2021-08-06 深圳市大疆创新科技有限公司 拍摄控制方法、装置、可移动平台及存储介质
CN112822427B (zh) * 2020-12-30 2024-01-12 维沃移动通信有限公司 视频图像显示控制方法、装置及电子设备
CN113938605B (zh) * 2021-09-23 2024-05-14 维沃移动通信有限公司 拍照方法、装置、设备及介质
CN114928696A (zh) * 2022-05-11 2022-08-19 北京有竹居网络技术有限公司 拍摄方法、装置和拍摄设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090033767A1 (en) * 2007-07-31 2009-02-05 Sanyo Electric Co., Ltd. Digital camera
CN104735356A (zh) * 2015-03-23 2015-06-24 深圳市欧珀通信软件有限公司 全景照片拍摄方法及装置
CN105763779A (zh) * 2016-03-31 2016-07-13 联想(北京)有限公司 一种电子设备及提示方法
EP3258414A1 (en) * 2016-06-15 2017-12-20 Beijing Xiaomi Mobile Software Co., Ltd. Prompting method and apparatus for photographing
WO2018035811A1 (zh) * 2016-08-25 2018-03-01 北京小米移动软件有限公司 全景拍摄方法、终端、旋转组件及全景拍摄装置
CN109474785A (zh) * 2018-11-27 2019-03-15 三星电子(中国)研发中心 电子装置和电子装置的焦点追踪拍照方法
CN110266941A (zh) * 2019-05-31 2019-09-20 维沃移动通信(杭州)有限公司 一种全景拍摄方法及终端设备

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853082B (zh) * 2014-11-25 2017-11-07 广东欧珀移动通信有限公司 一种拍摄全景图片的方法及装置
CN104902203A (zh) * 2015-05-19 2015-09-09 广东欧珀移动通信有限公司 一种基于旋转摄像头的视频录制方法及终端
CN105827933B (zh) * 2015-06-29 2019-04-12 维沃移动通信有限公司 一种摄像方法、装置以及移动终端
JP6399065B2 (ja) * 2016-09-26 2018-10-03 カシオ計算機株式会社 投影装置、光源装置、投影方法及びプログラム
CN107295272A (zh) * 2017-05-10 2017-10-24 深圳市金立通信设备有限公司 一种图像处理的方法及终端
CN108769478B (zh) * 2018-06-08 2021-01-15 Oppo广东移动通信有限公司 滑动组件的控制方法、控制组件及电子设备
CN208863010U (zh) * 2018-10-23 2019-05-14 信利光电股份有限公司 一种电视机

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090033767A1 (en) * 2007-07-31 2009-02-05 Sanyo Electric Co., Ltd. Digital camera
CN104735356A (zh) * 2015-03-23 2015-06-24 深圳市欧珀通信软件有限公司 全景照片拍摄方法及装置
CN105763779A (zh) * 2016-03-31 2016-07-13 联想(北京)有限公司 一种电子设备及提示方法
EP3258414A1 (en) * 2016-06-15 2017-12-20 Beijing Xiaomi Mobile Software Co., Ltd. Prompting method and apparatus for photographing
WO2018035811A1 (zh) * 2016-08-25 2018-03-01 北京小米移动软件有限公司 全景拍摄方法、终端、旋转组件及全景拍摄装置
CN109474785A (zh) * 2018-11-27 2019-03-15 三星电子(中国)研发中心 电子装置和电子装置的焦点追踪拍照方法
CN110266941A (zh) * 2019-05-31 2019-09-20 维沃移动通信(杭州)有限公司 一种全景拍摄方法及终端设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449172A (zh) * 2022-02-14 2022-05-06 维沃移动通信有限公司 拍摄方法、装置和电子设备

Also Published As

Publication number Publication date
CN110266941A (zh) 2019-09-20

Similar Documents

Publication Publication Date Title
WO2020238380A1 (zh) 全景拍摄方法及终端设备
CN111541845B (zh) 图像处理方法、装置及电子设备
CN109639970B (zh) 一种拍摄方法及终端设备
WO2021136268A1 (zh) 拍摄方法及电子设备
WO2021051995A1 (zh) 拍照方法及终端
WO2020156466A1 (zh) 拍摄方法及终端设备
WO2020108261A1 (zh) 拍摄方法及终端
US20220292696A1 (en) Photographing method and electronic device
WO2021129640A1 (zh) 拍摄处理方法及电子设备
CN108495032B (zh) 图像处理方法、装置、存储介质及电子设备
CN108881733B (zh) 一种全景拍摄方法及移动终端
JP2017532922A (ja) 画像撮影方法及び装置
WO2020192470A1 (zh) 拍摄处理方法及移动终端
CN108632543B (zh) 图像显示方法、装置、存储介质及电子设备
CN111107269B (zh) 拍摄方法、电子设备及存储介质
KR20220005087A (ko) 촬영 방법 및 단말
CN111597370B (zh) 一种拍摄方法及电子设备
US20230076109A1 (en) Method and electronic device for adding virtual item
CN111432195A (zh) 一种图像拍摄方法及电子设备
CN108924422B (zh) 一种全景拍照方法及移动终端
WO2022266907A1 (zh) 处理方法、终端设备及存储介质
CN111083374B (zh) 滤镜添加方法及电子设备
CN110086998B (zh) 一种拍摄方法及终端
CN108881721A (zh) 一种显示方法及终端
WO2022033272A1 (zh) 图像处理方法以及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20812657

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20812657

Country of ref document: EP

Kind code of ref document: A1