Hermes
5e9cabeb2f
ci: 镜像改推 reg.viaeon.com(灰云直连),并移除会覆盖线上 compose 的 deploy 作业
...
Build and Push / build (push) Successful in 4m22s
为什么要换推送入口:
git.viaeon.com 在 Cloudflare 橙云后面,CF 对请求体有 100MB 上限;
Dockerfile 里 opencv 运行库那一层超过 100MB,任何一次缓存失效都会让 push
被拦成 413 Payload Too Large(本次修 bug 时已经踩到两次)。
做法:
· 新建 reg.viaeon.com(Cloudflare 只有灰云 A 记录 → 54.39.129.3,不经 CF)
· leb 上加 nginx 站点:client_max_body_size 0、关 buffering、反代 127.0.0.1:3000
· acme.sh + Cloudflare DNS-01 签 LE 证书(装到站点 config/,reloadcmd reload nginx,
acme 自带续期 cron;ARI 续期窗口 2027-01-31)
· CI 改为 login/push reg.viaeon.com/admin/anticaptcha:latest
· 仓库路径不变(admin/anticaptcha),线上仍用 git.viaeon.com 拉取
实测:710MB 镜像经 reg.viaeon.com push 成功(大层不再 413),
再用 git.viaeon.com 拉同一 tag,digest 一致,证明两个入口是同一个 registry。
顺带删掉 deploy 作业:它会重写 docker-compose.yml,写回
JWT_SECRET=anticaptcha-fixed-jwt-secret-2024 和 "6688:6688"(0.0.0.0 公网绑定),
一旦跑起来会把线上的密钥轮换和「只绑 127.0.0.1」全部覆盖掉。
2026-12-03 09:14:12 +08:00
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
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
Hermes
68f181e0ac
fix: 相似度改走双输出 Siamese(对齐上游 AntiCAP),阴影滑块补尺寸校验
...
Build and Deploy / build (push) Failing after 3m8s
Build and Deploy / deploy (push) Skipped
对照上游 https://github.com/81NewArk/AntiCAP 逐项核对后修两处:
1) 相似度(internal/captcha/handler.go + pkg/onnx)
上游是 outputs = session.run(None, feed); emb1, emb2 = outputs[0], outputs[1]
—— 模型本身分别吐出两路 embedding。
旧实现只 run 了 1 个输出(onnx.cpp 里 Run 的 output_count = 1),
再把这个张量从中间切成两半当两个 embedding,
实测四组完全不同的输入返回同一个值(0.49188173),等于接口失效。
现在新增 onnx_run_dual_input_two_outputs 取前两个输出,
两路各算 L2 距离后 1/(1+dist);单输出模型保留旧路径回退并打日志。
2) 阴影滑块(pkg/opencv + internal/handler)
上游 solve_slider_comparison 要求 target 与 background 同尺寸
(PIL ImageChops.difference 的硬前提),旧实现不校验,
尺寸不同时直接抛 OpenCV -209 尺寸不匹配,返回 500。
现在前置校验并返回 400 + 明确原因;SliderMatch 也补了「滑块不能大于背景」的校验。
预处理与旋转逻辑核对结论:preprocessSiamese(105×105 / ImageNet norm)与
preprocessRotation(正方形中心裁剪 + h/√2 + 224 / ImageNet norm)与上游一致,未改。
2026-12-03 08:23:51 +08:00
admin
47970834ec
fix: remove ImageNet normalization for YOLO (match Ultralytics default)
...
Build and Deploy / build (push) Successful in 2m45s
Build and Deploy / deploy (push) Successful in 10s
- Ultralytics YOLO only does /255 normalization, no ImageNet mean/std
- This was causing detection box coordinate drift
2026-07-18 05:37:54 +00:00
admin
e423f2ddd3
docs: add comments to rotation preprocessing
Build and Deploy / build (push) Successful in 2m40s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 23:14:27 +00:00
admin
234d9a9acb
fix: use original parameter names for similarity API
...
Build and Deploy / build (push) Successful in 2m41s
Build and Deploy / deploy (push) Successful in 9s
- Change img1_base64/img2_base64 to image1_base64/image2_base64
- Match original AntiCAP API parameter names
2026-07-17 21:22:31 +00:00
admin
10a2acaf7b
fix: use letterbox preprocessing for YOLO (same as ultralytics)
...
Build and Deploy / build (push) Successful in 3m12s
Build and Deploy / deploy (push) Successful in 9s
- Keep aspect ratio with gray padding instead of stretching
- Add ImageNet normalization (mean/std)
- Proper coordinate restoration with offset/scale
- This matches original Python ultralytics preprocessing
2026-07-17 21:02:13 +00:00
admin
16e49a6d9e
fix: lower threshold for small order images (284x106)
Build and Deploy / build (push) Successful in 2m42s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 20:52:36 +00:00
admin
1187a35fcf
fix: correct YOLO output format [features, boxes] with clear comments
Build and Deploy / build (push) Successful in 2m41s
Build and Deploy / deploy (push) Successful in 8s
2026-07-17 20:25:23 +00:00
admin
3ef9742376
fix: YOLO output format is [boxes, features] not [features, boxes]
Build and Deploy / build (push) Successful in 2m40s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 20:18:14 +00:00
admin
e2ac2fbfcc
debug: print YOLO output values and max confidence
Build and Deploy / build (push) Successful in 2m43s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 14:43:59 +00:00
admin
c096e364cd
fix: lower confidence threshold for small order images
Build and Deploy / build (push) Successful in 2m42s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 14:18:48 +00:00
admin
5cb160432a
fix: scale YOLO coordinates from 640x640 to original image size, add debug output
Build and Deploy / build (push) Successful in 2m42s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 13:14:41 +00:00
admin
b0555e2281
feat: implement YOLO detection using ONNX Runtime (OpenCV 4.6 incompatible with YOLO11)
Build and Deploy / build (push) Successful in 2m43s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 12:59:36 +00:00
admin
588f0a846b
fix: another UTF-8 string index bug in debug output
Build and Deploy / build (push) Successful in 2m44s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 12:54:32 +00:00
admin
e17549c508
docs: add detailed comment for UTF-8 charset fix
Build and Deploy / build (push) Successful in 2m39s
Build and Deploy / deploy (push) Successful in 1s
2026-07-17 12:45:34 +00:00
admin
f7cfc4a888
fix: use string slice for CHARS to handle UTF-8 multibyte chars correctly
Build and Deploy / build (push) Successful in 2m43s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 12:43:17 +00:00
admin
5a86d68228
debug: print full CHARS mapping and all 51 indices
Build and Deploy / build (push) Successful in 2m41s
Build and Deploy / deploy (push) Successful in 10s
2026-07-17 12:33:49 +00:00
admin
65c77452c2
debug: show raw indices and fix boundary check
Build and Deploy / build (push) Successful in 2m43s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 12:26:31 +00:00
admin
ae4bf8dd36
debug: print argmax results for Math CTC decode
Build and Deploy / build (push) Successful in 2m42s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 12:19:55 +00:00
admin
0145bf9e44
debug: add logging for Math ONNX output
Build and Deploy / build (push) Successful in 2m41s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 12:12:48 +00:00
admin
a3665ed63a
fix: correct Math decode - output is [num_positions, batch, num_chars]
Build and Deploy / build (push) Successful in 3m3s
Build and Deploy / deploy (push) Successful in 11s
2026-07-17 11:53:17 +00:00
admin
f2bc0ecdb2
fix: correct Math model output format - [T,B,C] not [C,B,T]
Build and Deploy / build (push) Successful in 2m45s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 11:48:15 +00:00
admin
6c123b7231
fix: correct Math model output transpose from [C,B,T] to [B,T,C]
Build and Deploy / build (push) Successful in 2m44s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 11:38:24 +00:00
admin
2fceca847f
fix: use separate variable for evalMathExpression result
Build and Deploy / build (push) Successful in 2m43s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 11:25:29 +00:00
admin
7dae9a0901
fix: avoid GetOutputShape CGO crash by using fixed output dimensions
Build and Deploy / build (push) Failing after 2m24s
Build and Deploy / deploy (push) Has been skipped
2026-07-17 11:02:00 +00:00
admin
dc58cc1dba
fix: add panic recovery and boundary checks for Math function
Build and Deploy / deploy (push) Has been cancelled
Build and Deploy / build (push) Has been cancelled
2026-07-17 10:59:47 +00:00
admin
89b688424a
fix: rename min function to avoid conflict with builtin
Build and Deploy / build (push) Successful in 2m39s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 10:57:45 +00:00
admin
8c8787135d
fix: rewrite Math preprocessing and decode to match original AntiCAP implementation
Build and Deploy / build (push) Successful in 2m42s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 10:33:04 +00:00
admin
0c2225bdbb
fix: handle dynamic dimensions in Math output shape
Build and Deploy / build (push) Successful in 2m42s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 10:24:41 +00:00
admin
61f3223885
fix: correct Math CRNN output transpose and CTC decoding
Build and Deploy / build (push) Successful in 2m43s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 10:03:40 +00: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
d9cc4b0be0
fix: add mapstructure tags to config structs for proper viper parsing
Build and Deploy / build (push) Successful in 2m39s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 07:51:57 +00:00
admin
16e2f649b1
fix: set fixed JWT_SECRET environment variable in docker-compose
Build and Deploy / build (push) Successful in 2m42s
Build and Deploy / deploy (push) Successful in 8s
2026-07-17 07:46:25 +00:00
admin
90b12935a4
fix: ensure JWT secret always has a value
Build and Deploy / build (push) Successful in 2m39s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 07:28:17 +00:00
admin
8d9d3f79fa
fix: ensure JWT secret is initialized before generating tokens
Build and Deploy / build (push) Successful in 3m10s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 07:09:59 +00:00
admin
c08b9d622f
fix: redirect to home page after login success
Build and Deploy / build (push) Successful in 2m41s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 06:55:52 +00:00
admin
b697c21f8c
fix: align install API request structure with backend expectations
Build and Deploy / build (push) Successful in 2m40s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 06:46:09 +00: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
7bc8c74d5e
feat: redesign frontend UI with MoonShadow-style dark theme
...
Build and Deploy / build (push) Successful in 2m42s
Build and Deploy / deploy (push) Successful in 8s
- Update color scheme to purple/blue gradient accents
- Add modern card layouts with hover effects
- Implement token display with copy button
- Add stats dashboard on home page
- Improve install page with SQLite/MySQL toggle
- Add feature cards for supported functions
- Improve login/register pages with centered layout
- Add admin page with user management table
- Add responsive grid layouts
- Add fade-in animations
2026-07-17 01:48:01 +00:00
admin
bd8db9ba27
docs: mark Detection models as optional (YOLO11 requires special post-processing)
Build and Deploy / build (push) Successful in 3m10s
Build and Deploy / deploy (push) Successful in 1s
2026-07-17 01:32:36 +00:00
admin
94e0283069
fix: re-export YOLO with opset 11 for OpenCV 4.6 compatibility
Build and Deploy / build (push) Successful in 2m43s
Build and Deploy / deploy (push) Successful in 8s
2026-07-17 01:31:11 +00:00
admin
151f3f07e0
fix: convert YOLO PT to ONNX opset 12 for OpenCV 4.6 compatibility
Build and Deploy / build (push) Successful in 3m0s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 01:26:01 +00:00
admin
ee578298b9
fix: mark Detection models as optional (requires OpenCV 4.8+)
Build and Deploy / build (push) Failing after 2m58s
Build and Deploy / deploy (push) Has been skipped
2026-07-17 01:20:04 +00:00
admin
d918fb1654
fix: parse charset as JSON array instead of line-by-line
Build and Deploy / build (push) Successful in 5m43s
Build and Deploy / deploy (push) Successful in 9s
2026-07-17 00:42:42 +00:00
admin
c9f6a30f28
ci: add DEPLOY_PATH secret for flexible deployment directory
Build and Deploy / build (push) Successful in 2m44s
Build and Deploy / deploy (push) Successful in 8s
2026-07-17 00:11:23 +00:00
admin
4376cf936a
ci: auto-create docker-compose.yml if not exists on deploy
Build and Deploy / deploy (push) Has been cancelled
Build and Deploy / build (push) Has been cancelled
2026-07-17 00:10:11 +00:00
admin
6500719689
ci: enable auto-deploy on main branch push, use docker compose v2
Build and Deploy / deploy (push) Has been cancelled
Build and Deploy / build (push) Has been cancelled
2026-07-17 00:07:09 +00:00