← 开源
yinaoxiong

12306_code_server

该仓库用于构建自托管的12306验证码识别服务器

ApplicationsObject detectionPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
534
Star
166
Fork
+-1
本周
1
贡献者
创建于 2019-10-05 · 更新于 2026-10-14 · 今日第 17550 名
主要开发者
hhzrz

yinaoxiong/12306_code_server 排名第 17,550,有 534 个星标。

同类别比较

yinaoxiong/12306_code_server 排名第 17,550,此处有 8 个同类条目;soulteary/docker-llama2-chat 排名第 17,548。

同类别比较
名称排名指标
clawwork-ai/ClawWork17,542
语言:
TypeScript
星标数:
534
分叉数:
72
codefuse-ai/CodeFuse-CGM17,543
语言:
Python
星标数:
534
分叉数:
56
简介:
[NeurIPS 2025] A Graph-based LLM Framework for Real-world SE Tasks
fleuristes/fleur17,544
语言:
TypeScript
星标数:
534
分叉数:
40
简介:
The easiest way to discover and install MCPs
soulteary/docker-llama2-chat17,548
语言:
Python
星标数:
534
分叉数:
82
简介:
Play LLaMA2 (official / 中文版 / INT4 / llama2.cpp) Together! ONLY 3 STEPS! ( non GPU / 5GB vRAM / 8~14GB vRAM)
ObservedObserver/async-code17,560
语言:
TypeScript
星标数:
533
分叉数:
50
简介:
Use Claude Code / CodeX CLI to perform multiple tasks in parallel with a Codex-style UI. Your personal codex/cursor-background agent. Claude Code UI.
Tencent/CognitiveKernel-Pro17,563
语言:
Python
星标数:
533
分叉数:
57
简介:
Deep Research Agent CognitiveKernel-Pro from Tencent AI Lab. Paper: https://arxiv.org/pdf/2508.00414
sopaco/saga-reader17,574
语言:
Rust
星标数:
533
分叉数:
30
简介:
💪🏻 Blazing-Fast and Extremely-Lightweight Internet Reader driven by AI! Your AI-Powered think tank assistant.(Built with Rust, Tauri & Svelte)
ARCANGEL0/EVA17,577
语言:
Python
星标数:
532
分叉数:
117
简介:
EVA is an AI-assisted penetration testing agent that enhances offensive security workflows by providing structured attack guidance, contextual analysis, and multi-backend AI integration.
关键参数与规格
关键参数与规格
参数值
语言Python
类别Applications
子类别Object detection
关键词OCR
星标数534
分叉数166
贡献者1
创建日期2019-10-05
更新日期2026-10-14
1 天星标数0
7 天星标数-1
排名17,550
上次排名19,077
排名变化1,527
7 天星标排名18,008
上次 7 天星标排名17,948
7 天星标排名变化-60
总星标排名18,395
上次总星标排名18,372
总星标排名变化-23
README 摘录

12306验证码识别服务器 该项目用于构建自托管的12306验证码识别服务器,本项目的全部模型和部分代码来自于此项目 easy12306,使用该项目构建的api符合 12306购票小助手云打码格式可以直接调用。 提供一

个部署好的线上版本, 接口规范 请求 Method: **POST** URL: Headers: Content-Type: application/x-www-form-urlencoded Body: imageFile=>Base64 encoding of the image 响应 Headers:Content-Type:application/json Body: python版本支持 [x] 3. 7 平台支持 [x] amd64 [x] arm64v8 [x] arm32v7 其中arm平台建议通过docker运行 部署 docker部署(推荐) 使用

docker可以使用如下命令快速部署: docker-compose部署(推荐) 通过源码部署 1. 安装依赖 自行根据平台和python选择对应的tflite(下面的例子为amd64,python3. 致谢 easy12306 提供项目运行的model 12306购票小助手源于该项目的一个issue ~~tensorflow-on

-arm提供arm上运行的tensorflow python包~~ v1.

常见问题

记录了多少星标和分叉?

yinaoxiong/12306_code_server 有 534 个星标和 166 个分叉。

仓库排名是多少?

yinaoxiong/12306_code_server 排名第 17,550。

记录的语言和类别是什么?

yinaoxiong/12306_code_server 有 534 个星标,语言为 Python,类别为 Applications。

哪个仓库排名最接近?

yinaoxiong/12306_code_server 与 soulteary/docker-llama2-chat 比较,后者排名第 17,548,有 534 个星标。

README

12306验证码识别服务器

该项目用于构建自托管的12306验证码识别服务器,本项目的全部模型和部分代码来自于此项目 easy12306,使用该项目构建的api符合 12306购票小助手云打码格式可以直接调用。

提供一个部署好的线上版本, https://12306.yinaoxiong.cn,部署在腾讯云1核1G的学生机上不保证可用性,服务状态可以通过 https://stats.uptimerobot.com/oyKyLhjJQ/783635180查看.

接口规范

请求

  • Method: POST
  • URL: /verify/base64/
  • Headers: Content-Type: application/x-www-form-urlencoded
  • Body: imageFile=>Base64 encoding of the image

响应

  • Headers:Content-Type:application/json
  • Body:
{
    "code": 0,
    "data": [
        "1",  //答案图片的编号数组
        "3"
    ],
    "massage": "识别成功"
}
{
    "code": 1,
    "data": [
    ],
    "massage": "识别失败"
}

python版本支持

  • [x] 3.5-3.7

平台支持

  • [x] amd64
  • [x] arm64v8
  • [x] arm32v7

其中arm平台建议通过docker运行

部署

docker部署(推荐)

使用docker可以使用如下命令快速部署:

docker run -d -p 8080:80 --name 12306 yinaoxiong/12306_code_server

docker-compose部署(推荐)

version: "3"

services:
  code_12306:
    image: yinaoxiong/12306_code_server
    ports:
      - 5002:80 #可以根据需要修改端口
    environment:
      - WORKERS=1 #gunicorn works 默认为1可以根据服务器配置自行调整
    restart: always
  

通过源码部署

  1. 克隆并进入项目

    git clone https://github.com/YinAoXiong/12306_code_server.git
    cd 12306_code_server
    
  2. 安装依赖 自行根据平台和python选择对应的tflite(下面的例子为amd64,python3.7,其他情况对应的下载地址见 https://www.tensorflow.org/lite/guide/python,可自行在requirements.txt中替换)

    pip3 install -r requirements.txt
    
  3. 下载模型文件

    bash download_model.sh
    

    从GitHub下载慢的话可以选择执行下面的命令

    wget -c https://cdn.yinaoxiong.cn/models/image.model.tflite
    wget -c https://cdn.yinaoxiong.cn/models/text.model.tflite
    
  4. 运行 默认workers为1,使用80端口,可以自行修改 gunicorn.conf

    gunicorn app:app -c gunicorn.conf.py
    

不推荐在arm平台上使用源码部署,依赖安装有些麻烦.

致谢

排名相邻
同类项目