-
Notifications
You must be signed in to change notification settings - Fork 8
feat: implement word-click solver using YOLOv8 and Siamese similarity #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
a4e6dec
feat: implement word-click solver using YOLOv8 and Siamese similarity
lifefloating b9bcf4e
docs: update README
lifefloating 16e0cef
feat: add dependency groups
lifefloating a62268b
refactor: update test cases for word_click pipeline
lifefloating File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,27 @@ | ||
| # Copy to .env and fill in. .env is gitignored. | ||
| # 复制为 .env 后填写;.env 已在 .gitignore 中忽略 | ||
| TCAPTCHA_BASE_URL=https://t.captcha.qq.com | ||
| TCAPTCHA_LLM_API_KEY=sk-your-relay-key-here | ||
| TCAPTCHA_LLM_BASE_URL=https://your-relay.example.com | ||
|
|
||
| # --- LLM 视觉求解器 --- | ||
| # 只有 image_select pipeline 需要;word_click 已切换到本地 YOLO + Siamese | ||
| # (见 `--extra word-click`),除非你要用 image_select,否则下面几项留空即可。 | ||
| TCAPTCHA_LLM_API_KEY= | ||
| TCAPTCHA_LLM_BASE_URL= | ||
| TCAPTCHA_LLM_MODEL=gpt-5.4 | ||
| TCAPTCHA_LLM_TIMEOUT=30 | ||
|
|
||
| # --- word_click / ONNX Runtime 调优 --- | ||
| # 执行后端:默认 "auto" 按 CUDA > ROCm > DML > CoreML > CPU 的顺序挑选。 | ||
| # macOS 下 CoreML 首次图编译较慢,通常固定为 "cpu" 更快。 | ||
| # 可选值:auto | cpu | cuda | rocm | dml | coreml | ||
| # TCAPTCHA_ORT_BACKEND=cpu | ||
| # | ||
| # ORT intra-op 线程数,默认 min(4, os.cpu_count())。 | ||
| # 52×52 的 Siamese 模型过 4 线程后会反向变慢,没实测过就别动。 | ||
| # TCAPTCHA_ORT_INTRA_OP_THREADS=4 | ||
|
|
||
| # --- serve 模式(crack-tcaptcha serve) --- | ||
| # POST /solve 的共享密钥;设置后客户端必须在请求头带 `X-SK`。 | ||
| # TCAPTCHA_SERVE_SK=change-me | ||
| # TCAPTCHA_SERVE_HOST=127.0.0.1 | ||
| # TCAPTCHA_SERVE_PORT=9991 | ||
| # TCAPTCHA_SERVE_WORKERS=4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| src/crack_tcaptcha/solvers/models/*.onnx filter=lfs diff=lfs merge=lfs -text | ||
| src/crack_tcaptcha/solvers/models/*.ttf filter=lfs diff=lfs merge=lfs -text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,5 +13,4 @@ site | |
| *.so | ||
| *.whl | ||
| .env | ||
| *.onnx | ||
| origin_papers/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.