Giter Site home page Giter Site logo

masouduut94 / json_logger_for_object_detection Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 4.56 MB

This repository is made up to support codes for this medium post: Features: tools for adding bboxes and corresponding labels. flexible to add more labels and its confidences and categories. an example code for object detection is provided. The code is developed using Test-Driven-Development.

Home Page: https://medium.com/@masoud.masoumi.moghadam/creating-a-custom-logging-mechanism-for-real-time-object-detection-using-tdd-4ca2cfcd0a2f?source=friends_link&sk=3130f9ec5b2f7f1b82df32ab7e1998ea

Python 100.00%
tdd test-driven-development opencv object-detection bounding-box-annotations bounding-boxes json logging real-time unittest

json_logger_for_object_detection's Introduction

Logging system for real-time object detections

Real-time surveillance system

This repository is made up to support codes for this medium post:

🔗 An approach to Create a logging mechanism for real-time object detection using TDD

Features:

  • tools for adding bboxes and corresponding labels.
  • flexible to add more labels and its confidences and categories.
  • an example code for object detection is provided.
  • The code is developed using Test-Driven-Development.

Use this command to run tests

python -m unittest test_with_simple_input.py

Real-time vehicle detection

An example json for the above image could be this:

{
 "video_details": {
 "frame_width": 1080,
 "frame_height": 720,
 "frame_fps": 20,
 "video_name": "test.avi"
 },
 "frames": [
 {
 "frame_id": 1,
 "bboxes": [
 {
 "bbox_id": "0",
 "labels": [
 {
 "category": "car",
 "confidence": 99.25
 },
 { 
 "category": "truck",
 "confidence": 57.14
 }
 ],
 "left": 5,
 "top": 400,
 "width": 250,
 "height": 145
 },
 {
 "bbox_id": "1",
 "labels": [
 { 
 "category": "car",
 "confidence": 99.78
},
 { 
 "category": "bus",
 "confidence": 65.23
 }],
 "left": 650,
 "top": 450,
 "width": 300,
 "height": 150
 }]
 }]

json_logger_for_object_detection's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.