People count by raspberry pi 3 using openframework
Posted By : Chandan Kumar Singh | 05-Jan-2017
In this blog we will compile the footfall program on raspberry pi 3, which is a camera based people counting. For saving the count in or out based on raspberry serial number.
for getting serial number using node js program you can follow: How to get Serial Number of Raspberry pi 3 using NodeJS
First of all we need to install openframework by following below step. I suppose you are on home folder of pi user.
wget http://openframeworks.cc/versions/v0.9.0/of_v0.9.0_linuxarmv7l_release.tar.gz
tar -xvf of_v0.9.0_linuxarmv7l_release.tar.gz
mv of_v0.9.0_linuxarmv7l_release of
cd of/scripts/linux/debian
sudo ./install_dependencies.sh
sudo ./install_codecs.sh
Verify installation by compiling example
Cd /home/pi/of/examples/graphics/polygonExample
Make
Make run
if polygon runs fine, then we have installed openframework successfuly.
now we will get the clone of footfall program
cd
Git clone https://github.com/WatershedArts/Footfall.git
Copy getrepos.sh from Footfall and paste into of/addons
cp Footfall/getrepos.sh of/addons/
cd of/addons/
./getrepos.sh
Cd ofxCvPiCam
mv libs old-libs
cp -r Footfall/ThreadedFootfall/ of/apps/myApps/ /*we are running ThreadedFotfall program*/
Cd of/apps/myApps/ThreadedFootfall
Make clean
Make
We have complie the program, run the application ./of/apps/myApps/ThreadedFootfall on turminal. Set the server details in "PostDataSettings" in bin/data/config.json set the postserver=your server address,postextension='api/v1/count/serial='{pi-serail-number}''. In this config.json we can set the camera width and height "AppSettings"
reference: https://github.com/WatershedArts/Footfall
Thanks
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Chandan Kumar Singh
Chandan is a bright Web Developer with expertise in Java and Spring framework and ORM tools Hibernate. He loves technologies like Blockchain and IoT.