Pezeshk e Khodkar Website
1.0.0

Pezeshk-e-Khodkar-Webaite是一個網站,可以從AI模型中檢測出圖像的疾病。現在,可以檢測皮膚癌(黑色素瘤,基底細胞癌和鱗狀細胞癌)
git clone https://github.com/Pezeshk-e-Khodkar/Pezeshk-e-Khodkar-Webaite.git
您可以使用虛擬環境運行項目。 (受到推崇的)
pip install -r requirements.txt
在根文件夾下創建一個名為.env的文件並進行配置。
SECRET_KEY = 'Django secret key'
ADMIN_URL = 'Url of admin page on the website'
ALLOWED_HOSTS = 'http://yourdomain.com'
VIRUSTOTAL_API_KEY = 'API-key of VirusTotal'
SKINCANCER_AI_MODEL = 'name of Skin Cancer AI model'
RECAPTCHA_PUBLIC_KEY = 'Public Key of recaptch'
RECAPTCHA_PRIVATE_KEY = 'Private Key of recaptch'
RECAPTCHA_REQUIRED_SCORE = 0.85
EMAIL_HOST_USER = 'A Gmail that we use it to send emails.'
EMAIL_HOST_PASSWORD = 'Password App of your gmail'
另外,如果要將此網站上傳到服務器(debug = false),則使用MySQL與配置選項:
MYSQL_DB_NAME= 'Database name'
MYSQL_DB_USER= 'DataBase user'
MYSQL_DB_PASSWORD= 'user's password'
MYSQL_DB_HOST='Database host'
MYSQL_DB_PORT='Database port'
下載admin-Honeypot並在項目的根文件夾下複製admin-honeypot文件夾。
在根文件夾下創建兩個稱為media和models文件夾。
將AI模型文件放在models文件夾下。
在Linux上,將python替換為python3 。
python manage.py makemigrations
python manage.py migrate
python manage.py collectstatic
python manage.py runserver
在libs/tests/下創建兩個稱為output_images和test_images的文件夾。
設置需要使用libs/tests/test_images的測試API的圖像。
dataset.csv在libs/tests/下創建一個名為dataset.csv的文件,然後在其中寫下類似的內容。
FileName,AntiVirusTest,SkinCancerDetectorTest,ImageVerifierTest,FileSizeVerifierTest,ImageUploaderTest
1.jpg,0,1,1,1,1
2.jpg,0,0,0,1,0
3.png,0,0,0,0,0
4.jpg,0,1,1,1,1
5.jpg,0,1,1,1,1
0意味著班級應返回false。
1意味著課程應返回true。
python manage.py test
MIT License
Copyright (c) 2023 Pezeshk-e-Khodkar
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.