CN115734067A - Device control method, device, storage medium and electronic device - Google Patents
Device control method, device, storage medium and electronic device Download PDFInfo
- Publication number
- CN115734067A CN115734067A CN202110990935.9A CN202110990935A CN115734067A CN 115734067 A CN115734067 A CN 115734067A CN 202110990935 A CN202110990935 A CN 202110990935A CN 115734067 A CN115734067 A CN 115734067A
- Authority
- CN
- China
- Prior art keywords
- target object
- shooting
- assembly
- screen
- screen assembly
- 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
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000008859 change Effects 0.000 claims abstract description 12
- 230000008602 contraction Effects 0.000 claims abstract description 7
- 238000003384 imaging method Methods 0.000 claims description 29
- 238000004590 computer program Methods 0.000 claims description 11
- 230000004044 response Effects 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 9
- 230000007246 mechanism Effects 0.000 description 8
- 210000005252 bulbus oculi Anatomy 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 210000001508 eye Anatomy 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 230000000712 assembly Effects 0.000 description 2
- 238000000429 assembly Methods 0.000 description 2
- 241001465754 Metazoa Species 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Landscapes
- Studio Devices (AREA)
Abstract
The application discloses a device control method, a device, a storage medium and an electronic device, wherein the electronic device comprises a screen assembly and a shooting assembly, the screen assembly can be extended or contracted, and the shooting assembly can change the position along with the extension or the contraction of the screen assembly. The present application utilizes a screen assembly to drive a camera assembly to track a target object. The method comprises the steps of determining a target object in a shooting scene of a shooting assembly, obtaining motion data of the target object, and correspondingly controlling the screen assembly to extend or contract according to the motion data of the target object so as to drive the shooting assembly to track the target object. Therefore, when tracking shooting is needed, a user does not need to manually adjust a shooting component of the electronic equipment to track the target object, the electronic equipment automatically controls the stretching of the screen component, the shooting component is driven to track the target object, and tracking shooting of the target object can be conveniently achieved.
Description
Technical Field
The present application relates to the field of camera technologies, and in particular, to a device control method, apparatus, storage medium, and electronic device.
Background
At present, people can not leave electronic equipment such as smart phones and tablet computers, and people can entertain, work and the like anytime and anywhere through various rich functions provided by the electronic equipment. For example, by utilizing the shooting function provided by the shooting component configured by the electronic equipment, a user can record things happening around, scenes seen and the like anytime and anywhere. In the related art, when a moving object is selected as a shooting object to be tracked and shot, a user is required to manually adjust a shooting component of the electronic device to track the shooting object to move, and the operation is complicated.
Disclosure of Invention
The application provides an equipment control method and device, a storage medium and electronic equipment, which can improve the convenience of tracking shooting of the electronic equipment.
The device control method provided by the embodiment of the application is applied to electronic devices, the electronic devices comprise screen components and shooting components, the screen components can be extended or contracted, and the shooting components can change positions along with the extension or contraction of the screen components, and the device control method comprises the following steps:
determining a target object in a shooting scene of a shooting component;
acquiring motion data of a target object;
and controlling the screen assembly to extend or contract according to the motion data of the target object so as to drive the shooting assembly to track the target object.
The application provides a device control apparatus, is applied to electronic equipment, and electronic equipment includes screen assembly and shoots the subassembly, and screen assembly can extend or shrink, and shoots the subassembly and can change the position along with screen assembly's extension or shrink, and this device control apparatus includes:
an object determination module for determining a target object in a shooting scene of the shooting component;
the data acquisition module is used for acquiring the motion data of the target object;
and the screen control module is 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.
The present application provides a storage medium having stored thereon a computer program which, when loaded by a processor, performs the steps in the device control method as provided herein.
The electronic device provided by the application comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used for executing the steps in the device control method provided by the application by loading the computer program in the memory.
Compared with the related art, the electronic device of the application comprises the screen assembly and the shooting assembly, wherein the screen assembly can be extended or contracted, and the shooting assembly can change the position along with the extension or contraction of the screen assembly. The present application utilizes a screen assembly to drive a camera assembly to track a target object. The method comprises the steps of determining a target object in a shooting scene of a shooting assembly, obtaining motion data of the target object, and correspondingly controlling the screen assembly to extend or contract according to the motion data of the target object so as to drive the shooting assembly to track the target object. Therefore, when tracking shooting is needed, a user does not need to manually adjust a shooting component of the electronic equipment to track the target object, the electronic equipment automatically controls the stretching of the screen component, the shooting component is driven to track the target object, and tracking shooting of the target object can be conveniently achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
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 according to an embodiment of the present application.
Fig. 3 is a third structural schematic diagram of an electronic device provided in the embodiment of the present application.
Fig. 4 is a fourth structural schematic diagram of an electronic device according to 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 flowchart illustrating an apparatus control method according to an embodiment of the present application.
Fig. 7 is an exemplary diagram of tracking a target object by using a screen assembly to drive a shooting assembly in the embodiment of the present application.
Fig. 8 is an exemplary diagram of an electronic device receiving an object specifying instruction in an embodiment of the present application.
Fig. 9 is a schematic structural diagram of a device control apparatus provided in an embodiment of the present application.
Fig. 10 is a sixth structural schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
It should be noted that the following description is by way of illustrative example of particular embodiments of the present application and should not be construed as limiting the application to other particular embodiments that are not detailed herein.
The embodiment of the application provides a device control method, a device control device, a storage medium and an electronic device. The main body of the device control method may be the electronic device provided in the embodiment of the present application, and the device control 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 screen assembly, i.e. the screen assembly can be extended or retracted. Wherein, this screen subassembly adopts flexible material for it can be crooked, curl and folding etc. thereby realizes the telescopic purpose. Based on this telescopic screen subassembly, electronic equipment can increase screen subassembly's visual area through stretching screen subassembly, promotes display effect, can also contract screen subassembly and reduce screen subassembly's visual area, reduces the consumption.
Referring to fig. 1-3, the electronic device 100 includes a housing assembly 10, a screen assembly 30, a driver 50, a driving mechanism 70, and a camera assembly 90.
The shell assembly 10 is a hollow structure; the components of the driver 50 and the driving mechanism 70 may be disposed in the housing assembly 10. It is understood that the electronic device 100 according to the embodiment of the present disclosure includes, but is not limited to, a mobile terminal such as a mobile phone, a tablet computer, or other portable electronic devices, and the electronic device 100 is taken as an example of a mobile phone herein 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 is used for accommodating components such as the driver 50 and the driving mechanism 70. 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 casing 14, one end of the screen assembly 30 is disposed on the first casing 12, the screen assembly 30 bypasses the driving element 50, and the other end of the screen assembly is disposed in the accommodating space 16, so that a part of the screen assembly is hidden in the accommodating space 16, and a part of the screen assembly 30 hidden in the accommodating space 16 can be unlit. When the first casing 12 and the second casing 14 are relatively far away from each other, the driving member 50 can drive the screen assembly 30 to be unfolded, so that more screen assemblies 30 are exposed out of the accommodating space 16. The portion of the screen assembly 30 exposed to the outside of the accommodating space 16 is lighted such that the visible area of the screen assembly 30 becomes large.
The driving member 50 may be a rotating shaft structure with teeth 52 on the outside, the screen assembly 30 is linked with the driving member 50 by engaging, and when the first casing 12 and the second casing 14 are relatively far away, the driving member 50 drives a part of the screen assembly 30 engaged with the driving member 50 to move and unfold.
It is understood that the driving member 50 can also be a circular shaft without the belt teeth 52, and when the first casing 12 and the second casing 14 are relatively far away, the driving member 50 can stretch apart the part of the screen assembly 30 that is wound around the driving member 50, so that more screen assemblies 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 the driving member 50 can rotate along with the movement of the screen assembly 30 when the screen assembly 30 is gradually opened. In other embodiments, the driver 50 can be fixed on the second housing 14, and the driver 50 has a smooth surface. When the screen assembly 30 is spread, the driver 50 is slidably contacted with the screen assembly 30 through its smooth surface.
When the first housing 12 and the second housing 14 are relatively close to each other, the screen assembly can be retracted by the driving member 50. Alternatively, the electronic device 100 further includes a reset element (not shown in the drawings), one end of the screen assembly accommodated in the accommodating space 16 is linked with the reset element, and when the first shell 12 and the second shell 14 are relatively close to each other, the reset element drives the screen assembly 30 to reset, so that a part of the screen assembly 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 housing 14, and the driving mechanism 70 is configured to drive the second housing 14 to move away from the first housing 12, so as to drive the screen 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.
In addition, the photographing assembly 90 may be provided with the second housing 14 such that when the second housing 14 and the first housing are relatively moved to drive the screen assembly 30 to be extended or retracted, the photographing assembly 90 can be simultaneously driven to change positions as the screen assembly 30 is extended or retracted.
Based on the electronic device provided above, the present application further provides a device control method applied to the electronic device, and as shown in fig. 6, a flow of the device control method provided in the embodiment of the present application may be as follows:
in step 210, a target object in a shooting scene of a shooting component is determined.
As described above, the electronic device to which the device control method provided by the present application is applied includes a screen assembly and a photographing assembly, the screen assembly can be extended or retracted, and the photographing assembly can change position as the screen assembly is extended or retracted.
The shooting assembly is configured to collect an image 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 an available electric signal to obtain a digitized image. After the capture component is enabled, the capture scene can be captured in real-time. 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 including a certain object, the area including the object is a shooting scene of the shooting component. Further, the screen component is configured to preview an image captured by the capture component.
In this embodiment, the electronic device first determines an object to be tracked from a shooting scene of the shooting component according to the configured object determination policy, and records the object as a target object. 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 takes a portrait shot, the user usually focuses on a person in the shot scene. Thus, the object determination policy may be configured as: and identifying an object in which the user is interested in the shooting scene, and determining the object in which the user is interested as a target object. The method for identifying the object interested by the user is not particularly limited, and a suitable identification mode may be configured by a person skilled in the art 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 an object in the salient region is correspondingly determined as a target object.
In step 220, motion data of the target object is acquired.
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 direction of the movement and a speed of the movement. How to acquire 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 step 230, the screen assembly is controlled to extend or retract according to the motion data of the target object, so as to drive the shooting assembly to track the target object.
In this embodiment, the electronic device controls the screen assembly to extend or retract according to the motion data of the target object, so as to drive the shooting assembly to track the target object. For example, referring to fig. 7, assuming that the determined target object is an illustrated person, when it is determined that the person moves to the right according to the movement data of the illustrated person, the electronic device correspondingly controls the screen component to extend, so as to drive the shooting component to move to the right, thereby realizing the tracking of the illustrated person; when the person moves leftwards according to the movement data of the figure, the electronic equipment correspondingly controls the screen assembly to contract, so that the shooting assembly is driven to move leftwards, and the figure is tracked.
From the above, the electronic device includes a screen assembly and a shooting assembly, the screen assembly can be extended or retracted, and the shooting assembly can change position along with the extension or retraction of the screen assembly. The present application utilizes a screen assembly to drive a camera assembly to track a target object. The method comprises the steps of determining a target object in a shooting scene of a shooting assembly, acquiring motion data of the target object, and correspondingly controlling a screen assembly to extend or contract according to the motion data of the target object so as to drive the shooting assembly to track the target object. Therefore, when tracking shooting is needed, a user does not need to manually adjust a shooting component of the electronic equipment to track the target object, the electronic equipment automatically controls the stretching of the screen component, the shooting component is driven to track the target object, and tracking shooting of the target object can be conveniently achieved.
In an optional embodiment, in order to realize more accurate tracking shooting, the motion data comprises the motion direction and the motion speed of the target object, and the target speed of the expansion or contraction of the screen assembly is determined according to the motion speed; and controlling the screen assembly to extend or retract according to the target speed according to the movement direction.
In this embodiment, the screen assembly is controlled to extend or contract according to the moving direction of the target object, and the speed of extending or contracting the screen assembly is controlled according to the moving speed of the target object.
It should be noted that, depending on the way the user holds the electronic device, the direction of the position change of the shooting component driven when the electronic device extends or retracts the screen component may also be different. In this embodiment, when the moving direction of the target object matches the direction of the change in position of the current screen-stretching driving shooting component, it is determined that the screen needs to be stretched, and when the moving direction of the target object matches the direction of the change in position of the current screen-shrinking driving shooting component, it is determined that the screen needs to be shrunk.
In addition, the electronic equipment determines the stretching speed corresponding to the movement speed of the target object as the target speed for stretching or shrinking the screen assembly according to the preset corresponding relation between the movement speed of the target object and the stretching speed of the screen assembly. Accordingly, the electronic device will control the screen assembly to extend or retract according to the determined target speed according to the moving direction of the target object.
In an alternative embodiment, in response to the input object specifying instruction, an object specified in the shooting scene by the object specifying instruction is determined as the target object.
In this embodiment, the electronic device passively determines a target object in a shooting scene. The electronic equipment can preview a scene image of a shooting scene shot by the shooting component in real time through the screen component, and receives an object specifying instruction aiming at the shooting scene through the screen component.
For example, referring to fig. 8, the electronic device previews a scene image of a shooting scene shot by the shooting component through the screen component. As shown in fig. 8, the shooting scene of the shooting component is a street, including the street itself, a vehicle driving on the street, a street tree on one side of the street, and the like, and assuming that the user desires the electronic device to perform tracking shooting on the object "black car" in the shooting scene, the user can directly click on the "black car" displayed by the screen component, so as to input an object specifying instruction to the electronic device, where the object specifying instruction is used to instruct the electronic device to use the "black car" in the shooting scene as a target object. 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 optional embodiment, a watching area of a current user on a screen component is obtained; 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 focuses on the object of interest in the scene, and when shooting, the user also usually performs tracking shooting on the object of interest in the shooting scene. Therefore, the target object in the shooting scene is determined using the user's gaze region in the present embodiment.
The electronic equipment firstly acquires a watching area of a current user on a screen component.
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 screen component 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.
After acquiring the gaze area of the current user on the screen component, the electronic device further determines an object corresponding to the gaze area in the shooting scene as a target object.
In an optional embodiment, a gaze point of a current user at a screen component is obtained; acquiring the gazing radius of a current user; and generating a circular watching area of the current user on the screen assembly 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 screen component. 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 during the gazing process is different, and the gazing radius is used in the embodiment of the present application to represent the clear range perceived by the users during the gazing process. Based on this, for each authorized user of the electronic device (for example, the owner of the electronic device, the owner authorized to use other users of the electronic device), the gaze radius corresponding to the authorized user is calibrated in advance in the embodiment of the present application, and the gaze radius is used to describe the range of clear perception during the gaze of the user. 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 camera 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, the object with the largest overlapping area of the imaging region and the circular gaze region in the shooting scene is determined 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.
In an optional embodiment, after the screen assembly is controlled to extend or retract according to the motion data so as to drive the shooting assembly to track the target object, the target imaging resolution of the shooting assembly is determined according to the area of the visible area of the screen assembly; adjusting the imaging resolution of the shooting assembly to the target imaging resolution; and previewing an image of the target object captured by the capture component at the target imaging resolution through the viewable area of the screen component.
It should be noted that, in the embodiment, the area of the visible region of the screen assembly changes when the screen assembly is extended or retracted, wherein the area of the visible region of the screen assembly increases when the screen assembly is extended, and the area of the visible region of the screen assembly decreases when the screen assembly is retracted. When the area of the visible region of the screen assembly is changed, the physical resolution that the screen assembly can display is changed. In this embodiment, for promoting the preview effect, carry out dynamic adjustment to the formation of image resolution ratio of shooting the subassembly according to screen pack's flexible to the image that makes the shooting subassembly shoot can be suitable for the preview of screen pack.
The electronic device first obtains the area of the visible area of the screen assembly, determines the display resolution corresponding to the visible area of the screen assembly according to the corresponding relationship between the area of the visible area and the display resolution (which may be configured by those skilled in the art according to actual needs, and is not specifically limited here), and then determines the imaging resolution of the shooting assembly corresponding to the display resolution of the screen assembly as the target imaging resolution of the shooting assembly according to the object relationship between the display resolution and the imaging resolution (which may be configured by those skilled in the art according to actual needs, and is not specifically limited here).
As described above, after the target imaging resolution of the photographing component is determined, the imaging resolution of the photographing component is correspondingly adjusted to the target imaging resolution, and the image of the target object photographed by the photographing component according to the target imaging resolution is previewed through the visible area of the screen component, so that the preview effect of the screen component is improved.
In one embodiment, the device control apparatus is applied to an electronic device including a screen assembly and a photographing assembly, the screen assembly being capable of being extended or retracted, and the photographing assembly being capable of changing a position as the screen assembly is extended or retracted. Referring to fig. 9, the device control apparatus 300 includes an object determining module 310, a data acquiring module 320, and a screen control module 330, wherein,
an object determination module 310 for determining a target object in a shooting scene of a shooting component;
a data acquisition module 320, configured to acquire motion data of a target object;
and the screen control module 330 is configured to control the screen assembly to extend or retract according to the motion data of the target object, so as to drive the shooting assembly to track the target object.
In an alternative embodiment, the motion data includes the motion direction and the motion speed of the target object, and the screen control module 330 is configured to:
determining a target speed of the expansion or contraction of the screen assembly according to the movement speed;
and controlling the screen assembly to extend or retract according to the target speed according to the movement direction.
In an alternative embodiment, the object determination module 310 is configured to:
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 an alternative embodiment, the object determination module 310 is configured to:
acquiring a watching area of a current user on a screen assembly;
and determining the object corresponding to the gazing area in the shooting scene as the target object.
In an alternative embodiment, the object determination module 310 is configured to:
acquiring a fixation point of a current user on a screen assembly;
acquiring the watching radius of a current user;
and taking the gazing point as an origin, and generating a circular gazing area of the current user on the screen assembly according to the gazing radius.
In an alternative embodiment, the object determination module 310 is configured to:
and determining the object with the largest overlapping area of the imaging area and the circular gazing area in the shooting scene as the target object.
In an optional embodiment, the device control apparatus further comprises an image preview module configured to:
determining the target imaging resolution of the shooting assembly according to the area of the visible area of the screen assembly;
adjusting the imaging resolution of the shooting assembly to the target imaging resolution;
an image of the target object captured by the visual area preview capture component at the target imaging resolution.
It should be noted that the device control apparatus provided in the embodiment of the present application and the device control method in the foregoing embodiment belong to the same concept, and specific implementation processes thereof are described in the foregoing embodiment and are not described herein again.
In an alternative embodiment, referring to fig. 10, the electronic device 100 includes a housing assembly 10, a processor 20, a screen assembly 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, but also may be a non-volatile memory, such as at least one magnetic disk storage device, a 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:
determining a target object in a shooting scene of a shooting component;
acquiring motion data of a target object;
and controlling the screen assembly to extend or contract according to the motion data of the target object so as to drive the shooting assembly to track the target object.
In an alternative embodiment, the motion data comprises a motion direction and a motion speed of the target object, and the processor 20 is configured to perform:
determining a target speed of the expansion or contraction of the screen assembly according to the movement speed;
and controlling the screen assembly to extend or retract according to the target speed according to the movement direction.
In an alternative embodiment, the processor 20 is configured to perform:
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 an alternative embodiment, the processor 20 is configured to perform:
acquiring a watching area of a current user on a screen assembly;
and determining the object corresponding to the gazing area in the shooting scene as the target object.
In an alternative embodiment, the processor 20 is configured to perform:
acquiring a fixation point of a current user on a screen assembly;
acquiring the watching radius of a current user;
and taking the gazing point as an origin, and generating a circular gazing area of the current user on the screen assembly according to the gazing radius.
In an alternative embodiment, the processor 20 is configured to perform:
and determining the object with the largest overlapping area of the imaging area and the circular gazing area in the shooting scene as the target object.
In an alternative embodiment, after controlling the screen assembly to extend or retract to drive the camera assembly to track the target object according to the motion data of the target object, the processor 20 is further configured to perform:
determining the 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 assembly to the target imaging resolution;
an image of the target object captured by the capture component at the target imaging resolution is previewed via the viewable area.
It should be noted that the electronic device 100 provided in the embodiment of the present application and the device control method in the foregoing embodiment belong to the same concept, and details of a specific implementation process thereof are given in the embodiment of the feature extraction method, and are not described herein again.
It should be noted that, for the device control method of the embodiment of the present application, it can be understood by those skilled in the art 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, 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, where the screen component can be extended or retracted, and the shooting component can change position along with the extension or retraction of the screen component), and executed by a processor in the electronic device, and during the execution, the process may include, for example, the process of the embodiment of the device control method. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
The above detailed description is provided for a device control method, apparatus, storage medium and electronic device provided in the embodiments of the present application, and specific examples are applied herein to explain the principles and implementations of the present application, and the description of the above embodiments is only used to help understanding the method and its core idea 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. An apparatus control method applied to an electronic apparatus including a screen assembly and a camera assembly, wherein the screen assembly is capable of being extended or retracted, and the camera assembly is capable of changing a position with extension or retraction of the screen assembly, the apparatus control method comprising:
determining a target object in a shooting scene of the shooting component;
acquiring motion data of the target object;
and controlling the screen assembly to extend or contract according to the motion data so as to drive the shooting assembly to track the target object.
2. The device control method according to claim 1, wherein the motion data includes a motion direction and a motion speed of the target object, and the controlling the screen assembly to extend or retract to drive the camera assembly to track the target object according to the motion data includes:
determining a target speed of the expansion or contraction of the screen assembly according to the movement speed;
and controlling the screen assembly to extend or retract according to the target speed according to the motion direction.
3. The device control method according to claim 1, wherein the determining a target object in a shooting scene of the shooting component comprises:
in response to an input object specifying instruction, determining an object specified in the photographing scene by the object specifying instruction as the target object.
4. The device control method according to claim 1, wherein the determining a target object in a shooting scene of the shooting component comprises:
acquiring a watching area of a current user on the screen component;
and determining the object corresponding to the gazing area in the shooting scene as the target object.
5. The device control method according to claim 4, wherein the acquiring of the current user's gaze area at the screen component comprises:
acquiring a fixation point of the current user on the screen component;
obtaining the gazing radius of the current user;
and generating a circular watching area of the current user on the screen component according to the watching radius by taking the watching point as an origin.
6. The device control method according to claim 5, wherein the determining, as the target object, an object in the photographic scene that corresponds to the gaze region includes:
and determining the object with the largest overlapping area of the imaging region and the circular gazing region in the shooting scene as the target object.
7. The device control method according to any one of claims 1 to 6, wherein after controlling the screen assembly to extend or retract according to the motion data to drive the camera assembly to track the target object, the method further comprises:
determining the target imaging resolution of the shooting assembly according to the area of the visible area of the screen assembly;
adjusting an imaging resolution of the capture assembly to the target imaging resolution;
previewing an image of the target object captured by the capture component at the target imaging resolution through the viewable area.
8. An apparatus control device applied to an electronic apparatus, wherein the electronic apparatus includes a screen assembly and a camera assembly, the screen assembly can be extended or retracted, and the camera assembly can change position along with extension or retraction of the screen assembly, the apparatus control device comprising:
the object determination module is used for determining a target object in a shooting scene of the shooting component;
the data acquisition module is used for acquiring the motion data of the target object;
and the screen control module is 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.
9. A storage medium having a computer program stored thereon, wherein the steps in the device control method according to any one of claims 1 to 7 are performed when the computer program is loaded by a processor.
10. An electronic device comprising a screen assembly, a camera assembly processor and a memory, the memory storing a computer program, wherein the screen assembly is extendable or retractable, the camera assembly is capable of changing position as the screen assembly is extended or retracted, and the processor is configured to execute the steps of the device control method according to any one of claims 1 to 7 by loading the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110990935.9A CN115734067A (en) | 2021-08-26 | 2021-08-26 | Device control method, device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110990935.9A CN115734067A (en) | 2021-08-26 | 2021-08-26 | Device control method, device, storage medium and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115734067A true CN115734067A (en) | 2023-03-03 |
Family
ID=85290073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110990935.9A Pending CN115734067A (en) | 2021-08-26 | 2021-08-26 | Device control method, device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115734067A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106648035A (en) * | 2016-11-29 | 2017-05-10 | 维沃移动通信有限公司 | Image resolution adjusting method and mobile terminal |
CN106713747A (en) * | 2016-11-29 | 2017-05-24 | 维沃移动通信有限公司 | Focusing method and mobile terminal |
CN108196783A (en) * | 2018-01-31 | 2018-06-22 | 努比亚技术有限公司 | Acquisition parameters adjusting method, mobile terminal and computer readable storage medium |
US20190261519A1 (en) * | 2018-02-22 | 2019-08-22 | Samsung Electronics Co., Ltd. | Electronic device including flexible display and method for controlling same |
CN111050082A (en) * | 2019-12-30 | 2020-04-21 | 维沃移动通信有限公司 | Video shooting method and electronic equipment |
CN111246101A (en) * | 2020-01-22 | 2020-06-05 | 维沃移动通信有限公司 | Photographing method and electronic equipment |
CN112506345A (en) * | 2020-12-10 | 2021-03-16 | 北京达佳互联信息技术有限公司 | Page display method and device, electronic equipment and storage medium |
CN112947687A (en) * | 2021-03-02 | 2021-06-11 | Oppo广东移动通信有限公司 | Device control method, device, storage medium and electronic device |
-
2021
- 2021-08-26 CN CN202110990935.9A patent/CN115734067A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106648035A (en) * | 2016-11-29 | 2017-05-10 | 维沃移动通信有限公司 | Image resolution adjusting method and mobile terminal |
CN106713747A (en) * | 2016-11-29 | 2017-05-24 | 维沃移动通信有限公司 | Focusing method and mobile terminal |
CN108196783A (en) * | 2018-01-31 | 2018-06-22 | 努比亚技术有限公司 | Acquisition parameters adjusting method, mobile terminal and computer readable storage medium |
US20190261519A1 (en) * | 2018-02-22 | 2019-08-22 | Samsung Electronics Co., Ltd. | Electronic device including flexible display and method for controlling same |
CN111050082A (en) * | 2019-12-30 | 2020-04-21 | 维沃移动通信有限公司 | Video shooting method and electronic equipment |
CN111246101A (en) * | 2020-01-22 | 2020-06-05 | 维沃移动通信有限公司 | Photographing method and electronic equipment |
CN112506345A (en) * | 2020-12-10 | 2021-03-16 | 北京达佳互联信息技术有限公司 | Page display method and device, electronic equipment and storage medium |
CN112947687A (en) * | 2021-03-02 | 2021-06-11 | Oppo广东移动通信有限公司 | Device control method, device, storage medium and electronic device |
Non-Patent Citations (1)
Title |
---|
秦华标;严伟洪;王信亮;余翔宇;: "一种可克服头动影响的视线跟踪系统", 电子学报, no. 12, 15 December 2013 (2013-12-15) * |
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 | |
CN113747050B (en) | Shooting method and equipment | |
JP6192940B2 (en) | Photography equipment and cooperative photography method | |
US20080080846A1 (en) | Selecting autofocus area in an image | |
US9300858B2 (en) | Control device and storage medium for controlling capture of images | |
CN109151340A (en) | Method for processing video frequency, device and electronic equipment | |
US20160316138A1 (en) | Imaging device, imaging method, and program | |
US8988535B2 (en) | Photographing control method and apparatus according to motion of digital photographing apparatus | |
KR102407190B1 (en) | Image capture apparatus and method for operating the image capture apparatus | |
KR20090022392A (en) | Apparatus and method for picturing image using function of face drecognition | |
CN107395957B (en) | Photographing method and device, storage medium and electronic equipment | |
CN107517345B (en) | Shooting preview method and capture apparatus | |
CN113596316B (en) | Photographing method and electronic equipment | |
CN110213492B (en) | Device imaging method and device, storage medium and electronic device | |
CN113905182B (en) | Shooting method and equipment | |
JP2015119277A (en) | Display apparatus, display method, and display program | |
CN113840070A (en) | Shooting method, shooting device, electronic equipment and medium | |
WO2023030223A1 (en) | Photographing method and apparatus, and electronic device | |
CN114125179A (en) | Shooting method and device | |
CN104580899B (en) | The control method and imaging device of image objects | |
CN110602397A (en) | Image processing method, device, terminal and storage medium | |
CN115766917A (en) | Method and device for adjusting field angle, storage medium and electronic equipment | |
CN113302908B (en) | Control method, handheld cradle head, system and computer readable storage medium | |
CN113810627A (en) | Video processing method and device and mobile terminal |
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 |