Giter Site home page Giter Site logo

person_reidentification's Introduction

Person Re-identification with OpenVINO

What's this

This is Person Identification Test App using Intel OpenVINO Person Re-Identification Model.

You can do followings:

  • Person Detection
  • Preson Re-Identification (Tracking and Counter)

Person re-identifiction - Tracking - (YouTube Link) mall

Person re-identifiction - Tracking and Counter- (YouTube Link) person reid

Reference

OpenVINO Toolkit and Flask Video streaming

OpenVINO Intel Model

Tested Environment

  • Python 3.7.6 (need 3.6+ for f-strings)
  • Windows 10 [Version 10.0.19041.388]
  • OpenVINO Toolkit 2020.1+1

Required Python packages

pip install -r requirements.txt

How to use

python app.py -h
usage: app.py [-h] -i INPUT [-d {CPU,GPU,FPGA,MYRIAD}]
              [-d_reid {CPU,GPU,FPGA,MYRIAD}] [--v4l] [-ax {0,1}] [-g GRID]

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Path to video file or image. 'cam' for capturing video
                        stream from camera
  -d {CPU,GPU,FPGA,MYRIAD}, --device {CPU,GPU,FPGA,MYRIAD}
                        Specify the target device for Person Detection to
                        infer on; CPU, GPU, FPGA or MYRIAD is acceptable.
  -d_reid {CPU,GPU,FPGA,MYRIAD}, --device_reidentification {CPU,GPU,FPGA,MYRIAD}
                        Specify the target device for person re-identificaiton
                        to infer on; CPU, GPU, FPGA or MYRIAD is acceptable.
  --v4l                 cv2.VideoCapture with cv2.CAP_V4L
  -ax {0,1}, --axis {0,1}
                        Specify the axis when counting person horizontally or
                        vertically (0: count horizontally(x-axis) , 1: count
                        vertically (y-axis)
  -g GRID, --grid GRID  Specify how many grid to divide frame. This is used to
                        define boundary area when the tracker counts person. 0
                        ~ 2 means not counting person. (range: 3 < max_grid)

Run app

example1. camera streaming without person counter

python app.py -i cam

example2 Specify video file with person counter

python app.py -i P1033674_1920.mp4 --grid 10 

Access the url bellow on your browser

http://127.0.0.1:5000/

Footnotes

  1. openvino.inference_engine version openvino_2020.1.033 or above build does not need cpu extension.

    https://software.intel.com/en-us/forums/intel-distribution-of-openvino-toolkit/topic/848825

    โ†ฉ

person_reidentification's People

Contributors

kodamap avatar dependabot[bot] 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.