Field of view angle adjusting method and device, storage medium and electronic equipment
By acquiring the initial field of view and telescopic distance, the field of view of the shooting component is automatically adjusted, solving the problem of screen obstruction caused by manual operation and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
- Filing Date
- 2021-09-02
- Publication Date
- 2026-07-10
AI Technical Summary
When adjusting the field of view of the camera component of an electronic device, existing technology requires the user to manually click or slide the display screen, which can obstruct the display screen.
By acquiring the initial field of view of the shooting component and the extension distance of the retractable display, the field of view of the shooting component is automatically adjusted by electronic devices, avoiding manual operation.
It enables users to adjust the field of view without manually clicking or swiping the screen, avoiding obstructions and improving the user experience.
Smart Images

Figure CN115766917B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic technology, and in particular relates to a method, device, storage medium and electronic device for adjusting the field of view. Background Technology
[0002] Currently, electronic devices such as smartphones and tablets have become necessities in people's lives. For example, they can be used to take photos, record videos, and make video calls. Taking photography as an example, when adjusting the field of view of the camera, users usually need to tap or swipe their fingers on the screen, which can obstruct the display. Summary of the Invention
[0003] This application provides a method, apparatus, storage medium, and electronic device for adjusting the field of view, which can avoid obstructing the display screen.
[0004] In a first aspect, embodiments of this application provide a field-of-view adjustment method applied to an electronic device, the electronic device including a retractable display screen and a shooting component, the field-of-view adjustment method comprising:
[0005] Obtain the initial field of view of the shooting component;
[0006] Obtain the telescopic distance of the telescopic display screen;
[0007] The target field of view is determined based on the initial field of view and the zoom distance;
[0008] The field of view of the shooting component is adjusted from the initial field of view to the target field of view.
[0009] Secondly, embodiments of this application provide a field-of-view adjustment device applied to an electronic device, the electronic device including a retractable display screen and a shooting component, the field-of-view adjustment device including:
[0010] The first acquisition module is used to acquire the initial field of view of the shooting component;
[0011] The second acquisition module is used to acquire the telescopic distance of the telescopic display screen;
[0012] The determination module is used to determine the target field of view based on the initial field of view and the telemetry distance;
[0013] An adjustment module is used to adjust the field of view of the shooting component from the initial field of view to the target field of view.
[0014] Thirdly, embodiments of this application provide a storage medium storing a computer program thereon, which, when executed on a computer, causes the computer to execute the process in the field of view adjustment method provided in embodiments of this application.
[0015] Fourthly, embodiments of this application also provide an electronic device, including a retractable display screen, a shooting component, a memory, and a processor. The processor executes the process in the field of view adjustment method provided in embodiments of this application by calling a computer program stored in the memory.
[0016] In this embodiment, the initial field of view of the shooting component is obtained; the extension distance of the retractable display screen is obtained; the target field of view is determined based on the initial field of view of the shooting component and the extension distance; the field of view of the shooting component is adjusted from the initial field of view to the target field of view, so that the field of view of the shooting component can be adjusted by controlling the extension or contraction of the retractable display screen, without the need to click or slide with a finger on the retractable display screen, thus avoiding obstruction of the display screen. Attached Figure Description
[0017] The technical solution and its beneficial effects will become apparent from the following detailed description of specific embodiments of this application, in conjunction with the accompanying drawings.
[0018] Figure 1 This is a first structural schematic diagram of the electronic device provided in the embodiments of this application.
[0019] Figure 2 This is a schematic diagram of the second structure of the electronic device provided in the embodiments of this application;
[0020] Figure 3 This is a schematic diagram of the third structure of the electronic device provided in the embodiments of this application;
[0021] Figure 4 This is a schematic diagram of the fourth structure of the electronic device provided in the embodiments of this application;
[0022] Figure 5 This is a fifth structural schematic diagram of the electronic device provided in the embodiments of this application;
[0023] Figure 6 This is a schematic diagram of the first process of the field of view adjustment method provided in the embodiments of this application;
[0024] Figure 7 This is a schematic diagram of the first scene of the field of view adjustment method provided in the embodiments of this application;
[0025] Figure 8 This is a schematic diagram of a second scene of the field of view adjustment method provided in the embodiments of this application;
[0026] Figure 9 This is a schematic diagram of the second process of the field of view adjustment method provided in the embodiments of this application;
[0027] Figure 10 This is a schematic diagram of the field of view adjustment device provided in the embodiments of this application;
[0028] Figure 11 This is a sixth structural schematic diagram of the electronic device provided in the embodiments of this application. Detailed Implementation
[0029] Please refer to the illustrations, where the same component symbols represent the same components. The principles of this application are illustrated by example in a suitable computing environment. The following description is based on the specific embodiments of this application illustrated, and should not be construed as limiting other specific embodiments not detailed herein.
[0030] This application provides a field-of-view adjustment method, a field-of-view adjustment device, a storage medium, and an electronic device. The field-of-view adjustment method can be implemented by the electronic device provided in this application, and the field-of-view adjustment device can be implemented in hardware or software.
[0031] It should be noted that the electronic device provided in this application is equipped with a retractable display screen, meaning that the retractable display screen can be extended and retracted. The retractable display screen is made of a flexible material, allowing it to be bent, rolled, and folded, thereby achieving the purpose of retraction. Based on this retractable display screen, the electronic device can increase the visible area of the retractable display screen and improve the display effect by extending it, and can also reduce the visible area of the retractable display screen and reduce power consumption by retracting it.
[0032] For example, please refer to Figures 1 to 3 The electronic device 100 includes a housing assembly 10, a retractable display screen 30, a drive component 50, and a drive mechanism 70. The housing assembly 10 has a hollow structure; the drive component 50, the drive mechanism 70, and the imaging component 90, etc., can all be housed in the housing assembly 10. It is understood that the electronic device 100 of the embodiments of this application includes, but is not limited to, mobile terminals such as mobile phones and tablets, or other portable electronic devices. In this document, a mobile phone is used as an example for description.
[0033] In this embodiment, the housing assembly 10 includes a first housing 12 and a second housing 14, which are capable of relative movement. Specifically, in this embodiment, the first housing 12 and the second housing 14 are slidably connected, that is, the second housing 14 is capable of sliding relative to the first housing 12.
[0034] For details, please refer to Figure 4 and Figure 5 The first housing 12 and the second housing 14 together form an accommodating space 16. The accommodating space 16 can be used to house components such as the drive component 50, the imaging component 90, and the drive mechanism 70. The housing assembly 10 may also include a rear cover 18, which together with the first housing 12 and the second housing 14 forms the accommodating space 16.
[0035] A drive member 50 is disposed on the second housing 14. One end of the retractable display screen 30 is disposed on the first housing 12. The retractable display screen 30 bypasses the drive member 50, and the other end of the retractable display screen is disposed within the receiving space 16, so that part of the retractable display screen 30 is hidden within the receiving space 16. The portion of the retractable display screen 30 hidden within the receiving space 16 can be turned off. The first housing 12 and the second housing 14 are relatively far apart, and the retractable display screen 30 can be unfolded by the drive member 50, so that more of the retractable display screen 30 is exposed outside the receiving space 16. The retractable display screen 30 exposed outside the receiving space 16 is turned on, so that the display area presented by the electronic device 100 is enlarged.
[0036] The drive component 50 can be a rotating shaft structure with teeth 52 on the outside. The retractable display screen 30 is linked with the drive component 50 through meshing or other means. When the first housing 12 and the second housing 14 are relatively far apart, the retractable display screen 30 that is meshed with the drive component 50 is moved and unfolded by the drive component 50.
[0037] It is understood that the driving member 50 can also be a round shaft without teeth 52. When the first housing 12 and the second housing 14 are relatively far apart, the driving member 50 expands a portion of the retractable display screen 30 wound around it, so that more of the retractable display screen 30 is exposed outside the accommodating space 16 and is in a flat state. Specifically, the driving member 50 is rotatably disposed on the second housing 14, and can rotate with the movement of the retractable display screen 30 as it is gradually expanded. In other embodiments, the driving member 50 can also be fixed to the second housing 14, and the driving member 50 has a smooth surface. When the retractable display screen 30 is expanded, the driving member 50 can slide in contact with the retractable display screen 30 through its smooth surface.
[0038] When the first housing 12 and the second housing 14 are close to each other, the retractable display screen can be retracted by the drive member 50. Alternatively, the electronic device 100 also includes a reset member (not shown), which is linked to one end of the retractable display screen housed in the receiving space 16. When the first housing 12 and the second housing 14 are close to each other, the reset member drives the retractable display screen 30 to reset, thereby causing part of the retractable display screen 30 to retract into the receiving space 16.
[0039] In this embodiment, the drive mechanism 70 can be disposed within the accommodating space 16. The drive mechanism 70 can be linked with the second housing 14. The drive mechanism 70 is used to drive the second housing 14 to move away from the first housing 12, thereby causing the retractable display screen assembly 30 to extend. It can be understood that the drive mechanism 70 can also be omitted, and the user can directly make the first housing and the second housing move relative to each other by manual means.
[0040] Based on the electronic device provided above, this application further provides a method for adjusting the field of view of the electronic device.
[0041] like Figure 6 As shown, Figure 6 This is a first flowchart illustrating the field-of-view adjustment method provided in this application embodiment. The process may include:
[0042] 101. Obtain the initial field of view of the shooting component.
[0043] As described above, the electronic device used in the field-of-view adjustment method provided in this application includes a retractable display screen and a shooting component.
[0044] The retractable display screen can extend or retract. The imaging component is configured to capture images and includes at least a lens and an image sensor. The lens projects external light signals to the image sensor, which then performs photoelectric conversion on the projected light signals, converting them into usable electrical signals to obtain a digitized image. Once enabled, the imaging component can capture images of the scene in real time with a corresponding field of view. A larger field of view results in a wider framing, while a smaller field of view results in a smaller framing. The shooting scene can be understood as the real-world area that the imaging component is pointed at after being enabled—the area where the imaging component can convert light signals into corresponding images. For example, after the electronic device enables the imaging component based on user operation, if the user controls the imaging component to point at an area, that area becomes the shooting scene. Furthermore, the retractable display screen is configured to preview the images captured by the imaging component.
[0045] In this embodiment, when the user launches a shooting application such as "camera", the electronic device enters shooting mode and can obtain the initial field of view of the shooting component.
[0046] It should be noted that in this embodiment, the field of view of the shooting component is positively correlated with the extension degree of the retractable display screen. Specifically, the field of view of the shooting component is smallest when the retractable display screen is fully retracted, and increases with the extension of the retractable display screen, reaching its maximum when the retractable display screen is fully extended. Therefore, when the electronic device enters shooting mode, it can obtain the current extension degree of the retractable display screen and then determine the initial field of view of the shooting component based on this current extension degree. Subsequently, the electronic device can adjust the field of view of the shooting component to this initial field of view. The electronic device can then acquire images of the shooting scene using the shooting component adjusted to this initial field of view to obtain a preview image. After obtaining the preview image, the electronic device can display the preview image on the retractable display screen. The electronic device can also obtain this initial field of view for subsequent processing.
[0047] For example, assuming the field of view of a fully retractable display is 20 degrees, then for every 1 millimeter it extends (less than 1 millimeter is counted as 1 millimeter), the field of view increases by 10 degrees. The maximum extension of the retractable display is 12 millimeters, meaning the field of view corresponding to its full extension is 140 degrees. If, when the electronic device enters shooting mode, the retractable display extends by 2 millimeters, the electronic device can determine the initial field of view as 40 degrees.
[0048] 102. Obtain the telescopic distance of the scalable display screen.
[0049] The telescopic distance refers to the distance the telescopic display screen increases or decreases in the corresponding telescopic direction when it extends or retracts. For example, when the telescopic display screen extends from position A1 to position A2, the telescopic distance is the distance between positions A1 and A2. Similarly, when the telescopic display screen retracts from position A3 to position A4, the telescopic distance is the distance between positions A3 and A4.
[0050] For example, when a user wants to adjust the field of view of the shooting component, the user can manually control the retractable display to extend or retract, so that the electronic device can obtain the extension distance of the retractable display.
[0051] For example, a user can speak a specific voice command, and the electronic device can control the retractable display to extend or retract based on that command, thus allowing the electronic device to determine the retractable distance of the display. For instance, the voice command could be "position the computer closer to the center of the preview image." When the computer is positioned closer to the left or right side of the preview image, the electronic device can control the retractable display to extend or retract, thereby determining the retractable distance of the display.
[0052] For example, electronic devices can automatically control the extension or retraction of a retractable display screen based on a moving object, thereby allowing the electronic device to obtain the extension distance of the retractable display screen. For instance, when there is a moving object in the shooting scene, and the direction of movement of the moving object is the same as the extension direction of the retractable display screen, the electronic device can control the retractable display screen to extend. When there is a moving object in the shooting scene, and the direction of movement of the moving object is the same as the retraction direction of the retractable display screen, the electronic device can control the retractable display screen to retract.
[0053] 103. Determine the target field of view based on the initial field of view and the zoom distance.
[0054] For example, when the initial field of view of the shooting component and the telescopic distance of the retractable display are obtained, the electronic device can determine the target field of view based on the initial field of view and the telescopic distance.
[0055] 104. Adjust the field of view of the shooting component from the initial field of view to the target field of view.
[0056] For example, once the target field of view is determined, the electronic device can adjust the field of view of the shooting component from the initial field of view to the target field of view.
[0057] For example, assuming the initial field of view is 20 degrees and the target field of view is 120 degrees, the electronic device can increase the field of view of the shooting component from 20 degrees to 120 degrees.
[0058] For example, assuming the initial field of view is 50 degrees and the target field of view is 20 degrees, the electronic device can reduce the field of view of the shooting component from 50 degrees to 20 degrees.
[0059] In this embodiment, the initial field of view of the shooting component is obtained; the extension distance of the retractable display screen is obtained; the target field of view is determined based on the initial field of view of the shooting component and the extension distance; the field of view of the shooting component is adjusted from the initial field of view to the target field of view, so that the field of view of the shooting component can be adjusted by controlling the extension or contraction of the retractable display screen, without the need to click or slide with a finger on the retractable display screen, thus avoiding obstruction of the display screen.
[0060] In some embodiments, adjusting the field of view of the shooting component from an initial field of view to a target field of view may include:
[0061] When the telescopic distance is the extension distance, the field of view of the shooting component is increased from the initial field of view to the target field of view;
[0062] When the telescopic distance is the same as the retraction distance, the field of view of the shooting component is reduced from the initial field of view to the target field of view.
[0063] The telescopic distance can include the extension distance and the retraction distance. When the telescopic display extends from position A1 to position A2, the distance between position A1 and position A2 is the extension distance. When the telescopic display retracts from position A3 to position A4, the distance between position A3 and position A4 is the retraction distance.
[0064] Understandably, the field of view of the shooting component increases as the retractable display extends and decreases as it retracts. Therefore, when the extension distance is the same as the extension distance, the target field of view determined by the electronic device is larger than the initial field of view. Consequently, when the extension distance is the same as the extension distance, the electronic device needs to increase the field of view of the shooting component from the initial field of view to the target field of view. Conversely, when the extension distance is the same as the retraction distance, the target field of view determined by the electronic device is smaller than the initial field of view. Therefore, when the extension distance is the same as the retraction distance, the electronic device needs to reduce the field of view of the shooting component from the initial field of view to the target field of view.
[0065] In some embodiments, determining the target field of view based on the initial field of view and the telemetry distance may include:
[0066] (1) Determine the adjustment field of view based on the aforementioned telescopic distance;
[0067] (2) Determine the target field of view based on the initial field of view and the adjusted field of view.
[0068] For example, a preset mapping relationship between distance and adjusted field of view can be set. When the telescopic distance is the extended distance, the electronic device can determine the adjusted field of view based on the telescopic distance. Then, the sum of the initial field of view and the adjusted field of view of the shooting component is calculated to obtain the target field of view. When the telescopic distance is the retracted distance, the electronic device can determine the adjusted field of view based on the telescopic distance. Then, the difference between the initial field of view and the adjusted field of view of the shooting component is calculated to obtain the target field of view.
[0069] For example, assuming the preset mapping relationship between distance and field of view adjustment includes: 1 mm corresponds to 10 degrees, 2 mm corresponds to 20 degrees, and 3 mm corresponds to 30 degrees, when the extension distance is 1 mm (greater than 0 and less than or equal to 1 mm are all counted as 1 mm) and the initial field of view is 40 degrees, the target field of view can be determined to be 50 degrees. When the retraction distance is 2 mm (greater than 1 mm and less than or equal to 2 mm are all counted as 2 mm) and the initial field of view is 50 degrees, the target field of view can be determined to be 30 degrees.
[0070] In some embodiments, after adjusting the field of view of the shooting component from the initial field of view to the target field of view, the method may further include:
[0071] (1) The shooting component is adjusted to the target field of view to acquire images of the shooting scene and obtain a preview image;
[0072] (2) Display the preview image on the retractable display screen.
[0073] For example, after adjusting the field of view of the shooting component from the initial field of view to the target field of view, the electronic device can acquire images of the shooting scene through the shooting component adjusted to the target field of view, and obtain a preview image. After obtaining the preview image, the electronic device can display the preview image on a retractable display screen, so that the user can determine whether the field of view of the shooting component is appropriate through the preview image.
[0074] For example, such as Figure 7 As shown, assuming the retractable display screen of an electronic device is in state A1, and the retractable display screen retracts from state A1 to state A2, the electronic device can obtain the field of view of the shooting component when the retractable display screen is in state A1, thus obtaining the initial field of view. Then, the electronic device can obtain the retraction distance of the retractable display screen from state A1 to state A2. Next, the electronic device can determine the adjustment field of view based on this retraction distance. Subsequently, the electronic device can calculate the difference between the initial field of view and the adjustment field of view to obtain the target field of view. Next, the electronic device can reduce the field of view of the shooting component from the initial field of view to the target field of view. Then, the electronic device can acquire images of the shooting scene through the shooting component enlarged to the target field of view, thus obtaining a preview image. Finally, the electronic device can display the preview image on the retractable display screen. As can be seen from the figure, the field of view of the preview image displayed on the retractable display screen in state A1 is larger than that displayed on the retractable display screen in state A2. This is because after the retractable display screen shrinks from state A1 to state A2, the field of view becomes smaller, thus reducing the field of view. In other words, the field of view can be reduced by controlling the shrinking of the display screen.
[0075] For example, please continue reading Figure 7Assuming an electronic device with a retractable display screen in state A1 extends its retractable display screen to state A3, the electronic device can acquire the field of view of the shooting component when the retractable display screen is in state A1, obtaining the initial field of view. Then, the electronic device can acquire the extension distance of the retractable display screen from state A1 to state A3. Next, the electronic device can determine the adjustment field of view based on this extension distance. Subsequently, the electronic device can calculate the sum of the initial field of view and the adjustment field of view to obtain the target field of view. Next, the electronic device can increase the field of view of the shooting component from the initial field of view to the target field of view. Then, the electronic device can acquire images of the shooting scene through the shooting component with the increased field of view to the target field of view, obtaining a preview image. Finally, the electronic device can display the preview image on the retractable display screen. As can be seen from the figure, the field of view of the preview image displayed on the retractable display screen in state A1 is smaller than that of the preview image displayed on the retractable display screen in state A3. This is because after the retractable display screen is extended from state A1 to state A3, the field of view increases, thus increasing the field of view. In other words, the field of view can be increased by controlling the extension of the display screen.
[0076] In some embodiments, before obtaining the telescopic distance of the scalable display, the following may also be included:
[0077] (1) Determine the target object in the shooting scene of the shooting component;
[0078] (2) Obtain motion data of the target object;
[0079] (3) Control the display screen to extend or retract based on motion data.
[0080] In this embodiment, the electronic device first determines the target object from the shooting scene of the shooting component according to the configured object determination strategy. The configuration of this object determination strategy is not specifically limited here and can be configured by those skilled in the art according to actual needs.
[0081] It is understandable that a shooting scene may contain various objects, such as people, animals, plants, and buildings. When faced with such a scene, users typically cannot focus on all objects but only on those that interest them. For example, when taking portrait photos, users usually focus on the people in the scene. Therefore, an object identification strategy can be configured as follows: identify objects in the shooting scene that the user is interested in and designate those objects as target objects. There are no specific restrictions on how to identify objects of interest; those skilled in the art can configure appropriate identification methods according to actual needs. For example, the captured image of the shooting scene can be input into a pre-trained salient region detection model to identify salient regions of the scene, and the objects within those salient regions can be designated as target objects.
[0082] As described above, after identifying the target object, the electronic device further acquires the motion data of the target object. This motion data describes how the target object moves, including but not limited to at least one of motion direction and motion speed. No specific limitations are placed here on how to acquire the motion data of the target object; it can be configured by those skilled in the art according to actual needs. For example, the electronic device can analyze and calculate the motion of the target object based on the positional difference between two adjacent frames captured by the imaging component.
[0083] In this embodiment, the electronic device controls the retractable display screen to extend or retract based on the motion data of the target object, thereby driving the imaging component to track the target object. For example, please refer to... Figure 8 Assuming the target object is the person shown in the image, when the motion data of the person shown in the image determines that the person is moving to the right, the electronic device controls the retractable display screen to extend, thereby increasing the field of view of the shooting component so that the shooting component can capture the person shown in the image; when the motion data of the person shown in the image determines that the person is moving to the left, the electronic device controls the retractable display screen to retract, thereby decreasing the field of view of the shooting component, so as to reduce the processing load of the processor while ensuring that the shooting component can capture the person shown in the image.
[0084] In some embodiments, the motion data includes the direction and speed of motion of the target object, and controlling the extension or retraction of the display screen based on the motion data may include:
[0085] (1) Determine the target speed for the stretchable display screen to extend or retract based on the movement speed;
[0086] (2) Control the retractable display screen to extend or retract according to the direction of movement and the target speed.
[0087] In this embodiment, the retractable display screen is controlled to extend or retract according to the direction of movement of the target object, and the speed of extension or retraction of the retractable display screen is controlled according to the speed of movement of the target object.
[0088] It should be noted that the direction in which the electronic device extends or retracts its retractable display screen varies depending on how the user holds the electronic device. In this embodiment, when the direction of movement of the target object matches the current direction of extending the retractable display screen, it is determined that the screen needs to be extended; conversely, when the direction of movement of the target object matches the direction of the current direction of retracting the screen and changing the position of the shooting component, it is determined that the screen needs to be retracted.
[0089] Furthermore, based on a preset correspondence between the movement speed of the target object and the extension / retraction speed of the retractable display screen, the electronic device determines the extension / retraction speed corresponding to the movement speed of the target object as the target speed for the retractable display screen to extend or retract. Accordingly, the electronic device controls the retractable display screen to extend or retract according to the determined target speed based on the movement direction of the target object.
[0090] In some embodiments, determining the target object in the shooting scene of the shooting component may include:
[0091] In response to the input object specification instruction, the object specified in the object specification instruction in the shooting scene is identified as the target object.
[0092] In this embodiment, the electronic device passively determines the target object in the shooting scene. The electronic device can preview the scene image captured by the shooting component in real time through a retractable display screen, and receive object-specific instructions for the shooting scene through the retractable display screen as well.
[0093] For example, an electronic device can preview a scene image captured by a camera component on a retractable display screen. The scene being captured is a street, including the street itself, multiple vehicles on the street (including black and blue cars), and roadside trees. If a user wants the electronic device to photograph the object "black car" in the scene, they can simply say "black car," thus inputting a target designation command. This command instructs the electronic device to select the "black car" as the target object. In response to this command, the electronic device identifies the "black car" as the target object within the scene specified by the command.
[0094] In an optional embodiment, determining the target object in the shooting scene of the shooting component may include:
[0095] (1) Obtain the current user's gaze area on the scalable display screen;
[0096] (2) Identify the objects in the shooting scene that correspond to the area of focus as the target objects.
[0097] In this embodiment, the electronic device automatically identifies the target object in the shooting scene.
[0098] It should be noted that when faced with any scene, users usually subconsciously look at the objects in the scene that interest them. Therefore, in this embodiment, the user's gaze area is used to determine the target objects in the shooting scene.
[0099] The electronic device first obtains the area of the user's gaze on the scalable display screen.
[0100] For example, an electronic device can track the current user's gaze point according to a pre-configured eye-tracking method, and then use this gaze point to determine the current user's gaze area on the scalable display screen. It should be noted that eye tracking refers to the subtle changes that occur in the eyes when they look in different directions. These changes produce extractable features, which the electronic device extracts through image capture or scanning, thereby tracking the changes in the eyes in real time to obtain the gaze point. No specific limitation is placed on the eye-tracking method used here; it can be selected by those skilled in the art according to actual needs. After tracking the current user's gaze point, this gaze point is used as the geometric center to determine a region of a preset shape as the current user's gaze area.
[0101] As shown above, after obtaining the current user's gaze area on the scalable display screen, the electronic device further identifies the objects in the corresponding gaze area in the shooting scene as the target objects.
[0102] In an optional embodiment, obtaining the current user's gaze area on the scalable display screen may include:
[0103] (1) Obtain the current user's gaze point on the scalable display screen;
[0104] (2) Obtain the current user's gaze radius;
[0105] (3) Using the gaze point as the origin, generate the circular gaze area of the current user on the scalable display screen based on the gaze radius.
[0106] In this embodiment, the electronic device tracks the current user's gaze point according to a pre-configured eye-tracking method, thereby obtaining the current user's gaze point on the scalable display screen. No specific limitation is placed on the eye-tracking method used; it can be selected by those skilled in the art based on actual needs.
[0107] It should be noted that different users have different ranges of clear perception when gazing. In this embodiment, the gaze radius is used to characterize the range that a user can clearly perceive when gazing. Based on this, for each authorized user of the electronic device (e.g., the owner of the electronic device, or other users authorized by the owner to use the electronic device), a corresponding gaze radius is pre-calibrated in this embodiment, and this gaze radius is used to describe the range that the user can clearly perceive when gazing. The calibration method for the gaze radius is not specifically limited here, and a suitable calibration method can be selected by those skilled in the art according to actual needs. Correspondingly, in addition to obtaining the current user's gaze point, the electronic device also obtains the current user's gaze radius. For example, the electronic device can first identify the current user to obtain the current user's identity information, and then obtain the current user's gaze radius based on the current user's identity information.
[0108] For example, electronic devices pre-collect facial information of authorized users (including the device owner and other users authorized by the owner to use the electronic device), and store the collected facial information in a facial database after associating it with the corresponding authorized user's identity information. When determining the current user's gaze radius, the electronic device first captures an image using its front-facing camera. Then, it performs facial recognition on the captured image to obtain the facial information. Next, it matches the recognized facial information with facial information in the facial database. If a match is successful, the identity information associated with the matched facial information in the database is used as the current user's identity information. Finally, the gaze radius corresponding to the current user can be found based on their identity information.
[0109] After identifying the current user's gaze point and obtaining its gaze radius, the electronic device generates a circular area based on the aforementioned gaze point as the origin and the aforementioned gaze radius, which serves as the current user's gaze area.
[0110] In an optional embodiment, determining the object corresponding to the gaze area in the shooting scene as the target object may include:
[0111] The object with the largest overlap between the imaging area and the circular gaze area in the shooting scene is identified as the target object.
[0112] In this embodiment, the electronic device calculates the overlap area of objects in the shooting scene that overlap with the current user's circular gaze area, and determines the object with the largest overlap area between the imaging area and the circular gaze area as the target object.
[0113] Please see Figure 9 , Figure 9 This is a schematic diagram of the second process of the field of view adjustment method provided in the embodiments of this application. The process may include:
[0114] 201. Obtain the initial field of view of the shooting component.
[0115] 202. Obtain the telescopic distance of the scalable display screen.
[0116] 203. Determine the adjustment field of view based on the telescopic distance.
[0117] 204. Determine the target field of view based on the initial field of view and the adjusted field of view.
[0118] 205. Adjust the field of view of the shooting component from the initial field of view to the target field of view.
[0119] 206. The shooting component, adjusted to the target field of view, acquires images of the shooting scene to obtain a preview image.
[0120] 207. Display the preview image on a scalable display screen.
[0121] The specific implementation of steps 201 to 207 can be found in the previous embodiments, and will not be repeated here.
[0122] In one embodiment, a field-of-view adjustment device is also provided, which is applied to an electronic device including a retractable display screen and a camera assembly. See also... Figure 10 , Figure 10 This is a schematic diagram of the field of view adjustment device provided in an embodiment of this application. The field of view adjustment device 300 includes: a first acquisition module 301, a second acquisition module 302, a determination module 303, and an adjustment module 304.
[0123] The first acquisition module 301 is used to acquire the initial field of view of the shooting component.
[0124] The second acquisition module 302 is used to acquire the telescopic distance of the telescopic display screen.
[0125] The determining module 303 is used to determine the target field of view based on the initial field of view and the telescopic distance.
[0126] The adjustment module 304 is used to adjust the field of view of the shooting component from the initial field of view to the target field of view.
[0127] In some embodiments, the adjustment module 304 can be used to: increase the field of view of the shooting component from the initial field of view to the target field of view when the telescopic distance is an extension distance; and reduce the field of view of the shooting component from the initial field of view to the target field of view when the telescopic distance is a retraction distance.
[0128] In some embodiments, the determining module 303 may be used to: determine the adjusted field of view based on the telescopic distance; and determine the target field of view based on the initial field of view and the adjusted field of view.
[0129] In some embodiments, the field of view adjustment device 300 may further include a display module, which may be used to: acquire an image of the shooting scene by means of a shooting component adjusted to the target field of view, and obtain a preview image; and display the preview image on the retractable display screen.
[0130] In some embodiments, the field of view adjustment device 300 may further include a control module, which may be used to: determine a target object in the shooting scene of the shooting component; acquire motion data of the target object; and control the display screen to extend or retract according to the motion data.
[0131] In some embodiments, the control module may be used to: obtain the current user's gaze area on the scalable display screen; and determine the object in the shooting scene corresponding to the gaze area as the target object.
[0132] In some embodiments, the control module may be used to: obtain the current user's gaze point on the scalable display screen; obtain the current user's gaze radius; and generate a circular gaze area of the current user on the scalable display screen with the gaze point as the origin and the gaze radius as the origin.
[0133] This application provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed on a computer, it causes the computer to perform the process in the field-of-view adjustment method provided in this embodiment.
[0134] This application also provides an electronic device, including a retractable display screen, a memory, and a processor. The processor executes the process in the field of view adjustment method provided in this embodiment by calling a computer program stored in the memory.
[0135] In an alternative embodiment, please refer to Figure 11 The electronic device 100 includes a housing assembly 10, a processor 20, a retractable display screen 30, a memory 40, a drive component 50, a drive mechanism 70, and a camera assembly 90.
[0136] The processor 20 in this embodiment is a general-purpose processor, such as an ARM architecture processor.
[0137] The memory 40 stores a computer program and can be a high-speed random access memory or a non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 40 may also include a memory controller to provide the processor 20 with access to the computer program in the memory 40, enabling the following functions:
[0138] Obtain the initial field of view of the shooting component;
[0139] Obtain the telescopic distance of the telescopic display screen;
[0140] The target field of view is determined based on the initial field of view and the zoom distance;
[0141] The field of view of the shooting component is adjusted from the initial field of view to the target field of view.
[0142] In some embodiments, when the processor 20 performs the action of adjusting the field of view of the shooting component from the initial field of view to the target field of view, it may perform the following actions: when the telescopic distance is an extension distance, increasing the field of view of the shooting component from the initial field of view to the target field of view; and when the telescopic distance is a retraction distance, reducing the field of view of the shooting component from the initial field of view to the target field of view.
[0143] In some embodiments, when the processor 20 executes the step of determining the target field of view based on the initial field of view and the telescopic distance, it may perform the following: determining the adjusted field of view based on the telescopic distance; and determining the target field of view based on the initial field of view and the adjusted field of view.
[0144] In some embodiments, after the processor 20 performs the step of adjusting the field of view of the shooting component from the initial field of view to the target field of view, it may also perform the following: acquire an image of the shooting scene by using the shooting component adjusted to the target field of view to obtain a preview image; and display the preview image on the retractable display screen.
[0145] In some embodiments, before the processor 20 performs the step of acquiring the telescopic distance of the telescopic display, it may also perform the following: determining a target object in the shooting scene of the shooting component; acquiring motion data of the target object; and controlling the display to extend or retract based on the motion data.
[0146] In some embodiments, when the processor 20 executes the step of determining the target object in the shooting scene of the shooting component, it may perform the following: obtaining the current user's gaze area on the scalable display screen; and determining the object in the shooting scene corresponding to the gaze area as the target object.
[0147] In some embodiments, when the processor 20 executes the step of obtaining the current user's gaze area on the scalable display screen, it may perform the following: obtaining the current user's gaze point on the scalable display screen; obtaining the current user's gaze radius; and generating a circular gaze area of the current user on the scalable display screen based on the gaze point as the origin and the gaze radius.
[0148] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed description of the field of view adjustment method above, which will not be repeated here.
[0149] The field of view adjustment device provided in this application embodiment belongs to the same concept as the field of view adjustment method in the above embodiment. Any of the methods provided in the field of view adjustment method embodiment can be run on the field of view adjustment device. For details of its implementation process, please refer to the field of view adjustment method embodiment, which will not be repeated here.
[0150] It should be noted that, regarding the field-of-view adjustment method described in the embodiments of this application, those skilled in the art will understand that all or part of the process of the field-of-view adjustment method described in the embodiments of this application can be implemented by a computer program controlling related hardware. The computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor. During execution, it can include the process of the embodiments of the field-of-view adjustment method. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), etc.
[0151] For the field-of-view adjustment device described in this application embodiment, its functional modules can be integrated into a single processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0152] The foregoing has provided a detailed description of a field-of-view adjustment method, apparatus, storage medium, and electronic device provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for adjusting the field of view, applied to electronic devices, characterized in that, The electronic device includes a retractable display screen and a camera assembly, and the field of view adjustment method includes: Obtain the initial field of view of the shooting component; Identify the target object in the shooting scene of the shooting component; Acquire motion data of the target object, the motion data including the target object's motion direction and motion speed; Based on the motion data, the display screen is controlled to extend or retract. The target speed for extending or retracting the retractable display screen is determined based on the motion speed. The retractable display screen is controlled to extend or retract according to the target speed based on the motion direction. When the motion direction of the target object matches the current direction of extending the retractable display screen, it is determined that the retractable display screen needs to be extended. Conversely, when the motion direction of the target object matches the current direction of retracting the retractable display screen, it is determined that the retractable display screen needs to be retracted. Obtain the telescopic distance of the telescopic display screen; The target field of view is determined based on the initial field of view and the zoom distance; The field of view of the shooting component is adjusted from the initial field of view to the target field of view.
2. The field of view adjustment method according to claim 1, characterized in that, Adjusting the field of view of the shooting component from the initial field of view to the target field of view includes: When the telescopic distance is the extension distance, the field of view of the shooting component is increased from the initial field of view to the target field of view; When the telescopic distance is the contraction distance, the field of view of the shooting component is reduced from the initial field of view to the target field of view.
3. The field of view adjustment method according to claim 1, characterized in that, Determining the target field of view based on the initial field of view and the zoom distance includes: Based on the aforementioned telescopic distance, determine the adjustment of the field of view angle; The target field of view is determined based on the initial field of view and the adjusted field of view.
4. The field of view adjustment method according to claim 1, characterized in that, After adjusting the field of view of the shooting component from the initial field of view to the target field of view, the method further includes: By adjusting the shooting component to the target field of view, images of the shooting scene are acquired to obtain a preview image; The preview image is displayed on the retractable display screen.
5. The field-of-view adjustment method according to claim 4, characterized in that, Determining the target object in the shooting scene of the shooting component includes: Obtain the current user's gaze area on the scalable display screen; The object in the shooting scene corresponding to the gaze area is identified as the target object.
6. The field of view adjustment method according to claim 5, characterized in that, The step of obtaining the current user's gaze area on the scalable display screen includes: Obtain the current user's gaze point on the scalable display screen; Obtain the gaze radius of the current user; Using the gaze point as the origin, a circular gaze area of the current user on the scalable display screen is generated based on the gaze radius.
7. A field-of-view adjustment device, applied to electronic equipment, characterized in that, The electronic device includes a retractable display screen and a camera assembly, and the field-of-view adjustment device includes: The first acquisition module is used to acquire the initial field of view of the shooting component; A control module is used to determine a target object in the shooting scene of the shooting component; acquire motion data of the target object, the motion data including the motion direction and motion speed of the target object; and control the display screen to extend or retract according to the motion data, wherein, based on the motion speed, a target speed for extending or retracting the retractable display screen is determined, and based on the motion direction, the retractable display screen is controlled to extend or retract according to the target speed. When the motion direction of the target object matches the current direction of extending the retractable display screen, it is determined that the retractable display screen needs to be extended; and when the motion direction of the target object matches the current direction of retracting the retractable display screen, it is determined that the retractable display screen needs to be retracted. The second acquisition module is used to acquire the telescopic distance of the telescopic display screen; The determination module is used to determine the target field of view based on the initial field of view and the telemetry distance; An adjustment module is used to adjust the field of view of the shooting component from the initial field of view to the target field of view.
8. A storage medium, characterized in that, The storage medium stores a computer program that, when run on a computer, causes the computer to perform the field-of-view adjustment method according to any one of claims 1 to 6.
9. An electronic device, characterized in that, The electronic device includes a retractable display screen, a camera assembly, a processor, and a memory. The memory stores a computer program, and the processor executes the field-of-view adjustment method according to any one of claims 1 to 6 by calling the computer program stored in the memory.