Pollimac TF stands for "Pollen Image Classifier" using TensorFlow. Pollimac TF is an extension of the original SP of Prof. Joman Encinas. It was created using TensorFlow and its pre-classified image classifier, coupled with NodeJS and VueJS for its system.
- Install TensorFlow
- After installing TensorFlow, run the virtual environment upon opening your terminals. Upon running the virtual environment via TensorFlow with the command
source activate mycondaenv
, it should look like:
(mycondaenv) $
Note: TensorFlow can now be ran with Docker. Just a thought!
- Open 2 terminals, one for the
client
, and one for theserver
.
cd pollimac-tf/client # terminal for the client
cd pollimac-tf/server # terminal for the server
-
Run
npm install
onclient
andserver
. Make sure that the version of Node is version 8 or higher. Note: if you're experiencing an error uponnpm install
on the server, just use the Node version 8.11.1 (switching/installing Node versions is easy with nvm) -
After installing the packages, run
npm start
on the server folder. It should run onport 8081
. Remember that this should be ran while inside the virtual environment. The virtual environment is only needed for theserver
folder.
(mycondaenv) $ npm start
-
After running the server, run
npm start
on the client. It should run onport 8080
. -
Open your browser and go to
localhost:8080
.
- User uploads an image.
- The web app will classify the uploaded image using the retrained classifier from Tensor Flow.
- The web app returns the classified image to the user.