MCPcopy Index your code
hub / github.com/6Superman6/yibiao_rec

github.com/6Superman6/yibiao_rec @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,867 symbols 5,966 edges 178 files 71 documented · 4%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

油田仪表智能识别系统

介绍

本系统使用python开发,是一个django项目,主要功能包括多类型指针式仪表识别、文字识别、仪表模板管理等。仪表识别的过程为:使用OCR文字识别检测待测仪表图像的模板类型,读取模板图像和其对应的参数信息;然后进行模板匹配定位仪表位置,再获取指针角度以及计算仪表数值。

软件架构

本系统使用python开发,是一个django项目,需要先搭建django环境,数据库中的表可以使用相应命令自动生成。本系统涉及到目标检测,所以需要有yolov5环境(自行安装)

安装教程

(1)安装django

pip install django

(2)配置数据库相关操作,安装第三方模块

pip install mysqlclient

(3)自己先去MySQL创建一个数据库,配置数据库连接settings.py

# DATABASES = {
#     'default': {
#         'ENGINE': 'django.db.backends.sqlite3',
#         'NAME': BASE_DIR / 'db.sqlite3',
#     }
# }

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'django_pj',  # 数据库名字
        'USER': 'root',
        'PASSWORD': '123456',
        'HOST': '127.0.0.1',  # 那台机器安装了MySQL
        'PORT': 3306,
    }
}

(4)数据库表信息在models.py文件中,执行命令自动创建数据库中的表

>>>python manage.py makemigrations
>>>python manage.py migrate

(5)启动,直接运行project_start.py即可

使用说明

用户角色:用户和管理员,管理员和用户登录的界面不一样,管理员的权限更多,在注册时默认为用户

1663558139937

用户一开始可以在数据库admin表中自己添加一个管理员账号

用户名:root,密码:123456(加密之后b2cb09feda40ad159c1a6c864363ae1f),role为2

1663558202737

系统页面

1663558246853

1663558289000

1663558329101

1663558359363

用户在添加模板信息时先上传模板,再点击生成模板库信息

Core symbols most depended-on inside this repo

update
called by 74
django_yibiao/yibiao_ocr/yolov5_master/utils/torch_utils.py
info
called by 35
django_yibiao/yibiao_ocr/yolov5_master/models/yolo.py
save
called by 35
django_yibiao/yibiao_ocr/yolov5_master/models/common.py
show
called by 26
django_yibiao/yibiao_ocr/yolov5_master/models/common.py
colorstr
called by 23
django_yibiao/yibiao_ocr/yolov5_master/utils/general.py
html
called by 23
django_yibiao/my_app/utils/pagination.py
time_synchronized
called by 20
django_yibiao/yibiao_ocr/yolov5_master/utils/torch_utils.py
plot
called by 18
django_yibiao/yibiao_ocr/yolov5_master/utils/metrics.py

Shape

Function 1,610
Method 163
Class 93
Route 1

Languages

TypeScript73%
Python27%

Modules by API surface

django_yibiao/my_app/static/js/echarts.min.js1,218 symbols
django_yibiao/my_app/static/js/jquery-3.6.0.min.js81 symbols
django_yibiao/yibiao_ocr/yolov5_master/models/common.py59 symbols
django_yibiao/yibiao_ocr/yolov5_master/utils/general.py47 symbols
django_yibiao/yibiao_ocr/yolov5_master/utils/datasets.py47 symbols
django_yibiao/my_app/utils/form.py24 symbols
django_yibiao/my_app/static/plugins/bootstrap-3.4.1/js/bootstrap.js24 symbols
django_yibiao/yibiao_ocr/yolov5_master/utils/torch_utils.py23 symbols
django_yibiao/yibiao_ocr/yolov5_master/utils/plots.py22 symbols
django_yibiao/yibiao_ocr/yolov5_master/utils/wandb_logging/wandb_utils.py20 symbols
django_yibiao/yibiao_ocr/yolov5_master/utils/activations.py20 symbols
django_yibiao/yibiao_ocr/yolov5_master/models/experimental.py19 symbols

For agents

$ claude mcp add yibiao_rec \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page