{"id":28374670,"url":"https://github.com/stillmisty/eyebackend","last_synced_at":"2025-06-25T19:30:46.932Z","repository":{"id":291099300,"uuid":"974258628","full_name":"StillMisty/eyeBackend","owner":"StillMisty","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-09T04:09:30.000Z","size":622,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T22:51:31.587Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StillMisty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-28T13:52:13.000Z","updated_at":"2025-05-09T04:09:33.000Z","dependencies_parsed_at":"2025-05-02T12:36:02.100Z","dependency_job_id":"662fe049-c55f-44ad-bbd4-70cf5ba4af54","html_url":"https://github.com/StillMisty/eyeBackend","commit_stats":null,"previous_names":["stillmisty/eyebackend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/StillMisty/eyeBackend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StillMisty%2FeyeBackend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StillMisty%2FeyeBackend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StillMisty%2FeyeBackend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StillMisty%2FeyeBackend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StillMisty","download_url":"https://codeload.github.com/StillMisty/eyeBackend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StillMisty%2FeyeBackend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261940283,"owners_count":23233510,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-29T22:10:47.477Z","updated_at":"2025-06-25T19:30:46.926Z","avatar_url":"https://github.com/StillMisty.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 眼疾识别系统后端\n\n基于FastAPI构建的眼部疾病识别系统后端服务，提供眼部图像上传、疾病识别、用户认证等功能。\n\n## 项目概述\n\n本系统能够通过分析用户上传的眼部图像，识别可能存在的眼部疾病，包括但不限于：\n\n- 白内障 (Cataract)\n- 青光眼 (Glaucoma)\n- 糖尿病视网膜病变 (Diabetic Retinopathy)\n- 黄斑变性 (Macular Degeneration)\n- 高血压眼病 (Hypertensive Retinopathy)\n- 近视 (Myopia)\n- 其他眼部疾病\n\n系统采用深度学习模型进行眼部疾病识别，并结合Grad-CAM技术提供可视化解释，帮助用户理解模型关注的区域。\n\n## 技术栈\n\n- **框架**: FastAPI\n- **数据库**: SQLite/PostgreSQL\n- **认证**: JWT (JSON Web Tokens)\n- **机器学习**: TensorFlow\n- **可视化**: Grad-CAM\n\n## 项目结构\n\n``` bash\n.\n├── Config.py                # 配置文件\n├── database.py              # 数据库连接\n├── main.py                  # 主程序入口\n├── pyproject.toml           # 项目依赖\n├── auth/                    # 认证相关\n│   ├── auth_handler.py      # 认证处理\n│   └── auth_router.py       # 认证路由\n├── eye_identify/            # 眼疾识别核心\n│   ├── GradCam.py           # 模型可视化\n│   ├── identify.py          # 识别实现\n│   └── model.h5             # 预训练模型\n├── models/                  # 数据模型\n│   ├── EyeIdentification.py # 识别记录模型\n│   ├── IdentifySuggestions.py # 建议模型\n│   ├── UserRating.py        # 用户评分模型\n│   └── Users.py             # 用户模型\n├── routers/                 # API路由\n│   ├── identify_router.py   # 识别相关路由\n│   ├── introduce_router.py  # 疾病介绍路由\n│   └── users_router.py      # 用户相关路由\n├── static/                  # 静态资源\n│   └── disease_images/      # 疾病图像\n├── uploads/                 # 上传目录\n└── utils/                   # 工具函数\n```\n\n## 主要功能\n\n### 1. 眼部疾病识别\n\n- 上传眼部图像进行疾病识别\n- 返回可能的疾病类型及其置信度\n- 提供疾病详细描述和建议\n\n### 2. 用户管理\n\n- 用户注册/登录\n- JWT token认证\n- 用户历史记录管理\n\n### 3. 疾病介绍\n\n- 提供常见眼疾的详细介绍\n- 包含症状、原因、治疗方法等信息\n\n## API文档\n\n启动服务后，访问 `http://localhost:8000/docs` 可查看完整的API文档。\n\n## 安装与运行\n\n### 环境要求\n\n- Python 3.12+\n- TensorFlow 2.0+\n- FastAPI\n- SQLAlchemy\n\n### 安装步骤\n\n1. 克隆代码库\n\n```bash\n# 需下载git-lfs以同步模型文件\ngit clone https://github.com/StillMisty/eyeBackend\ncd eyeBackend\n```\n\n2. 同步虚拟环境并且安装依赖\n\n```bash\n# 使用 UV 管理虚拟环境，https://docs.astral.sh/uv/\nuv sync\n```\n\n3. 修改配置\n编辑 `Config.py` 文件，根据实际情况配置数据库连接、JWT密钥等\n\n4. 启动服务\n\n```bash\nuv run python main.py\n```\n\n## 许可证\n\n本项目遵循 Apache 许可证。有关详细信息，请参阅 [LICENSE](LICENSE) 文件。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstillmisty%2Feyebackend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstillmisty%2Feyebackend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstillmisty%2Feyebackend/lists"}