How johnrott/fpga-accelerated-human-detection works
The repository implements an FPGA-accelerated human-detection system: camera frames are reduced to grayscale and sent from a Raspberry Pi to an ESP32, then transferred over SPI to FPGA HOG feature extraction and SVM classification. The tree also contains the original standalone gradient-convolution accelerator. The README documents the full system; detailed runtime links beyond the sampled Raspberry Pi, HOG, and SVM code rely on that documentation.
Main entry points: hog_accel.cpp HOG accelerator · svm_predict.cpp SVM predictor · pitoesp.py Frame sender · pi_fpga_transfer.ino ESP32 receiver
Components 12
Capture and transport
- Pi camera
- Frame sender
Extension/Raspberry Pi/pitoesp.py - Wi-Fi link
FPGA interface
- ESP32 receiver
Extension/ESP32/pi_fpga_transfer.ino - SPI interface
Extension/SPI/spi_image_top.v - Zynq FPGA
HOG features
- HOG accelerator
histogram/code/hog_accel.cpp - Gradient stream
histogram/code/hog_accel.cpp - HOG histogram
histogram/code/hog_accel.cpp - Gradient accelerator
gradient_convolution/code/gradient_convolution.cpp
Detection
- SVM predictor
Extension/SVM/svm_predict.cpp - Detection outputs
Extension/SVM/svm_predict.cpp
Connections 12
- Pi camera → Frame sender: captures frames
README.md - Frame sender → Wi-Fi link: sends packets
Extension/Raspberry Pi/pitoesp.py - Wi-Fi link → ESP32 receiver: delivers frames
README.md - ESP32 receiver → SPI interface: transfers frames
README.md - SPI interface → Zynq FPGA: receives frames
README.md - Zynq FPGA → HOG accelerator: runs HOG
README.md - HOG accelerator → Gradient stream: calls
histogram/code/hog_accel.cpp - Gradient stream → HOG histogram: streams gradients
histogram/code/hog_accel.cpp - Zynq FPGA → SVM predictor: runs classification
README.md - HOG accelerator → SVM predictor: provides features
README.md - SVM predictor → Detection outputs: writes results
Extension/SVM/svm_predict.cpp - Zynq FPGA → Gradient accelerator: runs standalone