Automatic live television channel change testing system and method based on image recognition technology
Technical Field
The invention relates to a live television channel change automatic test system and method based on an image recognition technology, which can utilize the image recognition technology to carry out the automatic channel change test of live televisions.
Background
Due to business requirements, broadcast television operators often adjust parameters of live channels or remotely upgrade playing devices such as set-top boxes in networks. Before adjusting channel parameters and upgrading software, a large number of tests are needed to ensure that the parameters and the software are correct, so that the influence on watching television programs by users is avoided. This testing is very important, but is also time and labor consuming.
In recent years, along with the development of AI technology, the speed and accuracy of image recognition are greatly improved, and the technology is mature.
Disclosure of Invention
In order to solve the problem that a large amount of manual tests are needed when channel parameters are changed and equipment software is upgraded, the invention provides a live television channel change automatic test system and method based on an image recognition technology, which can effectively reduce the working intensity of testers.
In order to achieve the purpose, the invention is realized by the following technical scheme:
the utility model provides a live broadcast TV channel change automatic test system based on image recognition technology which characterized in that: the television remote control system comprises a camera, an infrared emitter and a television, wherein application program software is arranged on the computer, the camera and the infrared emitter are both connected to the computer, the camera is aligned with a television screen and used for shooting a television corresponding station logo image, the application program software acquires the image from the camera and carries out image preprocessing and image recognition, and the infrared emitter receives an application program software command and remotely controls the television.
On the basis of the live television channel change automatic test system based on the image recognition technology, the running environment of application program software is Linux, Windows or MacOS.
A live television channel change automatic test method based on an image recognition technology comprises the following specific steps:
s1: the computer is connected with the camera and the infrared emitter;
s2: starting the software;
s3: configuring a channel number and a channel name;
s4, configuring infrared emitter keys;
s5, starting a test;
s6, controlling the infrared emitter to send channel number by software;
s7, reading the image collected by the camera by software;
s8, processing the image and identifying the station logo to obtain the channel name;
s9, comparing the channel name with the configured channel name, if the channel name is the same, the channel change is successful, and if the channel name is different, the channel change is failed;
s9, if the station logo identification fails, keeping and recording the relevant pictures as input samples of AI training;
s10, all configured channels are tested in turn.
The invention has the advantages that:
the infrared transmitter is controlled by software to send the channel number to remotely control the television to change the channel, after the channel is changed, the channel mark of the current playing channel is identified by using an image identification technology to obtain the channel name, and the channel name is compared with the channel name set in the software, so that whether the channel is changed successfully or not is judged, and the working intensity of a tester can be effectively reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a schematic diagram of an automatic live television channel change testing system based on an image recognition technology.
Fig. 2 is a flow chart of the live television channel change automatic test method based on the image recognition technology.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an automatic live television channel change testing system based on an image recognition technology includes a camera, an infrared emitter and a television, wherein the computer is provided with application program software, the camera and the infrared emitter are both connected to the computer, the camera is aligned with a television screen and used for shooting a television corresponding station logo image, the application program software acquires an image from the camera and performs image preprocessing and image recognition, and the infrared emitter receives an application program software command and remotely controls the television.
In this embodiment, the application software operating environment is Linux, Windows, or MacOS.
Referring to fig. 2, a live tv channel change automatic testing method based on image recognition technology is characterized in that: the method comprises the following specific steps:
s1: the computer is connected with the camera and the infrared emitter;
s2: starting the software;
s3: configuring channel numbers and channel names;
s4, configuring infrared emitter keys;
s5, starting a test;
s6, controlling the infrared emitter to send channel number by software;
s7, reading the image collected by the camera by software;
s8, processing the image and identifying the station logo to obtain the channel name;
s9, comparing the channel name with the configured channel name, if the channel name is the same, the channel change is successful, and if the channel name is different, the channel change is failed;
s9, if the station logo identification fails, keeping and recording the relevant pictures as input samples of AI training;
s10, all configured channels are tested in turn.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.