Unlock instant, AI-driven research and patent intelligence for your innovation.

A method, device and computer equipment for image generation

A picture generation and picture technology, applied in the field of image processing, can solve the problems of hardware resource consumption and shortened service life.

Active Publication Date: 2020-12-15
WUHAN DOUYU NETWORK TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the problems existing in the prior art, the embodiment of the present invention provides a method, device and computer equipment for image generation, which are used to solve the problem of improving the preview by increasing the frequency of YUV to RGB conversion during the preview process of the camera in the prior art. Speed, leading to serious loss of hardware resources and technical problems that reduce service life

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method, device and computer equipment for image generation
  • A method, device and computer equipment for image generation
  • A method, device and computer equipment for image generation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] This embodiment provides a method for generating pictures, such as figure 1 As shown, the method includes:

[0047] S110, collecting YUV grayscale image data of the picture;

[0048] When a preview is required, the camera application of the terminal device will collect the YUV grayscale image data of the picture based on the preset collection interval. The collection interval is generally set to 16ms, which means that 60 frames of YUV grayscale image data can be collected within 1s. .

[0049] S111, converting the YUV grayscale image data into RGB color image data according to a conversion rule;

[0050] After the YUV grayscale image data is collected, in order to improve the processing speed of the terminal, a geometric correction model is used to perform data correction on the YUV grayscale image data, so as to filter out abnormal YUV grayscale image data.

[0051] Specifically, multiple sets of YUV grayscale image data collected in a preset time period (generally ...

Embodiment 2

[0089] Corresponding to Embodiment 1, this embodiment provides a device for generating pictures, such as figure 2 As shown, the device includes: an acquisition unit 21, a conversion unit 22, a storage unit 23 and a generation unit 24; wherein,

[0090] When a preview is required, the acquisition unit 21 will acquire the YUV grayscale image data of the picture based on a preset acquisition interval, which is generally set at 16ms, which means that 60 frames of YUV grayscale image data can be acquired within 1 second.

[0091] After the YUV grayscale image data is collected, in order to improve the processing speed of the terminal, the correction unit 25 will use a geometric correction model to perform data correction on the YUV grayscale image data, so as to filter out abnormal YUV grayscale image data.

[0092] Specifically, the correction unit 25 acquires multiple sets of YUV grayscale image data collected within a preset time period (generally 1s); then determines the avera...

Embodiment 3

[0129] This embodiment also provides a computer device for generating pictures, such as image 3 As shown, the computer device includes: a radio frequency (Radio Frequency, RF) circuit 310, a memory 320, an input unit 330, a display unit 340, an audio circuit 350, a WiFi module 360, a processor 370, and a power supply 380 and other components. Those skilled in the art can understand that, image 3 The structure of the computer device shown in the computer device does not constitute a limitation to the computer device, and may include more or less components than those shown in the illustration, or combine some components, or arrange different components.

[0130] Combine below image 3 A detailed introduction to each component of computer equipment:

[0131] The RF circuit 310 can be used for receiving and sending signals, especially, after receiving the downlink information of the base station, the processor 370 processes it. Generally, the RF circuit 310 includes, but is ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides an image generation method and apparatus and a computer device. The method comprises: acquiring YUV grayscale image data of an image; converting the YUV grayscale image data into RGB color image data according to a conversion rule; storing the RGB color image data and a corresponding cache tag in a pre-established cache pool; and when an image needs to be previewed for multiple times, searching the cache pool for RGB color image data corresponding to a specified cache tag, and generating an image according to the RGB color image data. In this way, RGB color image data is stored in a pre-established cache pool, and when the image needs to be previewed for multiple times, the RGB color image data can be read from the cache pool according to the specified cache tag each time. Thus, it does not need to convert YUV grayscale image data into RGB color image data each time when previewing an image, thereby reducing the conversion frequency and prolonging the service life of a device.

Description

technical field [0001] The present invention relates to the technical field of image processing, in particular to a method, device and computer equipment for generating pictures. Background technique [0002] During the camera preview process, the grayscale image data in YUV format needs to be converted into bitmap data Bitmap for display by the camera application. However, converting YUV to Bitmap itself is a time-consuming process, and converting YUV to RGB is a floating-point operation, so YUV Converting to RGB consumes a lot. [0003] The frequency of YUV to RGB conversion of camera applications is usually maintained at a minimum of 60 times per second. In order to achieve or exceed this frequency, most camera applications on the market will fully exploit CPU resources in order to achieve fast preview effects and improve user experience. However, this way of relying too much on hardware resources will greatly reduce the lifespan of the hardware, and will inevitably furt...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06T1/20G06T1/60
CPCG06T1/20G06T1/60G06T2200/28
Inventor 尹成陈少杰张文明
Owner WUHAN DOUYU NETWORK TECH CO LTD