futurice/intro-to-object-detection

Name: intro-to-object-detection

Owner: Futurice

Description: instruction and sample codes to get started with object detection in dlib-python

Created: 2017-08-14 09:01:58.0

Updated: 2018-05-03 19:41:41.0

Pushed: 2017-09-01 08:51:09.0

Homepage: null

Size: 9916

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Introduction to Object Detection

This is a starting template to learn how to build an object detector. We want to detect images of a specific object from digital photographs. In order to achieve this goal, we shall employ the help from opencv3, a computer vision library, for image manipulation, and dlib, a machine learning library.

Notes
Setup environment
  1. Install boost-python
    X
     install boost-python --with-python3
    

Ubuntu

sudo apt-get install libboost-all-dev

reate virtual python environment (optional)

virtualenv .env -p python3.6 source .env/bin/activate

nstall dependencies (`opencv3` and `dlib`)

pip install -r requirements.txt

leanup (optional, in case you want to recreate your python environment)

deactivate rm -rf .env

Challenge instruction
are to build an image object detector (that detects object images in photograph). In order for your detector to work, you need to teach your detector how to recognize a certain object (e.g. a car, a house, a dog, a cat, ...). The steps to teach your detector are as follow:
ind an image source of photographs of your object (Google, Bing, DuckduckGo).
anually label your object in the photographs with `imglab` (provided).
reate an SVM from the labeled data (this is when you start coding).
se the trained SVM as your object detector.

# How to use `imglab`
gister images to label

imglab -c training.xml imglab -c testing.xml

bel images

imglab training.xml


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.