Giter Club home page Giter Club logo

lht_framework's Introduction

A Hough Evaluation Platform with PYNQ and Mathworks' HDL Coder

See the corresponding publication here.

This repository contains a PYNQ (Python Productivity for Zynq) evaluation platform for Field Programmable Gate Array (FPGA) architectures of the Line Hough Transform (LHT). This system is named the Hough Evaluation Platform (HEP). The HEP can calculate the time taken to apply the LHT to an image using a custom FPGA architecture and is capable of inspecting the Hough Parameter Space (HPS) using PYNQ's signal tracing and visualisation capbilities. The HEP can also calculate a new quantitative measurement for analysing the HPS produced from different LHT architectures. This measurement is named the Peak-to-Mean Vote Ratio (PMVR) and is useful for quantifying the ability to reliably extract and separate peaks in the HPS from other neighbouring locations.

The HEP uses a Mathworks' HDL Coder reference design for the rapid prototyping and evaluation of LHT architectures. The reference design currently targets the Xilinx ZCU104 development board. Additional platforms will be supported at a later date. See Quick Start to quickly evaluate the HEP using your own ZCU104 development board. Alternatively, you can learn how to use the HEP reference design.

This repository is compatible with PYNQ Image v2.7 for the ZCU104 development board.

The example notebook can be found here, although, there will be no interactivity as it must be used on the Zynq MPSoC device.

Quick Start

The following steps will open a demonstration notebook for the HEP, which analyses an FPGA architecture that applies the LHT to an image of 1920x1080 pixels.

  • Load an SD Card with an image of PYNQ v2.7 loaded.
  • Launch PYNQ v2.7 on the ZCU104 development board.
  • Ensure that you have access to an internet connection from PYNQ.
  • Open a Jupyter Lab session by navigating to http://<pynq-ip-address>:9090/lab in a standard web browser (preferably Google Chrome).
  • In the Launcher tab, select Terminal to open a new command window.
  • Run the following line of code to download the demonstration notebook.
pip3 install git+https://github.com/dnorthcote/lht_framework.git
  • Once the download is complete, using Jupyter Lab, navigate to hep/default/notebooks and open the Hough Evaluation Platform notebook.
  • You can now run the demonstration.

How to use the HEP Reference Design

Users require MATLAB R2020a and Vivado 2020.1 installed on their system. The ZCU104 development board should also be loaded with an image of PYNQ v2.7. To begin, download the current PYNQ Hough Transform Support Package from the following link: https://github.com/dnorthcote/lht_framework/releases/

Launch MATLAB R2020a and setup the HDL toolpath to Vivado 2020.1. To do this, you will need to run the hdlsetuptoolpath function in the MATLAB command window as below:

hdlsetuptoolpath('ToolName','Xilinx Vivado','ToolPath','<vivado-installation-directory>Xilinx/Vivado/2020.1/bin')

In MATLAB, navigate to the folder where you have downloaded the support package. Double-click the support package to install the HEP reference design and workflow. After installation, navigate to the help documentation for the HEP to open an example design.

lht_framework's People

Contributors

dnorthcote 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.