WO2023272652A1 - Image preprocessing method and apparatus, computer device, and storage medium - Google Patents

Image preprocessing method and apparatus, computer device, and storage medium Download PDF

Info

Publication number
WO2023272652A1
WO2023272652A1 PCT/CN2021/103831 CN2021103831W WO2023272652A1 WO 2023272652 A1 WO2023272652 A1 WO 2023272652A1 CN 2021103831 W CN2021103831 W CN 2021103831W WO 2023272652 A1 WO2023272652 A1 WO 2023272652A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
format
processed
libyuv
yuv data
Prior art date
Application number
PCT/CN2021/103831
Other languages
French (fr)
Chinese (zh)
Inventor
卢浪平
Original Assignee
东莞市小精灵教育软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 东莞市小精灵教育软件有限公司 filed Critical 东莞市小精灵教育软件有限公司
Priority to PCT/CN2021/103831 priority Critical patent/WO2023272652A1/en
Publication of WO2023272652A1 publication Critical patent/WO2023272652A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Definitions

  • the present application relates to the field of computer technology, and in particular to an image preprocessing method, device, computer equipment and storage medium.
  • the camera preprocesses the preview frame image data.
  • the traditional method is to use the OpenCV algorithm to convert YUV data (a color coding method, also known as YCrCb) Converting to the bitmap (bitmap file) required by the business, that is, to process the data of each pixel one by one for the YUV data.
  • YUV data a color coding method, also known as YCrCb
  • bitmap bitmap file
  • the amount of processed data is large and takes about 400ms, which affects the processing speed, resulting in long processing time and reducing the image quality.
  • the speed of preprocessing affects user experience.
  • An image preprocessing method comprising:
  • the format of the image to be processed is YUV data
  • An image preprocessing device comprising:
  • An acquisition module configured to acquire an image to be processed, the format of the image to be processed is YUV data;
  • Transformation module for utilizing libyuv storehouse to carry out transformation processing to described image to be processed, obtains the transformed image that format is YUV data;
  • the conversion module is used to convert the format of the converted image by using the preset calculation engine at the bottom of android to obtain the target image in bitmap format.
  • a computer device comprising a memory and a processor, the memory stores computer-readable instructions, the computer-readable instructions, when executed by the processor, cause the processor to perform the following steps:
  • the format of the image to be processed is YUV data
  • a computer-readable medium storing computer-readable instructions, which, when executed by a processor, cause the processor to perform the following steps:
  • the format of the image to be processed is YUV data
  • the above-mentioned image preprocessing method, system, computer equipment and storage medium obtain the image to be processed, the format of the image to be processed is YUV data; the image to be processed is transformed using the libyuv library, and the format obtained is the transformation of YUV data Image: using the preset computing engine at the bottom of the android to convert the format of the converted image to obtain a target image in bitmap format.
  • the libyuv library and computing engine with better performance and higher processing speed, the speed of converting YUV data into bitmaps required by business is greatly improved, thereby improving the response speed of image preprocessing and improving the efficiency of image preprocessing.
  • Fig. 1 is a flowchart of an image preprocessing method in an embodiment
  • Fig. 2 is a flowchart of a method for transforming and processing an image to be processed in an embodiment
  • Fig. 3 is a flowchart of a method for transforming and processing an image to be processed in another embodiment
  • Fig. 4 is a structural block diagram of an image preprocessing device in an embodiment
  • Figure 5 is a block diagram of a computer device in one embodiment.
  • an image preprocessing method is provided, and the image preprocessing method can be applied to a terminal or a server, and this embodiment is described by taking the application to a server as an example.
  • the image preprocessing method specifically includes the following steps:
  • Step 102 acquire the image to be processed, the format of the image to be processed is YUV data.
  • the image to be processed refers to an image that requires format conversion, for example, a preview of an image to be processed by a user in a point reader.
  • the image to be processed can be obtained by shooting and collecting with a camera, and the format of the image to be processed is YUV data, and in a specific embodiment, the YUV data is in yuvi420 format.
  • Step 104 using the libyuv library to transform the image to be processed to obtain a transformed image in YUV data format.
  • the libyuv library is an open source library of Google (Google) that realizes mutual conversion, rotation, and scaling between various YUV and RGB. It is cross-platform, can be compiled and run on Windows, Linux, Mac, Android and other operating systems, x86, x64, arm architecture, and supports SSE, AVX, NEON and other simd instruction acceleration. Specifically, use the image transformation algorithm that comes with the libyuv library, such as rotation algorithm, compression algorithm, or mirroring algorithm, to perform rapid rotation, mirroring, and cropping on the YUV data corresponding to the image to be processed, and generate a transformed image in the format of YUV data.
  • Google Google
  • the libyuv library is the source code of libyuv
  • the image to be processed can be directly transformed.
  • the libyuv library also supports simd instruction acceleration. Therefore, the simd instruction in the ibyuv library can also be used to accelerate the process of transformation processing, further speeding up the transformation processing speed of the image to be processed.
  • Step 106 using the preset computing engine at the bottom of the android to convert the format of the converted image to obtain a target image in bitmap format.
  • the calculation engine at the bottom of android is a data processing framework for calculating and processing data and returning appropriate calculation results according to requirements, for example, the RenderScript calculation engine.
  • the preset calculation engine at the bottom of android uses the preset calculation engine at the bottom of android, through the conversion format of YUV data and RGB data, the converted image in YUV format can be quickly converted into the target image in bitmap format, and then quickly displayed on the electronic device, thereby improving the user experience.
  • the computing engine at the bottom of android has higher computing performance, using the preset computing engine to convert the format of the converted image greatly improves the format conversion speed of the image, thereby improving the response speed of image preprocessing and improving improve the efficiency of image preprocessing.
  • the above image preprocessing method by obtaining the image to be processed, the format of the image to be processed is YUV data; using the libyuv library to transform the image to be processed, to obtain a transformed image in the format of YUV data; using the preset calculation engine at the bottom of android to convert The format of the image is converted to obtain the target image in the format of bitmap.
  • the libyuv library and computing engine with better performance and higher processing speed, the speed of converting YUV data into the bitmap required by the business is greatly improved, thereby improving the efficiency of image preprocessing
  • the response speed improves the efficiency of image preprocessing.
  • the image to be processed is transformed using the libyuv library to obtain a transformed image formatted as YUV data, including:
  • Step 104A dividing the YUV data of the image to be processed into multiple groups of data
  • step 104B use the simd command in the libyuv library to perform parallel transformation processing on each group of data to obtain a transformed image.
  • the YUV data of an image to be processed is divided into multiple groups of data, for example, the image to be processed can be divided into blocks, each group of data corresponds to an area of an image to be processed, and then the simd command is used to simultaneously Each group of data is transformed separately, and then each group of transformed data is combined according to the division method to obtain a transformed image formatted as YUV data.
  • the accelerated processing of the image to be processed is realized by using the simd instruction, and the transformation processing speed of the image to be processed is greatly improved through parallel processing.
  • each group of data is transformed and processed in parallel using the simd instruction in the libyuv library to obtain a transformed image, including:
  • Step 104B using the image rotation algorithm in the libyuv library to perform parallel rotation processing on each group of data to obtain a rotated image
  • Step 104B2 using the image compression algorithm in the libyuv library to compress the rotated image to obtain a compressed image
  • Step 104B3 using the mirror transformation algorithm in the libyuv library to perform mirror transformation on the compressed image to generate a transformed image in the form of YUV data.
  • each group of data is calculated according to the calculation formula of the image rotation algorithm at the same time, and each group of data after rotation processing is obtained, and a rotated image is formed based on each group of data, and then, Use the image compression algorithm in the libyuv library to calculate the compressed image according to the calculation formula of the image compression algorithm to obtain a compressed image. Finally, use the mirror transformation algorithm in the libyuv library to calculate the compressed image according to the calculation formula of the mirror transformation algorithm to obtain YUV A transformed image of the data.
  • one compression process can be directly performed on a rotated image or compressed image, or the rotated image or compressed image can be divided, and each group of divided data can be calculated in parallel. There are no restrictions here. It can be understood that in this embodiment, by using the simd command in the libyuv library to perform conversion processing on each group of data of the image to be processed, the YUV data conversion speed of the image to be processed is improved.
  • using the preset computing engine at the bottom of android to convert the format of the transformed image to obtain a target image in the bitmap format includes: using the computing framework in the RenderScript computing engine to perform parallel computing on the YUV data of the transformed image to obtain the bitmap target image.
  • the RenderScript computing engine is an efficient computing framework that comes with Android, which can automatically use CPU, GPU, and DSP for parallel computing, and can provide efficient computing capabilities in scenarios such as image processing and mathematical model calculations.
  • the syntax is similar to C/C++, but it is compiled at runtime and is a cross-platform framework for running computationally intensive tasks.
  • the YUV data of the converted image is calculated in parallel by the calculation framework in the RenderScript calculation engine, making full use of the high-performance computing capability of the RenderScript calculation engine, and realizing accelerated processing of format conversion for the converted image.
  • the calculation framework in the RenderScript calculation engine is used to calculate the YUV data of the converted image in parallel to obtain the target image of the bitmap, including: dividing the YUV data of the converted image into multiple groups of matrices; using the calculation in the RenderScript calculation engine The framework performs parallel calculations on each group of matrices to obtain the target image of the bitmap.
  • the YUV data of the converted image is divided into multiple groups of matrices, that is, the matrix formed by the YUV data corresponding to the converted image is divided into multiple groups of matrices, and the calculation framework in the RenderScript calculation engine is used to perform parallel calculations on each group of matrices. Get the target image of the bitmap. Utilizing the high performance of the parallel computing of the RenderScript computing engine improves the speed of the format conversion processing of the transformed image.
  • the calculation framework in the RenderScript calculation engine is used to perform parallel calculations on each group of matrices to obtain the target image of the bitmap, including: obtaining the brightness value, color value and saturation value in each group of matrices; using the calculation framework, Based on the floating-point matrix multiplication formula, the red channel value, green channel value and blue channel value of each group of matrices are calculated in parallel; the target image is generated according to the red channel value, green channel value and blue channel value of each group of matrices.
  • Y represents the brightness value
  • U represents the color value
  • V represents the saturation value
  • R represents the red channel value
  • G represents the green channel value
  • B represents the blue channel value.
  • the corresponding brightness value, color value and saturation value are obtained according to each group of matrices; using the calculation framework, the above-mentioned floating-point matrix multiplication formula is used to calculate the red channel value, green channel value and blue channel value of each group of matrices in parallel ;Generate the target image according to the calculated red channel value, green channel value and blue channel value with each group of matrices, so as to obtain the RGB image, that is, the target image in bitmap format.
  • the parallel conversion of each group of matrices of the transformed image is realized by using the floating-point matrix multiplication formula, and the transformed image in the YUV format is quickly converted into an RGB data image, which improves the response speed of the image preprocessing , so as to solve the problem that the user browses images for a long time, and improve the user experience.
  • the preset computing engine at the bottom of android after using the preset computing engine at the bottom of android to convert the format of the converted image to obtain the target image in bitmap format, it also includes: performing video image compression encoding on the target image to obtain a compressed code stream for use in network transmission.
  • the target image in order to store or transmit the target image conveniently, can be compressed and coded to obtain a compressed code stream, so as to improve the processing speed of the target image and further improve the user experience.
  • an image preprocessing device As shown in Figure 4, in one embodiment, an image preprocessing device is proposed, the device includes:
  • An acquisition module 402 configured to acquire an image to be processed, the format of the image to be processed is YUV data;
  • the transformation module 404 is used to transform the image to be processed by using the libyuv library to obtain a transformed image whose format is YUV data;
  • the conversion module 406 is configured to convert the format of the converted image by using the preset calculation engine at the bottom of the android to obtain a target image in bitmap format.
  • the transformation module includes:
  • a blocking unit configured to divide the YUV data of the image to be processed into multiple groups of data
  • the transformation unit is used to use the simd instruction in the libyuv library to perform parallel transformation processing on each group of data to obtain the transformed image.
  • the transformation unit includes:
  • the rotation subunit is used to use the image rotation algorithm in the libyuv library to perform parallel rotation processing on each set of data to obtain a rotated image;
  • a compression subunit configured to use the image compression algorithm in the libyuv library to compress the rotated image to obtain a compressed image
  • the mirroring subunit is configured to use the mirroring transformation algorithm in the libyuv library to perform mirroring transformation on the compressed image to generate the transformed image in the form of YUV data.
  • the conversion module includes: a conversion sub-module, configured to use the calculation framework in the RenderScript calculation engine to perform parallel calculations on the YUV data of the transformed image to obtain the target image of the bitmap.
  • the conversion sub-module includes:
  • a division unit configured to divide the YUV data of the transformed image into multiple groups of matrices
  • a calculation unit configured to use the calculation framework in the RenderScript calculation engine to perform parallel calculations on each group of the matrices to obtain the target image of the bitmap.
  • the computing unit includes:
  • Calculation subunit for utilizing described calculation framework, calculate the red channel value, green channel value and blue channel value of each group matrix in parallel based on floating-point matrix multiplication formula
  • the sound field subunit is configured to generate the target image according to the red channel value, the green channel value and the blue channel value of each matrix.
  • the image preprocessing device further includes: a compression encoding module, configured to perform video image compression encoding on the target image to obtain a compressed code stream for network transmission.
  • a compression encoding module configured to perform video image compression encoding on the target image to obtain a compressed code stream for network transmission.
  • Figure 5 shows a diagram of the internal structure of a computer device in one embodiment.
  • the computer device may be a server, and the server includes but is not limited to a high-performance computer and a cluster of high-performance computers.
  • the computer device includes a processor, a memory, and a network interface connected through a system bus.
  • the memory includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium of the computer device stores an operating system, and may also store computer-readable instructions.
  • the processor may implement the image preprocessing method.
  • Computer-readable instructions may also be stored in the internal memory, and when the computer-readable instructions are executed by the processor, the processor may execute the image preprocessing method.
  • FIG. 5 is only a block diagram of a part of the structure related to the solution of this application, and does not constitute a limitation to the computer equipment on which the solution of this application is applied.
  • the specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
  • the image preprocessing method provided in the present application can be implemented in the form of a computer-readable instruction, and the computer-readable instruction can be run on a computer device as shown in FIG. 5 .
  • Each program template constituting the image preprocessing device can be stored in the memory of the computer equipment.
  • an acquisition module 402 For example, an acquisition module 402 , a transformation module 404 , and a conversion module 406 .
  • a computer device comprising a memory, a processor, and computer-readable instructions stored in the memory and operable on the processor, when the processor executes the computer-readable instructions, the following steps are implemented: obtaining the Image processing, the format of the image to be processed is YUV data; the libyuv library is used to transform the image to be processed to obtain a transformed image with a format of YUV data; the transformed image is processed using the preset calculation engine at the bottom of android Format conversion to get the target image in bitmap format.
  • the converting the image to be processed by using the libyuv library to obtain the converted image in the form of YUV data includes: dividing the YUV data of the image to be processed into multiple groups of data; using the The simd command in the libyuv library transforms each group of data in parallel to obtain the transformed image.
  • the parallel transformation processing of each group of data by using the simd instruction in the libyuv library to obtain the transformed image includes: using the image rotation algorithm in the libyuv library to perform the transformation on each group of data Parallel rotation processing to obtain a rotated image; Utilize the image compression algorithm in the libyuv library to compress the rotated image to obtain a compressed image; Utilize the mirror image transformation algorithm in the libyuv library to perform mirror transformation on the compressed image, The transformed image is generated as YUV data.
  • the format conversion of the converted image by using the preset calculation engine at the bottom of android to obtain the target image in bitmap format includes: using the calculation framework in the RenderScript calculation engine to convert the YUV of the converted image The data is calculated in parallel to obtain the target image of the bitmap.
  • the parallel computing of the YUV data of the converted image by using the computing framework in the RenderScript computing engine to obtain the target image of the bitmap includes: dividing the YUV data of the transformed image into multiple A group of matrices; using the computing framework in the RenderScript computing engine to perform parallel computing on each group of the matrices to obtain the target image of the bitmap.
  • the parallel calculation of each set of matrices by using the calculation framework in the RenderScript calculation engine to obtain the target image of the bitmap includes: obtaining the brightness value, color value and Saturation value; using the calculation framework, calculate the red channel value, green channel value and blue channel value of each group of matrices in parallel based on the floating-point matrix multiplication formula; according to the red channel value, green channel value and blue channel value of each group of matrices channel values to generate the target image.
  • a computer-readable storage medium stores computer-readable instructions, and is characterized in that, when the computer-readable instructions are executed by a processor, the following steps are implemented: acquiring an image to be processed, the image to be processed The format of the image is YUV data; utilize the libyuv library to transform the image to be processed, and obtain a transformed image whose format is YUV data; utilize the preset calculation engine at the bottom of android to perform format conversion on the transformed image, and obtain a format of bitmap target image.
  • the converting the image to be processed by using the libyuv library to obtain the converted image in the form of YUV data includes: dividing the YUV data of the image to be processed into multiple groups of data; using the The simd command in the libyuv library transforms each group of data in parallel to obtain the transformed image.
  • the parallel transformation processing of each group of data by using the simd instruction in the libyuv library to obtain the transformed image includes: using the image rotation algorithm in the libyuv library to perform the transformation on each group of data Parallel rotation processing to obtain a rotated image; Utilize the image compression algorithm in the libyuv library to compress the rotated image to obtain a compressed image; Utilize the mirror image transformation algorithm in the libyuv library to perform mirror transformation on the compressed image, The transformed image is generated as YUV data.
  • the format conversion of the converted image by using the preset calculation engine at the bottom of android to obtain the target image in bitmap format includes: using the calculation framework in the RenderScript calculation engine to convert the YUV of the converted image The data is calculated in parallel to obtain the target image of the bitmap.
  • the parallel computing of the YUV data of the converted image by using the computing framework in the RenderScript computing engine to obtain the target image of the bitmap includes: dividing the YUV data of the transformed image into multiple A group of matrices; using the computing framework in the RenderScript computing engine to perform parallel computing on each group of the matrices to obtain the target image of the bitmap.
  • the parallel calculation of each set of matrices by using the calculation framework in the RenderScript calculation engine to obtain the target image of the bitmap includes: obtaining the brightness value, color value and Saturation value; using the calculation framework, calculate the red channel value, green channel value and blue channel value of each group of matrices in parallel based on the floating-point matrix multiplication formula; according to the red channel value, green channel value and blue channel value of each group of matrices channel values to generate the target image.
  • Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM Static RAM
  • DRAM Dynamic RAM
  • SDRAM Synchronous DRAM
  • DDRSDRAM Double Data Rate SDRAM
  • ESDRAM Enhanced SDRAM
  • SLDRAM Synchronous Chain Synchlink DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Mathematical Physics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Algebra (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)

Abstract

Disclosed in embodiments of the present application is an image preprocessing method. The method comprises: obtaining an image to be processed, the format of the image to be processed being YUV data; performing, by using a libyuv library, transform processing on the image to be processed to obtain a transformed image in a format of YUV data; and performing format conversion on the transformed image by using a preset computing engine of an Android bottom layer to obtain a target image in a bitmap format. By using the libyuv library and the computing engine which are better in performance and higher in processing speed, the speed of converting the YUV data into the bitmap required by a service is greatly increased, such that the response speed of image preprocessing is increased, and the efficiency of image preprocessing is improved. In addition, further provided are an image preprocessing apparatus, a computer device, and a storage medium.

Description

图像预处理方法、装置、计算机设备及存储介质Image preprocessing method, device, computer equipment and storage medium 技术领域technical field
本申请涉及计算机技术领域,尤其涉及一种图像预处理方法、装置、计算机设备及存储介质。The present application relates to the field of computer technology, and in particular to an image preprocessing method, device, computer equipment and storage medium.
背景技术Background technique
随着科技技术的不断发展,一些电子设备如点读机、家教机等得到了广泛使用。然而对于点读机等电子设备使用过程,会涉及到图像的处理,例如,相机对预览帧图像数据预处理,传统的方法是通过OpenCV算法将YUV数据(一种颜色编码方式,也称YCrCb)转换为业务需要的bitmap(位图文件),即对YUV数据对每个像素的数据进行逐一的处理,处理的数据量很大,需要400ms左右,影响处理速度,导致处理耗时长,降低了图像预处理的速度,影响用户体验。With the continuous development of science and technology, some electronic devices such as point readers, tutoring machines, etc. have been widely used. However, for the use of electronic devices such as point readers, image processing will be involved. For example, the camera preprocesses the preview frame image data. The traditional method is to use the OpenCV algorithm to convert YUV data (a color coding method, also known as YCrCb) Converting to the bitmap (bitmap file) required by the business, that is, to process the data of each pixel one by one for the YUV data. The amount of processed data is large and takes about 400ms, which affects the processing speed, resulting in long processing time and reducing the image quality. The speed of preprocessing affects user experience.
申请内容application content
基于此,有必要针对上述问题,提出一种能够加速图像处理的图像预处理方法、装置、计算机设备及存储介质。Based on this, it is necessary to propose an image preprocessing method, device, computer equipment, and storage medium capable of accelerating image processing to address the above problems.
一种图像预处理方法,所述方法包括:An image preprocessing method, the method comprising:
获取待处理图像,所述待处理图像的格式为YUV数据;Obtain the image to be processed, the format of the image to be processed is YUV data;
利用libyuv库对所述待处理图像进行变换处理,得到格式为YUV数据的变换图像;Utilize libyuv storehouse to carry out transformation processing to described image to be processed, obtain the transformed image that format is YUV data;
利用android底层的预设计算引擎对所述变换图像进行格式转换,得到格式为bitmap的目标图像。Using the preset calculation engine at the bottom of the android to perform format conversion on the transformed image to obtain a target image in bitmap format.
一种图像预处理装置,所述装置包括:An image preprocessing device, the device comprising:
获取模块,用于获取待处理图像,所述待处理图像的格式为YUV数据;An acquisition module, configured to acquire an image to be processed, the format of the image to be processed is YUV data;
变换模块,用于利用libyuv库对所述待处理图像进行变换处理,得到格式为YUV数据的变换图像;Transformation module, for utilizing libyuv storehouse to carry out transformation processing to described image to be processed, obtains the transformed image that format is YUV data;
转换模块,用于利用android底层的预设计算引擎对所述变换图像进行格式转换,得到格式为bitmap的目标图像。The conversion module is used to convert the format of the converted image by using the preset calculation engine at the bottom of android to obtain the target image in bitmap format.
一种计算机设备,包括存储器和处理器,所述存储器存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下步骤:A computer device comprising a memory and a processor, the memory stores computer-readable instructions, the computer-readable instructions, when executed by the processor, cause the processor to perform the following steps:
获取待处理图像,所述待处理图像的格式为YUV数据;Obtain the image to be processed, the format of the image to be processed is YUV data;
利用libyuv库对所述待处理图像进行变换处理,得到格式为YUV数据的变换图像;Utilize libyuv storehouse to carry out transformation processing to described image to be processed, obtain the transformed image that format is YUV data;
利用android底层的预设计算引擎对所述变换图像进行格式转换,得到格式为bitmap的目标图像。Using the preset calculation engine at the bottom of the android to perform format conversion on the transformed image to obtain a target image in bitmap format.
一种计算机可读介质,存储有计算机可读指令,所述计算机可读指令被处理器执行时,使得所述处理器执行以下步骤:A computer-readable medium, storing computer-readable instructions, which, when executed by a processor, cause the processor to perform the following steps:
获取待处理图像,所述待处理图像的格式为YUV数据;Obtain the image to be processed, the format of the image to be processed is YUV data;
利用libyuv库对所述待处理图像进行变换处理,得到格式为YUV数据的变换图像;Utilize libyuv storehouse to carry out transformation processing to described image to be processed, obtain the transformed image that format is YUV data;
利用android底层的预设计算引擎对所述变换图像进行格式转换,得到格式为bitmap的目标图像。Using the preset calculation engine at the bottom of the android to perform format conversion on the transformed image to obtain a target image in bitmap format.
上述图像预处理方法、系统、计算机设备及存储介质,获取待处理图像,所述待处理图像的格式为YUV数据;利用libyuv库对所述待处理图像进行变换处理,得到格式为YUV数据的变换图像;利用android底层的预设计算引擎对所述变换图像进行格式转换,得到格式为bitmap的目标图像。通过使用性能更优且处理速度更高的libyuv库和计算引擎,大大提高了将YUV数据转换为业务需要的bitmap速度,从而提高图像预处理的响应速度,提高了对图像预处理的 效率。The above-mentioned image preprocessing method, system, computer equipment and storage medium obtain the image to be processed, the format of the image to be processed is YUV data; the image to be processed is transformed using the libyuv library, and the format obtained is the transformation of YUV data Image: using the preset computing engine at the bottom of the android to convert the format of the converted image to obtain a target image in bitmap format. By using the libyuv library and computing engine with better performance and higher processing speed, the speed of converting YUV data into bitmaps required by business is greatly improved, thereby improving the response speed of image preprocessing and improving the efficiency of image preprocessing.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
其中:in:
图1为一个实施例中图像预处理方法的流程图;Fig. 1 is a flowchart of an image preprocessing method in an embodiment;
图2为一个实施例中对待处理图像进行变换处理方法的流程图;Fig. 2 is a flowchart of a method for transforming and processing an image to be processed in an embodiment;
图3为另一个实施例中对待处理图像进行变换处理方法的流程图;Fig. 3 is a flowchart of a method for transforming and processing an image to be processed in another embodiment;
图4为一个实施例中图像预处理装置的结构框图;Fig. 4 is a structural block diagram of an image preprocessing device in an embodiment;
图5为一个实施例中计算机设备的结构框图。Figure 5 is a block diagram of a computer device in one embodiment.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
如图1所示,在一个实施例中,提供了一种图像预处理方法,该图像预处理方法既可以应用于终端,也可以应用于服务器,本实施例以应用于服务器举例说明。该图像预处理方法具体包括以下步骤:As shown in FIG. 1 , in one embodiment, an image preprocessing method is provided, and the image preprocessing method can be applied to a terminal or a server, and this embodiment is described by taking the application to a server as an example. The image preprocessing method specifically includes the following steps:
步骤102,获取待处理图像,待处理图像的格式为YUV数据。 Step 102, acquire the image to be processed, the format of the image to be processed is YUV data.
其中,待处理图像是指需要进行格式转换的图像,例如,点读机中用户对待处理的图像的预览。具体地,可以通过相机拍摄采集得到该待处理图像,且该待处理图像的格式为YUV数据,在一个具体实施方式中该YUV数据为 yuvi420格式。Wherein, the image to be processed refers to an image that requires format conversion, for example, a preview of an image to be processed by a user in a point reader. Specifically, the image to be processed can be obtained by shooting and collecting with a camera, and the format of the image to be processed is YUV data, and in a specific embodiment, the YUV data is in yuvi420 format.
步骤104,利用libyuv库对待处理图像进行变换处理,得到格式为YUV数据的变换图像。 Step 104, using the libyuv library to transform the image to be processed to obtain a transformed image in YUV data format.
其中,libyuv库是Google(谷歌)开源的实现各种YUV与RGB之间相互转换、旋转、缩放的库。它是跨平台的,可在Windows、Linux、Mac、Android等操作系统,x86、x64、arm架构上进行编译运行,支持SSE、AVX、NEON等simd指令加速。具体地,利用libyuv库自带的图像变换算法如旋转算法、压缩算法或者镜像算法等对待处理图像对应的YUV数据进行快速旋转、镜像和裁剪等处理,生成格式为YUV数据的变换图像。可以理解地,由于libyuv库是libyuv源码可以直接对待处理图像进行变换处理,相较于传统的OPENCV的变换处理,无需编译源码或者借助二进制库,提高了对待处理图像的变换处理效率。进一步地,libyuv库还支持simd指令加速,因此,还可以利用ibyuv库中的simd指令对变换处理的过程进行加速,进一步加快了对待处理图像的变换处理速度。Among them, the libyuv library is an open source library of Google (Google) that realizes mutual conversion, rotation, and scaling between various YUV and RGB. It is cross-platform, can be compiled and run on Windows, Linux, Mac, Android and other operating systems, x86, x64, arm architecture, and supports SSE, AVX, NEON and other simd instruction acceleration. Specifically, use the image transformation algorithm that comes with the libyuv library, such as rotation algorithm, compression algorithm, or mirroring algorithm, to perform rapid rotation, mirroring, and cropping on the YUV data corresponding to the image to be processed, and generate a transformed image in the format of YUV data. Understandably, since the libyuv library is the source code of libyuv, the image to be processed can be directly transformed. Compared with the traditional OPENCV transformation process, there is no need to compile the source code or use a binary library, which improves the transformation processing efficiency of the image to be processed. Furthermore, the libyuv library also supports simd instruction acceleration. Therefore, the simd instruction in the ibyuv library can also be used to accelerate the process of transformation processing, further speeding up the transformation processing speed of the image to be processed.
步骤106,利用android底层的预设计算引擎对变换图像进行格式转换,得到格式为bitmap的目标图像。 Step 106, using the preset computing engine at the bottom of the android to convert the format of the converted image to obtain a target image in bitmap format.
其中,android底层的计算引擎是用于计算对数据进行并计算处理并将合适的计算结果根据要求给予返回的数据处理框架,例如,RenderScript计算引擎。具体地,利用android底层的预设计算引擎,通过YUV数据与RGB数据的转换格式实现了将YUV格式的变换图像快速转换为格式为bitmap的目标图像,进而在电子设备上进行快速显示,从而提升了用户的体验。可以理解地,由于android底层的计算引擎具有更高的计算性能,因此,利用预设计算引擎对变换图像进行格式转换,大大提高了图像的格式转变速度,从而提高图像预处理的响应速度,提高了对图像预处理的效率。Among them, the calculation engine at the bottom of android is a data processing framework for calculating and processing data and returning appropriate calculation results according to requirements, for example, the RenderScript calculation engine. Specifically, using the preset calculation engine at the bottom of android, through the conversion format of YUV data and RGB data, the converted image in YUV format can be quickly converted into the target image in bitmap format, and then quickly displayed on the electronic device, thereby improving the user experience. Understandably, since the computing engine at the bottom of android has higher computing performance, using the preset computing engine to convert the format of the converted image greatly improves the format conversion speed of the image, thereby improving the response speed of image preprocessing and improving improve the efficiency of image preprocessing.
在一具体实施方式中,将一幅格式为YUV数据的待处理图像转换为得到格式为bitmap的目标图像,耗时30ms。In a specific embodiment, it takes 30 ms to convert an image to be processed whose format is YUV data into a target image whose format is bitmap.
上述图像预处理方法,通过获取待处理图像,待处理图像的格式为YUV数据;利用libyuv库对待处理图像进行变换处理,得到格式为YUV数据的变换图像;利用android底层的预设计算引擎对变换图像进行格式转换,得到格式为bitmap的目标图像,通过使用性能更优且处理速度更高的libyuv库和计算引擎,大大提高了将YUV数据转换为业务需要的bitmap速度,从而提高图像预处理的响应速度,提高了对图像预处理的效率。The above image preprocessing method, by obtaining the image to be processed, the format of the image to be processed is YUV data; using the libyuv library to transform the image to be processed, to obtain a transformed image in the format of YUV data; using the preset calculation engine at the bottom of android to convert The format of the image is converted to obtain the target image in the format of bitmap. By using the libyuv library and computing engine with better performance and higher processing speed, the speed of converting YUV data into the bitmap required by the business is greatly improved, thereby improving the efficiency of image preprocessing The response speed improves the efficiency of image preprocessing.
如图2所示,在一个实施例中,利用libyuv库对待处理图像进行变换处理,得到格式为YUV数据的变换图像,包括:As shown in Figure 2, in one embodiment, the image to be processed is transformed using the libyuv library to obtain a transformed image formatted as YUV data, including:
步骤104A,将待处理图像的YUV数据划分为多组数据; Step 104A, dividing the YUV data of the image to be processed into multiple groups of data;
步骤104B,利用libyuv库中的simd指令对各组数据并行变换处理,得到变换图像。In step 104B, use the simd command in the libyuv library to perform parallel transformation processing on each group of data to obtain a transformed image.
在这个实施例中,将一幅待处理图像的YUV数据划分为多组数据,例如,可以将待处理图像分块,每组数据对应一幅待处理图像的一块区域,然后利用simd指令同时对每组数据分别进行变换处理,进而变换后的每组数据,且该变换后的每组数据按照划分方式组合,得到格式为YUV数据的变换图像。可以理解地,通过利用simd指令实现了对待处理图像的加速处理并且通过并行处理,大大提高了对待处理图像的变换处理速度。In this embodiment, the YUV data of an image to be processed is divided into multiple groups of data, for example, the image to be processed can be divided into blocks, each group of data corresponds to an area of an image to be processed, and then the simd command is used to simultaneously Each group of data is transformed separately, and then each group of transformed data is combined according to the division method to obtain a transformed image formatted as YUV data. It can be understood that the accelerated processing of the image to be processed is realized by using the simd instruction, and the transformation processing speed of the image to be processed is greatly improved through parallel processing.
如图3所示,在一个实施例中,利用libyuv库中的simd指令对各组数据并行变换处理,得到变换图像,包括:As shown in Figure 3, in one embodiment, each group of data is transformed and processed in parallel using the simd instruction in the libyuv library to obtain a transformed image, including:
步骤104B1,利用libyuv库中的图像旋转算法对各组数据进行并行旋转处理,得到旋转图像;Step 104B1, using the image rotation algorithm in the libyuv library to perform parallel rotation processing on each group of data to obtain a rotated image;
步骤104B2,利用libyuv库中的图像压缩算法对旋转图像进行压缩处理,得到压缩图像;Step 104B2, using the image compression algorithm in the libyuv library to compress the rotated image to obtain a compressed image;
步骤104B3,利用libyuv库中的镜像变换算法对压缩图像进行镜像变换,生成格式为YUV数据的变换图像。Step 104B3, using the mirror transformation algorithm in the libyuv library to perform mirror transformation on the compressed image to generate a transformed image in the form of YUV data.
在这个实施例中,首先通过libyuv库中的图像旋转算法对各组数据同时按 照图像旋转算法的计算公式进行计算,得到旋转处理后的各组数据,基于各组数据组合成旋转图像,然后,利用libyuv库中的图像压缩算法对压缩图像按照图像压缩算法的计算公式进行计算,得到压缩图像,最后,利用libyuv库中的镜像变换算法对压缩图像按照镜像变换算法的计算公式进行计算,得到YUV数据的变换图像。值得说明是,可以直接对一幅旋转图像或压缩图像进行一次压缩处理,也可以将旋转图像或压缩图像进行划分,对划分后的每组数据进行并行计算。此处不做限制。可以理解地,本实施例中,通过利用libyuv库中的simd指令对待处理图像的各组数据进行变换处理,提高了对待处理图像的YUV数据变换速度。In this embodiment, firstly, through the image rotation algorithm in the libyuv library, each group of data is calculated according to the calculation formula of the image rotation algorithm at the same time, and each group of data after rotation processing is obtained, and a rotated image is formed based on each group of data, and then, Use the image compression algorithm in the libyuv library to calculate the compressed image according to the calculation formula of the image compression algorithm to obtain a compressed image. Finally, use the mirror transformation algorithm in the libyuv library to calculate the compressed image according to the calculation formula of the mirror transformation algorithm to obtain YUV A transformed image of the data. It is worth noting that one compression process can be directly performed on a rotated image or compressed image, or the rotated image or compressed image can be divided, and each group of divided data can be calculated in parallel. There are no restrictions here. It can be understood that in this embodiment, by using the simd command in the libyuv library to perform conversion processing on each group of data of the image to be processed, the YUV data conversion speed of the image to be processed is improved.
在一个实施例中,利用android底层的预设计算引擎对变换图像进行格式转换,得到格式为bitmap的目标图像,包括:利用RenderScript计算引擎中的计算框架对变换图像的YUV数据并行计算,得到bitmap的目标图像。In one embodiment, using the preset computing engine at the bottom of android to convert the format of the transformed image to obtain a target image in the bitmap format includes: using the computing framework in the RenderScript computing engine to perform parallel computing on the YUV data of the transformed image to obtain the bitmap target image.
其中,RenderScript计算引擎是Android自带一个高效的计算框架,能够自动利用CPU、GPU、DSP来做并行计算,能在处理图片、数学模型计算等场景提供高效的计算能力。语法类似C/C++,但它是在运行时编译,是跨平台的,用于运行计算密集任务的框架。本实施例中通过RenderScript计算引擎中的计算框架对变换图像的YUV数据并行计算,充分利用了RenderScript计算引擎的高性能计算能力,实现了对变换图像进行格式变换的加速处理。Among them, the RenderScript computing engine is an efficient computing framework that comes with Android, which can automatically use CPU, GPU, and DSP for parallel computing, and can provide efficient computing capabilities in scenarios such as image processing and mathematical model calculations. The syntax is similar to C/C++, but it is compiled at runtime and is a cross-platform framework for running computationally intensive tasks. In this embodiment, the YUV data of the converted image is calculated in parallel by the calculation framework in the RenderScript calculation engine, making full use of the high-performance computing capability of the RenderScript calculation engine, and realizing accelerated processing of format conversion for the converted image.
在一个实施例中,利用RenderScript计算引擎中的计算框架对变换图像的YUV数据并行计算,得到bitmap的目标图像,包括:将变换图像的YUV数据划分为多组矩阵;利用RenderScript计算引擎中的计算框架对各组矩阵进行并行计算,得到bitmap的目标图像。In one embodiment, the calculation framework in the RenderScript calculation engine is used to calculate the YUV data of the converted image in parallel to obtain the target image of the bitmap, including: dividing the YUV data of the converted image into multiple groups of matrices; using the calculation in the RenderScript calculation engine The framework performs parallel calculations on each group of matrices to obtain the target image of the bitmap.
在这个实施例中,将变换图像的YUV数据划分为多组矩阵,即将变换图像对应的YUV数据形成的矩阵划分为多组矩阵,利用RenderScript计算引擎中的计算框架对各组矩阵进行并行计算,得到bitmap的目标图像。利用RenderScript计算引擎的并行计算的的高性能提高了对变换图像的格式变换处理的速度。In this embodiment, the YUV data of the converted image is divided into multiple groups of matrices, that is, the matrix formed by the YUV data corresponding to the converted image is divided into multiple groups of matrices, and the calculation framework in the RenderScript calculation engine is used to perform parallel calculations on each group of matrices. Get the target image of the bitmap. Utilizing the high performance of the parallel computing of the RenderScript computing engine improves the speed of the format conversion processing of the transformed image.
在一个实施例中,利用RenderScript计算引擎中的计算框架对各组矩阵进行并行计算,得到bitmap的目标图像,包括:获取每组矩阵中的亮度值、色彩值及饱和度值;利用计算框架,基于浮点矩阵乘法公式并行计算各组矩阵的红色通道值、绿色通道值及蓝色通道值;根据各组矩阵的红色通道值、绿色通道值及蓝色通道值生成目标图像。In one embodiment, the calculation framework in the RenderScript calculation engine is used to perform parallel calculations on each group of matrices to obtain the target image of the bitmap, including: obtaining the brightness value, color value and saturation value in each group of matrices; using the calculation framework, Based on the floating-point matrix multiplication formula, the red channel value, green channel value and blue channel value of each group of matrices are calculated in parallel; the target image is generated according to the red channel value, green channel value and blue channel value of each group of matrices.
其中,浮点矩阵乘法公式如下:Among them, the floating-point matrix multiplication formula is as follows:
Figure PCTCN2021103831-appb-000001
Figure PCTCN2021103831-appb-000001
公式中,Y表示亮度值、U表示色彩值、V表示饱和度值、R表示红色通道值、G表示绿色通道值、B表示蓝色通道值。具体地,根据每组矩阵获取对应的的亮度值、色彩值及饱和度值;利用计算框架,采用上述浮点矩阵乘法公式并行计算各组矩阵的红色通道值、绿色通道值及蓝色通道值;根据计算的带各组矩阵的红色通道值、绿色通道值及蓝色通道值生成目标图像,从而得到RGB图像,也即格式为bitmap的目标图像。可以理解地,本实施例中,利用浮点矩阵乘法公式实现了对变换图像的各组矩阵的并行转换,将YUV格式的变换图像快速转换为RGB数据图像,提高了对图像预处理的响应速度,从而解决了用户浏览图像存在的耗时长的问题,提高了用户的体验度。In the formula, Y represents the brightness value, U represents the color value, V represents the saturation value, R represents the red channel value, G represents the green channel value, and B represents the blue channel value. Specifically, the corresponding brightness value, color value and saturation value are obtained according to each group of matrices; using the calculation framework, the above-mentioned floating-point matrix multiplication formula is used to calculate the red channel value, green channel value and blue channel value of each group of matrices in parallel ;Generate the target image according to the calculated red channel value, green channel value and blue channel value with each group of matrices, so as to obtain the RGB image, that is, the target image in bitmap format. It can be understood that in this embodiment, the parallel conversion of each group of matrices of the transformed image is realized by using the floating-point matrix multiplication formula, and the transformed image in the YUV format is quickly converted into an RGB data image, which improves the response speed of the image preprocessing , so as to solve the problem that the user browses images for a long time, and improve the user experience.
在一个实施例中,在利用android底层的预设计算引擎对变换图像进行格式转换,得到格式为bitmap的目标图像之后,还包括:对目标图像进行视频图像压缩编码,得到压缩码流,用于网络传输。In one embodiment, after using the preset computing engine at the bottom of android to convert the format of the converted image to obtain the target image in bitmap format, it also includes: performing video image compression encoding on the target image to obtain a compressed code stream for use in network transmission.
在这个实施例中,为了方便进行存储或通过网络传输目标图像,可以对目标图像进行视频图像压缩编码,得到压缩码流,以提高对目标图像的处理速度,进一步提升用户体验,In this embodiment, in order to store or transmit the target image conveniently, the target image can be compressed and coded to obtain a compressed code stream, so as to improve the processing speed of the target image and further improve the user experience.
如图4所示,在一个实施例中,提出了一种图像预处理装置,所述装置包括:As shown in Figure 4, in one embodiment, an image preprocessing device is proposed, the device includes:
获取模块402,用于获取待处理图像,所述待处理图像的格式为YUV数据;An acquisition module 402, configured to acquire an image to be processed, the format of the image to be processed is YUV data;
变换模块404,用于利用libyuv库对所述待处理图像进行变换处理,得到格式为YUV数据的变换图像;The transformation module 404 is used to transform the image to be processed by using the libyuv library to obtain a transformed image whose format is YUV data;
转换模块406,用于利用android底层的预设计算引擎对所述变换图像进行格式转换,得到格式为bitmap的目标图像。The conversion module 406 is configured to convert the format of the converted image by using the preset calculation engine at the bottom of the android to obtain a target image in bitmap format.
在一个实施例中,变换模块包括:In one embodiment, the transformation module includes:
分块单元,用于将所述待处理图像的YUV数据划分为多组数据;A blocking unit, configured to divide the YUV data of the image to be processed into multiple groups of data;
变换单元,用于利用所述libyuv库中的simd指令对各组数据并行变换处理,得到所述变换图像。The transformation unit is used to use the simd instruction in the libyuv library to perform parallel transformation processing on each group of data to obtain the transformed image.
在一个实施例中,变换单元包括:In one embodiment, the transformation unit includes:
旋转子单元,用于利用所述libyuv库中的图像旋转算法对所述各组数据进行并行旋转处理,得到旋转图像;The rotation subunit is used to use the image rotation algorithm in the libyuv library to perform parallel rotation processing on each set of data to obtain a rotated image;
压缩子单元,用于利用所述libyuv库中的图像压缩算法对所述旋转图像进行压缩处理,得到压缩图像;A compression subunit, configured to use the image compression algorithm in the libyuv library to compress the rotated image to obtain a compressed image;
镜像子单元,用于利用所述libyuv库中的镜像变换算法对所述压缩图像进行镜像变换,生成格式为YUV数据的所述变换图像。The mirroring subunit is configured to use the mirroring transformation algorithm in the libyuv library to perform mirroring transformation on the compressed image to generate the transformed image in the form of YUV data.
在一个实施例中,转换模块包括:转换子模块,用于利用RenderScript计算引擎中的计算框架对所述变换图像的YUV数据并行计算,得到所述bitmap的目标图像。In one embodiment, the conversion module includes: a conversion sub-module, configured to use the calculation framework in the RenderScript calculation engine to perform parallel calculations on the YUV data of the transformed image to obtain the target image of the bitmap.
在一个实施例中,转换子模块包括:In one embodiment, the conversion sub-module includes:
划分单元,用于将所述变换图像的YUV数据划分为多组矩阵;A division unit, configured to divide the YUV data of the transformed image into multiple groups of matrices;
计算单元,用于利用所述RenderScript计算引擎中的计算框架对各组所述矩阵进行并行计算,得到所述bitmap的目标图像。A calculation unit, configured to use the calculation framework in the RenderScript calculation engine to perform parallel calculations on each group of the matrices to obtain the target image of the bitmap.
在一个实施例中,计算单元包括:In one embodiment, the computing unit includes:
获取子单元,用于获取每组矩阵中的亮度值、色彩值及饱和度值;Obtaining subunits, used to obtain brightness values, color values and saturation values in each group of matrices;
计算子单元,用于利用所述计算框架,基于浮点矩阵乘法公式并行计算各 组矩阵的红色通道值、绿色通道值及蓝色通道值;Calculation subunit, for utilizing described calculation framework, calculate the red channel value, green channel value and blue channel value of each group matrix in parallel based on floating-point matrix multiplication formula;
声场子单元,用于根据各组矩阵的红色通道值、绿色通道值及蓝色通道值生成所述目标图像。The sound field subunit is configured to generate the target image according to the red channel value, the green channel value and the blue channel value of each matrix.
在一个实施例中,图像预处理装置还包括:压缩编码模块,用于对所述目标图像进行视频图像压缩编码,得到压缩码流,用于网络传输。In one embodiment, the image preprocessing device further includes: a compression encoding module, configured to perform video image compression encoding on the target image to obtain a compressed code stream for network transmission.
图5示出了一个实施例中计算机设备的内部结构图。该计算机设备具体可以是服务器,所述服务器包括但不限于高性能计算机和高性能计算机集群。如图5所示,该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,存储器包括非易失性存储介质和内存储器。该计算机设备的非易失性存储介质存储有操作系统,还可存储有计算机可读指令,该计算机可读指令被处理器执行时,可使得处理器实现图像预处理方法。该内存储器中也可储存有计算机可读指令,该计算机可读指令被处理器执行时,可使得处理器执行图像预处理方法。本领域技术人员可以理解,图5中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Figure 5 shows a diagram of the internal structure of a computer device in one embodiment. Specifically, the computer device may be a server, and the server includes but is not limited to a high-performance computer and a cluster of high-performance computers. As shown in FIG. 5, the computer device includes a processor, a memory, and a network interface connected through a system bus. Wherein, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system, and may also store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor may implement the image preprocessing method. Computer-readable instructions may also be stored in the internal memory, and when the computer-readable instructions are executed by the processor, the processor may execute the image preprocessing method. Those skilled in the art can understand that the structure shown in Figure 5 is only a block diagram of a part of the structure related to the solution of this application, and does not constitute a limitation to the computer equipment on which the solution of this application is applied. The specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
在一个实施例中,本申请提供的图像预处理方法可以实现为一种计算机可读指令的形式,计算机可读指令可在如图5所示的计算机设备上运行。计算机设备的存储器中可存储组成图像预处理装置的各个程序模板。比如,获取模块402,变换模块404,转换模块406。In one embodiment, the image preprocessing method provided in the present application can be implemented in the form of a computer-readable instruction, and the computer-readable instruction can be run on a computer device as shown in FIG. 5 . Each program template constituting the image preprocessing device can be stored in the memory of the computer equipment. For example, an acquisition module 402 , a transformation module 404 , and a conversion module 406 .
一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:获取待处理图像,所述待处理图像的格式为YUV数据;利用libyuv库对所述待处理图像进行变换处理,得到格式为YUV数据的变换图像;利用android底层的预设计算引擎对所述变换图像进行格式转换,得到格式为bitmap的目标图像。A computer device, comprising a memory, a processor, and computer-readable instructions stored in the memory and operable on the processor, when the processor executes the computer-readable instructions, the following steps are implemented: obtaining the Image processing, the format of the image to be processed is YUV data; the libyuv library is used to transform the image to be processed to obtain a transformed image with a format of YUV data; the transformed image is processed using the preset calculation engine at the bottom of android Format conversion to get the target image in bitmap format.
在一个实施例中,所述利用libyuv库对所述待处理图像进行变换处理,得到格式为YUV数据的变换图像,包括:将所述待处理图像的YUV数据划分为多组数据;利用所述libyuv库中的simd指令对各组数据并行变换处理,得到所述变换图像。In one embodiment, the converting the image to be processed by using the libyuv library to obtain the converted image in the form of YUV data includes: dividing the YUV data of the image to be processed into multiple groups of data; using the The simd command in the libyuv library transforms each group of data in parallel to obtain the transformed image.
在一个实施例中,所述利用所述libyuv库中的simd指令对各组数据并行变换处理,得到所述变换图像,包括:利用所述libyuv库中的图像旋转算法对所述各组数据进行并行旋转处理,得到旋转图像;利用所述libyuv库中的图像压缩算法对所述旋转图像进行压缩处理,得到压缩图像;利用所述libyuv库中的镜像变换算法对所述压缩图像进行镜像变换,生成格式为YUV数据的所述变换图像。In one embodiment, the parallel transformation processing of each group of data by using the simd instruction in the libyuv library to obtain the transformed image includes: using the image rotation algorithm in the libyuv library to perform the transformation on each group of data Parallel rotation processing to obtain a rotated image; Utilize the image compression algorithm in the libyuv library to compress the rotated image to obtain a compressed image; Utilize the mirror image transformation algorithm in the libyuv library to perform mirror transformation on the compressed image, The transformed image is generated as YUV data.
在一个实施例中,所述利用android底层的预设计算引擎对所述变换图像进行格式转换,得到格式为bitmap的目标图像,包括:利用RenderScript计算引擎中的计算框架对所述变换图像的YUV数据并行计算,得到所述bitmap的目标图像。In one embodiment, the format conversion of the converted image by using the preset calculation engine at the bottom of android to obtain the target image in bitmap format includes: using the calculation framework in the RenderScript calculation engine to convert the YUV of the converted image The data is calculated in parallel to obtain the target image of the bitmap.
在一个实施例中,所述利用所述RenderScript计算引擎中的计算框架对所述变换图像的YUV数据并行计算,得到所述bitmap的目标图像,包括:将所述变换图像的YUV数据划分为多组矩阵;利用所述RenderScript计算引擎中的计算框架对各组所述矩阵进行并行计算,得到所述bitmap的目标图像。In one embodiment, the parallel computing of the YUV data of the converted image by using the computing framework in the RenderScript computing engine to obtain the target image of the bitmap includes: dividing the YUV data of the transformed image into multiple A group of matrices; using the computing framework in the RenderScript computing engine to perform parallel computing on each group of the matrices to obtain the target image of the bitmap.
在一个实施例中,所述利用所述RenderScript计算引擎中的计算框架对各组所述矩阵进行并行计算,得到所述bitmap的目标图像,包括:获取每组矩阵中的亮度值、色彩值及饱和度值;利用所述计算框架,基于浮点矩阵乘法公式并行计算各组矩阵的红色通道值、绿色通道值及蓝色通道值;根据各组矩阵的红色通道值、绿色通道值及蓝色通道值生成所述目标图像。In one embodiment, the parallel calculation of each set of matrices by using the calculation framework in the RenderScript calculation engine to obtain the target image of the bitmap includes: obtaining the brightness value, color value and Saturation value; using the calculation framework, calculate the red channel value, green channel value and blue channel value of each group of matrices in parallel based on the floating-point matrix multiplication formula; according to the red channel value, green channel value and blue channel value of each group of matrices channel values to generate the target image.
在一个实施例中,在所述利用android底层的预设计算引擎对所述变换图像进行格式转换,得到格式为bitmap的目标图像之后,还包括:对所述目标图像进行视频图像压缩编码,得到压缩码流,用于网络传输。In one embodiment, after converting the format of the converted image using the preset calculation engine at the bottom of android to obtain the target image in bitmap format, it further includes: performing video image compression encoding on the target image to obtain Compressed code stream for network transmission.
一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如下步骤:获取待处理图像,所述待处理图像的格式为YUV数据;利用libyuv库对所述待处理图像进行变换处理,得到格式为YUV数据的变换图像;利用android底层的预设计算引擎对所述变换图像进行格式转换,得到格式为bitmap的目标图像。A computer-readable storage medium, the computer-readable storage medium stores computer-readable instructions, and is characterized in that, when the computer-readable instructions are executed by a processor, the following steps are implemented: acquiring an image to be processed, the image to be processed The format of the image is YUV data; utilize the libyuv library to transform the image to be processed, and obtain a transformed image whose format is YUV data; utilize the preset calculation engine at the bottom of android to perform format conversion on the transformed image, and obtain a format of bitmap target image.
在一个实施例中,所述利用libyuv库对所述待处理图像进行变换处理,得到格式为YUV数据的变换图像,包括:将所述待处理图像的YUV数据划分为多组数据;利用所述libyuv库中的simd指令对各组数据并行变换处理,得到所述变换图像。In one embodiment, the converting the image to be processed by using the libyuv library to obtain the converted image in the form of YUV data includes: dividing the YUV data of the image to be processed into multiple groups of data; using the The simd command in the libyuv library transforms each group of data in parallel to obtain the transformed image.
在一个实施例中,所述利用所述libyuv库中的simd指令对各组数据并行变换处理,得到所述变换图像,包括:利用所述libyuv库中的图像旋转算法对所述各组数据进行并行旋转处理,得到旋转图像;利用所述libyuv库中的图像压缩算法对所述旋转图像进行压缩处理,得到压缩图像;利用所述libyuv库中的镜像变换算法对所述压缩图像进行镜像变换,生成格式为YUV数据的所述变换图像。In one embodiment, the parallel transformation processing of each group of data by using the simd instruction in the libyuv library to obtain the transformed image includes: using the image rotation algorithm in the libyuv library to perform the transformation on each group of data Parallel rotation processing to obtain a rotated image; Utilize the image compression algorithm in the libyuv library to compress the rotated image to obtain a compressed image; Utilize the mirror image transformation algorithm in the libyuv library to perform mirror transformation on the compressed image, The transformed image is generated as YUV data.
在一个实施例中,所述利用android底层的预设计算引擎对所述变换图像进行格式转换,得到格式为bitmap的目标图像,包括:利用RenderScript计算引擎中的计算框架对所述变换图像的YUV数据并行计算,得到所述bitmap的目标图像。In one embodiment, the format conversion of the converted image by using the preset calculation engine at the bottom of android to obtain the target image in bitmap format includes: using the calculation framework in the RenderScript calculation engine to convert the YUV of the converted image The data is calculated in parallel to obtain the target image of the bitmap.
在一个实施例中,所述利用所述RenderScript计算引擎中的计算框架对所述变换图像的YUV数据并行计算,得到所述bitmap的目标图像,包括:将所述变换图像的YUV数据划分为多组矩阵;利用所述RenderScript计算引擎中的计算框架对各组所述矩阵进行并行计算,得到所述bitmap的目标图像。In one embodiment, the parallel computing of the YUV data of the converted image by using the computing framework in the RenderScript computing engine to obtain the target image of the bitmap includes: dividing the YUV data of the transformed image into multiple A group of matrices; using the computing framework in the RenderScript computing engine to perform parallel computing on each group of the matrices to obtain the target image of the bitmap.
在一个实施例中,所述利用所述RenderScript计算引擎中的计算框架对各组所述矩阵进行并行计算,得到所述bitmap的目标图像,包括:获取每组矩阵中的亮度值、色彩值及饱和度值;利用所述计算框架,基于浮点矩阵乘法公式并 行计算各组矩阵的红色通道值、绿色通道值及蓝色通道值;根据各组矩阵的红色通道值、绿色通道值及蓝色通道值生成所述目标图像。In one embodiment, the parallel calculation of each set of matrices by using the calculation framework in the RenderScript calculation engine to obtain the target image of the bitmap includes: obtaining the brightness value, color value and Saturation value; using the calculation framework, calculate the red channel value, green channel value and blue channel value of each group of matrices in parallel based on the floating-point matrix multiplication formula; according to the red channel value, green channel value and blue channel value of each group of matrices channel values to generate the target image.
在一个实施例中,在所述利用android底层的预设计算引擎对所述变换图像进行格式转换,得到格式为bitmap的目标图像之后,还包括:对所述目标图像进行视频图像压缩编码,得到压缩码流,用于网络传输。In one embodiment, after converting the format of the converted image using the preset calculation engine at the bottom of android to obtain the target image in bitmap format, it further includes: performing video image compression encoding on the target image to obtain Compressed code stream for network transmission.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer-readable instructions to instruct related hardware, and the program can be stored in a non-volatile computer-readable In the storage medium, when the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any references to memory, storage, database or other media used in the various embodiments provided in the present application may include non-volatile and/or volatile memory. Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

Claims (10)

  1. 一种图像预处理方法,其特征在于,所述方法包括:An image preprocessing method, characterized in that the method comprises:
    获取待处理图像,所述待处理图像的格式为YUV数据;Obtain the image to be processed, the format of the image to be processed is YUV data;
    利用libyuv库对所述待处理图像进行变换处理,得到格式为YUV数据的变换图像;Utilize libyuv storehouse to carry out transformation processing to described image to be processed, obtain the transformed image that format is YUV data;
    利用android底层的预设计算引擎对所述变换图像进行格式转换,得到格式为bitmap的目标图像。Using the preset calculation engine at the bottom of the android to perform format conversion on the transformed image to obtain a target image in bitmap format.
  2. 根据权利要求1所述的图像预处理方法,其特征在于,所述利用libyuv库对所述待处理图像进行变换处理,得到格式为YUV数据的变换图像,包括:The image preprocessing method according to claim 1, wherein said utilizing the libyuv library to transform the image to be processed to obtain a transformed image whose format is YUV data comprises:
    将所述待处理图像的YUV数据划分为多组数据;Divide the YUV data of the image to be processed into multiple groups of data;
    利用所述libyuv库中的simd指令对各组数据并行变换处理,得到所述变换图像。Using the simd command in the libyuv library to perform parallel transformation processing on each group of data to obtain the transformed image.
  3. 根据权利要求1所述的图像预处理方法,其特征在于,所述利用所述libyuv库中的simd指令对各组数据并行变换处理,得到所述变换图像,包括:The image preprocessing method according to claim 1, wherein said utilizing the simd instruction in the libyuv storehouse to perform parallel transformation processing on each group of data to obtain the transformed image comprises:
    利用所述libyuv库中的图像旋转算法对所述各组数据进行并行旋转处理,得到旋转图像;Utilize the image rotation algorithm in the libyuv storehouse to carry out parallel rotation processing to each group of data to obtain a rotated image;
    利用所述libyuv库中的图像压缩算法对所述旋转图像进行压缩处理,得到压缩图像;Using the image compression algorithm in the libyuv library to compress the rotated image to obtain a compressed image;
    利用所述libyuv库中的镜像变换算法对所述压缩图像进行镜像变换,生成格式为YUV数据的所述变换图像。Using the mirror transformation algorithm in the libyuv library to perform mirror transformation on the compressed image to generate the transformed image in the form of YUV data.
  4. 根据权利要求1所述的图像预处理方法,其特征在于,所述利用android底层的预设计算引擎对所述变换图像进行格式转换,得到格式为bitmap的目标图像,包括:The image preprocessing method according to claim 1, wherein the format conversion of the transformed image is carried out by using the preset computing engine at the bottom of android to obtain a target image whose format is a bitmap, including:
    利用RenderScript计算引擎中的计算框架对所述变换图像的YUV数据并行计算,得到所述bitmap的目标图像。The YUV data of the transformed image is calculated in parallel by using the calculation framework in the RenderScript calculation engine to obtain the target image of the bitmap.
  5. 根据权利要求4所述的图像预处理方法,其特征在于,所述利用所述RenderScript计算引擎中的计算框架对所述变换图像的YUV数据并行计算,得到所述bitmap的目标图像,包括:The image preprocessing method according to claim 4, wherein the parallel calculation of the YUV data of the converted image by using the calculation framework in the RenderScript calculation engine to obtain the target image of the bitmap includes:
    将所述变换图像的YUV数据划分为多组矩阵;Dividing the YUV data of the transformed image into multiple groups of matrices;
    利用所述RenderScript计算引擎中的计算框架对各组所述矩阵进行并行计算,得到所述bitmap的目标图像。Using the calculation framework in the RenderScript calculation engine to perform parallel calculations on each group of the matrices to obtain the target image of the bitmap.
  6. 根据权利要求5所述的图像预处理方法,其特征在于,所述利用所述RenderScript计算引擎中的计算框架对各组所述矩阵进行并行计算,得到所述bitmap的目标图像,包括:The image preprocessing method according to claim 5, wherein said utilizing the computing framework in said RenderScript computing engine to perform parallel computing on each group of said matrices to obtain the target image of said bitmap, comprising:
    获取每组矩阵中的亮度值、色彩值及饱和度值;Obtain the brightness value, color value and saturation value in each group of matrices;
    利用所述计算框架,基于浮点矩阵乘法公式并行计算各组矩阵的红色通道值、绿色通道值及蓝色通道值;Using the calculation framework, the red channel value, the green channel value and the blue channel value of each group of matrices are calculated in parallel based on the floating-point matrix multiplication formula;
    根据各组矩阵的红色通道值、绿色通道值及蓝色通道值生成所述目标图像。The target image is generated according to the red channel value, the green channel value and the blue channel value of each group of matrices.
  7. 根据权利要求1所述的图像预处理方法,其特征在于,在所述利用android底层的预设计算引擎对所述变换图像进行格式转换,得到格式为bitmap的目标图像之后,还包括:The image preprocessing method according to claim 1, wherein, after said utilizing the preset calculation engine at the android bottom layer to perform format conversion on said transformed image, after obtaining the target image whose format is a bitmap, it also includes:
    对所述目标图像进行视频图像压缩编码,得到压缩码流,用于网络传输。Perform video image compression encoding on the target image to obtain a compressed code stream for network transmission.
  8. 一种图像预处理装置,其特征在于,所述图像预处理装置包括:An image preprocessing device, characterized in that the image preprocessing device includes:
    获取模块,用于获取待处理图像,所述待处理图像的格式为YUV数据;An acquisition module, configured to acquire an image to be processed, the format of the image to be processed is YUV data;
    变换模块,用于利用libyuv库对所述待处理图像进行变换处理,得到格式为YUV数据的变换图像;Transformation module, for utilizing libyuv storehouse to carry out transformation processing to described image to be processed, obtains the transformed image that format is YUV data;
    转换模块,用于利用android底层的预设计算引擎对所述变换图像进行格式转换,得到格式为bitmap的目标图像。The conversion module is used to convert the format of the converted image by using the preset calculation engine at the bottom of android to obtain the target image in bitmap format.
  9. 一种计算机设备,其特征在于,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器 执行所述计算机可读指令时实现如权利要求1至7任一项所述图像预处理方法的步骤。A computer device, characterized in that it includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor executes the computer-readable The steps of the image preprocessing method described in any one of claims 1 to 7 are implemented when the instructions are given.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如权利要求1至7任一项所述图像预处理方法的步骤。A computer-readable storage medium, the computer-readable storage medium stores computer-readable instructions, characterized in that, when the computer-readable instructions are executed by a processor, the image described in any one of claims 1 to 7 is realized The steps of the preprocessing method.
PCT/CN2021/103831 2021-06-30 2021-06-30 Image preprocessing method and apparatus, computer device, and storage medium WO2023272652A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/103831 WO2023272652A1 (en) 2021-06-30 2021-06-30 Image preprocessing method and apparatus, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/103831 WO2023272652A1 (en) 2021-06-30 2021-06-30 Image preprocessing method and apparatus, computer device, and storage medium

Publications (1)

Publication Number Publication Date
WO2023272652A1 true WO2023272652A1 (en) 2023-01-05

Family

ID=84689868

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/103831 WO2023272652A1 (en) 2021-06-30 2021-06-30 Image preprocessing method and apparatus, computer device, and storage medium

Country Status (1)

Country Link
WO (1) WO2023272652A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109801412A (en) * 2018-12-27 2019-05-24 深圳云天励飞技术有限公司 Gate inhibition's unlocking method and relevant apparatus
CN110012336A (en) * 2019-03-12 2019-07-12 广州虎牙信息科技有限公司 Picture configuration method, terminal and the device at interface is broadcast live
CN110662082A (en) * 2019-09-30 2020-01-07 北京达佳互联信息技术有限公司 Data processing method, device, system, mobile terminal and storage medium
CN112631698A (en) * 2020-12-18 2021-04-09 平安普惠企业管理有限公司 Data display method and device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109801412A (en) * 2018-12-27 2019-05-24 深圳云天励飞技术有限公司 Gate inhibition's unlocking method and relevant apparatus
CN110012336A (en) * 2019-03-12 2019-07-12 广州虎牙信息科技有限公司 Picture configuration method, terminal and the device at interface is broadcast live
CN110662082A (en) * 2019-09-30 2020-01-07 北京达佳互联信息技术有限公司 Data processing method, device, system, mobile terminal and storage medium
CN112631698A (en) * 2020-12-18 2021-04-09 平安普惠企业管理有限公司 Data display method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US20200320369A1 (en) Image recognition method, apparatus, electronic device and storage medium
CN113034358B (en) Super-resolution image processing method and related device
WO2020177701A1 (en) Image processing method and apparatus, and computer device and storage medium
CN109522902B (en) Extraction of space-time feature representations
CN110648284B (en) Image processing method and device with uneven illumination
US20210203992A1 (en) Data preprocessing and data augmentation in frequency domain
WO2020062191A1 (en) Image processing method, apparatus and device
CN107808394B (en) Image processing method based on convolutional neural network and mobile terminal
CN113421189A (en) Image super-resolution processing method and device and electronic equipment
WO2022194079A1 (en) Sky region segmentation method and apparatus, computer device, and storage medium
WO2023010750A1 (en) Image color mapping method and apparatus, electronic device, and storage medium
CN110889799B (en) Method, apparatus and processor for generating higher resolution frames
US20240202886A1 (en) Video processing method and apparatus, device, storage medium, and program product
CN113449721A (en) Image preprocessing method and device, computer equipment and storage medium
WO2023272652A1 (en) Image preprocessing method and apparatus, computer device, and storage medium
US11403782B2 (en) Static channel filtering in frequency domain
CN107920252B (en) Panoramic video data processing method, device and system
US20230140865A1 (en) Image processing method and image processing apparatus
CN115205168A (en) Image processing method, device, electronic equipment, storage medium and product
CN115035150A (en) Video data processing method and device
CN110428453B (en) Data processing method, data processing device, data processing equipment and storage medium
CN113674169A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN109919846B (en) Image enhancement method and device and computing equipment
CN112132877A (en) Image registration improvement algorithm based on SIFT (scale invariant feature transform) features
WO2021159414A1 (en) White balance control method and apparatus, electronic device and computer-readable storage medium

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21947605

Country of ref document: EP

Kind code of ref document: A1