GithubHelp home page GithubHelp logo

johnbensnyder / decision_tree Goto Github PK

View Code? Open in Web Editor NEW

This project forked from putvision/decision_tree

0.0 2.0 0.0 61 KB

Python program for training the decision tree for people detection (based on LBP - Local Binary Patterns) and converting the tree to hardware (FPGA) implementation.

Home Page: http://www.vision.put.poznan.pl/?page_id=237

License: MIT License

Python 20.07% VHDL 79.93%

decision_tree's Introduction

decision_tree

Python program for training the decision tree for people detection (based on LBP - Local Binary Patterns) and converting the tree to hardware (FPGA) implementation.

Acknowledgment

This code is used in the project entitled:

"NEW CONCEPT OF THE NETWORK OF SMART CAMERAS WITH ENHANCED AUTONOMY FOR AUTOMATIC SURVEILLANCE SYSTEM"

More information about the project can be found: http://www.vision.put.poznan.pl/?page_id=237

Description

The code provided allows preparing, training and testing data for decision tree based classifier alongside the ability to convert the created decision tree to hardware implementation (VHDL code for FPGA device). Classifier in current implementation allows detecting human silhouette (based on LBP region descriptors). The INRIA Person Dataset (http://pascal.inrialpes.fr/data/human/) is used as a an image source.

Languages and tools used

The project is written in Python 2.7.10 and uses following libraries (+ all the prequisitions for those):

  • scikit-learn - for decision tree training and testing,
  • scikit-image - for image loading, lbp calculation,
  • numpy - histogram calculation,
  • matplotlib - visualization.

Modules description

  • Tree.py - classes for storing tree structure and convert it to the VHDL code.
  • analyse_classifier.py - functions for extracting decisions from trees created using scikit-learn modules (code adapted from some stackoverflow question).
  • prepare_data.py - code for calcualting LBP region descriptors for images and saving them as prepared data for learning and testing the decision tree.
  • decision_tree.py - main file that loads prepared data, trains the decision tree and tests it.

Running the code

Use prepare_data.py script for preparing the data from the image dataset. Then run decision_tree.py script for learning/testing the decision tree and converting it to VHDL code.

License

MIT

decision_tree's People

Contributors

michal-fularz avatar

Watchers

James Cloos avatar Ben Snyder 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.