Camera Instance Binding for Multi-App Image Distribution
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Intelligent hardware devices, such as cameras, can only support one application at a time, leading to conflicts and inefficiencies, as the number of cameras and applications is uncertain, resulting in either insufficient or wasteful hardware usage.
Innovation Solution
An image data distribution method and apparatus that generates a surface texture instance to process camera-acquired information, binds it with an image acquisition means instance, and distributes the image data via interface callbacks to multiple applications and webpage instances, enabling simultaneous support of multiple functions with a single camera.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Device complexity
If one camera supports only one application at a time, then the system is simple to manage, but the hardware utilization efficiency deteriorates
Solution Approach 1:
The camera module is designed to support multiple applications simultaneously through instance binding mechanisms. A single camera can be bound to multiple surface texture instances, each corresponding to different applications (e.g., preview, recording, face recognition), enabling one camera to perform multiple functions at the same time without increasing hardware quantity
Solution Approach 2:
The camera system is segmented into multiple independent instances (surface texture instances and image acquisition instances). Each application gets its own instance binding, allowing independent control and data flow for each function while sharing the same physical camera hardware, thus improving utilization without managing a single complex multi-function system
2Adaptability or versatility
If multiple cameras are provided to support multiple applications, then the application support capability is improved, but the hardware cost and device complexity increase
Solution Approach 1:
The system implements a camera instance binding mechanism where a single physical camera can be shared across multiple applications through multiple surface texture instances. This allows one camera to serve multiple purposes (preview, recording, face recognition, QR scanning) simultaneously, eliminating the need to deploy multiple cameras for different functions and reducing overall hardware quantity
Solution Approach 2:
Instead of creating multiple physical camera copies, the system creates multiple virtual instances (surface texture instances and image acquisition instances) that reference the same physical camera. These instance copies enable multiple applications to access camera data independently without requiring duplicate hardware, thus maintaining application support capability while reducing hardware quantity
3Productivity
If one camera supports multiple applications simultaneously, then the hardware utilization is improved, but the data distribution complexity increases
Solution Approach 1:
The system introduces an intermediary instance binding layer (surface texture instance and image acquisition instance) between the physical camera and multiple applications. This intermediary manages the data distribution automatically through callback mechanisms, handling the complexity of routing camera data to multiple applications without requiring complex manual data distribution logic, thus enabling high hardware utilization while keeping data distribution management simplified
4Reliability
If traditional camera function requires Surface carrier for preview, then the system is stable, but the flexibility for multiple applications deteriorates
Solution Approach 1:
The traditional single Surface carrier preview system is segmented into multiple independent surface texture instances. Each instance can be independently bound to the camera and used by different applications, maintaining the stability of individual preview functions while enabling multi-application flexibility through instance multiplication and independent binding
Data Source
AI summary
This disclosure provides an image data distribution method and apparatus, a terminal and a storage medium. 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 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.


