DISPLAY METHOD, APPARATUS, AND SYSTEM
This application discloses a display method, an apparatus, and a system, so that an electronic apparatus can display prompt information of a target object at a first moment based on an obtained predicted position of the target object at the first moment and a measurement position before the first moment. This effectively reduces output jitter and improves user experience.
1 . A display method, comprising:
obtaining sensing information of a target object;
obtaining a predicted position of the target object at a first moment based on the sensing information of the target object;
obtaining a measurement position of the target object before the first moment; and
enabling, based on the predicted position and the measurement position, a display apparatus to display prompt information of the target object at the first moment.
2 . The method according to claim 1 , wherein the enabling, based on the predicted position and the measurement position, a display apparatus to display prompt information of the target object at the first moment comprises:
when the measurement position of the target object is obtained before the first moment, enabling the display apparatus to display the prompt information of the target object at the first moment and at a display position, wherein the display position is related to the predicted position and the measurement position.
3 . The method according to claim 1 , wherein the enabling, based on the predicted position and the measurement position, a display apparatus to display prompt information of the target object at the first moment comprises:
when the measurement position of the target object is not obtained before the first moment, enabling the display apparatus to display the prompt information of the target object at the first moment and at a display position, wherein the display position is related to the predicted position.
4 . The method according to claim 1 , wherein the enabling, based on the predicted position and the measurement position, a display apparatus to display prompt information of the target object at the first moment comprises:
when a plurality of measurement positions of the target object are obtained before the first moment, enabling the display apparatus to display the prompt information of the target object at the first moment and at the display position, wherein the display position is related to the predicted position and an average value of the plurality of measurement positions.
5 . The method according to claim 1 , wherein the enabling, based on the predicted position and the measurement position, a display apparatus to display prompt information of the target object at the first moment comprises:
when a plurality of measurement positions of the target object are obtained before the first moment, enabling the display apparatus to display the prompt information of the target object at the first moment and at the display position, wherein the display position is related to the predicted position and a last obtained measurement position in the plurality of measurement positions.
6 . The method according to claim 2 , wherein the display position is further related to a preset correction value, and the correction value is used to reduce an error generated when a vehicle wobbles in a driving process.
7 . The method according to claim 2 , wherein the display position is further related to an average value of display positions corresponding to a plurality of adjacent moments before the first moment.
8 . The method according to claim 1 , wherein the target object comprises one or more of a vehicle, a person, an obstacle, and a traffic sign.
9 . An electronic apparatus, comprising a processing module and a communication module, wherein
the communication module is configured to obtain sensing information of a target object; and
the processing module is configured to: obtain a predicted position of the target object at a first moment based on the sensing information of the target object; obtain a measurement position of the target object within preset duration before the first moment; and enable, based on the predicted position and the measurement position, a display apparatus to display prompt information of the target object at the first moment.
10 . The electronic apparatus according to claim 9 , wherein the processing module is specifically configured to:
when the measurement position of the target object is obtained before the first moment, enable the display apparatus to display the prompt information of the target object at the first moment and at a display position, wherein the display position is related to the predicted position and the measurement position.
11 . The electronic apparatus according to claim 9 , wherein the processing module is specifically configured to:
when the measurement position of the target object is not obtained before the first moment, enable the display apparatus to display the prompt information of the target object at the first moment and at a display position, wherein the display position is related to the predicted position.
12 . The electronic apparatus according to claim 9 , wherein the processing module is specifically configured to:
when a plurality of measurement positions of the target object are obtained before the first moment, enable the display apparatus to display the prompt information of the target object at the first moment and at the display position, wherein the display position is related to the predicted position and an average value of the plurality of measurement positions.
13 . The electronic apparatus according to claim 9 , wherein the processing module is specifically configured to:
when a plurality of measurement positions of the target object are obtained before the first moment, enable the display apparatus to display the prompt information of the target object at the first moment and at the display position, wherein the display position is related to the predicted position and a last obtained measurement position in the plurality of measurement positions.
14 . The electronic apparatus according to claim 9 , wherein the display position is further related to a preset correction value, and the correction value is used to reduce an error generated when a vehicle wobbles in a driving process.
15 . The electronic apparatus according to claim 9 , wherein the display position is further related to an average value of display positions corresponding to a plurality of adjacent moments before the first moment.
16 . The electronic apparatus according to claim 9 , wherein the target object comprises one or more of a vehicle, a person, an obstacle, and a traffic sign.
17 . A 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 the method according to claim 1 .