Git Product home page Git Product logo

pedestrian_detector's Introduction

Pedestrian detector in thermal vision

Detect pedestrians in infrared by Haar Features Cascades. As a ground truth we use tracking manual marked subjects.

Runing scripts

Dependencies:

pip install opencv-python

All configurable variables contain ./config.py file.

Runing:

py .\run.py

Every time, when:
-new sequence(folder) is loading,
-tracker lost object,
-space key was pressed,
Starts window for select objects for trucking. You need to mark object for frucking using your mouse, then press space, to confirm selection. After that you can select another object (pressing space one more time), or configm all selected objects by pressing return/enter.

For clear tracking object You should hit backspace in tracking object selection. Unfortunately old tracking boxes still be present on this window.

In real time you can see frame/image, with:
-green border box - tracked elements,
-blue border box - detected objects.

Images dataset

Inside folder ./images/ we assume exist several folders for different images sequences.

All image datasets is located into images.7z archive. The archive you can download from: https://cvlab.zut.edu.pl/pedestrian_detector/images.7z

Results

The scripts for each sequences (folders in ./images/) save a .txt file inside ./results/ folder. Moreover, during computing display results in console.

Results format is:

1 1 0 0.546903

It means, for specific frame/image (in .txt file there is also image name/number):
-first number describes how many object was tracked (ground truth)
-second number describes how many object was properly detected
-third number describes wrong detections
-last number shows mean IOU for each detected objects on frame,

The Proper detected is, when IOU for detect and ground truth is equal or more than MINIMUM_IOU setting in ./config.py.

Inside scirpts

scripts/addPedestriansToTrack.py

Function addPedestriansToTrack allow to mark multiply object for tracking.

scripts/calculateIOU.py

Function calculateIOU calculateIOU for all detection, and count how many detections was correct.

scripts/detectPedestrianOnImage.py

Function detectPedestrianOnImage set tracking objects, detect pedestrians and returns IOU between them.

scripts/drawBoxes.py

Function drawBoxes draw detect/tracking box on image/frame.

scripts/forEachImage.py

Function forEachImage explore ./image/ folder and each subfolder, and on every image runs passed function and collect results.

scripts/saveResults.py

Function saveResults save computing results for each subfolder inside ./image/ to given file in ./results folder.

pedestrian_detector's People

Contributors

asmolinski avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

pedestrian_detector's Issues

How to open images folder

Hey!
I'm new to github, and I cant really understand the right way to open the images. I've downloaded the source code and tried to unzip the folder but it shows me an error. Could you please help me with this?

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.