Code Monkey home page Code Monkey logo

matthew-william-lock / image-masking-accelerator Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 54.16 MB

This accelerator uses a Nexys A7 100T FPGA to overlay an one image over another using an image mask and performing masking operations, with the results being displayed over VGA. The purpose of this project was to utilize the parallel nature of FPGAs to create a hardware accelerator for image masking applications.

Pascal 0.01% JavaScript 0.08% Shell 0.27% Batchfile 0.01% HTML 0.09% Tcl 0.07% Verilog 1.42% Coq 7.97% VHDL 89.80% Stata 0.03% Forth 0.01% Makefile 0.01% C++ 0.02% Python 0.01% 1C Enterprise 0.01% SystemVerilog 0.25%
fpga image-masking nexys-a7 hardware-acceleration

image-masking-accelerator's Introduction

Image Mask Accelerator

Lock, Matthew (LCKMAT002) | Jaffer, Mahmoodah (JFFMAH001) | Godfrey, Lawrence (GDFLAW001) | Barbas, Luca (BRBLUC001)

readme_images/banner.png

Figure 1 : Illustration of Image Masking

Project Description

This project implements an image masking algorithm on a Nexys A7 100T FPGA. The image masking works by taking two images, and overlaying one image over another according to to the provided image mask. An example of this can be seen in Figure 1. The system is then able to display the result to a screen over a VGA connection. The reason for doing this was to make use of the parallel nature of the FPGA to accelerate the task of image masking, which itself is an embarrasingly parallel task. While speedups over a golden measure were not achieved, parallel approaches are considered and prove to have massive potential in for this application. The full report can be found under:

Image-Masking-Accelerator
|-- final_ima
    |-- IMA_YODA_Final_Report.pdf

Image Requirements

The accelerator requires that any input image or mask must be a 12-bit image with 320x240 resolution. We understand that these images are not readily available, and does not work should the user want to work with their own images. Hence an image converter has been created to handle this for the user. It is suggested that all images are at least the same resoltion so that the downscaling is consistent between images. Furthermore, this has been integrated into the script which uploads images onto the FPGA, but the script can also be accessed manually and converted into a .coe file for initialising BRAM modules. The script can be found in :

Image-Masking-Accelerator
|-- image_converter

A readme is provided on how to use the script

Source Code

The code for the final implementation of the accelerator can be found in :

Image-Masking-Accelerator
|-- final_ima
    |-- hdl

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.