Image preprocessing method and device, electronic device and storage medium
A technology for image preprocessing and storage space, which is applied in the field of devices, AR navigation, electronic equipment and storage media, and image preprocessing methods. Processing speed, the effect of saving CPU resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] figure 1 It is a schematic flow chart of the image preprocessing method provided in Embodiment 1 of the present application. The method can be executed by an image preprocessing device or electronic equipment. The device or electronic device can be implemented by software and / or hardware. The device or electronic The device can be integrated in any smart device with network communication function. like figure 1 As shown, the image preprocessing method may include the following steps:
[0028] S101. In response to a camera preview enabling instruction, the CPU invokes a pre-created drawing surface window to obtain the current data frame collected by the camera.
[0029] In a specific embodiment of the present application, in response to the camera preview opening instruction, the electronic device can call the pre-created drawing surface window through the CPU to obtain the current data frame collected by the camera; wherein, the pre-created drawing surface window can ...
Embodiment 2
[0036] figure 2 is a schematic flowchart of the image preprocessing method provided in Embodiment 2 of the present application. like figure 2 As shown, the image preprocessing method may include the following steps:
[0037] S201. In response to a camera preview enabling instruction, the CPU invokes a pre-created drawing surface window to acquire the current data frame collected by the camera.
[0038] In a specific embodiment of the present application, in response to the camera preview opening instruction, the electronic device can call the pre-created drawing surface window through the CPU to obtain the current data frame collected by the camera; wherein, the pre-created drawing surface window can be a preset Type of drawing surface window, the default type of drawing surface window can be SurfaceTexture. Specifically, the electronic device can create a graphics library (Graphics Library, GL for short) thread by calling the thread creation function (setRenderer), and c...
Embodiment 3
[0054] image 3 is a schematic structural diagram of the image preprocessing device provided in Embodiment 3 of the present application. like image 3 As shown, the device 300 includes: an acquisition module 301, a conversion module 302 and a preprocessing module 303; wherein,
[0055] The acquisition module 301 is configured to call a pre-created drawing surface window through the central processing unit CPU to obtain the current data frame collected by the camera in response to the camera preview opening instruction;
[0056] The conversion module 302 is configured to convert the current data frame into a corresponding preview texture through the drawing surface window;
[0057] The preprocessing module 303 is configured to send the preview texture corresponding to the current data frame to a graphics processor GPU, process the preview texture corresponding to the current data frame through the GPU, and process the processed texture through the CPU The final preview textu...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com