Image processing method and apparatus, and storage medium
Abstract
An image processing method and apparatus, and a storage medium are provided. The method includes: recognizing a feature of a real object from obtained image data, the image data describing an environment of a local client that includes the real object or an environment of a peer client that includes the real object; querying a server providing services to a social network by using the feature of the real object; determining that the real object has a corresponding attribute in the social network; obtaining an augmented reality (AR) model adaptive to the real object based on the attribute of the object in the social network; rendering a first image according to the obtained image data; and rendering a virtual object in the AR model according to a position of the real object in the first image, to jointly display the real object and the virtual object.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . An image processing method, applied to a local client, the method comprising:
recognizing a real object in image data, the image data describing an environment of the local client or an environment of a peer client; obtaining a virtual object according to the real object in the image data, the virtual object being different than the real object; and displaying the real object and the virtual object.
2 . The image processing method according to claim 1 , further comprising:
capturing the image data via a scanning function of the local client.
3 . The image processing method according to claim 1 , wherein the real object includes an image of at least a portion of a face of a user of the local client or a user of the peer client.
4 . The image processing method according to claim 3 , wherein the virtual object is obtained by:
uploading the image data to a face recognition server; and receiving from the face recognition server the virtual object corresponding to a social network account in a social network, the face recognition server being disposed in the social network.
5 . The image processing method according to claim 4 , further comprising:
prior to uploading the image data to the face recognition server, querying the local client for the virtual object according to the real object; determining the querying the local client fails; and uploading the image data to the face recognition server in response to determining the querying the local client fails.
6 . The image processing method according to claim 3 , further comprising:
detecting image feature points in the image data; and determining that a quantity of the image feature points exceeds a feature point quantity threshold.
7 . The image processing method according to claim 1 , wherein the real object includes an image other than an image of any portion of a face of a user of the local client or a user of the peer client.
8 . The image processing method according to claim 1 , wherein the real object corresponds to a shared object of a social network, and the virtual object includes an advertisement on the shared object in the social network.
9 . The image processing method according to claim 1 , further comprising:
detecting a pose change of the real object in the image data; and obtaining the virtual object according to the pose change.
10 . An image processing client, comprising: a memory storing computer program instructions;
and a processor coupled to the memory and configured to execute the computer program instructions and perform: recognizing a real object in image data, the image data describing an environment of the image processing client or an environment of a peer client; obtaining a virtual object according to the real object in the image data, the virtual object being different than the real object; and displaying the real object and the virtual object.
11 . The image processing client according to claim 10 , wherein the processor is configured to execute the computer program instructions and further perform:
capturing the image data via a scanning function of the image processing client.
12 . The image processing client according to claim 10 , wherein the real object includes an image of at least a portion of a face of a user of the image processing client or a user of the peer client.
13 . The image processing client according to claim 12 , wherein the virtual object is obtained by:
uploading the image data to a face recognition server; and receiving from the face recognition server the virtual object corresponding to a social network account in a social network, the face recognition server being disposed in the social network.
14 . The image processing client according to claim 13 , wherein the processor is configured to execute the computer program instructions and further perform:
prior to uploading the image data to the face recognition server, querying the image processing client for the virtual object according to the real object; determining the querying the image processing client fails; and uploading the image data to the face recognition server in response to determining the querying the image processing client fails.
15 . The image processing client according to claim 12 , wherein the processor is configured to execute the computer program instructions and further perform:
detecting image feature points in the image data; and determining that a quantity of the image feature points exceeds a feature point quantity threshold.
16 . The image processing client according to claim 10 , wherein the real object includes an image other than an image of any portion of a face of a user of the local client or a user of the peer client.
17 . The image processing client according to claim 10 , wherein the real object corresponds to a shared object of a social network, and the virtual object includes an advertisement on the shared object in the social network.
18 . The image processing client according to claim 10 , wherein the processor is configured to execute the computer program instructions and further perform:
detecting a pose change of the real object in the image data; and obtaining the virtual object according to the pose change.
19 . A non-transitory computer-readable storage medium storing computer program instructions executable by at least one processor to perform:
recognizing, by a local client, a real object in image data, the image data describing an environment of the local client or an environment of a peer client; obtaining, by the local client, a virtual object according to the real object in the image data, the virtual object being different than the real object; and displaying, by the local client, the real object and the virtual object.
20 . The storage medium according to claim 19 , wherein the computer program instructions further cause the at least one processor to perform:
capturing the image data via a scanning function of the local client.Join the waitlist — get patent alerts
Track US2022004765A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.