Picture update method and apparatus, computer device, and storage medium
AssigneeTencent Technology (Shenzhen) Company Limited
InventorJiaping Wu
Life of this patent
Estimating the term…
Abstract
This application relates to a picture update method and apparatus, a computer device, and a storage medium. The method includes: receiving sensor data sent by a terminal, the sensor data being collected by a physical sensor of the terminal; writing the sensor data into a virtual sensor, the virtual sensor corresponding to a structure of the physical sensor and is configured to support a sensor service associated with the physical sensor; reading the sensor data in the virtual sensor, updating a multimedia picture based on the sensor data, and generating corresponding updated multimedia data; and returning the updated multimedia data to the terminal, so that the terminal displays the corresponding updated multimedia picture based on the updated multimedia data.
Claims19
A picture update method performed by a server, wherein the server receives a panoramic picture from a terminal and determines a multimedia picture in the panoramic picture based on a currently displayed picture on the terminal, the method comprising:
- receiving, at the server, sensor data sent by the terminal, the sensor data being collected by a physical sensor of the terminal;
- writing, by the server, the sensor data into a virtual sensor at the server, the virtual sensor corresponding to a structure of the physical sensor and having a memory shared with the physical sensor, and the virtual sensor is configured to store the sensor data in the shared memory using a sensor interface to support a sensor service associated with the physical sensor;
- determining a first viewing angle corresponding to the currently displayed picture on the terminal;
- determining a second viewing angle based on the sensor data stored in the shared memory;
- determining a picture that matches the second viewing angle in the panoramic picture;
- generating multimedia viewing angle update data based on the first viewing angle and the second viewing angle;
- and
- returning the multimedia viewing angle update data to the terminal, wherein the terminal is configured to update, based on the multimedia viewing angle update data, the currently displayed picture corresponding to the first viewing angle to the picture corresponding to the second viewing angle.
A server, comprising a memory and one or more processors, the memory storing a computer-readable instruction;
- and, when executed by the one or more processors, the computer-readable instruction causing the one or more processors to implement operations of a picture update method performed by the server, wherein the server receives a panoramic picture from a terminal and determines a multimedia picture in the panoramic picture based on a currently displayed picture on the terminal, the method including:
- receiving, at the server, sensor data sent by a terminal, the sensor data being collected by a physical sensor of the terminal;
- writing, by the server, the sensor data into a virtual sensor at the server, the virtual sensor corresponding to a structure of the physical sensor and having a memory shared with the physical sensor, and the virtual sensor is configured to store the sensor data in the shared memory using a sensor interface to support a sensor service associated with the physical sensor;
- determining a first viewing angle corresponding to the currently displayed picture on the terminal;
- determining a second viewing angle based on the sensor data stored in the shared memory;
- determining a picture that matches the second viewing angle in the panoramic picture;
- generating multimedia viewing angle update data based on the first viewing angle and the second viewing angle;
- and
- returning the multimedia viewing angle update data to the terminal, wherein the terminal is configured to update, based on the multimedia viewing angle update data, the currently displayed picture corresponding to the first viewing angle to the picture corresponding to the second viewing angle.
A non-transitory computer-readable storage medium, storing one or more computer programs, the computer programs, when executed by a processor of a server, cause the server to perform a picture update method performed by the server, wherein the server receives a panoramic picture from a terminal and determines a multimedia picture in the panoramic picture based on a currently displayed picture on the terminal, the method including:
- receiving, at the server, sensor data sent by a terminal, the sensor data being collected by a physical sensor of the terminal;
- writing, by the server, the sensor data into a virtual sensor at the server, the virtual sensor corresponding to a structure of the physical sensor and having a memory shared with the physical sensor, and the virtual sensor is configured to store the sensor data in the shared memory using a sensor interface to support a sensor service associated with the physical sensor;
- determining a first viewing angle corresponding to the currently displayed picture on the terminal;
- determining a second viewing angle based on the sensor data stored in the shared memory;
- determining a picture that matches the second viewing angle in the panoramic picture;
- generating multimedia viewing angle update data based on the first viewing angle and the second viewing angle;
- and
- returning the multimedia viewing angle update data to the terminal, wherein the terminal is configured to update, based on the multimedia viewing angle update data, the currently displayed picture corresponding to the first viewing angle to the picture corresponding to the second viewing angle.
Dependencies are inferred from the claim text.