Code Monkey home page Code Monkey logo

raspberry-pi-ndvi-plant-analysis's Introduction

raspberry-pi-ndvi-plant-analysis

Python code for analysis plants using ndvi with Raspberry Pi NoIR camera

This code is a modification of https://github.com/robintw/RPiNDVI. It's modified such that it doesn't show black parts where NDVI is highest in the image. Also, the visualisation is modified to my taste and added camera rotation as optional argument.

##Hardware Raspberry Pi attached to a screen or VNC (I used 3B and Raspbian with desktop) Raspberry Pi NoIR camera with the filter attached in some way (more info: https://www.raspberrypi.org/blog/whats-that-blue-thing-doing-here/)

install dependencies

Assuming you already have pip and picamera preinstalled (like with Raspboan with desktop). If not:

sudo apt-get update
sudo apt-get install python-picamera python-pip

Install opencv using:

sudo apt-get install build-essential gfortran libatlas-base-dev python-pip python-dev
sudo pip install --upgrade pip
sudo pip install numpy
sudo pip install scipy
sudo apt-get install python-opencv

Pip was throwing me TypeErrors on Raspian, so I had to reinstall it:

apt-get remove python-pip python3-pip
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
sudo python3 get-pip.py

running

python ndvi.py

You might need to set the camera rotation based on how you camera is positioned, e.g.:

python ndvi.py 90

raspberry-pi-ndvi-plant-analysis's People

Contributors

rubenmak avatar

Watchers

 avatar  avatar  avatar

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.