Giter VIP home page Giter VIP logo

fare-gate-visual-game's Introduction

radar-camera-visual-sync

A project to synchronize and align camera and radar recordings and display data visually. Associated with the Centre of Excellence for Artificial Intelligence and Smart Mobility.

Setting Up

Clone the repository and install dependencies

git clone https://github.com/hfyxin/fare-gate-visual-game.git
# inside folder
python3 -m pip install -r requirements.txt

Required files

Add the following files in the specified directories

  • /data/Controlled_test.avi: Controlled test video file. Download from SharePoint Here
  • /data/frames/*: Add frames with timestamp filenames. Download most recent test outputs from Sharepoint Here

Usage

Configuration

Refer to descriptions within config.yaml for configuration parameters. The default video config is optimized for video Controlled_test.avi with corresponding Control_test1.json radar data.

Main Visualization

The main visualization can be run in video mode or frame mode.

Video Mode

Receives footage from video file. Ensure mode = "video_mode" at start of code in rta2_cv2visual.py:

python rta2_cv2visual.py

The openCV GUI contains trackbars which can be modified during playback for accurate adjustments.

Frame Mode

Receives footage from frame images. Ensure mode = "frame_mode" at start of code in rta2_cv2visual.py:

python rta2_cv2visual.py

After running the visualization, trackbar values for gate area can be saved to YAML config based on response to prompt.

Tools

Additional visualization tools for analysis purposes can be used

Radar_visualization

An animation of radar points in 3D scatter plot format (standard visual transforms to 2D perspective) with additional data.

Additional requirements: Make sure you have installed FFmpeg.

python tools/radar_visualization.py

Animation can be saved based on response to prompt at the end of animation.

tlv_scatter

Generate single scatter plot of all radar points, color coded by TLV type.

python tools/tlv_scatter.py

Tests

To run tests, run as module from main directory

python -m tests.<script-name>

Next Steps

  • Merge with MQTT repository for live visualization
  • YOLO fusion tracking addition

fare-gate-visual-game's People

Contributors

hsidd1 avatar hfyxin avatar lincampbell avatar

Watchers

 avatar Kostas Georgiou avatar  avatar

Forkers

hsidd1

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.