GithubHelp home page GithubHelp logo

zichengduan / metric-calculator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.66 MB

Metric calculator toolkit for 3D detection and object occupancy detection.

Python 9.97% MATLAB 67.53% C++ 21.10% Objective-C 0.58% C 0.83%
metrics 3d-detection occupancy-map

metric-calculator's Introduction

Metric calculator for oriented bounding boxes and object occupancy accuracy.

Introduction

This toolkit calculates several metrics related to object 3D pose estimation and its corresponding occupancy accuracy.

For oriented bounding boxes:

  • AP_3D (Iou = 0.25, 0.5, etc.), average precision for 3D detection.
  • AOS (Iou = 0.25, 0.5, etc.), average orientation similarity.
  • OS, orientation ocore.

For object occupancy:

  • MODA, multi-object detection accuracy.
  • MODP, multi-object detection precision.
  • Precision.
  • Recall.

Requirements

  • Install module shapely using pip install shapely.
  • Install MATLAB and MATLAB engine, link.

Data Preparation and Usage

Both of your ground truth data and results should be capsuled in text file and formatted into a n,14 matrix as below, where n represents the number of samples you have in you data:

frame num | occ_x | occ_y | w | h | r_x1 | r_y1 | r_x2 | r_y2 | r_x3 | r_y3 | r_x4 | r_y4 | degree

where

  • frame num refers to the frame identity number,
  • occ_x & occ_y refers to object global coordinate on occupacy map,
  • w & h refers to object origin width and height,
  • r_x/r_y refer to the rotated coordinates of the bounding boxes.
  • degree refers to the orientation degree of the current bounding box.

Please refer to example gt.txt and results.txt for sample data, evaluate.py to specify your file path.

Run the script using cd code && evaluate.py to evaluate the template results, the expected output should be:

Parameter settings

Specify distance threshold (in centimeters) for calculating MODA and MODP in CLEAR_MOD_HUN.m line 35.

metric-calculator's People

Contributors

zichengduan avatar

Watchers

 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.