Coder Social home page Coder Social logo

zynq_fpga_median_filter's Introduction

Zynq FPGA - Median Filter

Purpose of the project was to connect webcam to ZedBoard, filter received image with simple 3x3 median filter and show results on display.

ZedBoard is a development kit featuring Zynq-7000 All Programmable SoC XC7Z020-CLG484-1. It contains both ARM Cortex-A9 and Artix-7 FPGA inside one chip.
Xillinux is running on ARM which is Linux distribution dedicated for this board. It already has interfaces for communication with FPGA in the form of FIFOs in /dev directory.
FPGA can be easily programmed without knowing VHDL, Verilog or any other HDL. There is a tool called Vivado HLS which transforms program written in C to HDL and later synthesizes it to FPGA configuration.

Median filter is a digital filter often used in digital image processing for noise removal.

Implementation

This implementation uses version of median filter where each of RGB channel is median filtered separately.

For receiving image from webcam and displaying filtered result I used ARM side of Zynq SoC. Camera was connected to the board by USB and display by VGA. Xillinux automatically recognized both devices.
To read frames from webcam I used OpenCV library. Also I used it for splitting images to separate RGB channels before sending them to FPGA and for adding some artificial noise to image because original frames from webcam were too clear to see results of the filter.
Color channels were being sent to FPGA and simultaneously processed ones were being received. Those received channels were being assemblied back to entire frames also with help of OpenCV and finally displayed on the screen.
All of this was done by this program.

On FPGA there was a simple implementation of median filter which receives each row of pixels and using three of them generates row of filtered pixels.

Result

Original (artificially noised) Filtered

zynq_fpga_median_filter's People

Contributors

loruro avatar

Stargazers

 avatar

Watchers

James Cloos avatar Muhammad Majid Altaf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.