Photographing method, device and electronic device

The use of a retractable screen with telescoping capabilities in photographing devices automatically adjusts camera positions based on screen expansion, improving panoramic imaging yield and user experience by expanding the viewing angle without distorting the object's size.

JP2024534202AActive Publication Date: 2024-09-18VIVO MOBILE COMM CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2024513496
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-08-31
Filing Date
2022-08-29
Publication Date
2024-09-18
Estimated Expiration
2042-08-29

AI Technical Summary

Technical Problem

Conventional methods for photographing with mobile devices rely on manual adjustment of the shooting angle, leading to low recording yield and impaired image quality.

Method used

A photographing method and device utilizing a retractable screen with telescoping capabilities, allowing for automatic selection and control of target cameras based on screen expansion and contraction information to enhance panoramic imaging.

Benefits of technology

Expands the viewing angle of the preview image without compromising the object's size, optimizing the shooting effect and enhancing the user experience by mechanically adjusting camera positions and combining images from multiple cameras.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024534202000001
    Figure 2024534202000001
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 proposed on August 31, 2021, bearing application number 202111012081.3 and titled "Photography Method, Apparatus and Electronic Device," the entire contents of which are incorporated herein by reference.

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

[0003] In the process of taking pictures or recording videos with a mobile phone, tablet or other smart device, a user generally uses a screen to display a preview image. In the prior art, the shooting angle of the electronic device is all dependent on the user's manual control adjustment, but in the process of the user manually adjusting the shooting angle, the yield of taking pictures or recording videos with the electronic device is reduced due to factors such as camera shake. Summary of the Invention [Problem to be solved by the invention]

[0004] An object of the embodiments of the present application is to provide a photographing method, device, and electronic device that can expand 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 yields 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 shooting method for use in a shooting device including a retractable screen, the shooting method including: obtaining stretching information of the retractable screen; determining a target camera for shooting 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 to run on the processor, the program or instructions being operable to implement 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 thereon, 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 being used to run a program or instructions and realize the steps of the imaging method of the first aspect. Effect of the Invention

[0010] In the embodiment of the present application, during the shooting of the shooting device, the telescopic screen is controlled to be stretched to select a target camera among the multiple cameras, and a target preview image is displayed according to the image collected by the target camera, and different target cameras can be selected to collect target preview images according to different stretching information of the telescopic screen, and when shooting a panoramic image, the telescopic screen is controlled to mechanically move the camera, thereby ensuring a higher panoramic yield. The method of synthesizing the images collected by multiple cameras can also realize the expansion of the shooting angle in the preview image according to the change in the stretching length of the telescopic screen without compromising the appearance of the size of the object in the preview image, optimizing the shooting effect and improving the shooting experience.

[0011] As can be seen, since the telescopic length of the telescopic screen changes during shooting, by further ensuring a higher degree of match 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. [Brief description of the drawings]

[0012] [Figure 1] 1 shows one flowchart of an imaging method according to an embodiment of the present application. [Diagram 2] 2 shows a second flowchart of the imaging method according to the embodiment of the present application. [Diagram 3] FIG. 1 shows a schematic diagram of an imaging device according to an embodiment of the present application. [Figure 4] FIG. 2 shows a second schematic diagram of an imaging device according to an embodiment of the present application. [Diagram 5] 13 shows a third flowchart of the imaging method according to the embodiment of the present application. [Figure 6] FIG. 2 shows a schematic diagram of an image capturing device according to an embodiment of the present application capturing an image. [Figure 7]4 shows a fourth flowchart of the imaging method according to the embodiment of the present application. [Figure 8] FIG. 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] FIG. 3 shows a third schematic diagram of an image capturing device according to an embodiment of the present application capturing an image. [Figure 11] 6 shows a sixth flowchart of the imaging method according to the embodiment of the present application. [Figure 12] FIG. 2 shows a structural block diagram of an imaging device according to an embodiment of the present application. [Figure 13] FIG. 2 shows a structural block diagram of an electronic device according to an embodiment of the present application. [Figure 14] FIG. 2 is a schematic diagram of a hardware structure for implementing an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[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 are all within the scope of protection of the present application.

[0014] The terms "first," "second," etc. in the specification and claims of the present 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, such that the embodiments of the present application may be performed in other orders than those shown or described herein, and that the objects distinguished by "first," "second," etc. are generally of the same type and do not limit the number of objects, e.g., the first object may be one or more. Note that "and / or" in the specification and claims refers to at least one of the objects connected, and the character " / " generally refers to 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 through specific examples and application scenarios in conjunction with FIGS. 1 to 14. FIG.

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

[0017] Step 102, obtain the telescopic information of the telescopic screen; Here, the expansion / contraction information includes at least one of an expansion / contraction speed and an expansion / contraction length, Step 104: determining a target camera for shooting based on the stretching 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 telescopic screen, so that when the telescopic screen moves, the photographed preview image changes accordingly, improving the preview experience of the user. In the photographing process by the photographing device, the telescopic screen's telescopic information is obtained, and the telescopic information includes at least one of a telescopic speed and a telescopic length. By analyzing the telescopic screen's telescopic information, a target camera that needs to be called during the photographing is determined, the target camera is called to collect images, and a target preview image is generated according to the images collected by the target camera, so that the target preview image is displayed by the telescopic screen.

[0019] Specifically, during shooting, the user can control the telescopic state of the telescopic screen. During shooting, after receiving a control command for the telescopic state of the telescopic screen, the shooting device controls the telescopic screen to start performing a corresponding telescopic operation, and obtains telescopic information of the telescopic screen, where the telescopic information includes at least one of a telescopic length and a telescopic speed. Based on at least one of a telescopic length and a telescopic speed of the telescopic screen, a target camera is selected from among the multiple cameras of the shooting device, and images are collected by the target camera. Here, the number of target cameras may be one or may be selectively multiple. The telescopic 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, and 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 by a photographing device including a telescopic screen, the user does not need to manually move the photographing device, but mechanically moves the camera by controlling the telescopic screen telescopic movement, thereby improving the yield of the panoramic image. By displaying a target preview image corresponding to the panoramic image on the telescopic screen, it can be ensured that the panoramic image and the telescopic screen have a relatively high degree of matching, and the viewing angle of the panoramic image on the telescopic screen can be improved without compromising the size of the object in the panoramic image.

[0021] In the embodiment of the present application, during the shooting of the shooting device, the telescopic screen is controlled to be stretched to select a target camera among the multiple cameras, and a target preview image is displayed according to the image collected by the target camera, and different target cameras can be selected to collect target preview images according to different stretching information of the telescopic screen, and when shooting a panoramic image, the telescopic screen is controlled to mechanically move the camera, thereby ensuring a higher panoramic yield. The method of synthesizing the images collected by multiple cameras can also realize the widening of the viewing angle in the preview image according to the change in the stretching length of the telescopic screen without compromising the appearance of the size of the object in the preview image, optimizing the shooting effect and improving the shooting experience.

[0022] As can be seen, since the telescopic length of the telescopic screen changes during shooting, by further ensuring a higher degree of match 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.

[0023] The telescopic information of the telescopic screen includes a telescopic length. The larger the telescopic length of the telescopic screen, the larger the screen display area of ​​the telescopic screen, and the smaller the telescopic length of the telescopic screen, the smaller the screen display area of ​​the telescopic screen. According to the display area size of the telescopic screen, different cameras in the photographing device are selected to photograph, and the different cameras include cameras with different positions and cameras with different functions, and the target preview image photographed thereby is made to match the size of the display area of ​​the display screen.

[0024] It should be explained that the telescopic information of telescopic screen includes telescopic speed. When the telescopic speed of 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 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, the camera with 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 the photographing method according to the embodiments of the present application. As shown in FIG. 2, the step of determining a target camera for photographing based on the stretching information specifically includes:

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

[0027] Here, the stretching information includes at least one of the stretching speed and the stretching length. Specifically, the stretching information of the telescopic screen is obtained, and if it is determined that the stretching speed in the stretching information is greater than 0, it is determined that the telescopic screen is in a moving state, that is, it is determined that the telescopic screen is unfolding or contracting. Based on the stretching length in the stretching information, the specific moving state of the telescopic screen is determined, and the change state of the stretching length of the telescopic screen obtained by two adjacent collections is determined, and if it is determined that the stretching length is increasing, it is determined that the telescopic screen is unfolding, and if it is determined that the stretching length is decreasing, it is determined that the telescopic screen is contracting.

[0028] In step 204, a number of cameras corresponding to the real-time stretch length are determined as target cameras.

[0029] In the embodiment of the present application, the current state of the telescopic screen can be determined according to the telescopic information, and when it is determined that the telescopic screen is in motion, that is, the telescopic screen is unfolding or the telescopic screen is contracting, the real-time telescopic length of the telescopic screen is detected, and the target camera among the multiple cameras is determined according to the real-time telescopic length of the telescopic screen.

[0030] In some embodiments, the electronic device includes a plurality of cameras, and the plurality of cameras are all installed on the telescopic screen, and when the telescopic screen is in a fully rolled-up state, there is a camera in an exposed state, and the electronic device calls the camera in the exposed state to collect a target preview image in response to a shooting start command. The correspondence between the other cameras and the length of the telescopic screen is stored in the memory of the electronic device, and the target camera is searched for from the correspondence according to the real-time telescopic length of the telescopic screen.

[0031] In some embodiments, the electronic device includes a plurality of cameras, and the plurality of cameras are all installed on the retractable screen, and when the retractable screen is in a fully rolled-up state, there is a camera in an exposed state. A light-sensitive element is installed in each of the plurality of cameras, and a target camera is selected from the plurality of cameras based on a change in light flux detected by the light-sensitive element in the camera during the retraction and expansion of the retractable screen. For example, when it is detected that the change in light flux of one camera exceeds a change threshold, the camera is selected as the target camera.

[0032] Specifically, a plurality of cameras are generally installed on a photographing device equipped with a telescopic screen. When the telescopic screen of the photographing device is in a contracted state, some of the cameras are in a stored state, and as the telescopic screen is deployed, the stored cameras move with the telescopic screen until they are exposed. The number of exposed cameras is adjusted by controlling and moving the telescopic screen, and the target camera is determined according to 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 telescopic screen, and the real-time telescopic 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 driving 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 driving motor.

[0035] FIG. 3 shows one of the schematic diagrams of the photographing device according to the embodiment of the present application. As shown in FIG. 3, the photographing device is a mobile phone 300, and the retractable screen is set as a rollable screen 302. The mobile phone has a first camera 304 and a second camera 306, and 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 stored state. The first camera 304 functions as a main camera, that is, when the rollable screen 302 is in a rolled-up state, the user can take pictures by the first camera 304. The second camera 306 functions as an auxiliary camera, and when the rollable screen 302 is in an unfolded state, the second camera 306 is in an exposed state. When the second camera 306 is in an exposed state, the user can take pictures by 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 image capture device has a number of cameras with different functions, from which the camera can be selected when the telescopic screen of the image capture device moves to different real-time telescopic lengths.

[0038] FIG. 4 shows the second schematic diagram of the photographing device according to the embodiment of the present application. As shown in FIG. 4, the photographing device is a mobile phone 400, and the telescopic screen is set as a rollable screen 402. The mobile phone 400 has a third camera 404 and a fourth camera 406, the rollable screen 402 is in a fully rolled up state, and the third camera 404 and the fourth camera 406 are both in an exposed state, where the viewfinder range of the third camera 404 is smaller than the viewfinder range of the fourth camera 406. When the real-time telescopic length of the mobile phone 400 does not reach the set length, the third camera 404 is controlled as a target camera to take a photograph. When the real-time telescopic 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 the target camera based on the real-time retraction length of the screen, thereby improving the matching 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, which improves 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 stretch information indicates that the stretchable screen is stationary, then acquiring 502 at least one preview sub-image collected by the target camera; The method further includes performing image stitching on at least one of the preview sub-images to generate a target preview image (504).

[0042] In the embodiment of the present application, during the photographing of the photographing device, after determining the target camera, before displaying the preview image collected by the target camera, the obtained stretching information is analyzed and processed, and the stretching information is used to determine that the telescopic screen is in a stationary state, and the preview sub-image collected by the target camera is obtained, where the preview sub-image may be one or more, and the number of the target cameras may be one or more. It can be understood that when the preview sub-image is multiple, 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-image, the preview sub-image is stitched to generate a target preview image, which facilitates the photographing device to subsequently display the target preview image.

[0043] When the retractable screen is in a stationary state and the number of target cameras is multiple, multiple preview sub-images are collected by the multiple target cameras, and 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, so that the target preview image obtained by stitching the multiple preview sub-images can cover more scenes, which further improves the imaging effect of the target preview image and improves the user's usage 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, and a target preview image 604 with all 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 stretching information indicates that the retractable screen is being deployed, acquiring 702 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 further includes performing image stitching 704 on the at least one first preview sub-image and the at least one second preview sub-image to generate a target preview image.

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

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

[0049] Specifically, in the process when the user needs to take a picture with the photographing device, the telescopic screen of the photographing device is controlled to start unfolding, the first camera of the photographing device does not move with the unfolding of the telescopic screen, and during the unfolding of the telescopic screen, the first camera collects a first preview sub-image in a stationary state, and the second camera of the photographing device 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 to obtain a panoramic image, and the panoramic image is displayed as a 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 second camera with the telescopic screen.

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

[0051] FIG. 8 shows the second schematic diagram of the photographing device according to the embodiment of the present application photographing an image, as shown in FIG. 8, the photographing device is a mobile phone, and the telescopic screen is a rollable screen. The first camera and the second camera are both installed on the rollable screen, where the second camera is the main camera of the photographing device, i.e., the rollable screen is in a fully wound state, and the second camera is also in an exposed state, and the first camera is an auxiliary camera, i.e., when the rollable screen is in a fully wound state, the first camera is in a stored state, and when the rollable screen is fully unfolded, the first camera is in an exposed state. The rollable screen is controlled to start unfolding during photographing, and during unfolding, the second camera moves in parallel to the right at a constant speed with the unfolding of the rollable screen, and the second camera continuously collects a second preview sub-image 804 during the movement until the first camera is in an exposed state, and when the first camera is in an exposed state, it starts to collect a first preview sub-image 802. The position where the first camera is exposed 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 target preview image 806, which is a panoramic image. During shooting, the real-time stretching length of the rollable screen in the unfolded state gradually increases, that is, the displayable area of ​​the rollable screen gradually increases, so that it is possible to ensure 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 is moved can affect the second preview sub-images acquired, thereby affecting the final target preview image that is generated.

[0053] In some embodiments, before the start of shooting, the shooting device can collect the brightness of the shooting environment by an optical sensor, and control the developing speed of the rollable screen during shooting to ensure that the moving speed of the second camera meets the exposure demand of the second preview sub-image. For example, in a relatively dark environment, the AE exposure is relatively long, and if the moving speed of the second camera is too fast, the second preview sub-image may have problems such as smearing, and at this time, the developing speed of the rollable screen is automatically reduced, so that the image quality of the second preview sub-image is higher, and the image quality of the target preview image after fusion is improved.

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

[0055] It is to be noted that the user can further adjust the telescopic speed of the telescopic 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 stretching information indicates that the stretchable screen is being retracted, acquiring 902 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 the retraction of the stretchable screen; The method further includes cropping 904 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 a plurality of cameras, the plurality of cameras including a third camera and a fourth camera, where the third camera is in a stationary state and the fourth camera is in a moving state, and as can be understood, the third camera and the fourth camera are both installed on the screen of the telescopic screen, and during the deployment of the telescopic screen, the screen is deployed along one direction, where the third camera does not move with the deployment of the screen, and the fourth camera moves with the deployment of the screen. When it is determined that the telescopic screen is in the deployment based on the telescopic information, the third camera takes an image in a stationary state, and the fourth camera takes an image during the movement. The third preview sub-image can be cropped by the fourth preview sub-image taken by the fourth camera during the movement to generate a corresponding target preview image.

[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 the fourth preview sub-image, and cuts the third preview sub-image according to the fourth preview sub-image collected in real time, and 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. The third camera and the 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, and when the rollable screen is in a fully unfolded state, the third camera and the fourth camera are both in an exposed state. The rollable screen is controlled to start contracting during photographing, and during the contraction, the third camera is in a stationary state, and the third camera continuously collects a third preview sub-image, and at this time, the photographing device displays the third preview sub-image as a target preview image, and the fourth camera translates to the left at a constant speed with the unfolding of the rollable screen, and during the movement, the fourth camera continuously collects a fourth preview sub-image, and cuts the third preview sub-image according to the collected fourth preview sub-image, and updates the displayed target preview image to an image obtained by cutting.

[0060] In the 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 by the fourth preview image collected by the fourth camera in a moving state. During cutting, the main shooting object in the third preview image is reserved, and the background of the main shooting object is cut by the fourth preview image, so that the target preview image captured and displayed by the shooting device is an image including the main shooting 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 of the photographing device, one of the at least two cameras is selected as a target camera according to a telescopic state of the telescopic 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 among multiple cameras based on the telescopic state of the telescopic screen of the photographing device to photograph. A user can switch cameras by controlling the telescopic state of the telescopic screen, thereby reducing the user's operation steps during photographing.

[0065] In some embodiments of the present application, when the stretching information indicates that the retractable screen is 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 stretching information indicates that the retractable screen is deployed, and switching a first camera in an operational state to a third camera when the stretching information indicates that the retractable screen is retracted, where a zoom magnification of the first camera is less than a zoom magnification of the second camera and where the zoom magnification of the first camera is greater 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 ratio, and a second camera with a relatively large zoom ratio. When it is determined based on the telescopic information that the telescopic screen is being deployed, the second camera with a relatively large zoom ratio is turned on and the first camera is turned off, and an image collected by the second camera is taken as a target preview image. When it is determined based on the telescopic information that the telescopic screen is being contracted, the third camera with a relatively small zoom ratio is turned on and the first camera is turned off, and an image collected by the third camera is taken as a target preview image.

[0067] Specifically, the photographing device is a mobile phone, and the retractable screen is a rollable screen. After the user turns on the photographing function of the mobile phone, the mobile phone collects an image by a first camera, and displays the image on the rollable screen as a target preview image. In response to the user's input to control the unfolding of the rollable screen, the mobile phone controls the rollable screen to start unfolding, and at this time, it is determined that the user needs to photograph a relatively distant scene, that is, there is a demand to increase the zoom ratio, and the mobile phone turns off the first camera and controls the second camera to turn on, and the image collected by the second camera with a relatively large zoom ratio is the target preview image. In response to the user's input to control the contraction of the rollable screen, the mobile phone controls the rollable screen to start contracting, and at this time, it is determined that the user needs to photograph a relatively close scene, that is, there is a demand to decrease the zoom ratio, and the mobile phone turns off the first camera and controls the third camera to turn on, and 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 multiplication factor of 60x and a minimum multiplication factor of 1x, and the wide-angle camera has a maximum multiplication factor of 1x and a minimum multiplication factor of 0.6x.

[0069] In the embodiment of the present application, the camera can automatically identify and adjust according to the object to be photographed. For example, when 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 the screen is automatically stretched to adjust the magnification to place the person in the center of the screen and to make the size appropriate; when it is identified that a wide angle is often required to photograph a landscape, it automatically switches to the second camera; In some embodiments of the present application, the zoom factor of the target camera is adjusted if the stretch information indicates that the stretch screen is deploying or retracting.

[0070] In an embodiment of the present application, after the target camera is determined, 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 the third schematic diagram of the photographing device according to the embodiment of the present application photographing an image. As shown in FIG. 10, when the user controls the photographing device to start photographing, the target camera is controlled to collect an image at a set zoom magnification as a target preview image 1002. When the user controls the telescopic screen to be in the process of unfolding, the user controls the telescopic screen to increase the zoom magnification, and when the zoom magnification is increased to an appropriate magnification, the zoom magnification does not change. When the user controls the telescopic screen to be in the process of contracting, the user controls the telescopic screen to decrease the zoom magnification, and when the user controls the telescopic screen to be in the process of contracting, the zoom magnification stops changing. During the adjustment of the zoom magnification, 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 telescopic state of the telescopic screen.

[0072] In the embodiment of the present application, by controlling the telescopic state of the telescopic screen to adjust the zoom magnification of the image collection 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, so that the user can 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 a target image based on the target preview image in response to the first input.

[0074] In an embodiment of the present application, during shooting with 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 causing the target image to exactly match the preview image the user saw while capturing the image.

[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 a higher clarity than the preview image because the target image is obtained by processing the original image.

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

[0078] It should be noted that the execution body of the photographing method according to the embodiment of the present application may be a photographing device, or a control module for executing the photographing method in the photographing device. In the embodiment of the present application, the photographing device according to the embodiment of the present application will be described by taking the photographing device executing the photographing 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 telescopic information of the telescopic screen, the telescopic information including at least one of a telescopic speed and a telescopic 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 with a telescopic screen, so that when the telescopic screen moves, the photographed preview image changes accordingly, improving the preview experience of the user. In the process of photographing by the photographing device, the telescopic screen's telescopic information is obtained, the telescopic information includes a telescopic speed and a telescopic length, the telescopic screen's telescopic information is analyzed to determine a target camera that needs to be called during photographing, the target camera is called to collect images, and a target preview image is generated according to the images collected by the target camera, so that the target preview image is displayed by the telescopic screen.

[0081] Specifically, during shooting, the user can control the telescopic state of the telescopic screen. During shooting, after receiving a control command for the telescopic state of the telescopic screen, the shooting device controls the telescopic screen to start performing a corresponding telescopic operation, and obtains telescopic information of the telescopic screen, where the telescopic information includes at least one of a telescopic length and a telescopic speed. Based on at least one of a telescopic length and a telescopic speed of the telescopic screen, a target camera is selected from among the multiple cameras of the shooting device, and images are collected by the target camera. Here, the number of target cameras may be one or may be selectively multiple. The telescopic 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, and 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 by a photographing device including a telescopic screen, the user does not need to manually move the photographing device, but mechanically moves the camera by controlling the telescopic screen telescopic movement, thereby improving the yield of the panoramic image. By displaying a target preview image corresponding to the panoramic image on the telescopic screen, it can be ensured that the panoramic image and the telescopic screen have a relatively high degree of matching, and the viewing angle of the panoramic image on the telescopic screen can be improved without compromising the size of the object in the panoramic image.

[0083] In the embodiment of the present application, during the shooting of the shooting device, the telescopic screen is controlled to be stretched to select a target camera among the multiple cameras, and a target preview image is displayed according to the image collected by the target camera, and different target cameras can be selected to collect target preview images according to different stretching information of the telescopic screen, and when shooting a panoramic image, the telescopic screen is controlled to mechanically move the camera, thereby ensuring a higher panoramic yield. The method of synthesizing the images collected by multiple cameras can also realize the widening of the viewing angle in the preview image according to the change in the stretching length of the telescopic screen without compromising the appearance of the size of the object in the preview image, optimizing the shooting effect and improving the shooting experience.

[0084] As can be seen, since the telescopic length of the telescopic screen changes during shooting, by further ensuring a higher degree of match 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.

[0085] The telescopic information of the telescopic screen includes a telescopic length. The larger the telescopic length of the telescopic screen, the larger the screen display area of ​​the telescopic screen, and the smaller the telescopic length of the telescopic screen, the smaller the screen display area of ​​the telescopic screen. According to the display area size of the telescopic screen, different cameras in the photographing device are selected to photograph, and the different cameras include cameras with different positions and cameras with different functions, and the target preview image photographed thereby is made to match the size of the display area of ​​the display screen.

[0086] It should be explained that the telescopic information of telescopic screen includes telescopic speed. When the telescopic speed of 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 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, the camera with 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 for acquiring a real-time telescopic length of the telescopic screen during the telescopic screen being deployed or contracted, when the telescopic information indicates that the telescopic screen is being deployed 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 is obtained, 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, it is determined that the telescopic screen is unfolding or contracting. The specific moving state of the telescopic screen is determined based on the telescopic length in the telescopic information, and the change state of the telescopic length of the telescopic screen obtained by two adjacent collections is judged, and if it is determined that the telescopic length is increasing, it is determined that the telescopic screen is unfolding, and if it is determined that the telescopic length is decreasing, it is determined that the telescopic screen is contracting.

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

[0090] In the embodiment of the present application, the current state of the telescopic screen can be determined according to the telescopic information, and when it is determined that the telescopic screen is in motion, that is, the telescopic screen is unfolding or the telescopic screen is contracting, the real-time telescopic length of the telescopic screen is detected, and the target camera among the multiple cameras is determined according to the real-time telescopic length of the telescopic screen.

[0091] In some embodiments, the electronic device includes a plurality of cameras, and the plurality of cameras are all installed on the telescopic screen, and when the telescopic screen is in a fully rolled-up state, there is a camera in an exposed state, and the electronic device calls the camera in the exposed state to collect a target preview image in response to a shooting start command. The correspondence between the other cameras and the length of the telescopic screen is stored in the memory of the electronic device, and the target camera is searched for from the correspondence according to the real-time telescopic length of the telescopic screen.

[0092] In some embodiments, the electronic device includes a plurality of cameras, and the plurality of cameras are all installed on the retractable screen, and when the retractable screen is in a fully rolled-up state, there is a camera in an exposed state. A light-sensitive element is installed in each of the plurality of cameras, and a target camera is selected from the plurality of cameras based on a change in light flux detected by the light-sensitive element in the camera during the retraction and expansion of the retractable screen. For example, when it is detected that the change in light flux of one camera exceeds a change threshold, the camera is selected as the target camera.

[0093] Specifically, a plurality of cameras are generally installed on a photographing device equipped with a telescopic screen. When the telescopic screen of the photographing device is in a contracted state, some of the cameras are in a stored state, and as the telescopic screen is deployed, the stored cameras move with the telescopic screen until they are exposed. The number of exposed cameras is adjusted by controlling and moving the telescopic screen, and the target camera is determined according to 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 telescopic screen, and the real-time telescopic 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 driving 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 driving motor.

[0096] In some embodiments of the present application, the acquisition unit 1202 is further used for acquiring 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 image stitching 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 the embodiment of the present application, during the photographing of the photographing device, after determining the target camera, before displaying the preview image collected by the target camera, the obtained stretching information is analyzed and processed, and the stretching information is used to determine that the telescopic screen is in a stationary state, and the preview sub-image collected by the target camera is obtained, where the preview sub-image may be one or more, and the number of the target cameras may be one or more. It can be understood that when the preview sub-image is multiple, 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-image, the preview sub-image is stitched to generate a target preview image, which facilitates the photographing device to subsequently display the target preview image.

[0098] When the retractable screen is in a stationary state and the number of target cameras is multiple, multiple preview sub-images are collected by the multiple target cameras, and 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, so that the target preview image obtained by stitching the multiple preview sub-images can cover more scenes, which further improves the imaging effect of the target preview image and improves the user's usage experience.

[0099] In some embodiments of the present application, the acquisition unit 1202 is further used for acquiring 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 the deployment of the telescopic screen when the telescopic information indicates that the telescopic screen is in the deployment; 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 a plurality of cameras, the plurality of cameras including a first camera and a second camera, where the first camera is in a stationary state and the second camera is in a moving state; as can be understood, the first camera and the second camera are both installed on the screen of the telescopic screen, and during the deployment of the telescopic screen, the screen is deployed along one direction, where the first camera does not move with the deployment of the screen, and the second camera moves with the deployment of the screen. When it is determined that the telescopic screen is in the deployment based on the telescopic information, the first camera takes an image in a stationary state, and the second camera takes an image during the movement. Since the second camera is photographing and in the moving state, a target preview image is obtained by stitching the first preview sub-image collected by the first camera and the second preview sub-image collected by the second camera. Wherein, the target preview image is a panoramic image.

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

[0102] Specifically, in the process when the user needs to take a picture with the photographing device, the telescopic screen of the photographing device is controlled to start unfolding, the first camera of the photographing device does not move with the unfolding of the telescopic screen, and during the unfolding of the telescopic screen, the first camera collects a first preview sub-image in a stationary state, and the second camera of the photographing device 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 to obtain a panoramic image, and the panoramic image is displayed as a 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 second camera with the telescopic screen.

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

[0104] In some embodiments of the present application, the acquisition unit 1202 is further used for acquiring 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 contraction of the telescopic screen when the telescopic information indicates that the telescopic screen is contracting; The imaging device is The image processing apparatus 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 a plurality of cameras, the plurality of cameras including a third camera and a fourth camera, where the third camera is in a stationary state and the fourth camera is in a moving state, and as can be understood, the third camera and the fourth camera are both installed on the screen of the telescopic screen, and during the deployment of the telescopic screen, the screen is deployed along one direction, where the third camera does not move with the deployment of the screen, and the fourth camera moves with the deployment of the screen. When it is determined that the telescopic screen is in the deployment based on the telescopic information, the third camera takes an image in a stationary state, and the fourth camera takes an image during the movement. The third preview sub-image can be cropped by the fourth preview sub-image taken by the fourth camera during the movement to generate a corresponding target preview image.

[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 the fourth preview sub-image, and cuts the third preview sub-image according to the fourth preview sub-image collected in real time, and 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 stretching information indicates that the stretchable 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 of the photographing device, one of the at least two cameras is selected as a target camera according to a telescopic state of the telescopic 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 among multiple cameras based on the telescopic state of the telescopic screen of the photographing device to photograph. A user can switch cameras by controlling the telescopic state of the telescopic screen, thereby reducing the user's operation steps 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 a 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 in a retracted state; 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 ratio, and a second camera with a relatively large zoom ratio. When it is determined based on the telescopic information that the telescopic screen is being deployed, the second camera with a relatively large zoom ratio is turned on and the first camera is turned off, and an image collected by the second camera is taken as a target preview image. When it is determined based on the telescopic information that the telescopic screen is being contracted, the third camera with a relatively small zoom ratio is turned on and the first camera is turned off, and an image collected by the third camera is taken as a target preview image.

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

[0114] In an embodiment of the present application, during shooting with 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 embodiment 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 computer, a notebook computer, 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), and the non-mobile electronic device may be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a deposit machine, or a self-service machine, and the embodiment of the present application is 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 realize each process realized by the method embodiment of FIGS. 1 to 11, and will not be further described here to avoid repetition of description.

[0118] Optionally, the 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 the embodiment of the present application, which includes a processor 1310, a memory 1309, and a program or instruction stored in the memory 1309 and capable of running 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 of the description, 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 mentioned above.

[0120] The photographing device in the embodiment 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 computer, a notebook computer, 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), and the non-mobile electronic device may be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a deposit machine, or a self-service machine, and the embodiment of the present application is 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 implementing 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 can 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, so that the power management system can realize functions such as charge / discharge management and power consumption management. The electronic device structure shown in FIG. 14 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than the number of components shown, or a combination of some components, or a different arrangement of components, and 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, a target camera from among multiple cameras is selected by controlling and expanding the retractable screen, and a target preview image is displayed based on the image collected by the target camera; and according to different expansion and contraction information of the retractable screen, different target cameras can be selected to collect target preview images. By increasing the compatibility between the acquired target preview image and the display area of ​​the retractable screen, the target preview image can be displayed on the retractable screen without loss, and the image actually captured can be matched with the target preview image, improving the user's usage experience.

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

[0128] In the embodiment of the present application, the current state of the telescopic screen can be determined according to the telescopic information, and when it is determined that the telescopic screen is in motion, that is, the telescopic screen is unfolding or the telescopic screen is contracting, the real-time telescopic length of the telescopic screen is detected, and the target camera among the multiple cameras is determined according to the real-time telescopic length of the telescopic screen.

[0129] Specifically, a plurality of cameras are generally installed on a photographing device equipped with a telescopic screen. When the telescopic screen of the photographing device is in a contracted state, some of the cameras are in a stored state, and as the telescopic screen is deployed, the stored cameras move with the telescopic screen until they are exposed. The number of exposed cameras is adjusted by controlling and moving the telescopic screen, and the target camera is determined according to the real-time telescopic length of the telescopic screen.

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

[0131] In the embodiment of the present application, during the photographing of the photographing device, after determining the target camera, before displaying the preview image collected by the target camera, the obtained stretching information is analyzed and processed, and the stretching information is used to determine that the telescopic screen is in a stationary state, and the preview sub-image collected by the target camera is obtained, where the preview sub-image may be one or more, and the number of the target cameras may be one or more. It can be understood that when the preview sub-image is multiple, 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-image, the preview sub-image is stitched to generate a target preview image, which facilitates the photographing device to subsequently display the target preview image.

[0132] When the retractable screen is in a stationary state and the number of target cameras is multiple, multiple preview sub-images are collected by the multiple target cameras, and 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, so that the target preview image obtained by stitching the multiple preview sub-images can cover more scenes, which further improves the imaging effect of the target preview image and improves the user's usage experience.

[0133] Optionally, the processor 1410 is used to obtain 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 telescoping screen when the telescoping information indicates that the telescoping screen is in deployment; The processor 1410 is configured to perform 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.

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

[0135] In the process when the user needs to take a picture with the photographing device, the telescopic screen of the photographing device is controlled to start unfolding, the first camera of the photographing device does not move with the unfolding of the telescopic screen, during the unfolding of the telescopic screen, the first camera collects a first preview sub-image in a stationary state, the second camera of the photographing device 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 to obtain a panoramic image, and the panoramic image is displayed as a 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 second camera with the telescopic screen.

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

[0137] Optionally, the processor 1410 is used to obtain 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 when the retraction information indicates that the retractable screen is retracting; 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 a plurality of cameras, the plurality of cameras including a third camera and a fourth camera, where the third camera is in a stationary state and the fourth camera is in a moving state, and as can be understood, the third camera and the fourth camera are both installed on the screen of the telescopic screen, and during the deployment of the telescopic screen, the screen is deployed along one direction, where the third camera does not move with the deployment of the screen, and the fourth camera moves with the deployment of the screen. When it is determined that the telescopic screen is in the deployment based on the telescopic information, the third camera takes an image in a stationary state, and the fourth camera takes an image during the movement. The third preview sub-image can be cropped by the fourth preview sub-image taken by the fourth camera during the movement to generate a corresponding target preview image.

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

[0140] Optionally, the processor 1410 is used to select one camera from the at least two cameras as the target camera when the stretch information indicates that the stretchable 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 of the photographing device, one of the at least two cameras is selected as a target camera according to a telescopic state of the telescopic 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 among multiple cameras based on the telescopic state of the telescopic screen of the photographing device to photograph. A user can switch cameras by controlling the telescopic state of the telescopic screen, thereby reducing the user's operation steps during photographing.

[0144] Optionally, the processor 1410 is adapted to switch the first camera in operation to the second camera when the stretching information indicates that the stretchable screen is being deployed; The processor 1410 is 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.

[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 ratio, and a second camera with a relatively large zoom ratio. When it is determined based on the telescopic information that the telescopic screen is being deployed, the second camera with a relatively large zoom ratio is turned on and the first camera is turned off, and an image collected by the second camera is taken as a target preview image. When it is determined based on the telescopic information that the telescopic screen is being contracted, the third camera with a relatively small zoom ratio is turned on and the first camera is turned off, and an image collected by the third camera is taken 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 with 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 the embodiment of the present application, as shown in FIG. 14, the input unit 1404 may include a graphics processor (Graphics Processing Unit, GPU) 14041 and a microphone 14042, and the graphics processor 14041 processes image data of still or video 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, and the display panel 14061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. 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 an operation lever, which will not be described further 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, where the application processor is mainly for processing the operating system, the user interface, and the application programs, etc., and the modem processor is mainly for processing wireless communication. As can be understood, the modem processor may not be integrated into the processor 1410.

[0149] The embodiment of the present application further provides a readable storage medium, in which a program or instruction is stored, and when the program or instruction is executed by a processor, 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.

[0150] Here, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes 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 embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor runs a program or instruction, and is used to realize each process of the embodiment 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 the present application may be referred to as system level chips, system chips, chip systems, or systems on chips.

[0153] It should be explained that in this specification, the terms "comprise", "include", or any other variants thereof are intended to cover the non-exclusive "comprise", whereby a process, method, article, or apparatus that includes a set of elements includes not only those elements, but also other elements not expressly listed or inherent to such process, method, article, or apparatus. Absent any further limitations, an element limited by the phrase "comprises a" does not preclude the presence of other identical elements in the process, method, article, or apparatus that includes this element. It should be pointed out that the scope of the method and apparatus 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 reverse order based on the functions involved, for example, the described method can be performed in a different order than described, and various steps can be added, omitted, or combined. Also, features described with reference to some examples can be combined in other examples.

[0154] From the above description of the embodiments, it is clear to those skilled in the art that 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. In light of this understanding, the technical proposal of the present application may be substantially or the part that contributes 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, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0155] The above describes the embodiments of the present application in conjunction with the drawings, but 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 suggestions of this application and make many forms without departing from the spirit and scope of the claims of this application, all of which belong to the protection scope of this application.

Claims

1. A photographing method for use in a photographing device including an extendable screen, comprising: Obtaining expansion / contraction information of the retractable screen; determining a target camera for photographing based on the stretching information; and displaying a target preview image collected by the target camera.

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

3. prior to displaying a preview image collected by the target camera; If the stretching information indicates that the stretchable screen is in a stationary state, acquiring at least one preview sub-image collected by the target camera; The method of claim 1 or 2, 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 at least one second camera in a moving state; prior to 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 or 2, 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 cameras include at least one third camera in a stationary state and at least one fourth camera in a moving state; prior to 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 method of claim 1 or 2, 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 stretching information, The method of claim 1 , further comprising: selecting one camera from at least two cameras as a target camera when the stretching information indicates that the stretchable screen is being deployed or retracted.

7. selecting one camera from the at least two cameras as a target camera when the stretching information indicates that the stretchable screen is being deployed or retracted; switching an active first camera to a second camera when the telescopic information indicates that the telescopic screen is being deployed; and switching an active first camera to a third camera when the stretching information indicates that the stretchable screen is being retracted; 7. The photographing method according to claim 6, 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.

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

9. A photographing device including a retractable screen, an acquisition unit for acquiring expansion / contraction information of the telescopic 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.

10. The expansion / contraction information includes at least one of an expansion / contraction speed and an expansion / contraction length, The acquisition unit is further used for acquiring a real-time extension length of the telescopic screen during the 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 for determining a number of cameras corresponding to the real-time telescopic length as target cameras.

11. The acquisition unit 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 in a stationary state; The imaging device is The photographing apparatus 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 used to acquire, when the stretching information indicates that the retractable screen is in the process of unfolding, 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 the unfolding of the retractable screen; The imaging device is The photographing apparatus of claim 9 or 10, further comprising a second generating unit configured to perform 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 used to acquire, when the stretching information indicates that the retractable screen is in the process of shrinking, 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 shrinking of the retractable screen; The imaging device is 11. The photographing device of claim 9 or 10, 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 the at least two cameras as a target camera when the telescopic information indicates that the telescopic screen is being deployed or contracted.

15. The determining unit is further adapted to switch a first camera in an operational state to a second camera when the telescopic information indicates that the telescopic screen is being deployed; The determining unit is further used for switching a first camera in an active state to a third camera when the stretching information indicates that the stretchable screen is being retracted; 15. The photographing apparatus according to claim 14, 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.

16. The imaging device is a receiving unit for receiving a first input of a user; 10. The imaging device of claim 9, further comprising: a control unit for controlling a camera in response to the first input to capture a target image based on the target preview image.

17. 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.

18. A readable storage medium having a program or instructions stored therein, the program or instructions implementing the steps of the imaging method according to any one of claims 1 to 8 when executed by a processor.

19. A chip comprising a processor and a communication interface, the communication interface being coupled to the processor, the processor running a program or instruction and used to realize steps of the imaging method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Display controller

    JP1995059070A

  • Camera incorporated video recorder

    JP2001036781A

  • Camera

    JP2003274250A

  • Camera

    JP2003295291A

  • Electronic device of sliding type

    US20210103314A1