Equipment control method and electronic equipment
By introducing the to-executed instructions of the target application in the electronic device, controlling the movement of the first body relative to the second body, the problem of insufficient flexibility in motion control during the multiple mode switching of the device and image acquisition process is solved, and the user is enhanced Experience and device application scenarios.
Patent Information
- Application Number
- CN202411231240.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-12-03
AI Technical Summary
The prior art is difficult to effectively support the switching and multi-functional operation of electronic devices in multiple modes, especially in the process of image display and image acquisition, the motion control of the device is not flexible enough, resulting in poor user experience.
By introducing the to-executed instructions of the target application program in the electronic device, the movement of the first body relative to the second body is controlled, and the orientation change of the display screen, the view range adjustment of the image acquisition device and the synchronous movement of the multimedia data is realized, thereby enhancing the device's Modal adaptability and user experience.
It realizes flexible switching and multi-functional operation of electronic devices under multiple modes, improves the fun of the device and the application scenarios, and improves the image acquisition effect and user experience.
Smart Images

Figure CN119065460A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of device management, and in particular to a device control method and electronic equipment. Background Art
[0002] As electronic devices are used in more and more scenarios, the modes they can support increase accordingly. For example, the display screen of a laptop can not only face the operator of the laptop, but also face other directions. Therefore, the demand for electronic devices to support multiple modes is gradually increasing. Summary of the invention
[0003] In view of this, the present application provides a device control method and an electronic device, and the specific scheme thereof is as follows:
[0004] A device control method, comprising:
[0005] Obtaining a to-be-executed instruction in a target application of the electronic device, wherein the to-be-executed instruction is used to control the target application to perform a target operation;
[0006] In response to the instruction to be executed, the first body of the electronic device is controlled to move relative to the second body. The electronic device includes a first body and a second body connected to the first body through a connecting component. The first body can move through the connecting component to change the positional relationship between the first body and the second body.
[0007] Further, the instruction to be executed is an image display instruction, and in response to the instruction to be executed, controlling the first body of the electronic device to move relative to the second body includes:
[0008] In response to the image display instruction, determining a first image to be displayed;
[0009] The first body is controlled to move relative to the second body, and as the first body moves relative to the second body, an area of the first image outputted by the display screen on the first body changes.
[0010] Further, the instruction to be executed is an image acquisition instruction, and in response to the instruction to be executed, controlling the first body of the electronic device to move relative to the second body includes:
[0011] In response to the image acquisition instruction, controlling the image acquisition device disposed on the first body to be in an image acquisition state;
[0012] Controlling the first body of the electronic device to move relative to the second body to obtain a second image through the image acquisition device;
[0013] The image information of the second image obtained in the motion state is greater than the image information of the image obtained in the non-motion state.
[0014] Further, the instruction to be executed is an image acquisition instruction, and in response to the instruction to be executed, controlling the first body of the electronic device to move relative to the second body includes:
[0015] In response to the image acquisition instruction, determining a location of a target object;
[0016] The first body of the electronic device is controlled to move relative to the second body, so that an image acquisition device disposed on the first body acquires an image based on the position of the target object.
[0017] Furthermore, controlling the first body of the electronic device to move relative to the second body so that an image acquisition device disposed on the first body acquires an image based on a location of the target object includes:
[0018] If it is determined that the image to be acquired in the to-be-executed instruction is a panoramic image or a wide-angle image, controlling the image acquisition device disposed on the first body to use the position of the target object as the initial position for image acquisition, and starting an image acquisition function;
[0019] The first body of the electronic device is controlled to move relative to the second body, so as to obtain a third image through the image acquisition device, wherein the third image is the panoramic image or the wide-angle image.
[0020] Further, determining the location of the target object includes:
[0021] Controlling the image acquisition device disposed on the first body to start an image preview function;
[0022] Under the image preview function, the first body of the electronic device is controlled to move relative to the second body, and when it is determined that the target object is included in the framing range of the image acquisition device, the position corresponding to the framing range is determined as the position of the target object.
[0023] Further, the instruction to be executed is a multimedia data output instruction, and in response to the instruction to be executed, controlling the first body of the electronic device to move relative to the second body includes:
[0024] In response to the multimedia data output instruction, the electronic device outputs the multimedia data corresponding to the multimedia data output instruction;
[0025] The first body of the electronic device is controlled to move relative to the second body based on the characteristics of the multimedia data currently output by the electronic device.
[0026] Furthermore, the controlling the first body of the electronic device to move relative to the second body based on the characteristics of the multimedia data currently output by the electronic device includes:
[0027] If the instruction to be executed is a multimedia data output instruction that requires responses from multiple devices, determining other electronic devices that establish an association relationship with the electronic device;
[0028] When the electronic device outputs the multimedia data, the first body of the other electronic device is controlled to synchronize with the first body of the electronic device to perform a characteristic movement based on the multimedia data currently output by the electronic device.
[0029] Further, in response to the to-be-executed instruction, controlling the first body of the electronic device to move relative to the second body includes:
[0030] Obtaining target object information acquired by an image acquisition device;
[0031] In response to the to-be-executed instruction, the first body of the electronic device is controlled to move relative to the second body according to the target object information acquired by the image acquisition device.
[0032] An electronic device, comprising:
[0033] first ontology;
[0034] a second body connected to the first body via a connecting assembly, wherein the first body can move via the connecting assembly so that the positional relationship between the first body and the second body changes;
[0035] The processor is used to obtain instructions to be executed in a target application of the electronic device, wherein the instructions to be executed are used to control the target application to perform a target operation; in response to the instructions to be executed, the first body of the electronic device is controlled to move relative to the second body. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 A flow chart of a device control method disclosed in an embodiment of the present application;
[0038] Figure 2A flow chart of a device control method disclosed in an embodiment of the present application;
[0039] Figure 3a A schematic diagram of a first area of a first image output by a display screen disclosed in an embodiment of the present application;
[0040] Figure 3b A schematic diagram of a second area of a first image output by a display screen disclosed in an embodiment of the present application;
[0041] Figure 4 A flow chart of a device control method disclosed in an embodiment of the present application;
[0042] Figure 5a A schematic diagram of a first angle between a first body and a second body disclosed in an embodiment of the present application;
[0043] Figure 5b It is a schematic diagram of a second angle between a first body and a second body disclosed in an embodiment of the present application;
[0044] Figure 6a This is a schematic diagram of a first body disclosed in an embodiment of the present application when the first body is at 0 degrees relative to the second body along an axis perpendicular to the second body;
[0045] Figure 6b This is a schematic diagram of a first body disclosed in an embodiment of the present application, when the first body forms a certain angle with respect to the second body along an axis perpendicular to the second body;
[0046] Figure 7 A flow chart of a device control method disclosed in an embodiment of the present application;
[0047] Figure 8a A schematic diagram of an image acquisition device disclosed in an embodiment of the present application, wherein the target object is not included in the viewing range;
[0048] Figure 8b A corresponding relationship between a target object and a framing range of an image acquisition device disclosed in an embodiment of the present application;
[0049] Figure 8c A schematic diagram of a target object included in a viewing range of an image acquisition device disclosed in an embodiment of the present application;
[0050] Figure 8d A corresponding relationship between a target object and a framing range of an image acquisition device disclosed in an embodiment of the present application;
[0051] Fig. 9 A flow chart of a device control method disclosed in an embodiment of the present application;
[0052] Fig.10 This is a schematic diagram of the structure of a device control system disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0053] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
[0054] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0055] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0056] The present application discloses a device control method, and its flow chart is as follows: Figure 1 As shown, including:
[0057] Step S11, obtaining a to-be-executed instruction in a target application of the electronic device, where the to-be-executed instruction is used to control the target application to execute a target operation;
[0058] Step S12, in response to the instruction to be executed, control the first body of the electronic device to move relative to the second body, the electronic device includes a first body and a second body connected to the first body through a connecting component, the first body can move through the connecting component to change the positional relationship between the first body and the second body.
[0059] For an electronic device including a first body, a second body and a connecting component, if the first body is connected to the second body through the connecting component, the first body can move through the connecting component to change the positional relationship between the first body and the second body, thereby realizing a change in the mode of the electronic device.
[0060] For example: a laptop computer, the first body is provided with at least a display screen, the second body is provided with at least a keyboard, the first body where the display screen is located is connected to the second body where the keyboard is located through a connecting component, the first body where the display screen is located can rotate, and it can rotate 360 degrees left and right relative to the second body along an axis perpendicular to the second body, so that the plane where the first body is located can rotate the orientation of the display screen from 0-360 degrees on the basis of maintaining a certain angle with the plane where the second body is located; it can also flip 360 degrees forward and backward relative to the second body along an axis perpendicular to the plane where the second body is located, so that the angle between the first body and the second body changes within 0-360 degrees; of course, the movement of the first body relative to the second body can also include movement in other directions or angles, which are not specifically limited here. Among them, the above rotatable degrees are only exemplary, and can be set according to the product design, for example, the rotation degree can be limited to 270 degrees.
[0061] That is, when the position of the second body does not change, the display screen on the first body can not only face the operator of the notebook computer, but also face other directions, so as to realize the switching between multiple modes of the electronic device. Therefore, the demand for multiple mode support of electronic devices is gradually increasing.
[0062] Based on this, in the present solution, when obtaining the to-be-executed instructions in the target application of the electronic device, in response to the to-be-executed instructions, the first body of the electronic device is controlled to move relative to the second body, so as to realize the change of the mode of the electronic device based on the to-be-executed instructions in the target application, that is, to realize the change of the positional relationship between the first body and the second body, so that the mode of the electronic device can be changed based on the to-be-executed instructions of the target application, thereby increasing the applicable scenarios of the electronic device under multiple modes and increasing the fun in the use of the electronic device.
[0063] The movement of the first body of the electronic device relative to the second body can be manually controlled by the user, such as: the user manually rotates the first body to change the orientation of the display screen on the first body, but using this method to change the relative position of the first body and the second body requires additional operation by the user; in addition, the movement of the first body of the electronic device relative to the second body can also be achieved based on the instructions to be executed in the target application.
[0064] The target application may be one or more specific applications in the electronic device. Only the instructions to be executed in the target application can control the movement of the first body in the electronic device relative to the second body when the electronic device responds to it. For non-target applications in the electronic device, even if the corresponding instructions to be executed are obtained, the electronic device can only perform the corresponding operations based on the instructions to be executed.
[0065] The instructions to be executed in the target application are used to control the target application to execute the target operation. When there are instructions to be executed in the target application, the electronic device controls the target application to execute the target operation based on the instructions to be executed.
[0066] For example, the instruction to be executed is a video playback instruction in a player, and the player is the target application. When the video playback instruction of the player is obtained, the player plays the corresponding video in response to the video playback instruction. Another example is that the instruction to be executed is an audio acquisition instruction of wx (application name example), and wx is the target application. When the audio acquisition instruction of wx is obtained, wx starts the audio acquisition function in response to the audio acquisition instruction to acquire the audio.
[0067] In this embodiment, when the instruction to be executed is obtained and in response to the instruction to be executed, the first body of the electronic device needs to be controlled to move relative to the second body.
[0068] For example: the instruction to be executed is the audio acquisition instruction of wx. Since wx is the target application, based on the instructions in wx, the electronic device will control the movement of the first body relative to the second body. When responding to the audio acquisition instruction, the first body can be controlled to switch from a closed state with the second body to an open state.
[0069] For another example: the instruction to be executed obtained is a file display instruction in the wd software (example of the name of a document editing program). Since the wd software is the target application, based on specific instructions in the wd software, the electronic device will control the movement of the first body relative to the second body. When responding to the file display instruction, the display screen on the first body can be controlled to switch from facing the operator of the electronic device to facing away from the operator of the electronic device.
[0070] It should be noted that when obtaining the instruction to be executed and responding to the instruction to be executed to control the first body of the electronic device to move relative to the second body, the target application can simultaneously execute the target operation. For example, the instruction to be executed is a file display instruction in the wd software. When responding to the file display instruction, the display screen on the first body is controlled to switch from facing the operator of the electronic device to facing away from the operator of the electronic device, the electronic device will display the corresponding file in the file display instruction through the display screen on the first body, so as to achieve the purpose of other users at other locations being able to clearly and promptly see the file displayed on the display screen of the first body.
[0071] Alternatively, when obtaining the instruction to be executed and controlling the first body of the electronic device to move relative to the second body in response to the instruction to be executed, only the first body can be controlled to move relative to the second body in response to the instruction to be executed, and the target application no longer executes the target operation.
[0072] That is, when the instruction to be executed comes from the target application, the instruction to be executed is only used to control the movement of the first body relative to the second body, and the action of executing the target operation corresponding to the instruction to be executed itself is ignored. For example: the instruction to be executed of a player is a video output instruction. Since the player is the target application, when responding to the video output instruction, it only controls the movement of the first body relative to the second body. At this time, or later, the video will no longer be output in response to the video output instruction.
[0073] The device control method disclosed in this embodiment obtains the to-be-executed instructions in the target application of the electronic device, and the to-be-executed instructions are used to control the target application to perform the target operation; in response to the to-be-executed instructions, the first body of the electronic device is controlled to move relative to the second body, and the electronic device includes a first body and a second body connected to the first body through a connecting component, and the first body can move through the connecting component to change the positional relationship between the first body and the second body. When obtaining the to-be-executed instructions in the target application, this scheme controls the first body of the electronic device to move relative to the second body in response to the to-be-executed instructions, so that the relative movement between the first body and the second body can cooperate with the target application to perform the target operation in response to the to-be-executed instructions, so as to increase the change of the electronic device mode when the target application performs the operation, and increase the fun of using the electronic device.
[0074] This embodiment discloses a device control method, and its flow chart is as follows: Figure 2 As shown, including:
[0075] Step S21, obtaining an image display instruction in a target application of the electronic device;
[0076] Step S22, in response to the image display instruction, determining a first image to be displayed;
[0077] Step S23: Control the first body to move relative to the second body. As the first body moves relative to the second body, the area of the first image output by the display screen on the first body changes.
[0078] If the target application is an application that has images and can display them, such as a photo album, a browser that can display images, and a social software that can output image-related information, when there is a first image that needs to be displayed in the target application, an image display instruction can be generated. The image display instruction is used to display the first image on the display screen of the first body through the target application.
[0079] After obtaining the image display instruction, the electronic device responds to it. When responding, it must first determine the first image that needs to be displayed in the image display instruction. Then, in response to the image display instruction, it is necessary not only to display the first image, but also to control the movement of the first body relative to the second body so that the movement of the first body can coordinate with the display of the first image.
[0080] For example: in response to an image display instruction, the display screen of the first body needs to display the first image. In this embodiment, before the first body moves relative to the second body, the display screen displays the first area of the first image. When the first body rotates to 30 degrees relative to the second body, the display screen displays the second area of the first image. When the first body rotates to 60 degrees relative to the second body, the display screen displays the third area of the first image, and so on, until the first body rotates to 360 degrees relative to the second body, any area of the first image is output through the display screen, but not all of them are output at the same time.
[0081] When determining that the area of the first image output by the display screen changes as the first body moves relative to the second body, the relationship between different areas of the first image and the movement angle of the first body can be determined, such as: pre-setting that when the first body moves to a first angle relative to the second body, the display screen outputs the area corresponding to the first angle of the first image, and when the first body moves to a second angle relative to the second body, the display screen outputs the area corresponding to the second angle of the first image.
[0082] In addition, since the movement of the first body relative to the second body is gradual, the angle changes, and the first body is not directly switched from 0 degrees to 30 degrees or other angles relative to the second body. Therefore, when the area of the first image output by the display screen changes with the movement of the first body, the area of the first image output by the display screen also changes gradually. For example, initially, the first area of the first image is output on the display screen. As the first body moves relative to the second body, the image on one side of the first area of the first image output on the display screen gradually stops being displayed, while the image output by the display screen on the other side is gradually added, so that the image output by the display screen changes with the movement of the first body, but the display screen always outputs a partial area of the first image.
[0083] It should be noted that the angle at which the first body moves relative to the second body each time must have a certain corresponding relationship with the change in the area of the first image output by the display screen. For example, the first body moves relative to the second body by 1 degree each time, and based on the size of the first image, the first body moves by 1 degree each time, and the part of the first image output by the display screen moves m centimeters or n pixels (or other physical quantities) according to this corresponding relationship. No matter to which angle the first body moves, the first image output by the display screen will output the corresponding area.
[0084] There is an overlapping area between the first area and the second area of the first image. Figure 3a and 3b As shown, Figure 3a Outputted to the display screen is a schematic diagram of a first region of a first image, Figure 3b What is output to the display screen is a schematic diagram of the second area of the first image, wherein the first area and the second area have overlapping areas, but also have different parts, and the different parts are the changes in the output of the display screen as the first body moves.
[0085] Furthermore, in the device control method disclosed in the present embodiment, after determining the first image to be displayed, a judgment of the first image can be added to determine whether the first image is a panoramic image or a wide-angle image. If the first image is a panoramic image or a wide-angle image, the first body is controlled to move relative to the second body. As the first body moves relative to the second body, the area of the first image output by the display screen on the first body changes.
[0086] If the first image is not a panoramic image or a wide-angle image but is only an image of regular size, then in response to the image display instruction, the entire first image can be directly output through the display screen, so that when the first image is displayed through the display screen, the first image displayed on the display screen is a normal first image that has not been deformed. If, when the first image is not a panoramic image or a wide-angle image, the area in the first image output by the display screen is still controlled to move with the movement of the first body relative to the second body, then the area in the first image displayed on the display screen will be deformed, which is not conducive to user viewing.
[0087] Taking the first image as a panoramic image as an example, when the first image to be displayed is a panoramic image, if the entire panoramic image is displayed directly through the display screen, due to the long size of the panoramic image, the display screen usually displays a distorted image. In order to avoid this situation, in this solution, the first body is controlled to move relative to the second body. During the movement, when the first body is at each angle, the display screen only displays a part of the panoramic image. As the first body moves, its angle changes, and the part of the panoramic image displayed on the display screen also changes, until the first body moves to 360 degrees relative to the second body, the panoramic image displayed on the display screen also displays the last part, thereby realizing the rotational display of the panoramic image.
[0088] For example, if the display screen displays an image at 90 degrees in a panoramic image, then initially, the display screen displays an image at 0-90 degrees in the panoramic image. As the first body moves relative to the second body, if it moves 1 degree, the panoramic image displayed on the display screen changes by 1 degree, that is, an image area at 1-90 degrees in the panoramic image is displayed. If the first body moves to 60 degrees relative to the second body, then the display screen displays an image area at 60-150 degrees in the panoramic image. If the first body moves to 180 degrees relative to the second body, then the display screen displays an image area at 180 degrees to 270 degrees in the panoramic image.
[0089] If the first image is a wide-angle image, it is necessary to determine the proportional relationship between the angle of the image area displayed on the display screen and the movement angle of the first body relative to the second body, so as to adjust the area of the image output by the display screen based on the movement between the first body and the second body.
[0090] The device control method disclosed in this embodiment obtains an image display instruction in a target application of an electronic device; determines a first image to be displayed in response to the image display instruction; controls the first body to move relative to the second body, and as the first body moves relative to the second body, the area of the first image output by the display screen on the first body changes. When obtaining the image display instruction of the target application in the electronic device, this solution controls the first body to move relative to the second body, displays the first image through the display screen on the first body, and as the first body moves, the display screen on the first body displays different areas of the first image, thereby achieving that the area of the first image output by the display screen changes with the movement of the first body, so that users located in different directions of the electronic device can see different areas of the first image as the first body moves.
[0091] Furthermore, the device control method disclosed in this embodiment, in response to the instruction to be executed, controls the first body of the electronic device to move relative to the second body, and may include:
[0092] Obtaining target object information acquired by the image acquisition device; and in response to the instruction to be executed, controlling the first body of the electronic device to move relative to the second body according to the target object information acquired by the image acquisition device.
[0093] That is, once the instruction to be executed is obtained, the target object captured by the image acquisition device is analyzed to obtain the target object information captured by the image acquisition device, and when responding to the instruction to be executed, the first body is controlled to move relative to the second body based on the target object information.
[0094] For example, if the instruction to be executed is an image display instruction, after determining the first image to be displayed, the first image is analyzed to determine the target object in the first image, thereby determining the target object information in the first image, that is, the position of the target object. When displaying the image, the image display starts from the position of the target object in the first image, so as to achieve the purpose of preferentially displaying the target object.
[0095] This embodiment discloses a device control method, and its flow chart is as follows: Figure 4 As shown, including:
[0096] Step S41, obtaining an image acquisition instruction in a target application of the electronic device;
[0097] Step S42, in response to the image acquisition instruction, controlling the image acquisition device disposed on the first body to be in an image acquisition state;
[0098] Step S43: Control the first body of the electronic device to move relative to the second body to obtain a second image through the image acquisition device, wherein the image information of the second image obtained in the moving state is greater than that of the image obtained in the non-moving state.
[0099] If the target application is an application capable of acquiring images, such as a camera application, when the target application needs to acquire an image, an image acquisition instruction is generated, which is used to acquire a second image through the target application by an image acquisition device disposed on the first body.
[0100] After receiving the image acquisition instruction, the electronic device responds to it. When responding, it is necessary to first control the image acquisition device to be in the image acquisition state. When the image acquisition device is in the image acquisition state, the image acquisition device can acquire the image.
[0101] When the image acquisition device is in an image acquisition state, the second image is acquired. During the acquisition process, the first body is controlled to move relative to the second body so that the corresponding direction or position in the viewfinder of the image acquisition device changes.
[0102] For example: when the angle between the first body and the second body of the electronic device is a first angle, an image acquisition instruction is obtained. In response to the image acquisition instruction, the image acquisition device arranged on the first body is in an image acquisition state, and in the process of acquiring the image through the image acquisition device, the angle between the first body and the second body is controlled to gradually increase from the first angle. Then, the image acquired by the image acquisition device is: the image acquisition device starts to acquire when the angle between the first body and the second body is the first angle, and as the angle increases, the image acquisition device continues to acquire images until the angle between the first body and the second body no longer changes, then stops acquiring images, and the image acquired from the start of image acquisition to the stop of image acquisition is used as the second image acquired in response to the image acquisition instruction.
[0103] like Figure 5a As shown, it is a schematic diagram when the angle between the first body and the second body is a first angle, comprising: a first body 51 and a second body 52; Figure 5b , which is a schematic diagram when the included angle between the first body and the second body is a second included angle, includes: a first body 51 and a second body 52 .
[0104] The image acquisition device is arranged on the first body, and as the angle between the first body and the second body changes, the direction or position corresponding to the viewfinder of the image acquisition device changes.
[0105] Another example: when the first body of the electronic device is at 0 degrees along the axis perpendicular to the second body, the surface where the first body is located is at a specific angle with the surface where the second body is located, and an image acquisition instruction is obtained. Then, in response to the image acquisition instruction, the image acquisition device arranged on the first body is in an image acquisition state, and in the process of acquiring images through the image acquisition device, the angle between the first body along the axis perpendicular to the second body is controlled to increase. As the angle increases, the image acquisition device continues to acquire images until the angle between the first body along the axis perpendicular to the second body no longer changes, and then stops acquiring images. The image acquired from the start of image acquisition to the stop of image acquisition is used as the second image acquired in response to the image acquisition instruction.
[0106] like Figure 6a , which is a schematic diagram of the first body when the first body is at 0 degrees relative to the second body along an axis perpendicular to the second body, including: a first body 61 and a second body 62; Figure 6b , which is a schematic diagram of a first body that is at a certain angle relative to the second body along an axis perpendicular to the second body, including: a first body 61 and a second body 62 .
[0107] The image acquisition device is arranged on the first body, and as the angle between the first body and the second body along the axis perpendicular to the second body changes, the direction or position corresponding to the viewfinder of the image acquisition device changes.
[0108] In addition, the first body can move relative to the second body, and can also move in different directions at the same time, such as: the first body rotates left and right relative to the second body along an axis perpendicular to the second body (such as Figure 6a and Figure 6b The first body can also simultaneously rotate forward and backward relative to the second body along an axis perpendicular to the plane where the second body is located (such as Figure 5a and Figure 5b Of course, the movement of the first body relative to the second body may also include movement in other directions or angles, which are not specifically limited here.
[0109] The image information of the second image obtained in the motion state is greater than the image information of the image obtained in the non-motion state.
[0110] When the first body of the electronic device does not move relative to the second body, the image obtained by the image acquisition device only includes the image currently included in the viewfinder of the image acquisition device, and its image information is also only the image information corresponding to the image currently included in the viewfinder; when the first body of the electronic device moves relative to the second body, the image obtained by the image acquisition device includes not only the image currently included in the viewfinder of the image acquisition device, but also all images captured by the viewfinder of the image acquisition device during the movement of the first body relative to the second body. At this time, the second image obtained by the image acquisition device may be a panoramic image or a wide-angle image.
[0111] The size of the second image obtained by the image acquisition device in the moving state is larger than the size of the image obtained by the image acquisition device in the non-moving state, wherein when the image acquisition device acquires the image, other image acquisition parameters in the moving state and in the non-moving state are the same.
[0112] For example: in a conference scene, if an image acquisition instruction is obtained, the electronic device can respond to the image acquisition instruction to acquire a panoramic image of the conference scene, that is, while acquiring the image through the image acquisition device set on the first body, the first body is controlled to move relative to the second body so as to capture a panoramic image of the conference scene, without the need for the user to manually adjust the movement of the first body relative to the second body.
[0113] Furthermore, the device control method disclosed in this embodiment may also include:
[0114] It is determined whether the image to be acquired in the image acquisition instruction is a panoramic image or a wide-angle image.
[0115] If the image to be acquired is a panoramic image or a wide-angle image, controlling the first body of the electronic device to move relative to the second body to acquire a second image through the image acquisition device;
[0116] If the image to be acquired is a non-wide-angle image and a non-panoramic image, but an image of a regular size, then in response to the image acquisition instruction, the second image can be directly acquired through the image acquisition device on the first body. Alternatively, when it is determined that the image to be acquired is a non-wide-angle image and a non-panoramic image, but an image of a regular size, then in response to the image acquisition instruction, the first body is controlled to move relative to the second body, and when the movement stops, the image acquisition device is controlled to obtain the second image.
[0117] The device control method disclosed in this embodiment obtains an image acquisition instruction in a target application of an electronic device; in response to the image acquisition instruction, controls an image acquisition device set in a first body to be in an image acquisition state; controls the first body of the electronic device to move relative to the second body to obtain a second image through the image acquisition device, wherein the image information of the second image obtained in the moving state is more than the image information of the image obtained in the non-moving state. When obtaining the image acquisition instruction of the target application in the electronic device, this scheme controls the first body to move relative to the second body, so that when obtaining the second image through the image acquisition device set in the first body, the image acquisition device can capture images in different directions as the first body moves, so that the image information of the second image obtained in the moving state is more than the image information of the image obtained in the non-moving state, so as to improve the acquisition effect of the second image.
[0118] This embodiment discloses a device control method, and its flow chart is as follows: Figure 7 As shown, including:
[0119] Step S71, obtaining an image acquisition instruction in a target application of an electronic device;
[0120] Step S72, in response to the image acquisition instruction, determining the location of the target object;
[0121] Step S73: Control the first body of the electronic device to move relative to the second body, so that the image acquisition device disposed on the first body acquires an image based on the position of the target object.
[0122] If an image acquisition instruction is obtained in a target application of an electronic device, then when controlling an image acquisition device disposed on the first body to acquire an image in response to the image acquisition instruction, it is necessary to first determine the position of the target object and control the first body to move relative to the second body to acquire an image based on the position of the target object.
[0123] The target object may be a preset object, that is, an object set when the target application generates an image acquisition instruction, and the image needs to be acquired based on the preset target object.
[0124] Acquiring an image based on a target object may be: the acquired image should include the target object, or the acquired image does not include the target object, or the image is acquired based on the target object, etc. Regardless of which of the above situations is used for acquiring an image based on a target object, it is necessary to first determine the location of the target object, and then adjust the electronic device to meet the requirements of acquiring an image based on the target object, and then acquire the image through an image acquisition device. Of course, while acquiring the image through the image acquisition device, the first body may move relative to the second body. If the first body does not move relative to the second body when acquiring an image through the image acquisition device, the image acquired by the image acquisition device is an image of regular size, that is, a non-wide-angle image and a non-panoramic image; if the first body moves relative to the second body when acquiring an image through the image acquisition device, the image acquired by the image acquisition device is a panoramic image or a wide-angle image.
[0125] Therefore, it is necessary to first determine whether the image to be acquired in the image acquisition instruction is a panoramic image or a wide-angle image. If it is a panoramic image or a wide-angle image, then it is only necessary to ensure that the target object is within the framing range of the image acquisition device during the movement of the first body relative to the second body; if the image to be acquired is a non-panoramic image and a non-wide-angle image, then it is necessary to ensure that the target object is within the framing range of the image acquisition device.
[0126] Taking the image to be acquired as a non-panoramic image and a non-wide-angle image as an example, if the image is acquired based on the target object: the acquired image should include the target object. Before the target application generates an image acquisition instruction, the target object is first set. After the image acquisition instruction is generated, in order to respond to the image acquisition instruction, the position of the target object must be determined first, and the image acquisition device set on the first body or the first body must be adjusted so that the position of the target object can be located within the field of view of the image acquisition device.
[0127] Specifically, determining the location of the target object may include:
[0128] The image acquisition device disposed on the first body is controlled to start an image preview function; under the image preview function, the first body of the electronic device is controlled to move relative to the second body, and when it is determined that the target object is included in the framing range of the image acquisition device, the position corresponding to the framing range is determined to be the position of the target object.
[0129] If the image to be acquired in the image acquisition instruction needs to include a target object, then the location of the target object needs to be determined first, and the location of the target object can be determined based on the image preview function of the image acquisition device.
[0130] The image preview function can preview the object within the framing range of the image acquisition device. If the target object is within the framing range of the image acquisition device, the location of the target object can be determined directly through the previewed image, and the location corresponding to the framing range of the image acquisition device is determined as the location of the target object.
[0131] If the target object is not found in the image previewed by the image acquisition device after the image acquisition device starts the image preview function, the first body can be controlled to move relative to the second body, the first body can be controlled to rotate left and right relative to the second body along an axis perpendicular to the second body, or the first body can be controlled to flip front and back relative to the second body along an axis perpendicular to the second body.
[0132] When controlling the first body to move relative to the second body, the first body can be controlled to move according to a certain rule to ensure that as long as the target object is not blocked, the position of the target object can be determined through the preview function of the image acquisition device.
[0133] For example, the target object is an object on the desktop, the electronic device is also placed on the desktop, and the image acquisition device is located slightly above the first body. If it is necessary to make the target object within the viewing range of the image acquisition device during the movement of the first body, it is necessary to adjust the angle between the plane where the first body is located and the plane where the second body is located to reduce the angle. Only then can the target object be within the viewing range of the image acquisition device. Figure 8a As shown, it includes: a first body 81, a second body 82, an image acquisition device 83 and a target object 84. If the target object does not appear in the viewing range of the image acquisition device according to the current angle between the first body and the second body, as shown in FIG. Figure 8b As shown, the corresponding relationship between the target object and the framing range of the image acquisition device includes: the framing range 85 of the image acquisition device and the target object 84.
[0134] At this time, the first body is controlled to move relative to the second body according to a certain rule. When the angle between the first body and the second body is adjusted to a certain angle, such as Figure 8c As shown, it includes: a first body 81, a second body 82, an image acquisition device 83 and a target object 84. At this time, the target object will appear in the viewing range of the image acquisition device, such as Figure 8d As shown, it includes: a viewing range 85 and a target object 84 of the image acquisition device.
[0135] Of course, it is also possible not to adjust the first body, but directly adjust the acquisition parameters on the image acquisition device to adjust the framing range of the image acquisition device so that the target object is located within the framing range of the image acquisition device.
[0136] If the image to be acquired is a panoramic image or a wide-angle image, then the image acquisition device arranged on the first body or the first body can be adjusted so that the position of the target object can be located within the framing range of the image acquisition device during the movement of the first body relative to the second body. At this time, the target object is not directly placed within the framing range of the image acquisition device when the first body does not move relative to the second body, but the target object will appear within the framing range of the image acquisition device as the first body moves relative to the second body.
[0137] If acquiring an image based on a target object means that the acquired image does not include the target object, then before acquiring the image, first adjust the field of view of the first body or an image acquisition device disposed on the first body so that the target object is not within the field of view of the image acquisition device during the movement of the first body relative to the second body.
[0138] If acquiring an image based on a target object means acquiring an image based on the target object, such as acquiring an image based on the position of the target object as an initial position, during the image acquisition process, as the first body moves relative to the second body, the field of view of the image acquisition device changes from including the target object to no longer including the target object.
[0139] Specifically, if it is determined that the image to be acquired in the instruction to be executed is a panoramic image or a wide-angle image, the image acquisition device arranged on the first body is controlled to use the position of the target object as the initial position for image acquisition, and the image acquisition function is started; the first body of the electronic device is controlled to move relative to the second body to obtain a third image through the image acquisition device, and the third image is a panoramic image or a wide-angle image.
[0140] If the image to be acquired in the instruction to be executed is a panoramic image or a wide-angle image, then the target object needs to be controlled to be located within the framing range of the image acquisition device as the first body moves relative to the second body. In order to ensure that the target object can be acquired, or to ensure that the target object is acquired first, the position of the first body relative to the second body can be adjusted, or the acquisition parameters of the image acquisition device set on the first body can be adjusted so that the target object is included in the framing range of the image acquisition device.
[0141] When the target object is included in the field of view of the image acquisition device, the image acquisition function is started, that is, the image acquisition device is controlled to start image acquisition. After the image acquisition starts, the first body is controlled to move relative to the second body so that the field of view of the image acquisition device begins to change, until the first body moves 360 degrees relative to the second body, the image acquisition is completed, and the acquired image is determined as the third image, which is a panoramic image, and the panoramic image is acquired from the position where the target object is located; or, until the first body moves relative to the second body to reach a target angle, the image acquisition is completed, and the acquired image is determined as the third image, which is a wide-angle image, and the wide-angle image is acquired from the position where the target object is located.
[0142] For example: the image acquisition instruction specifies that the image to be acquired must include a person wearing red clothes. The image preview function of the image acquisition device must be started first to determine whether there is a person wearing red clothes in the preview interface of the image acquisition device. If not, the electronic device needs to be adjusted. The first body can be controlled to move relative to the second body. During the movement, when it is determined that the preview interface of the image acquisition device includes a person wearing red clothes, the position corresponding to the current viewing range of the image acquisition device is determined to be the position of the target object. At this time, the image acquisition device is controlled to start the image acquisition function and acquire images from the current position. The person wearing red clothes can be acquired first. After that, the viewing range of the image acquisition device changes with the movement of the first body relative to the second body to finally obtain a third image. The initial position of the third image includes a person wearing red clothes.
[0143] The device control method disclosed in this embodiment obtains an image acquisition instruction in a target application of an electronic device; determines the location of a target object in response to the image acquisition instruction; and controls the first body of the electronic device to move relative to the second body, so that an image acquisition device disposed on the first body acquires an image based on the location of the target object. When obtaining an image acquisition instruction in a target application of an electronic device, this solution first determines the location of the target object, and controls the first body to move relative to the second body, so that the image acquisition device disposed on the first body can acquire an image based on the location of the target object, thereby ensuring the acquisition effect of the second image and increasing the application scenarios of multiple modes of the electronic device.
[0144] Furthermore, the device control method disclosed in this embodiment, in response to the instruction to be executed, controls the first body of the electronic device to move relative to the second body, and may include:
[0145] Obtaining target object information acquired by the image acquisition device; and in response to the instruction to be executed, controlling the first body of the electronic device to move relative to the second body according to the target object information acquired by the image acquisition device.
[0146] That is, as long as the instruction to be executed is obtained, the image acquisition device is directly controlled to capture the target object to obtain the target object information captured by the image acquisition device, and when responding to the instruction to be executed, the first body is controlled to move relative to the second body based on the target object information.
[0147] For example, if the instruction to be executed is an image acquisition instruction, then as long as the image acquisition instruction is obtained, the image acquisition device is controlled to determine the target object information, such as: human information, or specific object information, etc., and after determining the target object information, the image acquisition is started from the position corresponding to the target object information.
[0148] This embodiment discloses a device control method, and its flow chart is as follows: Fig. 9 As shown, including:
[0149] Step S91, obtaining a multimedia data output instruction in a target application of an electronic device;
[0150] Step S92: In response to the multimedia data output instruction, the electronic device outputs the multimedia data corresponding to the multimedia data output instruction;
[0151] Step S93: Control the first body of the electronic device to move relative to the second body based on the characteristics of the multimedia data currently output by the electronic device.
[0152] A multimedia data output instruction in a target application of the electronic device is obtained, where the multimedia data output instruction is used to control the target application to output designated multimedia data.
[0153] If a multimedia data output instruction is obtained in a target application of an electronic device, it is necessary to first determine the multimedia data corresponding to the multimedia data output instruction, and then analyze the multimedia data to determine the characteristics of the multimedia data so as to control the movement of the first body of the electronic device relative to the second body based on the characteristics of the multimedia data.
[0154] The multimedia data may be audio data, video data, or data including both audio and video.
[0155] Determining the characteristics of multimedia data can be: determining the style of the multimedia data, such as: the multimedia data is a cheerful style, a melancholy style, a fresh style, a dark style, an elegant style, etc. After determining the style of the multimedia data, controlling the movement of the first body of the electronic device relative to the second body is performed according to the style of the multimedia data.
[0156] The movements of the first body corresponding to multimedia data of different styles relative to the second body are different, and the movements of the first body corresponding to multimedia data of the same style relative to the second body are the same or partially different.
[0157] Specifically, the electronic device can learn different styles of dance through the model and determine the characteristics of each style of dance, so that when the electronic device controls the first body to move relative to the second body according to the multimedia data of different styles, it can conform to the characteristics of the corresponding style of dance. The style of the multimedia data corresponds to the style of the dance.
[0158] For example, if the style of the multimedia data is cheerful, the characteristics of the cheerful dance learned by the electronic device are determined, and the learned characteristics of the cheerful dance are used to control the movement of the first body relative to the second body, so that the movement of the first body relative to the second body can match the cheerful dance to express the cheerful characteristics.
[0159] If the multimedia data corresponding to the multimedia data output instruction of the target application of the electronic device is dance video data, the electronic device may analyze each frame of dance action in the multimedia data to control the movement of the first body relative to the second body to conform to the dance action currently output by the display screen corresponding to the first body;
[0160] If the multimedia data corresponding to the multimedia data output instruction of the target application of the electronic device is other video data, the overall style of the multimedia data can be determined first, and then the characteristics of each frame in the multimedia data can be analyzed to ensure that the movement of the first body relative to the second body at each moment can meet the characteristics of the frame output by the display screen corresponding to the moment on the basis of meeting the overall style of the multimedia data;
[0161] Correspondingly, if the multimedia data corresponding to the multimedia data output instruction of the target application of the electronic device is audio data, the overall style of the audio data can be determined first, and then the audio features of each moment in the audio data can be analyzed to ensure that the movement of the first body relative to the second body at each moment can be consistent with the characteristics of the audio output at that moment on the basis of being consistent with the overall style of the audio data.
[0162] That is, no matter what type of multimedia data is, the first body of the electronic device is controlled to move relative to the second body according to the characteristics of each moment, so that when the electronic device outputs the multimedia data, the output multimedia data can be supplemented by the movement of the first body of the electronic device relative to the second body, thereby improving the user experience and increasing the application scenarios of multiple modes of the electronic device.
[0163] The device control method disclosed in this embodiment obtains a multimedia data output instruction in a target application of an electronic device; in response to the multimedia data instruction, the electronic device outputs multimedia data corresponding to the multimedia data output instruction; and controls the movement of the first body of the electronic device relative to the second body based on the characteristics of the multimedia data currently output by the electronic device. When this solution obtains the multimedia data output instruction in the target application, the electronic device outputs multimedia data while controlling the movement of the first body relative to the second body, so that the movement of the first body of the electronic device relative to the second body can meet the characteristics of the multimedia data output by the electronic device. The movement of the first body of the electronic device relative to the second body can achieve an enhanced effect on the multimedia data output by the electronic device, improve the user experience, and increase the application scenarios of multiple modes of the electronic device.
[0164] Furthermore, in the device control method disclosed in this embodiment, controlling the first body of the electronic device to move relative to the second body based on the characteristics of the multimedia data currently output by the electronic device includes:
[0165] If the instruction to be executed is a multimedia data output instruction that requires responses from multiple devices, determine other electronic devices that establish an association relationship with the electronic device; when the electronic device outputs multimedia data, control the first body of the other electronic devices to synchronize with the first body of the electronic device based on the characteristic movement of the multimedia data output by the electronic device at the current moment.
[0166] If the instruction to be executed in the target application of the electronic device is a multimedia data output instruction, and is a multimedia data output instruction that requires multiple devices to respond, then it is necessary to first determine the multiple devices and establish an association relationship between the multiple devices.
[0167] The device control method disclosed in this embodiment is applied to an electronic device, and the electronic device may be named as a first device to distinguish it from other devices.
[0168] The target application is an application on the first device. When the first device obtains a multimedia data output instruction of the target application of the first device that requires responses from multiple devices, it is necessary to first determine the multimedia data to be output in the multimedia data output instruction; at the same time, determine which devices the multiple devices refer to, such as: the multiple devices refer to the first device and the second device, or the multiple devices refer to the second device and the third device, or the multiple devices refer to the first device, the second device and the third device.
[0169] Regardless of which devices the multiple devices refer to, these devices must be guaranteed to include a first body and a second body connected to the first body through a connecting component, and the first body can move through the connecting component to change the positional relationship between the first body and the second body, that is, each of the multiple devices includes a first body and a second body, and the first body can move relative to the second body.
[0170] After determining which devices the multiple devices refer to, an association relationship between the multiple devices is established so that when each device respectively executes the movement of the first body relative to the second body, a synchronous movement effect can be achieved.
[0171] For example, taking the first device and the second device as an example, the first device and the second device can be set in the same local area network, the first device is used as the server, and the second device is used as the device, and a connection is established, so that the association relationship between the first device and the second device is established. Of course, the association relationship can also be established in other ways, which are not specifically limited here.
[0172] That is, when establishing an association relationship among multiple devices, it is necessary to determine the master device and slave devices among the multiple devices. If the multiple devices include the first device, the first device is the master device and the other devices are slave devices. If the multiple devices do not include the first device, the master device can be determined from the multiple devices. The master device can be determined based on computing power, or it can be determined randomly, or it can be determined based on the rate of data transmission between the first device.
[0173] While or after the multiple devices establish an association relationship, the first device also needs to analyze the multimedia data to determine the characteristics of the multimedia data.
[0174] After establishing an association relationship among multiple devices and determining the characteristics of the multimedia data, the first device is controlled to output the multimedia data. At the same time, the multiple devices are controlled to move synchronously, the first body of each device moves relative to the second body, and the movement of the first body relative to the second body conforms to the characteristics of the multimedia data.
[0175] For example: multiple devices are a first device and a second device. After the first device establishes an association with the second device and determines the characteristics of the multimedia data, the first device outputs the multimedia data. At the same time, the first device determines the action corresponding to the characteristics of the multimedia data output at each moment, and the first device controls the first body to move relative to the second body according to the determined action. The first device outputs information to the second device so that when the first body of the first device moves relative to the second body of the first device according to the determined action, the first body of the second device can synchronously move relative to the second body of the second device according to the determined action, thereby achieving the purpose of synchronous action of the first device and the second device to supplement the effect of the multimedia data output by the first device.
[0176] For another example, the multiple devices are the second device and the third device, and the first device obtains a multimedia data output instruction in a target application of the first device. At this time, after the second device and the third device are associated, an association relationship between the first device and the second device and the third device can be established at the same time. After the first device determines the characteristics of the multimedia data, it outputs the multimedia data. At the same time, the first device can determine an action corresponding to the characteristics of the multimedia data output at each moment, and send the action to the second device and the third device. The second device and the third device synchronously control the first body to perform a corresponding action relative to the second body based on the action sent by the first device, so as to achieve the purpose of supplementing the effect of the multimedia data output by the first device through the synchronous action of the second device and the third device.
[0177] Alternatively, when the multiple devices are the second device and the third device, when the first device obtains the multimedia data output instruction in the target application of the first device, an association relationship is established between the second device and the third device, the first device outputs the multimedia data, and the second device determines the characteristics of the multimedia data output by the first device at each moment, and determines the action corresponding to the characteristics of the multimedia data output by the first device at each moment, and sends the determined action to the third device, controls the second device and the third device to synchronously control the first body to perform the corresponding action relative to the second body, so as to achieve the purpose of supplementing the effect of the multimedia data output by the first device through the synchronous action of the second device and the third device.
[0178] Correspondingly, when the multiple devices are the first device, the second device and the third device, they can be executed in the same manner as above, that is, the first device is used as the main device, the characteristics of the multimedia data and the actions corresponding to the characteristics of the multimedia data are determined, and the actions are sent to the second device and the third device, so that the first device, the second device and the third device synchronously execute the corresponding actions, thereby achieving the purpose of supplementing the effect of the multimedia data output by the first device.
[0179] It should be noted that in order for multiple devices to synchronously execute corresponding actions, it is necessary to ensure that when the first body in the multiple devices moves relative to the second body, whether it is the angle of the first body relative to the second body or the movement frequency and other information, the multiple devices need to remain consistent in order to achieve the purpose of synchronous execution.
[0180] The device control method disclosed in the present embodiment determines other electronic devices that establish an association relationship with the electronic device when a multimedia data output instruction that requires multiple devices to respond is obtained in a target application of the electronic device. While the electronic device outputs the multimedia data, the device control method controls the first body of the other electronic devices to synchronize with the first body of the electronic device to move based on the characteristic movement of the multimedia data currently output by the electronic device, so that the movement of the first body relative to the second body in the electronic device and the other electronic devices can meet the characteristics of the multimedia data output by the electronic device, and multiple electronic devices can synchronously perform the same action. Through the synchronous movement of the first bodies of the multiple devices relative to the second bodies, the multimedia data output by the electronic device can be enhanced, the user experience can be improved, and the application scenarios of multiple modes of the electronic device can be increased.
[0181] This embodiment discloses an electronic device, including:
[0182] A first body, a second body and a processor,
[0183] The second body is connected to the first body via a connecting assembly, and the first body can move via the connecting assembly so that the positional relationship between the first body and the second body changes;
[0184] The processor is used to obtain instructions to be executed in a target application of the electronic device, the instructions to be executed are used to control the target application to execute a target operation, and in response to the instructions to be executed, the first body of the electronic device is controlled to move relative to the second body.
[0185] Furthermore, the processor is configured to:
[0186] In response to the image display instruction, a first image to be displayed is determined; the first body is controlled to move relative to the second body, and as the first body moves relative to the second body, the area of the first image output by the display screen on the first body changes.
[0187] Furthermore, the processor is configured to:
[0188] In response to an image acquisition instruction, an image acquisition device disposed on the first body is controlled to be in an image acquisition state; the first body of the electronic device is controlled to move relative to the second body to obtain a second image through the image acquisition device; wherein the image information of the second image obtained in the moving state is more than the image information of the image obtained in the non-moving state.
[0189] Furthermore, the processor is configured to:
[0190] In response to an image acquisition instruction, the location of the target object is determined; and the first body of the electronic device is controlled to move relative to the second body so that the image acquisition device disposed on the first body acquires an image based on the location of the target object.
[0191] Furthermore, the processor is configured to:
[0192] If it is determined that the image to be acquired in the instruction to be executed is a panoramic image or a wide-angle image, the image acquisition device arranged on the first body is controlled to use the position of the target object as the initial position for image acquisition, and the image acquisition function is started; the first body of the electronic device is controlled to move relative to the second body to obtain a third image through the image acquisition device, and the third image is a panoramic image or a wide-angle image.
[0193] Furthermore, the processor is configured to:
[0194] The image acquisition device disposed on the first body is controlled to start an image preview function; under the image preview function, the first body of the electronic device is controlled to move relative to the second body, and when it is determined that the target object is included in the framing range of the image acquisition device, the position corresponding to the framing range is determined to be the position of the target object.
[0195] Furthermore, the processor is configured to:
[0196] In response to the multimedia data output instruction, the electronic device outputs multimedia data corresponding to the multimedia data output instruction; based on the characteristics of the multimedia data currently output by the electronic device, the first body of the electronic device is controlled to move relative to the second body.
[0197] Furthermore, the processor is configured to:
[0198] If the instruction to be executed is a multimedia data output instruction that requires responses from multiple devices, determine other electronic devices that establish an association relationship with the electronic device; when the electronic device outputs multimedia data, control the first body of the other electronic devices to synchronize with the first body of the electronic device based on the characteristic movement of the multimedia data output by the electronic device at the current moment.
[0199] Furthermore, the processor is configured to:
[0200] Obtaining target object information acquired by an image acquisition device;
[0201] In response to the instruction to be executed, the first body of the electronic device is controlled to move relative to the second body according to the target object information acquired by the image acquisition device.
[0202] The electronic device disclosed in this embodiment is implemented based on the device control method disclosed in the above embodiments, which will not be described in detail here.
[0203] The electronic device disclosed in this embodiment obtains instructions to be executed in a target application of the electronic device, and the instructions to be executed are used to control the target application to execute a target operation; in response to the instructions to be executed, the first body of the electronic device is controlled to move relative to the second body, and the electronic device includes a first body and a second body connected to the first body through a connecting component, and the first body can move through the connecting component to change the positional relationship between the first body and the second body. When obtaining the instructions to be executed in the target application, this solution controls the first body of the electronic device to move relative to the second body in response to the instructions to be executed, so that the relative movement between the first body and the second body can cooperate with the target application to execute the target operation in response to the instructions to be executed, so as to increase the change of the electronic device mode when the target application executes the operation, and increase the fun of using the electronic device.
[0204] This embodiment discloses a device control system, and its structural diagram is as follows: Fig.10 As shown, including:
[0205] An acquisition unit 101 and a control unit 102.
[0206] The obtaining unit 101 is used to obtain the to-be-executed instruction in the target application of the electronic device, and the to-be-executed instruction is used to control the target application to perform the target operation;
[0207] The control unit 102 is used to control the movement of the first body of the electronic device relative to the second body in response to the instruction to be executed. The electronic device includes a first body and a second body connected to the first body through a connecting component. The first body can move through the connecting component to change the positional relationship between the first body and the second body.
[0208] The device control system disclosed in this embodiment is implemented based on the device control method disclosed in the above embodiment, which will not be described in detail here.
[0209] The device control system disclosed in this embodiment obtains the to-be-executed instructions in the target application of the electronic device, and the to-be-executed instructions are used to control the target application to perform the target operation; in response to the to-be-executed instructions, the first body of the electronic device is controlled to move relative to the second body, and the electronic device includes a first body and a second body connected to the first body through a connecting component, and the first body can move through the connecting component to change the positional relationship between the first body and the second body. When obtaining the to-be-executed instructions in the target application, this scheme controls the first body of the electronic device to move relative to the second body in response to the to-be-executed instructions, so that the relative movement between the first body and the second body can cooperate with the target application to perform the target operation in response to the to-be-executed instructions, so as to increase the change of the electronic device mode when the target application performs the operation, and increase the fun of using the electronic device.
[0210] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.
[0211] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0212] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0213] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
Claims
1. A device control method, comprising: Obtaining a to-be-executed instruction in a target application of an electronic device, wherein the to-be-executed instruction is used to control the target application to perform a target operation; In response to the instruction to be executed, the first body of the electronic device is controlled to move relative to the second body. The electronic device includes a first body and a second body connected to the first body through a connecting component. The first body can move through the connecting component to change the positional relationship between the first body and the second body.
2. The method according to claim 1, wherein the instruction to be executed is an image display instruction, and the step of controlling the first body of the electronic device to move relative to the second body in response to the instruction to be executed comprises: In response to the image display instruction, determining a first image to be displayed; The first body is controlled to move relative to the second body, and as the first body moves relative to the second body, an area of the first image outputted by the display screen on the first body changes.
3. The method according to claim 1 , wherein the instruction to be executed is an image acquisition instruction, and wherein, in response to the instruction to be executed, controlling the first body of the electronic device to move relative to the second body comprises: In response to the image acquisition instruction, controlling the image acquisition device provided on the first body to be in an image acquisition state; controlling the first body of the electronic device to move relative to the second body to obtain a second image through the image acquisition device; The second image obtained in a motion state contains more image information than that of an image obtained in a non-motion state.
4. The method according to claim 1, wherein the instruction to be executed is an image acquisition instruction, and wherein, in response to the instruction to be executed, controlling the first body of the electronic device to move relative to the second body comprises: In response to the image acquisition instruction, determining a location of a target object; The first body of the electronic device is controlled to move relative to the second body, so that an image acquisition device provided on the first body acquires an image based on the position of the target object.
5. The method according to claim 4, wherein controlling the first body of the electronic device to move relative to the second body so that an image acquisition device disposed on the first body acquires an image based on the location of the target object comprises: If it is determined that the image to be acquired in the to-be-executed instruction is a panoramic image or a wide-angle image, controlling the image acquisition device provided in the first body to use the position of the target object as the initial position for image acquisition and start an image acquisition function; The first body of the electronic device is controlled to move relative to the second body, so as to obtain a third image through the image acquisition device, where the third image is the panoramic image or the wide-angle image.
6. The method according to claim 4, wherein determining the location of the target object comprises: Controlling the image acquisition device provided in the first body to start an image preview function; Under the image preview function, the first body of the electronic device is controlled to move relative to the second body. When it is determined that the target object is included in the viewing range of the image acquisition device, the position corresponding to the viewing range is determined as the position of the target object.
7. The method according to claim 1, wherein the instruction to be executed is a multimedia data output instruction, and wherein, in response to the instruction to be executed, controlling the first body of the electronic device to move relative to the second body comprises: In response to the multimedia data output instruction, the electronic device outputs the multimedia data corresponding to the multimedia data output instruction; The first body of the electronic device is controlled to move relative to the second body based on the characteristics of the multimedia data currently output by the electronic device.
8. The method according to claim 7, wherein controlling the movement of the first body of the electronic device relative to the second body based on the characteristics of the multimedia data currently output by the electronic device comprises: If the instruction to be executed is a multimedia data output instruction requiring responses from multiple devices, determining other electronic devices to establish an association relationship with the electronic device; When the electronic device outputs the multimedia data, the first body of the other electronic device is controlled to synchronize with the first body of the electronic device to perform a characteristic movement based on the multimedia data currently output by the electronic device.
9. The method according to claim 1, wherein, in response to the to-be-executed instruction, controlling the first body of the electronic device to move relative to the second body comprises: Obtaining target object information captured by an image acquisition device; In response to the instruction to be executed, the first body of the electronic device is controlled to move relative to the second body according to the target object information captured by the image capture device.
10. An electronic device comprising: first ontology; a second body connected to the first body via a connecting assembly, wherein the first body can move via the connecting assembly so as to change the positional relationship between the first body and the second body; The processor is used to obtain a to-be-executed instruction in a target application of the electronic device, wherein the to-be-executed instruction is used to control the target application to perform a target operation; and in response to the to-be-executed instruction, control the first body of the electronic device to move relative to the second body.
