Device control method, device, storage medium and electronic device

By using retractable screen components and shooting components in electronic devices, automatic tracking and shooting is achieved, and the problem of cumbersome tracking and shooting operations in the prior art is solved, and shooting convenience and efficiency are improved.

CN115734067BActive Publication Date: 2024-11-26GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110990935.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-26
Publication Date
2024-11-26
Estimated Expiration
2041-08-26

AI Technical Summary

Technical Problem

When tracking and shooting, existing electronic devices require users to manually adjust the shooting components, which is cumbersome and inconvenient.

Method used

By introducing scalable screen components and shooting components into the electronic device, the expansion or contraction of the screen components are used to drive the shooting components to track the target object, and automatically track shooting is achieved.

Benefits of technology

Without manual adjustment from the user, the electronic device controls the screen component to retract itself to drive the shooting component to track the target object, improving the convenience and efficiency of tracking and shooting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115734067B_ABST
    Figure CN115734067B_ABST
Patent Text Reader

Abstract

The present application discloses a device control method, apparatus, storage medium and electronic device, wherein the electronic device includes a screen component and a shooting component, the screen component can be extended or contracted, and the shooting component can change position as the screen component is extended or contracted. The present application uses the screen component to drive the shooting component to track the target object. Among them, the target object in the shooting scene of the shooting component is determined, and the motion data of the target object is obtained, and according to the motion data of the target object, the screen component is controlled to extend or contract accordingly to drive the shooting component to track the target object. Therefore, when tracking shooting is required, there is no need for the user to manually adjust the shooting component of the electronic device to track the target object. Instead, the electronic device controls the extension and contraction of the screen component by itself, and drives the shooting component to track the target object, which can more conveniently achieve tracking shooting of the target object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of camera technology, and in particular to a device control method, apparatus, storage medium and electronic device. Background Art

[0002] At present, people's lives are inseparable from electronic devices such as smart phones and tablet computers. Through the various rich functions provided by these electronic devices, people can entertain and work anytime and anywhere. For example, using the shooting function provided by the shooting component configured in the electronic device, users can record what is happening around them and the scenery they see anytime and anywhere. In the related art, when a moving object is selected as the shooting object for tracking shooting, the user needs to manually adjust the shooting component of the electronic device to track the movement of the shooting object, which is a cumbersome operation. Summary of the invention

[0003] The present application provides a device control method, apparatus, storage medium and electronic device, which can improve the convenience of tracking shooting of the electronic device.

[0004] The device control method provided in the embodiment of the present application is applied to an electronic device, wherein the electronic device includes a screen component and a camera component, the screen component can be extended or contracted, and the camera component can change position as the screen component is extended or contracted. The device control method includes:

[0005] Determine a target object in a shooting scene of the shooting component;

[0006] Obtaining motion data of the target object;

[0007] According to the motion data of the target object, the screen component is controlled to extend or contract to drive the shooting component to track the target object.

[0008] The device control device provided in the present application is applied to an electronic device, wherein the electronic device includes a screen component and a camera component, the screen component can be extended or contracted, and the camera component can change position as the screen component is extended or contracted, and the device control device includes:

[0009] An object determination module, used to determine a target object in a shooting scene of the shooting component;

[0010] A data acquisition module, used to acquire motion data of the target object;

[0011] The screen control module is used to control the screen component to extend or contract according to the motion data, so as to drive the shooting component to track the target object.

[0012] The storage medium provided in the present application stores a computer program thereon, and when the computer program is loaded by a processor, the steps in the device control method provided in the present application are executed.

[0013] The electronic device provided in the present application includes a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the steps in the device control method provided in the present application by loading the computer program in the memory.

[0014] Compared with the related art, the electronic device of the present application includes a screen component and a shooting component, the screen component can be extended or contracted, and the shooting component can change position as the screen component is extended or contracted. The present application uses the screen component to drive the shooting component to track the target object. Among them, the target object in the shooting scene of the shooting component is determined, and the motion data of the target object is obtained, and according to the motion data of the target object, the screen component is controlled to extend or contract accordingly to drive the shooting component to track the target object. Therefore, when tracking shooting is required, there is no need for the user to manually adjust the shooting component of the electronic device to track the target object. Instead, the electronic device controls the extension and contraction of the screen component by itself, and drives the shooting component to track the target object, which can more conveniently achieve tracking shooting of the target object. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0016] Figure 1 It is a first structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0017] Figure 2 It is a second structural schematic diagram of the electronic device provided in an embodiment of the present application.

[0018] Figure 3 This is a third structural diagram of the electronic device provided in an embodiment of the present application.

[0019] Figure 4 This is a fourth structural diagram of the electronic device provided in an embodiment of the present application.

[0020] Figure 5 This is a fifth structural diagram of the electronic device provided in an embodiment of the present application.

[0021] Figure 6 It is a flow chart of the device control method provided in the embodiment of the present application.

[0022] Figure 7 This is an example diagram of using a screen component to drive a shooting component to track a target object in an embodiment of the present application.

[0023] Figure 8 This is an example diagram of an electronic device receiving an object specifying instruction in an embodiment of the present application.

[0024] Fig. 9 It is a structural schematic diagram of the equipment control device provided in an embodiment of the present application.

[0025] Fig.10 This is a sixth structural diagram of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] It should be noted that the following description is based on specific embodiments of the present application and should not be considered as limiting other specific embodiments of the present application that are not described in detail herein.

[0027] The embodiment of the present application provides a device control method, a device control apparatus, a storage medium and an electronic device. The device control method may be executed by the electronic device provided in the embodiment of the present application, and the device control apparatus may be implemented in hardware or software.

[0028] It should be noted that the electronic device provided in the present application is equipped with a retractable screen component, that is, the screen component can be extended or retracted. Among them, the screen component is made of a flexible material, so that it can be bent, curled, and folded, etc., so as to achieve the purpose of retractability. Based on the retractable screen component, the electronic device can increase the visible area of ​​the screen component by extending the screen component to improve the display effect, and can also shrink the screen component to reduce the visible area of ​​the screen component and reduce power consumption.

[0029] For example, please refer to Figure 1-Figure 3 The electronic device 100 includes a housing assembly 10 , a screen assembly 30 , a driving member 50 , a driving mechanism 70 , and a shooting assembly 90 .

[0030] The housing assembly 10 is a hollow structure; components such as the driving member 50 and the driving mechanism 70 can be arranged 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 mobile terminals such as mobile phones and tablet computers or other portable electronic devices. In this article, the electronic device 100 is described as a mobile phone.

[0031] In this 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 can move relative to each other. Specifically, in this embodiment, the first housing 12 and the second housing 14 are slidably connected, that is, the second housing 14 can slide relative to the first housing 12.

[0032] Specifically, see Figure 4 and Figure 5 The first housing 12 and the second housing 14 together form a receiving space 16. The receiving space 16 can be used to place components such as the driving member 50 and the driving mechanism 70. The housing assembly 10 may further include a rear cover 18, which together with the first housing 12 and the second housing 14 form the receiving space 16.

[0033] The driving member 50 is disposed on the second shell 14, one end of the screen assembly 30 is disposed on the first shell 12, the screen assembly 30 bypasses the driving member 50, and the other end of the screen assembly is disposed in the accommodating space 16, so that part of the screen assembly is hidden in the accommodating space 16, and the part of the screen assembly 30 hidden in the accommodating space 16 may not be illuminated. When the first shell 12 and the second shell 14 are relatively far apart, the screen assembly 30 can be driven to unfold by the driving member 50, so that more of the screen assembly 30 is exposed outside the accommodating space 16. The part of the screen assembly 30 exposed outside the accommodating space 16 is illuminated to enlarge the visible area of ​​the screen assembly 30.

[0034] The driving member 50 can be specifically a rotating shaft structure with teeth 52 on the outside. The screen assembly 30 is linked with the driving member 50 by means of engagement, etc. When the first shell 12 and the second shell 14 are relatively far away from each other, the driving member 50 drives the part of the screen assembly 30 engaged on the driving member 50 to move and unfold.

[0035] It can be understood that the driving member 50 can also be a round shaft without teeth 52. When the first shell 12 and the second shell 14 are relatively far away from each other, the driving member 50 is used to open part of the screen assembly 30 wound around the driving member 50, so that more of the screen assembly 30 is exposed outside the accommodating space 16 and is in a flat state. Specifically, the driving member 50 is rotatably arranged on the second shell 14. When the screen assembly 30 is gradually opened, the driving member 50 can rotate with the movement of the screen assembly 30. In other embodiments, the driving member 50 can also be fixed on the second shell 14, and the driving member 50 has a smooth surface. When the screen assembly 30 is opened, the driving member 50 can slidably contact with the screen assembly 30 through its smooth surface.

[0036] When the first shell 12 and the second shell 14 are relatively close to each other, the screen assembly can be driven to be retracted by the driving member 50. Alternatively, the electronic device 100 further includes a reset member (not shown in the figure), and one end of the screen assembly received in the accommodating space 16 is linked to the reset member. When the first shell 12 and the second shell 14 are relatively close to each other, the reset member drives the screen assembly 30 to be reset, thereby causing part of the screen assembly to be retracted into the accommodating space 16.

[0037] In this embodiment, the driving mechanism 70 may be disposed in the accommodating space 16, and the driving mechanism 70 may be linked with the second housing 14, and the driving mechanism 70 is used to drive the second housing 14 to move away from the first housing 12, thereby driving the screen assembly 30 to extend. It is understood that the driving mechanism 70 may also be omitted, and the user may directly make the first housing and the second housing move relative to each other manually or in other ways.

[0038] In addition, the shooting component 90 can be set with the second shell 14, so that when the second shell 14 and the first shell move relative to each other to drive the screen component 30 to extend or contract, the shooting component 90 can be simultaneously driven to change position as the screen component 30 extends or contracts.

[0039] Based on the electronic device provided above, the present application further provides a device control method applied to the electronic device, such as Figure 6 As shown, the process of the device control method provided in the embodiment of the present application can be as follows:

[0040] In step 210, a target object in a shooting scene of the shooting component is determined.

[0041] As described above, the electronic device to which the device control method provided in the present application is applied includes a screen component and a shooting component, the screen component can be extended or contracted, and the shooting component can change position as the screen component is extended or contracted.

[0042] Among them, the shooting component is configured to capture images, and at least includes a lens and an image sensor, wherein the lens is used to project external light signals to the image sensor, and the image sensor is used to perform photoelectric conversion on the light signals projected by the lens, and convert the light signals into usable electrical signals to obtain a digitized image. After the shooting component is enabled, the shooting scene can be photographed in real time. The shooting scene can be understood as the real area to which the shooting component is aimed after being enabled, that is, the area where the shooting component can convert the light signal into the corresponding image. For example, after the electronic device enables the shooting component according to the user's operation, if the user controls the shooting component of the electronic device to aim at an area including an object, the area including the object is the shooting scene of the shooting component. In addition, the screen component is configured to preview the image taken by the shooting component.

[0043] In this embodiment, the electronic device first determines the object to be tracked from the shooting scene of the shooting component according to the configured object determination strategy, and records it as the target object. The configuration of the object determination strategy is not specifically limited here, and can be configured by those skilled in the art according to actual needs.

[0044] It is understandable that, for a shooting scene, there may be various objects, such as people, animals, plants, and buildings. When a user faces such a shooting scene, he usually cannot pay attention to all the objects therein, but only pays attention to the objects of interest. For example, when a user takes a portrait, he usually focuses on the people in the shooting scene. Therefore, the object determination strategy can be configured as: identifying the objects of interest to the user in the shooting scene, and determining the objects of interest to the user as target objects. Among them, there is no specific restriction on how to identify the objects of interest to the user, and a suitable identification method can be configured by those skilled in the art according to actual needs. For example, the captured image of the shooting scene obtained by the shooting component can be input into a pre-trained salient area detection model to determine the salient area of ​​the shooting scene, and the object in the salient area is correspondingly determined as the target object.

[0045] In step 220, motion data of the target object is obtained.

[0046] As described above, after determining the target object, the electronic device further obtains the motion data of the target object, and the motion data describes how the target object moves, including but not limited to at least one of the motion direction and the motion speed. There is no specific limitation on how to obtain the motion data of the target object, and 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 object of the target object based on the position difference between two adjacent frames of images captured by the shooting component.

[0047] In step 230, the screen component is controlled to expand or contract according to the motion data of the target object, so as to drive the shooting component to track the target object.

[0048] In this embodiment, the electronic device controls the screen component to extend or contract according to the motion data of the target object, so as to drive the camera component to track the target object. Figure 7 Assuming that the determined target object is the person in the picture, when it is determined according to the motion data of the person in the picture that the person is moving to the right, the electronic device controls the screen component to extend accordingly, thereby driving the shooting component to move to the right as well, thereby tracking the person in the picture; when it is determined according to the motion data of the person in the picture that the person is moving to the left, the electronic device controls the screen component to contract accordingly, thereby driving the shooting component to move to the left as well, thereby tracking the person in the picture.

[0049] As can be seen from the above, the electronic device includes a screen component and a shooting component, the screen component can be extended or contracted, and the shooting component can change position as the screen component is extended or contracted. The present application utilizes the screen component to drive the shooting component to track the target object. Among them, the target object in the shooting scene of the shooting component is determined, and the motion data of the target object is obtained, and according to the motion data of the target object, the screen component is controlled to extend or contract accordingly to drive the shooting component to track the target object. Therefore, when tracking shooting is required, there is no need for the user to manually adjust the shooting component of the electronic device to track the target object. Instead, the electronic device controls the extension and contraction of the screen component by itself, and drives the shooting component to track the target object, which can more conveniently achieve tracking shooting of the target object.

[0050] In an optional embodiment, in order to achieve more accurate tracking and shooting, the motion data includes the motion direction and motion speed of the target object. According to the motion speed, the target speed of the screen component extending or contracting is determined; according to the motion direction, the screen component is controlled to extend or contract according to the target speed.

[0051] In this embodiment, the screen component is controlled to extend or contract according to the moving direction of the target object, and the speed of extending or contracting the screen component is controlled according to the moving speed of the target object.

[0052] It should be noted that, depending on the way the user holds the electronic device, the direction in which the position change of the camera assembly is driven when the screen assembly is extended or retracted is also different. In this embodiment, when the direction of motion of the target object matches the direction in which the camera assembly is driven to change position when the screen assembly is currently extended, it is determined that the screen needs to be extended, and when the direction of motion of the target object matches the direction in which the position change of the camera assembly is driven when the screen is currently retracted, it is determined that the screen needs to be retracted.

[0053] In addition, the electronic device determines the extension speed corresponding to the movement speed of the target object as the target speed for the screen component to extend or contract according to the preset correspondence between the movement speed of the target object and the extension speed of the screen component. Accordingly, the electronic device controls the screen component to extend or contract according to the determined target speed according to the movement direction of the target object.

[0054] In an optional embodiment, in response to the input object designation instruction, the object designated by the object designation instruction in the shooting scene is determined as the target object.

[0055] In this embodiment, the electronic device passively determines the target object in the shooting scene. The electronic device can preview the scene image of the shooting scene shot by the shooting component in real time through the screen component, and receive the object designation instruction for the shooting scene through the screen component.

[0056] For example, please refer to Figure 8 The electronic device previews the scene image of the shooting scene shot by the shooting component through the screen component. Figure 8 As shown, the shooting scene of the shooting component is a street, including the street itself, vehicles traveling on the street, and roadside trees on one side of the street. If the user expects the electronic device to track and shoot the object "black car" in the shooting scene, the user can directly click on the "black car" displayed by the screen component to input an object designation instruction to the electronic device, and the object designation instruction is used to instruct the electronic device to use the "black car" in the shooting scene as the target object. In response to the object designation instruction, the electronic device determines the object "black car" in the shooting scene specified by the object designation instruction as the target object.

[0057] In an optional embodiment, the gaze area of ​​the current user on the screen component is obtained; and an object corresponding to the gaze area in the shooting scene is determined as the target object.

[0058] In this embodiment, the electronic device automatically determines the target object in the shooting scene.

[0059] It should be noted that when facing any scene, the user usually subconsciously looks at the object of interest in the scene, and when shooting, the user usually tracks and shoots the object of interest in the shooting scene. Therefore, in this embodiment, the user's gaze area is used to determine the target object in the shooting scene.

[0060] Among them, the electronic device first obtains the current user's gaze area on the screen component.

[0061] Exemplarily, the electronic device can track the gaze point of the current user's eye according to a preconfigured eye tracking method, and then use the gaze point to determine the current user's gaze area on the screen component. It should be noted that eye tracking means that when a person's eyes look in different directions, there will be subtle changes in the eyes. These changes will produce extractable features. The electronic device extracts these features through image capture or scanning, thereby tracking the changes in the eye in real time to obtain its gaze point. There is no specific restriction on which eye tracking method to use here, and it can be selected by ordinary technicians in this field according to actual needs. After tracking the gaze point of the current user's eye, the gaze point is the geometric center, and an area of ​​a preset shape is determined as the gaze area of ​​the current user.

[0062] As described above, after obtaining the gaze area of ​​the current user on the screen component, the electronic device further determines the object corresponding to the gaze area in the shooting scene as the target object.

[0063] In an optional embodiment, the gaze point of the current user on the screen component is obtained; the gaze radius of the current user is obtained; and a circular gaze area of ​​the current user on the screen component is generated based on the gaze radius and the gaze point is used as the origin.

[0064] In this embodiment, the electronic device tracks the gaze point of the current user's eye according to the pre-configured eye tracking method, and correspondingly obtains the gaze point of the current user on the screen component. There is no specific restriction on which eye tracking method is used, and it can be selected by ordinary technicians in this field according to actual needs.

[0065] It should be noted that the clear range that different users can perceive when looking is different. In the embodiment of the present application, the gaze radius is used to characterize the range that the user can clearly perceive when looking. Based on this, for each authorized user of the electronic device (such as the owner of the electronic device, and other users authorized by the owner to use the electronic device), a gaze radius corresponding to it is pre-calibrated in the embodiment of the present application, and the gaze radius is used to describe the range that can be clearly perceived when looking. Among them, there is no specific restriction on the calibration method of the gaze radius, and a suitable calibration method can be selected by ordinary technicians in this field according to actual needs. Correspondingly, in addition to obtaining the gaze point of the current user, the electronic device also obtains the gaze radius of the current user. Exemplarily, the electronic device can first identify the current user to obtain the identity information of the current user, and then obtain the gaze radius of the current user based on the identity information of the current user.

[0066] For example, the electronic device collects the facial information of authorized users (including the owner, and other users authorized by the owner to use the electronic device) in advance, and associates the collected facial information with the identity information of the corresponding authorized user and stores it in the face library. When obtaining the gaze radius of the current user, the electronic device first captures the image through the front camera to obtain the captured image. Then, face recognition is performed on the captured image to obtain the facial information of the captured image. The recognized facial information is then matched with the facial information in the face library. When the match is successful, the identity information associated with the matched facial information in the face library is used as the identity information of the current user. Finally, the corresponding gaze radius can be found according to the identity information of the current user.

[0067] After identifying the gaze point of the current user and obtaining the gaze radius, the electronic device uses the gaze point as the origin and generates a circular area according to the gaze radius as the gaze area of ​​the current user.

[0068] In an optional embodiment, the object whose imaging area and circular fixation area overlap the largest in the shooting scene is determined as the target object.

[0069] In this embodiment, the electronic device calculates the overlapping area of ​​the objects whose imaging areas overlap with the circular gaze area of ​​the current user in the shooting scene, and determines the object whose imaging area overlaps with the circular gaze area with the largest area as the target object.

[0070] In an optional embodiment, after controlling the screen component to extend or contract according to the motion data to drive the shooting component to track the target object, the target imaging resolution of the shooting component is determined according to the area of ​​the visible area of ​​the screen component; the imaging resolution of the shooting component is adjusted to the target imaging resolution; and the image of the target object shot by the shooting component at the target imaging resolution is previewed through the visible area of ​​the screen component.

[0071] It should be noted that in this embodiment, when the screen component is extended or contracted, the area of ​​the visible area of ​​the screen component will change accordingly, wherein when the screen component is extended, the area of ​​the visible area of ​​the screen component will increase accordingly, and when the screen component is contracted, the area of ​​the visible area of ​​the screen component will decrease accordingly. When the area of ​​the visible area of ​​the screen component changes, the physical resolution that the screen component can display will also change accordingly. In this embodiment, in order to improve the preview effect, the imaging resolution of the shooting component is dynamically adjusted according to the extension and contraction of the screen component, so that the image captured by the shooting component can be suitable for the preview of the screen component.

[0072] Among them, the electronic device first obtains the area of ​​the visible area of ​​the screen component, and the correspondence between the area of ​​the visible area and the display resolution (which can be configured by technical personnel in this field according to actual needs, without specific limitations here), determines the display resolution corresponding to the visible area of ​​the screen component, and then determines the imaging resolution of the shooting component corresponding to the display resolution of the screen component according to the object relationship between the display resolution and the imaging resolution (which can be configured by technical personnel in this field according to actual needs, without specific limitations here), as the target imaging resolution of the shooting component.

[0073] As mentioned above, after determining the target imaging resolution of the shooting component, the imaging resolution of the shooting component is adjusted to the target imaging resolution accordingly, and the image of the target object shot by the shooting component according to the target imaging resolution is previewed through the visible area of ​​the screen component, thereby improving the preview effect of the screen component.

[0074] In one embodiment, a device control device is also provided, and the device control device is applied to an electronic device, and the electronic device includes a screen component and a camera component, the screen component can be extended or contracted, and the camera component can change position as the screen component is extended or contracted. Fig. 9 The device control apparatus 300 includes an object determination module 310, a data acquisition module 320 and a screen control module 330, wherein:

[0075] The object determination module 310 is used to determine the target object in the shooting scene of the shooting component;

[0076] A data acquisition module 320 is used to acquire motion data of a target object;

[0077] The screen control module 330 is used to control the screen component to extend or contract according to the motion data of the target object, so as to drive the shooting component to track the target object.

[0078] In an optional embodiment, the motion data includes the motion direction and motion speed of the target object, and the screen control module 330 is used to:

[0079] According to the movement speed, a target speed of extending or contracting the screen component is determined;

[0080] Depending on the direction of movement, the screen component is controlled to expand or contract at the target speed.

[0081] In an optional embodiment, the object determination module 310 is used to:

[0082] In response to the input of the object specifying instruction, an object specified by the object specifying instruction in the photographing scene is determined as a target object.

[0083] In an optional embodiment, the object determination module 310 is used to:

[0084] Get the current user's gaze area on the screen component;

[0085] An object corresponding to the gaze area in the shooting scene is determined as a target object.

[0086] In an optional embodiment, the object determination module 310 is used to:

[0087] Get the current user's gaze point on the screen component;

[0088] Get the gaze radius of the current user;

[0089] Taking the gaze point as the origin, a circular gaze area of ​​the current user on the screen component is generated according to the gaze radius.

[0090] In an optional embodiment, the object determination module 310 is used to:

[0091] The object whose imaging area in the shooting scene overlaps with the circular fixation area in the largest area is determined as the target object.

[0092] In an optional embodiment, the device control apparatus further includes an image preview module, which is used to:

[0093] Determine the target imaging resolution of the shooting component according to the area of ​​the visible area of ​​the screen component;

[0094] Adjusting the imaging resolution of the shooting component to the target imaging resolution;

[0095] The image of the target object captured by the shooting component according to the target imaging resolution is previewed through the visible area.

[0096] It should be noted that the device control apparatus provided in the embodiment of the present application and the device control method in the above embodiment belong to the same concept, and its specific implementation process is detailed in the above embodiment and will not be repeated here.

[0097] In an optional embodiment, please refer to Fig.10 The electronic device 100 includes a housing assembly 10 , a processor 20 , a screen assembly 30 , a memory 40 , a driving member 50 , a driving mechanism 70 and a shooting assembly 90 .

[0098] The processor 20 in the embodiment of the present application is a general-purpose processor, such as a processor of ARM architecture.

[0099] The memory 40 stores a computer program, which may be a high-speed random access memory or a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. 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, and implement the following functions:

[0100] Determine a target object in a shooting scene of the shooting component;

[0101] Obtaining motion data of the target object;

[0102] According to the motion data of the target object, the screen component is controlled to extend or contract to drive the shooting component to track the target object.

[0103] In an optional embodiment, the motion data includes the motion direction and motion speed of the target object, and the processor 20 is configured to execute:

[0104] According to the movement speed, a target speed of extending or contracting the screen component is determined;

[0105] Depending on the direction of movement, the screen component is controlled to expand or contract at the target speed.

[0106] In an optional embodiment, the processor 20 is configured to execute:

[0107] In response to the input of the object specifying instruction, an object specified by the object specifying instruction in the photographing scene is determined as a target object.

[0108] In an optional embodiment, the processor 20 is configured to execute:

[0109] Get the current user's gaze area on the screen component;

[0110] An object corresponding to the gaze area in the shooting scene is determined as a target object.

[0111] In an optional embodiment, the processor 20 is configured to execute:

[0112] Get the current user's gaze point on the screen component;

[0113] Get the gaze radius of the current user;

[0114] Taking the gaze point as the origin, a circular gaze area of ​​the current user on the screen component is generated according to the gaze radius.

[0115] In an optional embodiment, the processor 20 is configured to execute:

[0116] The object whose imaging area in the shooting scene overlaps with the circular fixation area in the largest area is determined as the target object.

[0117] In an optional embodiment, after controlling the screen component to extend or contract according to the motion data of the target object to drive the shooting component to track the target object, the processor 20 is further configured to execute:

[0118] Determine the target imaging resolution of the shooting component according to the area of ​​the visible area of ​​the screen component;

[0119] Adjusting the imaging resolution of the shooting component to the target imaging resolution;

[0120] The image of the target object captured by the shooting component according to the target imaging resolution is previewed through the visible area.

[0121] It should be noted that the electronic device 100 provided in the embodiment of the present application and the device control method in the above embodiment belong to the same concept, and its specific implementation process is detailed in the feature extraction method embodiment, which will not be repeated here.

[0122] It should be noted that, for the device control method of the embodiment of the present application, ordinary testers in the field can understand that all or part of the process of implementing the device control method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device (the electronic device includes a screen component and a shooting component, wherein the screen component can be extended or contracted, and the shooting component can change position as the screen component is extended or contracted), and executed by a processor in the electronic device, and the execution process may include the process of the embodiment of the device control method. The storage medium can be a disk, an optical disk, a read-only memory, a random access memory, etc.

[0123] The above is a detailed introduction to a device control method, apparatus, storage medium and electronic device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A device control method, applied to an electronic device, wherein the electronic device comprises a screen component and a shooting component, characterized in that: The screen assembly can be extended or contracted, and the shooting assembly can change position as the screen assembly is extended or contracted. The device control method includes: Determining a target object in a shooting scene of the shooting component; Acquiring motion data of the target object; According to the motion data, controlling the screen component to extend or contract, so as to drive the shooting component to track the target object; Determining a target imaging resolution of the shooting component according to the area of ​​the visible area of ​​the screen component; Adjusting the imaging resolution of the shooting component to the target imaging resolution; The image of the target object captured by the capturing component according to the target imaging resolution is previewed through the visible area.

2. The device control method according to claim 1, characterized in that: The motion data includes the motion direction and the motion speed of the target object, and controlling the screen component to extend or contract according to the motion data to drive the shooting component to track the target object includes: Determining a target speed for extending or contracting the screen assembly according to the movement speed; According to the movement direction, the screen assembly is controlled to extend or contract according to the target speed.

3. The device control method according to claim 1, characterized in that: The determining of the target object in the shooting scene of the shooting component includes: In response to an input object specifying instruction, an object specified by the object specifying instruction in the photographing scene is determined as the target object.

4. The device control method according to claim 1, characterized in that: The determining of the target object in the shooting scene of the shooting component includes: Obtaining the current user's gaze area on the screen component; An object in the shooting scene corresponding to the gaze area is determined as the target object.

5. The device control method according to claim 4, characterized in that: The obtaining of the gaze area of ​​the current user on the screen component includes: Obtaining the gaze point of the current user on the screen component; Obtaining the gaze radius of the current user; Taking the gaze point as the origin, a circular gaze area of ​​the current user on the screen component is generated according to the gaze radius.

6. The device control method according to claim 5, characterized in that: The step of determining the object in the shooting scene corresponding to the gaze area as the target object comprises: The object whose imaging area in the shooting scene overlaps with the circular fixation area in the largest area is determined as the target object.

7. A device control device, applied to electronic equipment, characterized in that: The electronic device comprises a screen component and a camera component, the screen component can be extended or contracted, the camera component can change position as the screen component is extended or contracted, and the device control device comprises: An object determination module, used to determine a target object in a shooting scene of the shooting component; A data acquisition module, used to acquire motion data of the target object; A screen control module, used for controlling the screen component to extend or contract according to the motion data, so as to drive the shooting component to track the target object; An image preview module is used to determine the target imaging resolution of the shooting component according to the area of ​​the visible area of ​​the screen component; adjust the imaging resolution of the shooting component to the target imaging resolution; and preview the image of the target object shot by the shooting component according to the target imaging resolution through the visible area.

8. A storage medium having a computer program stored thereon, characterized in that: When the computer program is loaded by a processor, the steps in the device control method according to any one of claims 1 to 6 are executed.

9. An electronic device, comprising a screen component, a camera component, a processor and a memory, wherein the memory stores a computer program, characterized in that: The screen component can be extended or contracted, the shooting component can change position as the screen component is extended or contracted, and the processor is used to execute the steps in the device control method as described in any one of claims 1 to 6 by loading the computer program.