Check patentability & draft patents in minutes with Patsnap Eureka AI!

Hardware implementation method for affine transformation in NV12 format

An affine transformation, hardware implementation technology, applied in the field of artificial intelligence, can solve problems such as affecting efficiency and increasing area, and achieve the effect of increasing hardware area and simplifying the interpolation calculation process

Pending Publication Date: 2022-02-22
合肥君正科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Under the same size, the data volume of the BGRA format is about 2.7 times that of the NV12 format. The increase of the data volume will inevitably lead to the increase of the area and affect the efficiency.

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
  • Hardware implementation method for affine transformation in NV12 format
  • Hardware implementation method for affine transformation in NV12 format
  • Hardware implementation method for affine transformation in NV12 format

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to understand the technical content and advantages of the present invention more clearly, the present invention will be further described in detail in conjunction with the accompanying drawings.

[0044] Such as Figure 6 Shown, the hardware implementation method of the affine transformation of a kind of NV12 format of the present invention, described method comprises the following steps:

[0045] S1, read the NV12 image, the processed source image format is NV12 format, obtain two lines of Y channel information and one line of UV channel image information according to the bus interface protocol;

[0046] S2, input resampling, for the image in NV12 format, the data in NV12 format is resampled, and the data format after resampling is actually YUV444, which is similar to the pixel distribution of BGRA format data;

[0047] S3, obtain the location information of the source image through affine transformation processing, and use the affine transformation matrix to...

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 invention provides a hardware implementation method for affine transformation in an NV12 format. The method comprises the following steps: S1, reading an NV12 image, which is to, according to a bus interface protocol, acquire two rows of Y channel information and one row of UV channel image information; S2, inputting resampling, which is to carry out resampling on the images in the NV12 format, wherein the data format after resampling is actually YUV444, and the distribution is similar to that of data pixel points in a BGRA format; S3, obtaining position information of a source image through affine transformation processing, which is to obtain position information of target pixel points mapped into the source image through an affine transformation matrix; S4, performing interpolation calculation, which is to assume that a target pixel point is (dx, dy) and a source pixel point is (sx, sy), and realize that after re-sampling, for corresponding pixels distribution when interpolation calculation is performed, and for a Y channel, a U channel and a V channel, the information of four positions mapped from the target pixel points to the source image is (sx, sy), (sx + 1, sy), (sx, sy+ 1) and (sx + 1, sy+ 1); S5, performing resampling output on the image, which is to realize that the image output after resampling and interpolation calculation is YUV444, and the data of a UV channel needs to be compressed.

Description

technical field [0001] The invention relates to the technical field of artificial intelligence, in particular to a hardware implementation method of affine transformation in NV12 format. Background technique [0002] In artificial intelligence technology, image recognition technology is a very important one. The process of image recognition can be roughly divided into information acquisition, preprocessing, feature extraction and selection, etc. The stage that this article focuses on is the preprocessing stage. In this stage, operations such as color space conversion, scaling, translation, and rotation are generally performed on the original image. With the continuous development of modern technology, there are many kinds of image storage formats. Currently, the commonly processed formats mainly include BGRA format and NV12 format. For these two formats, in the preprocessing stage, affine transformation is often used to realize image translation, rotation and scaling. Suc...

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 Applications(China)
IPC IPC(8): G06T3/00
CPCG06T3/02
Inventor 呼立展张传兵
Owner 合肥君正科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More