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.