Skip to content

guilhermesurek/computer-vision-framework

Repository files navigation

computer-vision-framework

A Computer Vision Framework to run CV models and tasks.

Models

  • Human Activity Recognition
  • Object Detection
  • Pose Estimation

References and Citations

This project was mainly based on:

Use Mode

Setting Environment

  1. Clone repository
  2. Create your own virtual environment (Optional but highly recommended)
    python -m venv myenv
    
  3. Activate your new environment (Optional but highly recommended)
    myenv/scripts/activate
    
  4. Install python required libraries
    python pip install -r requirements.txt
    
  5. Install pytorch (pip installation is failing yet)
    python pip install torch===1.6.0 torchvision===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
    
  6. Download model's weights for demo

Seting Options

There are two ways to set your options to run the code.

  1. Passing it in command line.
    python main.py --opts_dst_path opts/opts_output.json
    
  2. Setting it in the opts.json file and add the path to this file in the arguments.
    python main.py --opts_src_path opts/opts_input.json
    

Testing Webcam

Use the code below to test your webcam read.

python main.py --webcam

Demo Object Detection with Webcam

Use the code below to demo the OD algorithm with your webcam input.

python main.py --webcam --od

Demo Pose Estimation with Webcam

Use the code below to demo the PE body algorithm with your webcam input.

python main.py --webcam --pe

Use the code below to demo the PE body and hands algorithm with your webcam input.

python main.py --webcam --pe --pe_hand True

Demo Action Recognition with Webcam

Use the code below to demo the Action Recognition algorithm with your webcam input.

python main.py --webcam --ar

Main Contributors

  • Guilherme Augusto Silva Surek
  • Mateus Isaac Di Domenico
  • Matheus Henrique Reis Marchioro