Method and apparatus for automatically adjusting the orientation of an electronic device by a stand

By automatically recognizing the scene and generating adjustment commands, the phone holder can be automatically adjusted, solving the problem of inconvenience for users to manually adjust the angle and improving the user experience.

CN116954310BActive Publication Date: 2025-12-12HONOR DEVICE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210391715.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-14
Publication Date
2025-12-12
Estimated Expiration
2042-04-14

AI Technical Summary

Technical Problem

Existing phone holders require users to manually adjust the angle, which makes it impossible to adjust the phone angle when the user's hands are not free, resulting in a poor user experience.

Method used

The bracket automatically identifies the usage scenario of the electronic device, obtains the orientation that matches the specified usage scenario, and generates bracket adjustment commands to control the bracket to automatically adjust the orientation of the electronic device, including rotation around the vertical and horizontal axes, as well as translation on the Z-axis, to achieve automatic adjustment.

Benefits of technology

It can automatically adjust the phone angle without requiring manual operation from the user, improving the user experience, especially when both hands are inconvenient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116954310B_ABST
    Figure CN116954310B_ABST
Patent Text Reader

Abstract

The application provides a method and device for automatically adjusting the direction of an electronic device through a support, which can automatically identify that the electronic device is in a specified use scenario, and acquire a first direction matched with the specified use scenario and a second direction currently presented by the electronic device. If the first direction is inconsistent with the second direction, a support adjustment instruction is generated and sent to the support carrying the electronic device. The support executes the received support adjustment instruction to adjust the angle of the support, and finally adjusts the angle of the mobile phone fixed on the support. The scheme can identify the scenario of the electronic device, automatically generate the instruction for adjusting the support, and automatically adjust the direction of the electronic device through the automatic adjustment of the support by executing the corresponding instruction of the support, without manual operation of the user. Moreover, the intelligence degree of the adjustment process is improved, and finally the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of electronic devices, and in particular to a method and device for adjusting the direction of an electronic device via a support. BACKGROUND

[0002] Taking a mobile phone as an example, a mobile phone support is a support for fixing a mobile phone. However, the mobile phone support currently needs to be manually adjusted by a user to adjust the angle of the support, so as to adjust the angle of the mobile phone to the best angle. Such a mobile phone support cannot automatically adjust the angle, resulting in inconvenience for the user, for example, in a scenario where the user cannot adjust the mobile phone support with both hands, the user cannot adjust the angle of the mobile phone. SUMMARY

[0003] Therefore, the present application provides a method and device for adjusting the direction of an electronic device via a support to solve the above problems, and the disclosed technical solution is as follows:

[0004] In a first aspect, the present application provides a method for automatically adjusting the direction of an electronic device via a support, applied to the electronic device, and the method comprises: after recognizing that the electronic device is in a specified use scenario, acquiring a first direction matched with the specified use scenario and a second direction currently presented by the electronic device; if it is determined that the first direction is inconsistent with the second direction, generating a support adjustment instruction; and sending the support adjustment instruction to the support carrying the electronic device, so that the support executes the support adjustment instruction to adjust the direction of the electronic device. This solution can recognize the use scenario of the electronic device, automatically generate an instruction for adjusting the support and send it to the support. The support executes the corresponding instruction to automatically adjust the direction of the electronic device via the support, without the need for manual operation by the user, and the intelligence of the adjustment process is improved, ultimately improving the user experience.

[0005] In a possible implementation manner of the first aspect, the process of determining whether the first direction is consistent with the second direction comprises: acquiring a face image of the user, determining the relative inclination angle between the face image and the screen of the electronic device, and obtaining the inclination angle between the first direction and the second direction; if the inclination angle is not within a preset inclination range, it is determined that the first direction is inconsistent with the second direction; and if the inclination angle is within the preset inclination range, it is determined that the first direction is consistent with the second direction. In some scenarios, the relative inclination angle between the user and the screen can be recognized, and then the adjustment support instruction is generated based on the relative inclination angle, so that the face image and the screen are kept consistent in direction after the support executes the adjustment support instruction, in other words, the electronic device is kept in a direction convenient for the user to watch the screen, improving the user experience.

[0006] In a possible implementation manner of the first aspect, when it is determined that the first direction is inconsistent with the second direction, the bracket adjustment instruction is generated, including: generating the bracket adjustment instruction based on an inclination angle between the first direction and the second direction, so that the inclination angle between the first direction and the second direction is reduced to the preset inclination angle range.

[0007] In a possible implementation manner of the first aspect, the bracket adjustment instruction is generated based on the inclination angle between the first direction and the second direction, including: in a direction with a vertical axis of the bracket as a rotation axis, if the inclination angle is that the first direction is inclined to the left by a first angle relative to the second direction, generating a first bracket adjustment instruction based on the first angle and a left-right preset inclination angle range, the first bracket adjustment instruction being used to rotate the bracket to the left around the vertical axis, and the inclination angle between the second direction and the first direction being in the left-right preset inclination angle range; in the direction with the vertical axis as the rotation axis, if the inclination angle is that the first direction is inclined to the right by a second angle relative to the second direction, generating a second bracket adjustment instruction based on the second angle and the left-right preset inclination angle range, the second bracket adjustment instruction being used to rotate the bracket to the right around the vertical axis, and the inclination angle between the second direction and the first direction being in the left-right preset inclination angle range. This scheme can realize the rotation of the bracket around the vertical axis, thereby realizing the rotation of the electronic device around the vertical axis, and finally realizing the reduction of the relative inclination angle between the screen and the face in the direction with the vertical axis as the rotation axis, thereby facilitating the user to watch the screen, and the whole process does not need to be manually adjusted by the user, thereby improving the user experience.

[0008] In a possible implementation manner of the first aspect, the bracket adjustment instruction is generated based on the inclination angle between the first direction and the second direction, including: in a direction with a vertical axis of the bracket as a rotation axis, if the inclination angle is that the first direction is inclined to the left by a first angle relative to the second direction, generating a first bracket adjustment instruction based on the first angle and a left-right preset inclination angle range, the first bracket adjustment instruction being used to rotate the bracket to the left around the vertical axis, and the inclination angle between the second direction and the first direction being in the left-right preset inclination angle range; in the direction with the vertical axis as the rotation axis, if the inclination angle is that the first direction is inclined to the right by a second angle relative to the second direction, generating a second bracket adjustment instruction based on the second angle and the left-right preset inclination angle range, the second bracket adjustment instruction being used to rotate the bracket to the right around the vertical axis, and the inclination angle between the second direction and the first direction being in the left-right preset inclination angle range. This scheme can realize the rotation of the bracket around the vertical axis, thereby realizing the rotation of the electronic device around the vertical axis, and finally realizing the reduction of the relative inclination angle between the screen and the face in the direction with the vertical axis as the rotation axis, thereby facilitating the user to watch the screen, and the whole process does not need to be manually adjusted by the user, thereby improving the user experience.

[0009] In a possible implementation manner of the first aspect, after obtaining the face image of the user, the method further includes: when it is determined that the face image is the specified face, performing determination of a relative inclination angle between the face image and a screen of the electronic device to obtain an inclination angle between the first direction and the second direction. In this way, the angle of the specified face adjusting the support can be tracked, interference of the face of other users on the adjustment of the support can be avoided, and the adjustment accuracy can be improved.

[0010] In a possible implementation manner of the first aspect, the specified face is a pre-recorded face image, or the specified face is the face of the user currently using the electronic device. It can be seen that the scheme can track a pre-set face, and can also dynamically track the user currently using the electronic device, for example, in a scenario in which multiple users use the same electronic device, the user currently speaking can be dynamically tracked according to the sound source direction.

[0011] In a possible implementation manner of the first aspect, the process of determining whether the first direction and the second direction are consistent includes: receiving an interaction action of the user with the electronic device, determining the first direction matched with the interaction action, and obtaining the second direction from a horizontal-vertical screen direction currently presented by the electronic device; if the screen directions corresponding to the first direction and the second direction are consistent, it is determined that the first direction and the second direction are consistent; if the screen directions corresponding to the first direction and the second direction are inconsistent, it is determined that the first direction and the second direction are inconsistent. In this way, when the user adjusts the screen display mode of the electronic device through the interaction action, it can be perceived that the interaction action further controls the support to make corresponding adjustment, so that the screen display direction of the electronic device is consistent with the screen display mode selected by the user, and the process does not need to be manually adjusted by the user, thereby improving the user experience.

[0012] In a possible implementation manner of the first aspect, if it is determined that the first direction and the second direction are inconsistent, the support adjustment instruction is generated, including: generating the support adjustment instruction based on the first direction and the second direction, the support adjustment instruction being used to make the support rotate around a first rotation axis so that the screen display direction of the electronic device is consistent with the first direction, and the first rotation axis is a rotation axis perpendicular to the horizontal axis and the vertical axis.

[0013] In a further possible implementation form of the first aspect, the receiving the interaction action of the user with the electronic device and determining the first direction matched with the interaction action comprises: receiving an interaction operation of the user adjusting a screen display mode of the electronic device, and obtaining a screen display direction matched with the interaction operation; and the generating the support adjustment instruction based on the first direction and the second direction comprises: if the first direction is a landscape display direction and the second direction is a portrait display direction, generating a fifth support adjustment instruction for causing the screen of the electronic device to present the landscape display direction; and if the first direction is the portrait display direction and the second direction is the landscape display direction, generating a sixth support adjustment instruction for causing the screen of the electronic device to present the portrait display direction. It can be seen that, in this solution, the current screen display mode and the landscape or portrait direction of the electronic device can be perceived, and if the directions of the two are inconsistent, the support is controlled to rotate around the first rotation axis to adjust the screen display direction of the electronic device so as to be consistent with the display mode selected by the user. The whole adjustment process does not need manual operation of the user, and the user experience is improved.

[0014] In a further possible implementation form of the first aspect, the frame of the electronic device is provided with a pressure sensor; the receiving the interaction action of the user with the electronic device and determining the first direction matched with the interaction action comprises: receiving a touch operation of the user on the frame of the electronic device, and determining a position corresponding to the touch operation and the first direction matched with the position of the touch operation when it is determined that the touch pressure of the touch operation is greater than a pressure preset value.

[0015] In a further possible implementation form of the first aspect, the determining the first direction matched with the position of the touch operation comprises: if the position corresponding to the touch operation is above the right frame of the electronic device, determining that the first direction is the landscape display direction; and if the position corresponding to the touch operation is below the right frame of the electronic device, determining that the first direction is the portrait display direction.

[0016] In a further possible implementation form of the first aspect, the receiving the interaction action of the user with the electronic device and determining the first direction matched with the interaction action comprises: detecting a head deflection angle in a face image of the user, the head deflection angle being an included angle between a line connecting two eyes and a reference plane; and if an absolute value of the head deflection angle is greater than an angle preset value, determining that the first direction is the landscape display direction or the portrait display direction. In this way, the user can directly use the head posture to control the support to adjust the landscape or portrait direction of the electronic device without manual operation, and the user experience is improved.

[0017] In a further possible implementation form of the first aspect, if the absolute value of the head deflection angle is greater than the angle preset value, determining the first direction based on the head deflection angle comprises: if the head deflection angle is negative and the absolute value of the head deflection angle is greater than the angle preset value, determining that the first direction is a horizontal screen display direction; if the head deflection angle is positive and greater than the angle preset value, determining that the first direction is a vertical screen display direction.

[0018] In a further possible implementation form of the first aspect, the electronic device is provided with a camera, the camera comprises a low-power mode and / or a normal working mode; obtaining the face image of the user comprises: obtaining a first image, the first image being captured by the camera in the low-power mode; after identifying that the first image contains the face image, controlling the camera to switch to the normal working mode; obtaining a second image containing the face, and determining the relative inclination angle between the second image and the screen of the electronic device, the second image being captured by the camera in the normal working mode, and the definition of the second image being higher than that of the first image. The low-power camera can reduce the overall power consumption of the electronic device.

[0019] In a further possible implementation form of the first aspect, the electronic device is provided with a camera, and in the specified use scenario, the camera is in the normal working mode; obtaining the face image of the user comprises: obtaining a third image captured by the camera in the normal working mode; after identifying that the third image contains the face image, determining the relative inclination angle between the face image and the screen of the electronic device.

[0020] In a further possible implementation form of the first aspect, if it is detected that the face image lacks a local part below the face, the support adjustment instruction is used to lower the position of the electronic device in the vertical direction; if it is detected that the face image lacks a local part above the face, the first direction is determined to be to raise the position of the electronic device in the vertical direction. In this way, the electronic device can also be controlled to translate up and down on the Z-axis of the support, thereby expanding the adjustable direction.

[0021] In a further possible implementation form of the first aspect, the electronic device is provided with a camera, the camera comprises a low-power mode and / or a normal working mode; obtaining the face image of the user comprises: obtaining a first image, the first image being captured by the camera in the low-power mode; after identifying that the first image contains the face image, controlling the camera to switch to the normal working mode; obtaining a second image containing the face, and determining the relative inclination angle between the second image and the screen of the electronic device, the second image being captured by the camera in the normal working mode, and the definition of the second image being higher than that of the first image. The low-power camera can reduce the overall power consumption of the electronic device.

[0019] In a further possible implementation form of the first aspect, the electronic device is provided with a camera, and in the specified use scenario, the camera is in the normal working mode; obtaining the face image of the user comprises: obtaining a third image captured by the camera in the normal working mode; after identifying that the third image contains the face image, determining the relative inclination angle between the face image and the screen of the electronic device.

[0020] In a further possible implementation form of the first aspect, if it is detected that the face image lacks a local part below the face, the support adjustment instruction is used to lower the position of the electronic device in the vertical direction; if it is detected that the face image lacks a local part above the face, the first direction is determined to be to raise the position of the electronic device in the vertical direction. In this way, the electronic device can also be controlled to translate up and down on the Z-axis of the support, thereby expanding the adjustable direction.

[0021] In a further possible implementation form of the first aspect, the electronic device is provided with a camera, the camera comprises a low-power mode and / or a normal working mode; obtaining the face image of the user comprises: obtaining a first image, the first image being captured by the camera in the low-power mode; after identifying that the first image contains the face image, controlling the camera to switch to the normal working mode; obtaining a second image containing the face, and determining the relative inclination angle between the second image and the screen of the electronic device, the second image being captured by the camera in the normal working mode, and the definition of the second image being higher than that of the first image. The low-power camera can reduce the overall power consumption of the electronic device.

[0019] In a further possible implementation form of the first aspect, the electronic device is provided with a camera, and in the specified use scenario, the camera is in the normal working mode; obtaining the face image of the user comprises: obtaining a third image captured by the camera in the normal working mode; after identifying that the third image contains the face image, determining the relative inclination angle between the face image and the screen of the electronic device.

[0020] In a further possible implementation form of the first aspect, if it is detected that the face image lacks a local part below the face, the support adjustment instruction is used to lower the position of the electronic device in the vertical direction; if it is detected that the face image lacks a local part above the face, the first direction is determined to be to raise the position of the electronic device in the vertical direction. In this way, the electronic device can also be controlled to translate up and down on the Z-axis of the support, thereby expanding the adjustable direction.

[0021]

[0022] In a third aspect, the present application provides an electronic device, comprising: one or more processors, a memory, and a touch screen; the memory is configured to store program code; the processor is configured to run the program code, so that the electronic device implements the method for automatically adjusting the direction of the electronic device by the support as described in the first aspect or any possible implementation manner of the first aspect.

[0023] In a fourth aspect, the present application provides a computer readable storage medium, characterized in that instructions are stored thereon, when the instructions are run on an electronic device, the electronic device executes the method for automatically adjusting the direction of the electronic device by the support as described in any one of claims 1 to 17.

[0024] In a fifth aspect, the present application provides a support, comprising: a base, a first fixing part, a first rotating mechanism, a second rotating mechanism, a third rotating mechanism, a communication module, a driving motor, and a motor controller; the second rotating mechanism is fixed on the base, and the second rotating structure is also connected to the first rotating mechanism; the first rotating mechanism is also connected to the third rotating mechanism, and the third rotating mechanism is connected to the first fixing part, which is used for fixing the electronic device; the first rotating mechanism, the second rotating mechanism, and the third rotating mechanism are respectively driven by independent driving motors; the communication module is used for receiving the support adjustment instruction sent by the electronic device in communication connection with the support, and forwarding to the motor controller for execution, and the support adjustment instruction is generated based on the method for automatically adjusting the direction of the electronic device by the support as described in the first aspect or any possible implementation manner of the first aspect; the motor controller is used for executing the support adjustment instruction, and driving the matching driving motor to run, so as to adjust the position of the first fixing part.

[0025] It should be understood that the description of technical features, technical solutions, advantages or similar language in the present application does not imply that all features and advantages can be realized in any single embodiment. On the contrary, it can be understood that the description of a feature or advantage means that the specific technical feature, technical solution or advantage is included in at least one embodiment. Therefore, the description of technical features, technical solutions or advantages in the specification does not necessarily refer to the same embodiment. Further, the technical features, technical solutions and advantages described in the embodiments can be combined in any appropriate manner. Those skilled in the art will understand that the embodiments can be implemented without one or more specific technical features, technical solutions or advantages of a particular embodiment. In other embodiments, additional technical features and advantages can be identified in specific embodiments that do not embody all embodiments. BRIEF DESCRIPTION OF DRAWINGS

[0026] In order to make the technical solutions in the embodiments of the present application or the prior art clearer, the accompanying drawings needed in the embodiments or prior art description will be briefly introduced. Obviously, the accompanying drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative effort based on these drawings.

[0027] Figure 1 is a front view of an electronic device support provided by an embodiment of the present application;

[0028] Figure 2 is a side view of an electronic device support provided by an embodiment of the present application;

[0029] Figures 3-4 is a schematic diagram of a first fixing part of an electronic device support provided by an embodiment of the present application rotating to different angles around the X axis;

[0030] Figure 5 is a side view of another electronic device support provided by an embodiment of the present application;

[0031] Figure 6 is a front view of another electronic device support provided by an embodiment of the present application;

[0032] Figure 7 is a sectional view of an electronic device support provided by an embodiment of the present application;

[0033] Figure 8 is a schematic diagram of an internal logic module of an electronic device support provided by an embodiment of the present application;

[0034] Figure 9 is a schematic diagram of another electronic device support provided by an embodiment of the present application;

[0035] Figure 10 is a structural schematic diagram of an electronic device provided by an embodiment of the present application;

[0036] Figure 11 is a software architecture schematic diagram of an electronic device provided by an embodiment of the present application;

[0037] Figure 12 is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0038] Figure 13 is Figure 12 a method flowchart for adjusting the direction of an electronic device by a support in the application scenario shown;

[0039] Figure 14 is a schematic diagram of another application scenario provided by an embodiment of the present application;

[0040] Figure 15 is a method flowchart provided by an embodiment of the present application, which is suitable for the application scenario shown in Figure 14 is a method flowchart provided by an embodiment of the present application, which is suitable for the application scenario shown in

[0041] Figure 16 is a schematic diagram of another application scenario provided by an embodiment of the present application;

[0042] Figure 17 is a method flowchart provided by an embodiment of the present application, which is suitable for the application scenario shown in Figure 16

[0043] Figure 18 is a schematic diagram of another application scenario provided by an embodiment of the present application;

[0044] Figure 19 is a method flowchart provided by an embodiment of the present application, which is suitable for the application scenario shown in Figure 18

[0045] Figures 20-21 is a schematic diagram of another application scenario provided by an embodiment of the present application;

[0046] Figure 22 is a method flowchart provided by an embodiment of the present application, which is suitable for the application scenario shown in Figure 20

[0047] Figure 23 is a schematic diagram of an electronic device pressure sensor provided by an embodiment of the present application;

[0048] Figures 24-25 is a schematic diagram of another application scenario provided by an embodiment of the present application;

[0049] Figure 26 is a method flowchart provided by an embodiment of the present application, which is suitable for the application scenario shown in Figure 24

[0050] Figures 27-30 is a schematic diagram of another application scenario provided by an embodiment of the present application;

[0051] Figure 31 is a method flowchart provided by an embodiment of the present application, which is suitable for the application scenario shown in Figures 27-30 DETAILED DESCRIPTION

[0052] The terms “first”, “second”, and “third” and the like in the specification of the present application, claims, and description of drawings are used to distinguish different objects, and are not used to limit a specific sequence.

[0053] ​​​​​In the embodiments of the present application, the word "exemplary" or "for example" is used to mean serving as an example, instance, or illustration. Any embodiment or design presented as "exemplary" or "for example" in the embodiments of the present application is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "for example" is intended to present concepts in a concrete manner.

[0054] As described above, the electronic device support in the prior art needs to be manually adjusted by the user to adjust the angle of the electronic device. To solve this problem, the inventors of the present application propose a method for automatically adjusting the direction of the electronic device by the support. The method can automatically identify that the electronic device is in a specified scene, and obtain a first direction matched with the specified use scene and a second direction currently presented by the electronic device. If the first direction is inconsistent with the second direction, a support adjustment instruction is generated, and the support adjustment instruction is sent to the support carrying the electronic device. The support executes the received support adjustment instruction to adjust the angle of the support, and finally adjusts the angle of the mobile phone fixed on the support. This scheme can identify the scene of the electronic device, automatically generate an instruction for adjusting the support, and the support executes the corresponding instruction to automatically adjust the direction of the electronic device by the automatic adjustment of the support, without the need for manual operation by the user. Moreover, the intelligence of the adjustment process is improved, and the user experience is ultimately improved.

[0055] For the sake of clear and concise description of the following embodiments, first, the structure of the electronic device support is introduced. Figures 1-9 The structure of the electronic device support is introduced.

[0056] Figure 1 A front view of an electronic device support provided by an embodiment of the present application is shown, Figure 2 and Figure 3 A side view of the electronic device support is shown.

[0057] As Figures 1-7 shown, the electronic device support can include a first fixing part 11, a first rotating mechanism 12, a second rotating mechanism 13, a third rotating mechanism 14, and a base 15.

[0058] The first fixing part 11 is used to fix an electronic device, such as a mobile phone, a tablet computer, and other portable terminal devices. In an example, the first fixing part 11 can be a fixing part with a magnetic attraction function, i.e., the first fixing part 11 generates a magnetic force to attract and fix the electronic device.

[0059] If the electronic device itself supports magnetic attraction, the electronic device can be directly placed on the first fixing part 11, and the first fixing part 11 attracts and fixes the electronic device by magnetic force. If the electronic device itself does not support magnetic attraction, a magnetic attraction protective shell can be added to the electronic device, and the electronic device is attracted and fixed to the first fixing part by the magnetic attraction protective shell.

[0060] Of course, in other embodiments of this application, the first fixing part 11 may also fix the electronic device in other ways, such as by snap-fit. This application does not limit this method.

[0061] The bracket provided in this application embodiment can achieve rotation in the X, Y, and Z directions through the first rotating mechanism 12, the second rotating mechanism 13, and the third rotating mechanism 14. Wherein, as... Figures 1-2 As shown, the X-axis is the horizontal axis, and the Z-axis is the vertical axis. The Y-axis is the axis perpendicular to both the X-axis and the Z-axis. For example, when the area plane of the first fixing part 11 is parallel to the Z-axis, the Y-axis is perpendicular to that plane.

[0062] like Figure 2 As shown, the first rotating mechanism 12 is connected to the second rotating mechanism 13, and also to the third rotating mechanism 14. The first fixed part 11 is connected to the third rotating mechanism 14. The first fixed part 11 rotates around the X, Y, and Z axes through the first rotating mechanism, the second rotating mechanism, and the third rotating mechanism.

[0063] The first fixed part 11 is rotated around the X-axis by the first rotating mechanism 12, thus changing the pitch angle of the first fixed part 11. Figures 2-4 As shown, the first rotating mechanism 12 can rotate around the X-axis to perform pitch motion, and the pitch angle can be in the range of -10° to 80°. This application does not limit the range of the pitch angle.

[0064] like Figure 5 As shown, the second rotating mechanism 13 includes a telescopic rod 131 and a fixed rod 132. The fixed rod 132 is fixed to the base 14, one end of the telescopic rod 131 is disposed inside the fixed rod 132, and the other end is connected to the second fixed part of the first rotating mechanism 12.

[0065] Telescopic rod 131 can move up and down, such as Figure 5 As shown, if the telescopic rod 131 moves upward, the first fixing part 11 moves upward along with the telescopic rod 131. Similarly, if the telescopic rod 131 moves downward, the first fixing part 11 moves downward along with it, that is, the first fixing part 11 moves from... Figure 5 Move the position shown downwards to Figure 2 At the position shown. That is, the telescopic rod 131 moves up and down to achieve the up and down movement of the first fixed part 11.

[0066] Meanwhile, the second rotating mechanism 13 can also enable the first fixed part 11 to rotate 360° around the Z-axis.

[0067] Further, the first fixed part 11 can be rotated 360° around the Y axis by the third rotating mechanism 14. For example, the first fixed part 11 can be rotated 90° counterclockwise by the third rotating mechanism 14, so that the first fixed part 11 is changed from the position shown in Figure 1 to the position shown in Figure 6 , i.e. the first fixed part 11 is rotated 90° counterclockwise around the Y axis. This can switch the mobile phone between the horizontal and vertical screen states.

[0068] In an example, as shown in Figure 7 , a first driving motor 21 can be arranged at the connection between the first rotating mechanism 12 and the third rotating mechanism 14. The output shaft of the first driving motor 21 is fixed to the third rotating mechanism 14, and the first driving motor 21 drives the third rotating mechanism 14 to rotate around the Y axis, further, the third rotating mechanism 14 drives the first fixed part 11 to rotate around the Y axis, and finally the electronic device fixed to the first fixed part 11 is rotated around the Y axis.

[0069] A second driving motor 22 can be arranged in the first rotating mechanism 12, and the second driving motor 22 drives the first rotating mechanism 12 to rotate around the X axis to realize the pitching motion. Further, the first rotating mechanism 12 drives the first fixed part 11 to rotate around the X axis, and finally the electronic device is rotated around the X axis.

[0070] A third driving motor 23 can be arranged in the telescopic rod 131 of the second rotating mechanism, and the output shaft of the third driving motor 23 is fixed to the first rotating mechanism 12, so as to drive the second rotating mechanism 12 to rotate around the Z axis, and realize the rotation of the first fixed part 11 around the Z axis.

[0071] A screw mechanism can also be arranged in the fixed rod 132, as shown in Figure 7 , the screw mechanism includes a screw rod 26 and a nut 25, the screw rod 26 is provided with an external thread, the nut 25 is connected with the screw rod 26 through the thread, and the nut 25 can move on the screw rod 26. The screw rod 26 is connected with the output shaft of the fourth driving motor 24, and the nut 25 is fixed to the telescopic rod 131. The fourth driving motor 24 drives the screw rod 26 to rotate, so that the nut 25 moves up and down on the screw rod 26, and further drives the telescopic rod 131 to move up and down. In addition, other mechanisms can also be used to realize the up and down translation of the telescopic rod 131, such as transmission gears and straight racks to convert rotary motion into translational motion, which will not be described here.

[0072] Figure 7 It is only one possible internal structure of the support, and other structures that can also realize the rotation of the three rotating mechanisms and the up and down translation of the telescopic rod can also be used in other embodiments. The number and position of the driving motors in the support are not limited in the application.

[0073] In addition, as shown in Figure 8As shown, the bracket may also include a communication module 31, a motor controller 32, a rechargeable battery 33, and a charging / discharging module 34.

[0074] The communication module 31 can be installed inside the base 15 to enable communication between the bracket and the electronic device. For example, it can receive angle adjustment commands sent by the electronic device.

[0075] In one example, communication module 31 may include a wireless communication module and a wired communication module.

[0076] For example, the wireless communication protocols supported by the wireless communication module include, but are not limited to: Bluetooth ( Wireless communication methods include BitTorrent (BT), Near Field Communication (NFC), and Wireless Local Area Networks (WLAN) (such as Wireless Fidelity (Wi-Fi) networks). Of course, in other embodiments of this application, the communication module can also communicate with electronic devices via wired communication protocols, such as USB. This application does not limit the specific communication protocol of the communication module.

[0077] The motor controller 32 can control the four drive motors mentioned above respectively. By receiving the angle adjustment command forwarded by the communication module 31 and executing the motion command, it controls the drive motors to drive the first rotating mechanism, the second rotating mechanism, the third rotating mechanism or the telescopic rod to move, and finally realizes the electronic device fixed in the first fixed part to rotate in the X-axis, Y-axis and Z-axis directions respectively, or to translate up and down along the Z-axis.

[0078] In addition, the motor controller 32 can also be located inside the base 15, or in other locations on the bracket; this application does not limit this.

[0079] The rechargeable battery 33 can provide power to components within the bracket, such as drive motors, motor controllers, and communication modules. The rechargeable battery 33 can be housed within the base 15.

[0080] The charge / discharge module 34 is connected to the rechargeable battery 33, monitors the state parameters of the rechargeable battery 33 (such as battery capacity, battery health status, etc.), and controls the charging / discharging process of the rechargeable battery 33. Alternatively, the charge / discharge module 34 can be housed within the base 15.

[0081] In an example, the charging and discharging module 34 can include a wireless charging and discharging module and a wired charging interface. The wireless charging and discharging module can realize charging of the rechargeable battery 33 in the support by an external power source (such as an inductive charger connected to an alternating current power source or an electronic device supporting an inductive charging mode) through magnetic induction charging and discharging. The rechargeable battery 33 can also realize charging of the battery of another device, such as charging of an electronic device on the support. The external power source charges the rechargeable battery through the wired charging interface, for example, the wired charging interface can be a USB interface.

[0082] In another possible implementation, as shown in Figure 9 The base 15 of the support is also provided with a control button 16. Each time the user presses the control button 16, the first fixing part of the support rotates 90° clockwise (or counterclockwise) around the Y axis, that is, the user can manually operate the control button 16 to adjust the direction of the electronic device fixed on the support.

[0083] As shown in (1) of Figure 9 , the mobile phone is fixed on the support and the mobile phone is in a vertical screen state. After the user presses the control button 16, the first fixing part 11 rotates 90° counterclockwise around the Y axis, at this time, as shown in (2) of Figure 9 , the mobile phone changes from the vertical screen state to a horizontal screen state.

[0084] The electronic device described above can be a mobile phone, a tablet computer or the like. In the embodiment of the application, as shown in Figure 10 , a structural schematic diagram of an electronic device provided in the embodiment of the application is shown.

[0085] As shown in Figure 10 , the electronic device can include a processor 101, a communication module 102, a sensor module 103, a display screen 104 and a memory 105. In addition, a battery, a power management module and a charging management module can also be included.

[0086] It can be understood that the structure shown in the embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device can include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software or a combination of software and hardware.

[0087] In the embodiment of the application, the processor can identify the use scenario of the electronic device and the user's angle adjustment intention for the screen, and then generate a corresponding support adjustment instruction, which is sent to

[0088] The display screen 104 can display text, images, videos and the like. The display screen includes a display panel. In some embodiments, the electronic device can include 1 or N display screens, N being a positive integer greater than 1.

[0089] The camera 106 can capture still images or videos. An object projects an optical image through a lens to a photosensitive element.

[0090] In an example embodiment, the electronic device can include at least one camera, which can include a low-power mode and a normal operation mode.

[0091] In another example embodiment, the electronic device can include at least two cameras, one of which is a low-power camera and the other of which is a normal-power camera.

[0092] The low-power camera can be a camera that includes at least a low-power mode, for example, a camera that has only a low-power mode or a camera that has a low-power mode and a normal operation mode.

[0093] The normal-power camera can be a camera that includes at least a normal operation mode, for example, a camera that has only a normal operation mode or a camera that has a normal operation mode and a low-power mode.

[0094] The memory is used to store computer executable program codes, the executable program codes including instructions. The processor performs various functional applications and data processing of the electronic device by running the instructions stored in the memory. For example, in the embodiments of the present application, the processor can implement the identification of the scenario of the electronic device, the adjustment of the angle of the support according to the scenario, and finally the adjustment of the screen of the electronic device by executing the instructions stored in the memory.

[0095] The communication module 102 can include a wireless communication module and a wired communication module.

[0096] The wireless communication module can provide a solution for wireless communication including WLAN (e.g., Wi-Fi), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), NFC, infrared technology (IR), etc. applied to the electronic device. The wireless communication module can be one or more devices that integrate at least one communication processing module.

[0097] The sensor module 103 can include a plurality of different types of sensors, such as a pressure sensor, an acceleration sensor, a gyroscope sensor, etc.

[0098] The pressure sensor is used to sense a pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor can be disposed at an edge position of the electronic device, such as Figure 3On the border shown. The electronic device uses pressure sensors to detect the intensity and location of touch operations to further determine the user's screen orientation (portrait or landscape).

[0099] Accelerometers can measure acceleration. For example, they can measure the acceleration of an electronic device due to gravity and calculate the tilt angle of the electronic device relative to the horizontal plane, such as determining whether the electronic device is in landscape or portrait mode.

[0100] Gyroscope sensors can be used to determine the motion attitude of electronic devices. In some embodiments, the angular velocity of an electronic device about three axes (i.e., the x, y, and z axes) can be determined using a gyroscope sensor.

[0101] In addition, an operating system runs on top of the aforementioned components. For example operating system, Open source operating system Operating system, etc. Applications can be installed and run on this operating system.

[0102] The operating system of an electronic device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application's embodiment uses a layered architecture. Taking the operating system as an example, this section illustrates the software structure of an electronic device.

[0103] Figure 11 This is a software structure block diagram of the electronic device provided in the embodiments of this application.

[0104] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, [the following is omitted as the text is incomplete and likely refers to a specific implementation or feature]. The system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0105] The application layer can include a series of application packages. For example... Figure 8 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.

[0106] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0107] like Figure 11As shown, the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc. For example, in the embodiments of the present application, the application framework layer can further include a scene recognition module, a face direction recognition module, a face recognition module, a screen display mode monitoring module, a head deflection recognition module, and a support adjustment instruction generation module.

[0108] The scene recognition module is configured to recognize whether the electronic device is currently in a specified use scenario, such as a video call or a scenario of watching a video or a picture.

[0109] The face direction recognition module is configured to analyze an image containing a face captured by a camera of the electronic device to obtain a relative direction between the face and the camera in the image.

[0110] The face recognition module is configured to recognize whether the captured face image is a specific face.

[0111] The screen display mode monitoring module is configured to recognize whether a screen displayed by the electronic device is in a horizontal screen display mode or a vertical screen display mode.

[0112] The head deflection recognition module is configured to recognize a deflection angle between a head of a user and a body midline.

[0113] The support adjustment instruction generation module is configured to generate a control instruction for controlling an angle of a support, i.e., a support adjustment instruction.

[0114] The Android runtime includes a core library and a virtual machine. The Android runtime is responsible for scheduling and management of the Android system.

[0115] The core library includes two parts: one part is a function function that needs to be called by the java language, and the other part is the core library.

[0116] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the java files of the application layer and the application framework layer into binary files. The virtual machine is used for functions such as management of object life cycle, stack management, thread management, security and exception management, and garbage collection.

[0117] The system library can include a plurality of function modules. For example: a surface manager (surface manager), a media library (Media Libraries), a three-dimensional graphics processing library (for example: OpenGL ES), a 2D graphics engine (for example: SGL), etc.

[0118] The kernel layer is a layer between hardware and software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.

[0119] It should be noted that the embodiments of the present application are described by taking the system as an example, but the basic principles are also applicable to electronic devices based on or and other operating systems.

[0120] The embodiments provided by the present application will be described below in combination with Figures 12-27 For the convenience of description, the electronic device is taken as a mobile phone for example.

[0121] In one scenario, as shown in Figure 12 , when the user watches a video (or other content such as pictures) using the mobile phone 100, the user's face is not directly facing the screen 110 of the mobile phone 100. In this scenario, the low-power camera recognizes the inclination angle of the face relative to the screen 110, and adjusts the angle of the mobile phone stand, thereby adjusting the relative angle between the mobile phone screen and the face. As shown in Figure 13 , the specific adjustment process can include the following steps:

[0122] S110, the camera is in low-power mode, collects a first image, and sends the first image to the processing unit.

[0123] In an example, a low-power camera such as a front camera or a rear camera can be provided on the mobile phone. Such a camera includes a low-power mode and a normal working mode, wherein the power consumption of the camera in the low-power mode is much lower than that in the normal working mode. Therefore, the camera can be in the low-power mode for a long time.

[0124] The image taken by the camera in the low-power mode can be referred to as the first image, and the image taken in the normal working mode can be referred to as the second image, wherein the second image has a higher definition than the first image.

[0125] In an example, the processing unit can be an image signal processor (ISP), a sensor hub, or other processors, as long as it can process image data. The specific type of the processing unit is not limited in the present application.

[0126] S120, the processing unit detects whether the first image contains a face; if it is determined that the first image contains a face, S130 is executed; if it is determined that the first image does not contain a face, the current process is ended.

[0127] The first image captured by the low-power camera is sent to the processing unit, which uses face detection technology to detect faces in the input image, i.e., whether the image contains a face. If the image contains a face, the process continues to S130, and if the image does not contain a face, the process ends and waits for the next image to be captured.

[0128] In S130, the processing unit obtains the scene recognition result obtained by the scene recognition module.

[0129] The scene recognition module can identify whether the current use scenario of the mobile phone is a specified scenario, such as viewing video / picture content.

[0130] For example, if it is detected that the mobile phone is currently transmitting a media stream, or if it is detected that the screen of the mobile phone is called by some application (such as a video, a reader, a browser, a content application, an instant messaging application, etc.), it is determined that the mobile phone is currently in a scenario of browsing text, video, or picture content. If the scene recognition module identifies that the mobile phone is in the specified scenario, it generates a corresponding scene recognition result and sends it to the processing unit.

[0131] In an example, if it is identified that the mobile phone is currently in the specified scenario, the generated scene recognition result can include a field of a first preset value, such as a binary number "1"; if it is identified that the mobile phone is not in the specified scenario, the scene recognition result can include a field of a second preset value, such as a binary number "0".

[0132] In S140, after the processing unit determines that the mobile phone is currently in the specified scenario based on the scene recognition result, the camera is triggered to switch to a normal working mode to capture a second image.

[0133] When the first image captured by the camera contains a face and the current use scenario of the mobile phone is in the specified scenario, the camera is triggered to switch from the low-power mode to the normal working mode to capture an image with higher clarity, i.e., a second image. The processing unit analyzes the received scene recognition result. For example, it analyzes whether the scene recognition result contains a field of a first preset value. If the field contains the first preset value, it indicates that the mobile phone is currently in the specified scenario, and if the field contains a second preset value, it indicates that the mobile phone is not currently in the specified scenario.

[0134] If the phone is currently in the specified scene, trigger the camera to switch from the low-power state to the Active state (normal working state) so that the camera can capture a clear face image. For example, in a scenario where the camera has a low-power state and a normal working state, the processing unit can send a state switching instruction to the camera to switch it from the low-power state to the normal working state. In a scenario where the electronic device is provided with a low-power camera and a normal-power camera, the processing unit can send a trigger instruction to the normal-power camera to trigger it to work, i.e., take a picture.

[0135] If the phone is not currently in the specified scene, do not trigger the camera to switch from the low-power state to the Active state, i.e., the camera remains in the low-power state.

[0136] S150, the camera sends the second image to the face direction recognition module.

[0137] S160, the face direction recognition module obtains the face tilt angle based on the second image and sends it to the support adjustment instruction generation module.

[0138] The face tilt angle refers to the relative tilt angle between the direction of the face (i.e., the first direction) and the direction of the electronic device screen (i.e., the second direction). The face tilt angle herein includes the angle value and the deviation direction between the face and the electronic device screen, i.e., the face tilt angle is a vector including a value and a direction.

[0139] For example, in the direction of the Z-axis as the rotation axis, the face tilts a certain angle to the left / right relative to the screen (e.g., tilting to the left is negative, and tilting to the right is positive); for example, in the direction of the X-axis as the rotation axis, the face tilts a certain angle upward / downward relative to the screen (e.g., tilting downward is negative, and tilting upward is positive).

[0140] In one scenario, the tilt angle with the Z-axis as the rotation axis refers to the included angle between the perpendicular of the phone screen and the face. For example, when the face is directly facing the phone screen, the included angle between the face and the perpendicular of the phone screen is 90°, when the face tilts to the left relative to the phone screen, i.e., the distance between the left eye and the screen is less than the distance between the right eye and the screen, at this time, the included angle between the face and the screen is an acute angle; when the face tilts to the right relative to the phone screen, i.e., the distance between the right eye and the phone screen is less than the distance between the left eye and the screen, at this time, the included angle between the face and the screen is an obtuse angle.

[0141] In another scenario, the tilt angle of the X-axis as the rotation axis is the tilt angle of the face, i.e., the tilt angle of the face in the pitch direction. The tilt angle in the pitch direction is similar to the tilt angle in the Z-axis direction. When the face is directed to the screen of the mobile phone, the included angle between the two is 90°. For example, when the face is tilted inward relative to the screen (i.e., the distance between the upper half of the face and the screen is less than the distance between the lower half of the face and the screen), the included angle is an acute angle. For example, when the face is tilted outward relative to the screen (i.e., the distance between the upper half of the face and the screen is greater than the distance between the lower half of the face and the screen), the included angle is an obtuse angle.

[0142] For another example, the tilt angle in the Z-axis or X-axis direction can also be represented by the included angle between the face and the screen of the mobile phone. For example, when the face is directed to the screen, the included angle between the two is 0°. In the Z-axis direction, the included angle of the left tilt is negative, and the included angle of the right tilt is positive. For another example, in the X-axis direction, the included angle of the downward tilt is negative, and the included angle of the upward tilt is positive.

[0143] In an exemplary embodiment, a camera using 3D depth shooting technology is arranged on the mobile phone. The camera can shoot an image containing 3D depth information. For example, the face image shot by the camera includes the depth information corresponding to each point on the face. The depth information represents the distance between the point on the face and the camera.

[0144] Further, the face image can be input into a pre-trained model. By analyzing the feature information of the face image (such as the depth information of the feature points such as the contour points and the facial features) through the model, the tilt angle between the face and the camera can be calculated. Finally, the tilt angle of the face is sent to the support adjustment instruction generation module.

[0145] For example, the tilt angle between the actual direction of the face in the vertical direction and the direction of the screen of the mobile phone can be determined according to the difference between the depth information of the left contour point and the right contour point in the face image, and / or the difference between the depth information of the left eye and the right eye.

[0146] For another example, the tilt angle of the face in the X-axis direction can be determined according to the difference between the depth information of the feature points in the forehead region (or the top region) and the feature points in the chin region in the face image.

[0147] In yet another example, whether the face image contains a complete face and whether the face is in the middle position of the image can also be used to determine the distance of the face from the center line of the image.

[0148] S170, the support adjustment instruction generation module generates a support adjustment instruction based on the tilt angle of the face and the preset angle range, and sends the support adjustment instruction to the support through the communication module.

[0149] The support adjustment instruction is used to control the adjustment direction of the support. The instruction includes the adjustment direction, the adjustment distance, or the adjustment angle, etc.

[0150] In one scenario, there is a face tilt angle in the Z-axis direction, i.e., the actual direction of the face deviates from the direction of facing the screen of the mobile phone. In this scenario, the preset angle range in the Z-axis direction can be set to 70°-120°.

[0151] If the face tilt angle in the Z-axis direction is within the preset angle range, the direction of the mobile phone does not need to be adjusted, and therefore no support adjustment instruction needs to be generated. If the face tilt angle in the Z-axis direction is outside the preset angle range, the deviation between the face tilt angle and the preset angle range is determined, and the adjustment direction and adjustment angle of the support are determined based on the deviation, and finally a support adjustment instruction containing the adjustment direction and adjustment angle is generated.

[0152] For example, the face tilt angle in the Z-axis direction is 60°, indicating that the face is tilted to the left relative to the screen. The deviation between this angle and the left boundary value 70° in the preset angle range is 10°, and therefore the support needs to be rotated 10° to the left, i.e., counterclockwise around the Z-axis. For another example, the face tilt angle in the Z-axis direction is 135°, indicating that the face is tilted to the right relative to the screen. The deviation between this angle and the right boundary value 120° is 15°, and therefore the support needs to be rotated 15° to the right, i.e., clockwise around the Z-axis. Finally, a support adjustment instruction is generated according to the adjustment angle and adjustment direction, and the support adjustment instruction contains the adjustment angle and adjustment direction (clockwise or counterclockwise rotation around the rotation axis).

[0153] In another scenario, it is determined that there is a face tilt angle in the X-axis direction. In this scenario, the preset angle range in the X-axis direction (i.e., the preset angle range of the pitch angle) can be set to -10°-10°. Among them, looking up is a positive angle, and looking down is a negative angle. For example, the face is tilted inward relative to the screen, and the support needs to be rotated clockwise around the X-axis. If the face is tilted outward relative to the screen, the support needs to be rotated counterclockwise around the X-axis.

[0154] In yet another scenario, if a complete face is not displayed in the image, the support can be controlled to move up and down to make the complete face contained in the captured image.

[0155] For the convenience of description, the adjustments in the three dimensions of up and down movement, left and right rotation, and pitch are described separately. In actual application, the tilts or deviations in the three dimensions can be obtained at the same time, and the corresponding support adjustment instructions can be generated according to the deviations in the three dimensions.

[0156] S180, the support receives the support adjustment instruction sent by the mobile phone, and executes the support adjustment instruction to adjust the support.

[0157] The mobile phone is placed on the support and a wireless communication connection is established between the mobile phone and the support. The mobile phone generates a support adjustment instruction according to the monitored use scene and the relative inclination angle between the face and the mobile phone screen, and transmits the support adjustment instruction to the support through the wireless communication connection between the mobile phone and the support. The communication module of the support receives and analyzes the support adjustment instruction to obtain an adjustment direction and an adjustment angle, and further controls the driving motor at the corresponding position to drive the corresponding rotating mechanism to adjust the direction of the mobile phone on the support.

[0158] In another application scenario, when the user uses the mobile phone to make a video call with other devices, the face image can also be captured by the normally working mobile phone camera.

[0159] As shown in Figure 14 , the user uses the mobile phone 100 to make a video call with other electronic devices, and at the same time, the user also uses a computer (or a notebook computer or other electronic devices) to perform other activities. In this scenario, the user may not be able to look directly at the camera of the mobile phone. As shown in Figure 14 , the computer is in a direction facing the user's face, and the mobile phone 100 is placed on the support 200, and the mobile phone is in a position at the side of the user, that is, the screen of the mobile phone cannot face the direction of the user's face, and only the side face of the user can be displayed on the video call screen of the mobile phone 100.

[0160] For the above-mentioned video call scenario, the scheme shown in Figure 15 can be used to control the support to adjust the direction of the support, so as to adjust the relative angle between the screen of the mobile phone and the face. The video call scenario is a specific application scenario of the scheme shown in Figure 15 . The scheme can be applied to other scenarios in which the camera is in use, that is, scenarios in which the screen and the camera are used at the same time, such as using the front camera for self-portrait or video recording. The specific scenarios in which the scheme shown in Figure 15 is used are not limited.

[0161] Figure 15 The difference between the embodiment shown in Figure 13 and the embodiment shown in Figure 15 is that: The embodiment shown in Figure 13 is a scenario in which the camera is in use. In this scenario, the camera is in a normal working mode, and a clearer image with better color can be directly obtained, while the embodiment shown in is a scenario in which the camera is first in a low-power mode to collect a relatively unclear image, and then switches to a normal working mode after recognizing that the image contains a face.

[0162] Figure 15 As shown in , the method can include the following steps:

[0163] S101, the camera is in a normal working mode, a second image is collected and sent to a processing unit.

[0164] In the scenario of video call, the camera is in normal working mode. In this application, the image collected by the camera in the normal working mode is referred to as the second image.

[0165] The video call scenario is only a specific application scenario shown in this application, and the method is not limited to the video call scenario.

[0166] S102, the processing unit detects whether the second image contains a face; if the face is contained, S103 is executed, and if the face is not contained, the current process is ended, and the processing unit waits to detect whether the image collected by the camera next time contains a face.

[0167] S103, the processing unit obtains the scene recognition result obtained by the scene recognition module.

[0168] The scene recognition module can recognize whether the current use scenario of the mobile phone is a scenario in which the camera and the screen are used at the same time, such as a video call scenario. For example, if it is monitored that the camera and the audio channel are occupied at the same time, it is determined that the mobile phone is currently in the scenario of video call.

[0169] S104, after the processing unit determines that the mobile phone is currently in the specified scenario based on the scene recognition result, the second image is sent to the face direction recognition module.

[0170] The processing unit determines that the current use scenario of the mobile phone is the specified scenario, such as the video call scenario, and then sends the second image to the face direction recognition module to recognize the face tilt angle.

[0171] S105, the face direction recognition module recognizes the face tilt angle based on the second image and sends it to the support adjustment instruction generation module.

[0172] S106, the support adjustment instruction generation module generates the support adjustment instruction based on the face tilt angle and sends it to the support.

[0173] S107, the support executes the support adjustment instruction.

[0174] S105-S107 in this embodiment are the same as S160-S180 in the embodiment shown in Figure 13 and will not be described here.

[0175] The method for automatically adjusting the direction of the electronic device provided in this embodiment can recognize the specified use scenario, such as video call or video watching, and further recognize the relative tilt angle of the face relative to the screen of the mobile phone, i.e., the face tilt angle.

[0176] If the face direction deviates from the direction of facing the mobile phone, it is determined that the support needs to be adjusted to make the front of the mobile phone face the face. A support adjustment instruction is generated according to the identified face tilt angle and is delivered to the support, and finally the support executes the support adjustment instruction. Thus, the purpose of automatically adjusting the direction of the mobile phone based on the use scenario of the mobile phone is achieved, without the need for the user to manually operate the support, which is convenient for the user to use in scenarios where the support cannot be manually operated, and improves the user experience.

[0177] In a scenario, such as a scenario in which the user uses the electronic device for video call or video conference, if the camera captures other face images in addition to the target face image, in this scenario, in order to avoid the interference of other face images on the adjustment of the support, the target face to be tracked can be set, and the support is adjusted only for the target face image.

[0178] For example, as shown in FIG. 1A, a user A is using a mobile phone 100 to make a video call with a user C, and it is determined that the target face image is the face image of the user A. At this time, if a user B appears in the coverage area of the camera of the mobile phone 100, that is, the face image of the user B appears in the area of the screen of the mobile phone 100 that displays the user A. Figure 16

[0179] In this scenario, in order to avoid the interference of the face image of other users on the adjustment of the support, the embodiment of the present application provides another method for automatically adjusting the direction of the electronic device by the support, which adds a face recognition function on the basis of the embodiment shown in FIG. 1B, that is, the mobile phone can track the target face, and then adjust the support according to the tilt angle of the target face. Figure 15

[0180] As shown in FIG. 1C, the method can include the following steps: Figure 17

[0181] S201, the camera captures a second image and sends it to the processing unit.

[0182] In the scenario in which the camera is in use, such as video call or video conference, the camera is in a normal working mode. The image captured by the camera in the normal working mode can be referred to as a second image.

[0183] Further, the second image is sent to the processing unit for face detection, that is, whether the second image contains a face image is detected.

[0184] S202, the processing unit identifies whether the second image contains a face; if it contains a face, S203 is executed; if it does not contain a face, the current process is ended, and it is waited for detection of whether the image captured by the camera next time contains a face.

[0185] S203, the processing unit obtains the scene recognition result obtained by the scene recognition module.​​​

[0186] S204, after the processing unit determines that the mobile phone is currently in the specified scene based on the scene recognition result, the second image is sent to the face direction recognition module and the face recognition module respectively.

[0187] The second image with higher definition is transmitted to the face direction recognition module and the face recognition module layer by layer.

[0188] S205, the face direction recognition module obtains a face tilt angle based on the second image and sends it to the support adjustment instruction generation module.

[0189] S206, the face recognition module identifies whether the face image in the second image is a target face image; if it is a target face image, S207 is executed; if it is not a target face image, the current process is ended.

[0190] Face recognition technology is to determine whether two photos are of the same person, for example, in this application, it is to verify whether the face image input by the user and the face image captured by the camera are of the same person, if they are of the same person, subsequent processing is performed, if they are not of the same person, the current process is ended.

[0191] In one possible implementation, the target face image can be a certain specific face image, such as a face image used for user identity recognition in the mobile phone (i.e., the face image of the owner of the mobile phone).

[0192] In another possible implementation, the target face image can not be a fixed face image, such as the user currently using the electronic device, which can be dynamically changed according to different use scenarios.

[0193] For example, in the scenario of video call (or video conference), when users in different positions in the same space speak or talk, the support direction can be adjusted according to the position of the sound signal, and then the face image of the user who is speaking is photographed, and the support is further adjusted, so that the screen of the electronic device always faces the user who is currently speaking.

[0194] S207, the face recognition module sends the recognition result that the face image in the second image is a target face image to the support adjustment instruction generation module.

[0195] After the face recognition module identifies that the second image is a preset face, the recognition result is sent to the support adjustment instruction generation module, triggering the support adjustment instruction generation module to generate a support adjustment instruction.

[0196] S208, the support adjustment instruction generation module generates a support adjustment instruction based on the face tilt angle corresponding to the second image, and sends the support adjustment instruction to the support.

[0197] The support adjustment instruction generation module receives the recognition result that the face image in the second image is a preset face image, and determines whether to generate a support adjustment instruction based on a face tilt angle corresponding to the face image.

[0198] If the face tilt angle is within a preset angle range, the angle of the mobile phone does not need to be adjusted, and thus the support adjustment instruction does not need to be generated. If the face tilt angle is out of the preset angle range, the support needs to be adjusted so that the direction of the mobile phone and the face is within the preset angle range, and thus the support adjustment instruction is generated based on the face tilt angle.

[0199] S209. The support executes the received support adjustment instruction.

[0200] The same steps in this embodiment are described in the related description in Figure 15 , and thus are not described in detail herein. Figure 12

[0201] In another scenario, when a user uses an electronic device to browse text, video, picture or the like, the camera can also capture a face image of another person in addition to a target face image. For example, as shown in Figure 18 , the mobile phone 100 is fixed on the support 200, and a user A is watching a video by using the mobile phone 100, and a user B is watching the video together with the user A at an oblique rear side of the user A. At this time, the mobile phone 100 can capture face images of the users A and B. For this scenario, this embodiment provides another method embodiment for automatically adjusting the direction of the electronic device by the support. This embodiment adds a face recognition function on the basis of the method embodiment. Figure 13

[0202] The difference between this embodiment and the embodiment shown in Figure 17 is that in a scenario in which the camera is not used, such as browsing video, picture or text, the camera is in a low-power mode, and at this time, face detection is performed based on a first image captured by the camera in the low-power mode. When it is detected that the first image contains a face, the camera is triggered to switch to a normal working mode, and a second image with higher definition is captured.

[0203] As shown in Figure 19 , the method can include the following steps.

[0204] S210. The camera in the low-power mode captures a first image and sends the first image to a processing unit.

[0205] S220. The processing unit identifies whether the first image contains a face. If the first image contains a face, S230 is performed. If the first image does not contain a face, the current process is ended, and it is waited for detection of whether an image captured by the camera next time contains a face.

[0206] ​​S230, the processing unit acquires the scene recognition result obtained by the scene recognition module.

[0207] S240, after the processing unit determines that the electronic device is in the specified scene based on the scene recognition result, the camera is triggered to switch to the normal working mode to collect a second image.

[0208] The clarity of the second image is higher than that of the first image. The power consumption of the camera in the normal working mode is higher than that in the low-power mode.

[0209] In another scenario, at least two cameras are arranged in the electronic device, and at least one of the cameras is a low-power camera, and at least one of the cameras is a normal-power camera. When it is detected that the first image collected by the low-power camera contains a face image, the normal-power camera is triggered to work, i.e., to shoot a second image.

[0210] S250, the camera sends the second image to the face direction recognition module and the face recognition module, respectively.

[0211] S260, the face direction recognition module obtains a face tilt angle based on the second image and sends the face tilt angle to the support adjustment instruction generation module.

[0212] S270, the face recognition module identifies whether the face image in the second image is a target face image; if the face image is the target face image, S280 is performed; if the face image is not the target face image, the current process is ended.

[0213] S280, the face recognition module sends the recognition result that the face image in the second image is the target face image to the support adjustment instruction generation module.

[0214] S290, the support adjustment instruction generation module generates a support adjustment instruction based on the face tilt angle corresponding to the second image and sends the support adjustment instruction to the support.

[0215] S2100, the support executes the received support adjustment instruction.

[0216] The contents of the steps in the embodiment can be referred to the related description in Figure 17 , which will not be repeated here.

[0217] The method for automatically adjusting the direction of the electronic device through the support provided by the embodiment can identify the specified use scenarios, such as the video call or the video watching scenario, further identify the face tilt angle through the camera, generate the corresponding support adjustment instruction based on the face tilt angle and deliver the support adjustment instruction to the support, and execute the support adjustment instruction by the support. The purpose of automatically adjusting the direction of the mobile phone based on the use scenario of the mobile phone is achieved, and the user does not need to manually operate the support. Further, the scheme can also track the target face, that is, only the face tilt angle of the target face is used to adjust the support, the interference of other faces on the adjustment of the support is avoided, and the accuracy of the adjustment of the direction of the mobile phone is improved.

[0218] When the user uses the electronic device to watch the video, picture or text content, the user can manually click the horizontal and vertical screen switching icon on the display interface, and the display interface is switched to the horizontal screen (or vertical screen) display.

[0219] For example, as shown in Figure 20 , when the user watches the video in the vertical screen state of the mobile phone, the user manually clicks the horizontal screen switching icon 101 of the video application, the display screen of the mobile phone is switched to the horizontal screen display mode, that is, the mobile phone displays and plays the video in the horizontal screen display mode. In this scenario, the mobile phone can monitor that the display screen of the mobile phone is switched from the vertical screen display mode to the horizontal screen display mode, further control the support to rotate 90° around the Y axis, and the mobile phone rotates following the support to realize the switching from the vertical screen state as shown in Figure 20 to the horizontal screen state as shown in Figure 21 .

[0220] Referring to Figure 22 , a flowchart of the method for adjusting the direction of the electronic device through the support corresponding to the scenario is shown, and as shown in Figure 22 , the method can include the following steps:

[0221] S310, the screen display mode monitoring module monitors the display mode of the screen of the mobile phone, and sends the display mode to the support adjustment instruction generation module.

[0222] The display mode includes the horizontal screen display mode and the vertical screen display mode.

[0223] The screen display mode monitoring module obtains the information of the display screen of the mobile phone by calling the general interface in the operating system, such as whether the current display screen is a horizontal screen display screen or a vertical screen display screen. In the embodiment, the display direction of the display screen is the first direction.

[0224] S320, the support adjustment instruction generation module obtains the horizontal and vertical screen state of the mobile phone.

[0225] In an example, the horizontal / vertical screen state of the mobile phone can be determined by obtaining the gravity acceleration sensing data of the electronic device. The horizontal / vertical screen state includes a horizontal screen state and a vertical screen state. The horizontal / vertical screen state is the current orientation of the electronic device, i.e., the second direction.

[0226] For example, the gravity acceleration sensing data can be sensed by an acceleration sensor, or a gyroscope sensor, or other sensors that can obtain the inclination angle of the electronic device relative to the horizontal plane. The type of sensor is not limited in the present application.

[0227] S330, the support adjustment instruction generation module determines whether the display mode of the screen is consistent with the horizontal / vertical screen state; if not, S340 is executed; if consistent, it indicates that the screen orientation of the electronic device does not need to be adjusted, and the current process is ended.

[0228] The display mode of the screen includes a horizontal screen display mode and a vertical screen display mode. The horizontal / vertical screen state of the electronic device includes a horizontal screen state and a vertical screen state.

[0229] For example, the screen of the mobile phone is currently in a horizontal screen display mode, and the mobile phone is in a vertical screen state. In this case, it is determined that the display mode of the screen of the mobile phone is inconsistent with the horizontal / vertical screen state, and the angle of the support can be further adjusted to switch the mobile phone to a horizontal screen state.

[0230] For another example, the screen of the mobile phone is currently in a vertical screen display mode, and the mobile phone is in a vertical screen state. In this case, it is determined that the display mode of the screen of the mobile phone is consistent with the horizontal / vertical screen state, and the angle of the mobile phone does not need to be adjusted.

[0231] S340, the support adjustment instruction generation module generates a support adjustment instruction based on the display mode of the screen of the mobile phone, and sends the support adjustment instruction to the support.

[0232] For example, the screen of the mobile phone is in a horizontal screen display mode, and the mobile phone is in a vertical screen state. At this time, it is desired that the mobile phone can be rotated clockwise or counterclockwise by 90° around the axis perpendicular to the screen of the mobile phone to switch to a horizontal screen state. Therefore, the support needs to be controlled to rotate clockwise or counterclockwise by 90° around the Y axis. The support adjustment instruction includes the adjustment angle and the adjustment direction, such as rotating 90° around the Y axis, and the rotation direction can be clockwise or counterclockwise.

[0233] The process of the mobile phone sending the support adjustment instruction to the support is the same as that of other embodiments, such as transmitting the support adjustment instruction through the wireless communication channel between the mobile phone and the support.

[0234] S350, the support executes the support adjustment instruction and rotates 90° around the Y axis.

[0235] The bracket parses the received bracket adjustment command and controls the movement of the corresponding rotating mechanism. For example, to rotate 90° around the Y-axis, the first rotating mechanism needs to be controlled to rotate 90° around the Y-axis. The rotation direction can be clockwise or counterclockwise, and this application does not limit it.

[0236] The method for automatically adjusting the orientation of an electronic device using a stand provided in this embodiment allows the mobile phone to recognize the current display mode of the screen and monitor the phone's landscape / portrait status. If the screen display mode is inconsistent with the landscape / portrait status, a stand adjustment command is generated to control the stand to adjust to the phone's state so that the phone's landscape / portrait status is consistent with the screen display mode. The entire adjustment process does not require manual operation by the user, thus improving the user experience.

[0237] In another scenario, pressure sensors are placed along the edges of the phone. For example, one pressure sensor could be placed on each of the long edges of the phone, such as one on the left and one on the right. Alternatively, one pressure sensor could be placed at the top and bottom of each of the left and right edges. Figure 23 As shown, two pressure sensors are installed on each long frame.

[0238] In this application scenario, users can lightly touch the phone's frame to automatically adjust the screen orientation to portrait or landscape mode. (See also...) Figure 24 When the phone is in portrait mode, and the user lightly touches the pressure sensor on the top left / right side of the phone, the drive bracket rotates 90° counterclockwise around the Y-axis, switching the phone from portrait to neutral. Figure 25 The image shows the landscape mode. For example, when a user lightly touches the pressure sensor below the left / right bezel of the phone, it can drive the stand to rotate 90° clockwise around the Y-axis.

[0239] Of course, in other embodiments of this application, it can also be set that after the user touches the position of the pressure sensor on the upper / lower left side of the phone, the bracket is driven to rotate 90° clockwise around the Y-axis; after the user touches the position of the pressure sensor on the upper / lower right side of the phone, the bracket is driven to rotate 90° counterclockwise around the Y-axis.

[0240] like Figure 26 As shown, the method for automatically adjusting the orientation of electronic devices using a bracket in this scenario may include the following steps:

[0241] S410, a pressure sensor, collects pressure sensing data.

[0242] S420, the pressure sensor sends the pressure sensing data to the bracket adjustment command generation module.

[0243] S430, the stent adjustment command generation module generates stent adjustment commands based on pressure sensing data and sends the stent adjustment commands to the stent.

[0244] In an example embodiment, in order to avoid the interference of the false touch action on the support adjustment, the support adjustment instruction generation module determines that the current touch operation is not a false operation after detecting that the pressure value is greater than the preset value, and then generates a support adjustment instruction. If the pressure value is less than the preset value, it is considered that the current touch operation is a false touch action, and no support adjustment instruction is generated.

[0245] The position information of the sensor in the pressure sensing data is carried, that is, the position of the sensor on the phone frame. For example, different positions of the sensor can be set with corresponding numbers (such as numbers or characters) for differentiation, such as Figure 23 As shown in the scenario, the number of the sensor at the upper left position can be 00, the number of the sensor at the lower left position can be 01, the number of the sensor at the upper right position can be 10, and the number of the sensor at the lower right position can be 11. In this example, the number is a binary number, and other numerical values or characters can also be used, which is not limited in the present application.

[0246] For example, in an example, if the pressure sensing data above the right frame is received, it indicates that the user's adjustment intention is to adjust to a horizontal screen state, such as rotating the first fixed part of the support counterclockwise by 90° around the Y axis; if the pressure sensing data below the right frame is received, it indicates that the user's adjustment intention is to adjust to a vertical screen state, such as rotating the first fixed part of the support clockwise by 90° around the Y axis.

[0247] The phone transmits the support adjustment instruction to the support through the wireless communication channel between the phone and the support.

[0248] S440, the support executes the support adjustment instruction to rotate the support by 90° around the Y axis to change the horizontal and vertical screen state of the phone.

[0249] For example, the phone is currently in a vertical screen state, and after detecting the user's operation of tapping the edge of the phone, a support adjustment instruction is generated to rotate the support counterclockwise by 90° around the Y axis. The support parses the received support adjustment instruction and controls the first rotating mechanism to rotate counterclockwise by 90° around the Y axis.

[0250] The method for automatically adjusting the direction of an electronic device by a support provided in the embodiment automatically identifies the user's intention to switch the horizontal and vertical screen states, and does not require manual operation of the user, further improving the user experience.

[0251] In another scenario, for example, the user is at a position far away from the mobile phone and it is inconvenient to manually operate the mobile phone. For this scenario, the application provides another solution. The user can control the support to adjust the horizontal and vertical screen state of the mobile phone through head movement or gesture movement.

[0252] In an example, the support adjustment can be controlled by the head deflection movement of the user. The mobile phone is preconfigured with the head deflection movement of the user and the corresponding support adjustment strategy.

[0253] For example, as shown in Figure 27 , the mobile phone is in a vertical screen state. If the user deflection head to the right, the support is driven to rotate 90° counterclockwise (or clockwise) around the Y axis, so that the mobile phone switches from the vertical screen state to the horizontal screen state as shown in Figure 28 . Conversely, if the mobile phone is in the horizontal screen state as shown in Figure 29 , if the user deflection head to the left, the support is also driven to rotate 90° clockwise (or counterclockwise) around the Y axis, so that the mobile phone switches from the horizontal screen state to the vertical screen state as shown in Figure 30 .

[0254] In another example, the support adjustment can also be controlled by the gesture movement of the user. The mobile phone is preconfigured with the gesture movement of the user and the corresponding support adjustment strategy. For example, the finger points to the left, and the support is driven to rotate 90° counterclockwise around the Y axis. For another example, the finger points to the right, and the support is driven to rotate 90° clockwise around the Y axis.

[0255] The application embodiment can be controlled by head deflection, gesture, etc. The application does not limit the specific way of controlling the support to adjust the horizontal and vertical screen state of the mobile phone.

[0256] The specific adjustment process is described below by taking the head deflection movement to control the support adjustment direction as an example. As shown in Figure 31 , the method for automatically adjusting the direction of the electronic device by the support in this scenario can include the following steps:

[0257] S510, the camera is in a low-power mode, a first image is collected, and sent to a head deflection recognition module.

[0258] S520, the processing unit detects whether the image contains a face; if the image contains a face, S530 is executed; if the image does not contain a face, the current process is ended.

[0259] The processing unit detects whether the image contains a face by using a face detection technology. The process is similar to the process of S120 of the embodiment shown in Figure 10 . Details are not described here.

[0260] S530, the processing unit triggers the camera to shoot a clear image.

[0261] If the processing unit detects that the camera captures an image containing a human face in the low-power state, the camera is triggered to capture a clear image in the active state.

[0262] S540, the camera sends the captured clear image to the head deflection recognition module.

[0263] The clear image captured by the camera is transmitted to the head deflection recognition module layer by layer, so that the head recognition module determines the head deflection angle and the head deflection direction based on the clear image.

[0264] The head deflection angle refers to the angle between the line connecting the two eyes and the reference plane.

[0265] For example, in the case where the user is in a sitting or standing posture, the reference plane is set as a horizontal plane. For another example, when the user is in a lateral lying posture, the reference plane can be set as a vertical plane. The direction of the reference plane is not limited in the embodiments of the present application.

[0266] S550, the head deflection recognition module determines whether the head deflection angle is greater than a preset value. If yes, S560 is executed; if no, the current process is ended.

[0267] If the absolute value of the head deflection angle is greater than the preset value, it indicates that the user has the intention to adjust the horizontal or vertical screen state of the mobile phone; if the absolute value of the head deflection angle is less than or equal to the preset value, it indicates that the user does not have the intention to adjust the horizontal or vertical screen state of the mobile phone.

[0268] S560, the head deflection recognition module transmits the head deflection angle to the support adjustment instruction generation module.

[0269] After the head deflection recognition module determines that the absolute value of the head deflection angle is greater than the preset value, the head deflection recognition module transmits the head deflection angle to the support adjustment instruction generation module

[0270] For example, the positive and negative signs can be used to represent the deflection direction, such as a positive angle value indicating a right head deflection, and a negative angle value indicating a left head deflection. Of course, in other embodiments, the head deflection direction can also be represented by other means, which are not limited in the present application.

[0271] S570, the support adjustment instruction generation module generates a support adjustment instruction based on the head deflection angle and sends it to the support.

[0272] The mobile phone determines the adjustment intention of the user according to the head deflection angle, and in an example, an adjustment strategy corresponding to the head deflection angle is preconfigured, for example, when the head deflection angle is negative and the absolute value is greater than a preset angle value, the adjustment strategy of the support is to rotate 90 degrees counterclockwise around the Y axis. For another example, when the head deflection angle is positive and greater than the preset angle value, the adjustment strategy of the support is to rotate 90 degrees clockwise around the Y axis. Therefore, after the mobile phone obtains the head deflection angle of the user, the corresponding support adjustment instruction can be generated according to the preconfigured adjustment strategy.

[0273] The support adjustment instruction is transmitted to the support through a wireless communication channel between the mobile phone and the support.

[0274] S580, the support executes the support adjustment instruction sent by the mobile phone.

[0275] After the support receives the support adjustment instruction, the adjustment direction and the adjustment instruction are obtained by analyzing the instruction, and the support adjustment instruction is executed. For example, the first rotating mechanism is controlled to rotate 90 degrees around the Y axis when the analysis obtains that the adjustment direction is to rotate counterclockwise around the Y axis and the adjustment angle is 90 degrees.

[0276] The method for adjusting the direction of the electronic device provided in the embodiment can recognize the intention of the user to adjust the horizontal and vertical screens of the mobile phone through the camera of the mobile phone, for example, the head deflection direction of the user. Then, the corresponding support adjustment instruction is generated according to the head deflection direction, and the instruction is sent to the support to execute the instruction, so that the user can directly control the support to adjust the direction by the head deflection action, and then adjust the horizontal and vertical screens of the mobile phone, without the need for the user to manually operate the support, thereby facilitating the user to use in a scene where manual operation is not possible, and improving the user experience.

[0277] Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for illustration, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be described here.

[0278] In several embodiments provided in the present embodiment, it should be understood that the disclosed system, apparatus and method can be implemented in other manners. For example, the described apparatus embodiments are merely schematic. Taking the division of the modules or units as an example, the division can not necessarily be in accordance with the actual situation, and can be divided in other ways. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.

[0279] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place, or can be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the present embodiment.

[0280] In addition, each functional unit in each embodiment of the present embodiment can be integrated into a processing unit, or each unit can exist physically, or two or more units can be integrated into one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0281] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present embodiment essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments. The foregoing storage medium includes: a flash memory, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk, and various media that can store program codes.

[0282] The above is merely a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in the present application should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for automatically adjusting the orientation of an electronic device by a stand, characterized by, The method is applied to an electronic device, at least one pressure sensor is arranged on a left frame and a right frame of the electronic device, and the method comprises the following steps: After identifying that the electronic device is in a specified use scenario, a first direction matched with the specified use scenario and a second direction currently presented by the electronic device are obtained; If it is determined that the first direction is inconsistent with the second direction, a support adjustment instruction is generated; The support adjustment instruction is sent to a support bearing the electronic device, so that the support executes the support adjustment instruction to adjust the direction of the electronic device; The process of determining whether the first direction is consistent with the second direction comprises the following steps: A face image of a user is obtained, and after it is determined that the face image is a specified face, the relative inclination angle between the face image and the screen of the electronic device is determined according to the depth information of the facial feature points of the face image, the inclination angle between the first direction and the second direction is obtained, if the inclination angle is not within a preset inclination range, it is determined that the first direction is inconsistent with the second direction, if the inclination angle is within the preset inclination range, it is determined that the first direction is consistent with the second direction, wherein the specified face is a pre-recorded face image or the face of a user using the electronic device; Alternatively, the first direction matched with the specified use scenario and the second direction currently presented by the electronic device are obtained, if it is determined that the first direction is inconsistent with the second direction, a support adjustment instruction is generated, which comprises the following steps: The horizontal and vertical screen direction currently presented by the electronic device is obtained to obtain the second direction; A touch operation of a user on the frame of the electronic device is received, and after the touch pressure of the touch operation is greater than a preset pressure value, the position corresponding to the touch operation is determined; If the second direction is a vertical screen display direction, and the position corresponding to the touch operation is above the left frame or above the right frame of the electronic device, it is determined that the first direction is a horizontal screen display direction, and a fifth support adjustment instruction is generated, the fifth support adjustment instruction is used to drive the support to rotate 90° counterclockwise around the Y axis, and the Y axis is perpendicular to the screen of the electronic device; If the second direction is a horizontal screen display direction, and the position corresponding to the touch operation is below the left frame or below the right frame of the electronic device, it is determined that the first direction is a vertical screen display direction, and a sixth support adjustment instruction is generated, the sixth support adjustment instruction is used to drive the support to rotate 90° clockwise around the Y axis.

2. The method of claim 1, wherein, If it is determined that the first direction is inconsistent with the second direction, a support adjustment instruction is generated, which comprises the following steps: Based on the inclination angle between the first direction and the second direction, a support adjustment instruction is generated, the support adjustment instruction is used to reduce the inclination angle between the first direction and the second direction to within the preset inclination range.

3. The method of claim 2, wherein, Based on the inclination angle between the first direction and the second direction, a support adjustment instruction is generated, which comprises the following steps: In a direction with the vertical axis of the support as a rotation axis, if the inclination angle is that the first direction is inclined to the left relative to the second direction by a first angle, a first support adjustment instruction is generated based on the first angle and a left-right preset inclination angle range, the first support adjustment instruction being used to rotate the support to the left around the vertical axis and to make the inclination angle between the second direction and the first direction be within the left-right preset inclination angle range; In a direction with the vertical axis of the support as a rotation axis, if the inclination angle is that the first direction is inclined to the right relative to the second direction by a second angle, a second support adjustment instruction is generated based on the second angle and the left-right preset inclination angle range, the second support adjustment instruction being used to rotate the support to the right around the vertical axis and to make the inclination angle between the second direction and the first direction be within the left-right preset inclination angle range.

4. The method according to claim 2 or 3, characterized in that, The generation of the support adjustment instruction based on the inclination angle between the first direction and the second direction comprises: In a direction with the horizontal axis of the support as a rotation axis, if the inclination angle is that the first direction is inclined inward relative to the second direction by a third angle, a third support adjustment instruction is generated based on the third angle and a pitch preset angle range, the third support adjustment instruction being used to rotate the support clockwise around the horizontal axis and to make the inclination angle between the second direction and the first direction be within the pitch preset angle range; In a direction with the horizontal axis of the support as a rotation axis, if the inclination angle is that the first direction is inclined outward relative to the second direction by a fourth angle, a fourth support adjustment instruction is generated based on the fourth angle and the pitch preset angle range, the fourth support adjustment instruction being used to rotate the support counterclockwise around the horizontal axis and to make the inclination angle between the second direction and the first direction be within the pitch preset angle range.

5. The method according to any one of claims 1 to 3, characterized in that, The electronic device is provided with a camera, the camera comprising a low-power mode and / or a normal working mode; obtaining a face image of a user comprises: obtaining a first image, the first image being captured by the camera in the low-power mode; after recognizing that the first image contains a face image, controlling the camera to switch to the normal working mode; obtaining a second image containing a face, and determining a relative inclination angle between the second image and a screen of the electronic device, the second image being captured by the camera in the normal working mode, and the second image having a higher definition than the first image.

6. The method according to any one of claims 1 to 3, characterized in that, The electronic device is provided with a camera, in the specified use scenario, the camera is in the normal working mode; obtaining a face image of a user comprises: obtaining a third image captured by the camera in the normal working mode; after recognizing that the third image contains a face image, determining a relative inclination angle between the face image and a screen of the electronic device.

7. The method of claim 1, wherein, The method further comprises: if it is detected that the face image lacks a local part below the face, the support adjustment instruction is used to lower the position of the electronic device in the vertical direction; If it is detected that the face image lacks the upper part of the face, the support adjustment instruction is used to raise the position of the electronic device in the vertical direction.

8. A method for automatically adjusting the orientation of an electronic device using a bracket, characterized in that, The method is applied to a support, and the support comprises a first driving motor for driving a vertical shaft to rotate, a second driving motor for driving a horizontal shaft to rotate, and a third driving motor for driving a first rotating shaft. The support adjustment instruction is received, which is sent by an electronic device and is generated based on the method for automatically adjusting the direction of the electronic device by the support according to any one of claims 1 to 7. The target adjustment direction and the target adjustment value are obtained by analyzing the support adjustment instruction. The support adjustment instruction is executed to drive the driving motor in the target adjustment direction to rotate, so that the support adjusts the target adjustment value in the target adjustment direction.

9. An electronic device, comprising: The electronic device comprises one or more processors, a memory, and a touch screen; the memory is used to store program code; and the processor is used to run the program code, so that the electronic device implements the method for automatically adjusting the direction of the electronic device by the support according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The electronic device comprises one or more processors, a memory, and a touch screen; the memory is used to store program code; and the processor is used to run the program code, so that the electronic device implements the method for automatically adjusting the direction of the electronic device by the support according to any one of claims 1 to 7.

11. A stent, characterized by The electronic device comprises one or more processors, a memory, and a touch screen; the memory is used to store program code; and the processor is used to run the program code, so that the electronic device implements the method for automatically adjusting the direction of the electronic device by the support according to any one of claims 1 to 7. The electronic device comprises one or more processors, a memory, and a touch screen; the memory is used to store program code; and the processor is used to run the program code, so that the electronic device implements the method for automatically adjusting the direction of the electronic device by the support according to any one of claims 1 to 7. The electronic device comprises one or more processors, a memory, and a touch screen; the memory is used to store program code; and the processor is used to run the program code, so that the electronic device implements the method for automatically adjusting the direction of the electronic device by the support according to any one of claims 1 to 7. The electronic device comprises one or more processors, a memory, and a touch screen; the memory is used to store program code; and the processor is used to run the program code, so that the electronic device implements the method for automatically adjusting the direction of the electronic device by the support according to any one of claims 1 to 7. The electronic device comprises one or more processors, a memory, and a touch screen; the memory is used to store program code; and the processor is used to run the program code, so that the electronic device implements the method for automatically adjusting the direction of the electronic device by the support according to any one of claims 1 to 7. ​ ​

Citation Information

Patent Citations

  • Pose control method, electronic equipment and computer readable storage medium

    CN113010057A

  • ToF camera-based display assembly control method and device, equipment and a medium

    CN113568595A

  • Computer display capable of automatically adjusting screen posture along with human body state

    CN213843934U