[1]刘思樊,杨 洋,童恒建,等.影院票务辅助系统中座位信息的自动提取[J].计算机技术与发展,2024,34(04):193-197.[doi:10. 3969 / j. issn. 1673-629X. 2024. 04. 029]
 LIU Si-fan,YANG Yang,TONG Heng-jian,et al.Automatic Extraction of Seat Information in Cinema Ticketing Assistance System[J].,2024,34(04):193-197.[doi:10. 3969 / j. issn. 1673-629X. 2024. 04. 029]
点击复制

影院票务辅助系统中座位信息的自动提取()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
34
期数:
2024年04期
页码:
193-197
栏目:
新型计算应用系统
出版日期:
2024-04-10

文章信息/Info

Title:
Automatic Extraction of Seat Information in Cinema Ticketing Assistance System
文章编号:
1673-629X(2024)04-0193-05
作者:
刘思樊杨 洋童恒建唐杰辰
中国地质大学(武汉) 计算机学院,湖北 武汉 430000
Author(s):
LIU Si-fanYANG YangTONG Heng-jianTANG Jie-chen
School of Computer Science,China University of Geosciences,Wuhan 430000,China
关键词:
OpenCV轮廓提取 图像处理二值化数学形态学
Keywords:
OpenCVcontour extractionimage processingbinarizationmathematical morphology
分类号:
TP311. 1;TP399
DOI:
10. 3969 / j. issn. 1673-629X. 2024. 04. 029
摘要:
在电影院的票务系统中,一般分为线上售票和线下售票两种方式。 目前线上售票有成熟的软件工具,用户可以通过手机或电脑在线上自动选择各种类型的座位信息。 但在线下售票中,操作人员只能通过人工观察票务系统软件的屏幕界面,人工获取某个场次的不同类型的空余座位信息,然后再手工输入空余的座位信息到出票系统,打印纸质电影票后,然后进行售票。 针对线下售票需要人工操作这种不方便不快捷的情况,作者利用 C++语言,基于 OpenCV 图像处理库,首先快速读取票务系统软件的界面图片的彩色图像,将三通道的彩色图像转化为单通道的灰度图像。 利用 findContours( )函数获取图像的轮廓集,处理掉缺失和过小的轮廓后,通过外接矩形来获取轮廓的位置,将轮廓和外接矩形作为属性初始化对应的每个座位的实例化对象。 通过读取各个对象的矩形内的像素点信息,可以确定对象的颜色以及位置。 实现了对屏幕中各种不同类型的座位信息的自动识别与定位,准确率为 100% ;然后,自动输入到出票系统,自动打印出纸质电影票,达到了自动线下售票的目的。 开发此系统使用的技术方法,对于需要识别第三方软件界面的屏幕信息及其变化的场景,如:监控系统屏幕的变化,有一定的借鉴意义。
Abstract:
In the ticketing system of movie theaters,it is generally divided into two ways:online ticket sales and offline ticket sales. Atpresent,there are mature software tools for online?
ticket sales,and users can automatically select various types of seat information onlinethrough mobile phones or computers. However,in offline ticket sales,the operator can?
only manually obtain different types of vacant seatinformation for a certain session by manually observing the screen interface of the ticketing system software,and then manually enter thevacant seat information into the ticketing system,print paper movie tickets,and then sell tickets. In view of the inconvenient and unfastsituation that offline ticket sales require manual operation,the author uses C++ language,based on OpenCV image processing library,tofirst quickly read the color image of the interface picture of the ticketing system software,and convert the three-channel color image intoa single-channel grayscale image. The findContours( ) function is used to obtain the contour set of the image,
and after removing themissing and too small contours,the contour position is obtained through the external rectangle,and the contour and the external rectangleare initialized?
as the corresponding instantiated objects of each seat. By reading the pixel information within the rectangle of each object,you can determine the color and position of the object. It realizes the automatic identification and positioning of various types of seat information on the screen,with an accuracy rate of 100% . Then,it is automatically entered into the ticketing system and automaticallyprints out the paper movie ticket, which achieves the purpose of automatic offline ticket sales. The technical methods used in thedevelopment?
of this system have certain reference significance for scenarios that need to identify the screen information of third - partysoftware interfaces and their changes,such as monitoring the changes of the system screen.

相似文献/References:

[1]杜艳华 杨志强.基于照片自动提取人体尺寸信息的研究[J].计算机技术与发展,2010,(02):48.
 DU Yan-hua,YANG Zhi-qiang.Research on Automatical Information Extraction of Human Body Based on Photos[J].,2010,(04):48.
[2]于勇 张晖 林茂松.基于双目立体视觉三维重建系统的研究与设计[J].计算机技术与发展,2009,(06):127.
 YU Yong,ZHANG Hui,LIN Mao-song.Research and Design of the 3D Reconstruction System Based on Binocular Stereo Vision[J].,2009,(04):127.
[3]余健仪 郑胜林 潘保昌 邱海枫.基于改进的snake模型的嘴唇轮廓提取[J].计算机技术与发展,2008,(08):95.
 YU Jian-yi,ZHENG Sheng-lin,PAN Bao-chang,et al.Lip Contour Extracting Based on Improved Snake Model[J].,2008,(04):95.
[4]杨峰 孙涌 管淼 赵晔.扁平颗粒体轮廓提取算法研究与应用[J].计算机技术与发展,2007,(11):23.
 YANG Feng,SUN Yong,GUAN Miao,et al.Research and Application of Contour Extraction Algorithm for Flat Objects[J].,2007,(04):23.
[5]冯林 颜世鹏 孙焘.图像配准中的一种特定区域轮廓提取算法[J].计算机技术与发展,2006,(03):11.
 FENG Lin,YAN Shi-peng,SUN Tao.A Contour Extraction Algorithm of Special Region in Image Registration[J].,2006,(04):11.
[6]罗勤 曾致远 李波.桥墩安全监测系统中背景重建技术的研究[J].计算机技术与发展,2006,(06):23.
 LUO Qin,ZENG Zhi-yuan,LI Bo.Application of Video Surveillance Technology in Pier Safety Monitoring[J].,2006,(04):23.
[7]侯宏录 李宁鸟 刘迪迪 陈杰.智能视频监控中运动目标检测的研究[J].计算机技术与发展,2012,(02):49.
 HOU Hong-lu,LI Ning-niao,LIU Di-di,et al.Research on Moving Target Detection of Intelligent Video Surveillance[J].,2012,(04):49.
[8]晁衍凯 徐昱琳 杨永焕.基于嵌入式Linux的视觉伺服系统设计[J].计算机技术与发展,2012,(05):6.
 CHAO Yan-kai,XU Yu-fin,YANG Yong-huan.Embedded Linux Based Visual Servo System Design[J].,2012,(04):6.
[9]徐自越 李战明 李二超.OpenCV在焊缝实时检测与处理系统中的应用[J].计算机技术与发展,2012,(08):170.
 XU Zi-yue,LI Zhan-ming,LI Er-chao.Application of OpenCV on Real-time Detection and Processing System of Seam[J].,2012,(04):170.
[10]胡顾飞,严毅.基于Adaboost算法的车辆轮胎检测研究与实现[J].计算机技术与发展,2013,(09):227.
 HU Gu-fei[],YAN Yi[].Research and Realization on Vehicle Tire Detecting Based on Adaboost Algorithm[J].,2013,(04):227.

更新日期/Last Update: 2024-04-10