Hermes
610e643475
fix(build): libgomp1 单独成层,避免 opencv 那个 100MB+ 层失效导致推送 413
...
Build and Deploy / build (push) Failing after 3m46s
Build and Deploy / deploy (push) Skipped
上一次构建编译是通过的(onnx.cpp 新函数只有 unused-result 警告),
失败在最后 push:Cloudflare 返回 413 Payload Too Large。
原因是我把 libgomp1 加进了运行阶段原有的 apt 行 —— 那一层包含整套 opencv 运行库
(100MB+),内容一变就必须重新上传,而 git.viaeon.com 在 CF 橙云后面,CF 对请求体有 100MB 上限。
现在 libgomp1 单独一个 RUN,opencv 那层保持原样、走缓存。
2026-12-03 08:33:42 +08:00
Hermes
34085b9c42
fix(build): onnxruntime 改从 NuGet 取,GitHub release 下载地址已 404
...
Build and Deploy / build (push) Failing after 3m6s
Build and Deploy / deploy (push) Skipped
CI 在 Dockerfile 的 wget 那层失败(exit code 8)。核实后:
· api.github.com/repos/microsoft/onnxruntime → 404(对照组 torvalds/linux、
81NewArk/AntiCAP 都是 200,说明不是本机网络问题)
· releases/download/v1.18.0/onnxruntime-linux-x64-1.18.0.tgz → 404
· PyPI 的 onnxruntime wheel 不含 C/C++ 头文件,也没有独立的 libonnxruntime.so,不能用于 CGO 链接
改用 NuGet 包 Microsoft.ML.OnnxRuntime/1.18.0(104MB,含 build/native/include/*.h 与
runtimes/linux-x64/native/libonnxruntime.so)。运行阶段补 libgomp1(CPU 版依赖 OpenMP)。
顺带:仓库根目录的 test_full_rotation.go 之前会导致 go build ./... 把它们算进包,
本次未动,保持原状。
2026-12-03 08:28:37 +08:00
admin
5652012b2f
fix: add frontend build stage to Dockerfile, update npm install to include devDependencies
Build and Deploy / build (push) Successful in 2m40s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 02:06:06 +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
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
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
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
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
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
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
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