# 防疫码识别(核心识别模块)
**Repository Path**: osivy/ioepc-py
## Basic Information
- **Project Name**: 防疫码识别(核心识别模块)
- **Description**: 防疫码识别(核心识别模块)
- **Primary Language**: Python
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-10-18
- **Last Updated**: 2023-08-30
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# 防疫码识别(核心识别)
## 说明
### 创建虚拟环境
```shell
conda create -n GREENOCR python=3.9
```
### 切换conda环境
```shell
conda activate GREENOCR
```
### 安装依赖
```shell
pip install -r requirements.txt
```
## 参考
注意参考引用
使用 Python 自动识别防疫健康码 | 素履独行:
## API
### 提取防疫码信息
+ URL:
+ Http method:POST
+ 请求参数:
```http
form-data:
{
name:xx
number:xxxxxxxx
image_1:(file)
image_2:(file)
}
```
+ 返回结果
```json
{
"code": 200,
"data": {
"hea_color": "绿色",
"na_reptime": "9月28日19:52:26",
"na_status": ">7天",
"na_time": "无",
"name": "张三",
"near_na_rep": [
{
"data_source": "温州",
"na_org": "核酸移动监测平台",
"na_result": "6小时内阴性",
"na_time": "10月6日17:14:15",
"rep_time": "10月7日09:26:56"
},
{
"data_source": "温州",
"na_org": "核酸移动监测平台",
"na_result": "84小时内阴性",
"na_time": "10月3日17:09:23",
"rep_time": "10月4日01:08:57"
}
],
"na_status": "18小时",
"na_time": "",
"name": "张三",
"number": "20002090256",
"trip_color": "绿色"
},
"status": "ok"
}
```