Video edge detection acceleration core system

By designing a video edge detection acceleration core system and using multi-frame pipeline computing and parallel processing technology, the problem of slow edge detection in high-resolution and high-refresh rate video streams is solved and real-time edge detection is achieved.

CN118608550APending Publication Date: 2024-09-06SHANDONG INSPUR SCI RES INST CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410794817.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

When the existing technology processes high-resolution and high-refresh-rate video streams, the edge detection algorithm results in a lack of real-time performance in image data processing and is slow, making it difficult to meet real-time processing requirements.

Method used

A video edge detection acceleration core system is designed, which uses multi-frame pipeline computing and parallel processing to achieve parallel computing and rapid processing of image data through components such as cameras, image data extraction units, DDR storage units, and edge detection acceleration core units.

Benefits of technology

It greatly increases the parallelism of operations, improves the processing speed of video stream data, and realizes real-time edge detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608550A
    Figure CN118608550A
Patent Text Reader

Abstract

The invention relates to the technical field of image processing, and discloses a video edge detection acceleration core system which comprises a camera, an image data extraction unit, an I2C configuration unit, an RGB format conversion unit, an AXIdmawr unit, an AXIinterconnect unit, a DDR controller, a DDR storage unit, an edge detection acceleration core unit, an AXIdmard unit and an HDMI display screen. In the video edge detection acceleration core system disclosed by the invention, when the operator core performs operation, multi-frame pipeline operation is adopted, so that multi-frame image data is subjected to parallel operation, the degree of parallelism of operation is greatly increased, the problem of low operation speed is solved, and the processing speed of video stream data is accelerated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, for example, to a video edge detection acceleration core system. Background Art

[0002] Nowadays, real-time image processing has become a huge challenge due to the use of high-resolution camera sensors that produce high-definition video streams with high resolution and high frame rate. Therefore, processing such huge amounts of data on the processor becomes a huge challenge.

[0003] Edge detection is one of the most important preprocessing methods, which is often used in image perception and analysis to find the boundaries of the region of interest, which plays an important role in many applications such as feature extraction, motion detection, object tracking, etc. Especially with the rise of artificial intelligence, edge detection plays an important role in it. The edge attribute is calculated using the function behavior of the image in the neighborhood of the pixel. The edge detection operator is represented by two masks, each mask corresponding to a certain direction.

[0004] Currently, the Sobel and Prewitt detection algorithms are among the most commonly used algorithms. However, when faced with high-resolution and high-refresh-rate video streams, the matrix operations are relatively slow and the image data is processed in sequence and serially. This may cause the processed image data to lack real-time performance and be slow.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0007] The embodiment of the present disclosure provides a video edge detection acceleration core system, which includes a camera, an image data extraction unit, an I2C configuration unit, an RGB format conversion unit, an AXI_dma_wr unit, an AXI_interconnect unit, a DDR controller, a DDR storage unit, an edge detection acceleration core unit, an AXI_dma_rd unit, and an HDMI display; I2C configuration unit, used to configure the camera parameters so that the camera works in a specific mode; The camera is used to collect video data and transmit it to the image data extraction unit, so that the image data extraction unit will parse and extract the data information transmitted by the camera, extract the valid image data, and transmit the extracted data to the RGB format conversion unit; RGB format conversion unit, used to convert image data into RGB format and send it to AXI_dma_wr unit; After receiving the data, the AXI_dma_wr unit sends the data to the DDR controller through the AXI_interconnect bus. The DDR controller then stores the image data stream in the DDR. When it detects that multiple frames of image data have been stored in the DDR memory, the DDR controller reads the data in the DDR and sends it to the edge detection acceleration core unit through the AXI_interconnect bus for operator calculation. After receiving the image data, the edge detection acceleration core unit first performs an RGB to grayscale image process on the data. After converting the grayscale image, the grayscale image data is sent to the multi-frame line buffer. When there is enough image data in the multi-frame line buffer, a multi-pipeline edge detection operation is performed. After the operation, the operation result is sent to the DDR controller through the AXI_interconnect bus. The DDR controller then stores the calculated data back to the DDR, and then reads the edge detection data from the DDR through the AXI_dma_rd unit and displays it on the HDMI display.

[0008] In some embodiments, the operator core in the edge detection acceleration core unit includes a 3x3 matrix; For each frame of image data, line buffer 1 stores the first line data of the first frame image, line buffer 2 stores the second line data of the first frame image, and line buffer 3 stores the third line data of the first frame image; When the 3 lines of line buffer data are full, edge detection operation is performed by sliding the operator kernel on the 3 lines of the line buffer; After the operation of the current three lines of data is completed, the third line of data in line buffer 3 is written into line buffer 2, the second line of data in line buffer 2 is written into line buffer 1, and the newly entered data is written into line buffer 3, thereby polling all pixel data lines.

[0009] In some embodiments, when frame 1 is performing operator calculation, the line buffer rows of frame 2 are filled in parallel, and the calculation method of the line buffer rows of frame 2 is consistent with that of frame 1.

[0010] In some embodiments, frame 3 is filled while frame 2 is performing an operator operation.

[0011] In some embodiments, the operator operation includes calculating the gradients of the image in the horizontal direction and the vertical direction; Among them, the gradient calculation for the horizontal direction is Gx=X*A, and the gradient calculation for the vertical direction is Gy=Y*A. The final gradient calculation result is approximated as Gxy = |Gx|+|Gy|, where A represents the 3x3 matrix in the line buffer, X is the 3x3 operator kernel matrix for calculating the horizontal gradient, the first row of the matrix represents X0, the second row represents X1, and the third row represents X3; Y is the 3x3 operator kernel matrix for calculating the vertical gradient, the first row of the matrix represents Y0, the second row represents Y1, and the third row represents Y3.

[0012] In some embodiments, when the operator performs calculations, X0 is multiplied by each element corresponding to line buffer 0, and the calculation results are accumulated; X1 is multiplied by each element corresponding to line buffer 1, and the calculation results are accumulated; X2 is multiplied by each element corresponding to line buffer 2, and the calculation results are accumulated; and then the three calculation results are accumulated to obtain Gx.

[0013] In some embodiments, when the operator performs calculations, Y0 is multiplied by each element corresponding to line buffer 0, and the calculation results are accumulated; Y1 is multiplied by each element corresponding to line buffer 1, and the calculation results are accumulated; Y2 is multiplied by each element corresponding to line buffer 2, and the calculation results are accumulated; and then the three calculation results are accumulated to obtain Yx.

[0014] In some embodiments, when the operator performs calculation, the absolute values ​​of Gx and Gy are calculated and accumulated to obtain Gxy; When the value of Gxy is greater than the set threshold, it is identified as an edge The video edge detection acceleration core system provided by the embodiments of the present disclosure can achieve the following technical effects: When performing calculations, the operator core uses multi-frame pipeline calculations, so that multiple frames of image data can be calculated in parallel, which greatly increases the parallelism of the calculations and speeds up the processing of video stream data.

[0015] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein: Figure 1 It is a structural diagram of a video edge detection acceleration core system provided by an embodiment of the present disclosure; Figure 2is a structural schematic diagram of another video edge detection acceleration core system provided by an embodiment of the present disclosure; Figure 3 It is a schematic diagram of a multi-frame line buffer pipeline provided by an embodiment of the present disclosure; Figure 4 It is a schematic diagram of a computation flow provided by an embodiment of the present disclosure; Figure 5 is a diagram of a calculation method of an operation operator provided in an embodiment of the present disclosure; Figure 6 It is a structural diagram of another video edge detection acceleration core system provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0017] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.

[0018] The terms "first", "second", etc. in the embodiments of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0019] Unless otherwise stated, the term "plurality" means two or more.

[0020] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.

[0021] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

[0022] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.

[0023] The video edge detection acceleration core system provided by the embodiments of the present disclosure is described below with reference to the accompanying drawings.

[0024] Figure 1It is a structural diagram of a video edge detection acceleration core system provided by an embodiment of the present disclosure.

[0025] like Figure 1 As shown, the video edge detection acceleration core system provided by the present disclosure includes a camera 101, an image data extraction unit 102, a two-wire serial bus (Inter-Integrated Circuit, I2C) configuration unit 103, a three-primary color (Red Green Blue, RGB) format conversion unit 104, an AXI_dma_wr unit 105, an AXI_interconnect bus 106, a double data rate synchronous dynamic random access memory (Double Data Rate, DDR) controller 107, a DDR storage unit 108, an edge detection acceleration core unit 109, an AXI_dma_rd unit 110, and an HDMI display screen 111; Figure 2 is a schematic diagram of the structure of another video edge detection acceleration core system provided by the embodiment of the present disclosure, combined with Figure 1 and Figure 2 , further describing the above video edge detection acceleration core system; The I2C configuration unit 103 is used to configure the parameters of the camera 101 so that the camera 101 works in a specific mode; The camera 101 is used to collect video data and transmit it to the image data extraction unit 102, so that the image data extraction unit 102 can parse and extract the data information transmitted by the camera 101, extract the valid image data, and transmit the extracted data to the RGB format conversion unit 104; The RGB format conversion unit 104 is used to convert the image data into RGB format and send it to the AXI_dma_wr unit 105; After receiving the data, the AXI_dma_wr unit 105 sends the data to the DDR controller 107 through the AXI_interconnect bus 106. The DDR controller 107 then stores the image data stream in the DDR. When it is detected that multiple frames of image data have been stored in the DDR memory, the data in the DDR is read through the DDR controller 107, and sent to the edge detection acceleration core unit 109 through the AXI_interconnect bus 106 for operator operation, wherein AXI_dma_wr refers to a direct memory access (DMA) write operation based on the bus protocol (Advanced eXtensible Interface, AXI) standard; AXI_interconnect refers to a middleware or interconnection structure that uses the (Advanced eXtensible Interface, AXI) bus protocol to connect different hardware modules or components; After receiving the image data, the edge detection acceleration core unit 109 first performs an RGB to grayscale image process on the data. After the grayscale image is converted, the grayscale image data is sent to the multi-frame line buffer. When there is enough image data in the multi-frame line buffer, a multi-pipeline edge detection operation is performed. After the operation, the operation result is sent to the DDR controller 107 through the AXI_interconnect bus 106. The DDR controller 107 stores the calculated data back to the DDR, and then reads the edge detected data from the DDR through the AXI_dma_rd unit 110 and displays it on the HDMI display 111, wherein AXI_dma_rd refers to a direct memory access (DMA) read operation implemented using the AXI (Advanced eXtensible Interface) bus protocol.

[0026] In some embodiments, the operator core in the edge detection acceleration core unit 109 includes a 3x3 matrix; For each frame of image data, line buffer 1 stores the first line data of the first frame image, line buffer 2 stores the second line data of the first frame image, and line buffer 3 stores the third line data of the first frame image; When the 3 lines of line buffer data are full, edge detection operation is performed by sliding the operator kernel on the 3 lines of the line buffer; After the operation of the current three lines of data is completed, the third line of data in line buffer 3 is written into line buffer 2, the second line of data in line buffer 2 is written into line buffer 1, and the newly entered data is written into line buffer 3, thereby polling all pixel data lines.

[0027] In some embodiments, when frame 1 is performing operator calculation, the line buffer rows of frame 2 are filled in parallel, and the calculation method of the line buffer rows of frame 2 is consistent with that of frame 1.

[0028] In some embodiments, frame 3 is filled while frame 2 is performing an operator operation.

[0029] In some embodiments, the operator operation includes calculating the gradients of the image in the horizontal direction and the vertical direction; Among them, the gradient calculation for the horizontal direction is Gx=X*A, and the gradient calculation for the vertical direction is Gy=Y*A. The final gradient calculation result is approximated as Gxy = |Gx|+|Gy|, where A represents the 3x3 matrix in the line buffer, X is the 3x3 operator kernel matrix for calculating the horizontal gradient, the first row of the matrix represents X0, the second row represents X1, and the third row represents X3; Y is the 3x3 operator kernel matrix for calculating the vertical gradient, the first row of the matrix represents Y0, the second row represents Y1, and the third row represents Y3.

[0030] In some embodiments, when the operator performs calculations, X0 is multiplied by each element corresponding to line buffer 0, and the calculation results are accumulated; X1 is multiplied by each element corresponding to line buffer 1, and the calculation results are accumulated; X2 is multiplied by each element corresponding to line buffer 2, and the calculation results are accumulated; and then the three calculation results are accumulated to obtain Gx.

[0031] In some embodiments, when the operator performs calculations, Y0 is multiplied by each element corresponding to line buffer 0, and the calculation results are accumulated; Y1 is multiplied by each element corresponding to line buffer 1, and the calculation results are accumulated; Y2 is multiplied by each element corresponding to line buffer 2, and the calculation results are accumulated; and then the three calculation results are accumulated to obtain Yx.

[0032] In some embodiments, when the operator performs calculation, the absolute values ​​of Gx and Gy are calculated and accumulated to obtain Gxy; When the value of Gxy is greater than the set threshold, it is identified as an edge.

[0033] Figure 3 is a schematic diagram of a multi-frame line buffer pipeline provided by an embodiment of the present disclosure, Figure 4 is a schematic diagram of a computation flow provided by an embodiment of the present disclosure, Figure 5 It is a diagram of a calculation method of an operation operator provided in an embodiment of the present disclosure.

[0034] based on Figure 3-5 The above-mentioned video edge detection acceleration core system is further described.

[0035] like Figure 3As shown, since the operator kernel is generally a 3x3 matrix, 3 lines of line buffer storage are used for each frame of image data, that is, line buffer 1 stores the first line of data of the first frame of image, line buffer 2 stores the second line of data of the first frame of image, and line buffer 3 stores the third line of data of the first frame of image. When the 3 lines of line buffer data are full, edge detection operation is performed by sliding the operator kernel on the 3 line buffer rows. After the operation of the current 3 lines of data is completed, the 3rd line of data in line buffer 3 is written into line buffer 2, the 2nd line of data in line buffer 2 is written into line buffer 1, and the newly entered data is written into line buffer 3, thereby polling all pixel data rows. In addition, when frame 1 (the first frame of image) is performing operator operation, the line buffer rows of frame 2 (the second frame) can be filled in parallel, and the calculation method of the line buffer rows of frame 2 is the same as that of frame 1. Similarly, when frame 2 is performing operator operation, frame 3 can be filled, and so on. In this way, the use of multi-frame parallel calculation can greatly improve the efficiency of edge detection.

[0036] like Figure 4 As shown in the figure, the operator operation time is twice the frame line buffer filling time, which is divided into three levels of operation pipelines. When the three-level operation pipelines are working, one frame will be filling the line buffer and the other two frames will be operating the operator. In practice, the operator operation speed is much slower than the line filling speed. Therefore, this solution adopts the parallelism of pipeline operation in multiple frames at the same time, which greatly improves the efficiency of edge detection.

[0037] like Figure 5 As shown in the figure, the operation process of the operator is explained. The essence of edge detection is to calculate the gradients of the horizontal and vertical directions of the image. The horizontal gradient is calculated as Gx=X*A, and the vertical gradient is calculated as Gy=Y*A. The final gradient calculation result is approximated as Gxy = |Gx|+|Gy|. Where A represents the 3x3 matrix in the line buffer, X is the 3x3 operator kernel matrix for calculating the horizontal gradient, the first row of the matrix represents X0, the second row represents X1, and the third row represents X3. Y is the 3x3 operator kernel matrix for calculating the vertical gradient, the first row of the matrix represents Y0, the second row represents Y1, and the third row represents Y3. When the operator is operating, X0 is multiplied by each element corresponding to line buffer 0, and the calculation results are accumulated; X1 is multiplied by each element corresponding to line buffer 1, and the calculation results are accumulated; X2 is multiplied by each element corresponding to line buffer 2, and the calculation results are accumulated; and then the three calculation results are accumulated to obtain Gx. Similarly, the calculation method of Gy is the same. After that, the absolute values ​​of Gx and Gy are calculated and accumulated to obtain Gxy. When the value of Gxy is greater than the set threshold, it is identified as an edge.

[0038] In the video edge detection acceleration core system disclosed in the present invention, the operator core adopts multi-frame pipeline operation when performing operations, so that multiple frames of image data are operated in parallel, which greatly increases the parallelism of the operation and speeds up the processing speed of video stream data.

[0039] Combination Figure 6 As shown, the embodiment of the present disclosure provides another video edge detection acceleration core system 600, including a processor 604 and a memory 601. Optionally, the system may also include a communication interface 602 and a bus 603. The processor 604, the communication interface 602, and the memory 601 may communicate with each other through the bus 603. The communication interface 602 may be used for information transmission. The processor 604 may call the logic instructions in the memory 601 to execute the method corresponding to the video edge detection acceleration core system of the above embodiment.

[0040] In addition, the logic instructions in the memory 601 described above can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.

[0041] The memory 601 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 604 executes the function application and data processing by running the program instructions / modules stored in the memory 601, that is, implementing the method corresponding to the video edge detection acceleration core system in the above embodiment.

[0042] The memory 601 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 601 may include a high-speed random access memory and may also include a non-volatile memory.

[0043] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute a method corresponding to a video edge detection acceleration core system.

[0044] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.

[0045] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method of the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, and other media that can store program codes, or a transient storage medium.

[0046] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent possible changes only. Unless explicitly required, individual components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. As used in the description of the embodiments, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or including (comprising) refer to the existence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and / or these groups. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same or similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0047] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. Technicians can clearly understand that for the convenience and simplicity of description, the specific working process of the systems, devices and units described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0048] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.

[0049] The flowchart and block diagram in the accompanying drawings show the possible architecture, functions and operations of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A video edge detection acceleration core system, characterized in that: The system includes a camera, an image data extraction unit, an I2C configuration unit, an RGB format conversion unit, an AXI_dma_wr unit, an AXI_interconnect unit, a DDR controller, a DDR storage unit, an edge detection acceleration core unit, an AXI_dma_rd unit, and an HDMI display; I2C configuration unit, used to configure the camera parameters so that the camera works in a specific mode; The camera is used to collect video data and transmit it to the image data extraction unit, so that the image data extraction unit will parse and extract the data information transmitted by the camera, extract the valid image data, and transmit the extracted data to the RGB format conversion unit; RGB format conversion unit, used to convert image data into RGB format and send it to AXI_dma_wr unit; After receiving the data, the AXI_dma_wr unit sends the data to the DDR controller through the AXI_interconnect bus. The DDR controller then stores the image data stream in the DDR. When it detects that multiple frames of image data have been stored in the DDR memory, the DDR controller reads the data in the DDR and sends it to the edge detection acceleration core unit through the AXI_interconnect bus for operator calculation. After receiving the image data, the edge detection acceleration core unit first performs an RGB to grayscale image process on the data. After converting the grayscale image, the grayscale image data is sent to the multi-frame line buffer. When there is enough image data in the multi-frame line buffer, a multi-pipeline edge detection operation is performed. After the operation, the operation result is sent to the DDR controller through the AXI_interconnect bus. The DDR controller then stores the calculated data back to the DDR, and then reads the edge detection data from the DDR through the AXI_dma_rd unit and displays it on the HDMI display.

2. The system according to claim 1, characterized in that The operator core in the edge detection acceleration core unit includes a 3x3 matrix; For each frame of image data, line buffer 1 stores the first line data of the first frame image, line buffer 2 stores the second line data of the first frame image, and line buffer 3 stores the third line data of the first frame image; When the 3 lines of line buffer data are full, edge detection operation is performed by sliding the operator kernel on the 3 lines of the line buffer; After the operation of the current three lines of data is completed, the third line of data in line buffer 3 is written into line buffer 2, the second line of data in line buffer 2 is written into line buffer 1, and the newly entered data is written into line buffer 3, thereby polling all pixel data lines.

3. The system according to claim 2, characterized in that When frame 1 is performing operator calculations, the line buffer rows of frame 2 are filled in parallel. The calculation method of the line buffer rows of frame 2 is the same as that of frame 1.

4. The system according to claim 3, characterized in that Frame 3 is filled while frame 2 is performing operator operations.

5. The system according to claim 1, characterized in that The operator operation includes calculating the gradients of the image in the horizontal direction and the vertical direction; Among them, the gradient calculation for the horizontal direction is Gx=X*A, and the gradient calculation for the vertical direction is Gy=Y*A. The final gradient calculation result is approximated as Gxy = |Gx|+|Gy|, where A represents the 3x3 matrix in the line buffer, X is the 3x3 operator kernel matrix for calculating the horizontal gradient, the first row of the matrix represents X0, the second row represents X1, and the third row represents X3; Y is the 3x3 operator kernel matrix for calculating the vertical gradient, the first row of the matrix represents Y0, the second row represents Y1, and the third row represents Y3.

6. The system according to claim 5, characterized in that When the operator performs calculations, X0 is multiplied by each element corresponding to line buffer 0, and the calculation results are accumulated; X1 is multiplied by each element corresponding to line buffer 1, and the calculation results are accumulated; X2 is multiplied by each element corresponding to line buffer 2, and the calculation results are accumulated; then the three calculation results are accumulated to obtain Gx.

7. The system according to claim 6, characterized in that When the operator performs calculations, Y0 is multiplied by each element corresponding to line buffer 0, and the calculation results are accumulated; Y1 is multiplied by each element corresponding to line buffer 1, and the calculation results are accumulated; Y2 is multiplied by each element corresponding to line buffer 2, and the calculation results are accumulated; then the three calculation results are accumulated to obtain Yx.

8. The system according to claim 7, characterized in that When the operator is operating, the absolute values ​​of Gx and Gy are calculated and accumulated to obtain Gxy; When the value of Gxy is greater than the set threshold, it is identified as an edge.

Citation Information

Patent Citations

  • Real-time edge detection system based on FPGA

    CN114155222A

  • Blind sidewalk detection method based on hue gradient information and FPGA implementation method thereof

    CN116137032A

  • On-chip camera system for multiple object tracking and identification

    US20090097704A1