Giter VIP home page Giter VIP logo

poolcampro's Introduction

Usage

Execute poolcampro.py to start the program execution.

$ src/poolcampro.py -h
usage: poolcampro.py [-h] [-f FILE] [-c] [-v] mode

positional arguments:
  mode                  live|file

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  absolute path to video file to stream from
  -c, --calibrate       start the program for calibration of the table
  -v, --verbose         increase output verbosity

The mode is mandatory and defines whether:

  • To read data from a video file. This requires the -f parameter to specify the location of the video file OR
  • To read data from a videocamara.

Initially, for calibrating the Table boundaries, the program requires to start with the --calibrate option paramter. Press the 'c' button on the keyboard to record the current pocket coordinates, this will be stored under /data/table_calibration and used to crop the table when executing the program without the --calibrate parameter.

Installation

MAC

  1. Install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. Install Python
brew install python
  1. Install OpenCV
brew install opencv
  1. Final setup step
brew info opencv

Instructions will be provided at the bottom of the output with the required changes to be able to import OpenCV into your Python program. In my case, they were the following:

==> Caveats
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
  mkdir -p /Users/egarnelo/Library/Python/2.7/lib/python/site-packages
  echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/egarnelo/Library/Python/2.7/lib/python/site-packages/homebrew.pth

poolcampro's People

Contributors

henrygp avatar

Watchers

James Cloos 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.