Giter VIP home page Giter VIP logo

treescore's Introduction

treescore

Score a Christmas Tree based on uniformity of lights, shape of tree, and colors used.

Writeup with pretty pictures can be see at http://christianreimer.github.io/treescore/

Simple Example

>>> import treescore
>>> fname = 'path/to/image/of/tree.png'
>>> picker = treescore.RegressionColorPicker.from_file('model.data')
>>> scores, images, composite = treescore.judge.score(fname, picker, images=True)
>>> print(scores)
Scores(overall=65, led=85, shape=97, color=12, area=0.290468)
>>> treescore.judge.utils.display_img(composite)
>>>

This should display an image such as the following (depending on your tree of course) original image

Installation

OpenCV (http://opencv.org/) is used and you will need to install it. This will probably be the biggest challenge you will encounter. You can follow the instructions for python3 and OpenCV version 3 over at http://www.pyimagesearch.com/opencv-tutorials-resources-guides

Once you have OpenCV and the python bindings installed, the rest should be as easy as

$ mkvirtualenv treescore
$ git clone https://github.com/christianreimer/treescore.git
$ cd treescore
$ pip install -r requirements.txt
$ ./judge --help
$

Todo

There is still a lot of work to do to accurately detect colors and hence mask out the tree itself.

treescore's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

treescore's Issues

Clean up requirements.txt

There are a number of items in requirements.txt that are not needed for the project to run, e.g. ipython.

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.