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.
- 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]
- Ubuntu 20.04
- OpenCV 4.x
- C++11 or higher
- Python 3.8
- pip3
- virtualenv
Note: To install the requirements follow step3
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
Follow the procedures given on the readme.md
The following application file would be generated after this procedure.
- fish_classification
Note: Below command are for linux host machine, User can also translate them to Windows PC commands
- 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
-
If fish_classification application is generated, copy it to the
fish_web_app_exe
folder. -
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
- For installing python virtualenv
sudo apt install virtualenv
- Install application python requirements
cd $WORK
./init_app.sh
Note: If permission error occurs, Use
chmod a+x init_app.sh
-
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
-
Local server will start running
http://127.0.0.1:5000/
, visit the IP address in any of the browser. -
Enter the IP address of the board. eg:- 192.168.197.161
-
If it is successfully connected to board, it will redirect to prediction page.
-
Select fish image press Send Photo.
This section is same as mentioned in the readme.md