驾驶记录图像识别用C#.net [英] Driver Logs Image Recognition in C#.net

查看:130
本文介绍了驾驶记录图像识别用C#.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道该怎么做图像识别,但我必须从下面图像中提取红概述部分和阅读图表,假设如下:

I have no idea how to do image recognition, but I have to extract the red-outlined portion from below image and read the graph, supposing the following:

1 - 退出值班结果
2 - 梦之泊位结果
3 - 驾驶结果
4 - 值班

1 - Off Duty
2 - Sleeper Berth
3 - Driving
4 - On Duty

我方案应读取图表,并且在这个例子中,显示的333333333111111222222222444444

My program should read the graph and, in this example, show a result of 333333333111111222222222444444

推荐答案

假设有没有对齐的问题,你可以如下:

Assuming there are no alignment issues, you could divide the task as follows


  1. 划分任务从扫描
  2. $ b $削减红色框矩形b
  3. 异或以空白文件的相同区域的内容(这将衰减网格线)

  4. 所得图像在X方向上扫描

  5. 查找最大Y方向

  6. 映射发现Y值到所需的范围

  1. cut the red box rectangle from scan
  2. XOR the resulting image with the content of the same region of a blank document (this will attenuate the grid lines)
  3. scan in the X direction
  4. look for maximum in the Y direction
  5. map the found Y values to ranges you require

这篇关于驾驶记录图像识别用C#.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆