Skip to content

Latest commit

 

History

History
152 lines (101 loc) · 3.97 KB

File metadata and controls

152 lines (101 loc) · 3.97 KB

Web Application: Fish Classification

In web application mode, User can use any host machine (Windows/Linux) which is connected to the board, and can run the application through web browser. Classify images through the local host itself.

Web App Mode Demo

Application: Requirements

Hardware Requirements

  • RZ/V2L Evaluation Board Kit
    • USB Serial Cable [Required to connect to board]
  • Ethernet Cable [Required to connect to the board network]
  • Ethernet Hub or Router [Internet connection is required for Host PC during the runtime of the web application]

Details

Software Requirements for building the Webapp

  • Ubuntu 20.04
  • OpenCV 4.x
  • C++11 or higher

Software Requirements for running the Webapp

  • Python 3.8
  • pip3
  • virtualenv

Note: To install the requirements follow step3

Python3 Package Requirements for Host PC

Note: Required only for Host Machine for running the application through Websocket. These package installation procedure is mentioned here

  • Flask
  • Flask-SocketIO
  • numpy
  • opencv-python
  • python-socketio
  • Werkzeug

Application: Build Stage

Follow the procedures given on the readme.md

The following application file would be generated after this procedure.

  • fish_classification

Application: Deploy Stage (on Host PC)

Note: Below command are for linux host machine, User can also translate them to Windows PC commands

  1. Copy the fish web application fish_web_app_exe to the host machine (any host machine which is connected to the same network as the V2L board).

Note: Within the same network means, the host and board should be able to communicate with each other through LAN. E.g. Host IP: 192.168.197.200 and Board IP: 192.168.197.161

export WORK=<path/to/fish_web_app_exe>
cd $WORK
  1. If fish_classification application is generated, copy it to the fish_web_app_exe folder.

  2. Make sure python3 (>=3.8) and python3-pip is installed on the machine.

python3 --version
pip3 --version

If any of the command shows unknown command error. Please follow below steps to install.

For installing Python 3.8

sudo apt update
sudo apt -y upgrade 
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.8

For installing pip3

sudo apt-get install -y python3-pip
  1. For installing python virtualenv
sudo apt install virtualenv
  1. Install application python requirements
cd $WORK
./init_app.sh

Note: If permission error occurs, Use

chmod a+x init_app.sh

Application: Runtime Stage

  • Please note that the Host PC require internet connection to run the web application.

  • Get IP of the RZ/V2L Evaluation Board Kit, Run the command on the RZ/V2L Evaluation Board Kit terminal.

ifconfig
  • On Host machine folder fish_web_app_exe
cd $WORK
./start_app.sh 

Note: If permission error occurs, Use

chmod a+x start_app.sh
  1. Local server will start running http://127.0.0.1:5000/, visit the IP address in any of the browser.

  2. Enter the IP address of the board. eg:- 192.168.197.161

  3. If it is successfully connected to board, it will redirect to prediction page.

  4. Select fish image press Send Photo.

Application: Specifications

This section is same as mentioned in the readme.md