
Pezeshk-e-Khodkar-Webaite เป็นเว็บไซต์ที่สามารถตรวจจับโรคจากภาพที่มีรุ่น AI ตอนนี้มีให้ตรวจพบมะเร็งผิวหนัง (melanoma, มะเร็งเซลล์ฐานและมะเร็งเซลล์ squamous)
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
สร้างสองโฟลเดอร์ที่เรียกว่า output_images และ test_images ภายใต้ libs/tests/
ตั้งค่ารูปภาพที่คุณต้องการทดสอบ API ด้วยภายใต้ libs/tests/test_images
dataset.csv สร้างไฟล์ที่เรียกว่า dataset.csv ภายใต้ libs/tests/ และเขียนบางอย่างเช่นนี้ในนั้น
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 หมายความว่าชั้นเรียนควรกลับเท็จ
1 หมายความว่าชั้นเรียนควรกลับมาเป็นจริง
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.