Git Product home page Git Product logo

Comments (7)

mhkiyani2000 avatar mhkiyani2000 commented on September 1, 2024 1

got it to compile
Thanks for all
Good luck!

from footfall.

evilchippy avatar evilchippy commented on September 1, 2024 1

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.

Fitoma avatar Fitoma commented on September 1, 2024

@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.

evilchippy avatar evilchippy commented on September 1, 2024

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.

  1. Preparing Raspberry Pi.
  1. 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.
  1. 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.
  1. 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)
  2. 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
  1. Installing People Counter Application on the Rapberry Pi
  1. 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
  1. 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.

Fitoma avatar Fitoma commented on September 1, 2024

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.

pigsfoot avatar pigsfoot commented on September 1, 2024

@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.

evilchippy avatar evilchippy commented on September 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.