Outdoor screen program delivery control method, system, storage medium and computer
By constructing reference programs and collecting target images of outdoor screens, calculating and adjusting the data grid size, the problem of inconsistent advertising display on outdoor screens is solved, and efficient advertising delivery and display effects are achieved.
Patent Information
- Application Number
- CN202411630066.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-11-15
AI Technical Summary
When placing advertisements on outdoor screens, the prior art is difficult to ensure that the display effect of advertisements on different screens is consistent and not distorted, especially when the screen size, resolution and display ratio are different, and stretching, compression, partial content exceeding or The problem of being covered has affected visual effects and information communication.
A method for controlling outdoor screen program delivery is proposed. By constructing a reference program, sending it to the outdoor screen and collecting a target image, intercepting the target area, calculating the number of pixels in the data grid, and scaling the edge data grid according to the number of missing data grid pixels, and obtaining Start coordinates, and adjust the size of the data grid to match the outdoor screen size, and finally post a program to the outdoor screen.
It realizes the complete and undistorted display effect of advertisements on different outdoor screens, simplifies the debugging process, reduces the debugging difficulty, and is suitable for large-scale promotion.
Smart Images

Figure CN119135995B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of commercial program delivery, and in particular to a method, system, storage medium and computer for controlling program delivery on an outdoor screen of a project. Background Art
[0002] In the digital age, outdoor screen advertising has become an indispensable part of the urban landscape and is widely used in commercial advertising, public information dissemination, cultural activities and other fields. In the era of technological innovation, the traditional outdoor management model can no longer adapt to the development of the times. The replacement of smart devices and automated management respond to the needs of the times. More and more outdoor screens are beginning to try new software, hardware and management models.
[0003] Faced with the diverse resolutions brought by the various outdoor screen sizes and spliced screens on the market, the display effect of advertising content on different screens is affected by the physical size, resolution, and display ratio of the screen. If not properly adjusted, the advertisement may be stretched, compressed, partially exceeded, covered or distorted, thus affecting the visual effect and information transmission of the advertisement; therefore, how to ensure that the advertising content presents consistent and undistorted visual effects on different screens after switching the advertising playback box has become a major challenge for advertising delivery and management. The traditional manual adjustment method is a background operation. One person checks in front of the outdoor screen to see if the advertising video is fully displayed. The joint adjustment of a screen is time-consuming, laborious and inefficient; in addition, some outdoor screens are vertical screens, but the output given by the background video output processor is the size of the horizontal screen. There is a situation where the output signal does not match the actual large screen, which increases the difficulty of debugging. Summary of the invention
[0004] Based on this, the purpose of the present invention is to provide an outdoor screen program delivery control method, system, storage medium and computer to solve the technical problems existing in the prior art.
[0005] The present invention provides a method for controlling outdoor screen program delivery, comprising:
[0006] Constructing a reference program, wherein the reference program is divided into a plurality of data grids, each data grid contains a plurality of pixels, and the data grids are numbered in sequence according to a preset rule;
[0007] Sending the reference program to the outdoor screen to be delivered, so as to partially display the reference program on the outdoor screen, and collecting the target image of the outdoor screen to be delivered according to the picture mask;
[0008] intercepting a target area corresponding to the target image on the reference program, and obtaining the number of rows and columns of data grids contained in the target area in the reference program;
[0009] Based on the number of pixels of the data grid in the reference program, the number of pixels of the complete data grid in the target area and the number of pixels of the data grid missing at the edge of the target area are obtained;
[0010] Scaling the data grids at the edge of the target area according to the number of pixels of the missing data grids, and obtaining the starting point coordinates of the target area according to the scaling result;
[0011] The size of the corresponding data grid in the reference program is adjusted based on the scaling size of the target area, the frame size of the program to be played is adjusted according to the adjustment result of the data grid, and the program is delivered to the outdoor screen to be delivered according to the starting point coordinates and the frame size of the program to be played.
[0012] Preferably, the size of the reference program is Npx*Npx, and the size of each data grid in the reference program is npx*npx, wherein N≥1000, n≥10, and px represents pixels.
[0013] Preferably, the step of collecting the target image of the outdoor screen to be projected according to the picture mask comprises:
[0014] Setting a plurality of display base points in the display area of the picture mask, and adjusting the display base points so that the outdoor screen is completely located in the display area of the picture mask;
[0015] An original image including the outdoor screen to be projected is obtained, the outdoor screen is intercepted based on the display area of the picture mask, the background irrelevant to the outdoor screen in the original image is removed, a target image including only the outdoor screen is obtained, and the target image is grayed.
[0016] Preferably, the target area is a square target area, and the step of intercepting the target area corresponding to the target image on the reference program and obtaining the number of rows and columns of data grids contained in the target area in the reference program comprises:
[0017] Acquire a target area corresponding to the target image after grayscale processing in the reference program;
[0018] Identify all data grid edges within the target area, and analyze edge line grid models of the data grids based on an edge computing model;
[0019] The number of rows and columns of data grids included in the target area in the reference program is obtained based on the edge line grid model.
[0020] Preferably, the step of acquiring the number of pixels of the complete data grids in the target area and the number of pixels of the data grids missing at the edge of the target area based on the number of pixels of the data grids in the reference program comprises:
[0021] Determine the pixel display ratio based on the distance between the shooting device and the outdoor screen when acquiring the target image;
[0022] Performing digital conversion on the target area to convert the target area into a corresponding pixel number matrix in the form of a two-dimensional array;
[0023] According to the pixel display ratio and the number of pixels in the data grids in the reference program, the number of pixels contained in all complete data grids in the target area, the number of pixels contained in the first row of data grids, the number of pixels contained in the last row of data grids, the number of pixels contained in the first column of data grids, and the number of pixels contained in the last column of data grids are obtained.
[0024] Preferably, the step of scaling the data grids at the edge of the target area according to the number of pixels of the missing data grids and acquiring the starting point coordinates of the target area according to the scaling result comprises:
[0025] Calculate the average number of pixels contained in the complete data grid in the target area;
[0026] Eliminate the data grids at the intersection of the row data grids and the column data grids at the edge of the target area, and calculate the average number of pixels contained in the first row data grid, the average number of pixels contained in the last row data grid, the average number of pixels contained in the first column data grid, and the average number of pixels contained in the last column data grid in the target area;
[0027] The height of the first row of data grids is reduced according to the average number of pixels contained in the first row of data grids and the average number of pixels contained in the complete data grids;
[0028] The height of the second-to-last row of data grids is enlarged according to the average number of pixels contained in the first row of data grids, the average number of pixels contained in the last row of data grids, and the average number of pixels contained in the complete data grids;
[0029] The width of the first column of data grids is reduced according to the average number of pixels contained in the first column of data grids and the average number of pixels contained in the complete data grids;
[0030] The width of the second to last column of data grids is enlarged according to the average value of the number of pixels contained in the first column of data grids, the average value of the number of pixels contained in the last column of data grids, and the average value of the number of pixels contained in the complete data grids;
[0031] The starting point coordinates of the target area are determined according to the position of the data grid of the first row and the first column in the zoomed target area in the reference program.
[0032] Preferably, the pixel display ratio is 0.01-1.
[0033] The present invention also proposes an outdoor screen program delivery control system, comprising:
[0034] A construction module, used for constructing a reference program, wherein the reference program is divided into a plurality of data grids, each data grid contains a plurality of pixels, and the data grids are numbered in sequence according to a preset rule;
[0035] A collection module, used for sending the reference program to the outdoor screen to be delivered, so as to display the reference program part on the outdoor screen, and collecting the target image of the outdoor screen to be delivered according to the picture mask;
[0036] An interception module, used for intercepting a target area corresponding to the target image on the reference program, and obtaining the number of rows and columns of data grids contained in the target area in the reference program;
[0037] A calculation module, used for obtaining the number of pixels of the complete data grids in the target area and the number of pixels of the data grids missing at the edge of the target area based on the number of pixels of the data grids in the reference program;
[0038] A scaling module, used to scale the data grids at the edge of the target area according to the number of pixels of the missing data grids, and obtain the starting point coordinates of the target area according to the scaling result;
[0039] The delivery module is used to adjust the size of the corresponding data grid in the reference program based on the scaling size of the target area, adjust the frame size of the program to be played according to the adjustment result of the data grid, and deliver the program to the outdoor screen to be delivered according to the starting point coordinates and the frame size of the program to be played.
[0040] The present invention also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned outdoor screen program delivery control method is implemented.
[0041] The present invention also proposes a computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned outdoor screen program delivery control method when executing the computer program.
[0042] The beneficial effects of the present invention compared with the prior art are as follows: the outdoor screen program delivery control method proposed in the present application first constructs a reference program according to the size of a conventional screen, obtains the target image of the outdoor screen to be delivered through a screen mask, captures the target area corresponding to the target image on the reference program, and calculates the number of pixels of the complete data grid and the number of pixels of the edge missing data grid in the target area respectively; scales the data grid on the edge of the target area according to the number of pixels contained in the edge missing data grid and obtains the starting point coordinates of the target area; adjusts the size of the corresponding row data grid and column data grid in the reference program according to the scaling result, so that the frame size of the program to be played is adjusted to correspond to the size of the outdoor screen, and finally delivers the program to the outdoor screen according to the starting point coordinates of the target area and the frame size of the advertisement to be played. The outdoor screen program delivery control method provided by the present invention first obtains the image of the outdoor screen to be delivered, obtains the size of the outdoor screen in the reference program, and then adjusts the size of the data grid in the reference program to make it compatible with the outdoor screen, adjusts the frame size of the program to be delivered according to the adjusted data grid, and finally delivers it to the outdoor screen, so that the program delivered to the outdoor screen is complete and the display effect is improved. By automatically calculating and adjusting the size of the data grid and then adjusting the frame size of the program, the debugging process is greatly simplified, the debugging difficulty is reduced, and it is suitable for large-scale promotion.
[0043] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a flow chart of the outdoor screen program delivery control method in the first embodiment of the present invention;
[0045] Figure 2 is a schematic diagram of a reference program in the first embodiment of the present invention;
[0046] Figure 3 is a schematic diagram of a picture mask in the first embodiment of the present invention;
[0047] Figure 4 is a schematic diagram of projecting a target image in a reference program in the first embodiment of the present invention;
[0048] Figure 5 is a schematic diagram of a target area in a first embodiment of the present invention;
[0049] Figure 6 is a schematic diagram of a scaled reference program in the first embodiment of the present invention;
[0050] Figure 7 FIG. 4 is a structural block diagram of a computer in a fourth embodiment of the present invention.
[0051] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0052] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0054] First embodiment
[0055] See also Figure 1 , which shows the outdoor screen program delivery control method in the first embodiment of the present invention, and the outdoor screen program delivery control method specifically includes steps S10 to S60:
[0056] S10, constructing a reference program, wherein the reference program is divided into a plurality of data grids, each data grid contains a plurality of pixels, and the data grids are numbered in sequence according to a preset rule;
[0057] In the specific implementation, it is first necessary to publish a reference program on the outdoor screen to be calibrated. The size of the reference program is Npx*Npx, and the size of each data grid in the reference program is npx*npx, where N≥1000, n≥10, and px represents pixels. In this embodiment, based on the current resolution of the outdoor screen, the size of the reference program is set to 5000px*5000px, which is most appropriate, and px represents pixels. It can adapt to the requirements of different outdoor screens, and the initial width and height of the published reference program are 5000*5000, in pixels; the width and height of the data grid are 10px*10px, that is, the reference program is divided into 500*500 data grids containing 100 pixels; 500*500 data grids can be distributed in black and white to improve the recognition effect. The reference program can be implemented based on web page technology, and the data grids inside become dynamic data grids that can be adjusted at any time; the screen size of the actual program to be launched is smaller than the size of the reference program.
[0058] After the reference program is constructed, the rows and columns of the reference program are numbered and identified respectively. Each data grid has a corresponding identifier. In this embodiment, the row data grid is represented by the number of cycles + letters, and the column is represented by numbers, such as Figure 2 As shown, in the reference program, the identifier of the data grid in the 1st row and 1st column is 1A1, and the identifier of the data grid in the 1st row and the last column is 1A500; the number before A indicates the first cycle of letter A, and the number after A indicates the column number where the data grid is located; similarly, the identifier of the data grid in the 2nd row and 1st column is 1B1, and the identifier of the data grid in the 27th row and the 1st column is 2A1, at which time A cycles for the second time, all letters are used once, and the letters begin to cycle for the second time, and so on; the identifier of the data grid in the 500th row and the 1st column is 20F1, and the identifier of the data grid in the 500th row and the 500th column is 20F500, the number before the letter indicates the number of cycles, and the letter F represents 6, that is, the number of rows represented by 20F is: (20-1)*26+6=500.
[0059] S20, sending the reference program to the outdoor screen to be delivered, so as to partially display the reference program on the outdoor screen, and collecting the target image of the outdoor screen to be delivered according to the picture mask;
[0060] In this embodiment, the reference program is first sent to the outdoor screen. The size of the reference program is larger than the size of the outdoor screen, and a data grid of part of the reference program is displayed on the outdoor screen.
[0061] Step S20 includes:
[0062] Setting a plurality of display base points in the display area of the picture mask, and adjusting the display base points so that the outdoor screen is completely located in the display area of the picture mask;
[0063] An original image including the outdoor screen to be projected is obtained, the outdoor screen is intercepted based on the display area of the picture mask, the background irrelevant to the outdoor screen in the original image is removed, a target image including only the outdoor screen is obtained, and the target image is grayed.
[0064] In specific implementation, Figure 3As shown, the screen mask is used to align with the outdoor screen to be projected, and the multiple coordinate points of the placement area in the middle of the screen mask are freely dragged until it is close to the outdoor screen. The coordinate points determined here are the basis for the subsequent capture of the picture. After the mask data is saved, the automatic calibration process is started, and the high-definition camera built into the dedicated mobile terminal can be used to capture photos; the original image captured is an image containing the outdoor screen. It can be understood that the original image may also contain backgrounds that are not related to the outdoor screen; for example, when shooting the outdoor screen outside the shopping mall, the original image captured may contain shopping malls, streets and other backgrounds that are not related to the outdoor screen; this background is irrelevant to the size of the outdoor screen and needs to be removed; in this embodiment, the original image is first captured, and then the original image is analyzed according to the mask data, and the original image is captured according to several display base points in the screen mask to obtain a target image that only retains the outdoor screen, and then the target image that only contains the outdoor screen is grayed. The graying is to eliminate interference from other color systems and improve the recognition effect of projecting into the reference program.
[0065] S30, intercepting a target area corresponding to the target image on the reference program, and obtaining the number of rows and columns of data grids contained in the target area in the reference program;
[0066] Optionally, in this embodiment, the target area acquired through the mask is a quadrilateral area. In some optional embodiments, the shape of the target area can also be acquired by adjusting the base points of the mask according to the size of the outdoor screen; step S30 includes:
[0067] Acquire a target area corresponding to the target image after grayscale processing in the reference program;
[0068] Identify all data grid edges within the target area, and analyze edge line grid models of the data grids based on an edge computing model;
[0069] The number of rows and columns of data grids included in the target area in the reference program is obtained based on the edge line grid model.
[0070] In specific implementation, Figure 4 As shown, the target area corresponding to the target image after grayscale processing in the reference program is obtained, the data grid edge in the target area is identified, and the edge line grid model of the data grid is analyzed based on the edge computing model. Based on the edge line grid model, the number of rows and columns of the data grid in the target area in the reference program can be obtained, as shown in FIG. Figure 5 As shown, in this embodiment, the target area is 10 rows and 7 columns; it can be understood that the four sides of the target area do not necessarily coincide with the edges of the data grids, and the data grids at the edges are not fully displayed.
[0071] S40, acquiring the number of pixels of complete data grids in the target area and the number of pixels of data grids missing at the edge of the target area based on the number of pixels of data grids in the reference program;
[0072] Optionally, step S40 includes:
[0073] Determine the pixel display ratio based on the distance between the shooting device and the outdoor screen when acquiring the target image;
[0074] Performing digital conversion on the target area to convert the target area into a corresponding pixel number matrix in the form of a two-dimensional array;
[0075] According to the pixel display ratio and the number of pixels in the data grids in the reference program, the number of pixels contained in all complete data grids in the target area, the number of pixels contained in the first row of data grids, the number of pixels contained in the last row of data grids, the number of pixels contained in the first column of data grids, and the number of pixels contained in the last column of data grids are obtained.
[0076] In the specific implementation, in the reference program, the size of each data grid is 100 pixels. Since the distance from the screen may be different during the shooting process, it is difficult to shoot 1:1, so the data grid of the same size may have different pixel value ratios after shooting at different distances. Therefore, the pixel display ratio can be 0.01-1; in this embodiment, the pixel display ratio between the pixels analyzed from the captured image and the pixels of the data grid in the reference program is 0.5; schematically, in this embodiment, the pixels of the data grid in the target area are analyzed and converted into data, and finally converted into the number of pixels in the format of:
[0077] First row: [1&10, 2&25, 3&25, 4&25, 5&25, 6&25, 7&12]
[0078] Second row: [1&20, 2&50, 3&50, 4&50, 5&50, 6&50, 7&15]
[0079] …: … … … … … …
[0080] The ninth line: [1&20, 2&50, 3&50, 4&50, 5&50, 6&50, 7&15]
[0081] The tenth line: [1&5, 2&11, 3&11, 4&11, 5&11, 6&11, 7&7]
[0082] According to the number of pixels in the parsed data grid, Figure 5 As shown, Figure 5The number of pixels contained in the four corners is different. The first row, first column, last row, and last column are all missing, and the number of pixels in other columns and rows varies greatly. The data grids from the second row to the second to last row, and from the second column to the second to last column are complete data grids, and the number of pixels contained in each data grid does not deviate much.
[0083] S50, scaling the data grids at the edge of the target area according to the number of pixels of the missing data grids, and acquiring the starting point coordinates of the target area according to the scaling result;
[0084] Optionally, step S50 includes:
[0085] Calculate the average number of pixels contained in the complete data grid in the target area;
[0086] Eliminate the data grids at the intersection of the row data grids and the column data grids at the edge of the target area, and calculate the average number of pixels contained in the first row data grid, the average number of pixels contained in the last row data grid, the average number of pixels contained in the first column data grid, and the average number of pixels contained in the last column data grid in the target area;
[0087] The height of the first row of data grids is reduced according to the average number of pixels contained in the first row of data grids and the average number of pixels contained in the complete data grids;
[0088] The height of the second-to-last row of data grids is enlarged according to the average number of pixels contained in the first row of data grids, the average number of pixels contained in the last row of data grids, and the average number of pixels contained in the complete data grids;
[0089] The width of the first column of data grids is reduced according to the average number of pixels contained in the first column of data grids and the average number of pixels contained in the complete data grids;
[0090] The width of the second to last column of data grids is enlarged according to the average value of the number of pixels contained in the first column of data grids, the average value of the number of pixels contained in the last column of data grids, and the average value of the number of pixels contained in the complete data grids;
[0091] The starting point coordinates of the target area are determined according to the position of the data grid of the first row and the first column in the zoomed target area in the reference program.
[0092] In specific implementation, firstly, the average number of pixels contained in the complete data grids is calculated according to the number of pixels contained in each complete data grid obtained by parsing. In this embodiment, the average number of pixels contained in the complete data grids is 50.
[0093] Then the high scaling value of the data grid is calculated, and the high scaling value depends on the number of pixels in the first row and the last row; the wide scaling value depends on the number of pixels in the first column and the last column. In this example, since the data grids at the intersection of the four corner rows and columns of the target edge area have both row and column missing, it is necessary to remove the number of data grid pixels at the four corners during specific implementation.
[0094] The average number of pixels in the first row is taken from the second to the second to last column of the first row. The result is [2&25, ..., 6&25]. The length of the array is 5. Because there are 7 columns in total, only 5 columns of data are left after removing the first and last columns. Then take the average value = total number of pixels / number of columns = (25+25+25+25+25) / 5 = 25;
[0095] The average number of pixels in the last row is taken from the second to the second to last column of the last row. The result is [2&11, ..., 6&11]. The length of the array is 5. Because there are 7 columns in total, only 5 columns of data are left after removing the first and last columns. Then take the average value = total number of pixels / number of columns = (11+11+11+11+11) / 5 = 11;
[0096] The average number of pixels in the first column is taken from the second row to the second to last row of the first column. The result is [1&20, …, 1&20]. The length of the array is 8. Because there are 10 rows in total, only 8 rows of data are left after removing the first and last rows. Then take the average value = total number of pixels / number of rows = (20+20+20+20+20+20+20+20) / 8=20;
[0097] The average number of pixels in the last column is taken from the second row to the second to last row of the last column. The result is [1&15, …, 1&15]. The length of the array is 8. Because there are 10 rows in total, only 8 rows of data are left after removing the first and last rows. Then take the average value = total number of pixels / number of rows = (15+15+15+15+15+15+15+15) / 8 = 15;
[0098] Identify the identifier of any data grid. In the data grid of 10 rows and 7 columns in the target area, as long as the identifier in any data grid is identified, each identifier of the entire data grid of 10 rows and 7 columns can be deduced. Schematically, when the 2nd row and 3rd column is identified as 1B4; 1B4 means the first round of letter cycle, the number of rows is B and the number of columns is 4, that is, in the entire global data grid (500*500) program, it is the data grid of the 2nd row and 4th column, but in the identified target area, it is indicated that the data grid is the 2nd row and 3rd column. It is deduced that the first row of the picture displayed on the outdoor screen is numbered 1A, 1A means the number of letters in the first cycle is A; the first column is numbered 2, indicating that its column number starts from the 2nd column; accordingly, the second row is numbered 1B and the second column is numbered 3.
[0099] The data grid is adjusted by scaling the size. The left and top, that is, the first column and the first row, are reduced in size, while the right and bottom, that is, the second to last column and the second to last row, are enlarged in size. Not all rows and columns are involved in the change, because the more rows and columns are involved, the more serious the loss of precision after calculation, the greater the deviation, and complicates the calculation process.
[0100] Reduction value of the height of the first row: The average number of pixels in the first row is 25, while the average number of pixels in the complete data grid is 50. Based on the geometric conversion principle, the reduction value = (average value of the first row / average value of the complete data grid) * (height of the original data grid) = (25 / 50) * 10 = 5, which means that the height of the first row is reduced by 5. Optionally, if there is a decimal, round it up.
[0101] The high magnification value of the second-to-last row: the average number of pixels in the last row is 11, while the average number of pixels in the complete data grid is 50. Based on the geometric conversion principle, the reduction value = (average value of the last row / average value of the complete data grid) * (height of the original data grid) = (11 / 50) * 10 = 2.2. The decimal is rounded up to 3, and the high magnification of the second-to-last row is 3+5=8.
[0102] Reduction value of the width of the first column: the average number of pixels in the first column is 20, while the average number of pixels in the complete data grid is 50. Based on the geometric conversion principle, the reduction value = (average value of the first column / average value of the complete data grid) * (width of the original data grid) = (20 / 50) * 10 = 4, which means that the width of the first column is reduced by 4.
[0103] Width enlargement value of the second-to-last column: The average number of pixels in the last column is 15, while the average number of pixels in the complete data grid is 50. Based on the geometric conversion principle, the reduction value = (average value of the last column / average value of the complete data grid) * (width of the original data grid) = (15 / 50) * 10 = 3. Finally, the width of the second-to-last column is enlarged by 3+4=7.
[0104] Calculate the width and height of the actual display area of the outdoor screen: width = width of 1B3 + width of 1B4 + width of 1B5 + width of 1B6 + width of 1B7 = 10 + 10 + 10 + 10 + 17 = 57; height = height of 1B3 + height of 1C3 + height of 1D3 + height of 1E3 + height of 1F3 + height of 1G3 + height of 1H3 + height of 1I3 = 10 + 10 + 10 + 10 + 10 + 10 + 18 = 88. Calculate the starting coordinates of the outdoor screen display area: x coordinate = width of 1A1 + width of 1A2 = 10 + 6 = 16, y coordinate = height of 1A1 = 5; then the starting coordinates are (16, 5).
[0105] S60, adjusting the size of the corresponding data grid in the reference program based on the zoom size of the target area, adjusting the frame size of the program to be played according to the adjustment result of the data grid, and delivering the program to the outdoor screen to be delivered according to the starting point coordinates and the frame size of the program to be played.
[0106] In this embodiment, after the deviation values of the four edges are calculated, according to the four deviation values, Figure 6 As shown, in the original 500x500 data grid web page, the height of the 1st row (-5) and the 9th row (+8) are changed, and the width of the 2nd column (-4) and the 7th column (+7) are changed; using a data grid in the form of a web page instead of generating a data grid image, the width and height of the corresponding rows and columns can be directly processed by programming language, thereby improving processing efficiency. After the data grid web page is changed, the program generation starts. The width and height of the playback area of the program to be released are (57*88), and the starting point coordinates are (16, 5). After the program framework is assembled, the assembled data is sent to the large-screen broadcast control module. After receiving the relevant data of the new program, the playback configuration management module of the large-screen broadcast control module saves it locally. After the update feedback module detects that the program data has changed, it immediately updates the corresponding program parameters and playback parameters, and after the update is completed, it promptly feedbacks to the program release feedback unit on the server. After the calibration and confirmation of the program release feedback unit is completed, the web page in the program framework can be replaced. The web page content can be replaced with the video or picture advertisement content to be played. Automatic calibration and program update are completed.
[0107] In summary, the outdoor screen program delivery control method proposed in the present application first constructs a reference program according to the size of a conventional screen, obtains the target image of the outdoor screen to be delivered through a screen mask, captures the target area corresponding to the target image on the reference program, and calculates the number of pixels of the complete data grid and the number of pixels of the edge missing data grid in the target area respectively; scales the data grids on the edge of the target area according to the number of pixels contained in the edge missing data grid and obtains the starting point coordinates of the target area; adjusts the size of the corresponding row data grid and column data grid in the reference program according to the scaling result, so that the frame size of the program to be played is adjusted to correspond to the size of the outdoor screen, and finally delivers the program to the outdoor screen according to the starting point coordinates of the target area and the frame size of the advertisement to be played. The outdoor screen program delivery control method provided by the present invention first obtains the image of the outdoor screen to be delivered, obtains the size of the outdoor screen in the reference program, and then adjusts the size of the data grid in the reference program to make it compatible with the outdoor screen, adjusts the frame size of the program to be delivered according to the adjusted data grid, and finally delivers it to the outdoor screen, so that the program delivered to the outdoor screen is complete and the display effect is improved. By automatically calculating and adjusting the size of the data grid and then adjusting the frame size of the program, the debugging process is greatly simplified, the debugging difficulty is reduced, and it is suitable for large-scale promotion.
[0108] Second embodiment
[0109] This embodiment provides an outdoor screen program delivery control system, including:
[0110] A construction module, used for constructing a reference program, wherein the reference program is divided into a plurality of data grids, each data grid contains a plurality of pixels, and the data grids are numbered in sequence according to a preset rule;
[0111] The size of the reference program is Npx*Npx, and the size of each data grid in the reference program is npx*npx, wherein N≥1000, n≥10, and px represents pixels.
[0112] A collection module, used for sending the reference program to the outdoor screen to be delivered, so as to display the reference program part on the outdoor screen, and collecting the target image of the outdoor screen to be delivered according to the picture mask;
[0113] The acquisition module is specifically used for:
[0114] Setting a plurality of display base points in the display area of the picture mask, and adjusting the display base points so that the outdoor screen is completely located in the display area of the picture mask;
[0115] An original image including the outdoor screen to be projected is obtained, the outdoor screen is intercepted based on the display area of the picture mask, the background irrelevant to the outdoor screen in the original image is removed, a target image including only the outdoor screen is obtained, and the target image is grayed.
[0116] An interception module, used for intercepting a target area corresponding to the target image on the reference program, and obtaining the number of rows and columns of data grids contained in the target area in the reference program;
[0117] The interception module is specifically used for:
[0118] Determine the pixel display ratio based on the distance between the shooting device and the outdoor screen when acquiring the target image;
[0119] Performing digital conversion on the target area to convert the target area into a corresponding pixel value matrix in the form of a two-dimensional array;
[0120] According to the pixel display ratio and the pixel values of the data grids in the reference program, the pixel values of all complete data grids in the target area, the pixel values of the first row of data grids, the pixel values of the last row of data grids, the pixel values of the first column of data grids, and the pixel values of the last column of data grids are obtained.
[0121] Wherein, the pixel display ratio is 0.01-1.
[0122] A calculation module, used for obtaining the number of pixels of the complete data grids in the target area and the number of pixels of the data grids missing at the edge of the target area based on the number of pixels of the data grids in the reference program;
[0123] A scaling module, used to scale the data grids at the edge of the target area according to the number of pixels of the missing data grids, and obtain the starting point coordinates of the target area according to the scaling result;
[0124] The scaling module is specifically used for:
[0125] Calculate the average number of pixels contained in the complete data grid in the target area;
[0126] Eliminate the data grids at the intersection of the row data grids and the column data grids at the edge of the target area, and calculate the average number of pixels contained in the first row data grid, the average number of pixels contained in the last row data grid, the average number of pixels contained in the first column data grid, and the average number of pixels contained in the last column data grid in the target area;
[0127] The height of the first row of data grids is reduced according to the average number of pixels contained in the first row of data grids and the average number of pixels contained in the complete data grids;
[0128] The height of the second-to-last row of data grids is enlarged according to the average number of pixels contained in the first row of data grids, the average number of pixels contained in the last row of data grids, and the average number of pixels contained in the complete data grids;
[0129] The width of the first column of data grids is reduced according to the average number of pixels contained in the first column of data grids and the average number of pixels contained in the complete data grids;
[0130] The width of the second to last column of data grids is enlarged according to the average value of the number of pixels contained in the first column of data grids, the average value of the number of pixels contained in the last column of data grids, and the average value of the number of pixels contained in the complete data grids;
[0131] The starting point coordinates of the target area are determined according to the position of the data grid of the first row and the first column in the zoomed target area in the reference program.
[0132] The delivery module is used to adjust the size of the corresponding data grid in the reference program based on the scaling size of the target area, adjust the frame size of the program to be played according to the adjustment result of the data grid, and deliver the program to the outdoor screen to be delivered according to the starting point coordinates and the frame size of the program to be played.
[0133] Third embodiment
[0134] This embodiment provides a storage medium on which a computer program is stored. When the program is executed by a processor, the outdoor screen program delivery control method as described above is implemented.
[0135] Fourth embodiment
[0136] The present invention also provides a computer, see Figure 7 , shown is a computer in the fourth embodiment of the present invention, including a memory 10, a processor 20, and a computer program 30 stored in the memory 10 and executable on the processor 20. When the processor 20 executes the computer program 30, the above-mentioned outdoor screen program delivery control method is implemented.
[0137] The memory 10 includes at least one type of storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10 may be an internal storage unit of a computer, such as a hard disk of the computer. In other embodiments, the memory 10 may also be an external storage device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. Further, the memory 10 may also include both an internal storage unit of the computer and an external storage device. The memory 10 may be used not only to store application software and various types of data installed in the computer, but also to temporarily store data that has been output or is to be output.
[0138] Among them, in some embodiments, the processor 20 can be an electronic control unit (Electronic Control Unit, abbreviated as ECU, also known as a vehicle computer), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run the program code stored in the memory 10 or process data, such as executing access restriction programs, etc.
[0139] It should be pointed out that Figure 7 The structure shown does not constitute a limitation on the computer. In other embodiments, the computer may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0140] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0141] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0142] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0143] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0144] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for controlling outdoor screen program delivery, characterized in that: include; Constructing a reference program, wherein the reference program is divided into a plurality of data grids, each data grid contains a plurality of pixels, and the data grids are numbered in sequence according to a preset rule; Sending the reference program to the outdoor screen to be delivered, so as to partially display the reference program on the outdoor screen, and collecting the target image of the outdoor screen to be delivered according to the picture mask; intercepting a target area corresponding to the target image on the reference program, and obtaining the number of rows and columns of data grids contained in the target area in the reference program; Based on the number of pixels of the data grid in the reference program, the number of pixels of the complete data grid in the target area and the number of pixels of the data grid missing at the edge of the target area are obtained; Scaling the data grids at the edge of the target area according to the number of pixels of the missing data grids, and obtaining the starting point coordinates of the target area according to the scaling result; The size of the corresponding data grid in the reference program is adjusted based on the scaling size of the target area, the frame size of the program to be played is adjusted according to the adjustment result of the data grid, and the program is delivered to the outdoor screen to be delivered according to the starting point coordinates and the frame size of the program to be played.
2. The outdoor screen program delivery control method according to claim 1, characterized in that: The size of the reference program is Npx*Npx, and the size of each data grid in the reference program is npx*npx, wherein N≥1000, n≥10, and px represents pixels.
3. The outdoor screen program delivery control method according to claim 1, characterized in that: The step of collecting the target image of the outdoor screen to be placed according to the picture mask comprises: Setting a plurality of display base points in the display area of the picture mask, and adjusting the display base points so that the outdoor screen is completely located in the display area of the picture mask; An original image including the outdoor screen to be projected is obtained, the outdoor screen is intercepted based on the display area of the picture mask, the background irrelevant to the outdoor screen in the original image is removed, a target image including only the outdoor screen is obtained, and the target image is grayed.
4. The outdoor screen program delivery control method according to claim 3 is characterized in that: The target area is a square target area, and the step of intercepting the target area corresponding to the target image on the reference program and obtaining the number of rows and columns of data grids contained in the target area in the reference program comprises: Acquire a target area corresponding to the target image after grayscale processing in the reference program; Identify all data grid edges within the target area, and analyze edge line grid models of the data grids based on an edge computing model; The number of rows and columns of data grids included in the target area in the reference program is obtained based on the edge line grid model.
5. The outdoor screen program delivery control method according to claim 4 is characterized in that: The step of acquiring the number of pixels of the complete data grids in the target area and the number of pixels of the data grids missing at the edge of the target area based on the number of pixels of the data grids in the reference program comprises: Determine the pixel display ratio based on the distance between the shooting device and the outdoor screen when acquiring the target image; Performing digital conversion on the target area to convert the target area into a corresponding pixel number matrix in the form of a two-dimensional array; According to the pixel display ratio and the number of pixels in the data grids in the reference program, the number of pixels contained in all complete data grids in the target area, the number of pixels contained in the first row of data grids, the number of pixels contained in the last row of data grids, the number of pixels contained in the first column of data grids, and the number of pixels contained in the last column of data grids are obtained.
6. The outdoor screen program delivery control method according to claim 5, characterized in that: The step of scaling the data grids at the edge of the target area according to the number of pixels of the missing data grids and obtaining the starting point coordinates of the target area according to the scaling result comprises: Calculate the average number of pixels contained in the complete data grid in the target area; Eliminate the data grids at the intersection of the row data grids and the column data grids at the edge of the target area, and calculate the average number of pixels contained in the first row data grid, the average number of pixels contained in the last row data grid, the average number of pixels contained in the first column data grid, and the average number of pixels contained in the last column data grid in the target area; The height of the first row of data grids is reduced according to the average number of pixels contained in the first row of data grids and the average number of pixels contained in the complete data grids; The height of the second-to-last row of data grids is enlarged according to the average number of pixels contained in the first row of data grids, the average number of pixels contained in the last row of data grids, and the average number of pixels contained in the complete data grids; The width of the first column of data grids is reduced according to the average number of pixels contained in the first column of data grids and the average number of pixels contained in the complete data grids; The width of the second to last column of data grids is enlarged according to the average value of the number of pixels contained in the first column of data grids, the average value of the number of pixels contained in the last column of data grids, and the average value of the number of pixels contained in the complete data grids; The starting point coordinates of the target area are determined according to the position of the data grid of the first row and the first column in the zoomed target area in the reference program.
7. The outdoor screen program delivery control method according to claim 5, characterized in that: The pixel display ratio is 0.01-1.
8. An outdoor screen program delivery control system, characterized in that: include: A construction module, used for constructing a reference program, wherein the reference program is divided into a plurality of data grids, each data grid contains a plurality of pixels, and the data grids are numbered in sequence according to a preset rule; A collection module, used for sending the reference program to the outdoor screen to be delivered, so as to display the reference program part on the outdoor screen, and collecting the target image of the outdoor screen to be delivered according to the picture mask; An interception module, used for intercepting a target area corresponding to the target image on the reference program, and obtaining the number of rows and columns of data grids contained in the target area in the reference program; A calculation module, used for obtaining the number of pixels of the complete data grids in the target area and the number of pixels of the data grids missing at the edge of the target area based on the number of pixels of the data grids in the reference program; A scaling module, used to scale the data grids at the edge of the target area according to the number of pixels of the missing data grids, and obtain the starting point coordinates of the target area according to the scaling result; The delivery module is used to adjust the size of the corresponding data grid in the reference program based on the scaling size of the target area, adjust the frame size of the program to be played according to the adjustment result of the data grid, and deliver the program to the outdoor screen to be delivered according to the starting point coordinates and the frame size of the program to be played.
9. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the outdoor screen program delivery control method as described in any one of claims 1 to 7 is implemented.
10. A computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the outdoor screen program delivery control method as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
A method of adapting video images to small screen sizes
CN102124727A
Program playing method, television and storage medium
CN108012180A