
Pezeshk-e-Khodkar-Webaite ist eine Website, die Krankheiten aus Bildern mit KI-Modellen erkennen kann. Jetzt ist es zum Nachweis von Hautkrebs (Melanom, Basalzellkarzinome und Plattenepithelkarzinom) verfügbar.
git clone https://github.com/Pezeshk-e-Khodkar/Pezeshk-e-Khodkar-Webaite.git
Sie können virtuelle Umgebungen verwenden, um Projekte auszuführen. (empfohlen)
pip install -r requirements.txt
Erstellen Sie eine Datei namens .env unter Root -Ordner und konfigurieren Sie sie.
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'
Wenn Sie diese Website auf einen Server hochladen möchten (debug = false), verwendet sie MySQL mit den folgenden Konfigurationsoptionen:
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'
Laden Sie den Admin-Honeypot herunter und kopieren Sie admin-honeypot Ordner unter Root-Ordner des Projekts.
Erstellen Sie zwei Ordner mit media und models unter Root -Ordner.
Stellen Sie die KI -Modelldatei unter models ein.
Ersetzen Sie python unter Linux in python3 .
python manage.py makemigrations
python manage.py migrate
python manage.py collectstatic
python manage.py runserver
Erstellen Sie zwei Ordner als output_images und test_images unter libs/tests/ .
Legen Sie Bilder fest, mit denen Sie eine Test -API unter libs/tests/test_images haben möchten.
dataset.csv Erstellen Sie eine Datei namens dataset.csv unter libs/tests/ und schreiben Sie so etwas darin.
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 bedeutet, dass die Klasse falsch zurückkehren sollte.
1 bedeutet, dass die Klasse wahr zurückkehren sollte.
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.