A tool to change poems of guoxue_sjtu into pictures.
Windows system.
You should install the python packages needed, including flask
, pillow
and selenium
.
Besides, you should have installed Chrome and a Chromedriver which relates to the version of your Chrome.
- Modify the parameters in
static/config.json
. - Run
bg.py
, recommended in IDE. - Run
capture.py
and wait for a few seconds. - Look up for you picture in
output_image
directory.
- Run
bg.py
. - Turn to
http://127.0.0.1:5051/submit/
. - Fill in the form and click
提交
. Note that you should click the button after the picture you've selected has been loaded. - The result will be rendered in the page.
Address: http://139.224.229.170:5051/submit/