Commit Graph

43 Commits

Author SHA1 Message Date
admin 0b67149577 add: Detection_Icon and Detection_Text ONNX models
Build and Deploy / deploy (push) Has been cancelled
Build and Deploy / build (push) Has been cancelled
2026-07-17 00:01:33 +00:00
admin ad9000c3d9 debug: add JWT secret empty check logging
Build and Deploy / build (push) Successful in 2m43s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 23:56:30 +00:00
admin eb995760f7 fix: upgrade ONNX Runtime to 1.18.0 for IR v10, mark Detection models as optional
Build and Deploy / build (push) Successful in 2m43s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 23:49:03 +00:00
admin 1ff489971b fix: register API routes before NoRoute to prevent route hijacking
Build and Deploy / build (push) Successful in 2m42s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 23:41:09 +00:00
admin ad6a130a6f fix: update DoubleRotate to match new signature with all parameters
Build and Deploy / build (push) Successful in 2m43s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 22:54:03 +00:00
admin 28998964ef fix: 移除未使用的 import
Build and Deploy / build (push) Failing after 2m55s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 22:45:08 +00:00
admin 5c3b7ef81d fix: CastTypeInfoToTensorInfo 使用 const 指针
Build and Deploy / build (push) Failing after 2m55s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 22:37:14 +00:00
admin 1962f75a47 fix: ONNX Runtime API 兼容 - 添加 OrtEnv 环境
Build and Deploy / build (push) Failing after 2m27s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 22:29:13 +00:00
admin 145e8c99ba fix: 添加 ONNX Runtime 头文件路径和 fstream 头文件
Build and Deploy / build (push) Failing after 2m25s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 22:24:13 +00:00
admin 015b1406e2 feat: 完整实现 CGO 版本 - ONNX Runtime + OpenCV DNN (YOLO)
Build and Deploy / build (push) Failing after 2m22s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 21:27:26 +00:00
admin 7afefe5e9f feat: 实现 ONNX Runtime CGO 绑定和 OCR/Math 推理逻辑
Build and Deploy / build (push) Failing after 2m23s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 21:14:34 +00:00
admin 5dacb61122 fix: 恢复模型原始文件名
Build and Deploy / build (push) Successful in 2m37s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 19:55:23 +00:00
admin e9d3bdbc68 fix: 从 Gitea 仓库下载模型(无需认证)
Build and Deploy / build (push) Has been cancelled
Build and Deploy / deploy (push) Has been cancelled
2026-07-16 19:52:57 +00:00
admin a3750ffce4 feat: 启动时自动下载缺失的模型文件
Build and Deploy / deploy (push) Has been cancelled
Build and Deploy / build (push) Has been cancelled
2026-07-16 19:51:13 +00:00
admin 9776cb35ef fix: Docker 镜像包含模型文件
Build and Deploy / build (push) Successful in 2m40s
Build and Deploy / deploy (push) Has been cancelled
2026-07-16 19:49:14 +00:00
admin d07f5011f8 feat: 添加 OCR/数学/旋转/相似度识别模型
Build and Deploy / build (push) Successful in 2m38s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 19:41:37 +00:00
admin 14094688d1 chore: 添加模型目录和下载说明
Build and Deploy / build (push) Successful in 2m7s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 19:40:36 +00:00
admin 0f04bd4bbf fix: 添加 /app/data 到配置文件搜索路径
Build and Deploy / build (push) Successful in 2m5s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 19:38:35 +00:00
admin 8c79918daa fix: 登录成功后跳转首页
Build and Deploy / build (push) Successful in 2m6s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 19:28:04 +00:00
admin 349b5985b7 fix: 移除不必要的类型转换 user.ID 已是 uint
Build and Deploy / build (push) Successful in 2m8s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 19:07:36 +00:00
admin 84cac4ea77 fix: 安装后设置全局配置,提示重启容器
Build and Deploy / build (push) Failing after 1m51s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 19:00:10 +00:00
admin a6b03a6152 fix: 安装时创建管理员用户,登录从数据库验证
Build and Deploy / build (push) Failing after 1m49s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 18:50:54 +00:00
admin 67bef239b0 fix: 使用绝对路径 /app/data 解决容器内路径问题
Build and Deploy / build (push) Successful in 2m3s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 18:29:07 +00:00
admin 7d401326bc fix: 直接写入配置文件解决 viper 路径问题
Build and Deploy / build (push) Successful in 2m9s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 18:25:02 +00:00
admin 753098e7fe fix: 安装页面保存配置失败 - 确保目录存在并正确创建配置文件
Build and Deploy / build (push) Successful in 2m56s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 16:11:55 +00:00
admin ffd99a25c3 fix: add Image struct definition in opencv.cpp
Build and Deploy / build (push) Successful in 2m4s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 13:30:24 +00:00
admin 6bbec4da4a fix: use pkg-config for opencv4 in CGO
Build and Deploy / build (push) Failing after 1m50s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 13:04:31 +00:00
admin ccae62e8bb fix: use pkg-config path for OpenCV
Build and Deploy / build (push) Failing after 1m50s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 13:03:10 +00:00
admin 4bf7f609e7 fix: use CPPFLAGS for OpenCV include path
Build and Deploy / build (push) Failing after 1m56s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 12:50:39 +00:00
admin 2230a4404f fix: add OpenCV 4 include path in CGO directives
Build and Deploy / build (push) Failing after 1m26s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 12:33:18 +00:00
admin 0af1039130 fix: set CGO_CFLAGS for OpenCV 4 include path
Build and Deploy / build (push) Failing after 1m42s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 12:22:36 +00:00
admin b827c75ead fix: use Debian bookworm for better OpenCV support
Build and Deploy / build (push) Failing after 1m56s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 12:11:12 +00:00
admin d894592355 fix: add PKG_CONFIG_PATH and remove unused import
Build and Deploy / build (push) Failing after 1m47s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 11:01:15 +00:00
admin dd57797864 fix: use opencv package name instead of opencv-libs
Build and Deploy / build (push) Failing after 2m8s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 10:52:34 +00:00
admin 7faa3d0762 fix: enable CGO and install OpenCV for docker build
Build and Deploy / build (push) Failing after 22s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 10:47:15 +00:00
admin 705508c28e fix: regenerate go.mod and go.sum with correct dependencies
Build and Deploy / build (push) Failing after 31s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 10:42:10 +00:00
admin 8258160f95 fix: simplify CI/CD and Dockerfile
Build and Deploy / build (push) Failing after 52s
Build and Deploy / deploy (push) Has been skipped
- Use github.actor instead of gitea.actor
- Add act-latest container for Gitea Actions
- Simplify Dockerfile to use alpine
- Remove CGO dependencies
- Fix frontend build path
2026-07-16 10:33:23 +00:00
admin a79e8fb853 fix: rename GITEA_TOKEN to TOKEN
Build and Deploy / build (push) Failing after 6s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 10:24:04 +00:00
admin 882473eebb fix: use gitea.actor for username instead of variable
Build and Deploy / build (push) Failing after 3s
Build and Deploy / deploy (push) Has been skipped
2026-07-16 10:21:05 +00:00
admin 3df52e1265 fix: use Gitea Container Registry instead of Aliyun
Build and Deploy / build (push) Failing after 6s
Build and Deploy / deploy (push) Has been skipped
- Changed registry from Aliyun to git.viaeon.com
- Use GITEA_TOKEN secret for authentication
- Use GITEA_USERNAME variable for username
- Image name: git.viaeon.com/admin/anticaptcha
2026-07-16 10:16:29 +00:00
admin 731e00855b fix: CI/CD build errors
Build and Deploy / build (push) Failing after 3s
Build and Deploy / deploy (push) Has been skipped
- Simplified go.mod with all dependencies
- Fixed generateRandomSecret function
- Updated Dockerfile to use debian bookworm
- Simplified CI workflow to single job
- Fixed Gitea Actions syntax (github.ref)
2026-07-16 09:23:24 +00:00
admin 029e5ac0d0 fix: persist models directory in docker-compose
Build and Deploy / build-frontend (push) Failing after 3s
Build and Deploy / build-backend (push) Has been skipped
Build and Deploy / build-docker (push) Has been skipped
Build and Deploy / deploy (push) Has been skipped
2026-07-16 09:10:40 +00:00
admin 524c404194 feat: initial commit - Go + CGO captcha recognition service
Build and Deploy / build-frontend (push) Failing after 2s
Build and Deploy / build-backend (push) Has been skipped
Build and Deploy / build-docker (push) Has been skipped
Build and Deploy / deploy (push) Has been skipped
Features:
- Go + CGO ONNX/OpenCV wrapper for high performance
- SQLite (default) / MySQL database support
- Optional Redis caching
- JWT authentication system
- Multiple captcha recognition APIs:
  - OCR text recognition
  - Slider captcha matching
  - Image similarity comparison
  - Rotation captcha detection
  - Object detection
- React frontend with install wizard
- Docker and docker-compose support
- Gitea CI/CD pipeline

Project structure:
- cmd/server: Main entry point
- internal/: Core business logic
- pkg/onnx: ONNX Runtime CGO wrapper
- pkg/opencv: OpenCV CGO wrapper
- web/: React frontend
- deploy/: Deployment configs
- scripts/: Utility scripts
2026-07-16 08:56:38 +00:00