地铁车辆车号图片字符位数不全情况下的识别方法

Method for Recognizing Incomplete Number of Characters in Subway Vehicle Images

  • 摘要:
    目的 当地铁车辆车号识别检测点受到现场安装环境影响,且照相机安装位置距离车身较近时,可能会导致照相机视野受限而无法拍全地铁车辆车号。针对这一情况,提出了一种地铁车辆车号图片字符位数不全情况下的识别方法。
    方法 该方法主要包括图像采集与车号识别这2个独立线程模块。图像采集模块连续抓拍地铁车身图像并将其按顺序保存到图片队列中,车号识别模块不断从图片队列中取图识别并从队列中删除该图。图像识别主要利用区域目标检测模型定位车号前2位区域、剩余位数区域以及贯通道区域,并分别将其保存到队列1、队列2和队列3中,再根据图片队列1、队列2和队列3的数据量判定是否到达车辆分节点。没有到达分节点则继续返回存图队列取图,到达分节点后则利用字符目标检测模型分别识别队列1和队列2中的字符结果,最后根据校验拼接逻辑拼接出完整的地铁车辆车号,将其作为当前车辆车号识别结果返回后台,并清空当前队列1、队列2、队列3中的数据。
    结果及结论 由现场实际过车测试结果可知,该方法在试运行的一周内识别率达到100%,识别速度满足实时性要求,可在不停车情况下实现地铁车辆车号图片字符位数不全时的完整车号识别。

     

    Abstract:
    Objective When subway vehicle number recognition detection points are affected by the onsite installation environment, and the camera's mounting position is too close to the vehicle body, it may lead to a limited camera field of view failing to capture the entire subway vehicle number. To address this situation, a recognition method for subway vehicle number images with incomplete character length is proposed.
    Method The method mainly consists of two independent thread modules of image acquisition and vehicle number recognition. The former continuously captures subway body images and saves them sequentially to an image queue. While the latter continuously retrieves images from the queue for recognition and then removes them from the queue. Image recognition mainly uses the region object detection model to locate the area of the first two vehicle number digits, the remaining digits area, and the gangway area, and save them to queue 1, queue 2, and queue 3 respectively. The system then determines whether the vehicle separation nod has been reached based on the data volume in these three queues. If the split point has not been reached, the system continues to retrieve images from the image queue. Once the split nod is reached, a character object detection model is used to individually recognize the characters results in queue 1 and queue 2. Finally, the complete subway vehicle number is stitched together using the validation stitching logic, and returned to the backend as the current vehicle number recognition result, then the data in queue 1, queue 2, and queue 3 are cleared.
    Result & Conclusion  The actual onsite running test results shows that with this method the recognition rate reaches 100% within one week of trial operation. The recognition speed meets the real-time requirements, allowing for complete vehicle number recognition from images with an incomplete character count, even while the subway is in motion without stopping.

     

/

返回文章
返回