Git Product home page Git Product logo

kyegomez / svms Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 2.22 MB

The Sonar Vision Mapping System is an advanced environmental mapping and visualization technology. It utilizes high-frequency sound pulses to create a real-time, three-dimensional map of an environment. This system is designed for applications in security, surveillance, and search-and-rescue operations.

License: MIT License

Shell 26.60% Python 73.40%
hf radio-frequency sonar

svms's Introduction

Multi-Modality

Sonar Vision Mapping System

This project aims to recreate the vision mapping system inspired by Batman in "The Dark Knight." The system uses high-frequency sound pulses to create a real-time, three-dimensional map of an environment. It is designed for applications in security, surveillance, and search-and-rescue operations.

Features

  • Emit ultrasonic chirp signals
  • Record echoes and process the response
  • Calculate distances to objects based on echo timings
  • Construct and visualize a 3D point cloud of the environment

Requirements

  • Python 3.6+
  • numpy
  • sounddevice
  • scipy
  • matplotlib

Install

$ pip install svms

Usage

from svms.main import SonarVisionMappingSystem

# Example usage
sonar_system = SonarVisionMappingSystem()
sonar_system.run()

This script will emit ultrasonic pulses, record the echoes, and visualize the 3D point cloud of the environment.

Code Overview

SonarVisionMappingSystem Class

The main functionality is encapsulated in the SonarVisionMappingSystem class. Here's a breakdown of the key methods:

  • __init__(self, fs=44100, duration=0.5, f0=20000, f1=20000, num_directions=36, elevation_angles=9): Initializes the system with sampling frequency, duration, and frequency range for the chirp signal, along with the number of directions and elevation angles for mapping.

  • generate_chirp_signal(self): Generates a chirp signal.

  • record_response(self): Emits the chirp signal and records the response.

  • process_signal(self, response): Processes the recorded response to find echoes and calculate distances.

  • collect_data(self): Collects responses and distances for multiple directions and elevation angles.

  • plot_3d_mapping(self): Plots the 3D point cloud of the environment.

  • run(self): Runs the complete process of data collection and 3D mapping.

Example Usage

sonar_system = SonarVisionMappingSystem()
sonar_system.run()

Safety Considerations

The system uses ultrasonic frequencies (20 kHz), which are generally considered safe. However, ensure that the intensity of the emitted pulses is within safe limits, and avoid prolonged exposure to ultrasonic waves.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any enhancements or bug fixes.

License

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

svms's People

Contributors

kyegomez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

svms's Issues

hardware requirements

what are the hw requirements for this to work? Especially range of mics and speakers. Also, how many mics does it need to get accurate directions?

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

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.