Giter Site home page Giter Site logo

driver_ped_interaction_analysis's Introduction

Project Title: Driver-Pedestrian Interaction Analysis

Project Overview

This project focuses on analyzing the interactions between drivers and pedestrians using various data sources and visualization techniques. The data includes body joint positions and specific pedestrian scenarios, which are visualized through Jupyter notebooks and generated videos.

Directory Structure

The directory structure of the project is as follows:

Driver-Ped/
│
├── GeneratedVideos/
│
├── RawData/
│   ├── maps/
│   │   ├── Ped-104.jpeg
│   │   ├── Ped-105.jpeg
│   │   └── scene.jpeg
│   └── Pilot2/
│       └── csv/
│
├── body joints list.xlsx
│
├── Movement_Visualization_David.ipynb
│
├── Movement_Visualization_KK.ipynb
│
└── ReadME.md

File Descriptions

  • GeneratedVideos/: This directory contains HTML files with visualizations of pedestrian scenarios.

  • RawData/: This directory contains raw data files used in the analysis.

    • maps/: Contains JPEG images of maps used in the analysis, more scenario-specific maps can be added later.
      • Ped-104.jpeg: Map image related to pedestrian scenario 104.
      • Ped-105.jpeg: Map image related to pedestrian scenario 105.
      • scene.jpeg: General scene map image used for visualization.
    • Pilot2/: Contains CSV files with raw data for the second pilot study.
      • csv/: Directory holding CSV files related to the pilot study.
  • body joints list.xlsx: This Excel file contains the list of body joints used for visualizing pedestrian movements.

  • Movement_Visualization_David.ipynb: Jupyter notebook for visualizing pedestrian movement data and generating 2D.mp4 videos, developed by David.

  • Movement_Visualization_KK.ipynb: Jupyter notebook for visualizing pedestrian movement data and generating interactive 2D and 3D .html files, developed by KK.

  • ReadME.md: This file, providing an overview of the project and the directory structure.

Installation and Setup

  1. Clone the repository:

    gh repo clone kzhuoxu/Driver_Ped_Interaction_Analysis
  2. Download the data from this Google Drive Link and put the data in this directory.

    Driver-Ped/
    │
    ├── RawData/
    │   └── Pilot2/
    │       └── csv/
    
  3. Navigate to the project directory:

    cd Driver-Ped
  4. Install the required dependencies:

    pip install -r requirements.txt

Usage

  1. Data Preparation: Ensure that the raw data is placed in the RawData/ directory.
  2. Running Notebooks: Open the Jupyter notebooks (Movement_Visualization_David.ipynb and Movement_Visualization_KK.ipynb) in Jupyter Lab or Jupyter Notebook.
  3. Visualization: Execute the cells in the notebook Movement_Visualization_KK.ipynb to generate visualizations of the pedestrian movement data.
    • Driver-Ped 2D Animation: This section includes cells for generating 2D animations that illustrate the interaction between drivers and pedestrians.
    • Driver A: 3D Close-up Animation: This part of the notebook generates close-up 3D animations of Driver A, focusing on detailed movements and interactions.
    • Pedestrian B: 3D Close-up Animation: Similar to the Driver A section, this part generates close-up 3D animations of Pedestrian B, highlighting specific movements.
    • Run: This section contains the code to execute the full set of animations and visualizations. Running this will produce all the visual outputs as specified in the previous sections.
    • Testing: This section includes cells for testing the animations and visualizations before incorporating them into the "Run" section, to ensure they are correctly generated and aligned with the expected outcomes.

Results

The results of the analysis are visualized in the form of plots and videos. These visualizations can be found in the GeneratedVideos/ directory.

Contributions

  • David: Developed the Movement_Visualization_David.ipynb notebook.
  • KK: Developed the Movement_Visualization_KK.ipynb notebook.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

We would like to thank all the contributors and data providers for their support in this project.

Contact

For any queries or issues, please contact:

driver_ped_interaction_analysis's People

Contributors

kzhuoxu avatar

Watchers

 avatar

Forkers

far-lab

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.