Skip to content

RSMap/RSMapPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSMapPi

Repositorio de RSMap para Raspberry Pi

note: This README was written in English so that everyone could understand how to send data to RSMap.

Technologies

This moule uses Python and Java. The most important library is SoundDevice which allow us to capture microphone audio. Java's SDK was created with KAA.

Python detection module send data over TCP socket opened by DataSender class which report that data to Cassandra.

Vehicle sound detector

This module collect sound noise and try to identify vehicles. To start, run DataSender before VehicleAnalyzer because DataSender initializes TCP socket to receive connections. When it's ready to receive you should see "Waint for VehicleAnalyzer on TCP socket at port 5000", after that you can run VehicleAnalyzer.py.

Instructions for run

In order to run, Python 3.4.2 or greather must be installed.

Dependencies are in requirements.txt for install it use:

tip: install it under virtualenv.

pip install -r requirements.txt

After this, you'll be able to run it with

python VehicleAnalyzer.py

Data sender

This Java class reads data from socket which is feeded by analyzer/VehicleDetection.py. Both have to run in the same machine, in other case VehicleDetection.py must be configured with the correct ip address.

Instructions for compile DataSender

In order to compile, Java 8 must be installed.

javac -cp kaa-java-ep-sdk.jar DataSender.java

Instructions for run DataSender

Run DataSender

java -cp .:./kaa-java-ep-sdk.jar:log4j-over-slf4j-1.7.7.jar:logback-classic-1.1.2.jar:logback-core-1.1.2.jar DataSender

About

RSMap Raspberry Pi repository

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published