CN115766917A - Method and device for adjusting field angle, storage medium and electronic equipment - Google Patents
Method and device for adjusting field angle, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN115766917A CN115766917A CN202111027686.XA CN202111027686A CN115766917A CN 115766917 A CN115766917 A CN 115766917A CN 202111027686 A CN202111027686 A CN 202111027686A CN 115766917 A CN115766917 A CN 115766917A
- Authority
- CN
- China
- Prior art keywords
- field angle
- angle
- display screen
- telescopic
- shooting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Studio Devices (AREA)
Abstract
The application discloses a method and a device for adjusting a field angle, a storage medium and an electronic device. The method for adjusting the field angle is applied to the electronic equipment, the electronic equipment comprises a telescopic display screen and a shooting component, and the method for adjusting the field angle comprises the following steps: acquiring an initial field angle of the shooting assembly; acquiring the telescopic distance of the telescopic display screen; determining a target field angle according to the initial field angle and the telescopic distance; adjusting the field angle of the capture assembly from the initial field angle to the target field angle. The application can avoid shielding the display screen.
Description
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method and an apparatus for adjusting a field angle, a storage medium, and an electronic device.
Background
At present, electronic devices such as smart phones and tablet computers become necessary for life of people, and for example, photographing, video recording, video call and the like can be performed through the electronic devices. In the related art, taking a photo as an example, when the field angle of the shooting component needs to be adjusted, a user usually needs to click or slide on the display screen with a finger, so that the display screen is blocked.
Disclosure of Invention
The embodiment of the application provides a method and a device for adjusting a field angle, a storage medium and an electronic device, which can avoid shielding a display screen.
In a first aspect, an embodiment of the present application provides a method for adjusting a field angle, which is applied to an electronic device, where the electronic device includes a retractable display screen and a shooting component, and the method includes:
acquiring an initial field angle of the shooting assembly;
acquiring the telescopic distance of the telescopic display screen;
determining a target field angle according to the initial field angle and the telescopic distance;
adjusting a field angle of the capture assembly from the initial field angle to the target field angle.
In a second aspect, an embodiment of the present application provides a viewing angle adjusting apparatus applied to an electronic device, where the electronic device includes a retractable display screen and a shooting component, and the viewing angle adjusting apparatus includes:
the first acquisition module is used for acquiring an initial field angle of the shooting assembly;
the second acquisition module is used for acquiring the telescopic distance of the telescopic display screen;
the determining module is used for determining a target field angle according to the initial field angle and the telescopic distance;
and the adjusting module is used for adjusting the field angle of the shooting component from the initial field angle to the target field angle.
In a third aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, which, when executed on a computer, causes the computer to execute a flow in a viewing angle adjusting method provided by an embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a scalable display screen, a shooting component, a memory, and a processor, where the processor is configured to execute the flow in the viewing angle adjusting method provided in the embodiment of the present application by calling a computer program stored in the memory.
In the embodiment of the application, the initial field angle of the shooting assembly is obtained; acquiring the telescopic distance of the telescopic display screen; determining a target field angle according to the initial field angle and the telescopic distance of the shooting assembly; the field angle of the shooting assembly is adjusted from the initial field angle to the target field angle, so that the field angle of the shooting assembly can be adjusted by controlling the extension or contraction of the telescopic display screen, the telescopic display screen does not need to be clicked or slid by fingers, and the shielding of the display screen can be avoided.
Drawings
The technical solutions and advantages of the present application will be apparent from the following detailed description of specific embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a first structural schematic diagram of an electronic device provided in an embodiment of the present application; .
Fig. 2 is a second schematic structural diagram of an electronic device provided in an embodiment of the present application;
FIG. 3 is a third structural diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a fourth schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 5 is a fifth structural schematic diagram of an electronic device provided in an embodiment of the present application;
fig. 6 is a first flowchart of a method for adjusting an angle of view according to an embodiment of the present disclosure;
fig. 7 is a first schematic view of a field angle adjustment method according to an embodiment of the present application;
fig. 8 is a second schematic view of a field angle adjustment method according to an embodiment of the present application;
fig. 9 is a second flowchart of a viewing angle adjusting method according to an embodiment of the present application;
fig. 10 is a schematic structural view of a viewing angle adjusting device according to an embodiment of the present application;
fig. 11 is a sixth structural schematic diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
The embodiment of the application provides a visual angle adjusting method, a visual angle adjusting device, a storage medium and an electronic device. The execution main body of the viewing angle adjusting method may be the electronic device provided in the embodiment of the present application, and the viewing angle adjusting apparatus may be implemented in a hardware or software manner.
It should be noted that the electronic device provided by the present application is configured with a retractable display screen, i.e. the retractable display screen can be extended or retracted. Wherein, this scalable display screen adopts flexible material for it can be crooked, curl and folding etc. thereby realizes the telescopic purpose. Based on this scalable display screen, electronic equipment can increase the visual area of scalable display screen through extending scalable display screen, promotes the display effect, can also contract scalable display screen and reduce the visual area of scalable display screen, reduces the consumption.
Referring to fig. 1 to 3, an electronic device 100 includes a housing assembly 10, a retractable display 30, a driver 50, and a driving mechanism 70. The shell assembly 10 is a hollow structure; the components of the driver 50, the driving mechanism 70, and the camera assembly 90 may be disposed in the housing assembly 10. It is understood that the electronic device 100 of the embodiment of the present application includes, but is not limited to, a mobile terminal such as a mobile phone, a tablet, or other portable electronic devices, and herein, the electronic device 100 is taken as a mobile phone as an example for description.
In the present embodiment, the housing assembly 10 includes a first housing 12 and a second housing 14, and the first housing 12 and the second housing 14 are relatively movable. Specifically, in the present embodiment, the first housing 12 and the second housing 14 are slidably connected, that is, the second housing 14 is slidable with respect to the first housing 12.
Specifically, referring to fig. 4 and 5, the first casing 12 and the second casing 14 together form an accommodating space 16. The accommodating space 16 can be used for accommodating the driving member 50, the photographing assembly 90, the driving mechanism 70, and other components. The housing assembly 10 may further include a rear cover 18, and the rear cover 18 and the first and second housings 12 and 14 together form an accommodating space 16.
The driving element 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 driving element 50, and the other end of the retractable display screen is disposed in the accommodating space 16, so that a part of the retractable display screen is hidden in the accommodating space 16, and a part of the retractable display screen 30 hidden in the accommodating space 16 may not be lighted. The first housing 12 and the second housing 14 are relatively far away from each other, and the driving member 50 can drive the retractable display screen 30 to be unfolded, so that more retractable display screens 30 are exposed out of the accommodating space 16. The retractable display screen 30 exposed outside the accommodating space 16 is lighted up, so that the display area presented by the electronic device 100 becomes large.
The driving member 50 may be a rotating shaft structure with teeth 52 on the outer portion, the retractable display screen 30 is linked with the driving member 50 by means of meshing, and when the first casing 12 and the second casing 14 are relatively far away from each other, the driving member 50 drives a portion of the retractable display screen 30 meshed with the driving member 50 to move and unfold.
It is understood that the driver 50 can also be a circular shaft without the belt 52, and when the first casing 12 and the second casing 14 are relatively far away from each other, the driver 50 can stretch the part of the retractable display screen 30 wound on the driver 50, so that more retractable display screens 30 are exposed out of the accommodating space 16 and are in a flat state. Specifically, the driving member 50 is rotatably disposed on the second housing 14, and when the retractable display 30 is gradually opened, the driving member 50 can rotate along with the movement of the retractable display 30. In other embodiments, the driver 50 may be fixed to the second housing 14, and the driver 50 may have a smooth surface. When the retractable display 30 is opened, the driver 50 is slidably contacted with the retractable display 30 through its smooth surface.
When the first housing 12 and the second housing 14 are relatively close to each other, the retractable display screen can be retracted by the driving member 50. Alternatively, the electronic device 100 further includes a reset component (not shown), one end of the retractable display screen, which is accommodated in the accommodating space 16, is linked with the reset component, when the first shell 12 and the second shell 14 are relatively close to each other, the reset component drives the retractable display screen 30 to reset, so that part of the retractable display screen 30 is retracted into the accommodating space 16.
In this embodiment, the driving mechanism 70 may be disposed in the accommodating space 16, the driving mechanism 70 may be linked with the second casing 14, and the driving mechanism 70 is configured to drive the second casing 14 to move away from the first casing 12, so as to drive the retractable display panel assembly 30 to extend. It will be appreciated that the drive mechanism 70 may be omitted and the user may directly move the first and second housings relative to one another, manually, etc.
Based on the electronic device provided above, the present application further provides a viewing angle adjusting method applied to the electronic device.
As shown in fig. 6, fig. 6 is a first flowchart of a method for adjusting an angle of view according to an embodiment of the present application, where the flowchart may include:
101. an initial field angle of the photographing component is acquired.
As described above, the electronic device to which the viewing angle adjustment method provided by the present application is applied includes a retractable display screen and a photographing component.
Wherein the retractable display screen is capable of being extended or retracted. The shooting assembly is configured to collect images and at least comprises a lens and an image sensor, wherein the lens is used for projecting an external optical signal to the image sensor, and the image sensor is used for performing photoelectric conversion on the optical signal projected by the lens and converting the optical signal into a usable electric signal to obtain a digitized image. After the capture component is enabled, the capture scene can be captured in real time at the corresponding field angle. The larger the field angle, and the smaller the field angle, the smaller the field angle. A shooting scene is understood to be the real area at which the shooting component is aimed after being enabled, i.e. the area where the shooting component is able to convert the light signal into a corresponding image. For example, after the electronic device enables the shooting component according to the user operation, if the user controls the shooting component of the electronic device to be aligned with an area, the area is a shooting scene of the shooting component. Further, the retractable display screen is configured to preview images captured by the capture component.
In this embodiment, when the user starts a shooting application such as "camera", the electronic apparatus enters a shooting mode and the electronic apparatus can acquire an initial angle of view of the shooting component.
In the embodiment of the present application, the angle of view of the photographing assembly is positively correlated to the extension degree of the retractable display screen, wherein when the retractable display screen is fully retracted, the angle of view of the photographing assembly is the smallest, and as the retractable display screen is extended, the angle of view of the photographing assembly is larger, and when the retractable display screen is fully extended, the angle of view of the photographing assembly is the largest. Therefore, when the electronic device enters the photographing mode, the electronic device may acquire a current extension degree of the retractable display screen and then determine an initial field angle of the photographing component according to the current extension degree. Subsequently, the electronic device can adjust the field angle of the capture assembly to the initial field angle. The electronic equipment can acquire images of the shooting scene through the shooting assembly adjusted to the initial field angle to obtain preview images. After obtaining the preview image, the electronic device can display the preview image on the retractable display screen. The electronic device may also acquire the initial field of view for subsequent processing.
For example, assuming that the angle of view of the retractable display screen is 20 degrees when fully retracted, then, every 1 mm of extension (calculated as 1 mm less than 1 mm), the angle of view is increased by 10 degrees, and the maximum extension of the retractable display screen is 12 mm, that is, the angle of view of the retractable display screen is 140 degrees when fully extended. Assuming that the retractable display screen is extended by 2 mm when the electronic device enters the photographing mode, the electronic device may determine that the initial angle of view is 40 degrees.
102. And acquiring the telescopic distance of the telescopic display screen.
The telescopic distance refers to a distance which is increased or decreased in a corresponding telescopic direction when the telescopic display screen is extended or contracted. For example, when the retractable display screen extends from the position A1 to the position A2, the retractable distance of the retractable display screen is the distance between the position A1 and the position A2. For another example, when the retractable display screen is retracted from the position A3 to the position A4, the retractable distance of the retractable display screen is the distance between the position A3 and the position A4.
For example, when the user wants to adjust the field angle of the photographing assembly, the user can manually control the retractable display screen to extend or retract, so that the electronic device can obtain the retractable distance of the retractable display screen.
For another example, the user may speak a corresponding voice, and the electronic device may control the retractable display to extend or retract according to the voice, so that the electronic device may obtain the retractable distance of the retractable display. For example, the speech may be "let the computer be in a position close to the center in the preview image", and when the computer is in a position close to the left or right side in the preview image, the electronic device may control the retractable display screen to extend or retract, so that the electronic device may obtain the retractable distance of the retractable display screen.
For another example, the electronic device may automatically control the extension or the contraction of the retractable display screen based on a moving object, so that the electronic device may obtain the telescopic distance of the retractable display screen. For example, when a moving object exists in the shooting scene and the moving direction of the moving object is the same as the extending direction of the retractable display screen, the electronic device may control the retractable display screen to extend. When a moving object exists in the shooting scene and the moving direction of the moving object is the same as the contraction direction of the telescopic display screen, the electronic equipment can control the telescopic display screen to contract.
103. And determining the field angle of the target according to the initial field angle and the telescopic distance.
For example, when the initial angle of view of the shooting component and the telescopic distance of the telescopic display screen are acquired, the electronic device may determine the target angle of view according to the initial angle of view and the telescopic distance.
104. And adjusting the field angle of the shooting assembly from the initial field angle to the target field angle.
For example, after determining the target field angle, the electronic device may adjust the field angle of the capture assembly from the initial field angle to the target field angle.
For example, assuming that the initial field angle is 20 degrees and the target field angle is 120 degrees, the electronic device may increase the field angle of the photographing component from 20 degrees to 120 degrees.
For another example, assuming that the initial field angle is 50 degrees and the target field angle is 20 degrees, the electronic device may decrease the field angle of the photographing component from 50 degrees to 20 degrees.
In the embodiment of the application, the initial field angle of a shooting component is obtained; acquiring the telescopic distance of the telescopic display screen; determining a target field angle according to the initial field angle and the telescopic distance of the shooting assembly; the field angle of the shooting assembly is adjusted to the target field angle from the initial field angle, so that the field angle of the shooting assembly can be adjusted by controlling the telescopic display screen to extend or contract, clicking or sliding on the telescopic display screen by fingers is not needed, and the shielding of the display screen can be avoided.
In some embodiments, adjusting the field of view of the capture assembly from the initial field of view to the target field of view may include:
when the telescopic distance is the extension distance, increasing the field angle of the shooting assembly from the initial field angle to the target field angle;
and when the telescopic distance is the contraction distance, reducing the field angle of the shooting assembly from the initial field angle to the target field angle.
The telescopic distance may include an extension distance and a contraction distance, where when the telescopic display screen extends from the position A1 to the position A2, a distance between the position A1 and the position A2 is the extension distance, and when the telescopic display screen contracts from the position A3 to the position A4, a distance between the position A3 and the position A4 is the contraction distance.
It is understood that the field angle of the photographing component increases with the extension of the retractable display screen and decreases with the contraction of the retractable display screen, and therefore, when the retractable distance is the extended distance, the target field angle determined by the electronic device is greater than the initial field angle, and therefore, when the retractable distance is the extended distance, the electronic device needs to increase the field angle of the photographing component from the initial field angle to the target field angle. When the telescopic distance is the contraction distance, the target angle of view determined by the electronic device is smaller than the initial angle of view, and therefore, when the telescopic distance is the contraction distance, the electronic device needs to narrow the angle of view of the shooting assembly from the initial angle of view to the target angle of view.
In some embodiments, determining a target field of view from the initial field of view and the telescopic distance may include:
(1) Determining an adjusting field angle according to the telescopic distance;
(2) And determining a target field angle according to the initial field angle and the adjusted field angle.
For example, a preset mapping relationship between the distance and the adjustment field angle may be preset. When the telescopic distance is the extension distance, the electronic equipment can determine and adjust the angle of view according to the telescopic distance. And then calculating the sum of the initial field angle and the adjusted field angle of the shooting assembly to obtain the target field angle. When the telescopic distance is the contraction distance, the electronic equipment can determine and adjust the angle of view according to the telescopic distance. And then calculating the difference between the initial field angle and the adjusted field angle of the shooting assembly to obtain the target field angle.
For example, assume that the preset mapping relationship between the distance and the adjusted field angle includes: the target angle of view is determined to be 50 degrees when the initial angle of view is 40 degrees when the extension distance is 1 mm (1 mm is 1 mm in terms of 1 mm both larger than 0 mm and 2 mm or smaller), and the target angle of view is determined to be 30 degrees when the initial angle of view is 50 degrees when the contraction distance is 2 mm (2 mm is 2 mm both larger than 1 mm and 2 mm smaller than or equal to 2 mm).
In some embodiments, after adjusting the field angle of the photographing component from the initial field angle to the target field angle, may further include:
(1) Acquiring an image of a shooting scene through a shooting component adjusted to a target field angle to obtain a preview image;
(2) Displaying the preview image on the scalable display screen.
For example, after adjusting the field angle of the camera module from the initial field angle to the target field angle, the electronic device may perform image acquisition on the captured scene through the camera module adjusted to the target field angle to obtain a preview image. After obtaining the preview image, the electronic device may display the preview image on the retractable display screen, so that the user may determine whether the angle of view of the photographing component is appropriate through the preview image.
For example, as shown in fig. 7, assuming that the retractable display screen of the electronic device with the retractable display screen in the A1 state is retracted from the A1 state to the A2 state, the electronic device may obtain the angle of view of the shooting component when the retractable display screen is in the A1 state, and obtain an initial angle of view; then, the electronic device can obtain the contraction distance of the telescopic display screen from the A1 state to the A2 state; then, the electronic equipment can determine and adjust the field angle according to the contraction distance; then, the electronic equipment can calculate the difference between the initial field angle and the adjusted field angle to obtain a target field angle; then, the electronic device may decrease the field angle of the photographing component from the initial field angle to the target field angle; then, the electronic equipment can acquire images of the shooting scene through the shooting assembly which increases the field angle of the target view to obtain a preview image; finally, the electronic device may display the preview image on the retractable display screen. As can be seen from the figure, the viewing range of the preview image displayed on the retractable display screen in the A1 state is larger than the viewing range of the preview image displayed on the retractable display screen in the A2 state, because the viewing range becomes smaller as the angle of view becomes smaller after the retractable display screen is retracted from the A1 state to the A2 state, that is, the viewing range can be reduced by controlling the retraction of the display screen.
For another example, please continue to refer to fig. 7, assuming that the retractable display screen of the electronic device with the retractable display screen in the A1 state is extended from the A1 state to the A3 state, the electronic device can obtain the angle of view of the camera module when the retractable display screen is in the A1 state, and obtain the initial angle of view; then, the electronic device can acquire the extending distance of the telescopic display screen from the state A1 to the state A3; then, the electronic equipment can determine and adjust the field angle according to the stretching distance; then, the electronic equipment can calculate the sum of the initial field angle and the adjusted field angle to obtain a target field angle; then, the electronic device can increase the field angle of the shooting component from the initial field angle to the target field angle; then, the electronic equipment can acquire images of the shooting scene through the shooting assembly which increases the field angle of the target view to obtain a preview image; finally, the electronic device may display the preview image on the retractable display screen. As can be seen from the figure, the viewing range of the preview image displayed on the retractable display screen in the A1 state is smaller than that of the preview image displayed on the retractable display screen in the A3 state, because the viewing range becomes large as the angle of view becomes large after the retractable display screen is extended from the A1 state to the A3 state, that is, the viewing range can be increased by controlling the display screen extension.
In some embodiments, before obtaining the telescopic distance of the telescopic display screen, the method may further include:
(1) Determining a target object in a shooting scene of a shooting component;
(2) Acquiring motion data of a target object;
(3) And controlling the display screen to extend or contract according to the motion data.
In this embodiment, the electronic device first determines a target object from a shooting scene of the shooting component according to the configured object determination policy. The configuration of the object determination policy is not particularly limited, and may be configured by those skilled in the art according to actual needs.
It is understood that for a photographic scene, various objects may be present, such as people, animals, plants, buildings, and the like. When a user is faced with such a shooting scene, it is not always possible to focus on all objects therein, but only on objects of interest therein. For example, when a user performs portrait shooting, the user usually focuses on a person in a shooting scene. Thus, the object determination policy may be configured to be: and identifying an object of interest to the user in the shooting scene, and determining the object of interest to the user as a target object. The method for recognizing the object of interest of the user is not particularly limited, and a person skilled in the art may configure a suitable recognition mode according to actual needs, for example, a shot image of a shooting scene shot by a shooting component may be input into a pre-trained salient region detection model to determine a salient region of the shooting scene, and accordingly, an object in the salient region is determined as a target object.
As above, after determining the target object, the electronic device further obtains motion data of the target object, the motion data describing how the target object moves, including but not limited to at least one of a motion direction and a motion speed. The method for acquiring the motion data of the target object is not particularly limited, and may be configured by those skilled in the art according to actual needs. For example, the electronic device may analyze and calculate a moving object of the target object according to a position difference between two adjacent frames of images of the target object captured by the capturing component.
In this embodiment, the electronic device controls the retractable display screen to extend or retract according to the motion data of the target object, so as to drive the shooting component to track the target object. For example, referring to fig. 8, assuming that the determined target object is an illustration person, when it is determined that the person moves to the right according to the movement data of the illustration person, the electronic device correspondingly controls the retractable display screen to extend, so as to increase the field angle of the photographing component, so that the photographing component can photograph the illustration person; when the person moves leftwards according to the movement data of the figure, the electronic device correspondingly controls the telescopic display screen to contract, so that the angle of view of the shooting component is reduced, and the processing load of the processor is reduced on the premise that the shooting component shoots the figure.
In some embodiments, the motion data includes a motion direction and a motion speed of the target object, and controlling the display screen to expand or contract according to the motion data may include:
(1) Determining the target speed of the extension or contraction of the telescopic display screen according to the movement speed;
(2) And controlling the extension or contraction of the telescopic display screen according to the target speed according to the movement direction.
In this embodiment, the extension or contraction of the retractable display screen is controlled according to the moving direction of the target object, and the extension or contraction speed of the retractable display screen is controlled according to the moving speed of the target object.
It should be noted that the orientation of the electronic device when extending or retracting the retractable display screen may vary depending on how the user holds the electronic device. In this embodiment, when the moving direction of the target object matches the direction of the current retractable display screen, it is determined that the screen needs to be extended, and when the moving direction of the target object matches the direction of the position change of the current retractable screen driving shooting component, it is determined that the screen needs to be retracted.
In addition, the electronic equipment determines the expansion and contraction speed corresponding to the movement speed of the target object as the target speed for expanding or contracting the telescopic display screen according to the preset corresponding relation between the movement speed of the target object and the expansion and contraction speed of the telescopic display screen. Accordingly, the electronic device controls the telescopic display screen to extend or retract according to the determined target speed according to the moving direction of the target object.
In some embodiments, determining a target object in a shooting scene of a shooting assembly may include:
in response to the input object specifying instruction, an object specified in the shooting scene by the object specifying instruction is determined as a target object.
In this embodiment, the electronic device passively determines a target object in a shooting scene. The electronic equipment can preview scene images of shooting scenes shot by the shooting assembly in real time through the telescopic display screen, and receives an object designation instruction aiming at the shooting scenes through the telescopic display screen.
For example, the electronic device previews a scene image of a shooting scene shot by the shooting component through the retractable display screen. The shooting scene of the shooting component is a street, including the street itself, a plurality of vehicles (including black cars and blue cars and the like) running on the street, a street tree on one side of the street, and the like. In response to the object specifying instruction, the electronic apparatus determines an object "black car" in the shooting scene specified by the object specifying instruction as a target object.
In an alternative embodiment, determining the target object in the shooting scene of the shooting assembly may include:
(1) Acquiring a gazing area of a current user on a telescopic display screen;
(2) And determining the object corresponding to the gazing area in the shooting scene as the target object.
In this embodiment, the electronic device automatically determines the target object in the shooting scene.
It should be noted that, when facing any scene, the user usually subconsciously gazes the object of interest in the scene, and therefore, the target object in the shooting scene is determined by using the gazing area of the user in the present embodiment.
The electronic equipment firstly acquires the watching area of the current user on the telescopic display screen.
For example, the electronic device may track a gaze point of an eyeball of the current user according to a preconfigured eyeball tracking manner, and then determine a gaze area of the current user on the retractable display screen by using the gaze point. It should be noted that, the eye tracking means that when the human eyes look in different directions, the eyes have slight changes, and these changes can generate extractable features, and the electronic device extracts these features through image capturing or scanning, so as to track the changes of the eyes in real time and obtain their fixation points. The method of tracking the eyeball is not particularly limited, and can be selected by one of ordinary skill in the art according to actual needs. After the gaze point of the eyeball of the current user is tracked, the gaze point is a geometric center, and an area with a preset shape is determined as the gaze area of the current user.
As above, after acquiring the gazing area of the current user on the scalable display screen, the electronic device further determines an object corresponding to the gazing area in the shooting scene as a target object.
In an optional embodiment, acquiring the current user's gaze area on the retractable display screen may include:
(1) Acquiring a fixation point of a current user on a telescopic display screen;
(2) Acquiring the watching radius of a current user;
(3) And generating a circular watching area of the current user on the telescopic display screen according to the watching radius by taking the watching point as an origin.
In this embodiment, the electronic device tracks the gaze point of the eyeball of the current user according to a preconfigured eyeball tracking manner, and accordingly obtains the gaze point of the current user on the retractable display screen. The method of tracking the eyeball is not particularly limited, and can be selected by one of ordinary skill in the art according to actual needs.
It should be noted that the clear range perceived by different users at the time of gazing is different, and the gazing radius is used in the embodiment of the present application to represent the clear range perceived by the users at the time of gazing. Based on this, for each authorized user of the electronic device (for example, the owner of the electronic device, who authorizes another user who can use the electronic device), in the embodiment of the present application, a gaze radius corresponding to the authorized user is calibrated in advance, and the gaze radius is used to describe a range that can be clearly perceived when the user looks at the gaze. The calibration method of the fixation radius is not specifically limited herein, and a person skilled in the art can select a suitable calibration method according to actual needs. Accordingly, in addition to obtaining the gaze point of the current user, the electronic device also obtains the gaze radius of the current user. For example, the electronic device may perform identity recognition on the current user to obtain identity information of the current user, and then obtain a gazing radius of the current user according to the identity information of the current user.
For example, the electronic device collects face information of authorized users (including owner and other users authorized by owner to use the electronic device) in advance, associates the collected face information with identity information of corresponding authorized users, and stores the face information in a face library. When the watching radius of the current user is obtained, the electronic equipment firstly carries out image shooting through the front shooting component to obtain a shot image. And then, carrying out face recognition on the obtained shot image to obtain face information of the shot image. And matching the face information obtained by recognition with the face information in the face library, and when the matching is successful, taking the identity information associated with the matched face information in the face library as the identity information of the current user. And finally, the corresponding watching radius can be found according to the identity information of the current user.
After the gaze point of the current user is identified and the gaze radius of the current user is acquired, the electronic device generates a circular area as the gaze area of the current user by taking the gaze point as an origin according to the gaze radius.
In an optional embodiment, determining an object corresponding to the gazing area in the shooting scene as the target object may include:
and determining the object with the largest overlapping area of the imaging area and the circular watching area in the shooting scene as the target object.
In this embodiment, the electronic device calculates an overlapping area of an object in which an imaging region overlaps with a circular gaze region of a current user in a shooting scene, and determines an object in which the overlapping area of the imaging region and the circular gaze region is the largest as a target object.
Referring to fig. 9, fig. 9 is a schematic view illustrating a second process of the method for adjusting an angle of view according to the embodiment of the present application, where the process includes:
201. an initial field angle of the photographing component is acquired.
202. And acquiring the telescopic distance of the telescopic display screen.
203. And determining an adjusting field angle according to the telescopic distance.
204. And determining the target field angle according to the initial field angle and the adjusted field angle.
205. And adjusting the field angle of the shooting assembly from the initial field angle to the target field angle.
206. And acquiring an image of the shooting scene by the shooting component adjusted to the target field angle to obtain a preview image.
207. Displaying the preview image on the retractable display screen.
The specific implementation of step 201 to step 207 can refer to the foregoing embodiments, and will not be described herein.
In an embodiment, there is also provided a viewing angle adjusting apparatus applied to an electronic device including a retractable display screen and a photographing component. Referring to fig. 10, fig. 10 is a schematic structural diagram of an angle of view adjustment device according to an embodiment of the present disclosure. The viewing angle adjusting apparatus 300 includes: a first obtaining module 301, a second obtaining module 302, a determining module 303 and an adjusting module 304.
A first obtaining module 301, configured to obtain an initial field angle of the shooting component.
A second obtaining module 302, configured to obtain a telescopic distance of the telescopic display screen.
A determining module 303, configured to determine a target field angle according to the initial field angle and the telescopic distance.
An adjusting module 304, configured to adjust a field angle of the shooting component from the initial field angle to the target field angle.
In some embodiments, the adjustment module 304 may be configured to: when the telescopic distance is the extension distance, increasing the field angle of the shooting assembly from the initial field angle to the target field angle; and when the telescopic distance is a contraction distance, reducing the field angle of the shooting assembly from the initial field angle to the target field angle.
In some embodiments, the determining module 303 may be configured to: determining an adjusting field angle according to the telescopic distance; and determining the target field angle according to the initial field angle and the adjusted field angle.
In some embodiments, the viewing angle adjusting apparatus 300 may further include a display module, and the display module may be configured to: acquiring an image of a shooting scene through a shooting component adjusted to a target field angle to obtain a preview image; displaying the preview image on the scalable display screen.
In some embodiments, the viewing angle adjusting apparatus 300 may further include a control module, and the control module may be configured to: determining a target object in a shooting scene of the shooting component; acquiring motion data of the target object; and controlling the display screen to extend or contract according to the motion data.
In some embodiments, the control module may be to: acquiring a gazing area of a current user on the telescopic display screen; and determining the object corresponding to the gazing area in the shooting scene as the target object.
In some embodiments, the control module may be to: acquiring a fixation point of the current user on the telescopic display screen; obtaining the gazing radius of the current user; and generating a circular gazing area of the current user on the telescopic display screen according to the gazing radius by taking the gazing point as an origin.
Embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the flow in the viewing angle adjusting method provided by the present embodiment.
The embodiment of the present application further provides an electronic device, which includes a scalable display screen, a memory, and a processor, where the processor is configured to execute the flow in the viewing angle adjusting method provided in this embodiment by calling the computer program stored in the memory.
In an alternative embodiment, referring to fig. 11, the electronic device 100 includes a housing assembly 10, a processor 20, a retractable display 30, a memory 40, a driver 50, a driving mechanism 70, and a camera assembly 90.
The processor 20 in the embodiment of the present application is a general purpose processor, such as an ARM architecture processor.
The memory 40 stores a computer program, which may be a high speed random access memory, and may also be a non-volatile memory, such as at least one magnetic 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 access to the computer programs in the memory 40 to implement the following functions:
acquiring an initial field angle of the shooting assembly;
acquiring the telescopic distance of the telescopic display screen;
determining a target field angle according to the initial field angle and the telescopic distance;
adjusting the field angle of the capture assembly from the initial field angle to the target field angle.
In some embodiments, when the processor 20 performs the adjusting of the field angle of the photographing component from the initial field angle to the target field angle, it may perform: when the telescopic distance is the extension distance, increasing the field angle of the shooting assembly from the initial field angle to the target field angle; and when the telescopic distance is a contraction distance, reducing the field angle of the shooting assembly from the initial field angle to the target field angle.
In some embodiments, when the processor 20 executes the determining of the target field angle according to the initial field angle and the telescopic distance, it may execute: determining an adjusting field angle according to the telescopic distance; and determining the target field angle according to the initial field angle and the adjusted field angle.
In some embodiments, after the processor 20 performs the adjusting the field angle of the shooting component from the initial field angle to the target field angle, it may further perform: acquiring an image of a shooting scene through a shooting component adjusted to a target field angle to obtain a preview image; displaying the preview image on the retractable display screen.
In some embodiments, before the processor 20 performs the acquiring of the telescopic distance of the telescopic display screen, it may further perform: determining a target object in a shooting scene of the shooting component; acquiring motion data of the target object; and controlling the display screen to extend or retract according to the motion data.
In some embodiments, the processor 20, when performing the determining of the target object in the shooting scene of the shooting assembly, may perform: acquiring a watching area of a current user on the telescopic display screen; and determining the object corresponding to the gazing area in the shooting scene as the target object.
In some embodiments, the processor 20 may perform the obtaining of the current user's gaze area on the retractable display screen by: acquiring a fixation point of the current user on the telescopic display screen; acquiring the gazing radius of the current user; and generating a circular watching area of the current user on the telescopic display screen according to the watching radius by taking the watching point as an origin.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the angle of view adjustment method, and are not described herein again.
The angle of view adjusting device provided in the embodiment of the present application and the angle of view adjusting method in the above embodiments belong to the same concept, and any method provided in the angle of view adjusting method embodiment may be run on the angle of view adjusting device, and the specific implementation process thereof is described in detail in the angle of view adjusting method embodiment, and is not described herein again.
It should be noted that, for the angle of view adjusting method described in the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process for implementing the angle of view adjusting method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory, and executed by at least one processor, and during the execution process, the process of the embodiment of the angle of view adjusting method can be included. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the viewing angle adjusting apparatus according to the embodiment of the present application, each functional module may be integrated into one processing chip, each functional module may exist alone physically, or two or more functional modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The foregoing detailed description has provided a method, an apparatus, a storage medium, and an electronic device for adjusting a field angle according to embodiments of the present application, and specific examples have been applied herein to explain principles and embodiments of the present application, where the foregoing description of the embodiments is only provided to help understand the method and core concepts of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. A method for adjusting a field angle is applied to an electronic device, and the electronic device comprises a telescopic display screen and a shooting component, and the method for adjusting the field angle comprises the following steps:
acquiring an initial field angle of the shooting assembly;
acquiring the telescopic distance of the telescopic display screen;
determining a target field angle according to the initial field angle and the telescopic distance;
adjusting the field angle of the capture assembly from the initial field angle to the target field angle.
2. The method according to claim 1, wherein the adjusting the angle of view of the photographing component from the initial angle of view to the target angle of view includes:
when the telescopic distance is the extension distance, increasing the field angle of the shooting assembly from the initial field angle to the target field angle;
and when the telescopic distance is a contraction distance, reducing the field angle of the shooting assembly from the initial field angle to the target field angle.
3. The method according to claim 1, wherein the determining a target angle of view from the initial angle of view and the telescopic distance includes:
determining an adjusting field angle according to the telescopic distance;
and determining a target field angle according to the initial field angle and the adjusted field angle.
4. The method according to claim 1, wherein after the adjusting the angle of view of the photographing component from the initial angle of view to the target angle of view, further comprising:
acquiring an image of a shooting scene through a shooting component adjusted to a target field angle to obtain a preview image;
displaying the preview image on the scalable display screen.
5. The method for adjusting an angle of view according to claim 1, wherein before the obtaining the telescopic distance of the telescopic display screen, the method further comprises:
determining a target object in a shooting scene of the shooting component;
acquiring motion data of the target object;
and controlling the display screen to extend or contract according to the motion data.
6. The method according to claim 5, wherein the determining a target object in a shooting scene of the shooting component includes:
acquiring a watching area of a current user on the telescopic display screen;
and determining the object corresponding to the gazing area in the shooting scene as the target object.
7. The method for adjusting an angle of view of claim 6, wherein the obtaining a gaze area of a current user on the retractable display screen comprises:
acquiring a fixation point of the current user on the telescopic display screen;
acquiring the gazing radius of the current user;
and generating a circular watching area of the current user on the telescopic display screen according to the watching radius by taking the watching point as an origin.
8. An angle-of-view adjustment apparatus applied to an electronic device, the electronic device including a retractable display screen and a camera assembly, the angle-of-view adjustment apparatus comprising:
the first acquisition module is used for acquiring an initial field angle of the shooting assembly;
the second acquisition module is used for acquiring the telescopic distance of the telescopic display screen;
the determining module is used for determining a target field angle according to the initial field angle and the telescopic distance;
and the adjusting module is used for adjusting the field angle of the shooting component from the initial field angle to the target field angle.
9. A storage medium, characterized in that a computer program is stored therein, which when run on a computer, causes the computer to execute the viewing angle adjustment method according to any one of claims 1 to 7.
10. An electronic device, comprising a retractable display screen, a shooting component, a processor, and a memory, wherein the memory stores a computer program, and the processor is configured to execute the viewing angle adjusting method according to any one of claims 1 to 7 by calling the computer program stored in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111027686.XA CN115766917A (en) | 2021-09-02 | 2021-09-02 | Method and device for adjusting field angle, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111027686.XA CN115766917A (en) | 2021-09-02 | 2021-09-02 | Method and device for adjusting field angle, storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115766917A true CN115766917A (en) | 2023-03-07 |
Family
ID=85332269
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111027686.XA Pending CN115766917A (en) | 2021-09-02 | 2021-09-02 | Method and device for adjusting field angle, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115766917A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117816566A (en) * | 2023-12-18 | 2024-04-05 | 慧之安信息技术股份有限公司 | Method and system for intelligently removing large gangue |
-
2021
- 2021-09-02 CN CN202111027686.XA patent/CN115766917A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117816566A (en) * | 2023-12-18 | 2024-04-05 | 慧之安信息技术股份有限公司 | Method and system for intelligently removing large gangue |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9699389B2 (en) | Image displaying apparatus and image displaying method | |
CN111988527B (en) | Device control method, device, storage medium and electronic device | |
JP5136669B2 (en) | Image processing apparatus, image processing method, and program | |
JP5567235B2 (en) | Image processing apparatus, photographing apparatus, program, and image processing method | |
US9300858B2 (en) | Control device and storage medium for controlling capture of images | |
CN113840070B (en) | Shooting method, shooting device, electronic equipment and medium | |
US9549126B2 (en) | Digital photographing apparatus and control method thereof | |
KR101537948B1 (en) | Photographing method and apparatus using pose estimation of face | |
KR20110020522A (en) | Method and apparatus for controlling zoom using touch screen | |
US20100053363A1 (en) | Photographing method and apparatus | |
CN113596316B (en) | Photographing method and electronic equipment | |
US9111129B2 (en) | Subject detecting method and apparatus, and digital photographing apparatus | |
CN107395957B (en) | Photographing method and device, storage medium and electronic equipment | |
JP6302215B2 (en) | Imaging device | |
CN110213492B (en) | Device imaging method and device, storage medium and electronic device | |
CN113905182B (en) | Shooting method and equipment | |
US9001254B2 (en) | Digital photographing apparatus and method of controlling the same | |
CN115766917A (en) | Method and device for adjusting field angle, storage medium and electronic equipment | |
CN112637495B (en) | Shooting method, shooting device, electronic equipment and readable storage medium | |
KR20110060296A (en) | Digital photographing apparatus and controlling method thereof | |
WO2022061541A1 (en) | Control method, handheld gimbal, system, and computer-readable storage medium | |
JP2013017218A (en) | Image processing device, image processing method, and program | |
US10437330B2 (en) | Gaze detection, identification and control method | |
CN106791321B (en) | Image processing method based on front camera and mobile terminal | |
CN117278839A (en) | Shooting method, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |