Photographing method, device and electronic device

The retractable screen-based imaging method and device address the challenge of maintaining a wide viewing angle and object size in imaging devices by mechanically adjusting the camera, enhancing the shooting experience and image yield.

JP7784529B2Active Publication Date: 2025-12-11VIVO MOBILE COMM CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2024513496
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-08-31
Filing Date
2022-08-29
Publication Date
2025-12-11
Estimated Expiration
2042-08-29

AI Technical Summary

Technical Problem

Existing imaging devices face challenges in maintaining a wide viewing angle without compromising the size of the object in the preview image, often resulting in reduced yield due to camera shake during manual angle adjustments.

Method used

A photographing method and device utilizing a retractable screen that adjusts its extension/contraction to select a target camera, displaying a target preview image based on the collected images from the target camera, allowing for mechanical movement of the camera to achieve a wider viewing angle without compromising object size.

Benefits of technology

The method ensures a higher degree of fit between the acquired target preview image and the display area, optimizing the shooting effect and improving the user experience by ensuring the captured image matches the preview image without loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007784529000001
    Figure 0007784529000001
  • Figure 0007784529000002
    Figure 0007784529000002
  • Figure 0007784529000003
    Figure 0007784529000003
Patent Text Reader

Abstract

The present application discloses a photography method, an apparatus and an electronic device, belonging to the technical field of image processing, in which the photography method is used in a photography device including a retractable screen, and the photography method includes: obtaining stretching information of the retractable screen including at least one of a stretching speed and a stretching length; determining a target camera for photography based on the stretching information; and displaying a target preview image collected by the target camera.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to a Chinese patent application filed on August 31, 2021, bearing application number 202111012081.3 and entitled "Photography method, apparatus and electronic device," the entire contents of which are incorporated herein by reference.

[0002] The present application belongs to the technical field of imaging, and specifically relates to an imaging method, an imaging device, and an electronic device. [Background technology]

[0003] When a user takes a photo or records a video using a mobile phone, tablet, or other smart device, the preview image is generally displayed on a screen. In the prior art, the shooting angle of the electronic device is always manually controlled by the user. However, when the user manually adjusts the shooting angle, the yield of the photo or video recorded by the electronic device is reduced due to factors such as camera shake. Summary of the Invention [Problem to be solved by the invention]

[0004] The purpose of the embodiments of the present application is to provide a photographing method, device, and electronic device that can widen the viewing angle of an object in a preview image without compromising the appearance of the size of the object in the preview image, and solve the problem of low yield in photographing or recording with electronic devices in related technologies. [Means for solving the problem]

[0005] According to a first aspect, an embodiment of the present application provides a photographing method for use in a photographing device including an extendable screen, the photographing method including: obtaining stretching information of the extendable screen; determining a target camera for photographing based on the stretching information; and displaying a target preview image collected by the target camera.

[0006] According to a second aspect, an embodiment of the present application provides a photographing device including a retractable screen, the photographing device including: an acquisition unit for acquiring stretching information of the retractable screen; a determination unit for determining a target camera for photographing based on the stretching information; and a display unit for displaying a target preview image collected by the target camera.

[0007] According to a third aspect, an embodiment of the present application provides an electronic device, the electronic device including a processor, a memory, and a program or instructions stored in the memory and operable on the processor, the program or instructions realizing the steps of the imaging method of the first aspect when executed by the processor.

[0008] According to a fourth aspect, an embodiment of the present application provides a readable storage medium having a program or instructions stored therein, the program or instructions realizing the steps of the imaging method of the first aspect when executed by a processor.

[0009] According to a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor running a program or instruction to implement the steps of the imaging method of the first aspect. [Effects of the Invention]

[0010] In the embodiment of the present application, during shooting by the shooting device, the telescopic screen is controlled to expand and contract to select a target camera from among multiple cameras, and a target preview image is displayed based on the image collected by the target camera. Different target cameras can be selected to collect target preview images based on different expansion and contraction information of the telescopic screen. When shooting a panoramic image, the telescopic screen is controlled to mechanically move the camera, ensuring a higher panoramic yield. By combining images collected by multiple cameras, the telescopic screen's expansion length can be changed to achieve a wider shooting angle in the preview image without compromising the appearance of the object size in the preview image, thereby optimizing the shooting effect and improving the shooting experience.

[0011] As can be seen, since the telescoping length of the telescoping screen changes during shooting, it further ensures a higher degree of fit between the acquired target preview image and the display area of ​​the telescoping screen, so that the target preview image can be displayed on the telescoping screen without any loss, and the image actually captured matches the target preview image. [Brief explanation of the drawings]

[0012] [Figure 1] 1 shows one flowchart of an imaging method according to an embodiment of the present application. [Figure 2] 10 shows a second flowchart of the imaging method according to the embodiment of the present application. [Figure 3] 1 shows one of schematic diagrams of an imaging device according to an embodiment of the present application. [Figure 4] 2 shows a second schematic diagram of an imaging device according to an embodiment of the present application. [Figure 5] 10 shows a third flowchart of the imaging method according to the embodiment of the present application. [Figure 6] 1 shows a schematic diagram of an image capturing device according to an embodiment of the present application capturing an image; [Figure 7]10 shows a fourth flowchart of the imaging method according to the embodiment of the present application. [Figure 8] 2 shows a second schematic diagram of an image capturing device according to an embodiment of the present application capturing an image. [Figure 9] 5 shows a fifth flowchart of the imaging method according to the embodiment of the present application. [Figure 10] 3 shows a third schematic diagram of an image capturing device according to an embodiment of the present application capturing an image. [Figure 11] 10 shows a sixth flowchart of the imaging method according to the embodiment of the present application. [Figure 12] 1 shows a structural block diagram of an imaging device according to an embodiment of the present application; [Figure 13] 1 shows a structural block diagram of an electronic device according to an embodiment of the present application; [Figure 14] 1 is a schematic diagram of a hardware structure for realizing an electronic device according to an embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION

[0013] The following clearly describes the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present application fall within the scope of protection of the present application.

[0014] The terms "first," "second," etc. in the specification and claims of this application are intended to distinguish between similar objects and are not intended to describe a particular order or sequence. It is to be understood that terms used in this manner are interchangeable where appropriate, so that embodiments of this application may be performed in orders other than those illustrated or described herein, and that objects distinguished by "first," "second," etc. are generally of the same type and do not limit the number of objects; for example, a first object may be one or more. Furthermore, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the related objects.

[0015] In the following, the photographing method, device and electronic device according to the embodiments of the present application will be described in detail with reference to specific examples and application scenarios in conjunction with FIGS.

[0016] This embodiment provides a photographing method, and FIG. 1 shows one of the flowcharts of the photographing method according to the embodiment of the present application. As shown in FIG. 1, the photographing method includes the following steps:

[0017] Step 102, obtain the retractable screen retractable information; Here, the expansion / contraction information includes at least one of an expansion / contraction speed and an expansion / contraction length, Step 104: Determine a target camera for shooting based on the stretch information; Step 106, display the target preview image collected by the target camera.

[0018] In the photographing method according to the present embodiment, the photographing method is mainly used in an electronic device having a retractable screen, whereby the photographed preview image changes as the retractable screen moves, improving the user's preview experience. During the photographing process using the photographing device, the photographing device obtains the retractable screen's expansion / contraction information, which includes at least one of the expansion / contraction speed and the expansion / contraction length. The photographing device analyzes the expansion / contraction information to determine a target camera that needs to be called during the photographing process. The target camera is called to collect images, and a target preview image is generated based on the images collected by the target camera, and the target preview image is displayed on the retractable screen.

[0019] Specifically, during shooting, a user can control the extension / retraction state of the retractable screen. During shooting, after receiving a control command for the extension / retraction state of the retractable screen, the shooting device controls the retractable screen to begin performing a corresponding extension / retraction operation and acquires extension / retraction information for the retractable screen, the extension / retraction information including at least one of an extension / retraction length and an extension / retraction speed. Based on at least one of the extension / retraction length and the extension / retraction speed of the retractable screen, a target camera is selected from among multiple cameras of the shooting device, and images are collected by the target camera. Here, the number of target cameras may be one or multiple. The retractable screen is controlled to display a target preview image collected by the target camera. The target preview image may be an image captured by a single target camera, or the target image may be an image obtained by processing images captured by multiple target cameras.

[0020] In some embodiments, when a user takes a panoramic image using a camera with a telescopic screen, the user does not need to manually move the camera, but can mechanically move the camera by controlling the telescopic screen extension and retraction, thereby improving the yield of the panoramic image. By displaying a target preview image corresponding to the panoramic image on the telescopic screen, it is possible to ensure that the panoramic image and the telescopic screen have a relatively high degree of match, and improve the viewing angle of the panoramic image on the telescopic screen without compromising the size of the object in the panoramic image.

[0021] In the embodiment of the present application, during shooting by the photographing device, the telescopic screen is controlled to expand and contract to select a target camera from among multiple cameras, and a target preview image is displayed based on the image collected by the target camera. Different target cameras can be selected to collect target preview images based on different expansion and contraction information of the telescopic screen. When shooting a panoramic image, the telescopic screen is controlled to mechanically move the camera, ensuring a higher panoramic yield. By combining images collected by multiple cameras, the telescopic screen's expansion length can be changed to achieve a wider viewing angle in the preview image without compromising the appearance of the object size in the preview image, thereby optimizing the shooting effect and improving the shooting experience.

[0022] As can be seen, since the telescoping length of the telescoping screen changes during shooting, it further ensures a higher degree of fit between the acquired target preview image and the display area of ​​the telescoping screen, so that the target preview image can be displayed on the telescoping screen without any loss, and the image actually captured matches the target preview image.

[0023] The retractable screen's retraction information includes a retraction length. The larger the retractable screen's retraction length, the larger the screen display area of ​​the retractable screen, and the smaller the retractable screen's retraction length, the smaller the screen display area of ​​the retractable screen. Depending on the size of the display area of ​​the retractable screen, different cameras in the photographing device are selected to photograph, including cameras with different positions and functions, and the target preview image photographed thereby is matched to the size of the display area of ​​the display screen.

[0024] It should be noted that the telescopic information of the telescopic screen includes the telescopic speed. When the telescopic speed of the telescopic screen is zero, the telescopic screen is in a stationary state. When the telescopic screen is in a stationary state, the target image is collected and displayed by the target camera. When the telescopic speed of the telescopic screen is greater than zero, the telescopic screen is in a telescopic state, and the shooting parameters of the called camera may change. In order to ensure the imaging effect, when the pulling speed is relatively fast, a camera with a relatively high motion capture ability may be selected for shooting.

[0025] In some embodiments of the present application, FIG. 2 shows a second flowchart of a photographing method according to an embodiment of the present application. As shown in FIG. 2, the step of determining a target camera for photographing based on stretch information specifically includes:

[0026] In step 202, if the telescopic information indicates that the telescopic screen is being deployed or retracted, obtain the real-time telescopic length of the telescopic screen while the telescopic screen is being deployed or retracted.

[0027] Here, the scaling information includes at least one of the scaling speed and the scaling length. Specifically, the scaling information of the telescopic screen is acquired, and if the scaling speed in the scaling information is determined to be greater than 0, it is determined that the telescopic screen is in a moving state, i.e., the telescopic screen is determined to be unfolding or retracting. The specific moving state of the telescopic screen is determined based on the scaling length in the scaling information, and the change in the stretched length of the telescopic screen obtained from two adjacent collections is determined. If it is determined that the stretched length is increasing, it is determined that the telescopic screen is unfolding, and if it is determined that the stretched length is decreasing, it is determined that the telescopic screen is retracting.

[0028] In step 204, the number of cameras corresponding to the real-time expansion / contraction length is determined as target cameras.

[0029] In the embodiment of the present application, the current state of the telescopic screen can be determined based on the telescopic information, and when it is determined that the telescopic screen is in motion, i.e., the telescopic screen is being deployed or the telescopic screen is being retracted, the real-time telescopic length of the telescopic screen is detected, and the target camera among the multiple cameras is determined based on the real-time telescopic length of the telescopic screen.

[0030] In some embodiments, the electronic device includes multiple cameras, and the multiple cameras are all installed on the retractable screen. When the retractable screen is fully wound up, an exposed camera exists. In response to a shooting start command, the electronic device calls the exposed camera to collect a target preview image. A correspondence relationship between the other cameras and the length of the retractable screen is stored in a memory of the electronic device. The target camera is searched for based on the correspondence relationship based on the real-time retraction length of the retractable screen.

[0031] In some embodiments, the electronic device includes multiple cameras, each of which is mounted on a retractable screen, and some of the cameras are exposed when the retractable screen is fully retracted. Each of the cameras is equipped with a photosensitive element, and a target camera is selected from the multiple cameras based on a change in light flux detected by the photosensitive element during retraction or extension of the retractable screen. For example, when a change in light flux of one camera is detected to exceed a change threshold, the camera is selected as the target camera.

[0032] Specifically, a plurality of cameras are generally installed on a camera equipped with a telescopic screen. When the telescopic screen of the camera is in a contracted state, some of the cameras are in a retracted state. As the telescopic screen is deployed, the retracted cameras move along with the telescopic screen until they are exposed. By controlling the movement of the telescopic screen, the number of exposed cameras is adjusted, and the target camera is determined based on the real-time telescopic length of the telescopic screen.

[0033] Here, the photographing device is provided with a driving member for driving the movement of the retractable screen, and the real-time retraction length may be obtained based on the driving parameters of the driving member.

[0034] Specifically, a rollable screen is selected as the telescopic screen, a drive motor is selected as the driving member, and the real-time telescopic length of the telescopic screen can be obtained based on the rotation speed and operating time length of the drive motor.

[0035] FIG. 3 shows a schematic diagram of a photographing device according to an embodiment of the present application. As shown in FIG. 3, the photographing device is a mobile phone 300, and the retractable screen is installed as a rollable screen 302. The mobile phone has a first camera 304 and a second camera 306. The first camera 304 and the second camera 306 are both located on the rollable screen 302. When the rollable screen 302 of the mobile phone 300 is in a rolled-up state, the first camera 304 is in an exposed state, and the second camera 306 is in a retracted state. The first camera 304 functions as a main camera, i.e., when the rollable screen 302 is in a rolled-up state, a user can take pictures using the first camera 304. The second camera 306 functions as an auxiliary camera, and when the rollable screen 302 is in an unrolled state, the second camera 306 is in an exposed state. When the second camera 306 is in an exposed state, a user can take pictures using the second camera 306. During extension and retraction of the rollable screen 302, the second camera 306 moves with the rollable screen 302.

[0036] The embodiments of the present application can select different cameras in different positions as target cameras based on the movement of the retractable screen, and can also automatically select a camera stored along with the retractable screen as the target camera.

[0037] Specifically, the camera device has a plurality of cameras with different functions, and when the telescopic screen of the camera device moves to different real-time telescopic lengths, the camera device can select from the plurality of cameras with different functions.

[0038] FIG. 4 shows a second schematic diagram of a photographing device according to an embodiment of the present application. As shown in FIG. 4, the photographing device is a mobile phone 400, and the retractable screen is installed as a rollable screen 402. The mobile phone 400 has a third camera 404 and a fourth camera 406. The rollable screen 402 is fully rolled up, and the third camera 404 and the fourth camera 406 are both exposed. Here, the viewfinder range of the third camera 404 is smaller than the viewfinder range of the fourth camera 406. When the real-time retraction length of the mobile phone 400 has not reached the set length, the third camera 404 is controlled as the target camera to take a photograph. When the real-time retraction length of the mobile phone 400 reaches the set length, at least one of the third camera 404 and the fourth camera 406 is selected to take a photograph.

[0039] In the embodiment of the present application, cameras with different shooting functions can be selected as target cameras according to the movement of the retractable screen, and a camera with the corresponding function can be automatically selected as target camera based on the real-time retraction length of the screen, thereby improving the compatibility between the captured target preview image and the screen size.

[0040] It should be noted that the multiple target cameras corresponding to the real-time telescopic length may be cameras at different positions of the photographing device, and may be selected as cameras with different viewfinder ranges, thereby improving the flexibility of selection.

[0041] In some embodiments of the present application, FIG. 5 shows a third flowchart of a photographing method according to an embodiment of the present application. As shown in FIG. 5, before displaying the preview image collected by the target camera, If the retractable screen information indicates that the retractable screen is stationary, then step 502 acquires at least one preview sub-image collected by the target camera; The method further includes performing image stitching on at least one preview sub-image to generate a target preview image (504).

[0042] In an embodiment of the present application, during shooting by the photographing device, after determining the target camera and before displaying the preview image collected by the target camera, the acquired stretching information is analyzed and processed, and based on the stretching information, it is determined that the retractable screen is in a stationary state, and a preview sub-image collected by the target camera is acquired, where the preview sub-image may be one or more, and the number of target cameras may be one or more. It can be understood that when there are multiple preview sub-images, the multiple preview sub-images are images respectively collected by multiple target cameras, or the multiple preview sub-images are multiple images collected by one target camera. After obtaining the preview sub-images, the preview sub-images are stitched together to generate a target preview image, which facilitates the photographing device to subsequently display the target preview image.

[0043] When the retractable screen is stationary and there are multiple target cameras, multiple preview sub-images are collected by the multiple target cameras, and because at least one of the positions and viewfinder ranges of the multiple target cameras are different and the scenes in the multiple preview sub-images captured by the multiple target cameras are also different, the target preview image obtained by stitching the multiple preview sub-images can cover more scenes, further improving the imaging effect of the target preview image and improving the user experience.

[0044] 6 shows a schematic diagram of an image capturing device according to an embodiment of the present application, and as shown in FIG. 6, the target camera includes two cameras, a fifth camera 606 and a sixth camera 608. A first preview sub-image 602 can be captured by the fifth camera 606, and a second preview sub-image can be captured by the sixth camera 608. A target preview image 604 including all the objects captured in the first preview sub-image and the second preview sub-image can be generated by stitching the first preview sub-image 602 and the second preview sub-image.

[0045] As can be seen, in the process of stitching the preview sub-images, the same object in multiple preview sub-images can be searched for, and the image of the same object can be processed through stitching to improve its clarity, which not only increases the object in the target preview image but also further improves the imaging effect of the target preview image.

[0046] In some embodiments of the present application, the target camera includes at least one first camera in a stationary state and at least one second camera in a moving state. FIG. 7 shows a fourth flowchart of the photographing method according to the embodiments of the present application. As shown in FIG. 7, before displaying the preview image collected by the target camera, If the retraction information indicates that the retractable screen is being deployed, step 702 acquires at least one first preview sub-image collected by at least one first camera and at least one second preview sub-image collected by at least one second camera during deployment of the retractable screen; The method further includes performing image stitching on the at least one first preview sub-image and the at least one second preview sub-image to generate a target preview image (step 704).

[0047] In an embodiment of the present application, the photographing device includes multiple cameras, including a first camera and a second camera, where the first camera is stationary and the second camera is moving. It can be understood that the first camera and the second camera are both installed on the screen of the telescopic screen. During the telescopic screen deployment, the screen is deployed along one direction, where the first camera does not move with the screen deployment, and the second camera moves with the screen deployment. If it is determined based on the telescopic information that the telescopic screen is deployed, the first camera takes an image in a stationary state, and the second camera takes an image during movement. Since the second camera is photographing and in a moving state, a target preview image is obtained by stitching a first preview sub-image collected by the first camera and a second preview sub-image collected by the second camera. The target preview image is a panoramic image.

[0048] As can be understood, the number of first cameras in a stationary state may be one or more, and if there are multiple first cameras, at least one of the positions and viewfinder ranges of the multiple first cameras are different. The number of second cameras in a moving state may be one or more, and if there are multiple second cameras, at least one of the positions and viewfinder ranges are set for the multiple second cameras.

[0049] Specifically, when a user needs to use the camera to take a photo, the telescopic screen of the camera is controlled to begin unfolding. The first camera of the camera does not move with the unfolding of the telescopic screen. During the unfolding of the telescopic screen, the first camera remains stationary and collects a first preview sub-image. The second camera of the camera moves with the unfolding of the telescopic screen, continuously collecting a second preview sub-image during the movement. The second preview sub-image and the first preview sub-image are stitched together to obtain a panoramic image, which is displayed as the target preview image. During the entire unfolding of the telescopic screen, the second camera is driven by a driving member to ensure the stability of the movement of the telescopic screen.

[0050] In the embodiment of the present application, during the process of capturing a panoramic image, the second camera moving along with the retractable screen is controlled to collect the second preview sub-image, and instead of the user manually moving the photographing device, the retractable screen is deployed, and the retractable screen is driven by a driving member throughout the entire deployment process, so that the second camera can maintain a constant and stable movement during the process of capturing the second preview sub-image, thereby avoiding the problem of poor imaging results caused by shaking when the user manually photographs.

[0051] 8 shows a second schematic diagram of an image capture device according to an embodiment of the present application. As shown in FIG. 8, the image capture device is a mobile phone, and the retractable screen is a rollable screen. A first camera and a second camera are both installed on the rollable screen. The second camera is the main camera of the image capture device, i.e., when the rollable screen is fully rolled up, the second camera is also in an exposed state. The first camera is the auxiliary camera, i.e., when the rollable screen is fully rolled up, the first camera is in a stowed state, and when the rollable screen is fully unfolded, the first camera is in an exposed state. The rollable screen is controlled to begin unfolding during image capture. During unfolding, the second camera moves parallel to the right at a constant speed in accordance with the unfolding of the rollable screen. The second camera continuously captures a second preview sub-image 804 during movement until the first camera is in an exposed state. When the first camera is in an exposed state, the second camera begins to capture a first preview sub-image 802. The exposure position of the first camera is different from the initial position of the second camera, specifically, it is located to the left of the initial position of the second camera. The first preview sub-image 802 and the second preview sub-image 804 are combined to obtain a panoramic target preview image 806. During shooting, the rollable screen expands and contracts in real time in the unfolded state, gradually increasing the displayable area of ​​the rollable screen, thereby ensuring that the size of the panoramic target preview image 806 fits the display area of ​​the rollable screen.

[0052] It should be noted that the speed at which the second camera moves can affect the second preview sub-images that are collected, thereby affecting the target preview image that is ultimately generated.

[0053] In some embodiments, the photographing device can collect the brightness of the photographing environment using an optical sensor before photographing begins, and then control the unfolding speed of the rollable screen during photographing to ensure that the movement speed of the second camera meets the exposure requirements of the second preview sub-image. For example, in a relatively dark environment, the AE exposure is relatively long, and if the movement of the second camera is too fast, problems such as smearing may occur in the second preview sub-image. In this case, the unfolding speed of the rollable screen can be automatically reduced to improve the image quality of the second preview sub-image and the image quality of the fused target preview image.

[0054] In some embodiments, a user can also control the speed at which the rollable screen expands and contracts while filming. For example, while filming, a user can control the rollable screen to begin expanding and contracting by pressing a volume key. Pressing the volume "+" button controls the rollable screen to expand at a first speed, pressing and holding the volume "+" button controls the rollable screen to expand at a second speed, pressing the volume "-" button controls the rollable screen to contract at a first speed, and pressing and holding the volume "-" button controls the rollable screen to contract at a second speed, where the first speed is less than the second speed. A user can control the speed at which the rollable screen expands and contracts by changing the trigger type for the buttons.

[0055] It should be noted that the user can also adjust the retraction speed of the retractable screen in the setting interface of the photographing device.

[0056] In some embodiments of the present application, the target camera includes at least one third camera in a stationary state and at least one fourth camera in a moving state. FIG. 9 shows a fifth flowchart of the photographing method according to the embodiments of the present application. As shown in FIG. 9, before displaying the preview image collected by the target camera, If the retraction information indicates that the retractable screen is retracting, step 902 acquires at least one third preview sub-image collected by at least one third camera and at least one fourth preview sub-image collected by at least one fourth camera during retraction of the retractable screen; The method further includes step 904 of cropping the at least one third preview sub-image based on the at least one fourth preview sub-image to generate a target preview image.

[0057] In an embodiment of the present application, the photographing device includes multiple cameras, including a third camera and a fourth camera, where the third camera is stationary and the fourth camera is moving. It can be understood that the third camera and the fourth camera are both installed on the screen of the telescopic screen, and the screen is expanded along one direction during expansion of the telescopic screen, where the third camera does not move with the expansion of the screen, and the fourth camera moves with the expansion of the screen. If it is determined based on the expansion information that the telescopic screen is expanding, the third camera takes an image in a stationary state, and the fourth camera takes an image during movement. A corresponding target preview image can be generated by cropping the third preview sub-image with the fourth preview sub-image taken by the fourth camera during movement.

[0058] Specifically, when the photographing device starts photographing, the third preview sub-image collected by the stationary third camera is displayed as the target preview image. During photographing, the moving fourth camera continuously collects fourth preview sub-images, and cuts the third preview sub-image based on the collected fourth preview sub-images in real time. The photographing device displays the target preview image obtained through the cutting process.

[0059] Specifically, the photographing device is a mobile phone, and the retractable screen is a rollable screen. A third camera and a fourth camera are both installed on the rollable screen, where the third camera is the main camera of the photographing device and the fourth camera is the auxiliary camera of the photographing device. When the rollable screen is fully deployed, both the third camera and the fourth camera are in an exposed state. The rollable screen is controlled to begin contracting during photographing, and during contraction, the third camera remains stationary and continuously collects a third preview sub-image. At this time, the photographing device displays the third preview sub-image as a target preview image. The fourth camera translates to the left at a constant speed as the rollable screen deploys. During the movement, the fourth camera continuously collects a fourth preview sub-image and crops the third preview sub-image based on the collected fourth preview sub-image, updating the displayed target preview image with the cropped image.

[0060] In an embodiment of the present application, during shooting, the telescopic screen is controlled to be in a contracted state, so that the third preview image collected by the third camera in a stationary state is cut with the fourth preview image collected by the fourth camera in a moving state, and during cutting, the main photographed object in the third preview image is reserved, and the background of the main photographed object is cut with the fourth preview image, so that the target preview image captured by the photographing device and displayed is an image including the main photographed object.

[0061] In some embodiments of the present application, the step of determining a target camera for shooting based on the stretching information specifically includes: selecting one camera from the at least two cameras as the target camera when the stretching information indicates that the retractable screen is being deployed or retracted.

[0062] In an embodiment of the present application, the photographing device includes at least two cameras, and the at least two cameras are different cameras. During photographing by the photographing device, one of the at least two cameras is selected as a target camera according to the stretching state of the retractable screen.

[0063] The at least two cameras are completely different cameras, and optionally the installation positions of the at least two cameras are different, specifically, when the retractable screen is in a fully retracted state, the at least two cameras include a camera in an exposed state and a camera in a retracted state. Further optionally, the viewfinder ranges of the at least two cameras are different. Further optionally, the zoom magnifications of the at least two cameras are different.

[0064] In the embodiment of the present application, a camera is automatically selected from multiple cameras based on the expansion and contraction state of the retractable screen of the photographing device, and the user can switch cameras by controlling the expansion and contraction state of the retractable screen, thereby reducing the number of operational steps required by the user during photographing.

[0065] In some embodiments of the present application, when the telescopic information indicates that the telescopic screen is being deployed or retracted, selecting one camera from the at least two cameras as the target camera includes: switching a first camera in an operational state to a second camera when the telescopic information indicates that the telescopic screen is being deployed; and switching a first camera in an operational state to a third camera when the telescopic information indicates that the telescopic screen is being retracted, wherein a zoom magnification of the first camera is smaller than a zoom magnification of the second camera and a zoom magnification of the first camera is larger than a zoom magnification of the third camera.

[0066] In an embodiment of the present application, the photographing device includes a first camera, a second camera, and a third camera with a relatively small zoom magnification, and a second camera with a relatively large zoom magnification. When it is determined based on the telescopic information that the telescopic screen is being deployed, the second camera with a relatively large zoom magnification is turned on and the first camera is turned off, and an image collected by the second camera is used as a target preview image. When it is determined based on the telescopic information that the telescopic screen is being retracted, the third camera with a relatively small zoom magnification is turned on and the first camera is turned off, and an image collected by the third camera is used as a target preview image.

[0067] Specifically, the photographing device is a mobile phone, and the retractable screen is a rollable screen. After a user turns on the photographing function of the mobile phone, the mobile phone collects an image using a first camera and displays the image on the rollable screen as a target preview image. In response to a user's input controlling the unfolding of the rollable screen, the mobile phone controls the rollable screen to begin unfolding. At this time, the mobile phone determines that the user needs to photograph a relatively distant scene, i.e., that there is a need to increase the zoom ratio, and controls the mobile phone to turn off the first camera and turn on the second camera, so that the image collected by the second camera with a relatively large zoom ratio is the target preview image. In response to a user's input controlling the retraction of the rollable screen, the mobile phone controls the rollable screen to begin retracting. At this time, the mobile phone determines that the user needs to photograph a relatively close scene, i.e., that there is a need to decrease the zoom ratio, and controls the mobile phone to turn off the first camera and turn on the third camera, so that the image collected by the third camera with a relatively small zoom ratio is the target preview image.

[0068] Here, the second camera is a periscope camera and the third camera is a wide-angle camera, where the periscope camera has a maximum magnification of 60x and a minimum magnification of 1x, and the wide-angle camera has a maximum magnification of 1x and a minimum magnification of 0.6x.

[0069] In the embodiment of the present application, it can automatically identify and adjust according to the object to be photographed. For example, if it is identified that the object to be photographed is a person, a high magnification is not required to photograph a person, so it automatically switches to the third camera, and automatically stretches the screen and adjusts the magnification to place the person in the center of the screen and appropriately size it. If a wide angle is often required to photograph a landscape, it automatically switches to the second camera. In some embodiments of the present application, if the stretch information indicates that the stretchable screen is being deployed or retracted, the zoom factor of the target camera is adjusted.

[0070] In an embodiment of the present application, after determining the target camera, the image collected by the target camera is displayed on the retractable screen as a target preview image, and the user adjusts the zoom magnification of the target camera by controlling the retractable state of the retractable screen.

[0071] FIG. 10 shows a third schematic diagram of an image capture device according to an embodiment of the present application. As shown in FIG. 10 , when a user controls the capture device to start capturing images, the user controls the target camera to collect an image at the set zoom magnification as a target preview image 1002. When the user controls the retractable screen to be in the unfolding state, the user controls the zoom magnification to increase. When the zoom magnification is increased to an appropriate magnification, the user controls the retractable screen to stop continuing the unfolding, and the zoom magnification does not change. When the user controls the retractable screen to be in the contracting state, the user controls the zoom magnification to decrease. When the user controls the retractable screen to stop continuing the contraction, the zoom magnification does not change. During the zoom magnification adjustment, the target preview image 1002 changes accordingly. A zoom magnification scale 1004 is displayed below the target preview image 1002, and the zoom magnification scale 1004 also changes according to the zoom magnification and the contraction state of the retractable screen.

[0072] In the embodiment of the present application, by controlling the retractable screen retractable state to adjust the zoom magnification of the image collected by the target camera, the user does not need to call up the adjustment interface when adjusting the zoom magnification, which simplifies the operation steps for the user to adjust the zoom magnification, and the adjusted zoom magnification can be displayed on the target preview image, allowing the user to clearly know the current zoom magnification of the camera.

[0073] In some embodiments of the present application, FIG. 11 shows a sixth flowchart of an imaging method according to an embodiment of the present application. As shown in FIG. 11, the imaging method includes: a step 1102 of receiving a first input from a user; The method further includes controlling 1104 the camera to capture the target image based on the target preview image in response to the first input.

[0074] In an embodiment of the present application, during shooting of the shooting device, a first input from a user is received, and based on the currently displayed target preview image, the camera is controlled to capture a target image, and the target image is stored in a local storage area.

[0075] In some embodiments, in response to a first user input, the displayed target preview image is directly stored as the target image, thereby ensuring that the target image exactly matches the preview image the user saw while capturing.

[0076] In some embodiments, in response to a first user input, an original image collected by the target camera corresponding to the target preview image is retrieved, and the original image is processed based on the target preview image to generate a target image, where the target image has greater clarity than the preview image because the target image is obtained by processing the original image.

[0077] In these implementations, the target image is obtained by processing the original image according to steps such as cutting, stitching, etc. during the generation of the target preview image, and the content and display effect in the target image are guaranteed to be the same as those in the target preview image.

[0078] It should be noted that the execution body of the imaging method according to the embodiment of the present application may be an imaging device or a control module for executing the imaging method in the imaging device. In the embodiment of the present application, the imaging device according to the embodiment of the present application will be described by taking the imaging device executing the imaging method as an example.

[0079] In some embodiments of the present application, a photographing device including a retractable screen is provided. Figure 12 shows a structural block diagram of a photographing device 1200 according to an embodiment of the present application. As shown in Figure 12, the photographing device includes: an acquiring unit 1202 for acquiring extension / contraction information of the retractable screen, including at least one of an extension / contraction speed and an extension / contraction length; a determining unit 1204 for determining a target camera for shooting based on the stretching information; and a display unit 1206 for displaying a target preview image collected by the target camera.

[0080] In the embodiment of the present application, the photographing device is mainly used in an electronic device having a retractable screen, so that when the retractable screen moves, the captured preview image changes accordingly, improving the user's preview experience. During the photographing process by the photographing device, the photographing device obtains the retractable screen's stretching information, which includes the stretching speed and the stretching length, analyzes the stretching information of the retractable screen to determine the target camera that needs to be called during the photographing, calls the target camera to collect images, and generates a target preview image based on the images collected by the target camera, thereby displaying the target preview image on the retractable screen.

[0081] Specifically, during shooting, a user can control the extension / retraction state of the retractable screen. During shooting, after receiving a control command for the extension / retraction state of the retractable screen, the shooting device controls the retractable screen to begin performing a corresponding extension / retraction operation and acquires extension / retraction information for the retractable screen, the extension / retraction information including at least one of an extension / retraction length and an extension / retraction speed. Based on at least one of the extension / retraction length and the extension / retraction speed of the retractable screen, a target camera is selected from among multiple cameras of the shooting device, and images are collected by the target camera. Here, the number of target cameras may be one or multiple. The retractable screen is controlled to display a target preview image collected by the target camera. The target preview image may be an image captured by a single target camera, or the target image may be an image obtained by processing images captured by multiple target cameras.

[0082] In some embodiments, when a user takes a panoramic image using a camera with a telescopic screen, the user does not need to manually move the camera, but can mechanically move the camera by controlling the telescopic screen extension and retraction, thereby improving the yield of the panoramic image. By displaying a target preview image corresponding to the panoramic image on the telescopic screen, it is possible to ensure that the panoramic image and the telescopic screen have a relatively high degree of match, and improve the viewing angle of the panoramic image on the telescopic screen without compromising the size of the object in the panoramic image.

[0083] In the embodiment of the present application, during shooting by the photographing device, the telescopic screen is controlled to expand and contract to select a target camera from among multiple cameras, and a target preview image is displayed based on the image collected by the target camera. Different target cameras can be selected to collect target preview images based on different expansion and contraction information of the telescopic screen. When shooting a panoramic image, the telescopic screen is controlled to mechanically move the camera, ensuring a higher panoramic yield. By combining images collected by multiple cameras, the telescopic screen's expansion length can be changed to achieve a wider viewing angle in the preview image without compromising the appearance of the object size in the preview image, thereby optimizing the shooting effect and improving the shooting experience.

[0084] As can be seen, since the telescoping length of the telescoping screen changes during shooting, it further ensures a higher degree of fit between the acquired target preview image and the display area of ​​the telescoping screen, so that the target preview image can be displayed on the telescoping screen without any loss, and the image actually captured matches the target preview image.

[0085] The retractable screen's retraction information includes a retraction length. The larger the retractable screen's retraction length, the larger the screen display area of ​​the retractable screen, and the smaller the retractable screen's retraction length, the smaller the screen display area of ​​the retractable screen. Depending on the size of the display area of ​​the retractable screen, different cameras in the photographing device are selected to photograph, including cameras with different positions and functions, and the target preview image photographed thereby is matched to the size of the display area of ​​the display screen.

[0086] It should be noted that the telescopic information of the telescopic screen includes the telescopic speed. When the telescopic speed of the telescopic screen is zero, the telescopic screen is in a stationary state. When the telescopic screen is in a stationary state, the target image is collected and displayed by the target camera. When the telescopic speed of the telescopic screen is greater than zero, the telescopic screen is in a telescopic state, and the shooting parameters of the called camera may change. In order to ensure the imaging effect, when the pulling speed is relatively fast, a camera with a relatively high motion capture ability may be selected for shooting.

[0087] In some embodiments of the present application, the acquisition unit 1202 is further used to acquire a real-time extension length of the telescopic screen during the extension or contraction of the telescopic screen when the telescopic information indicates that the telescopic screen is being extended or contracted; Here, the expansion / contraction information includes at least one of the expansion / contraction speed and the expansion / contraction length.

[0088] Specifically, the telescopic screen's telescopic information is acquired, and if it is determined that the telescopic speed in the telescopic information is greater than 0, it is determined that the telescopic screen is in a moving state, that is, the telescopic screen is being unfolded or retracted. The specific moving state of the telescopic screen is determined based on the telescopic length in the telescopic information, and the change in the telescopic length of the telescopic screen obtained from two adjacent collections is determined. If it is determined that the telescopic length is increasing, it is determined that the telescopic screen is being unfolded, and if it is determined that the telescopic length is decreasing, it is determined that the telescopic screen is being retracted.

[0089] The determining unit 1204 is further used for determining the number of cameras corresponding to the real-time telescopic length as target cameras.

[0090] In the embodiment of the present application, the current state of the telescopic screen can be determined based on the telescopic information, and when it is determined that the telescopic screen is in motion, i.e., the telescopic screen is being deployed or the telescopic screen is being retracted, the real-time telescopic length of the telescopic screen is detected, and the target camera among the multiple cameras is determined based on the real-time telescopic length of the telescopic screen.

[0091] In some embodiments, the electronic device includes multiple cameras, and the multiple cameras are all installed on the retractable screen. When the retractable screen is fully wound up, an exposed camera exists. In response to a shooting start command, the electronic device calls the exposed camera to collect a target preview image. A correspondence relationship between the other cameras and the length of the retractable screen is stored in a memory of the electronic device. The target camera is searched for based on the correspondence relationship based on the real-time retraction length of the retractable screen.

[0092] In some embodiments, the electronic device includes multiple cameras, each of which is mounted on a retractable screen, and some of the cameras are exposed when the retractable screen is fully retracted. Each of the cameras is equipped with a photosensitive element, and a target camera is selected from the multiple cameras based on a change in light flux detected by the photosensitive element during retraction or extension of the retractable screen. For example, when a change in light flux of one camera is detected to exceed a change threshold, the camera is selected as the target camera.

[0093] Specifically, a plurality of cameras are generally installed on a camera equipped with a telescopic screen. When the telescopic screen of the camera is in a contracted state, some of the cameras are in a retracted state. As the telescopic screen is deployed, the retracted cameras move along with the telescopic screen until they are exposed. By controlling the movement of the telescopic screen, the number of exposed cameras is adjusted, and the target camera is determined based on the real-time telescopic length of the telescopic screen.

[0094] Here, the photographing device is provided with a driving member for driving the movement of the retractable screen, and the real-time retraction length may be obtained based on the driving parameters of the driving member.

[0095] Specifically, a rollable screen is selected as the telescopic screen, a drive motor is selected as the driving member, and the real-time telescopic length of the telescopic screen can be obtained based on the rotation speed and operating time length of the drive motor.

[0096] In some embodiments of the present application, the acquisition unit 1202 is further adapted to acquire at least one preview sub-image collected by the target camera when the stretching information indicates that the stretchable screen is stationary; The imaging device is The image processing device further includes a first generating unit for performing image stitching on at least one preview sub-image to generate a target preview image.

[0097] In an embodiment of the present application, during shooting by the photographing device, after determining the target camera and before displaying the preview image collected by the target camera, the acquired stretching information is analyzed and processed, and based on the stretching information, it is determined that the retractable screen is in a stationary state, and a preview sub-image collected by the target camera is acquired, where the preview sub-image may be one or more, and the number of target cameras may be one or more. It can be understood that when there are multiple preview sub-images, the multiple preview sub-images are images respectively collected by multiple target cameras, or the multiple preview sub-images are multiple images collected by one target camera. After obtaining the preview sub-images, the preview sub-images are stitched together to generate a target preview image, which facilitates the photographing device to subsequently display the target preview image.

[0098] When the retractable screen is stationary and there are multiple target cameras, multiple preview sub-images are collected by the multiple target cameras, and because at least one of the positions and viewfinder ranges of the multiple target cameras are different and the scenes in the multiple preview sub-images captured by the multiple target cameras are also different, the target preview image obtained by stitching the multiple preview sub-images can cover more scenes, further improving the imaging effect of the target preview image and improving the user experience.

[0099] In some embodiments of the present application, the acquisition unit 1202 is further used for acquiring, when the retraction information indicates that the retractable screen is being unfolded, at least one first preview sub-image collected by the at least one first camera and at least one second preview sub-image collected by the at least one second camera during the unfolding of the retractable screen; The imaging device is The image processing device further includes a second generating unit for performing image stitching on the at least one first preview sub-image and the at least one second preview sub-image to generate a target preview image.

[0100] In an embodiment of the present application, the photographing device includes multiple cameras, including a first camera and a second camera, where the first camera is stationary and the second camera is moving. It can be understood that the first camera and the second camera are both installed on the screen of the telescopic screen. During the telescopic screen deployment, the screen is deployed along one direction, where the first camera does not move with the screen deployment, and the second camera moves with the screen deployment. If it is determined based on the telescopic information that the telescopic screen is deployed, the first camera takes an image in a stationary state, and the second camera takes an image during movement. Since the second camera is photographing and in a moving state, a target preview image is obtained by stitching a first preview sub-image collected by the first camera and a second preview sub-image collected by the second camera. The target preview image is a panoramic image.

[0101] As can be understood, the number of first cameras in a stationary state may be one or more, and if there are multiple first cameras, at least one of the positions and viewfinder ranges of the multiple first cameras are different. The number of second cameras in a moving state may be one or more, and if there are multiple second cameras, at least one of the positions and viewfinder ranges are set for the multiple second cameras.

[0102] Specifically, when a user needs to use the camera to take a photo, the telescopic screen of the camera is controlled to begin unfolding. The first camera of the camera does not move with the unfolding of the telescopic screen. During the unfolding of the telescopic screen, the first camera remains stationary and collects a first preview sub-image. The second camera of the camera moves with the unfolding of the telescopic screen, continuously collecting a second preview sub-image during the movement. The second preview sub-image and the first preview sub-image are stitched together to obtain a panoramic image, which is displayed as the target preview image. During the entire unfolding of the telescopic screen, the second camera is driven by a driving member to ensure the stability of the movement of the telescopic screen.

[0103] In the embodiment of the present application, during the process of capturing a panoramic image, the second camera moving along with the retractable screen is controlled to collect the second preview sub-image, and instead of the user manually moving the photographing device, the retractable screen is deployed, and the retractable screen is driven by a driving member throughout the entire deployment process, so that the second camera can maintain a constant and stable movement during the process of capturing the second preview sub-image, thereby avoiding the problem of poor imaging results caused by shaking when the user manually photographs.

[0104] In some embodiments of the present application, the acquisition unit 1202 is further used for acquiring, when the stretching information indicates that the retractable screen is being retracted, at least one third preview sub-image collected by the at least one third camera and at least one fourth preview sub-image collected by the at least one fourth camera during retraction of the retractable screen; The imaging device is The image processing device further includes a third generating unit for cropping the at least one third preview sub-image based on the at least one fourth preview sub-image to generate a target preview image.

[0105] In an embodiment of the present application, the photographing device includes multiple cameras, including a third camera and a fourth camera, where the third camera is stationary and the fourth camera is moving. It can be understood that the third camera and the fourth camera are both installed on the screen of the telescopic screen, and the screen is expanded along one direction during expansion of the telescopic screen, where the third camera does not move with the expansion of the screen, and the fourth camera moves with the expansion of the screen. If it is determined based on the expansion information that the telescopic screen is expanding, the third camera takes an image in a stationary state, and the fourth camera takes an image during movement. A corresponding target preview image can be generated by cropping the third preview sub-image with the fourth preview sub-image taken by the fourth camera during movement.

[0106] Specifically, when the photographing device starts photographing, the third preview sub-image collected by the stationary third camera is displayed as the target preview image. During photographing, the moving fourth camera continuously collects fourth preview sub-images, and cuts the third preview sub-image based on the collected fourth preview sub-images in real time. The photographing device displays the target preview image obtained through the cutting process.

[0107] In some embodiments of the present application, the determining unit 1204 is further used to select one camera from the at least two cameras as a target camera when the telescopic information indicates that the telescopic screen is being deployed or retracted.

[0108] In an embodiment of the present application, the photographing device includes at least two cameras, and the at least two cameras are different cameras. During photographing by the photographing device, one of the at least two cameras is selected as a target camera according to the stretching state of the retractable screen.

[0109] The at least two cameras are completely different cameras, and optionally the installation positions of the at least two cameras are different, specifically, when the retractable screen is in a fully retracted state, the at least two cameras include a camera in an exposed state and a camera in a retracted state. Further optionally, the viewfinder ranges of the at least two cameras are different. Further optionally, the zoom magnifications of the at least two cameras are different.

[0110] In the embodiment of the present application, a camera is automatically selected from multiple cameras based on the expansion and contraction state of the retractable screen of the photographing device, and the user can switch cameras by controlling the expansion and contraction state of the retractable screen, thereby reducing the number of operational steps required by the user during photographing.

[0111] In some embodiments of the present application, the determining unit 1204 is further used for switching the first camera in an operational state to the second camera when the telescopic information indicates that the telescopic screen is being deployed; The determining unit 1204 is further used to switch the first camera in an active state to a third camera when the stretching information indicates that the stretchable screen is being retracted; Here, the zoom magnification of the first camera is smaller than the zoom magnification of the second camera, and the zoom magnification of the first camera is larger than the zoom magnification of the third camera.

[0112] In an embodiment of the present application, the photographing device includes a first camera, a second camera, and a third camera with a relatively small zoom magnification, and a second camera with a relatively large zoom magnification. When it is determined based on the telescopic information that the telescopic screen is being deployed, the second camera with a relatively large zoom magnification is turned on and the first camera is turned off, and an image collected by the second camera is used as a target preview image. When it is determined based on the telescopic information that the telescopic screen is being retracted, the third camera with a relatively small zoom magnification is turned on and the first camera is turned off, and an image collected by the third camera is used as a target preview image.

[0113] In some embodiments of the present application, the imaging device comprises: a receiving unit for receiving a first input of a user; and a control unit for controlling the camera to capture a target image based on the target preview image in response to the first input.

[0114] In an embodiment of the present application, during shooting of the shooting device, a first input from a user is received, and based on the currently displayed target preview image, the camera is controlled to capture a target image, and the target image is stored in a local storage area.

[0115] The photographing device in the embodiments of the present application may be a device, or may be a component, integrated circuit, or chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet PC, a laptop, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and the non-mobile electronic device may be a server, a network-attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., but the embodiments of the present application are not specifically limited.

[0116] The photographing device in the embodiment of the present application may be a device having an operating system, which may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not specifically limited.

[0117] The imaging device according to the embodiment of the present application can implement each process implemented by the method embodiment of FIGS. 1 to 11, and will not be further described here to avoid repetition of description.

[0118] Optionally, an embodiment of the present application further provides an electronic device, and Fig. 13 shows a structural block diagram of an electronic device 1300 according to an embodiment of the present application, which includes a processor 1310, a memory 1309, and a program or instruction stored in the memory 1309 and operable on the processor 1310, and when the program or instruction is executed by the processor 1310, each process of the embodiment of the above-mentioned photographing method can be realized and the same technical effect can be achieved. In order to avoid repetition, no further description will be given here.

[0119] It should be noted that the electronic device 1300 in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.

[0120] The photographing device in the embodiments of the present application may be a device, or may be a component, integrated circuit, or chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet PC, a laptop, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and the non-mobile electronic device may be a server, a network-attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., but the embodiments of the present application are not specifically limited.

[0121] The photographing device in the embodiment of the present application may be a device having an operating system, which may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not specifically limited.

[0122] FIG. 14 is a schematic diagram of a hardware structure for realizing an electronic device according to an embodiment of the present application.

[0123] The electronic device 1400 includes components such as, but not limited to, a radio frequency unit 1401, a network module 1402, an audio output unit 1403, an input unit 1404, a sensor 1405, a display unit 1406, a user input unit 1407, an interface unit 1408, a memory 1409, and a processor 1410.

[0124] As will be understood by those skilled in the art, the electronic device 1400 may further include a power source (e.g., a battery) for powering each component, and the power source may be logically connected to the processor 1410 by a power management system, thereby enabling the power management system to realize functions such as charge / discharge management and power consumption management. The electronic device structure shown in Figure 14 does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than those shown, or a combination of some components, or a different arrangement of components, which will not be further described here.

[0125] Here, the processor 1410 is used to obtain the stretching information of the stretchable screen, The processor 1410 is used to determine a target camera for shooting based on the stretch information; The display unit 1406 is used to display the target preview image collected by the target camera.

[0126] In an embodiment of the present application, during shooting by the shooting device, the telescopic screen is controlled to expand and contract to select a target camera from among multiple cameras, and a target preview image is displayed based on the image collected by the target camera. Different target cameras can be selected to collect target preview images based on different expansion and contraction information of the telescopic screen. By improving the compatibility between the acquired target preview image and the display area of ​​the telescopic screen, the target preview image can be displayed on the telescopic screen without any loss, and the image actually captured can be matched with the target preview image, improving the user experience.

[0127] Optionally, the processor 1410 is used to obtain a real-time extension length of the telescopic screen during extension or contraction of the telescopic screen when the extension information indicates that the telescopic screen is being extended or contracted; The processor 1410 is used to determine the number of cameras corresponding to the real-time telescopic length as target cameras.

[0128] In the embodiment of the present application, the current state of the telescopic screen can be determined based on the telescopic information, and when it is determined that the telescopic screen is in motion, i.e., the telescopic screen is being deployed or the telescopic screen is being retracted, the real-time telescopic length of the telescopic screen is detected, and the target camera among the multiple cameras is determined based on the real-time telescopic length of the telescopic screen.

[0129] Specifically, a plurality of cameras are generally installed on a camera equipped with a telescopic screen. When the telescopic screen of the camera is in a contracted state, some of the cameras are in a retracted state. As the telescopic screen is deployed, the retracted cameras move along with the telescopic screen until they are exposed. By controlling the movement of the telescopic screen, the number of exposed cameras is adjusted, and the target camera is determined based on the real-time telescopic length of the telescopic screen.

[0130] Optionally, the processor 1410 is adapted to acquire at least one preview sub-image collected by the target camera when the stretch information indicates that the stretchable screen is stationary; The processor 1410 is used to perform image stitching on at least one preview sub-image to generate a target preview image.

[0131] In an embodiment of the present application, during shooting by the photographing device, after determining the target camera and before displaying the preview image collected by the target camera, the acquired stretching information is analyzed and processed, and based on the stretching information, it is determined that the retractable screen is in a stationary state, and a preview sub-image collected by the target camera is acquired, where the preview sub-image may be one or more, and the number of target cameras may be one or more. It can be understood that when there are multiple preview sub-images, the multiple preview sub-images are images respectively collected by multiple target cameras, or the multiple preview sub-images are multiple images collected by one target camera. After obtaining the preview sub-images, the preview sub-images are stitched together to generate a target preview image, which facilitates the photographing device to subsequently display the target preview image.

[0132] When the retractable screen is stationary and there are multiple target cameras, multiple preview sub-images are collected by the multiple target cameras, and because at least one of the positions and viewfinder ranges of the multiple target cameras are different and the scenes in the multiple preview sub-images captured by the multiple target cameras are also different, the target preview image obtained by stitching the multiple preview sub-images can cover more scenes, further improving the imaging effect of the target preview image and improving the user experience.

[0133] Optionally, the processor 1410 is used to acquire, when the stretching information indicates that the retractable screen is being deployed, at least one first preview sub-image collected by the at least one first camera and at least one second preview sub-image collected by the at least one second camera during deployment of the retractable screen; The processor 1410 is used to perform image stitching on at least one first preview sub-image and at least one second preview sub-image to generate a target preview image.

[0134] In an embodiment of the present application, the photographing device includes multiple cameras, including a first camera and a second camera, where the first camera is stationary and the second camera is moving. It can be understood that the first camera and the second camera are both installed on the screen of the telescopic screen. During the telescopic screen deployment, the screen is deployed along one direction, where the first camera does not move with the screen deployment, and the second camera moves with the screen deployment. If it is determined based on the telescopic information that the telescopic screen is deployed, the first camera takes an image in a stationary state, and the second camera takes an image during movement. Since the second camera is photographing and in a moving state, a target preview image is obtained by stitching a first preview sub-image collected by the first camera and a second preview sub-image collected by the second camera. The target preview image is a panoramic image.

[0135] When a user needs to use the camera to take a photo, the camera controls the telescopic screen of the camera to begin unfolding. The first camera of the camera does not move with the unfolding of the telescopic screen. During the unfolding of the telescopic screen, the first camera remains stationary and collects a first preview sub-image. The second camera of the camera moves with the unfolding of the telescopic screen, and the second camera continuously collects a second preview sub-image during the movement. The second preview sub-image and the first preview sub-image are stitched together to obtain a panoramic image, which is displayed as the target preview image. During the entire unfolding of the telescopic screen, the second camera is driven by a driving member to ensure the stability of the movement of the telescopic screen.

[0136] In the embodiment of the present application, during the process of capturing a panoramic image, the second camera moving along with the retractable screen is controlled to collect the second preview sub-image, and instead of the user manually moving the photographing device, the retractable screen is deployed, and the retractable screen is driven by a driving member throughout the entire deployment process, so that the second camera can maintain a constant and stable movement during the process of capturing the second preview sub-image, thereby avoiding the problem of poor imaging results caused by shaking when the user manually photographs.

[0137] Optionally, the processor 1410 is used to acquire, when the stretching information indicates that the retractable screen is being retracted, at least one third preview sub-image collected by the at least one third camera and at least one fourth preview sub-image collected by the at least one fourth camera during retraction of the retractable screen; The processor 1410 is adapted to crop the at least one third preview sub-image based on the at least one fourth preview sub-image to generate a target preview image.

[0138] In an embodiment of the present application, the photographing device includes multiple cameras, including a third camera and a fourth camera, where the third camera is stationary and the fourth camera is moving. It can be understood that the third camera and the fourth camera are both installed on the screen of the telescopic screen, and the screen is expanded along one direction during expansion of the telescopic screen, where the third camera does not move with the expansion of the screen, and the fourth camera moves with the expansion of the screen. If it is determined based on the expansion information that the telescopic screen is expanding, the third camera takes an image in a stationary state, and the fourth camera takes an image during movement. A corresponding target preview image can be generated by cropping the third preview sub-image with the fourth preview sub-image taken by the fourth camera during movement.

[0139] When the photographing device starts photographing, the third preview sub-image collected by the stationary third camera is displayed as the target preview image. During photographing, the moving fourth camera continuously collects the fourth preview sub-image, and the third preview sub-image is cropped according to the collected fourth preview sub-image in real time, and the photographing device displays the target preview image obtained through the cropping process.

[0140] Optionally, the processor 1410 is used to select one camera from the at least two cameras as the target camera when the telescopic information indicates that the telescopic screen is being deployed or retracted.

[0141] In an embodiment of the present application, the photographing device includes at least two cameras, and the at least two cameras are different cameras. During photographing by the photographing device, one of the at least two cameras is selected as a target camera according to the stretching state of the retractable screen.

[0142] The at least two cameras are completely different cameras, and optionally the installation positions of the at least two cameras are different, specifically, when the retractable screen is in a fully retracted state, the at least two cameras include a camera in an exposed state and a camera in a retracted state. Further optionally, the viewfinder ranges of the at least two cameras are different. Further optionally, the zoom magnifications of the at least two cameras are different.

[0143] In the embodiment of the present application, a camera is automatically selected from multiple cameras based on the expansion and contraction state of the retractable screen of the photographing device, and the user can switch cameras by controlling the expansion and contraction state of the retractable screen, thereby reducing the number of operational steps required by the user during photographing.

[0144] Optionally, the processor 1410 is used to switch the first camera in operation to the second camera when the telescopic information indicates that the telescopic screen is being deployed; The processor 1410 is used to switch the first camera in an active state to the third camera when the stretching information indicates that the stretchable screen is being retracted; Here, the zoom magnification of the first camera is smaller than the zoom magnification of the second camera, and the zoom magnification of the first camera is larger than the zoom magnification of the third camera.

[0145] In an embodiment of the present application, the photographing device includes a first camera, a second camera, and a third camera with a relatively small zoom magnification, and a second camera with a relatively large zoom magnification. When it is determined based on the telescopic information that the telescopic screen is being deployed, the second camera with a relatively large zoom magnification is turned on and the first camera is turned off, and an image collected by the second camera is used as a target preview image. When it is determined based on the telescopic information that the telescopic screen is being retracted, the third camera with a relatively small zoom magnification is turned on and the first camera is turned off, and an image collected by the third camera is used as a target preview image.

[0146] Optionally, the user input unit 1407 is used to receive a first input from a user; The processor 1410 is used to control the camera to capture a target image based on the target preview image in response to the first input.

[0147] In an embodiment of the present application, during shooting of the shooting device, a first input from a user is received, and based on the currently displayed target preview image, the camera is controlled to capture a target image, and the target image is stored in a local storage area.

[0148] It should be understood that in an embodiment of the present application, as shown in FIG. 14 , the input unit 1404 may include a graphics processing unit (GPU) 14041 and a microphone 14042. The graphics processor 14041 processes image data of still or video images captured by an image capture device (e.g., a camera) in a video capture mode or an image capture mode. The display unit 1406 may include a display panel 14061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. The user input unit 1407 includes a touch panel 14071 and other input devices 14072. The touch panel 14071 is also called a touch screen. The touch panel 14071 may include two parts: a touch detection device and a touch control unit. The other input devices 14072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control buttons, switch buttons, etc.), a trackball, a mouse, and a control lever, which will not be further described herein. The memory 1409 may be used to store software programs and various data, including, but not limited to, application programs and an operating system. The processor 1410 may integrate an application processor and a modem processor. Here, the application processor is primarily for processing the operating system, user interface, application programs, etc., and the modem processor is primarily for processing wireless communications. As can be appreciated, the modem processor does not have to be integrated into the processor 1410.

[0149] The embodiments of the present application further provide a readable storage medium, which stores a program or instruction, and when the program or instruction is executed by a processor, it can realize each process of the above-mentioned photographing method embodiment and achieve the same technical effect. In order to avoid repetition, no further description will be given here.

[0150] The processor may be the processor in the electronic device described in the above embodiment. The readable storage medium may include a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0151] The embodiments of the present application further provide a chip, the chip including a processor and a communication interface, the communication interface is coupled to the processor, the processor runs a program or instruction, and is used to realize each process of the embodiments of the above-mentioned photographing method, and can achieve the same technical effect. In order to avoid repetition, no further description will be given here.

[0152] It should be understood that the chips referred to in the embodiments of this application may be referred to as system level chips, system chips, chip systems, or system-on-chips.

[0153] It should be noted that, in this specification, the terms "comprise," "include," "includes," or any other variations thereof are intended to cover the non-exclusive "comprise," whereby a process, method, article, or apparatus comprising a set of elements not only includes those elements but also other elements not expressly listed or inherent in such process, method, article, or apparatus. Absent further limitations, an element defined by the phrase "comprises one of" does not preclude the presence of other identical elements in the process, method, article, or apparatus comprising that element. It should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may include performing functions in an essentially simultaneous manner or in the reverse order based on the functions involved. For example, the described method may be performed in a different order than described, and various steps may be added, omitted, or combined. Furthermore, features described with reference to some examples may be combined in other examples.

[0154] As will be apparent to those skilled in the art from the above description of the embodiments, the methods of the above embodiments can be realized in the form of software and a necessary general-purpose hardware platform. Of course, they can also be realized in hardware, but in many cases the former is a more preferred embodiment. Based on this understanding, the technical proposal of the present application, in substance or in part contributing to the prior art, may be embodied in the form of a computer software product, which is stored in a storage medium (e.g., ROM / RAM, magnetic disk, optical disk) and includes some instructions for causing a terminal (which may be a mobile phone, computer, server, network device, etc.) to execute the methods described in each embodiment of the present application.

[0155] Although the embodiments of the present application have been described above in conjunction with the drawings, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not limiting. Those skilled in the art can take the teachings of the present application into account and implement many forms without departing from the spirit and scope of the claims, all of which fall within the scope of protection of the present application.

Claims

1. A photographing method used in a photographing device including an extendable screen, Obtaining extension / retraction information of the extendable screen; determining a target camera for photography based on the stretch information; displaying a target preview image collected by the target camera on the retractable screen; When the telescopic screen is a rollable screen, the telescopic information includes a telescopic speed, and the target camera includes at least one second camera in a moving state, the second camera continuously collects a second preview sub-image during movement, the second camera is located on the rollable screen, and the second camera moves along with the rollable screen during deployment of the rollable screen; The photographing method includes the photographing device controlling the unfolding speed of the rollable screen during photographing according to the brightness of the photographing environment before photographing begins, so that the moving speed of the second camera meets the exposure demand of the second preview sub-image.

2. the expansion / contraction information includes at least one of the expansion / contraction speed and the expansion / contraction length; determining a target camera for photographing based on the stretch information, When the extension / contraction information indicates that the extendable screen is being extended or contracted, acquiring a real-time extension / contraction length of the extendable screen while the extendable screen is being extended or contracted; The photographing method according to claim 1 , further comprising determining, as target cameras, a number of cameras corresponding to the real-time extension / contraction length.

3. before displaying a preview image collected by the target camera; If the retraction information indicates that the retractable screen is stationary, acquiring at least one preview sub-image collected by the target camera; The photographing method of claim 1 , further comprising: performing image stitching on the at least one preview sub-image to generate a target preview image.

4. the target camera includes at least one first camera in a stationary state and the at least one second camera in a moving state, the stationary state meaning that the at least one first camera does not move with the extension or contraction of the retractable screen, and the moving state meaning that the at least one second camera moves with the extension or contraction of the retractable screen; before displaying a preview image collected by the target camera; If the stretching information indicates that the retractable screen is being deployed, acquiring at least one first preview sub-image collected by the at least one first camera and at least one second preview sub-image collected by the at least one second camera during deployment of the retractable screen; The method of claim 1 , further comprising: performing image stitching on the at least one first preview sub-image and the at least one second preview sub-image to generate a target preview image.

5. the target camera includes at least one third camera in a stationary state and at least one fourth camera in a moving state, the stationary state meaning that the at least one third camera does not move with the extension or contraction of the telescopic screen, and the moving state meaning that the at least one fourth camera moves with the extension or contraction of the telescopic screen; before displaying a preview image collected by the target camera; If the stretching information indicates that the retractable screen is being retracted, acquiring at least one third preview sub-image collected by the at least one third camera and at least one fourth preview sub-image collected by the at least one fourth camera during retraction of the retractable screen; The photographing method of claim 1 , further comprising: cropping the at least one third preview sub-image based on the at least one fourth preview sub-image to generate the target preview image.

6. determining a target camera for photographing based on the stretch information, The photographing method according to claim 1 , further comprising: selecting one camera from at least two cameras as a target camera when the extension / retraction information indicates that the extendable screen is being extended or retracted.

7. When the extension / retraction information indicates that the extendable screen is being extended or retracted, selecting one camera from the at least two cameras as a target camera includes: If the extension information indicates that the extendable screen is being extended, switching the first camera in an operational state to the second camera; and switching from a first camera in an operational state to a third camera when the extension / retraction information indicates that the extendable screen is being retracted; 7. The photographing method according to claim 6, wherein the zoom magnification of the first camera is smaller than the zoom magnification of the second camera, and the zoom magnification of the first camera is larger than the zoom magnification of the third camera.

8. receiving a first input from a user; The photographing method of claim 1 , further comprising: controlling a camera in response to the first input to photograph a target image based on the target preview image.

9. A photographing device including an extendable screen, an acquisition unit for acquiring expansion / contraction information of the retractable screen; a determining unit for determining a target camera for photographing based on the stretching information, wherein when the telescopic screen is a rollable screen, the stretching information includes a stretching speed, and the target camera includes at least one second camera in a moving state, the second camera continuously collects a second preview sub-image during movement, the second camera is located on the rollable screen, and the second camera moves along with the rollable screen during the unfolding of the rollable screen, and the photographing device controls the unfolding speed of the rollable screen during photographing according to the brightness of the photographing environment before starting photographing, so that the moving speed of the second camera meets the exposure demand of the second preview sub-image; a display unit for displaying a target preview image collected by the target camera on the retractable screen.

10. the expansion / contraction information includes at least one of the expansion / contraction speed and the expansion / contraction length; The acquisition unit is further configured to acquire a real-time extension length of the telescopic screen during extension or contraction of the telescopic screen when the extension information indicates that the telescopic screen is being extended or contracted; The photographing device according to claim 9 , wherein the determination unit is further used to determine, as target cameras, a number of cameras corresponding to the real-time extension / contraction length.

11. The acquisition unit is further configured to acquire at least one preview sub-image collected by the target camera when the stretching information indicates that the stretchable screen is in a stationary state; The imaging device is The photographing device according to claim 9 or 10, further comprising a first generating unit for performing image stitching on the at least one preview sub-image to generate a target preview image.

12. The acquisition unit is further configured to acquire, when the stretching information indicates that the retractable screen is being deployed, at least one first preview sub-image collected by at least one first camera and at least one second preview sub-image collected by at least one second camera during deployment of the retractable screen; The imaging device is The photographing device according to claim 9 or 10, further comprising a second generation unit that performs image stitching on the at least one first preview sub-image and the at least one second preview sub-image to generate a target preview image.

13. the acquisition unit is further configured to acquire, when the stretching information indicates that the retractable screen is being retracted, at least one third preview sub-image collected by at least one third camera and at least one fourth preview sub-image collected by at least one fourth camera during retraction of the retractable screen; The imaging device is 11. The photographing device of claim 9, further comprising a third generation unit for cropping the at least one third preview sub-image based on the at least one fourth preview sub-image to generate the target preview image.

14. 11. The photographing device according to claim 9 or 10, wherein the determination unit is further used for selecting one camera from at least two cameras as a target camera when the telescopic information indicates that the telescopic screen is being deployed or retracted.

15. The determining unit is further configured to switch the first camera in an operational state to the second camera when the telescopic information indicates that the telescopic screen is being deployed; The determining unit is further configured to switch the first camera in an active state to a third camera when the extension / retraction information indicates that the extendable screen is being retracted; 15. The photographing device according to claim 14, wherein the zoom magnification of the first camera is smaller than the zoom magnification of the second camera, and the zoom magnification of the first camera is larger than the zoom magnification of the third camera.

16. 9. An electronic device comprising a processor, a memory, and a program or instructions stored in the memory and operable on the processor, the electronic device realizing the steps of the photographing method according to any one of claims 1 to 8 when the program or instructions are executed by the processor.

Citation Information

Patent Citations

  • Display controller

    JP1995059070A

  • Camera incorporated video recorder

    JP2001036781A

  • Camera

    JP2003274250A

  • Camera

    JP2003295291A

  • Electronic device of sliding type

    US20210103314A1