Automatic Extraction of Seat Information in Cinema Ticketing Assistance System
In the ticketing system of movie theaters,it is generally divided into two ways:online ticket sales and offline ticket sales.At present,there are mature software tools for online ticket sales,and users can automatically select various types of seat information online through mobile phones or computers.However,in offline ticket sales,the operator can only manually obtain different types of vacant seat information for a certain session by manually observing the screen interface of the ticketing system software,and then manually enter the vacant seat information into the ticketing system,print paper movie tickets,and then sell tickets.In view of the inconvenient and unfast situation that offline ticket sales require manual operation,the author uses C++language,based on OpenCV image processing library,to first quickly read the color image of the interface picture of the ticketing system software,and convert the three-channel color image into a single-channel grayscale image.The findContours()function is used to obtain the contour set of the image,and after removing the missing and too small contours,the contour position is obtained through the external rectangle,and the contour and the external rectangle are 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 in-formation on the screen,with an accuracy rate of 100%.Then,it is automatically entered into the ticketing system and automatically prints out the paper movie ticket,which achieves the purpose of automatic offline ticket sales.The technical methods used in the development of this system have certain reference significance for scenarios that need to identify the screen information of third-party software interfaces and their changes,such as monitoring the changes of the system screen.