Commit Graph
6 Commits
Author SHA1 Message Date
Hermes 20b79b0445 fix(opencv): 阴影滑块按上游列扫描重写,修 findContours 三通道崩溃
Build and Deploy / build (push) Failing after 3m22s
Build and Deploy / deploy (push) Skipped
上一版只加了尺寸校验,同尺寸输入暴露出第二个 bug:
  threshold 之后仍是 CV_8UC3 就交给 findContours →
  "FindContours supports only CV_8UC1 images"

现在按上游 AntiCAP solve_slider_comparison 的算法重写:
  · absdiff 逐通道,任一道 > 80 记为差异像素(对齐 image.point(lambda x: 255 if x > 80 else 0))
  · 三通道掩码用 cv::compare + bitwise_or 合成单通道 CV_8UC1
  · 逐列扫描:差异像素 >= 5 的列 → start_x = 列号+2,start_y = 首次达标行号-5(与上游一致)
  · 列扫描找不到时退回最大差异区域外接矩形(保留旧路径作为兜底)
  · 尺寸不一致返回 -2,Go 侧映射成 400
2026-12-03 08:43:24 +08:00
admin 8dcbfb5535 fix: handle YOLO11 output format [1,5,8400] with transpose for OpenCV DNN
Build and Deploy / build (push) Successful in 2m36s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 08:54:23 +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 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 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