- Install docker
- Build docker
docker build --tag contact_angle_calculator .
docker run -p 51273:51273 -d --name=contact_angle contact_angle_calculator
You can use web demo after access to http://localhost:51273
Usage wrote in demo page
- Install python (version >= 3.8)
- (Optional) install virtualenv
- (Optional) Make virtual environment using virtualenv
- Install dependency
pip install -r requirements.txt
Execute webserver:
python app.py
You can use web demo after access to http://localhost:51273
If you want to change port number of demo page, open app.py
and change port number at bottom of code.
app.run(host='0.0.0.0', port='<CHANGE_THIS_NUMBER>')
- Install python (version >= 3.8)
- (Optional) install virtualenv
- (Optional) Make virtual environment using virtualenv
- Install dependency
pip install -r requirements.txt
Before execute calculator code, you should decorate image.
- Prepare contact angle image.
- Draw BLUE bordered ellipse over liquid drop.
- You can use any blue color but, reference color is #41719c
- Draw RED line over surface boundary.
- You can use any red color but, reference color is #ff0000
python run.py <image_file_path>