Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data processing method and processing circuit

A processing circuit and data processing technology, which is applied in the field of image processing, can solve the problems of increasing CPU processing load and low processing efficiency, and achieve the effects of reducing CPU load, improving processing efficiency, and efficient outer filling operation

Pending Publication Date: 2019-10-08
SZ DJI TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the image processing process, if the above-mentioned outer padding operation is completed by the CPU (Central Processing Unit, central processing unit), the processing burden of the CPU will be greatly increased, and the processing efficiency is very low

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
  • Data processing method and processing circuit
  • Data processing method and processing circuit
  • Data processing method and processing circuit

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] In the embodiment of the present invention, a data processing method is proposed, which is used to realize the function of variable input length alignment output (such as outer padding operation, etc., such as zero padding operation on the edge of the input feature map), see figure 2 Shown is a schematic flow chart of the data processing method, and the method may include the following steps:

[0036] Step 201, acquire first input data and a data length of the first input data. Wherein, the first input data may include but not limited to: image pixel values; and / or outer padding pixel values.

[0037] Step 202, obtain the first numerical value according to the byte offset and the data length, the first numerical value includes N bits, the value of each bit is the first identification (such as 1) or the second identification (such as 0), every Each bit corresponds to a storage queue, that is, there are N storage queues, and each bit corresponds to a storage queue.

[...

Embodiment 2

[0053] In the embodiment of the present invention, a data processing method is proposed, which can be applied to a processing circuit, and is used to realize the function of aligning output with variable input length (such as outer padding operation, etc., such as zero padding operation on the edge of the input feature map), to realize An asymmetric storage queue structure with variable transmission length and strong scalability.

[0054] see image 3 As shown, the processing circuit may include a first shift subcircuit, a storage queue, a byte enable subcircuit, a second shift subcircuit and an offset register. The storage queue may be an asymmetric storage queue, such as a FIFO queue. Among them, the number of storage queues is N, and the output data is aligned according to N bytes, that is, the number of storage queues can be configured according to the number of bytes of output data, and the data bit width of each storage queue is 1 byte. The depth is greater than or equa...

Embodiment 3

[0077] On the basis of Embodiment 2, the above data processing method will be described in detail below in combination with specific application scenarios. In this application scenario, the number N of storage queues is 16 as an example for illustration.

[0078] First, the first input data 0x11 is acquired, and the data length of the first input data is 1, which means that the length of the first input data is 1 byte, that is, 8 bits. The first input data 0x11 can be the image pixel value of the input feature map (that is, the effective value), it can be the outer padding pixel value of the input feature map (such as the padding value 0), and it can also be the image pixel value of the input feature map and the outer padding Pixel value, there is no limit to this.

[0079] Since the data length is 1, the second value is 0000000000000001. If the byte offset currently stored in the offset register is 0, each bit in the second value is rotated to the left by 0 bits to obtain th...

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 discloses a data processing method and a data processing circuit. The method comprises the following steps: acquiring first input data and a data length of the first input data; a firstnumerical value is obtained according to the byte offset and the data length, the first numerical value comprises N bits, and the value of each bit is a first identifier or a second identifier; obtaining second input data according to the byte offset and the first input data; selecting sub-data corresponding to the bit of which the value is the first identifier from the second input data, and storing the selected sub-data into a storage queue corresponding to the bit; and when the data output condition is met, outputting the sub-data stored in the storage queue. By applying the embodiment of the invention, the external filling operation can be completed by the processing circuit, and the external filling operation does not need to be realized by the CPU, so that the burden of the CPU can be reduced, the external filling operation can be carried out more efficiently, and the processing efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of image processing, in particular to a data processing method and a processing circuit. Background technique [0002] In the process of image processing, padding outside the image is usually involved. For example, see Figure 1A As shown, it is a convolution example without padding (filling), the size of the convolution kernel is 3*3, and the stride (stride) is 1, from Figure 1A It can be found that the size of the input feature map is 5*5, and without padding, the size of the output feature map becomes 3*3. In order to obtain an output feature map of the same size as the input feature map, an outer padding operation can also be performed on the input feature map, for example, a zero padding operation is performed on the edge of the input feature map. For example, see Figure 1B As shown, it is a schematic diagram of adding a zero to each edge of the input feature map; see Figure 1C As shown, it is a s...

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
IPC IPC(8): G06T1/60
CPCG06T1/60G06T1/0007
Inventor 赵尧谷骞韩峰
Owner SZ DJI TECH CO LTD
Features
  • Generate Ideas
  • 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