Repositorio de RSMap para Raspberry Pi
note: This README was written in English so that everyone could understand how to send data to RSMap.
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.
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.
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
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.
In order to compile, Java 8 must be installed.
javac -cp kaa-java-ep-sdk.jar DataSender.java
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