IP Library Granted Patent US 12688665
Granted Patent B2
US 12688665 · App. 18/257,570 · Granted Jul 21, 2026

Image data distribution method and apparatus, and terminal and medium

Inventors: Yongming Hou (Beijing, CN); Guangzhen Sui (Beijing, CN)
Assignee: JINGDONG TECHNOLOGY HOLDING CO., LTD.
G06V10/22G06T11/10G06V40/16
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12688665
App. No.
18/257,570
Granted
Jul 21, 2026
Kind
B2
Abstract

The method includes generating a surface texture instance for processing information acquired by an image acquisition means; generating an image acquisition means instance corresponding to the image acquisition means; binding the image acquisition means instance with the surface texture instance; processing the information acquired by the image acquisition means, generating image data by the surface texture instance; and acquiring the image data in an interface callback manner by using the image acquisition means instance, and distributing the image data to an application and/or a page instance.

Claims (70)

1 . An image data distribution method applied to a terminal, comprising:

generating a surface texture instance for processing information acquired by an image acquisition means;

generating an image acquisition means instance corresponding to the image acquisition means;

binding the image acquisition means instance with the surface texture instance;

generating image data, by the surface texture instance processing the information acquired by the image acquisition means; and

acquiring the image data in an interface callback manner by using the image acquisition means instance, and distributing the image data to at least one of an application and a page instance;

wherein the acquiring the image data in an interface callback manner by using the image acquisition means instance comprises:

creating an image acquisition callback interface in the image acquisition means instance, wherein the image acquisition callback interface is used for realizing callback transmission of the image data and providing an image data transmission method;

providing the image acquisition callback interface to the surface texture instance; and

receiving the image data sent by the surface texture instance by performing callback on the image data transmission method, by using the image acquisition means instance.

2 . The image data distribution method according to claim 1 , wherein the distributing the image data to at least one of an application and a page instance comprises:

judging whether an image data distribution interface of at least one of the application and the page instance is registered in the image acquisition means instance, wherein the image data distribution interface is used for realizing callback distribution of the image data and providing an image distribution method; and

distributing the image data to at least one of the corresponding application and the page instance, by the image acquisition means instance performing callback on the image distribution method, if the image data distribution interface of at least one of the application and the page instance is registered in the image acquisition means instance.

3 . The image data distribution method according to claim 2 , further comprising:

at least one of the application and the page instance receiving the image data distributed by the image acquisition means instance by performing callback on the image distribution method, and performing processing based on the image data.

4 . The image data distribution method according to claim 3 , wherein the application comprises: a video preview application, a face recognition application, a video recording application, and a quick response (QR) code scanning application; and the performing processing based on the image data comprises:

the video preview application performing video interface rendering based on the image data; the face recognition application inputting the image data into a face recognition software development kit (SDK) for processing, and performing face recognition processing based on a processing result; the video recording application performing video recording based on the image data; and the QR code scanning application performing QR code identification processing based on the image data.

5 . The image data distribution method according to claim 1 , wherein the generating a surface texture instance for processing information acquired by an image acquisition means comprises:

creating a texture instance by using OpenGL ES; and

generating the surface texture instance by using the texture instance.

6 . The image data distribution method according to claim 1 , wherein the generating an image acquisition means instance corresponding to the image acquisition means comprises:

judging whether the image acquisition means is started; and

generating the image acquisition means instance, if it is determined that the image acquisition means is started.

7 . The image data distribution method according to claim 1 , wherein the binding the image acquisition means instance with the surface texture instance comprises:

judging whether the surface texture instance is generated;

providing the surface texture instance to the image acquisition means instance, if it is determined that the surface texture instance is generated, wherein the image acquisition means instance, by taking the surface texture instance as a call parameter, realizes the binding with the surface texture instance.

8 . The image data distribution method according to claim 1 , wherein

the image acquisition means comprises: a camera; and the image data comprises: video streaming data.

9 . An image data distribution apparatus applied to a terminal, comprising:

a processor; and

a memory coupled to the processor, storing program instructions which, when executed by the processor, cause the processor to:

generate a surface texture instance for processing information acquired by an image acquisition means;

generate an image acquisition means instance corresponding to the image acquisition means;

bind the image acquisition means instance with the surface texture instance;

generate image data, by the surface texture instance processing the information acquired by the image acquisition means; and

acquire the image data in an interface callback manner by using the image acquisition means instance, and distribute the image data to at least one of an application and a page instance;

wherein the acquiring the image data in an interface callback manner by using the image acquisition means instance comprises:

creating an image acquisition callback interface in the image acquisition means instance, wherein the image acquisition callback interface is used for realizing callback transmission of the image data and providing an image data transmission method;

providing the image acquisition callback interface to the surface texture instance; and

receiving the image data sent by the surface texture instance by performing callback on the image data transmission method, by using the image acquisition means instance.

10 . A terminal, comprising:

the image data distribution apparatus according to claim 9 .

11 . The image data distribution apparatus of claim 9 , wherein the distributing the image data to at least one of an application and a page instance comprises:

judging whether an image data distribution interface of at least one of the application and the page instance is registered in the image acquisition means instance, wherein the image data distribution interface is used for realizing callback distribution of the image data and providing an image distribution method; and

distributing the image data to at least one of the corresponding application and the page instance, by the image acquisition means instance performing callback on the image distribution method, if the image data distribution interface of at least one of the application and the page instance is registered in the image acquisition means instance.

12 . The image data distribution apparatus of claim 9 , wherein the generating a surface texture instance for processing information acquired by an image acquisition means comprises:

creating a texture instance by using OpenGL ES; and

generating the surface texture instance by using the texture instance.

13 . The image data distribution apparatus of claim 9 , wherein the generating an image acquisition means instance corresponding to the image acquisition means comprises:

judging whether the image acquisition means is started; and

generating the image acquisition means instance, if it is determined that the image acquisition means is started.

14 . The image data distribution apparatus of claim 9 , wherein the binding the image acquisition means instance with the surface texture instance comprises:

judging whether the surface texture instance is generated;

providing the surface texture instance to the image acquisition means instance, if it is determined that the surface texture instance is generated, wherein the image acquisition means instance, by taking the surface texture instance as a call parameter, realizes the binding with the surface texture instance.

15 . A non-transitory computer-readable storage medium having thereon stored computer instructions which, when executed by one or more processors, cause the one or more processors to:

generate a surface texture instance for processing information acquired by an image acquisition means;

generate an image acquisition means instance corresponding to the image acquisition means;

bind the image acquisition means instance with the surface texture instance;

generate image data, by the surface texture instance processing the information acquired by the image acquisition means; and

acquire the image data in an interface callback manner by using the image acquisition means instance, and distribute the image data to at least one of an application and a page instance;

wherein the acquiring the image data in an interface callback manner by using the image acquisition means instance comprises:

creating an image acquisition callback interface in the image acquisition means instance, wherein the image acquisition callback interface is used for realizing callback transmission of the image data and providing an image data transmission method;

providing the image acquisition callback interface to the surface texture instance; and

receiving the image data sent by the surface texture instance by performing callback on the image data transmission method, by using the image acquisition means instance.

16 . The non-transitory computer readable storage medium of claim 15 , wherein the distributing the image data to at least one of an application and a page instance comprises:

judging whether an image data distribution interface of at least one of the application and the page instance is registered in the image acquisition means instance, wherein the image data distribution interface is used for realizing callback distribution of the image data and providing an image distribution method; and

distributing the image data to at least one of the corresponding application and the page instance, by the image acquisition means instance performing callback on the image distribution method, if the image data distribution interface of at least one of the application and the page instance is registered in the image acquisition means instance.

17 . The non-transitory computer readable storage medium of claim 15 , wherein the generating a surface texture instance for processing information acquired by an image acquisition means comprises:

creating a texture instance by using OpenGL ES; and

generating the surface texture instance by using the texture instance.