Display adjustment method and apparatus
This application discloses a display adjustment method and apparatus. One example method includes: A display adjustment apparatus may obtain sensing information, where the sensing information is used to determine a facial area of a target user. The display adjustment apparatus may further adjust, based on a position of the facial area, a position of a display corresponding to the target user, so that an adjusted position of the display is suitable for the user to view.
1 . A display adjustment method, comprising:
obtaining sensing information, wherein the sensing information comprises information related to a facial area of a target user; and
adjusting, based on a position of the facial area, a position of a display corresponding to the target user, wherein the adjusting, based on a position of the facial area, a position of a display corresponding to the target user comprises:
obtaining, based on a binding relationship between user information of different users and different thresholds, a threshold that corresponds to the target user; and
adjusting the position of the display when a distance between the position of the facial area and a position of a reference point exceeds the threshold that corresponds to the target user, so that an adjusted distance between the position of the facial area and the position of the reference point is less than the threshold, wherein the threshold is greater than 0.
2 . The method according to claim 1 , wherein the adjusting, based on a position of the facial area, a position of a display corresponding to the target user comprises:
adjusting the position of the display when the position of the facial area exceeds a reference area, so that an adjusted position of the facial area is in the reference area.
3 . The method according to claim 1 , wherein the sensing information comprises sensing information of a first area and sensing information of a second area, the first area is an area captured before the display is adjusted, and the second area is an area captured after the display is adjusted; and
the adjusting the position of the display when a distance between the position of the facial area and a position of a reference point exceeds a threshold, so that an adjusted distance between the position of the facial area and the position of the reference point is less than the threshold comprises:
adjusting the position of the display when a distance between a position that is of the facial area and that is in the first area and a reference point in the first area is greater than or equal to the threshold, so that in the second area, a distance between the facial area of the target user and a reference point in the second area is less than or equal to the threshold.
4 . The method according to claim 1 , wherein the sensing information comprises sensing information of a first area, and the method further comprises:
determining facial areas of a plurality of users based on the sensing information; and
determining the target user from the plurality of users based on distances between the facial areas of the plurality of users and a reference point in the first area.
5 . The method according to claim 1 , wherein the method further comprises:
determining facial areas of a plurality of users based on the sensing information; and
determining a user that is in the plurality of users and that has a first body operation as the target user.
6 . The method according to claim 1 , wherein the method further comprises:
determining facial areas of a plurality of users based on the sensing information; and
determining one of the plurality of users as the target user in response to an indication operation of the user.
7 . The method according to claim 1 , wherein the display is disposed on a backrest of a first seat in a vehicle, the first seat is a front seat of a second seat on which the target user is located, and the method further comprises:
adjusting the position of the display based on a first parameter, wherein
the first parameter comprises at least one of a distance between the first seat and the second seat, an inclination angle of the first seat, an inclination angle of a headrest on which the display is located, a length of the backrest of the first seat, or a length of the headrest, wherein the headrest is located on the first seat.
8 . The method according to claim 1 , wherein the position of the display comprises at least one of a display direction of the display, a horizontal position of the display relative to the target user, a vertical position of the display relative to the target user, or a near-far position of the display relative to the target user.
9 . The method according to claim 1 , wherein the sensing information is obtained by a visual sensor, and the visual sensor comprises one or more of a camera or a radar.
10 . A display adjustment apparatus, comprising:
at least one processor;
a non-transitory computer-readable storage medium coupled to the at least one processor and storing programming instructions for execution by the at least one processor, the programming instructions instruct the at least one processor to perform the following operations:
obtaining sensing information, wherein the sensing information comprises information related to a facial area of a target user; and
adjusting, based on a position of the facial area, a position of a display corresponding to the target user, wherein the adjusting, based on a position of the facial area, a position of a display corresponding to the target user comprises:
obtaining, based on a binding relationship between user information of different users and different thresholds, a threshold that corresponds to the target user; and
adjusting the position of the display when a distance between the position of the facial area and a position of a reference point exceeds the threshold that corresponds to the target user, so that an adjusted distance between the position of the facial area and the position of the reference point is less than the threshold, wherein the threshold is greater than 0.
11 . The apparatus according to claim 10 , wherein the programming instructions instruct the at least one processor to perform:
adjust the position of the display when the position of the facial area exceeds a reference area, so that an adjusted position of the facial area is in the reference area.
12 . The apparatus according to claim 10 , wherein the sensing information comprises sensing information of a first area and sensing information of a second area, the first area is an area captured before the display is adjusted, and the second area is an area captured after the display is adjusted; and
wherein the programming instructions instruct the at least one processor to perform:
adjust the position of the display when a distance between a position that is of the facial area and that is in the first area and a reference point in the first area is greater than or equal to the threshold, so that in the second area, a distance between the facial area of the target user and a reference point in the second area is less than or equal to the threshold.
13 . The apparatus according to claim 10 , wherein the sensing information comprises a sensing information of a first area, and wherein the programming instructions instruct the at least one processor to perform:
determine facial areas of a plurality of users based on the sensing information; and
determine the target user from the plurality of users based on distances between the facial areas of the plurality of users and a reference point in the first area.
14 . The apparatus according to claim 10 , wherein the programming instructions instruct the at least one processor to perform:
determine facial areas of a plurality of users based on the sensing information; and
determine a user that is in the plurality of users and that has a first body operation as the target user.
15 . The apparatus according to claim 10 , wherein the programming instructions instruct the at least one processor to perform:
determine facial areas of a plurality of users based on the sensing information; and
determine one of the plurality of users as the target user in response to an indication operation of the user.
16 . The apparatus according to claim 10 , wherein the display is disposed on a backrest of a first seat in a vehicle, the first seat is a front seat of a second seat on which the target user is located, and wherein the programming instructions instruct the at least one processor to perform:
adjust the position of the display based on a first parameter, wherein
the first parameter comprises at least one of a distance between the first seat and the second seat, an inclination angle of the first seat, an inclination angle of a headrest on which the display is located, a length of the backrest of the first seat, or a length of the headrest, wherein the headrest is located on the first seat.
17 . The apparatus according to claim 10 , wherein the position of the display comprises at least one of a display direction of the display, a horizontal position of the display relative to the target user, a vertical position of the display relative to the target user, or a near-far position of the display relative to the target user.
18 . A non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores a computer program or instructions, and when the computer program or the instructions are executed by a computing device, the computing device is enabled to perform operations comprising:
obtaining sensing information, wherein the sensing information comprises information related to a facial area of a target user; and
adjusting, based on a position of the facial area, a position of a display corresponding to the target user, wherein the adjusting, based on a position of the facial area, a position of a display corresponding to the target user comprises:
obtaining, based on a binding relationship between user information of different users and different thresholds, a threshold that corresponds to the target user; and
adjusting the position of the display when a distance between the position of the facial area and a position of a reference point exceeds the threshold that corresponds to the target user, so that an adjusted distance between the position of the facial area and the position of the reference point is less than the threshold, wherein the threshold is greater than 0.
19 . The non-transitory computer-readable storage medium according to claim 18 , wherein the sensing information comprises sensing information of a first area, and the operations further comprise:
determining facial areas of a plurality of users based on the sensing information; and
determining the target user from the plurality of users based on distances between the facial areas of the plurality of users and a reference point in the first area.
20 . The non-transitory computer-readable storage medium according to claim 18 , wherein the operations further comprise:
determining facial areas of a plurality of users based on the sensing information; and
determining a user that is in the plurality of users and that has a first body operation as the target user.