CN112738404A - Control method of electronic equipment and electronic equipment - Google Patents

Control method of electronic equipment and electronic equipment Download PDF

Info

Publication number
CN112738404A
CN112738404A CN202011606746.9A CN202011606746A CN112738404A CN 112738404 A CN112738404 A CN 112738404A CN 202011606746 A CN202011606746 A CN 202011606746A CN 112738404 A CN112738404 A CN 112738404A
Authority
CN
China
Prior art keywords
information
rotation
target video
electronic device
user
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.)
Granted
Application number
CN202011606746.9A
Other languages
Chinese (zh)
Other versions
CN112738404B (en
Inventor
张人众
李长阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202011606746.9A priority Critical patent/CN112738404B/en
Publication of CN112738404A publication Critical patent/CN112738404A/en
Application granted granted Critical
Publication of CN112738404B publication Critical patent/CN112738404B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a control method of electronic equipment and the electronic equipment, and belongs to the technical field of electronics. The method comprises the following steps: displaying a playing interface of the target video; acquiring rotation information of the target video, wherein the rotation information is information acquired when the target video is recorded; and in the process of playing the target video, controlling the movement of the holder according to the rotation information so as to drive the electronic equipment to move. Therefore, when the target video is played, the movement of the holder can be controlled according to the rotation information of the target video so as to drive the electronic equipment to move, and the position of the electronic equipment does not need to be manually adjusted by a user, so that the operation of the user is simplified.

Description

Control method of electronic equipment and electronic equipment
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a control method of electronic equipment and the electronic equipment.
Background
With the development of electronic technology, more and more functions can be implemented on electronic devices. The current electronic equipment generally has the functions of playing video or audio, and the like, and can be arranged on a holder for playing. In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art: when a user views content on the electronic device and needs to adjust the position of the electronic device, manual adjustment is usually performed, which results in tedious operation for the user.
Disclosure of Invention
The embodiment of the application aims to provide a control method of electronic equipment and the electronic equipment, and the problem that the operation of a user is complicated due to the fact that the user manually adjusts the position of the electronic equipment can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a method for controlling an electronic device, where the electronic device is connected to a cradle head, and the method includes:
displaying a playing interface of the target video;
acquiring rotation information of the target video, wherein the rotation information is information acquired when the target video is recorded;
and in the process of playing the target video, controlling the movement of the holder according to the rotation information so as to drive the electronic equipment to move.
In a second aspect, an embodiment of the present application provides a control apparatus for an electronic device, which is applied to an electronic device, where the electronic device is connected to a cradle head, and the apparatus includes:
the display module is used for displaying a playing interface of the target video;
the first acquisition module is used for acquiring rotation information of the target video, wherein the rotation information is information acquired when the target video is recorded;
and the control module is used for controlling the movement of the holder according to the rotation information in the process of playing the target video so as to drive the electronic equipment to move.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, a playing interface of a target video is displayed; acquiring rotation information of the target video, wherein the rotation information is information acquired when the target video is recorded; and in the process of playing the target video, controlling the movement of the holder according to the rotation information so as to drive the electronic equipment to move. Therefore, when the target video is played, the movement of the holder can be controlled according to the rotation information of the target video so as to drive the electronic equipment to move, and the position of the electronic equipment does not need to be manually adjusted by a user, so that the operation of the user is simplified.
Drawings
Fig. 1 is a flowchart of a control method of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic state diagram of an electronic device in a control method of the electronic device according to an embodiment of the present application;
fig. 3 is a second schematic diagram of a state of an electronic device in a control method of the electronic device according to an embodiment of the present application;
fig. 4 is one of schematic display interfaces of an electronic device in a control method of the electronic device according to an embodiment of the present application;
fig. 5 is a second schematic view of a display interface of an electronic device in a method for controlling the electronic device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device and a pan-tilt in a control method of the electronic device provided in the embodiment of the present application;
fig. 7 is a schematic structural diagram of a control device of an electronic device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 9 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail a control method for an electronic device and the electronic device provided in the embodiments of the present application with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is a flowchart of a control method of an electronic device according to an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
and step 101, displaying a playing interface of the target video.
The acquisition mode of the target video is not limited herein, for example: the electronic equipment displaying the playing interface of the target video can be first electronic equipment, and the target video can be a video obtained by shooting by other electronic equipment and then sent to the first electronic equipment by the other electronic equipment; of course, the target video may also be a video captured by the first electronic device; in addition, the target video may also be a video downloaded by the first electronic device on the server, and the target video may be uploaded to the server by the other electronic devices.
And 102, obtaining rotation information of the target video, wherein the rotation information is information acquired when the target video is recorded.
The type of the rotation information is not limited herein, and for example: the rotation information includes at least one of an angle and a distance between the electronic device and a predetermined plane when the target video is recorded, and the predetermined plane may be a horizontal plane or a vertical plane (i.e., a plane perpendicular to the horizontal plane).
In addition, as an alternative embodiment, as shown in fig. 2, a spatial rectangular coordinate system may be established with a display screen of the electronic device as a reference surface, and the rotation information may include a translation distance and a rotation angle along directions X, Y and the Z axis, that is, X, Y and the Z axis correspond to a translation distance and a rotation angle, respectively. See in particular the corresponding expressions in relation to fig. 2 below.
The acquisition mode of the rotation information is not limited herein, for example: the rotation information may be acquired by at least one of a sensor and a camera.
For example: as an optional implementation manner, the rotation information is information acquired by a gyroscope; or the rotation information is acquired through gravity sensing and an image recognition algorithm. Therefore, the acquisition mode of the rotation information is more diversified and flexible.
In addition, if the types of the rotation information are different, the corresponding acquisition methods may be different. For example: the translation distance in the Z direction in fig. 2 can be obtained by gravity sensing, and the rotation angle in the Z-axis direction can be calculated by an image recognition algorithm.
And 103, controlling the movement of the holder according to the rotation information in the process of playing the target video so as to drive the electronic equipment to move.
Wherein, because the rotation information is the information of gathering when shooing the target video, when electronic equipment was in the positional information of rotation information promptly, electronic equipment was better to the broadcast effect of target video, for example: some target videos are videos shot when the electronic device is tilted, and in order to ensure the watching effect of the first user, the electronic device needs to be tilted to play the target videos, so that it can be ensured that the target videos are in an upright playing state in the eyes of the first user, and the first user does not need to tilt to watch the target videos.
Therefore, in this embodiment, the position information of the electronic device is adjusted according to the rotation information, so that the playing effect of the electronic device on the target video is enhanced, and meanwhile, the operation of the first user is simplified, so that the first user does not need to manually adjust the position information of the electronic device, that is, the electronic device can control the holder to drive the electronic device to move to a predetermined position based on the rotation information, and thus the playing effect is better.
As an optional implementation manner, before controlling the pan/tilt head to move according to the rotation information to drive the electronic device to move, the method further includes:
acquiring first state information of a first user, wherein the first state information comprises a distance and/or a rotation angle of the first user relative to the electronic equipment;
the according to the rotation information control the cloud platform motion to drive the electronic equipment motion, include:
and controlling the holder to move according to the rotation information and the first state information so as to drive the electronic equipment to move, so that the angle between the playing interface of the target video and the sight line of the first user is within a preset range.
It should be noted that, the principle of controlling the motion of the pan/tilt head based on the rotation information may be referred to the corresponding expression in the above embodiment, and the difference between the embodiment and the above embodiment mainly lies in: the embodiment can control the movement of the holder by combining the first state information and the rotation information of the first user, so that the target video can be better watched by the first user, even if the angle between the playing interface of the target video and the sight line of the first user is within the preset range, and the watching effect of the first user on the target video can be further enhanced.
The distance between the first user and the electronic device may refer to a distance between an eye of the user and a certain target position on a display screen of the electronic device, and the target position may be a center position of the display screen or a position where the display interface is located.
The rotation angle may be an angle of rotation in a certain direction, for example: when the first user approaches the top end of the electronic device (generally, the end provided with the front camera is considered as the top end), and the first user is far away from the bottom end of the electronic device (the end arranged opposite to the top end), the cradle head can be controlled to drive the electronic device to rotate along the counterclockwise direction along the middle position between the top end and the bottom end of the electronic device, so that the distances between the top end and the user and the distances between the bottom end and the user are both equal, that is, the first user can be arranged opposite to the display screen of the electronic device, and the counterclockwise rotation angle can be referred to as a rotation angle. Of course, other rotation angles in other directions may be included, and are not described in detail herein.
The manner of obtaining the first state information of the first user is not limited herein, for example: as an optional implementation manner, the electronic device includes a camera, a structured light module, and a Time of flight (TOF) module, and the first state information is obtained through at least one of the camera, the structured light module, and the TOF module.
Therefore, the first state information can be obtained through at least one of the camera, the structured light module and the TOF module, so that the diversity and flexibility of the first state information obtaining mode are improved.
The camera can be located on the first surface where the display screen is located, and at this time, the camera can be called as a front camera; of course, the camera may also be located on a second surface opposite to the first surface where the display screen is located, and in this case, the camera may also be referred to as a rear camera. It should be noted that the front camera and the rear camera may be arranged at the same time.
In addition, when the first state information needs to be acquired through at least two of the camera, the structured light module and the TOF module, at least two of the camera, the structured light module and the TOF module can cooperate to acquire the first state information.
In addition, the structured light module may also be referred to as a 3D structured light module, which may be used for 3D depth data acquisition and output.
As an optional implementation manner, the first state information includes at least part of information in three coordinate axis directions of a spatial rectangular coordinate system, where the spatial rectangular coordinate system is a coordinate system established according to a plane on which a display screen of the electronic device is located, and the information in the three coordinate axis directions includes: a first distance along a Y-axis direction, a first angle of rotation along the Y-axis direction, a second distance along a Z-axis direction, a second angle of rotation along the Z-axis direction, a third distance along an X-axis direction, and a third angle of rotation along the X-axis direction.
The straight line along the Y-axis direction and the straight line along the Z-axis direction may be parallel to a plane where the display screen is located, and the straight line along the X-axis direction may be perpendicular to the plane where the display screen is located, that is, the X-axis direction may also be referred to as a normal direction of the plane where the display screen is located.
In addition, referring to fig. 2, in the right-hand cartesian coordinate system, the Y-axis may also be referred to as a pitch (pitch) axis, the first rotation angle may also be referred to as a rotation angle of the pitch axis, that is, the first rotation angle may be an angle of rotation around the pitch axis, the Z-axis may also be referred to as a yaw (yaw) axis, the second rotation angle may also be referred to as a rotation angle of the yaw axis, that is, the second rotation angle may be an angle of rotation around the yaw axis, the X-axis may also be referred to as a roll (roll) axis, and the third rotation angle may also be referred to as a rotation angle of the roll axis, that is, the third rotation angle may be an angle of rotation around the roll axis, which may facilitate labeling.
Of course, the first distance, the second distance, and the third distance may also be referred to as translation axes.
In addition, referring to fig. 3, fig. 3 includes a human eye 32 and an electronic device 31, where X represents an X-axis direction, and fig. 3 also includes a first rotation angle 33 between a direction in which a connection line between the human eye 32 and the electronic device 31 (which may also be referred to as a line of sight of the human eye 32) is located and the X-axis direction. At this time, if it is desired to achieve that the angle between the playing interface of the target video and the line of sight of the first user is within the preset range (for example, the first user and the playing interface of the target video may be arranged oppositely), the electronic device needs to be controlled to rotate clockwise around the direction perpendicular to the paper by an angle corresponding to the first rotation angle 33, so that the X-axis direction can be overlapped with the line of sight of the human eye 32.
The first distance may refer to a partial distance of a target distance between a projection position of a position where an eye of the first user is located on a plane where the display screen is located and the second position along the Y-axis direction, and similarly, the second distance is a partial distance of the target distance along the Z-axis direction, that is, the first distance and the second distance may be synthesized to obtain the target distance (a specific principle may refer to a principle of a resultant force and a component force). The third distance may then be a distance between the location of the first user's eyes and the second location on the display screen.
Thus, the first state information comprises at least part of the first distance, the first rotation angle, the second distance, the second rotation angle, the third distance and the third rotation angle, namely the first state information comprises more information types, so that the accuracy of the adjustment result of the position of the electronic equipment can be ensured, and the user experience is further enhanced.
As an optional implementation manner, the acquiring the first state information of the first user includes:
acquiring a target image through the camera, wherein the target image comprises the face characteristics of the first user;
obtaining the first distance, the second distance, and the third rotation angle according to the position of the human face feature, determining the third distance by the TOF module, and obtaining the first rotation angle and the second rotation angle by the structured light module.
The target image can be a preview image, that is, a preview image of a user can be acquired in real time through the camera.
For example: when the camera is a front-facing camera, referring to fig. 4, the image shown in fig. 4 is a target image of the first user obtained in an ideal state, and at this time, the face feature in the target image is a face feature of the first user facing the display screen, that is, the direction of the connection line between the two eyes of the first user is parallel to the Y-axis direction and perpendicular to the Z-axis direction; referring to fig. 5, fig. 5 is a target image of the first user obtained in an actual state, where a direction of a connection line between two eyes of a face feature in the target image forms an acute angle with the Y axis, and also forms an acute angle with the Z axis. While referring to fig. 5, a third rotation angle 51 (which may also be referred to as a roll angle) may also be included in fig. 5.
In addition, the first distance and the second distance may be determined according to the difference between the positions of the parts of the human face features in fig. 4 and 5, for example: the distance between the left eye of the face feature and the top corner of the upper left corner in the image 4 along the Y-axis direction is 5, while the distance between the left eye of the face feature and the top corner of the upper left corner in the image 5 along the Y-axis direction is 10, so that the first distance is 5; the distance in the Z-axis direction between the left eye of the face feature and the top corner of the upper left corner in fig. 4 is 3, and the distance in the Z-axis direction between the left eye of the face feature and the top corner of the upper left corner in fig. 5 is 10, then the second distance is 7.
And confirm the third distance through the TOF module to and confirm first rotation angle and second rotation angle according to the structured light module and then can confirm according to the function of TOF module and structured light module, no longer describe herein.
In addition, when the pan/tilt head is controlled to move, the distance corresponding to the opposite movement of each piece of first state information obtained by the above determination may be used, so that an angle between the playing interface of the target video and the line of sight of the first user may be controlled to be within a preset range (in this embodiment, the playing interface is illustrated as being perpendicular to the line of sight of the first user).
It should be noted that, the value of the preset range is not specifically limited herein, and the fact that the playing interface is perpendicular to the line of sight of the first user (the angle between the playing interface and the line of sight is 90 degrees) in this embodiment is only an exemplary illustration.
Thus, the first distance, the second distance and the third rotation angle are determined through the camera, the third distance is determined through the TOF module, the first rotation angle and the second rotation angle are determined through the structured light module, and the first state information can be determined at a higher rate through division and cooperation of the camera, the TOF module and the structured light module compared with a mode of determining the first state information only in one mode.
It should be noted that, in this embodiment, when the electronic device moves along with the pan/tilt/zoom apparatus, the playing interface of the target video is relatively stable with respect to the first user, and the phenomena of dizzy when the first user watches the playing interface are reduced, so as to enhance the playing effect.
Referring to fig. 6, the electronic device 61 is detachably mounted on the cradle head 62, and the electronic device 61 and the cradle head 62 can be electrically connected. And the motion of the head 62 may include at least one of rotation, movement, and bending.
The position of the electronic device before moving with the pan/tilt head 62 is the position 63 in fig. 6, and the position of the electronic device after moving with the pan/tilt head 62 is the position 61 in fig. 6, at this time, the electronic device 61 is arranged opposite to the user 64, so that the viewing experience of the user is enhanced.
In addition, when the electronic equipment is arranged on the holder, the anti-shake effect is better when the electronic equipment plays the playing interface of the target video.
It should be noted that, when controlling the motion of the pan/tilt head, the pan/tilt head may be controlled to move in a direction opposite to the first state information, for example: if the first distance is offset 5 to the right and the second distance is offset 3 to the bottom, the pan/tilt head can be controlled to translate 5 to the left and translate 3 to the top. Accordingly, the control principles of the first rotation angle, the second rotation angle, the third rotation angle and the third distance are similar to the first distance and the second distance, and are not described in detail herein.
As an optional implementation manner, after controlling the pan/tilt head to move according to the rotation information and the first state information to drive the electronic device to move, so that an angle between a playing interface of the target video and a line of sight of the first user is within a preset range, the method further includes:
acquiring a target distance between the moved electronic equipment and the first user;
and adjusting the display size of the playing interface according to the target distance.
The target distance is the distance between the position of the electronic equipment and the first user after the electronic equipment is driven by the holder to move.
The determination mode of the target distance and the third distance may be the same, that is, both the target distance and the third distance may be determined by the TOF module.
When the target distance is greater than the preset distance, which indicates that the user is far away from the electronic equipment at the moment, the display interface can be enlarged, namely the display size of the playing interface is increased; when the target distance is smaller than the preset distance, which indicates that the user is closer to the electronic device at this time, the display interface can be reduced, that is, the display size of the playing interface is reduced.
Therefore, the size of the playing interface on the display screen is adjusted through the target distance between the user and the electronic equipment, and the playing effect of the display screen on the target video can be further enhanced.
The embodiment of the application can be applied to the target distance acquired through the TOF module, so that the playing interface of the target video is amplified and reduced in real time, and the playing effect of the electronic equipment on the target video is further enhanced.
It should be noted that, because the target distance has a large influence on the change of the display size of the display interface, the display interface can only be adjusted within a small range, and therefore, the playing effect of the electronic device can only be adjusted within a small range.
As an optional implementation, the rotation information includes: and when the target video is recorded, acquiring second state information of a second user, wherein the second state information comprises the distance and/or the rotation angle of the second user relative to the electronic equipment for recording the target video.
The electronic device for playing the target video and the electronic device for recording the target video can be the same electronic device or different electronic devices. Accordingly, the first user and the second user may be the same user or different users.
For the second state information, reference may be made to corresponding expressions of the first state information in the foregoing embodiments, and details are not described herein again.
That is to say: when the second state information and the first state information include the same information type, that is, the second state information may also include the first distance, the second distance, the third distance, the first rotation angle, the second rotation angle and the third rotation angle, the second rotation angle and the second distance may be acquired through gravity sensing, the third rotation angle of the multimedia file with respect to the ground may be roughly calculated by using an image recognition algorithm, and the third distance may be measured by using a TOF module, at this time, the first distance and the first rotation angle may not be measured, thereby reducing the workload of the electronic device and reducing the occupation of computing resources.
In this embodiment, since the rotation information includes the second state information of the second user when the target video is recorded, the pan-tilt can be controlled to move to a specific position according to the rotation information when the target video is played, and meanwhile, the prompt information can be displayed to prompt the first user to be located at the position where the second user is located when the target video is recorded, so that the first user has a better watching effect on the target video, and the first user is prevented from being dizzy when watching the target video.
In the embodiment of the present application, the electronic Device may be a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
In the embodiment of the application, through steps 101 to 103, when the target video is played, the motion of the holder can be controlled according to the rotation information of the target video to drive the electronic device to move, and the position of the electronic device does not need to be manually adjusted by a user, so that the operation of the user is simplified.
In the control method of the electronic device provided in the embodiment of the present application, the execution main body may be a control device of the electronic device, or a control module in the control device of the electronic device, for executing the control method of the electronic device. In the embodiment of the present application, a method for controlling an electronic device by a control device of the electronic device is taken as an example, and the control device of the electronic device provided in the embodiment of the present application is described.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a control apparatus of an electronic device according to an embodiment of the present application, where the control apparatus of the electronic device is applied to the electronic device, and the electronic device is connected to a pan/tilt head, as shown in fig. 7, the control apparatus 700 of the electronic device includes:
the display module 701 is used for displaying a playing interface of a target video;
a first obtaining module 702, configured to obtain rotation information of the target video, where the rotation information is information acquired when the target video is recorded;
and the control module 703 is configured to control the motion of the pan/tilt head according to the rotation information in the process of playing the target video, so as to drive the electronic device to move.
Optionally, the apparatus further comprises:
a second obtaining module, configured to obtain first status information of a first user, where the first status information includes a distance and/or a rotation angle of the first user with respect to the electronic device;
the control module is further configured to control the movement of the holder according to the rotation information and the first state information, so as to drive the electronic device to move, so that an angle between a playing interface of the target video and a line of sight of the first user is within a preset range.
Optionally, the apparatus further comprises:
the third acquisition module is used for acquiring the target distance between the moved electronic equipment and the first user;
and the adjusting module is used for adjusting the display size of the playing interface according to the target distance.
Optionally, the rotation information includes: and when the target video is recorded, acquiring second state information of a second user, wherein the second state information comprises the distance and/or the rotation angle of the second user relative to the electronic equipment for recording the target video.
Optionally, the first state information includes at least part of information in three coordinate axis directions of a spatial rectangular coordinate system, where the spatial rectangular coordinate system is a coordinate system established according to a plane where a display screen of the electronic device is located, and the information in the three coordinate axis directions includes: a first distance along a Y-axis direction, a first angle of rotation along the Y-axis direction, a second distance along a Z-axis direction, a second angle of rotation along the Z-axis direction, a third distance along an X-axis direction, and a third angle of rotation along the X-axis direction.
Optionally, the rotation information is information acquired by a gyroscope; or the rotation information is acquired through gravity sensing and an image recognition algorithm.
Therefore, when the target video is played, the movement of the holder can be controlled according to the rotation information of the target video so as to drive the electronic equipment to move, and the position of the electronic equipment does not need to be manually adjusted by a user, so that the operation of the user is simplified.
The control device of the electronic device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The control device of the electronic apparatus in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The control device of the electronic device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 6, and is not described here again to avoid repetition.
Optionally, as shown in fig. 8, an electronic device 800 is further provided in this embodiment of the present application, and includes a processor 801, a memory 802, and a program or an instruction stored in the memory 802 and executable on the processor 801, where the program or the instruction, when executed by the processor 801, implements each process of the above-mentioned embodiment of the control method of the electronic device, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a camera, and a processor 910.
Those skilled in the art will appreciate that the electronic device 900 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The display unit 906 is used for displaying a playing interface of the target video;
a processor 910, configured to obtain rotation information of the target video, where the rotation information is information acquired when the target video is recorded; and in the process of playing the target video, controlling the movement of the holder according to the rotation information so as to drive the electronic equipment to move.
Optionally, the processor 910 is further configured to obtain first status information of a first user, where the first status information includes a distance and/or a rotation angle of the first user relative to the electronic device;
the controlling, executed by the processor 910, the motion of the cradle head according to the rotation information to drive the electronic device to move includes:
and controlling the holder to move according to the rotation information and the first state information so as to drive the electronic equipment to move, so that the angle between the playing interface of the target video and the sight line of the first user is within a preset range.
Optionally, the processor 910 is further configured to obtain a target distance between the moved electronic device and the first user; and adjusting the display size of the playing interface according to the target distance.
Optionally, the rotation information includes: and when the target video is recorded, acquiring second state information of a second user, wherein the second state information comprises the distance and/or the rotation angle of the second user relative to the electronic equipment for recording the target video.
Optionally, the first state information includes at least part of information in three coordinate axis directions of a spatial rectangular coordinate system, where the spatial rectangular coordinate system is a coordinate system established according to a plane where a display screen of the electronic device is located, and the information in the three coordinate axis directions includes: a first distance along a Y-axis direction, a first angle of rotation along the Y-axis direction, a second distance along a Z-axis direction, a second angle of rotation along the Z-axis direction, a third distance along an X-axis direction, and a third angle of rotation along the X-axis direction.
Optionally, the rotation information is information acquired by a gyroscope; or the rotation information is acquired through gravity sensing and an image recognition algorithm.
Therefore, when the target video is played, the movement of the holder can be controlled according to the rotation information of the target video so as to drive the electronic equipment to move, and the position of the electronic equipment does not need to be manually adjusted by a user, so that the operation of the user is simplified.
It should be understood that, in the embodiment of the present application, the input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics Processing Unit 9041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 907 includes a touch panel 9071 and other input devices 9072. A touch panel 9071 also referred to as a touch screen. The touch panel 9071 may include two parts, a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 909 can be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 910 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the control method embodiment of the electronic device, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the control method embodiment of the electronic device, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (14)

1. A control method of an electronic device, wherein the electronic device is connected with a holder, the method comprising:
displaying a playing interface of the target video;
acquiring rotation information of the target video, wherein the rotation information is information acquired when the target video is recorded;
and in the process of playing the target video, controlling the movement of the holder according to the rotation information so as to drive the electronic equipment to move.
2. The method according to claim 1, wherein before controlling the pan/tilt head to move according to the rotation information to move the electronic device, the method further comprises:
acquiring first state information of a first user, wherein the first state information comprises a distance and/or a rotation angle of the first user relative to the electronic equipment;
the according to the rotation information control the cloud platform motion to drive the electronic equipment motion, include:
and controlling the holder to move according to the rotation information and the first state information so as to drive the electronic equipment to move, so that the angle between the playing interface of the target video and the sight line of the first user is within a preset range.
3. The method according to claim 2, wherein after controlling the pan/tilt head to move according to the rotation information and the first state information to drive the electronic device to move so that an angle between a playing interface of the target video and a line of sight of the first user is within a preset range, the method further comprises:
acquiring a target distance between the moved electronic equipment and the first user;
and adjusting the display size of the playing interface according to the target distance.
4. The method of claim 1, wherein the rotation information comprises: and when the target video is recorded, acquiring second state information of a second user, wherein the second state information comprises the distance and/or the rotation angle of the second user relative to the electronic equipment for recording the target video.
5. The method according to claim 2, wherein the first state information includes at least part of information in three coordinate axis directions of a spatial rectangular coordinate system, the spatial rectangular coordinate system is a coordinate system established according to a plane on which a display screen of the electronic device is located, and the information in the three coordinate axis directions includes: a first distance along a Y-axis direction, a first angle of rotation along the Y-axis direction, a second distance along a Z-axis direction, a second angle of rotation along the Z-axis direction, a third distance along an X-axis direction, and a third angle of rotation along the X-axis direction.
6. The method of claim 1, wherein the rotation information is information collected by a gyroscope; or the rotation information is acquired through gravity sensing and an image recognition algorithm.
7. The utility model provides a controlling means of electronic equipment which characterized in that is applied to electronic equipment, electronic equipment and cloud platform are connected, the device includes:
the display module is used for displaying a playing interface of the target video;
the first acquisition module is used for acquiring rotation information of the target video, wherein the rotation information is information acquired when the target video is recorded;
and the control module is used for controlling the movement of the holder according to the rotation information in the process of playing the target video so as to drive the electronic equipment to move.
8. The apparatus of claim 7, further comprising:
a second obtaining module, configured to obtain first status information of a first user, where the first status information includes a distance and/or a rotation angle of the first user with respect to the electronic device;
the control module is further configured to control the movement of the holder according to the rotation information and the first state information, so as to drive the electronic device to move, so that an angle between a playing interface of the target video and a line of sight of the first user is within a preset range.
9. The apparatus of claim 8, further comprising:
the third acquisition module is used for acquiring the target distance between the moved electronic equipment and the first user;
and the adjusting module is used for adjusting the display size of the playing interface according to the target distance.
10. The apparatus of claim 7, wherein the rotation information comprises: and when the target video is recorded, acquiring second state information of a second user, wherein the second state information comprises the distance and/or the rotation angle of the second user relative to the electronic equipment for recording the target video.
11. The apparatus of claim 8, wherein the first state information comprises at least some information in three coordinate axis directions of a spatial rectangular coordinate system, the spatial rectangular coordinate system is a coordinate system established according to a plane on which a display screen of the electronic device is located, and the information in the three coordinate axis directions comprises: a first distance along a Y-axis direction, a first angle of rotation along the Y-axis direction, a second distance along a Z-axis direction, a second angle of rotation along the Z-axis direction, a third distance along an X-axis direction, and a third angle of rotation along the X-axis direction.
12. The apparatus of claim 7, wherein the rotation information is information collected by a gyroscope; or the rotation information is acquired through gravity sensing and an image recognition algorithm.
13. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the control method of the electronic device according to any one of claims 1-6.
14. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the control method of an electronic device according to any one of claims 1-6.
CN202011606746.9A 2020-12-30 2020-12-30 Electronic equipment control method and electronic equipment Active CN112738404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011606746.9A CN112738404B (en) 2020-12-30 2020-12-30 Electronic equipment control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011606746.9A CN112738404B (en) 2020-12-30 2020-12-30 Electronic equipment control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN112738404A true CN112738404A (en) 2021-04-30
CN112738404B CN112738404B (en) 2022-11-25

Family

ID=75610714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011606746.9A Active CN112738404B (en) 2020-12-30 2020-12-30 Electronic equipment control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN112738404B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554031A (en) * 2022-03-07 2022-05-27 云知声智能科技股份有限公司 Method, device, terminal and storage medium for prompting

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090169058A1 (en) * 2007-12-31 2009-07-02 Htc Corporation Method and device for adjusting output frame
US20090284594A1 (en) * 2006-07-13 2009-11-19 Nikon Corporation Display control device, display system, and television set
CN104394451A (en) * 2014-12-05 2015-03-04 宁波菊风系统软件有限公司 Video presenting method for intelligent mobile terminal
CN105335627A (en) * 2014-08-06 2016-02-17 杭州海康威视数字技术股份有限公司 PTZ rotation control method and device
US20170068314A1 (en) * 2015-09-09 2017-03-09 International Business Machines Corporation Detection of improper viewing posture
CN108549413A (en) * 2018-04-27 2018-09-18 全球能源互联网研究院有限公司 A kind of holder method of controlling rotation, device and unmanned vehicle
CN109919010A (en) * 2019-01-24 2019-06-21 北京三快在线科技有限公司 Image processing method and device
US20190370550A1 (en) * 2017-08-17 2019-12-05 Tencent Technology (Shenzhen) Company Limited Vr content shooting method, related device and system
CN111031398A (en) * 2019-12-10 2020-04-17 维沃移动通信有限公司 Video control method and electronic equipment
CN112055120A (en) * 2020-09-11 2020-12-08 Oppo广东移动通信有限公司 Electronic equipment and rotation method thereof

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090284594A1 (en) * 2006-07-13 2009-11-19 Nikon Corporation Display control device, display system, and television set
US20090169058A1 (en) * 2007-12-31 2009-07-02 Htc Corporation Method and device for adjusting output frame
CN105335627A (en) * 2014-08-06 2016-02-17 杭州海康威视数字技术股份有限公司 PTZ rotation control method and device
CN104394451A (en) * 2014-12-05 2015-03-04 宁波菊风系统软件有限公司 Video presenting method for intelligent mobile terminal
US20170068314A1 (en) * 2015-09-09 2017-03-09 International Business Machines Corporation Detection of improper viewing posture
US20190370550A1 (en) * 2017-08-17 2019-12-05 Tencent Technology (Shenzhen) Company Limited Vr content shooting method, related device and system
CN108549413A (en) * 2018-04-27 2018-09-18 全球能源互联网研究院有限公司 A kind of holder method of controlling rotation, device and unmanned vehicle
CN109919010A (en) * 2019-01-24 2019-06-21 北京三快在线科技有限公司 Image processing method and device
CN111031398A (en) * 2019-12-10 2020-04-17 维沃移动通信有限公司 Video control method and electronic equipment
CN112055120A (en) * 2020-09-11 2020-12-08 Oppo广东移动通信有限公司 Electronic equipment and rotation method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554031A (en) * 2022-03-07 2022-05-27 云知声智能科技股份有限公司 Method, device, terminal and storage medium for prompting

Also Published As

Publication number Publication date
CN112738404B (en) 2022-11-25

Similar Documents

Publication Publication Date Title
US11703993B2 (en) Method, apparatus and device for view switching of virtual environment, and storage medium
US20240214513A1 (en) Method and apparatus for controlling a plurality of virtual characters, device, and storage medium
US10864433B2 (en) Using a portable device to interact with a virtual space
WO2019153824A1 (en) Virtual object control method, device, computer apparatus, and storage medium
CN110427110B (en) Live broadcast method and device and live broadcast server
US11231845B2 (en) Display adaptation method and apparatus for application, and storage medium
EP2394717B1 (en) Image generation system, image generation method, and information storage medium for video games
US8310537B2 (en) Detecting ego-motion on a mobile device displaying three-dimensional content
EP2394711A1 (en) Image generation system, image generation method, and information storage medium
US20130222363A1 (en) Stereoscopic imaging system and method thereof
US9914056B2 (en) Storage medium having stored therein an image generation program, image generation method, image generation apparatus and image generation system
CN109407959B (en) Virtual object control method, device and storage medium in virtual scene
CN114040113A (en) Image processing method and device
CN111857461B (en) Image display method and device, electronic equipment and readable storage medium
CN111416935B (en) Shooting method and electronic equipment
CN112738404B (en) Electronic equipment control method and electronic equipment
WO2023241495A1 (en) Photographic method and apparatus
US20120206351A1 (en) Information processing apparatus, computer-readable storage medium having stored therein information processing program, information processing method, and information processing system
CN113360009A (en) Image display method and electronic device
CN113518423A (en) Positioning method and device and electronic equipment
KR101741149B1 (en) Method and device for controlling a virtual camera's orientation
US10503277B1 (en) Accelerometer-based content display adjustment
WO2023221929A1 (en) Image display method and apparatus, electronic device, and storage medium
CN116170534A (en) Video playing method and device, electronic equipment and storage medium
CN118365835A (en) Method, device, electronic equipment and storage medium for rendering image

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
GR01 Patent grant
GR01 Patent grant