Skip to content

HACC2018/Mea-Kanu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mea-Kanu

The purpose of Mea Kanu is to use technology to inspire the youth to mālama our native endangered species. Mea Kanu uses plant identification through image recognition and cutting edge machine learning with the artificial intelligence technique known as fine grain categorization. The major technologies involved are python, vue, javascript, HTTP, artificial intellgence, neural networks, and machine learning. Our app also serves as a extension of the Hawaiian culture by integrating Lāʻau Lapaʻau (Hawaiian Plant Medicine) knowledge into the application's database. Mea Kanu is one of the ways that Hawaiians refer to plants.

  1. Introduction
  2. Installation
  3. App Information

Introduction

The application is trained to accurately identify 100 different plant species found around the island. We chose an initial dataset that includes roughly 90% invasive and 10% native species. The reason being that we wanted to emulate the ratio that appears in many low-lying areas of Hawaiʻi. To make a difference, we would need to know what species are doing harm as well as identifying which species need protection.

In order to train the neural network, 4500 images were collected from various sources and compiled into a file system. The folders were then analyzed over the course of a week using segmentation. The resulting product is a highly accurate, fast, and responsive application.

The plant identification script is currently loaded onto a local HTTP python server. The app was originally planned to be hosted on a cloud based server, but the neural network is a large file (~130 Mb), and we did not want to incur hosting costs. Future plans include moving the entire Mea Kanu architecture into the cloud, specifically Amazon Web Services.

On the front end the Application uses Nativescript with Vue. This allows our application to be transpiled into working Android and iOS applications.

Installation

Running on smart phone:

Mea Kanu is available for download on the Google Play store at the moment. It will be available on the App Store in the future.

Running the server locally:

In order to run the server several python libraries must be installed.

Start by first installing python 3 on your corresponding operating system as follows:

Note: If at any point a permission error appears, prepend the installation command with sudo or open the terminal in
administrator mode on Windows

Windows:

  1. Open a browser window and navigate to the Download page for Windows at python.org.

  2. Underneath the heading at the top that says Python Releases for Windows, click on the link for the Latest Python 3
    Release - Python 3.x.x. (As of this writing, the latest is Python 3.6.5.)

  3. Scroll to the bottom and select either Windows x86-64 executable installer for 64-bit or Windows x86 executable
    installer for 32-bit. (See below.)

  4. Important: You want to be sure to check the box that says Add Python 3.x to PATH as shown to ensure that the
    interpreter will be placed in your execution path.

  5. Run the installer.

Mac:

brew install python3

Linux (Ubuntu):

Install python3 by opening the terminal and enter the follwoing commands:

$ sudo apt-get update
$ sudo apt-get install python3.6

Verify a successful install by entering the following command and verifying version number:

$ python --version
  python 3.6.5

Once python is installed, pip3 should be installed with it. Use this to install the rest of the dependencies. The server and machine learning program use several libraries as listed below:

Machine Learning Libraries

  • tensorflow
  • keras
  • cv2

Encoding Libraries

  • base64

To install the machine learning libraries start with tensorflow:

pip3 install tensorflow

Once the tensorflow package is installed the Keras package can be installed:

pip3 install keras

Finally the cv2 library can be added

Windows

Follow the steps found on the CV2 website found here

Mac

Linux

Enter the following command:

$ sudo apt-get install python-opencv

Verify the installation with:

$ python
>>>import cv2 as cv
>>>print(cv2.__version__)
3.4.3
>>>

If no errors appear the library has successfully been installed.

The encoding libary base 64 is the only installation remaining and can be done with the following command:

pip install pybase64

Once all the dependencies have been installed the server can be succesfully hosted on a local machine. Get the public IP address of your machine here assign the IP address and desired port in the final two lines of the server code and run the server using:

python3 server.py

Connect to the host from any front end service and send a HTTP POST request with any image file to classify the image.

The application can take any image and classify what type of plant it is.

App Information

The mobile phone application allows the user to take pictures using the device's camera or using a picture from a gallery after going through the Privacy Policy. Our App asks for permission to use your device's camera and its file system so that you can take/upload pictures of plants.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published