CN108093246B - Method and device for identifying video playing area of digital set top box - Google Patents

Method and device for identifying video playing area of digital set top box Download PDF

Info

Publication number
CN108093246B
CN108093246B CN201711165354.1A CN201711165354A CN108093246B CN 108093246 B CN108093246 B CN 108093246B CN 201711165354 A CN201711165354 A CN 201711165354A CN 108093246 B CN108093246 B CN 108093246B
Authority
CN
China
Prior art keywords
detection block
brightness
peripheral
blocks
target detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711165354.1A
Other languages
Chinese (zh)
Other versions
CN108093246A (en
Inventor
卢可敬
程晋
蓝文启
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Electric Co Ltd filed Critical Hisense Electric Co Ltd
Priority to CN201711165354.1A priority Critical patent/CN108093246B/en
Publication of CN108093246A publication Critical patent/CN108093246A/en
Application granted granted Critical
Publication of CN108093246B publication Critical patent/CN108093246B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk

Abstract

The application discloses a method and a device for identifying a video playing area of a digital set top box. According to the method and the device, a display screen of a television terminal is divided into a plurality of brightness detection blocks with the same resolution, the target detection blocks are determined according to the brightness change condition of the interval preset time of each brightness detection block, and then the video playing area of the digital set top box is identified according to the position of each target detection block on the display screen. Each target detection block not only needs to meet the high brightness change value of the target detection block, but also can eliminate the influence of screen noise through the brightness change condition of the peripheral detection block close to the brightness detection block, so that the video playing area of the digital set top box can be accurately identified by using the scheme.

Description

Method and device for identifying video playing area of digital set top box
Technical Field
The application relates to the field of digital set-top boxes, in particular to a method and a device for identifying a video playing area of a digital set-top box.
Background
The digital set-top box is used as a connecting device between the television terminal and an external signal source, can convert received digital signals into television signals, and plays the television signals on the television terminal in the forms of sound, images and the like. In general, the digital set-top box and the television terminal need to be independently controlled by different remote control devices, which is inconvenient to operate.
At present, the digital set-top box and the television terminal can be bound, and after the matching is successful, the remote control device of the television terminal can simultaneously control the television terminal and the digital set-top box, so that the control operation of a user is simplified. The number of operators of the digital set-top box is large, and in order to be adaptable to digital set-top boxes produced by different operators, an operator scheme list is generally stored in the television terminal, and operation key codes (such as key codes for operations of channel switching, volume adjustment, brightness adjustment and the like) corresponding to different operator schemes are different. In the process of binding the digital set-top box and the television terminal, the operator schemes in the list need to be checked one by one, and the specific process is as follows: starting a television terminal and a digital set-top box, and intercepting a channel logo currently displayed by the television terminal; simulating a channel switching trigger key code according to an operator scheme needing to be verified, and sending the key code to the digital set top box so that the digital set top box can respond according to the received key code; intercepting the channel station caption displayed by the television terminal again; comparing the channel station marks intercepted twice, if the images of the channel station marks intercepted twice are inconsistent, indicating that the channel switching operation is effective, controlling the digital set top box by a remote control device of the television terminal through a key code of the analog digital set top box, and successfully binding the television terminal and the digital set top box; if the station caption images are not consistent in the two times, the station switching operation is indicated to be invalid, and other operator schemes need to be continuously checked.
In the above binding scheme, interception of the station logo is one of the key steps. At present, a television terminal defaults that video data in a digital set-top box is played according to a full-screen ratio, so that a certain fixed area at the upper left corner of a screen is usually intercepted as a channel logo. However, when the video data is displayed in a non-full screen mode, the television terminal cannot accurately identify the video playing area, so that the position of the channel logo cannot be accurately determined, and the digital set-top box and the television terminal cannot be smoothly bound.
Disclosure of Invention
The application provides a method and a device for identifying a video playing area of a digital set top box, which aim to solve the problem of inaccurate identification of the video playing area in the existing method.
In a first aspect, the present application provides a method for identifying a video playing area of a digital set-top box, where the method includes:
dividing a display screen of the television terminal into a plurality of brightness detection blocks with the same resolution;
sequentially judging whether the backlight brightness change value of each brightness detection block is greater than a first preset threshold value, wherein the backlight brightness change value is the difference value of the average values of the backlight brightness of the two times of the preset time interval of the brightness detection blocks;
if the backlight brightness change value of the brightness detection block is larger than the first preset threshold value, judging whether at least one effective detection block exists around the brightness detection block, wherein the effective detection block is a peripheral detection block which is adjacent to the brightness detection block and the backlight brightness change value of which is larger than a second preset threshold value;
if at least one effective detection block exists around the brightness detection block, determining the brightness detection block as a target detection block;
and identifying a video playing area of the digital set top box according to the position of each target detection block on the display screen.
In a second aspect, the present application further provides an apparatus for identifying a video playing area of a digital set-top box, where the apparatus includes:
the dividing module is used for dividing a display screen of the television terminal into a plurality of brightness detection blocks with the same resolution;
the first judgment module is used for sequentially judging whether the backlight brightness change value of each brightness detection block is greater than a first preset threshold value, wherein the backlight brightness change value is the difference value of the average values of the backlight brightness of the two times of the preset time interval of the brightness detection blocks;
the second judging module is used for judging whether at least one effective detection block exists around the brightness detection block when the backlight brightness change value of the brightness detection block is larger than the first preset threshold value, wherein the effective detection block is a peripheral detection block which is adjacent to the brightness detection block and the backlight brightness change value of which is larger than a second preset threshold value;
a determining module, configured to determine the brightness detection block as a target detection block if at least one valid detection block exists around the brightness detection block;
and the identification module is used for identifying the video playing area of the digital set top box according to the position of each target detection block on the display screen.
The beneficial effect of this application does:
according to the method and the device, a display screen of a television terminal is divided into a plurality of brightness detection blocks with the same resolution, the target detection blocks are determined according to the brightness change condition of the interval preset time of each brightness detection block, and then the video playing area of the digital set top box is identified according to the position of each target detection block on the display screen. Each target detection block not only needs to meet the high brightness change value of the target detection block, but also can eliminate the influence of screen noise through the brightness change condition of the peripheral detection block close to the brightness detection block, so that the video playing area of the digital set top box can be accurately identified by using the scheme.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a flowchart of a method for identifying a video playing area of a digital set-top box according to an embodiment of the present application;
fig. 2 is a schematic view of a display screen of a television terminal according to an embodiment of the present application;
fig. 3 is a flowchart of a step S500 according to a second embodiment of the present application;
fig. 4 is a schematic view of a display screen of a television terminal according to a second embodiment of the present application;
fig. 5 is a flowchart of a step S500 provided in the third embodiment of the present application;
fig. 6 is a flowchart of step S525 according to the fourth embodiment of the present application;
fig. 7 is a schematic structural diagram of a device for identifying a video playing area of a digital set-top box according to a fifth embodiment of the present application;
fig. 8 is a schematic structural diagram of an identification module according to a sixth embodiment of the present application;
fig. 9 is a schematic structural diagram of an identification module according to a seventh embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of a second identification submodule according to an eighth embodiment of the present application.
Detailed Description
At present, a television terminal defaults that video data in a digital set-top box is played according to a full-screen ratio, so that a certain fixed area at the upper left corner of a screen is usually intercepted as a channel logo. However, when the video data is displayed in a non-full screen mode, the television terminal cannot accurately identify the video playing area, so that the position of the channel logo cannot be accurately determined, and the digital set-top box and the television terminal cannot be smoothly bound. Therefore, the application provides a method for identifying the video playing area of the digital set top box.
In general, the backlight brightness of the video playing area on the display screen is continuously adjusted with the change of the playing content, and the backlight brightness of the non-playing image position is not changed. Based on the principle, the display screen of the television terminal is divided into the brightness detection blocks with the same resolution, the target detection block is determined according to the brightness change condition of the interval preset time length of each brightness detection block, and then the video playing area of the digital set top box is identified according to the position of each target detection block on the display screen. Each target detection block not only needs to meet the high brightness change value of the target detection block, but also can eliminate the influence of screen noise through the brightness change condition of the peripheral detection block close to the brightness detection block, so that the video playing area of the digital set top box can be accurately identified by using the scheme. The following describes a method for identifying a video playing area of a digital set-top box according to the present application in detail with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a method for identifying a video playing area of a digital set-top box according to an embodiment of the present application is provided. The execution subject of the method is a processor of the television terminal. As can be seen from fig. 1, the method comprises the following steps:
step S100: dividing a display screen of the television terminal into a plurality of brightness detection blocks with the same resolution.
Referring to fig. 2, a schematic view of a display screen of a television terminal according to a first embodiment of the present application is provided. As can be seen from fig. 2, in this embodiment, the display screen of the television terminal is divided into a plurality of luminance detection blocks with resolution 5 × 5, that is, each luminance detection block includes 5 pixels in the horizontal direction and the vertical direction. And the CPU of the television terminal identifies the video playing area according to the brightness change condition of each brightness detection block. Of course, in other embodiments of the present application, the display screen may be divided into other forms of brightness detection blocks according to actual requirements.
In general, a backlight control module of a television terminal also needs to divide a display screen into a plurality of backlight blocks, and uniformly control the brightness of each pixel point in the backlight blocks, so as to reduce the control difficulty and the operation time. In this embodiment, the division of the luminance detection block is consistent with the division of the backlight block, so that the luminance change values of each pixel point in the luminance detection block are the same, thereby simplifying and reducing the subsequent operation of luminance change of the luminance detection block.
Step S200: and sequentially judging whether the backlight brightness change value of each brightness detection block is greater than a first preset threshold value, and if so, executing the step S300.
In this embodiment, the backlight brightness variation value is a difference between two backlight brightness average values of the brightness detection blocks at a preset time interval. In this embodiment, the division of the luminance detection block is consistent with the division of the backlight block, so the luminance of each pixel point in the luminance detection block is the same, the average value of the backlight luminance of the luminance detection block, that is, the luminance sampling value of each pixel point, and the calculation step of the average value can be omitted. For the scheme that the division of the brightness detection block is inconsistent with the division of the backlight block, the brightness values of all pixel points in the brightness detection block need to be collected, the average value of the brightness values is calculated, and the average value of the brightness values is used as the evaluation standard of the brightness change of the brightness detection block.
Step S300: and judging whether at least one effective detection block exists around the brightness detection block. If so, step S400 is performed.
Step S400: and determining the brightness detection block as a target detection block.
In this embodiment, the effective detection block is a peripheral detection block which is adjacent to the brightness detection block and in which the backlight brightness variation value is greater than a second preset threshold value. Individual user actions on the television terminal (e.g., moving a selected button) or partial flashing of the signal may cause the output of the screen to change, creating noise on the display screen. Therefore, after the brightness detection block with the high brightness change value is determined, the influence of noise is further eliminated through the backlight brightness change value of the peripheral detection block, and therefore the accuracy of video playing area identification is guaranteed.
The first preset threshold and the second preset threshold are usually the same value, and are usually about 4, and since the identification of the valid detection blocks at the periphery of the brightness detection block is to eliminate noise on the display screen, the second preset threshold may also be set slightly smaller than the first preset threshold.
Step S500: and identifying a video playing area of the digital set top box according to the position of each target detection block on the display screen.
The following describes the recognition method proposed in the present embodiment with reference to specific examples. In order to facilitate the calculation of the screen brightness value and the position detection of each brightness detection block, in the present embodiment, the backlight brightness value of each brightness detection block is stored and calculated in the form of a matrix. Of course, in other embodiments of the present application, the calculated average backlight luminance may also be stored and calculated in other forms, such as tables, arrays, and the like.
Step 1: calculating the average value W of the backlight brightness of 5 x 5 pixels in each brightness detection block at the first moment in sequencemnAnd calculating the average value W of the backlight brightnessmnStored as a first matrix T1, where m is the number of luminance detection block rows, n is the number of luminance detection block columns:
Figure GDA0002319689050000051
step 2: calculating the average value Z of the backlight brightness of 5 x 5 pixel points in each brightness detection block at the second moment in sequencemnAnd calculating the average value Z of the backlight brightnessmnStored as a second matrix T2, wherein the interval between the first time and the second time is a preset duration (e.g. 1 s):
Figure GDA0002319689050000052
and step 3: calculating the difference between the first matrix T1 and the second matrix T2 to obtain the backlight brightness variation value ZW of each brightness detection blockmnAnd calculating the backlight brightness variation value ZWmnStored as a third matrix T3:
Figure GDA0002319689050000053
and 4, step 4: sequentially scanning the third matrix T3 according to a preset sequence, if the backlight brightness variation value ZW of the brightness detection blockmnAnd if the brightness of the peripheral detection block exceeds a first preset threshold, detecting whether at least one effective detection block exists around the brightness detection block, wherein the effective detection block is a peripheral detection block which is adjacent to the brightness detection block and the backlight brightness change value of which is greater than a second preset threshold. For example, when the backlight luminance variation value ZW of the luminance detection block33When the ZW exceeds a first preset threshold value, the ZW is continuously detected22、 ZW23、ZW24、ZW32、ZW34、ZW42、ZW43And ZW44Whether it is greater than a second preset threshold, if ZW22、 ZW23、ZW24、ZW32、ZW34、ZW42、ZW43And ZW44Is greater than the second preset threshold value, the backlight brightness change value ZW is set33And the corresponding brightness detection block is determined as the target detection block.
And 5: and identifying a video playing area of the digital set top box according to the position of each target detection block on the display screen.
Specifically, each target detection block in the third matrix T3 may be marked, for example, the numerical values corresponding to each target detection block in the third matrix T3 are all marked as 1, and the numerical values corresponding to non-target detection blocks are all marked as 0, so as to form a fourth matrix T4, so that the television terminal can identify the video playing area of the digital set top box according to the scanned distribution range of each target detection block.
According to the method and the device, a display screen of a television terminal is divided into a plurality of brightness detection blocks with the same resolution, the target detection blocks are determined according to the brightness change condition of the interval preset time of each brightness detection block, and then the video playing area of the digital set top box is identified according to the position of each target detection block on the display screen. Each target detection block not only needs to meet the high brightness change value of the target detection block, but also needs to eliminate the influence of screen noise through the brightness change condition of the peripheral detection block close to the brightness detection block, so that the video playing area of the digital set top box can be accurately identified by using the scheme.
The second embodiment of the application provides a method for identifying a video playing area of a digital set top box by using the position of a target detection block on a display screen. Referring to fig. 3, a flowchart of step S500 is provided in the second embodiment of the present application. As can be seen from fig. 3, step S500 includes the following steps:
step S511: and acquiring the row coordinate and the column coordinate of each target detection block on a display screen.
Step S512: and identifying a video playing area of the digital set top box according to the difference value between the maximum row coordinate and the minimum row coordinate of each target detection block and the difference value between the maximum column coordinate and the minimum column coordinate of each target detection block.
Referring to fig. 4, a schematic view of a display screen of a television terminal according to a second embodiment of the present application is provided. As can be seen from fig. 4, besides the video area where the video is played, one or more advertisement windows may pop up while the video is played, and the backlight brightness of the advertisement window is also constantly changed (i.e. the advertisement window on the display screen also includes the target detection block), which may possibly interfere with the identification of the video playing area. If the video playing area is identified according to the method provided in the second embodiment, it is highly likely that an area containing a larger range of the advertisement window is identified as the video playing area (the area shown in the bold frame in fig. 4), which reduces the accuracy of the video playing area identification.
In view of the above scenario, a third embodiment of the present application provides another method for identifying a video playing area of a digital set top box by using a position of a target detection block on a display screen. In general, the degree of change of the backlight brightness in the video playing area is higher than that of the backlight brightness in the interference area such as the advertisement window, and therefore, the method provided by the third embodiment takes the target detection block with the largest number of effective detection blocks as the center, expands layer by layer outwards until the number of non-target detection blocks in the brightness detection blocks of the boundary layer reaches the preset number, and determines the area obtained by the scanning mode as the video playing area of the digital set top box. Specifically, please refer to fig. 5, which is a flowchart of step S500 provided in the third embodiment of the present application. As can be seen from fig. 5, step S500 includes the following steps:
step S521: and acquiring the number of effective detection blocks around each target detection block.
The manner of acquiring the number of valid detection blocks around the target detection block is similar to that in embodiment 1, and is not described herein again.
Step S522: and detecting whether the peripheral detection block is the target detection block layer by layer from inside to outside by taking the target detection block with the largest number of the effective detection blocks as a center.
In general, the probability that the target detection block with the largest number of effective detection blocks is located at the edge of the display screen is low, and in this embodiment, if the target detection block is located at the non-edge of the display screen, the first detection layer with the target detection block with the largest number of effective detection blocks as the center is 8 peripheral detection blocks adjacent to the target detection block, the second detection layer is adjacent to the 8 peripheral detection blocks, and other brightness detection blocks extending outward are detected, and so on, and detection is performed layer by layer.
Of course, after the target detection block with the largest number of valid detection blocks is determined, other scanning methods may also be used to determine the boundary of the video playing area. For example, with the target detection block with the largest number of the effective detection blocks as the center, sequentially detecting whether 8 peripheral detection blocks adjacent to the target detection block are the target detection blocks, and then with the target detection block of the 8 peripheral detection blocks as the center, continuing the detection according to the above manner, thereby gradually expanding the luminance area.
Step S523: when the first peripheral detection blocks in the same row are detected to contain a first preset number of non-target detection blocks for the first time, the row coordinate corresponding to the first peripheral detection blocks is obtained.
Step S524: when the second peripheral detection blocks in the same column are detected to contain a second preset number of non-target detection blocks for the first time, the column coordinates corresponding to the second peripheral detection blocks are obtained.
When the first peripheral detection blocks in the same row include a first preset number of non-target detection blocks, it indicates that the brightness variation degree of the row and the adjacent row outside the row is low, and the row does not belong to the video playing area, so that the intersection of the row and the adjacent row inside the row can be used as the row boundary of the video playing area. Similar to the line boundary identification method, when the second peripheral detection block in the same column includes a second predetermined number of non-target detection blocks, it indicates that the brightness variation degree of the column and the adjacent line outside the column is low, and the column does not belong to the video playing area, so that the junction between the column and the adjacent line inside the column can be used as the column boundary of the video playing area. Wherein, the inner side refers to the side close to the central target detection block; the outer side refers to a side away from the central target detection block.
In this embodiment, the scanning mode of the brightness detection blocks is outward layer by layer, so the first peripheral detection blocks should be brightness detection blocks on the same detection layer and in the same row; the second peripheral detection blocks should be brightness detection blocks on the same detection layer and in the same column. The first preset number and the first peripheral detection block have a preset proportional relation; the second peripheral detection blocks have a preset proportional relationship with a second preset number. In this embodiment, when all the first peripheral detection blocks are non-target detection blocks, the line is determined as a non-video playing area; and when the second peripheral detection blocks are all non-target detection blocks, determining the column as a non-video playing area, and finally, determining the video playing area according to the row where the first peripheral detection block is located and the column where the second peripheral detection block is located.
In other embodiments of the present application, the first preset number and the total number of the first peripheral detection blocks may also be set to be in other proportional relationships, for example, the first preset number is 1/2 of the total number of the first peripheral detection blocks; similarly, the second predetermined number and the second total number of peripheral detecting blocks may be set in other proportional relationship, for example, the second predetermined number is 1/2 of the second total number of peripheral detecting blocks. That is, when half of the first peripheral detection blocks are non-target detection blocks, the row is regarded as a non-video playing area, and when half of the second peripheral detection blocks are non-target detection blocks, the column is regarded as a non-video playing area, so that the interference of individual noise points is eliminated, and the identification accuracy of the video playing area is further improved.
Step S525: and identifying a video playing area of the digital set top box according to the row coordinate corresponding to the first peripheral detection block and the column coordinate corresponding to the second peripheral detection block. And subtracting 1 from the row coordinate of the first peripheral detection block, subtracting 1 from the column coordinate of the second peripheral detection block, and taking the surrounded area as a video playing area.
The following further describes the method flow of step S500 provided in the third embodiment by taking a display screen divided into 10 × 10 luminance detection blocks as an example. The number N of effective detection blocks around each target detection block on a display screenmnStored in a fifth matrix T5 (where the corresponding matrix elements of the non-target detection block are labeled as 0), the fifth matrix T5 is as follows:
Figure GDA0002319689050000081
based on the fifth matrix T5, the method of step S500 provided in the third embodiment includes the following specific steps:
step 1: and determining the target detection block with the largest number of effective detection blocks in each target detection block according to a preset scanning sequence. The purpose of the maximum number of effective detection blocks in this exampleTwo mark detection blocks are provided, and are respectively N36And N37(8 valid detection blocks are included around each) corresponding target detection blocks, and the manner of identifying the video playing area by the two target detection blocks is similar, wherein N is used36The corresponding target detection block is explained as an example. For the convenience of description, N is used belowmnTo replace NmnThe corresponding luminance detection block is described.
Step 2: with N36And detecting whether the peripheral detection block is a target detection block layer by layer from inside to outside as a center.
And step 3: and recording the line when the first peripheral detection block in the same line is detected to contain more than half of the non-target detection blocks of the line for the first time.
And 4, step 4: when the second peripheral detection block in the same column is detected to contain more than half of the non-target detection blocks of the column for the first time, the column is recorded.
And 5: the intersection of the row and the adjacent row inside the row is used as the row boundary of the video playing area, and the intersection of the column and the adjacent column inside the column is used as the column boundary of the video playing area.
Firstly, with N36Detecting whether the first layer brightness detection block is a target detection block or not by taking the first layer brightness detection block as an adjacent N36Peripheral detection blocks of, i.e. N35、N37、N26、N46、N25、N45、N27And N47And the detection result is that the first layer brightness detection blocks are all target detection blocks, do not meet the marking standard, and the second layer brightness detection blocks need to be continuously detected, namely N14、N15、N16、N17、N18、N24、N34、N44、N54、N55、N56、N57、N58、N38、 N28And N48And the detection result is as follows: upper boundary N of second layer brightness detection block14、N24、N34、N44、N54Are all 0, the left boundary N of the second layer luminance detection block14、N15、N16、N17、N18Also, both are 0, and the upper boundary and the left boundary of the second layer luminance detection block can be determined as the non-video playing area in compliance with the marking standard. The upper boundary and the left boundary of the video playing area can be determined through the scanning of the second layer brightness detection block. Since the lower boundary and the right boundary of the video playing area are not yet determined, the third layer brightness detection block needs to be continuously scanned, and the detection mode of the third layer brightness detection block is the same as that of the first layer brightness detection block and the second layer brightness detection block, which is not described herein again. And the lower boundary and the right boundary of the video playing area can be determined to be the 5 th row and the 8 th column respectively through the third layer brightness detection block. Through the above recognition method, the video playing area on the display screen corresponding to the fifth matrix T5 is finally determined as the brightness area surrounded by the 2 nd row, the 5 th column and the 8 th column.
If the corresponding video playing area in the fifth matrix T5 is the luminance area surrounded by the 2 nd row, the 10 th row, the 2 nd column and the 9 th column according to the method described in the second embodiment, a larger range interval is obviously determined, so that the accuracy of identifying the video playing area cannot meet the requirement of binding the digital set-top box and the television terminal. Therefore, by the method in the third embodiment, the video playing area can be identified more accurately.
However, when the brightness of the advertisement window is changed relatively to the brightness of the video playing area, two or more central detection blocks may appear on the display screen, and an independent brightness interval is formed, at this time, the method provided in the third embodiment determines each brightness interval as a video playing area, and intercepts channel logos in each video playing area for comparison, and although the adaptation condition of the digital set-top box and the television terminal can be determined, comparison needs to be performed for multiple times, thereby reducing the binding efficiency.
In view of the foregoing scenario, a fourth embodiment of the present application provides a method for identifying a video playing area of a digital set top box according to a row coordinate corresponding to the first peripheral detection block and a column coordinate corresponding to the second peripheral detection block. Please refer to fig. 6, which is a flowchart of step S525 according to a fourth embodiment of the present application. As can be seen from fig. 6, step S525 includes the following steps:
step S5251: and determining whether the display screen comprises at least two independent brightness change areas or not according to the row coordinate corresponding to the first peripheral detection block and the column coordinate corresponding to the second peripheral detection block. If the display screen of the television terminal includes at least two independent brightness change areas, step S5252 is performed.
The target detection blocks positioned in the center of each brightness change area are all provided with the maximum number of effective detection blocks. The first luminance change area and the second luminance change area belong to two independent luminance change areas if the first luminance change area is not completely covered by the second luminance change area. The specific determination method of the independent brightness change area comprises the following steps: determining a brightness change area on a display screen according to the row coordinate corresponding to the first peripheral detection block and the column coordinate corresponding to the second peripheral detection block; comparing the boundary coordinates of each brightness change area (namely the row coordinates corresponding to the first peripheral detection block and the column coordinates corresponding to the second peripheral detection block); if any one of the line coordinates on the boundary of one of the luminance change areas (i.e., the line coordinate corresponding to the first peripheral detection block) is not located between the two line coordinates on the boundary of the other luminance change area, or any one of the column coordinates on the boundary of one of the luminance change areas (i.e., the column coordinate corresponding to the first peripheral detection block) is not located between the two column coordinates on the boundary of the other luminance change area, it is determined that the two luminance change areas are two independent luminance change areas.
Step S5252: and respectively detecting whether the length-width ratio of each brightness change area accords with a preset ratio. The preset ratio may be 1:1, 4:3, 16:9, and other common length-width ratios.
Step S5253: and identifying the video playing area of the digital set top box according to the brightness change area in accordance with the preset proportion.
In general, the video playing areas all conform to the conventional playing proportion, and the advertisement window and the video playing area on the display screen can be distinguished by using proportion limitation, so that the interference of the advertisement window with large brightness change to the proportion identification method is eliminated, and the identification efficiency and accuracy of the video playing areas are improved.
According to the method and the device, a display screen of a television terminal is divided into a plurality of brightness detection blocks with the same resolution, the target detection blocks are determined according to the brightness change condition of the interval preset time of each brightness detection block, and then the video playing area of the digital set top box is identified according to the position of each target detection block on the display screen. Each target detection block not only needs to meet the high brightness change value of the target detection block, but also needs to eliminate the influence of screen noise through the brightness change condition of the peripheral detection block close to the brightness detection block, so that the video playing area of the digital set top box can be accurately identified by using the scheme.
Based on the method, the application also provides a device for identifying the video playing area of the digital set-top box. Referring to fig. 7, a schematic structural diagram of a device for identifying a video playing area of a digital set-top box according to a fifth embodiment of the present application is provided. As can be seen from fig. 7, the present apparatus includes:
a dividing module 100, configured to divide a display screen of the television terminal into a plurality of brightness detection blocks with the same resolution;
the first judging module 200 is configured to sequentially judge whether a backlight brightness change value of each brightness detection block is greater than a first preset threshold, where the backlight brightness change value is a difference between two backlight brightness average values of the brightness detection blocks at a preset time interval;
a second determining module 300, configured to determine whether at least one effective detection block exists around the brightness detection block when the backlight brightness variation value of the brightness detection block is greater than the first preset threshold, where the effective detection block is a peripheral detection block that is adjacent to the brightness detection block and has a backlight brightness variation value greater than a second preset threshold;
a determining module 400, configured to determine the brightness detection block as a target detection block if at least one valid detection block exists around the brightness detection block;
and the identifying module 500 is configured to identify a video playing area of the digital set top box according to the position of each target detection block on the display screen.
Referring to fig. 8, a schematic structural diagram of an identification module provided in a sixth embodiment of the present application is shown. As can be seen in fig. 8, the identification module 500 comprises:
a first obtaining sub-module 511, configured to obtain row coordinates and column coordinates of each target detection block on the display screen;
the first identifying submodule 512 is configured to identify a video playing area of the digital set top box according to a difference between the maximum row coordinate and the minimum row coordinate of each target detection block and a difference between the maximum column coordinate and the minimum column coordinate of each target detection block.
Fig. 9 is a schematic structural diagram of an identification module according to a seventh embodiment of the present application. As can be seen in fig. 9, the identification module 500 comprises:
the second obtaining secondary module 521 is configured to obtain the number of effective detection blocks around each target detection block;
the first detection submodule 522 is configured to detect whether a peripheral detection block of the target detection submodule is a target detection block from inside to outside in sequence by taking the target detection block with the largest number of the effective detection blocks as a center;
a third obtaining module 523, configured to obtain a row coordinate corresponding to a first peripheral detection block when the first peripheral detection block in the same row is detected to include a first preset number of non-target detection blocks for the first time;
a fourth obtaining module 524, configured to obtain, when it is detected that a second peripheral detection block in the same column includes a second preset number of non-target detection blocks for the first time, a column coordinate corresponding to the second peripheral detection block;
and a second identification submodule 525 configured to identify a video playing area of the digital set top box according to the row coordinate corresponding to the first peripheral detection block and the column coordinate corresponding to the second peripheral detection block.
Preferably, the first preset number is 1/2 of the total number of the first peripheral test blocks; the second predetermined number is 1/2 of the total number of the second peripheral inspection pieces.
Referring to fig. 10, a schematic structural diagram of a second identification submodule provided in an eighth embodiment of the present application is shown. As can be seen in fig. 10, the second identification submodule 525 includes:
a first determining submodule 5251, configured to determine whether the display screen includes at least two independent brightness change regions according to the row coordinates corresponding to the first peripheral detection block and the column coordinates corresponding to the second peripheral detection block, where the target detection block located in the center of each brightness change region has the largest number of valid detection blocks around the target detection block;
a second detection submodule 5252, configured to, when the display screen of the television terminal includes at least two independent brightness change regions, respectively detect whether the length-width ratio of each brightness change region meets a preset ratio;
a third recognition submodule 5253, configured to recognize a video playing area of the digital set top box from the brightness change area according to the preset ratio.
In a specific implementation, the present invention further provides a computer storage medium, where the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments of the calling method provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The same and similar parts in the various embodiments in this specification may be referred to each other. In particular, for the fifth to eighth embodiments, since they are substantially similar to the method embodiments, the description is simple, and the relevant points can be referred to the description in the method embodiments. The above-described embodiments of the present invention should not be construed as limiting the scope of the present invention.

Claims (10)

1. A method for identifying a video playing area of a digital set top box is characterized by comprising the following steps:
dividing a display screen of the television terminal into a plurality of brightness detection blocks with the same resolution;
sequentially judging whether the backlight brightness change value of each brightness detection block is greater than a first preset threshold value, wherein the backlight brightness change value is the difference value of the average values of the backlight brightness of the two times of the preset time interval of the brightness detection blocks;
if the backlight brightness change value of the brightness detection block is larger than the first preset threshold value, judging whether at least one effective detection block exists around the brightness detection block, wherein the effective detection block is a peripheral detection block which is adjacent to the brightness detection block and the backlight brightness change value of which is larger than a second preset threshold value;
if at least one effective detection block exists around the brightness detection block, determining the brightness detection block as a target detection block;
and identifying a video playing area of the digital set top box according to the position of each target detection block on the display screen.
2. The method of claim 1, wherein identifying the video playback area of the digital set top box according to the position of each target detection block on the display screen comprises:
acquiring row coordinates and column coordinates of each target detection block on the display screen;
and identifying a video playing area of the digital set top box according to the difference value between the maximum row coordinate and the minimum row coordinate of each target detection block and the difference value between the maximum column coordinate and the minimum column coordinate of each target detection block.
3. The method of claim 1, wherein identifying the video playback area of the digital set top box according to the position of each target detection block on the display screen comprises:
acquiring the number of effective detection blocks around each target detection block;
taking the target detection block with the largest number of the effective detection blocks as a center, and sequentially detecting whether the peripheral detection block is the target detection block from inside to outside;
when first peripheral detection blocks in the same row are detected to contain a first preset number of non-target detection blocks, acquiring row coordinates corresponding to the first peripheral detection blocks;
when a second peripheral detection block in the same column is detected to contain a second preset number of non-target detection blocks for the first time, obtaining a column coordinate corresponding to the second peripheral detection block;
and identifying a video playing area of the digital set top box according to the row coordinate corresponding to the first peripheral detection block and the column coordinate corresponding to the second peripheral detection block.
4. The method of claim 3, wherein the first preset number is 1/2 of the first total number of peripheral test blocks; the second predetermined number is 1/2 of the total number of the second peripheral inspection pieces.
5. The method of claim 3, wherein identifying the video playback area of the digital set top box according to the row coordinates corresponding to the first peripheral detection block and the column coordinates corresponding to the second peripheral detection block comprises:
determining whether the display screen comprises at least two independent brightness change areas or not according to the row coordinate corresponding to the first peripheral detection block and the column coordinate corresponding to the second peripheral detection block, wherein the maximum number of effective detection blocks are arranged around the target detection block positioned in the center of each brightness change area;
if the display screen of the television terminal comprises at least two independent brightness change areas, respectively detecting whether the length-width ratio of each brightness change area accords with a preset ratio;
and identifying the video playing area of the digital set top box according to the brightness change area in accordance with the preset proportion.
6. An apparatus for identifying a video playback area of a digital set-top box, the apparatus comprising:
the dividing module is used for dividing a display screen of the television terminal into a plurality of brightness detection blocks with the same resolution;
the first judgment module is used for sequentially judging whether the backlight brightness change value of each brightness detection block is greater than a first preset threshold value, wherein the backlight brightness change value is the difference value of the average values of the backlight brightness of the two times of the preset time interval of the brightness detection blocks;
the second judging module is used for judging whether at least one effective detection block exists around the brightness detection block when the backlight brightness change value of the brightness detection block is larger than the first preset threshold value, wherein the effective detection block is a peripheral detection block which is adjacent to the brightness detection block and the backlight brightness change value of which is larger than a second preset threshold value;
a determining module, configured to determine the brightness detection block as a target detection block if at least one valid detection block exists around the brightness detection block;
and the identification module is used for identifying the video playing area of the digital set top box according to the position of each target detection block on the display screen.
7. The apparatus of claim 6, wherein the identification module comprises:
the first acquisition secondary module is used for acquiring the row coordinates and the column coordinates of each target detection block on the display screen;
and the first identification secondary module is used for identifying the video playing area of the digital set top box according to the difference value between the maximum row coordinate and the minimum row coordinate of each target detection block and the difference value between the maximum column coordinate and the minimum column coordinate of each target detection block.
8. The apparatus of claim 6, wherein the identification module comprises:
the second acquisition secondary module is used for acquiring the number of effective detection blocks around each target detection block;
the first detection secondary module is used for sequentially detecting whether the peripheral detection block is the target detection block or not from inside to outside by taking the target detection block with the largest number of the effective detection blocks as a center;
the third acquisition secondary module is used for acquiring line coordinates corresponding to the first peripheral detection blocks when the first peripheral detection blocks in the same line are detected for the first time to contain a first preset number of non-target detection blocks;
the fourth obtaining secondary module is used for obtaining the column coordinates corresponding to the second peripheral detection blocks when the second peripheral detection blocks in the same column are detected for the first time to contain a second preset number of non-target detection blocks;
and the second identification secondary module is used for identifying the video playing area of the digital set top box according to the row coordinate corresponding to the first peripheral detection block and the column coordinate corresponding to the second peripheral detection block.
9. The apparatus of claim 8, wherein the first preset number is 1/2 of the first total number of peripheral test blocks; the second predetermined number is 1/2 of the total number of the second peripheral inspection pieces.
10. The apparatus of claim 8, wherein the second identification submodule comprises:
the first determining secondary module is used for determining whether the display screen comprises at least two independent brightness change areas or not according to the row coordinate corresponding to the first peripheral detection block and the column coordinate corresponding to the second peripheral detection block, and the effective detection blocks with the maximum number are arranged around the target detection block positioned in the center of each brightness change area;
the second detection secondary module is used for respectively detecting whether the length-width ratio of each brightness change area accords with a preset ratio when the display screen of the television terminal comprises at least two independent brightness change areas;
and the third identification secondary module is used for identifying the video playing area of the digital set top box from the brightness change area which accords with the preset proportion.
CN201711165354.1A 2017-11-21 2017-11-21 Method and device for identifying video playing area of digital set top box Active CN108093246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711165354.1A CN108093246B (en) 2017-11-21 2017-11-21 Method and device for identifying video playing area of digital set top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711165354.1A CN108093246B (en) 2017-11-21 2017-11-21 Method and device for identifying video playing area of digital set top box

Publications (2)

Publication Number Publication Date
CN108093246A CN108093246A (en) 2018-05-29
CN108093246B true CN108093246B (en) 2020-04-28

Family

ID=62172879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711165354.1A Active CN108093246B (en) 2017-11-21 2017-11-21 Method and device for identifying video playing area of digital set top box

Country Status (1)

Country Link
CN (1) CN108093246B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040792B (en) * 2018-08-13 2021-04-09 中兴通讯股份有限公司 Processing method for video redirection, cloud terminal and cloud desktop server
CN111131812A (en) * 2019-12-31 2020-05-08 北京奇艺世纪科技有限公司 Broadcast time testing method and device and computer readable storage medium
CN113099233A (en) * 2021-03-26 2021-07-09 百果园技术(新加坡)有限公司 Video encoding method, video encoding device, video encoding apparatus, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1568479A (en) * 2001-10-11 2005-01-19 皇家飞利浦电子股份有限公司 Method and apparatus for discriminating between different regions of an image
CN101043609A (en) * 2006-03-24 2007-09-26 株式会社东芝 Subtitle detection apparatus, subtitle detection method and pull-down signal detection apparatus
CN101072373A (en) * 2006-05-11 2007-11-14 日本先锋公司 Image detection device, image processing apparatus, image detection method, method of reducing burn-in of display device, and image detection program
CN102446272A (en) * 2011-09-05 2012-05-09 Tcl集团股份有限公司 Method and device for segmenting and recognizing station caption as well as television comprising device
CN104602096A (en) * 2014-12-26 2015-05-06 北京奇艺世纪科技有限公司 Detecting method and device for video subtitle area
CN106900036A (en) * 2017-01-16 2017-06-27 努比亚技术有限公司 A kind of display methods and terminal
CN107103865A (en) * 2017-04-10 2017-08-29 青岛海信电器股份有限公司 The method and apparatus for detecting viewing area in display screen

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1568479A (en) * 2001-10-11 2005-01-19 皇家飞利浦电子股份有限公司 Method and apparatus for discriminating between different regions of an image
CN101043609A (en) * 2006-03-24 2007-09-26 株式会社东芝 Subtitle detection apparatus, subtitle detection method and pull-down signal detection apparatus
CN101072373A (en) * 2006-05-11 2007-11-14 日本先锋公司 Image detection device, image processing apparatus, image detection method, method of reducing burn-in of display device, and image detection program
CN102446272A (en) * 2011-09-05 2012-05-09 Tcl集团股份有限公司 Method and device for segmenting and recognizing station caption as well as television comprising device
CN104602096A (en) * 2014-12-26 2015-05-06 北京奇艺世纪科技有限公司 Detecting method and device for video subtitle area
CN106900036A (en) * 2017-01-16 2017-06-27 努比亚技术有限公司 A kind of display methods and terminal
CN107103865A (en) * 2017-04-10 2017-08-29 青岛海信电器股份有限公司 The method and apparatus for detecting viewing area in display screen

Also Published As

Publication number Publication date
CN108093246A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
CN108093246B (en) Method and device for identifying video playing area of digital set top box
US8934667B2 (en) System and method for confidence-based marker adjustment
KR20070112130A (en) Method and electronic device for detecting a graphical object
US11568644B2 (en) Methods and systems for scoreboard region detection
US11805283B2 (en) Methods and systems for extracting sport-related information from digital video frames
US20180013931A1 (en) Method for detecting terminal static layer information, terminal and television
CN109005458B (en) Image screen-splash detection method and device
US11830261B2 (en) Methods and systems for determining accuracy of sport-related information extracted from digital video frames
CN108615030B (en) Title consistency detection method and device and electronic equipment
US11798279B2 (en) Methods and systems for sport data extraction
US11792441B2 (en) Methods and systems for scoreboard text region detection
CN104469178A (en) Image display method and electronic device
CN103533436A (en) Method and system for detecting channel switching
KR20140075802A (en) Method and apparatus for dynamic placement of a graphics display window within an image
US20200396440A1 (en) Method for video quality detection and image processing circuit using the same
CN112906686A (en) Character recognition method and device, electronic equipment and storage medium
CN113015004B (en) Watermark video frame identification method, watermark video frame production method, watermark video frame identification device and electronic equipment
CN115222653A (en) Test method and device
JP5884798B2 (en) Ball individual position discriminator
CN108881758A (en) Electronic equipment and its method for handling image
CN109712126B (en) Picture identification method and device
KR101025651B1 (en) Apparatus and method for identifying video object
CN106204661B (en) Picture validity identification method and device and intelligent terminal
US20180260087A1 (en) Display device for recognizing user interface and controlling method thereof
WO2022018628A1 (en) Smart overlay : dynamic positioning of the graphics

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Patentee after: Hisense Video Technology Co.,Ltd.

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Patentee before: HISENSE ELECTRIC Co.,Ltd.