Electronic equipment and control method of electronic equipment

By integrating the camera module and control module in electronic devices, using depth images to recognize users and adjust the volume and display brightness, the volume discomfort caused by existing devices is solved and the user experience is improved.

CN119484993APending Publication Date: 2025-02-18TRIPLE WIN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311005318.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-09
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The control system of existing electronic devices cannot recognize users, which causes users to encounter discomfort in volume when using the device, affecting their user experience.

Method used

Design an electronic device, including a camera module, a control module and a functional module. The camera module acquires the user's depth image, the control module determines the relative position and displacement between the user and the device based on the depth image, and then controls the functional module to perform corresponding actions, such as adjusting the volume and display brightness.

Benefits of technology

It realizes the identification and location tracking of users by electronic devices, and automatically adjusts the volume and display brightness according to the user's position and movement, improving the user's user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484993A_ABST
    Figure CN119484993A_ABST
Patent Text Reader

Abstract

The invention discloses electronic equipment and a control method of the electronic equipment. The electronic equipment comprises a camera module, a control module and a functional module. After the camera module acquires the first depth image and the second depth image of the first user, the control module determines the relative position of the first user and the camera module according to the first depth image, and controls the function module to execute the first action according to the relative position, so that the electronic equipment identifies the user at a certain position; and corresponding function service is provided for the user according to the identification result. And the control module also determines the relative displacement of the first user and the camera module according to the first depth image and the second depth image, and controls the functional module to execute the second action according to the relative displacement, so that the electronic equipment identifies the user in the moving process, and provides corresponding functional service for the user according to the identification result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] At present, the control system of electronic devices does not have the function of identifying users and controlling electronic devices according to the identification results, which causes certain obstacles for users when using electronic devices. For example, the control system of some speakers does not have the function of identifying users and controlling speakers according to the identification results. Users need to press the corresponding button on the speaker before the speaker can perform the corresponding function. When the user is far away from the speaker, the volume received by the user is too low, and when the user is close to the speaker, the volume received by the user is too loud, which affects the user experience. Summary of the invention

[0003] In view of this, the present application provides an electronic device and a control method of the electronic device, so that the electronic device can identify the user and control the electronic device according to the identification result, so that the user can use the electronic device more conveniently.

[0004] A first aspect of the present application provides an electronic device, which includes a camera module, a control module and a functional module. The camera module is used to obtain a first depth image and a second depth image of a first user; the control module is used to determine the relative position of the first user and the camera module based on the first depth image, and control the functional module to perform a first action based on the relative position; the control module is also used to determine the relative displacement of the first user and the camera module based on the first depth image and the second depth image, and control the functional module to perform a second action based on the relative displacement.

[0005] In the above technical solution, after the camera module acquires the first depth image and the second depth image, the control module determines the relative position of the first user and the camera module according to the first depth image, and controls the functional module to perform the first action according to the relative position, thereby realizing the electronic device's recognition of the user at a certain position, and providing the user with corresponding functional services according to the recognition result. The control module also determines the relative displacement of the first user and the camera module according to the first depth image and the second depth image, and controls the functional module to perform the second action according to the relative displacement, thereby realizing the electronic device's recognition of the user in the process of movement, and providing the user with corresponding functional services according to the recognition result.

[0006] In some embodiments of the first aspect, the functional module includes a playback module, the relative position includes a relative distance between the camera module and the first user, and the control module is used to control the playback volume of the playback module according to the relative distance.

[0007] In some embodiments of the first aspect, the functional module includes a display module, and the control module is used to control the display brightness of the display module according to the relative distance.

[0008] In some embodiments of the first aspect, the functional module includes a driving module, the relative position includes the relative direction between the camera module and the first user, and the control module is used to control the rotation angle of the driving module according to the relative direction so that the driving module drives the display module and / or the playback module toward the first user.

[0009] In some embodiments of the first aspect, the functional module includes a playback module, the relative position includes a relative displacement distance between the camera module and the first user, and the control module is used to control the playback volume of the playback module according to the relative displacement distance.

[0010] In some embodiments of the first aspect, the functional module includes a display module, and the control module is used to control the display brightness of the display module according to the relative displacement distance.

[0011] In some embodiments of the first aspect, the functional module includes a driving module, the relative displacement includes the relative displacement direction between the camera module and the first user, and the control module is used to control the rotation angle of the driving module according to the relative displacement direction so that the driving module drives the display module and / or the playback module toward the first user.

[0012] In some embodiments of the first aspect, the camera module is also used to obtain a third depth image of the second user, and the control module is further used to determine the relative position of the second user and the camera module based on the third depth image; if the relative distance between the relative position of the second user and the camera module is smaller than the relative distance between the first user and the camera module, the function module is controlled to perform the first action based on the relative position of the second user and the camera module.

[0013] In some embodiments of the first aspect, the electronic device further includes a sound receiving module, which is used to recognize the voice command of the first user, and the control module is further used to control the function module to perform a third action according to the voice command.

[0014] A second aspect of the present application provides a control method for an electronic device, the control method comprising the following steps:

[0015] Controlling the camera module to obtain a first depth image of the first user;

[0016] Determining a relative position of the first user and the camera module according to the first depth image;

[0017] The first action is executed according to the relative position control function module;

[0018] The camera module is also controlled to obtain a second depth image of the first user;

[0019] Determine a relative displacement between the first user and the camera module according to the first depth image and the second depth image;

[0020] The second action is performed according to the relative displacement control function module.

[0021] A third aspect of the present application provides an electronic device, which includes a control module. A computer program is stored in the control module. When the computer program is executed by the control module, the above-mentioned control method is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A schematic diagram of the structure of an electronic device according to an embodiment of the present application.

[0023] Figure 2 for Figure 1 A detailed structural diagram of the electronic device shown.

[0024] Figure 3 for Figure 2 Another structural schematic diagram of the electronic device shown.

[0025] Figure 4a for Figure 1 A schematic diagram of an application scenario of an electronic device is shown.

[0026] Figure 4b for Figure 1 A schematic diagram of another application scenario of the electronic device shown.

[0027] Figure 5 for Figure 3 A schematic diagram of an application scenario of an electronic device is shown.

[0028] Figure 6 for Figure 3 A schematic diagram of another application scenario of the electronic device shown.

[0029] Figure 7 for Figure 3 A schematic diagram of another application scenario of the electronic device is shown.

[0030] Figure 8 Another structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0031] In the present application, the term "plurality" refers to two or more. In addition, it should be understood that in the description of the present application, the terms "first", "second", etc. are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.

[0032] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0033] The following is a brief description of the relevant technology.

[0034] The control system of the electronic device does not have the function of identifying the user and controlling the electronic device according to the identification results, or the identification method is relatively simple and the identification ability is weak, which affects the user experience. For example, the control system of some speakers does not have the function of identifying the user and controlling the speaker according to the identification results. The user needs to press the button of the speaker before the speaker can perform the corresponding function. In one application scenario, the user cannot press the volume adjustment button at any time, so the volume of the sound played by the speaker remains unchanged. When the user is away from the speaker, the volume received by the user is too small, and when the user is close to the speaker, the volume received by the user is too loud.

[0035] In view of this, the present application provides an electronic device and a control method of the electronic device, so that the electronic device can identify the user and control the electronic device according to the identification result, so that the user can use the electronic device more conveniently.

[0036] The electronic device of the embodiment of the present application may be household appliances such as a speaker, a television, a dehumidifier, and an air filter.

[0037] See also Figure 1 , Figure 1The electronic device 100 is a structural schematic diagram of an electronic device of an embodiment of the present application. The electronic device 100 includes a control module 10, a camera module 20 and a functional module 30, and the camera module 20 and the functional module 30 are respectively connected to the control module 10. The camera module 20 can be a depth camera, and the camera module 20 is used to obtain a depth image of the user. The pixel grayscale value of the depth image represents the distance between the user and the camera module 20, and the pixel position of the depth image represents the direction of the user in the actual space, that is, the depth image includes the user's position information in the actual space. The control module 10 can determine the relative position of the user and the camera module 20 according to the depth image, and determine the relative displacement of the user and the camera module 20 according to different depth images, and generate a first control instruction according to the relative position or relative displacement. The functional module 30 performs a first action or a second action according to the first control instruction, so that the functional module 30 realizes its function. Specifically, the control module 10 compares the depth image with the pre-stored image information of the user to determine whether the user exists. After determining that there is a user, the relative position and relative displacement between the user and the camera module 20 are obtained based on the position information in the depth image and combined with the time of flight (TOF) ranging algorithm. Then, the functional module 30 performs a first action according to the first control instruction generated by the relative position, and performs a second action according to the first control instruction generated by the relative displacement.

[0038] See also Figure 2 , Figure 2 FIG. 1 is a schematic diagram of a structure of an electronic device according to another embodiment of the present application. Figure 1 The difference between the electronic devices shown in the embodiments is that Figure 2 As shown, in this embodiment, the electronic device 100 further includes a sound receiving module 40, which is connected to the control module 10. The sound receiving module 40 is used to recognize the user's voice command and send the voice command to the control module 10. The control module 10 generates a second control command according to the voice command. The camera module 20 and the function module 30 perform a third action according to the second control command generated by the voice command, so that the function module 30 realizes its function.

[0039] It can be understood that the electronic device 100 can be provided with a sound receiving module 40 and a camera module 20 at the same time, and the voice recognition function and the user position recognition function of the electronic device 100 can be realized through the sound receiving module 40, the camera module 20 and the control module 10, so that the electronic device 100 has multiple recognition capabilities and further improves the recognition ability of the user.

[0040] In some embodiments, the functional module 30 includes a communication module 31 , a display module 32 , a playback module 33 and a driving module 34 .

[0041] The communication module 31 is used to establish a connection with the Internet to realize information interaction between the electronic device 100 and the Internet. For example, the communication module 31 obtains real-time information such as time, date and news from the Internet, and sends the information to the control module 10. After the control module 10 processes the real-time information, it sends it to the display module 32 for display. The communication module 31 can be a Wi-Fi module. The display module 32 is used to display information, such as real-time information. The playback module 33 is used to play sound. Sound includes music and broadcasting. The playback module 33 includes components such as a speaker unit and a frequency divider. The frequency divider is used to optimize the sound. For example, the frequency divider corrects the amplitude-frequency characteristic and the phase-frequency characteristic of the electrical signal corresponding to the sound, and the speaker unit is used to convert the optimized electrical signal into sound and then play it. The drive module 34 can be a motor, and the drive module 34 is used to drive the display module 32 and the playback module 33 to rotate.

[0042] In one embodiment, the priority of the second control instruction is higher than the priority of the first control instruction. That is, after the functional module 30 receives the first control instruction and the second control instruction, the functional module 30 executes the second control instruction first. For example, when the user enters the position recognition range, the camera module 20 obtains the user's depth image and sends it to the control module 10. The control module 10 generates a first control instruction based on the depth image, and the first control instruction instructs the drive module 34 to start. At this time, the audio module 40 recognizes the user's voice instruction, and the control module 10 generates a second control instruction based on the voice instruction, and the second control instruction instructs the drive module 34 to stop working. After receiving the first control instruction and the second control instruction, the drive module 34 executes the second control instruction, that is, stops working.

[0043] See also Figure 3 , Figure 3 1 is another structural schematic diagram of the electronic device 100 of the embodiment of the present application. The electronic device 100 also includes a box 50, the box 50 includes a box body 51 and a top cover 52, and the box body 51 and the top cover 52 are movably connected. In some embodiments, the box body 51 is a rectangular parallelepiped and / or a cylinder, the top cover 52 is also a rectangular parallelepiped and / or a cylinder, the central axis of the box body 51 coincides with the central axis of the box body 51, and the cross-sectional area of ​​the top cover 52 is greater than the cross-sectional area of ​​the box 50. In other embodiments, the specific shapes of the box body 51 and the top cover 52 are not specifically limited. The box body 51 is formed with a receiving space, and the receiving space is used to receive various modules of the electronic device 100, for example, the receiving space can receive the control module 10, the camera module 20, the communication module 31 and the sound receiving module 40. The camera module 20 includes one or more cameras 21, and the camera module 20 obtains a depth image through the camera 21. Multiple cameras 21 are arranged at intervals on the side of the top cover 52 to facilitate the acquisition of the user's depth image. In one possible implementation, Figure 5 As shown, Figure 5 The top view of the electronic device 100 is shown in FIG. 2 , where three cameras 21 are equidistantly arranged on the side of the top cover 52, and the horizontal acquisition ranges of the depth images of the three cameras 21 are S1, S2, and S3. It can be understood that the horizontal acquisition range of the depth image can be adjusted by changing the number of cameras 21 and the position of the cameras 21 on the top cover 52, that is, changing the position recognition range.

[0044] The display module 32 and the playback module 33 are both arranged in the box body 51. The display module 32 and the playback module 33 can be arranged in a horizontal or vertical row on the box body 50, or multiple playback modules 33 can be arranged around the display module 32. The positions of the display module 32 and the playback module 33 are not specifically limited.

[0045] The motor of the driving module 34 is arranged at the bottom of the box body 51, and the motor drives the box body 51 to rotate, and the box body 51 drives the display module 32 and the playback module 33 to rotate. It can be understood that the box body 51 and the top cover 52 are movably connected, so when the motor drives the box body 51 to rotate, the top cover 52 can be stable and immobile, so that the camera 21 on the side of the top cover 52 can stably obtain the depth image.

[0046] In one embodiment, the camera module 20 is used to obtain a first depth image and a second depth image of a first user.

[0047] The first depth image represents a first relative position between the first user and the camera module 20 within the position recognition range, and the second depth image represents a second relative position between the first user and the camera module 20 within the position recognition range. The position recognition range includes a recognition distance and a recognition angle, such as Figure 4a As shown, L W0 is the recognition distance of the camera module 20. Figure 4b As shown, the angle range of 0° to 360° based on the distance from the camera module 20 to the point L is the recognition angle. The recognition distance and the recognition angle can be set according to actual conditions, for example, the recognition angle can also be 0° to 120°.

[0048] The first relative position includes a first relative distance and a first relative direction. Figure 4a As shown, the first relative distance L W1 represents the distance between the first user and the camera module 20 when the first user is at the first position W1, such as Figure 4b As shown, the first relative direction θ1 represents the angle formed by the distance between the first position W1 and the camera module 20 and the distance between the camera module 20 and the point L. The second relative position includes a second relative distance and a second relative direction. For example, Figure 4a As shown, the second relative distance L W2represents the distance between the user and the camera module 20 when the user is at the second position W2, such as Figure 4b As shown, the second relative direction θ2 represents the angle formed by the distance from the second position W2 to the camera module 20 and the distance from the camera module 20 to the point L.

[0049] The control module 10 is used to determine a first relative position between the first user and the camera module 20 according to the first depth image, and control the function module 30 to perform a first action according to the first relative position.

[0050] Specifically, the control module 10 can use the first relative distance and / or the first relative direction as control parameters to control the communication module 31, the display module 32, the playback module 33 and / or the drive module 34 to perform the first action. In one example, the control module 10 determines the playback volume of the playback module 33 and the display brightness of the display module 32 according to the first relative distance. The first relative distance and the sound volume can be in direct proportion, and the first relative distance and the display brightness can also be in direct proportion. For example, in combination with Figure 5 and Figure 6 When the first user is at the first position W1, the control module 10 controls the playback module 33 to play music at the first volume level and the display module 32 to display the first level of brightness. When the first user is at the first position W1′, the control module 10 controls the playback module 33 to play music at the second volume level and the display module 32 to display the second level of brightness. Among them, the sound level of the first volume level is greater than the sound level of the second volume level, and the brightness of the first level is higher than the brightness of the second level. It can be understood that the control module 10 controls the playback volume of the playback module 33 according to the first relative distance, so that the first user can receive a suitable sound level when he is at any first position. The control module 10 controls the display brightness of the display module 32 according to the first relative distance, so that the first user can receive a suitable display brightness when he is at any first position, so as to see the display information more clearly.

[0051] In another example, the control module 10 determines the rotation angle of the driving module 34 according to the first relative direction, so that the driving module 34 drives the display module 32 and / or the playback module 33 toward the first user. Figure 5 , the display module 32 and / or the playback module 33 on the box body 51 are oriented toward the position of point L, and when the first user is at the first position W1, the control module 10 controls the motor to rotate by an angle θ1, and the motor drives the box body 51 to rotate. Figure 7 As shown, the box body 51 drives the display module 32 and the playback module 33 to rotate, so that the display module 32 and the playback module 33 face the first user. When the first user is at the first position W1′, the control module 10 controls the motor to rotate by an angle θ′, and the motor drives the box body 51 to rotate. Figure 7As shown, the box body 51 drives the display module 32 and the playback module 33 to rotate, so that the display module 32 and the playback module 33 face the first user. The display module 32 faces the first user, so that the first user can receive the information displayed by the display module 32 in time. At the same time, the playback module 33 faces the first user, so that there is no obstacle between the first user and the playback module 33 as the sound source, so that the first user can receive the sound more clearly.

[0052] It can be understood that the number of cameras 21 of the camera module 20 and the position of the cameras 21 in the box body 51 will affect the position recognition range and the shape of the position recognition range boundary, so that when the first user is at different positions of the boundary, the first relative position with the camera module 20 will also be different. The control module 10 can determine the first relative position of the first user and the camera module 20 according to the first depth image, and then control the function module 30 to perform the first action according to the first relative position, so that the first user can feel the convenient service of the electronic device 100 at any position of the boundary.

[0053] The control module 10 is further used to determine the relative displacement between the first user and the camera module 20 according to the first depth image and the second depth image, and control the functional module 30 to perform the second action according to the relative displacement.

[0054] The relative displacement includes a relative displacement distance and a relative displacement direction, that is, the control module 10 can also use the relative displacement distance and / or the relative displacement direction as control parameters to control the communication module 31, the display module 32, the playback module 33 and / or the driving module 34 to perform the second action. Specifically, the control module 10 determines the second relative position of the first user and the camera module 20 according to the second depth image, and then determines the relative displacement of the first user and the camera module 20 according to the first relative position and the second relative position.

[0055] like Figure 5 As shown, the first user moves from the first position W1 to the second position W2, and the relative displacement distance L W′ The first relative distance L w1 The second relative distance L w2 The relative displacement direction θ′ is the second relative direction θ2 minus the first relative direction θ1.

[0056] In one example, the control module 10 adjusts the playback volume of the playback module 33 and the display brightness of the display module 32 according to the relative displacement distance. The relative displacement distance and the sound volume may be in direct proportion, and the relative displacement distance and the display brightness may also be in direct proportion. For example, see Figure 5When the first user moves from the first position W1 to the second position W2, the control module 10 controls the volume of the music played by the playback module 33 to gradually decrease from the first level to the second level. At the same time, the control module 10 controls the display brightness of the display module 32 to gradually decrease from the first level to the second level.

[0057] It can be understood that by controlling the playback volume of the playback module 33 according to the relative displacement distance, the first user can receive appropriate sound volume during the movement. By controlling the display brightness of the display module 32 according to the relative displacement distance, the first user can receive appropriate brightness during the movement and see the displayed information more clearly. In another example, the control module 10 adjusts the rotation angle of the drive module 34 according to the relative displacement direction so that the drive module 34 drives the display module 32 and / or the playback module 33 toward the first user. Figure 5 As shown, the display module 32 and / or the playback module 33 on the box body 51 are facing the position of point L. When the user moves from W1 to W2, the control module 10 controls the motor to rotate the angle θ′, and the motor drives the box body 51 to rotate. Figure 5 As shown, the box body 51 drives the display module 32 and the playback module 33 to rotate, so that the display module 32 and the playback module 33 face the first user. The display module 32 faces the first user, so that the first user can receive the information displayed by the display module 32 in time during the movement. At the same time, the playback module 33 rotates to a relative position with the first user, so that there is no obstacle between the first user and the playback module 33 as the sound source during the movement, and the first user can receive the sound more clearly.

[0058] It can be understood that the second action is performed according to the relative displacement control function module 30 so that the first user can experience the convenient service of the electronic device 100 during the movement.

[0059] In this way, after the camera module 20 acquires the first depth image and the second depth image, the control module 10 determines the first relative position between the first user and the camera module 20 according to the first depth image, and controls the functional module 30 to perform the first action according to the first relative position, thereby realizing the electronic device 100 to identify the user at a certain position, and providing the user with corresponding functional services according to the identification result. The control module 10 also determines the relative displacement between the first user and the camera module 20 according to the first depth image and the second depth image, and controls the functional module 30 to perform the second action according to the relative displacement, thereby realizing the electronic device 100 to identify the user in the moving process, and providing the user with corresponding functional services according to the identification result.

[0060] In some embodiments, the control module 10 is further used to obtain a third depth image of the second user, and determine a third relative position of the second user and the camera module 20 according to the third depth image.

[0061] The third depth image represents the third relative position between the second user and the camera module 20 within the position recognition range. It is understandable that there may be more than one user entering the recognition position range. For example, Figure 5 In the position identification range shown, the first user is located at W1 and the second user is located at W3. Similarly, the third relative position of the second user and the camera module 20 can be calculated by combining the third depth image and the time-of-flight ranging algorithm. The third relative position includes a third relative direction and a third relative distance, for example, Figure 5 As shown, the third relative direction is θ3, and the third relative distance is L w3 .

[0062] The control module 10 is further configured to control the function module 30 to execute the first action according to the third relative position if the third relative distance of the third relative position is smaller than the first relative distance or the second relative distance.

[0063] It can be understood that if the relative distance of the third relative position is less than the first relative distance or the second relative distance, it means that the second user is closer to the camera module 20 than the first user. At this time, the camera module 20 preferentially identifies the third relative position of the second user, and controls the functional module 30 to perform the first action according to the third relative position, so that the second user who is closer to the camera module 20 preferentially feels the convenient service of the electronic device 100.

[0064] In one example, if Figure 5 As shown, the first user is at position W1, the display module 32 and the playback module 33 are facing the first user, and the playback module 33 plays a sound at a volume level. At this time, after the second user enters the position recognition range, he stands at position W3. The camera module 20 obtains a third depth image of the second user at position W3, and the control module 10 obtains a third relative distance L according to the third depth image. w3 The control module 10 compares the first relative distance L w1 and the third relative distance L w3 Then, determine the third relative distance L w3 Less than the third relative distance L w3 , the display module 32 and the playing module 33 are controlled to rotate from facing the first user to facing the second user, and the playing module 33 is controlled to play the sound of the second volume, and the display module 32 displays the second brightness.

[0065] In some embodiments, the control module 10 is further used to control the function module 30 to perform a third action according to a voice command. For example, the control module 10 is further used to control the camera module 20 to be in an on state according to a voice command.

[0066] Specifically, the camera module 20 is in the on state, which means that the camera module 20 is in the state of acquiring the fourth depth image of the object within the position recognition range. For example, if there are objects such as tables and walls within the position recognition range, the camera module 20 can acquire the fourth depth image of the table and the wall.

[0067] In one example, the sound receiving module 40 recognizes the voice command of the first user to turn on the camera module 20, and the sound receiving module 40 sends the voice command to the control module 10. The control module 10 generates a second control command according to the voice command. After the camera module 20 receives the second control command, the camera module 20 obtains a fourth depth image of the object within the position recognition range. The specific content of the voice command to turn on the camera module 20 can be customized, such as "turn on" and "play music".

[0068] The present application also provides a control method of an electronic device 100. The control method is applied to the electronic device 100, specifically, to the control module 10. The control method includes the following steps:

[0069] Step S101: controlling the camera module to obtain a first depth image of a first user.

[0070] Step S102: determining a first relative position of a first user and a camera module according to the first depth image.

[0071] Step S103: executing a first action according to the first relative position control function module.

[0072] Step S104: controlling the camera module to obtain a second depth image of the first user.

[0073] Step S105: Determine the relative displacement between the first user and the camera module according to the first depth image and the second depth image.

[0074] Step S106: executing a second action according to the relative displacement control function module.

[0075] In some embodiments, the first relative position includes a first relative distance and a first relative direction, and step S103 further includes the following steps:

[0076] Step 201: determining the playback volume of the playback module and the display brightness of the display module according to the first relative distance.

[0077] Step 202: determining a rotation angle of the driving module according to the first relative direction, so that the driving module drives the display module and / or the playback module toward the first user.

[0078] In some embodiments, the relative displacement includes a relative displacement distance and a relative displacement direction, and step S106 includes the following steps:

[0079] Step 301: adjusting the playback volume of the playback module and the display brightness of the display module according to the relative displacement distance.

[0080] Step 302: adjusting the rotation angle of the driving module according to the relative displacement direction, so that the driving module 34 drives the display module and / or the playback module toward the first user.

[0081] In some embodiments, the control method further comprises the following steps:

[0082] Step S401: Control the camera module to obtain a third depth image of the second user.

[0083] Step S402: Determine a third relative position of the second user and the camera module according to the third depth image.

[0084] Step S403: If the third relative distance of the third relative position is smaller than the first relative distance or the second relative distance, control the function module to execute the first action according to the third relative position.

[0085] It can be understood that steps S401 to S403 can be performed after any one of steps S102 or S105.

[0086] In some embodiments, before step S101, the control method further includes:

[0087] Step S301: Control the camera module 20 to be in an on state according to the voice command.

[0088] The present application also provides an electronic device 100. Figure 8 A schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. In one embodiment, the electronic device 100 includes a control module 10, a camera module 20 and a functional module 30. The control module 10 can be a control chip. The control module 10 stores a computer program, and executes the computer program to implement the control method of the electronic device 100.

[0089] Those skilled in the art should understand that Figure 8 The structure of the electronic device 100 shown does not constitute a limitation of the embodiments of the present application. The electronic device 100 may also include more or less other hardware or software than shown in the figure, or a different component arrangement.

[0090] The embodiment of the present application further provides a storage medium, wherein the storage medium stores computer instructions, and when the instructions are executed on a computing device, the computing device can execute the control method of the electronic device 100 provided in the above embodiment.

[0091] Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, all of which belong to the protection scope of the present application.

Claims

1. An electronic device, characterized in that: The electronic device includes a camera module, a control module and a functional module; The camera module is used to obtain a first depth image and a second depth image of a first user; The control module is used to determine the relative position of the first user and the camera module according to the first depth image, and control the function module to perform a first action according to the relative position; The control module is further used to determine the relative displacement between the first user and the camera module according to the first depth image and the second depth image, and control the functional module to perform a second action according to the relative displacement.

2. The electronic device according to claim 1, characterized in that: The functional module includes a playback module, the relative position includes a relative distance between the camera module and the first user, and the control module is used to control the playback volume of the playback module according to the relative distance.

3. The electronic device according to claim 2, characterized in that: The functional module further includes a display module, and the control module is used to control the display brightness of the display module according to the relative distance.

4. The electronic device according to any one of claims 1 to 3, characterized in that: The functional module also includes a driving module, and the relative position also includes the relative direction between the camera module and the first user. The control module is used to control the rotation angle of the driving module according to the relative direction so that the driving module drives the display module and / or the playback module toward the first user.

5. The electronic device according to claim 1, characterized in that: The functional module includes a playback module, the relative position includes a relative displacement distance between the camera module and the first user, and the control module is used to control the playback volume of the playback module according to the relative displacement distance.

6. The electronic device according to claim 5, characterized in that: The functional module includes a display module, and the control module is used to control the display brightness of the display module according to the relative displacement distance.

7. The electronic device according to claim 1, 5 or 6, characterized in that: The functional module includes a driving module, the relative displacement includes the relative displacement direction between the camera module and the first user, and the control module is used to control the rotation angle of the driving module according to the relative displacement direction so that the driving module drives the display module and / or the playback module toward the first user.

8. The electronic device according to claim 2, characterized in that: The camera module is further used to obtain a third depth image of the second user, and the control module is further used to determine the relative position of the second user and the camera module according to the third depth image; If the relative distance between the relative positions of the second user and the camera module is smaller than the relative distance between the first user and the camera module, the functional module is controlled to perform the first action according to the relative position between the second user and the camera module.

9. The electronic device according to claim 1, characterized in that: The electronic device further includes a sound receiving module, which is used to recognize the voice command of the first user, and the control module is further used to control the functional module to perform a third action according to the voice command.

10. A method for controlling an electronic device, characterized in that: The control method comprises the following steps: Controlling the camera module to obtain a first depth image of the first user; Determining a relative position of a first user and the camera module according to the first depth image; Executing a first action according to the relative position control function module; The control camera module is also used to obtain a second depth image of the first user; Determine a relative displacement between the first user and the camera module according to the first depth image and the second depth image; The functional module is controlled to perform a second action according to the relative displacement.