AutoRiddleMaster
Automatically resolve RidderMaster based on TensorFlow & OpenCV
基于 TensorFlow 和 OpenCV 实现的全自动化解御迷士小马谜题
Demo
How to use
Deploy the server yourself
-
Clone the repo
git clone https://github.com/DargonXuan/AutoRiddleMaster.git
-
Ensure your local environment install pip3:
wget https://bootstrap.pypa.io/get-pip.py sudo python3 get-pip.py
-
Install dependencies by pip3
pip3 install -r requirements.txt
-
Try to run
python3 model.py
to see whether the dependency is successfully installed (optional)WARNING:tensorflow:From /usr/local/lib/python3.8/dist-packages/tensorflow/python/compat/v2_compat.py:101: disable_resource_variables (from tensorflow. python.ops.variable_scope) is deprecated and will be removed in a future version. Instructions for updating: non-resource variables are not supported in the long term WARNING:tensorflow:From model.py:19: load (from tensorflow.python.saved_model.loader_impl) is deprecated and will be removed in a future version. Instructions for updating: This function will only be available through the v1 compatibility library as tf.compat.v1.saved_model.loader.load or tf.compat.v1.saved_model.load. Th ere will be a new function for importing SavedModels in Tensorflow 2.0. A
The correct output should be like this, pay attention to the character A at the end, this is the answer to
test.jpg
.
⚠️ On Windows Server, you also need to install this dependency. Visual C++ Redistributable
-
Run api server by uvicorn or gunicorn If you are personal use, then please run api.py directly.
python3 api.py
If you have a lot of needs, you can through gunicorn.
gunicorn -c run.py api:app
The default port is 80.
Port can be modified in line 53 of
api.py
or line 13 ofrun.py
#6 -
Add your server address to the connet list of user.js, and modify the
API_SERVER
below.// @connect autopony.ltd // // ==/UserScript== const API_SERVER = 'http://autopony.ltd';
Change
autopony.ltd
to your address, note that there is no/
character at the end. -
Open our test site and observe if your script is running normally. test.autopony.ltd
Use the server we provide
⚠️ We cannot guarantee the network quality and stable operation of the server, and it is very likely that the answer will not be returned within the specified time.
Install user.js
directly and you can use it. Use test.autopony.ltd to see if it works.
TodoList 计划
- TensorFlow in Python
- Test site
- Performance: Coroutine
- use TensorFlow Lite
- Heroku Deploy
- Tencent Serverless Deploy
Thanks
Dataset from Z UserScript from S