Photographing method, and terminal, electronic device and readable storage medium
By using the first logo of the auxiliary preview window in the shooting preview interface, users can quickly focus under high-power zoom, solving the problem of difficulty in focusing under high-power zoom and improving shooting efficiency.
Patent Information
- Application Number
- PCT/CN2024/110752
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-15
- Filing Date
- 2024-08-08
- Publication Date
- 2025-02-20
AI Technical Summary
At high-power zoom, the slight jitter of the electronic device will be amplified, making it difficult for the user to focus on the mobile device or tripod.
By displaying the first identifier of the auxiliary preview window in the shooting preview interface, the user can select the range of the picture to be shot in the auxiliary preview window without manually moving the device to achieve fast focus.
Simplifies focus operation in tripod mode, reduces focus difficulty and improves the efficiency of shooting images or videos.
Smart Images

Figure CN2024110752_20022025_PF_FP_ABST
Abstract
Description
Shooting method, terminal, electronic device and readable storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application No. 202311031966.7 filed in China on August 15, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present application belongs to the field of camera technology, and specifically relates to a shooting method, a terminal, an electronic device, and a readable storage medium. Background Art
[0004] Currently, electronic devices can use telephoto lenses to shoot subjects at long distances. To achieve better image stabilization at high zoom levels, users typically place their devices on tripods for shooting. In tripod mode, optical image stabilization (OIS) controls the camera lens to the center of the scene, eliminating the need for image stabilization. At this point, if the user needs to change the subject, they need to move the device or tripod to obtain the desired image or video.
[0005] However, at high zoom levels, any slight shake will be magnified, making it difficult for users to focus while moving electronic devices or tripods.
[0006] Summary of the Invention
[0007] The purpose of the embodiments of the present application is to provide a shooting method, a terminal, an electronic device and a readable storage medium, which can simplify the focusing operation steps in tripod mode, thereby reducing the difficulty of focusing in tripod mode.
[0008] In a first aspect, an embodiment of the present application provides a shooting method, the method comprising: displaying a shooting preview interface of an electronic device in tripod mode, the shooting preview interface comprising a main preview window and an auxiliary preview window, the auxiliary preview window being used to display a preview image captured by a camera of the electronic device, the auxiliary preview window comprising a first identifier indicating a first screen range, the main preview window being used to display an image corresponding to the first screen range; generating an image or video based on the image corresponding to the first screen range.
[0009] In a second aspect, an embodiment of the present application provides a terminal, which includes: a display module for displaying a shooting preview interface of the terminal in tripod mode, the shooting preview interface including a main preview window and an auxiliary preview window, the auxiliary preview window being used to display a preview image captured by the terminal's camera, the auxiliary preview window including a first identifier, the first identifier indicating a first screen range, the main preview window being used to display an image corresponding to the first screen range; a generation module for generating an image or video based on the image corresponding to the first screen range displayed by the display module.
[0010] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0011] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0012] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.
[0013] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method described in the first aspect.
[0014] In an embodiment of the present application, the image displayed in the main preview window can be determined by the image range indicated by the first indicator in the auxiliary preview window in the shooting preview interface, thereby capturing the desired image or video. In this way, when the electronic device is in tripod mode, the image displayed in the main preview window can be changed by changing the image range indicated by the first indicator in the auxiliary preview window, without the user having to manually move the electronic device to align the desired subject. This allows for fast focusing, simple operation, and improved efficiency in capturing images or videos. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] FIG1 is a flow chart of a photographing method according to an embodiment of the present application;
[0016] FIG2 is a second flowchart of a photographing method provided in an embodiment of the present application;
[0017] FIG3A is a schematic diagram of an interface of an electronic device displaying a main preview window, an auxiliary preview window, and a first identifier provided by an embodiment of the present application;
[0018] 3B is a schematic diagram of an interface of an electronic device receiving a first input to update the display position of a first identifier and an image displayed in a main preview window provided by an embodiment of the present application;
[0019] FIG4A is a schematic diagram of an interface for moving an ROI frame to the right, provided in an embodiment of the present application;
[0020] FIG4B is a schematic diagram of an interface for moving an ROI frame to change an image displayed in a main preview window, provided by an embodiment of the present application;
[0021] FIG5 is a third flowchart of a photographing method provided in an embodiment of the present application;
[0022] FIG6A is a schematic diagram of an interface for a user to input an auxiliary preview window provided by an embodiment of the present application;
[0023] FIG6B is a schematic diagram of an interface for enlarging and displaying an image in an auxiliary preview window provided by an embodiment of the present application;
[0024] FIG7 is a schematic diagram of an interface for capturing a horizontal panoramic image by an electronic device provided in an embodiment of the present application;
[0025] FIG8 is a schematic diagram of an interface for capturing a longitudinal panoramic image by an electronic device provided in an embodiment of the present application;
[0026] FIG9 is a schematic diagram of a window interface for capturing a panoramic image by an electronic device provided in an embodiment of the present application;
[0027] FIG10A is a schematic diagram of an interface of an electronic device receiving a sliding input for capturing a panoramic image according to an embodiment of the present application;
[0028] FIG10B is a second schematic diagram of an interface for an electronic device receiving a sliding input to capture a panoramic image, provided by an embodiment of the present application;
[0029] FIG10C is a third schematic diagram of an interface for an electronic device receiving a sliding input for capturing a panoramic image, provided by an embodiment of the present application;
[0030] FIG11 is a flowchart of an example of a shooting method provided in an embodiment of the present application;
[0031] FIG12 is a schematic structural diagram of a terminal provided in an embodiment of the present application;
[0032] FIG13 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application;
[0033] FIG14 is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0035] The terms "first," "second," and the like in the specification of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0036] The terms "at least one" and "at least one of" in the specification of this application refer to any one, any two, or a combination of more than two of the objects included. For example, at least one of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c", and "a, b, and c", where a, b, and c can be single or multiple. Similarly, "at least two" means two or more, and its meaning is similar to "at least one".
[0037] The following, in conjunction with the accompanying drawings, describes in detail the shooting method, terminal, electronic device and readable storage medium provided in the embodiments of the present application through specific embodiments and their application scenarios.
[0038] The shooting method, terminal, electronic device and readable storage medium provided by the embodiments of the present application can be applied to scenes where shooting is performed by an electronic device, especially scenes where shooting is performed when the electronic device is fixed in a certain position.
[0039] With the development of shooting technology, telephoto lenses have been widely used in various scenarios because they can clearly capture objects at farther distances, and are increasingly recognized by ordinary users and professional photographers.
[0040] In order to get a better anti-shake experience at high zoom, users usually fix their electronic devices in a certain position to shoot. For example, users can place their electronic devices on a tripod to shoot. Usually, in order to maintain the stability of the image shot on a tripod, OIS will control the camera lens to the center position of the captured image and then stop anti-shake. After OIS stops anti-shake, if the user needs to change the subject, they need to move the electronic device to capture the corresponding image or video.
[0041] However, when using an electronic device at high zoom, any slight shake will be magnified, making it difficult for users to control the focus of the electronic device's telephoto camera during shooting, and easily causing the preview image at high zoom to deviate from the subject. This makes it difficult for users to focus while moving the electronic device or using a tripod.
[0042] In the shooting method, terminal, electronic device, and readable storage medium provided in the embodiments of the present application, the image displayed in the main preview window can be determined by the image range indicated by the first indicator in the auxiliary preview window in the shooting preview interface, thereby capturing the desired image or video. In this way, the electronic device, in tripod mode, can change the image displayed in the main preview window by changing the image range indicated by the first indicator in the auxiliary preview window, without the user having to manually move the electronic device to align the desired subject. This allows for fast focusing, simple operation, and improved efficiency in capturing images or videos.
[0043] The execution subject of the shooting method provided in the embodiments of the present application may be a terminal. For example, the terminal may be an electronic device, or a component of the electronic device, such as an integrated circuit or chip. The shooting method provided in the embodiments of the present application will be described below using an electronic device as an example.
[0044] The present invention provides a photographing method. FIG1 shows a flowchart of the photographing method provided by the present invention. The method can be performed by an electronic device. As shown in FIG1 , the photographing method provided by the present invention can include the following steps 101 and 102.
[0045] Step 101: Display a shooting preview interface of the electronic device in tripod mode. The shooting preview interface includes a main preview window and an auxiliary preview window. The auxiliary preview window is used to display a preview image captured by the camera of the electronic device. The auxiliary preview window includes a first identifier, which indicates a first picture range. The main preview window is used to display an image corresponding to the first picture range.
[0046] In some embodiments of the present application, the tripod mode can be a mode in which a user places the electronic device on a stand when shooting images or videos to stabilize the electronic device and improve the shooting quality. In other words, the tripod mode can better capture stable images or videos, avoiding shaking or jittering that occurs when shooting with a handheld electronic device.
[0047] In some embodiments of the present application, the preview image captured by the camera of the electronic device and displayed in the auxiliary preview window may be an image captured in real time by the camera of the electronic device, or may be a cached frame stored by the electronic device during preview. It is understood that when the auxiliary preview window displays a cached frame captured by the camera of the electronic device, the image range corresponding to the preview image may be the image range corresponding to the camera with the maximum field of view, for example, the cached frame may be an image captured by a wide-angle camera.
[0048] In some embodiments of the present application, the image corresponding to the first screen range may be at least a portion of the preview image displayed in the auxiliary preview window.
[0049] Exemplarily, the first identifier may be a region of interest (ROI) box in the auxiliary preview window, and the image corresponding to the first picture range may be an image selected in the ROI box.
[0050] For example, the first identifier may be a mark displayed in the auxiliary preview window, such as an arrow, to indicate the relative position of the image corresponding to the first picture range in the preview image displayed in the auxiliary preview window.
[0051] In some embodiments of the present application, the image corresponding to the first frame range displayed in the main preview window is the image required by the user.
[0052] It should be noted that the camera involved in the embodiments of the present application can be a camera built into the electronic device, or a movable camera external to the electronic device. It is understandable that the camera involved in the embodiments of the present application can be a normal camera, a wide-angle camera, a telephoto camera, or an anti-shake camera with an OIS function. This application does not limit this.
[0053] In some embodiments of the present application, when the camera is an anti-shake camera without an OIS function, such as a wide-angle camera, the preview image displayed in the auxiliary preview window in the shooting preview interface may be an image captured by the camera after the electronic device has digitally zoomed in. When the camera is an anti-shake camera with an OIS function, the preview image displayed in the auxiliary preview window in the shooting preview interface may be an image captured by the camera at full viewing angle. It is understood that the image captured by the camera at full viewing angle may be an image of the maximum range that the camera can capture during its rotation.
[0054] For example, the preview image may be an image obtained by stitching together images captured when the camera rotates in the order of the leftmost, topmost, rightmost, and bottommost.
[0055] In some embodiments of the present application, the camera of the electronic device may be any camera on the electronic device.
[0056] Furthermore, if the electronic device has multiple cameras, the camera of the electronic device can be the camera with the largest field of view among the multiple cameras of the electronic device. In this way, the preview image displayed in the auxiliary preview window can correspond to the largest captured area, so that the range of the first picture that the user can select is the widest.
[0057] For example, assuming that the electronic device has a periscope camera, the electronic device can display the image captured by the periscope camera at a full viewing angle in the auxiliary preview window.
[0058] In some embodiments of the present application, the electronic device may display a shooting preview interface after entering a shooting mode.
[0059] In some embodiments of the present application, the display area of the auxiliary preview window can be any display area of the shooting preview interface. It is understood that the shape and size of the display area can be set by the user or by default by the electronic device. This embodiment of the present application is not specifically limited.
[0060] For example, the display area of the auxiliary preview window may be a square display area in the upper right corner of the shooting preview interface; or, the display area of the auxiliary preview window may be a circular display area in the lower left corner of the shooting preview interface.
[0061] For example, the display area of the auxiliary preview window may be one-fourth of the display area of the shooting preview interface; or, the display area of the auxiliary preview window may be one-fifth of the display area of the shooting preview interface, which is not limited in the embodiments of the present application.
[0062] In some embodiments of the present application, the main preview window and the auxiliary preview window can be displayed independently on the shooting preview interface, or they can be superimposed and displayed on the shooting preview interface in different display sizes.
[0063] Exemplarily, the main preview window and the auxiliary preview window may be displayed in a left-right adjacent manner in the shooting preview interface.
[0064] Exemplarily, the auxiliary preview window may be displayed in the form of a small window at the upper right corner of the main preview window.
[0065] Exemplarily, the main preview window and the auxiliary preview window may be displayed superimposed on the shooting preview interface with a preset transparency.
[0066] For example, the main preview window and the auxiliary preview window can be displayed in a superimposed manner in the shooting preview interface with a transparency of 30%.
[0067] For example, the auxiliary preview window mentioned above can be displayed in a completely opaque form in the shooting preview interface.
[0068] Exemplarily, the auxiliary preview window may also be displayed in a floating manner in the shooting preview interface. When the user drags the auxiliary preview window, the auxiliary preview window moves in the shooting preview interface along with the movement of the user.
[0069] In some embodiments of the present application, the display position of the auxiliary preview window in the shooting preview interface may be fixed or non-fixed.
[0070] For example, the display position of the auxiliary preview window can be fixed at the upper right corner of the shooting preview interface.
[0071] If the electronic device is a foldable screen, the auxiliary preview window can be displayed on one of the display screens and the main preview window can be displayed on another display screen.
[0072] Step 102: Generate an image or video based on the image corresponding to the first frame range.
[0073] In some embodiments of the present application, the electronic device may use the image corresponding to the first screen range as the image to be captured to generate the image or video required by the user.
[0074] The shooting method provided in an embodiment of the present application can determine the image displayed in the main preview window by using the image range indicated by the first indicator in the auxiliary preview window in the shooting preview interface, thereby capturing the desired image or video. In this way, the electronic device, in tripod mode, can change the image displayed in the main preview window by changing the image range indicated by the first indicator in the auxiliary preview window, without the user having to manually move the electronic device to align the desired subject. This allows for fast focusing, simple operation, and improved efficiency in capturing images or videos.
[0075] In some embodiments of the present application, in combination with FIG. 1 , as shown in FIG. 2 , after the above step 101 , the shooting method provided in the embodiment of the present application may further include the following steps 103 and 104 .
[0076] Step 103: Receive a first input from the user.
[0077] Step 104: In response to the first input, update the display position of the first identifier in the auxiliary preview window, and update the image displayed in the main preview window.
[0078] The first input may be used to select an object corresponding to the first screen range from the preview image displayed in the auxiliary preview window. That is, the first input may be an input for selecting the object corresponding to the first screen range.
[0079] In some embodiments of the present application, the image corresponding to the first picture range may be an image corresponding to a picture range that the user wants to shoot, or an image corresponding to a picture range that the user is interested in.
[0080] Exemplarily, the above-mentioned first input includes but is not limited to: the user's touch input of the first identifier through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and are not limited in the embodiments of this application. The specific gesture in the embodiments of this application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiments of this application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. In actual implementation, it can be determined according to actual use requirements, and is not limited in the embodiments of this application.
[0081] In some embodiments of the present application, the first input may include a drag input on the first identifier, or the first input may include a click input on the auxiliary preview window.
[0082] In some embodiments of the present application, the electronic device may display an ROI frame in the auxiliary preview window, through which the first picture range may be framed in the preview image displayed in the auxiliary preview window.
[0083] Exemplarily, the first input may be a user dragging input of the ROI box in the auxiliary preview window, so as to trigger the electronic device to determine, from the preview image, an image corresponding to the first picture range selected by the user.
[0084] In some embodiments of the present application, the electronic device can receive user click inputs at different positions in the auxiliary preview window, and directly display the first identifier at the input position of the click input, thereby changing the first screen range selected by the first identifier in the preview image displayed in the auxiliary preview window.
[0085] Exemplarily, the first input may be a click input by the user on the auxiliary preview window, so that the first identifier is directly displayed at the input position of the click input, thereby triggering the electronic device to determine the image corresponding to the first screen range selected by the user from the preview image.
[0086] In this way, the electronic device can change the display position of the first marker in the auxiliary preview window by the user dragging the first marker or clicking the auxiliary preview window, thereby changing the image displayed in the main preview window, without having to move the electronic device to change the image displayed in the main preview window. This allows the user to quickly and easily determine the subject they want to photograph, improving the flexibility and accuracy of subject selection.
[0087] In some embodiments of the present application, after receiving the first input from the user, the electronic device can update the display position of the first identifier in the auxiliary preview window according to the image corresponding to the first screen range selected by the user, thereby updating the image corresponding to the first screen range indicated by the first identifier displayed in the main preview window.
[0088] For example, as shown in FIG3A , the electronic device may display “puppy,” “soccer ball,” and an ROI frame 32 in the auxiliary preview window 31 . The ROI frame 32 includes “puppy,” meaning that the image corresponding to the first image range is an image of a puppy. At this point, “puppy” is displayed in the main preview window 33 .
[0089] Then, the electronic device may receive a user drag input on the ROI frame 32 and drag the ROI frame 32 onto the "soccer ball." As shown in FIG3B , the electronic device may display the "puppy," the "soccer ball," and the ROI frame 32, which includes the "soccer ball," in the auxiliary preview window 31. Furthermore, the electronic device may display the "soccer ball" in the main preview window.
[0090] Alternatively, the electronic device may receive a user click input on the "football" in the auxiliary preview window 31, and the electronic device may directly display the ROI frame 32 on the "football". As shown in FIG3B , the electronic device may display the "puppy", the "football", and the ROI frame 32 in the auxiliary preview window 31, wherein the ROI frame 32 includes the "football". Furthermore, the electronic device may display the "football" in the main preview window.
[0091] It should be noted that steps 103 and 104 can be performed before or after step 102. The above embodiment is described as an example in which steps 103 and 104 can be performed before step 102. It is understood that if steps 103 and 104 are performed after step 102, the electronic device can perform step 102 again after performing step 104 to obtain a different image or video.
[0092] In this way, the electronic device can receive the user's first input and change the display position of the first identifier in the auxiliary preview window, thereby changing the image displayed in the main preview window, without having to move the electronic device to change the image displayed in the main preview window. Therefore, the user can quickly and easily select the object they want to capture in the preview image, improving the accuracy of selecting the object to be captured and thus increasing the flexibility of capturing images or videos.
[0093] In some embodiments of the present application, the auxiliary preview window may include a second identifier, and the first input may include a click input or a sliding input on the second identifier.
[0094] In some embodiments of the present application, the second identifier may be an identifier instructing the user to move the first identifier.
[0095] Exemplarily, the second identifier can be multiple arrows in different directions to indicate that the user can move the first identifier in different directions to change the display position of the first identifier in the auxiliary preview window, thereby changing the first screen range, and then changing the image corresponding to the first screen range displayed in the main preview window.
[0096] In some embodiments of the present application, when a second identifier can be included in the auxiliary preview window, the above-mentioned first input can be a click input or a sliding input of the second identifier by the user, so that the electronic device can move the first identifier to flexibly select the image corresponding to the first screen range from the preview image.
[0097] For example, in combination with FIG. 3A , as shown in FIG. 4A , the electronic device may display an arrow around the ROI frame 32 to prompt the user to move the ROI frame 32 in the direction indicated by the arrow.
[0098] For example, as shown in FIG4A , the user can click the right arrow to trigger the electronic device to control the ROI frame 32 to move right. As shown in FIG4B , the electronic device can change the display position of the ROI frame 32 and update the “puppy” in the main preview window 40 to “football”.
[0099] In some embodiments of the present application, a user can trigger the electronic device to control the first marker to move in any direction in the preview image by clicking or sliding the second marker. It is understood that the any direction can include any possible direction such as up, down, left, right, upper left, upper right, lower left, and lower right.
[0100] For example, taking the first identifier as an ROI frame, if the image corresponding to the screen range that the user wants to select is located at the lower right bottom of the image corresponding to the screen range selected by the ROI frame, the user can drag the arrow indicating the lower right direction, i.e., the second identifier, to trigger the electronic device to control the ROI frame to move to the lower right to select the image corresponding to the desired screen range.
[0101] For example, taking the first identifier as an ROI frame, if the image corresponding to the screen range that the user wants to select is located in the upper left corner of the image corresponding to the screen range selected by the ROI frame, the user can directly click the arrow indicating the upper left direction, that is, the second identifier, to trigger the electronic device to control the ROI frame to move to the upper left to select the image corresponding to the desired screen range.
[0102] In this way, since the display position of the first marker in the auxiliary preview window and the image displayed in the main preview window can be updated by clicking or sliding the second marker, the flexibility and accuracy of selecting the object to be photographed can be improved.
[0103] In some embodiments of the present application, in combination with FIG. 1 , as shown in FIG. 5 , after the above step 101 , the shooting method provided in the embodiment of the present application may further include the following steps 105 and 106 .
[0104] Step 105: When the auxiliary preview window and the main preview window display images captured by the first camera, the electronic device receives a second input from the user.
[0105] In some embodiments of the present application, the first camera may be any camera with an anti-shake function of an electronic device, that is, the first camera may be a camera with a rotatable lens.
[0106] In some embodiments of the present application, the phrase "the auxiliary preview window and the main preview window display images captured by the first camera" may mean that the preview image displayed in the auxiliary preview window and the image displayed in the main preview window are images captured by the same camera. It is understood that the preview image displayed in the auxiliary preview window may be an image captured in real time by the first camera, or a cached frame image captured by the first camera.
[0107] In some embodiments of the present application, the second input may be an input for changing the first screen range indicated by the first identifier.
[0108] Exemplarily, the second input may be a sliding input of the user on the first identifier to trigger the electronic device to change the first screen range indicated by the first identifier.
[0109] Exemplarily, the second input may be a sliding input of the user on the auxiliary preview window to trigger the electronic device to change the first screen range indicated by the first identifier.
[0110] Step 106: In response to the second input, update the first identifier and the display parameters of the first screen range indicated by the first identifier.
[0111] The first identifier, the display parameters of the first screen range, the input parameters of the second input, and the maximum anti-shake range of the first camera are associated with each other.
[0112] In some embodiments of the present application, the display parameters of the first screen range may include the display size and image content of the image corresponding to the first screen range.
[0113] In some embodiments of the present application, the input parameters of the second input may include an input position, an input direction, and an input trajectory.
[0114] In some embodiments of the present application, the maximum stabilization range of the first camera may refer to the maximum stabilization angle of the first camera. It is understood that the larger the stabilization range of the first camera, the larger the stabilization angle of the first camera, and the larger the corresponding field of view.
[0115] In some embodiments of the present application, if the field of view of the first camera is larger, the adjustable space of the display parameters of the first identifier and the first screen range is larger.
[0116] In some embodiments of the present application, the above-mentioned "the first identifier, the display parameters of the first screen range are associated with the input parameters of the second input, and the maximum anti-shake range of the first camera" may mean: after the electronic device receives the second input of the user, it can determine how to update the display parameters of the first identifier and the first screen range based on the input parameters of the second input and the maximum anti-shake range of the first camera.
[0117] For example, let's take the second input as an example where the user slides the first identifier to the right. The electronic device can control the first identifier to move from the input starting position of the second input, along the input direction and input trajectory, based on the input parameters of the second input, and move the first identifier to the input ending position of the second input without exceeding the maximum anti-shake range of the first camera. It can be understood that the display position of the first identifier and the first screen range indicated by the first identifier also change, that is, the display position of the first identifier and the display parameters of the first screen range also change.
[0118] In some embodiments of the present application, the electronic device may receive user input on the auxiliary preview window, change the preview image displayed in the auxiliary preview window, or change the magnification of the preview image.
[0119] For example, the electronic device may receive a two-finger pinching input from the user on the auxiliary preview window, and reduce the magnification of the preview image displayed in the auxiliary preview window.
[0120] For example, the electronic device may receive a leftward sliding input of the auxiliary preview window by the user, and display an image on the left side of the preview image in the auxiliary preview window.
[0121] In some embodiments of the present application, the electronic device may reduce the preview image displayed in the auxiliary preview window to an image corresponding to the maximum field of view of the first camera during the process of the user inputting the second input; and after the user completes the input of the second input, the preview image displayed in the auxiliary preview window may be enlarged to an image corresponding to the field of view corresponding to the zoom magnification currently selected by the first camera, so that the user can more flexibly and accurately select the object to be photographed in the auxiliary preview window.
[0122] In some embodiments of the present application, the electronic device can control the rotation of the first camera based on the position information of the image corresponding to the first screen range indicated by the first identifier in the preview image, so that the image captured by the first camera at the currently used zoom factor is the image corresponding to the first screen range selected by the user from the preview image.
[0123] For example, as shown in FIG4A , in conjunction with main preview window 40 shown in FIG4A , if a user wishes to capture the "soccer ball" to the right of the "puppy," they can drag ROI frame 32 rightward in auxiliary preview window 41 and position it over the "soccer ball," representing the aforementioned second input. Consequently, as shown in FIG4B , based on the position of the "soccer ball" in the preview image displayed in auxiliary preview window 41, the electronic device can be triggered to rotate the first camera to an angle capable of capturing the "soccer ball." The image of the "soccer ball" captured by the rotated first camera is then displayed in main preview window 40.
[0124] It should be noted that the above steps 105 and 106 can be performed before or after step 102. The above embodiment is described as an example in which steps 105 and 106 can be performed before step 102. It is understood that if the above steps 105 and 106 are performed after step 102, the electronic device can perform step 102 again after performing step 106 to obtain a different image or video.
[0125] In this way, since the electronic device can update the first identifier and the display parameters of the first screen range indicated by the first identifier to meet user needs based on the input parameters input by the user and the maximum anti-shake range of the camera, the electronic device can capture the required image or video based on the display parameters of the first screen range after the update, thereby improving the efficiency of capturing images or videos.
[0126] In some embodiments of the present application, the shooting method provided in the embodiments of the present application may further include the following steps a and b.
[0127] Step a: Calculate the rotation parameters of the first camera based on the position information of the image corresponding to the first picture range indicated by the first identifier in the preview image.
[0128] Step b: Control the rotation of the first camera based on the rotation parameter.
[0129] In some embodiments of the present application, the above-mentioned rotation parameters may include: rotation angle and motor stroke.
[0130] In some embodiments of the present application, the position information of the image corresponding to the first screen range indicated by the first identifier in the preview image can be represented by the coordinates of the pixels of the image corresponding to the first screen range indicated by the first identifier in the preview image. That is, the position information of the image corresponding to the first screen range indicated by the first identifier in the preview image includes: the coordinate information of the image corresponding to the first screen range indicated by the first identifier in the preview image.
[0131] In some embodiments of the present application, after calculating the rotation parameters of the first camera, the electronic device needs to convert the rotation parameters of the first camera into Hall values so that the electronic device can control the rotation of the first camera based on the Hall values. In other words, the electronic device can convert the coordinate information of the image corresponding to the first screen range indicated by the first identifier in the preview image into Hall values so that the electronic device can control the rotation of the first camera based on the Hall values.
[0132] It should be noted that the rotation of the first camera is typically achieved through a Hall effect sensor. The electronic device can use the Hall effect sensor to sense the magnitude of the magnetic field of the magnet on the first camera. As the first camera rotates, the distance between the magnet and the Hall effect sensor varies, resulting in different sample values from the Hall effect sensor, i.e., different Hall effect values. Therefore, the Hall effect value can be used to determine the current angle of the first camera.
[0133] In some embodiments of the present application, in the process of converting the coordinate information of the image corresponding to the first screen range indicated by the above-mentioned first identifier in the preview image into a Hall value, the electronic device calculates the target rotation parameters based on the coordinate information of the image corresponding to the first screen range indicated by the above-mentioned first identifier in the preview image, and the target rotation parameters include: the rotation angle and the motor stroke of the first camera, and converts the rotation angle and the motor stroke of the first camera into a Hall value.
[0134] It should be noted that the motor stroke may refer to the effective motor stroke, i.e., the range of the shooting angle that the first camera can adjust when the motor drives the rotatable camera to rotate. In other words, the motor stroke may indicate the adjustment range of the shooting angle of the first camera. It is understood that changes in the shooting angle of the first camera may result in changes in the range of the image captured by the first camera.
[0135] In some embodiments of the present application, the electronic device can convert the effective motor stroke corresponding to the first camera into a selectable pixel movement range in the preview image through the following formulas (1) and (2).
[0136] Among them, θ x is the maximum rotation angle of the first camera on the x-axis, X x is θ x The corresponding maximum motor stroke, in μm; θ y is the maximum rotatable angle of the first camera on the y-axis, X y is θ y The corresponding maximum motor stroke, in μm; EFL is the effective focal length of the first camera.
[0137] Among them, M xpixel The maximum pixel range that can be selected on one side of the preview image on the x-axis; W x M is the unit pixel size of the preview image on the x-axis; ypixel The maximum pixel range of a single side that can be selected on the y-axis for the preview image; W y The unit pixel size of the preview image on the y-axis.
[0138] It can be understood that from the above formulas (1) and (2), on the one hand, the larger the rotatable angle of the first camera, the larger the motor movement stroke, and the larger the range of the image corresponding to the first screen range indicated by the selectable first marker in the preview image. On the other hand, the larger the zoom ratio of the first camera, the greater the change in image content caused by the motor movement. Therefore, the larger the rotatable angle and zoom ratio of the first camera, the greater the field of view change benefit brought about by the motor movement. In other words, the smaller the angle of rotation of the first camera, the larger the image displayed in the main preview window can be. In this way, the selectable pixel range can be further enlarged, so that the image corresponding to the first screen range indicated by the first marker can be more accurately determined from the preview image.
[0139] In some embodiments of the present application, the electronic device can use the following formula (3) to calculate the pixel coordinates O(u) of the image corresponding to the first screen range indicated by the first identifier in the preview image displayed in the auxiliary preview window. x ,u y ) is converted to the position indicated by the Hall value O′(v x ,v v ).
[0140] Among them, h xcenter is the Hall center of the first camera on the x-axis; h ycenter is the Hall center of the first camera on the y-axis; The pixel coordinate value center of the preview image on the x-axis; The pixel coordinate value center of the preview image on the y-axis; gyrogain x gyrogain is the gyroscope gain value of the first camera on the x-axis; y is the gyroscope gain value of the first camera on the y-axis.
[0141] It should be noted that the Hall center of the first camera can indicate the position of the camera lens when it is centered. The electronic device can associate the pixel coordinate center of the preview image with the Hall center of the first camera, so that the electronic device can control the first camera to rotate to a position where it can capture the image corresponding to the first screen range indicated by the first identifier based on the position information of the image corresponding to the first screen range indicated by the first identifier in the preview image, so as to capture the target image.
[0142] In this way, the electronic device can convert the position information of the image corresponding to the first screen range indicated by the first marker in the preview image into a Hall effect value, and based on the Hall effect value, control the camera's lens via the camera's motor to rotate to a position where the image corresponding to the first screen range indicated by the first marker can be captured. This allows the camera to quickly focus on the desired subject, improving the efficiency of capturing images or videos.
[0143] In some embodiments of the present application, after the electronic device controls the first camera to rotate, the shooting method provided by the embodiment of the present application may further include the following step c.
[0144] Step c: displaying the image captured by the rotated first camera and corresponding to the first picture range in the main preview window.
[0145] In some embodiments of the present application, after controlling the first camera to rotate, the electronic device can make the first camera focus on the object to be photographed, that is, display the image captured by the rotated first camera in real time in the main preview window.
[0146] In some embodiments of the present application, when a user selects an image corresponding to a first screen range indicated by a first identifier from a preview image displayed in an auxiliary preview window, when the electronic device receives a second input from the user, the electronic device may enlarge the preview image and the first identifier displayed in the auxiliary preview window so that the user can more accurately determine the image corresponding to the first screen range.
[0147] For example, as shown in FIG6A , the electronic device displays a preview image 60 in the auxiliary preview window. When the electronic device receives input from the user sliding the ROI frame 61, the electronic device can enlarge the preview image 60 and the ROI frame 61. As shown in FIG6B , the electronic device can enlarge the preview image 60 and the ROI frame 61 to allow the user to more accurately determine the object corresponding to the first screen range.
[0148] It is understandable that, since the motor movement range of the first camera is limited, the field of view corresponding to the preview image actually displayed by the electronic device is also limited. Thus, if the image captured by the first camera can cover the image corresponding to the first screen range selected by the user through the first identifier, the electronic device can magnify and display the image corresponding to the selected first screen range in the auxiliary preview window; if the image captured by the first camera cannot cover the image corresponding to the first screen range selected by the user through the first identifier, the electronic device can receive user input and change the magnification of the image corresponding to the first screen range displayed in the auxiliary preview window to reselect the object to be captured, thereby reshooting the image or video.
[0149] In this way, since the electronic device can display the image captured by the rotated camera in real time in the main preview window, the user can judge whether the image captured by the camera at this time is the required image through the image displayed in real time in the main preview window, thereby improving the efficiency of shooting images or videos.
[0150] In some embodiments of the present application, the electronic device may include a second camera and a third camera.
[0151] Among them, the field of view of the second camera is greater than or equal to the field of view of the third camera. The auxiliary preview window is used to display the first image, which is obtained by cropping the image captured by the second camera. The main preview window is used to display the second image, which is obtained based on the image captured by the third camera. The field of view corresponding to the first image is the same as the maximum field of view of the third camera.
[0152] In some embodiments of the present application, the second camera and the third camera may be any two different cameras in the electronic device. It is understood that the second camera may be the same as or different from the first camera, and the third camera may be the same as or different from the first camera.
[0153] In some embodiments of the present application, the above-mentioned "the field of view of the second camera is greater than or equal to the field of view of the third camera" may mean: the first image captured by the second camera may be an image whose picture range is greater than the picture range corresponding to the second image captured by the third camera, so that the user can determine the object to be photographed through the first identifier from the first image displayed in the auxiliary preview window.
[0154] In some embodiments of the present application, the electronic device can directly display the image captured by the third camera as the second image in the main preview window; or, the electronic device can also crop the image captured by the third camera and display it as the second image in the main preview window.
[0155] In some embodiments of the present application, the above-mentioned "the field of view corresponding to the first image is the same as the maximum field of view of the third camera" may mean: when the electronic device shoots and previews through the second camera and the third camera, it can first align the field of view of the second camera and the third camera, so that the electronic device can determine the object to be photographed from the image captured by the third camera according to the user's selection in the image captured by the second camera.
[0156] In this way, since the electronic device can display the image captured by the camera with a larger field of view as the first image in the auxiliary preview window, and display the image captured by the camera with a smaller field of view as the second image in the main preview window, the electronic device can shoot the subject through different cameras according to user needs, thereby improving the flexibility of shooting images or videos.
[0157] In some embodiments of the present application, the shooting preview interface may further include a panoramic preview window, which is used to display an image obtained by stitching at least two frames of images displayed in the main preview window.
[0158] In some embodiments of the present application, the panoramic preview window can be displayed independently in the shooting preview interface, or it can be displayed in an overlaid manner on the shooting preview interface with a preset transparency.
[0159] In some embodiments of the present application, after the above step 101, the shooting method provided by the embodiment of the present application may further include the following steps 107 to 110.
[0160] Step 107: Receive the third input from the user.
[0161] Step 108: In response to the third input, display the third image in the panoramic preview window.
[0162] In some embodiments of the present application, the third input may be used to select an object to be photographed from the preview image displayed in the auxiliary preview window, that is, the third input may be an input for selecting the object to be photographed.
[0163] For example, the third input may be a sliding input by the user starting from any position in the preview image, so as to trigger the electronic device to capture an image on the sliding track of the sliding input.
[0164] For example, the third input may be a user dragging input of the first marker in the preview image to trigger the electronic device to capture an image containing the photographic object identified by the first marker.
[0165] In some embodiments of the present application, the third image may be an image obtained by stitching together at least two frames of images captured by the electronic device according to the third input. It is understood that the at least two frames of images may be images with continuous content.
[0166] For example, taking the third input of swiping right as an example, as shown in Figure 7 , the electronic device can display an image containing a "puppy" and a "soccer ball" in the auxiliary preview window 71 of the shooting preview interface 70. The electronic device can then receive a rightward swipe input from the user on the "puppy" displayed in the auxiliary preview window 71, thereby triggering the electronic device to control the camera to capture the "puppy" and an image to the right of it, thereby obtaining an image containing the "puppy" and an image containing the "soccer ball". The electronic device can then splice the image containing the "puppy" and the image containing the "soccer ball" to obtain a third image.
[0167] For example, taking the third input as a downward swipe, as shown in FIG8 , the electronic device may display an image containing a "puppy" in the auxiliary preview window 81 of the shooting preview interface 80. The electronic device may then receive a downward swipe input from the user on the "puppy" displayed in the auxiliary preview window 81, thereby triggering the electronic device to control the camera to capture the "puppy" and the object in front of it, thereby capturing an image containing the "puppy" and an image of the object in front of the "puppy." The electronic device may then splice the image containing the "puppy" and the image of the object in front of the "puppy" to obtain a third image.
[0168] In some embodiments of the present application, for a detailed description of how the electronic device controls the camera to shoot according to the position information of the shooting object selected by the third input in the preview image, please refer to the relevant descriptions in steps a to c above and will not be repeated here.
[0169] In some embodiments of the present application, the electronic device can stitch at least two frames of images captured to obtain a panoramic image containing all the screen content in the at least two frames of images, and display the panoramic image in a panoramic preview window.
[0170] In some embodiments of the present application, during the input process of the third input, the electronic device can display a preview image in the auxiliary preview window; and display the image corresponding to the first picture range in the main preview window; and can also display the stitched image in real time in the panoramic preview window in the shooting preview interface.
[0171] It can be understood that the electronic device displays the stitched image in real time in the panoramic preview window, which may mean that the camera of the electronic device can stitch and display the at least two frames of images captured by the camera in real time during the process of capturing at least two frames of images.
[0172] In some embodiments of the present application, the display area of the panoramic preview window may be an area of the shooting preview interface other than the display area of the main preview window and the display area of the auxiliary preview window. The panoramic preview window may also be displayed superimposed on the display area of the main preview window. This is not specifically limited in the embodiments of the present application.
[0173] 9 , the electronic device may display a main preview window 90 and an auxiliary preview window 91 on the shooting preview interface, and may also overlay a panoramic preview window 92 on the main preview window 90 to display the stitched image in real time.
[0174] In some embodiments of the present application, the electronic device may display a panoramic stitching mode control on the shooting preview interface, so that the electronic device can receive user input to the control and control the shooting preview interface to enter the panoramic stitching mode.
[0175] In some embodiments of the present application, after the electronic device displays the auxiliary preview window on the shooting preview interface, it can display a prompt message "Slide the first mark to perform panoramic stitching" to prompt the user that they can shoot a panoramic image by sliding the first mark.
[0176] In this way, the electronic device can control the camera to capture at least two frames of images based on the user's input of the preview image displayed in the auxiliary preview window, without the user having to manually rotate the electronic device to shoot. Therefore, the desired image can be accurately captured, avoiding the image breakage and distortion problems caused by handheld panoramic image shooting, and improving the speed and efficiency of panoramic image shooting.
[0177] Step 109: Receive the fourth input from the user.
[0178] Step 110 : In response to the fourth input, update the image corresponding to the first frame range, and display the fourth image in the panoramic preview window.
[0179] The image content of the fourth image includes the image content of the third image, and the screen range corresponding to the fourth image is larger than the screen range corresponding to the third image.
[0180] In some embodiments of the present application, the fourth input and the third input may be two inputs with opposite input directions, and the object selected by the fourth input is different from the object selected by the third input.
[0181] In some embodiments of the present application, the fourth input may be used to select an unselected subject to be photographed from the preview image displayed in the auxiliary preview window, that is, the fourth input may be a selection input for an unselected subject to be photographed.
[0182] For example, the fourth input may be a sliding input by the user starting from any position in the preview image, so as to trigger the electronic device to capture an image of the photographed object determined by the sliding track of the sliding input.
[0183] For example, the fourth input may be a user dragging input of the first marker in the preview image to trigger the electronic device to capture an image containing the photographic object determined by the ROI frame.
[0184] It can be understood that the above-mentioned third image and the at least one frame image captured by the electronic device according to the fourth input can be images with continuous picture content, and the above-mentioned third image is different from the at least one frame image captured according to the fourth input.
[0185] In some embodiments of the present application, when the starting positions of the third input and the fourth input are the same, if the electronic device receives the third input and the fourth input, the electronic device can directly stitch at least one frame of image captured in response to the third input as the third image, and stitch at least one frame of image captured in response to the fourth input as the fifth image, and stitch the third image and the fifth image to obtain the fourth image.
[0186] For example, the electronic device can control the shooting preview interface to enter panoramic stitching mode in tripod mode. As shown in Figure 10A, the electronic device can display a tripod mode icon 101 on the shooting preview interface 100, indicating that it has entered panoramic stitching mode. In this mode, the electronic device can receive a user sliding input from the center to the right on the auxiliary preview window 102, i.e., a third input, and control the camera to shoot. As shown in Figure 10B, image 1 containing a "puppy" and image 2 containing a "football" are captured. The electronic device can then display the image obtained by stitching image 1 and image 2 in the panoramic preview window 103 of the shooting preview interface 100.
[0187] Then, as shown in Figure 10B, the electronic device can receive a sliding input from the user from the center position to the left, that is, the fourth input, and control the camera to shoot. As shown in Figure 10C, an image 3 containing a "person" is captured, and the image 3 is spliced with the image obtained by splicing image 1 and image 2 and displayed in the panoramic preview window 103 of the shooting preview interface 100.
[0188] In some embodiments of the present application, when the starting positions of the third input and the fourth input are different, if the electronic device receives the third input and the fourth input, the electronic device can stitch at least one frame of image captured in response to the third input as the third image, and stitch an image different from the third image in at least one frame of image captured in response to the fourth input as the fifth image, and stitch the third image and the fifth image to obtain the fourth image.
[0189] For example, the electronic device can control the shooting preview interface to enter panoramic stitching mode in tripod mode. As shown in Figure 10A, the electronic device can display a tripod mode icon 101 on the shooting preview interface 100, indicating that it has entered panoramic stitching mode. In this mode, the electronic device can receive a user sliding input from the center to the right on the auxiliary preview window 102, i.e., a third input, and control the camera to shoot. As shown in Figure 10B, image 1 containing a "puppy" and image 2 containing a "football" are captured. The electronic device can then display the image obtained by stitching image 1 and image 2 in the panoramic preview window 103 of the shooting preview interface 100.
[0190] The electronic device can then receive a leftward swipe input from the user at the end point of the rightward swipe input, i.e., a fourth input, and control the camera to capture image 1 containing a "puppy," image 2 containing a "soccer ball," and image 3 containing a "person." As shown in FIG10C , the electronic device can stitch image 3 containing a "person" with image 1 containing a "puppy" and image 2 containing a "soccer ball" obtained by the rightward swipe input, and then display the stitched image in panoramic preview window 103 of shooting preview interface 100.
[0191] In this way, since the electronic device can control the camera to collect different images for stitching through two inputs in succession, the final stitched image can include a larger field of view, thereby achieving panoramic shooting in tripod mode.
[0192] In some embodiments of the present application, before the above step 101, the shooting method provided by the embodiment of the present application may further include the following steps 111 and 112. The above step 101 may include the following step 101a.
[0193] Step 111: display an initial preview interface, where the zoom ratio corresponding to the image displayed in the initial preview interface is less than a first threshold.
[0194] In some embodiments of the present application, the initial preview interface may be a preview interface that does not include an auxiliary preview window.
[0195] Exemplarily, the initial preview interface may only include images captured in real time by the camera of the electronic device.
[0196] In some embodiments of the present application, the zoom ratio of the image displayed in the initial preview interface may indicate the degree to which the electronic device's camera magnifies or reduces the image containing the subject. It is understood that the greater the zoom ratio of the electronic device's camera, the smaller the field of view of the image displayed in the initial preview interface.
[0197] For example, assuming that the zoom magnification of the electronic device's camera is 2×, its corresponding focal length is 3.6mm, and the field of view corresponding to the image displayed in the initial preview interface is 63°; when the zoom magnification of the electronic device's camera is 1×, its corresponding focal length is 2.8mm, and the field of view corresponding to the image displayed in the initial preview interface is 75°.
[0198] In some embodiments of the present application, the aforementioned "zoom ratio corresponding to the image displayed in the initial preview interface is less than a first threshold" may indicate that the object to be photographed by the electronic device is relatively close or large, and a smaller zoom ratio can meet the photographing requirements. Therefore, the electronic device does not need to use a larger zoom ratio, and the problem of difficulty in focusing caused by a larger zoom ratio does not exist.
[0199] In some embodiments of the present application, the above-mentioned first threshold value can be set by the user or by default by the electronic device, and the embodiments of the present application do not specifically limit it.
[0200] Step 112: Receive the fifth input from the user.
[0201] In some embodiments of the present application, the fifth input may be an input for the user to change the zoom ratio.
[0202] Exemplarily, the fifth input may be a two-finger zoom-in input by the user on the initial preview interface to increase the zoom ratio.
[0203] For example, the fifth input may be an input by the user to a zoom ratio control displayed in the initial preview interface to select a desired zoom ratio.
[0204] Step 101a: In response to the fifth input, when the zoom ratio is greater than or equal to the first threshold, display a shooting preview interface.
[0205] In some embodiments of the present application, "the zoom ratio is greater than or equal to the first threshold" can be understood as: the object to be photographed by the electronic device is far away from the electronic device, or the electronic device needs to enlarge the object to be photographed, and the zoom ratio of the camera of the electronic device is large.
[0206] It is understandable that when the electronic device's camera moves to capture other images at a high zoom ratio, any slight movement will cause a significant change in the captured object. Therefore, the electronic device can display a shooting preview interface and display a preview image captured by the electronic device's camera in an auxiliary preview window of the shooting preview interface, so that the user can directly select the object corresponding to the image range to be captured from the preview image through the first identifier, thereby avoiding the problem of focusing difficulties caused by the user manually moving the electronic device, improving the focusing efficiency and accuracy of the electronic device at high zoom ratios, and thus improving the efficiency of capturing images and videos.
[0207] Exemplarily, taking the first threshold of 10× as an example, when the zoom ratio of the camera of the electronic device reaches 10×, as shown in FIG3A , the electronic device may display the preview image captured by the camera of the electronic device in the auxiliary preview window 31 .
[0208] It should be noted that the maximum zoom ratio of the camera of the above electronic device may be greater than or equal to the first threshold value, so as to trigger the electronic device to display the auxiliary preview window on the shooting preview interface.
[0209] In this way, since the electronic device can display an auxiliary preview window on the shooting preview interface when the camera zoom ratio is high, the user can directly select the object to be photographed from the preview image displayed in the auxiliary preview window, thereby avoiding the problem of focusing difficulty caused by the user manually moving the electronic device, and improving the efficiency of the electronic device in capturing images or videos at high zoom ratios.
[0210] Each of the above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or any two or more of them can be executed in combination with each other. The specific implementation can be determined according to actual usage requirements, and the embodiments of this application do not limit this.
[0211] The following is an illustrative example of the shooting method provided in the embodiment of the present application.
[0212] As shown in Figure 11, Figure 11 shows a flowchart of a shooting method provided by an embodiment of the present application, which can be executed by an electronic device. As shown in Figure 11, the shooting method provided by an embodiment of the present application can include the following steps 201 to 205.
[0213] Step 201: When the zoom ratio of the camera is greater than or equal to a first threshold, a main preview window and an auxiliary preview window are displayed on the shooting preview interface.
[0214] The auxiliary preview window includes a first identifier, which indicates a first picture range, and the main preview window is used to display an image corresponding to the first picture range.
[0215] Step 202: Detect whether the tripod mode has been entered.
[0216] In some embodiments of the present application, the electronic device can normally perform anti-shake on the captured image without entering the tripod mode.
[0217] Step 203: Determine whether the user's first input is received.
[0218] In some embodiments of the present application, the electronic device may control the lens of the camera to be in the center position without receiving the first input from the user, so that the user may change the photographed object by manually moving the electronic device.
[0219] Step 204: When the first input from the user is received, the display position of the first identifier in the auxiliary preview window is updated, and the image displayed in the main preview window is updated.
[0220] Step 205: Generate an image or video based on the image corresponding to the first screen range indicated by the first identifier.
[0221] In this way, the image displayed in the main preview window can be determined by adjusting the image range indicated by the first indicator in the auxiliary preview window in the shooting preview interface, thereby obtaining the desired image or video. In this way, the electronic device can change the image displayed in the main preview window by changing the image range indicated by the first indicator in the auxiliary preview window in tripod mode, without the user having to manually move the electronic device to align with the desired subject. This allows for fast focusing, simple operation, and improved efficiency in capturing images or videos.
[0222] The shooting method provided in the embodiment of the present application can be executed by a terminal. In the embodiment of the present application, the terminal provided in the embodiment of the present application is described by taking the execution of the shooting method by a terminal as an example.
[0223] FIG12 shows a possible schematic diagram of the structure of a terminal involved in an embodiment of the present application. As shown in FIG12 , the terminal 120 may include: a display module 121 and a generation module 122 .
[0224] Among them, the display module 121 is used to display the shooting preview interface of the terminal in the tripod mode. The shooting preview interface includes a main preview window and an auxiliary preview window. The auxiliary preview window is used to display the preview image captured by the terminal's camera. The auxiliary preview window includes a first identifier, and the first identifier indicates the first screen range. The main preview window is used to display the image corresponding to the first screen range; the generation module 122 is used to generate an image or video based on the image corresponding to the first screen range displayed by the display module 121.
[0225] In a possible implementation, the terminal further includes:
[0226] a receiving module, configured to receive a first input from a user after the display module 121 displays a shooting preview interface of the terminal in the tripod mode;
[0227] The updating module is configured to update the display position of the first identifier in the auxiliary preview window and update the image displayed in the main preview window in response to the first input received by the receiving module.
[0228] In a possible implementation, the first input includes a drag input on the first identifier, or the first input includes a click input on the auxiliary preview window.
[0229] In a possible implementation, the auxiliary preview window includes a second identifier, and the first input includes a click input or a sliding input on the second identifier.
[0230] In one possible implementation,
[0231] The receiving module is configured to receive a second input from the user after the display module 121 displays the shooting preview interface of the terminal in the tripod mode, when the auxiliary preview window and the main preview window display images captured by the first camera;
[0232] The above-mentioned update module is also used to update the first identifier and the display parameters of the first screen range indicated by the first identifier in response to the second input received by the receiving module; wherein the first identifier and the display parameters of the first screen range are associated with the input parameters of the second input and the maximum anti-shake range of the first camera.
[0233] In one possible implementation, the terminal includes a second camera and a third camera, the field of view of the second camera is greater than or equal to the field of view of the third camera, the auxiliary preview window is used to display the first image, and the first image is obtained by cropping the image captured by the second camera. The main preview window is used to display the second image, and the second image is obtained based on the image captured by the third camera. The field of view corresponding to the first image is the same as the maximum field of view of the third camera.
[0234] In a possible implementation, the shooting preview interface further includes a panoramic preview window, which is used to display an image obtained by stitching at least two frames of images displayed in the main preview window.
[0235] In one possible implementation:
[0236] The receiving module is configured to receive a third input from the user after the display module 121 displays the shooting preview interface of the terminal in the tripod mode;
[0237] The display module 121 is further configured to display a third image in the panoramic preview window in response to the third input received by the receiving module;
[0238] The receiving module is further configured to receive a fourth input from the user;
[0239] The updating module is configured to update the image corresponding to the first picture range in response to the fourth input received by the receiving module;
[0240] The display module 121 is further configured to display a fourth image in the panoramic preview window; wherein the image content of the fourth image includes the image content of the third image, and the screen range corresponding to the fourth image is larger than the screen range corresponding to the third image.
[0241] In one possible implementation:
[0242] The display module 121 is further configured to display an initial preview interface before displaying the shooting preview interface of the terminal in the tripod mode, wherein the zoom ratio corresponding to the image displayed in the initial preview interface is less than a first threshold;
[0243] The receiving module is configured to receive a fifth input from the user;
[0244] The display module 121 is specifically configured to display a shooting preview interface in response to the fifth input received by the receiving module when the zoom ratio is greater than or equal to the first threshold.
[0245] An embodiment of the present application provides a terminal that can determine the image displayed in the main preview window by using the image range indicated by the first indicator in the auxiliary preview window in the shooting preview interface, thereby capturing a desired image or video. In this way, when the electronic device is in tripod mode, the image displayed in the main preview window can be changed by changing the image range indicated by the first indicator in the auxiliary preview window, without the user having to manually move the electronic device to align it with the desired subject. This allows for rapid focusing, simple operation, and improved efficiency in capturing images or videos.
[0246] The terminal in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.
[0247] The terminal in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0248] The terminal provided in the embodiment of the present application can implement each process implemented in the above-mentioned shooting method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0249] Optionally, as shown in Figure 13, an embodiment of the present application also provides an electronic device 1300, including a processor 1301 and a memory 1302, and the memory 1302 stores a program or instruction that can be run on the processor 1301. When the program or instruction is executed by the processor 1301, the various steps of the above-mentioned shooting method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0250] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0251] FIG14 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0252] The electronic device 1400 includes but is not limited to components such as 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 .
[0253] Those skilled in the art will appreciate that the electronic device 1400 may further include a power source (e.g., a battery) to power various components. The power source may be logically connected to the processor 1410 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG14 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components, or have different component arrangements, which will not be described in detail here.
[0254] Among them, the display unit 1406 is used to display the shooting preview interface of the terminal in the tripod mode. The shooting preview interface includes a main preview window and an auxiliary preview window. The auxiliary preview window is used to display the preview image captured by the terminal's camera. The auxiliary preview window includes a first identifier, and the first identifier indicates the first screen range. The main preview window is used to display the image corresponding to the first screen range; the processor 1410 is used to generate an image or video based on the image corresponding to the first screen range displayed by the display unit 1406.
[0255] In a possible implementation, the user input unit 1407 is configured to receive a first input from the user after the display unit 1406 displays a shooting preview interface of the terminal in the tripod mode;
[0256] The processor 1410 is configured to update the display position of the first marker in the auxiliary preview window and update the image displayed in the main preview window in response to the first input received by the user input unit 1407 .
[0257] In a possible implementation, the first input includes a drag input on the first identifier, or the first input includes a click input on the auxiliary preview window.
[0258] In a possible implementation, the auxiliary preview window includes a second identifier, and the first input includes a click input or a sliding input on the second identifier.
[0259] In one possible implementation, the user input unit 1407 is configured to receive a second input from the user after the display unit 1406 displays a shooting preview interface of the terminal in tripod mode, when the auxiliary preview window and the main preview window display images captured by the first camera.
[0260] The above-mentioned processor 1410 is also used to update the first identifier and the display parameters of the first screen range indicated by the first identifier in response to the second input received by the user input unit 1407; wherein the first identifier and the display parameters of the first screen range are associated with the input parameters of the second input and the maximum anti-shake range of the first camera.
[0261] In one possible implementation, the terminal includes a second camera and a third camera, the field of view of the second camera is greater than or equal to the field of view of the third camera, the auxiliary preview window is used to display the first image, and the first image is obtained by cropping the image captured by the second camera. The main preview window is used to display the second image, and the second image is obtained based on the image captured by the third camera. The field of view corresponding to the first image is the same as the maximum field of view of the third camera.
[0262] In a possible implementation, the shooting preview interface further includes a panoramic preview window, which is used to display an image obtained by stitching at least two frames of images displayed in the main preview window.
[0263] In a possible implementation, the user input unit 1407 is configured to receive a third input from the user after the display unit 1406 displays the shooting preview interface of the terminal in the tripod mode;
[0264] The display unit 1406 is further configured to display a third image in the panoramic preview window in response to a third input received by the user input unit 1407;
[0265] The user input unit 1407 is further configured to receive a fourth input from the user;
[0266] The processor 1410 is configured to update the image corresponding to the first screen range in response to the fourth input received by the user input unit 1407;
[0267] The display unit 1406 is further configured to display a fourth image in the panoramic preview window; wherein the image content of the fourth image includes the image content of the third image, and the screen range corresponding to the fourth image is larger than the screen range corresponding to the third image.
[0268] In one possible implementation, the display unit 1406 is further configured to display an initial preview interface before displaying the shooting preview interface of the terminal in the tripod mode, where the zoom ratio corresponding to the image displayed in the initial preview interface is less than the first threshold;
[0269] The user input unit 1407 is configured to receive a fifth input from the user;
[0270] The display unit 1406 is specifically configured to display a shooting preview interface in response to a fifth input received by the user input unit 1407 when the zoom ratio is greater than or equal to a first threshold.
[0271] An embodiment of the present application provides an electronic device that can determine the image displayed in the main preview window by adjusting the image range indicated by the first indicator in the auxiliary preview window in a shooting preview interface, thereby capturing a desired image or video. Thus, in tripod mode, the electronic device can change the image displayed in the main preview window by changing the image range indicated by the first indicator in the auxiliary preview window, without the user having to manually move the electronic device to align it with the desired subject. This allows for rapid focusing, simple operation, and improved efficiency in capturing images or videos.
[0272] It should be understood that in an embodiment of the present application, the input unit 1404 may include a graphics processing unit (GPU) 14041 and a microphone 14042, and the graphics processor 14041 processes the image data of a static picture or video obtained by an image capture device (such as 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 at least one of 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 controller. Other input devices 14072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.
[0273] The memory 1409 can be used to store software programs and various data. The memory 1409 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1409 may include a volatile memory or a non-volatile memory, or the memory 1409 may include both volatile and non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 1409 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0274] Processor 1410 may include one or more processing units. Optionally, processor 1410 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 1410.
[0275] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned shooting method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0276] 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.
[0277] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned shooting method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0278] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0279] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned shooting method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0280] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0281] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0282] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A shooting method, performed by an electronic device, comprising: Displaying a shooting preview interface of the electronic device in the tripod mode, the shooting preview interface comprising a main preview window and an auxiliary preview window, the auxiliary preview window being used to display a preview image captured by a camera of the electronic device, the auxiliary preview window comprising a first mark indicating a first picture range, and the main preview window being used to display an image corresponding to the first picture range; An image or video is generated based on the image corresponding to the first picture range.
2. The shooting method according to claim 1, wherein: After displaying the shooting preview interface of the electronic device in the tripod mode, the method further includes: receiving a first input from a user; In response to the first input, the display position of the first identifier in the auxiliary preview window is updated, and the image displayed in the main preview window is updated.
3. The shooting method according to claim 2, wherein: The first input includes a drag input on the first identifier, or the first input includes a click input on the auxiliary preview window.
4. The shooting method according to claim 2, wherein: The auxiliary preview window includes a second identifier, and the first input includes a click input or a slide input on the second identifier.
5. The photographing method according to claim 1, wherein: In the case where the auxiliary preview window and the main preview window display images captured by the first camera, after displaying the shooting preview interface of the electronic device in the tripod mode, the method further includes: receiving a second input from the user; In response to the second input, the first identifier and the display parameters of the first picture range indicated by the first identifier are updated; wherein the first identifier and the display parameters of the first picture range are associated with the input parameters of the second input and the maximum anti-shake range of the first camera.
6. The photographing method according to claim 1, wherein: The electronic device includes a second camera and a third camera, the field of view of the second camera is greater than or equal to the field of view of the third camera, the auxiliary preview window is used to display a first image, the first image is obtained by cropping an image captured by the second camera, the main preview window is used to display a second image, the second image is obtained based on the image captured by the third camera, and the field of view corresponding to the first image is the same as the maximum field of view of the third camera.
7. The photographing method according to claim 1, wherein: The shooting preview interface also includes a panoramic preview window, and the panoramic preview window is used to display an image obtained by splicing at least two frames of images displayed in the main preview window.
8. The shooting method according to claim 7, wherein: After displaying the shooting preview interface of the electronic device in the tripod mode, the method further includes: receiving a third input from the user; In response to the third input, displaying a third image in the panoramic preview window; receiving a fourth input from the user; In response to the fourth input, the image corresponding to the first picture range is updated, and a fourth image is displayed in the panoramic preview window; wherein the image content of the fourth image includes the image content of the third image, and the picture range corresponding to the fourth image is larger than the picture range corresponding to the third image.
9. The photographing method according to claim 1, wherein: Before displaying the shooting preview interface of the electronic device in the tripod mode, the method further includes: Displaying an initial preview interface, wherein a zoom ratio corresponding to the image displayed in the initial preview interface is less than a first threshold; receiving a fifth input from the user; The method of displaying a shooting preview interface of the electronic device in the tripod mode includes: In response to the fifth input, when the zoom ratio is greater than or equal to a first threshold, the shooting preview interface is displayed.
10. A terminal, comprising: A display module, used to display a shooting preview interface of the terminal in the tripod mode, wherein the shooting preview interface includes a main preview window and an auxiliary preview window, wherein the auxiliary preview window is used to display a preview image collected by the camera of the terminal, wherein the auxiliary preview window includes a first mark indicating a first picture range, and the main preview window is used to display an image corresponding to the first picture range; A generating module is used to generate an image or a video based on the image corresponding to the first screen range displayed by the display module. The terminal according to claim 10 , wherein: The terminal further includes: A receiving module, configured to receive a first input from a user after the display module displays a shooting preview interface of the terminal in the tripod mode; An updating module is used to update the display position of the first mark in the auxiliary preview window and update the image displayed in the main preview window in response to the first input received by the receiving module.
12. The terminal according to claim 11, wherein: The first input includes a drag input on the first identifier, or the first input includes a click input on the auxiliary preview window.
13. The terminal according to claim 11, wherein: The auxiliary preview window includes a second identifier, and the first input includes a click input or a slide input on the second identifier.
14. The terminal according to claim 10, wherein: The terminal further includes: a receiving module, configured to receive a second input from a user after the display module displays a shooting preview interface of the terminal in the tripod mode, when the auxiliary preview window and the main preview window display images captured by the first camera; The updating module is also used to update the first identifier and the display parameters of the first picture range indicated by the first identifier in response to the second input received by the receiving module; wherein the first identifier and the display parameters of the first picture range are associated with the input parameters of the second input and the maximum anti-shake range of the first camera.
15. The terminal according to claim 10, wherein: The terminal includes a second camera and a third camera, the field of view of the second camera is greater than or equal to the field of view of the third camera, the auxiliary preview window is used to display a first image, the first image is obtained by cropping an image captured by the second camera, the main preview window is used to display a second image, the second image is obtained based on the image captured by the third camera, and the field of view corresponding to the first image is the same as the maximum field of view of the third camera.
16. The terminal according to claim 10, wherein: The shooting preview interface also includes a panoramic preview window, and the panoramic preview window is used to display an image obtained by splicing at least two frames of images displayed in the main preview window.
17. The terminal according to claim 16, wherein: The terminal further includes: a receiving module, configured to receive a third input from a user after the display module displays a shooting preview interface of the terminal in the tripod mode; The display module is further configured to display a third image in the panoramic preview window in response to the third input received by the receiving module; The receiving module is further used to receive a fourth input from the user; an updating module, configured to update an image corresponding to the first picture range in response to the fourth input received by the receiving module; The display module is further used to display a fourth image in the panoramic preview window; wherein the image content of the fourth image includes the image content of the third image, and the screen range corresponding to the fourth image is larger than the screen range corresponding to the third image.
18. The terminal according to claim 10, wherein: The terminal further includes: The display module is further configured to display an initial preview interface before displaying the shooting preview interface of the terminal in the tripod mode, wherein the zoom ratio corresponding to the image displayed in the initial preview interface is less than a first threshold; A receiving module, used for receiving a fifth input from a user; The display module is specifically configured to display the shooting preview interface in response to the fifth input received by the receiving module when the zoom ratio is greater than or equal to a first threshold.
19. An electronic device comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the shooting method according to any one of claims 1 to 9 are implemented.
20. A readable storage medium storing a program or an instruction, wherein the program or the instruction, when executed by a processor, implements the steps of the shooting method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Display control method and device and electronic equipment
CN112702517A
Long-focus shooting method and electronic equipment
CN114157804A
Shooting method and device, electronic equipment and medium
CN115499589A
Shooting method, terminal, electronic equipment and readable storage medium
CN116980759A
Picture preview method and apparatus, and storage medium and electronic device
WO2022100677A1