GithubHelp home page GithubHelp logo

6superman6 / yibiao_rec Goto Github PK

View Code? Open in Web Editor NEW
23.0 1.0 6.0 334.73 MB

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

License: MIT License

Python 94.14% Less 1.96% SCSS 1.99% HTML 1.80% Dockerfile 0.06% Shell 0.05%
python rec yibiao

yibiao_rec's Introduction

油田仪表智能识别系统

介绍

本系统使用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

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

yibiao_rec's People

Contributors

6superman6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.