This repository contains all the necessary files and instructions for setting up and running a Raspberry Pi-based radar project. The project is divided into two main sections: Raspberry Pi setup and Radar setup. Sample radar data is also provided to test the system.
- Navigate to the
pi/directory. - Edit the
perspectivevariable inrecognition.pyto the appropriate axis that you have placed your camera on. - Run
python3 server.pyto start server, the server will handle starting of the camera code.
output_x.jsonandoutput_y.json- JSON files containing the x and y coordinates of the detected person.
- In
server.py, update the IP and PORT fields with appropriate values.
- Connect the Raspberry Pi to the camera module.
- Ensure the Raspberry Pi is connected to a power source.
- Connect the Raspberry Pi to a monitor.
- Run
python3 plot_positions.pyto generate a plot of the detected person's location, and them moving through the space.
- **radar_data/non-raw - radar code.
- Ensure the radar is connected to a computer with the radar software.
- Update the frames in the software code to an appropriate frame number
- Use the lab5.cfg file for configuration file used in the software
- Run
python3 radar_tracking.pyinradar/non-rawto detect people and collect data.
- Located in
radar/non-raw/locations.txt
- In
radar_tracking.py, update the IP and PORT fields with appropriate values. - In
radar_tracking.py, update the directory path to the location where the bin data will be stored.
- Radar Module: Connect the radar module to a computer via the provided USB cable.
- Ensure all drivers for the radar module are installed on the Raspberry Pi.
- For detailed radar module setup, refer to the manufacturer's documentation.
- Run
python3 plot_positions_radar.pyto generate a plot of the detected person's location, and them moving through the space, use the appropriate path to the data file. You can edit it in themain()function.