Comments (7)
got it to compile
Thanks for all
Good luck!
from footfall.
Hi @Fitoma,
When you copy getrepos.sh to the addons folder of openFrameworks and run the shell script, all of the necessary dependencies are automatically downloaded. Just look at the "1) INSTALL DEPENDENCIES FOR APP" section in my previous posting.
I can confirm that I've 2x installed this people counter with the instructions I posted without fail.
from footfall.
@mhkiyani2000 Could you upload that image now you got it working? :)
If you figured out what was going wrong and how to solve it, sharing would help, too.
from footfall.
Here's how I installed it. Note that you can only see the output video via a monitor connected to the HDMI output. You can't see the output AT ALL with a headless setup.
- Preparing Raspberry Pi.
- INSTALL RASPBIAN "JESSIE".
- Install the latest Raspbian (Debian Jessie) image from the Raspberry Pi downloads page
- Follow the instructions at Raspberry Pi Preparing Your SD Card to get Raspbian installed onto your SD Card.
- CONFIGURE THE RASPBERRY PI.
- Expand file system, enable picamera, split memory.
Type in the terminal sudo raspi-config
We need to make sure the CPU has 192MB of RAM in order to compile openFrameworks. Once you have compiled openFrameworks you may want to repeat this step with 128.
• Select 1 Expand Filesystem and hit Enter.
• Select Enable Camera and hit Enter.
• Select 8 Advanced Options and hit Enter.
o Select A3 Memory Split and hit Enter.
o Type 64 and Hit
openFrameworks does not use the X11 Desktop for running OF applications. You can save GPU memory by disabling it. This is optional but suggested.
• Select 3 Boot Options
• Select B1 Console or B2 Console Autologin
Unlike Wheezy, Debian Jessie does not display the IP address on boot. You may wish to get the current IP by typing ifconfig. The IP address is under the eth0 entry for wired ethernet. This can possibly change on reboot.
• Reboot when prompted or type sudo reboot
• Assuming you have internet access run these commands to update the software to the latest packages.
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
Note: The above steps may take a little while. - Installing openFrameworks on the Raspberry Pi.
- DOWNLOAD OPENFRAMEWORKS.
You now can download openFrameworks and uncompress it into a folder. Using a Shell, the following commands will download openFrameworks and uncompress it into the folder /home/pi/openFrameworks.
wget http://openframeworks.cc/versisuons/v0.9.3/of_v0.9.3_linuxarmv6l_release.tar.gz
mkdir openFrameworks
tar vxfz of_v0.9.3_linuxarmv6l_release.tar.gz -C openFrameworks --strip-components 1
(not 1, but L) - INSTALL PACKAGES AND COMPILE OPENFRAMEWORKS:
Make sure you didn't skip the Memory Split step in the above section Configure the Raspberry Pi or it will eventually fail.
The time for these steps will depend on whether you are on RPI2 and the speed of the Raspbian mirrors to download the packages. Assuming openFrameworks is located at /home/pi/openFrameworks run the following commands to install the necessary packages and compile openFrameworks.
cd /home/pi/openFrameworks/scripts/linux/debian
sudo chmod +x install_dependencies.sh
sudo ./install_dependencies.sh
You are now ready to compile openFrameworks.
make Release -C /home/pi/openFrameworks/libs/openFrameworksCompiled/project
- Installing People Counter Application on the Rapberry Pi
- INSTALL DEPENDENCIES FOR APP.
- Copy the getrepos.sh file to the addons folder of openFrameworks. (You can copy this file with WinSCP program)
Run WinSCP and input IP address, port number (22), username (pi), password (raspberry) and connect to your RPi.
Select /home/pi/openFrameworks/addons folder.
Drag the shell script file above and drop it to the addons folder. - Run shell script above to install dependencies for our APP.
cd /home/pi/openFrameworks/addons
sudo chmod +x getrepos.sh
./getrepos.sh - Modify ofxCviCam library.
MMAL Libraries have changed slightly so users will have run into compiler errors.
cd /home/pi/openFrameworks/addons/ofxCvPiCam
mv libs old-libs
- BUILD PEOPLE COUNTER APP
- Copy the source folder to the RPi and compile. (Folder name is people_counter_RPi2)
cd people_counter_RPi2
sudo make clean
sudo make
After compile is finished, the executable file is generated in bin folder. - Configure parameters for APP.
Configuration parameters are in bin/data/config.xml
Open this file and change parameters as you like. - Run App.
cd bin
./people_counter_RPi2
(NOTE : the APP outputs recoding videos to the HDMI port default. So you cannot see display when you are running on SSH.)
from footfall.
Hi there,
@evilchippy you make no reference to OpenCV. Didn't you install it? I assumed it was needed for the app to work O_o
from footfall.
@evilchippy have you managed to get this working on an RPI3.. followed your instructions and the main build notes and its just not working :-(
from footfall.
I used an RPi2, not RPi3.
On Sep 10, 2016 2:09 PM, "pigsfoot" [email protected] wrote:
@evilchippy https://github.com/evilchippy have you managed to get this
working on an RPI3.. followed your instructions and the main build notes
and its just not working :-(—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#42 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AS7q1sZ8u5nkYsZ6208TqprMrAwYDM0Dks5qoxx4gaJpZM4ImKj9
.
from footfall.
Related Issues (20)
- /home/dev05/of_v0.9.8_linux64_release/addons/ofxHttpUtils/src/ofxHttpTypes.h:51:43: error: invalid initialization of reference of type ‘const string& {aka const std::__cxx11::basic_string<char>&}’ from expression of type ‘const boost::filesystem::path’ formFiles[fieldName] = ofToDataPath(path); HOT 2
- try compiling - many errors - sd image
- Raspbian compilation issues with osxCsv HOT 5
- Compatibility with Stretch HOT 6
- getrepos.sh
- Raspberry Pi 3 B+ SD IMAGE
- Raspberri Pi 3 Compiling Error HOT 2
- Threshold HOT 8
- 'HTTPManager.o' failed HOT 1
- compiling error HOT 2
- ofxCsvRow.hpp error HOT 1
- Source code error within ofxCsv.cpp HOT 10
- Copiling rpi3 of_0.10.1 HOT 2
- Compiling at Rpi3 need ages/stuck at main.cpp HOT 4
- Compiling error ofApp.o
- Maximum height
- Not an issue but a Request for information
- Compiling error Rpi 3B+ / CameraManager.cpp HOT 1
- Compiling on Raspberry Pi 4 - Stuck with OpenCV 3.2.0 HOT 1
- Compilation in Pi4 on Raspbian 10.7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from footfall.