CN112218143A - Spliced screen video cutting algorithm - Google Patents

Spliced screen video cutting algorithm Download PDF

Info

Publication number
CN112218143A
CN112218143A CN202011002661.XA CN202011002661A CN112218143A CN 112218143 A CN112218143 A CN 112218143A CN 202011002661 A CN202011002661 A CN 202011002661A CN 112218143 A CN112218143 A CN 112218143A
Authority
CN
China
Prior art keywords
video
cut
window
screen
spliced screen
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.)
Pending
Application number
CN202011002661.XA
Other languages
Chinese (zh)
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.)
Hefei Chuan Xiu Technology Co ltd
Original Assignee
Anhui Huishi Technology 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 Anhui Huishi Technology Co ltd filed Critical Anhui Huishi Technology Co ltd
Priority to CN202011002661.XA priority Critical patent/CN112218143A/en
Publication of CN112218143A publication Critical patent/CN112218143A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Circuits (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a spliced screen video cutting algorithm, which comprises the steps of firstly calculating the horizontal and vertical pixel distribution deviation proportion of each spliced screen relative to a window video to be cut, and then respectively calculating the deviation of each spliced screen relative to the window video to be cut according to the horizontal and vertical pixel distribution deviation proportion; and finally, respectively distributing the pixels of the video of the window to be cut to each spliced screen according to the offset and the alignment required by the decoder chip of each spliced screen. The method and the device can realize the rapid distribution of the video of the window to be cut to each spliced screen.

Description

Spliced screen video cutting algorithm
Technical Field
The invention relates to the field of video algorithms, in particular to a spliced screen video cutting algorithm.
Background
The spliced screen is a technical scheme for increasing the display area by increasing the number of pixel points of a large screen in a mode of utilizing a plurality of screens.
The traditional spliced screen uses a centralized control mode to input multiple signal sources in one device. The cutting of the video window is performed centrally in the device. Because the centralized processing mode is adopted, the device performance is limited, and the number of screens cannot be increased without limit. In addition, due to a centralized mode, the equipment has single-point failure, and high availability and rapid switching of standby machines cannot be realized.
At present, distributed video processing modes are also available for video processing of a spliced screen. The distributed video processing mode and the centralized control mode are different, and each spliced screen is provided with a decoder unit to control the display content of one screen. The server is responsible for informing the decoder unit of the content required to be displayed by the screen by means of instructions. The decoder unit reads the video data stream over the network and displays it as required.
The content displayed by each spliced screen is different, and the server needs to calculate the size of the video to be displayed by each decoder unit, the position of video display and the offset of the displayed video through a video cutting algorithm. In addition, since the offset and size of the decoder chip to the video have pixel alignment requirements, the algorithm also needs to ensure that the window sizes cut to different decoders are aligned as required on the premise of ensuring that no pixel is lost. Therefore, a video cutting algorithm implemented by a server is needed, so that the to-be-cut video can rapidly distribute pixels to each spliced screen.
Disclosure of Invention
The invention aims to provide a video cutting algorithm for spliced screens, which is used for rapidly distributing pixels of videos to be cut to each spliced screen during distributed video processing.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a mosaic screen video cutting algorithm is characterized in that: the method comprises the following steps:
(1) establishing a coordinate system:
in a large screen formed by a plurality of spliced screens according to a horizontal and vertical array, a horizontal and vertical edge cross point at the upper left corner of the large screen is taken as an origin to establish an xy coordinate system, and then a window video to be cut is placed in the xy coordinate system
(2) Calculating the transverse pixel distribution deviation proportion of each spliced screen relative to the video of the window to be cut:
(2.1) acquiring the abscissa of each spliced screen in an xy coordinate system, and forming a first reference array by the abscissa of each spliced screen;
(2.2) according to the overlapping area of the video of the window to be cut and each spliced screen, determining the overlapping part of the transverse resolution of the video of the window to be cut and each element in the first reference array, calculating the proportion of each overlapping part to the transverse width of the video of the window to be cut, and taking the calculation result as the transverse pixel distribution deviation proportion of each spliced screen relative to the video of the window to be cut;
(3) calculating the vertical pixel distribution deviation proportion of each spliced screen relative to the video of the window to be cut:
(3.1) acquiring the vertical coordinates of each spliced screen in an xy coordinate system respectively, and forming a second reference array by the vertical coordinates of each spliced screen;
(3.2) according to the overlapping area of the video of the window to be cut and each spliced screen, determining the overlapping part of the longitudinal resolution of the video of the window to be cut and each element in the second reference array, calculating the proportion of each overlapping part to the longitudinal length of the video of the window to be cut, and taking the calculation result as the longitudinal pixel distribution deviation proportion of each spliced screen relative to the video of the window to be cut;
(4) respectively calculating the offset of each spliced screen relative to the video of the window to be cut according to the horizontal and vertical pixel distribution offset proportion of each spliced screen relative to the video of the window to be cut obtained in the steps (2) and (3);
(5) distributing pixels of the video of the window to be cut:
and (3) setting that the decoder chip of each splicing screen requires the size of the video of the window to be cut and the alignment quantity of the offset to be a, cutting the overlapping area of the video of the window to be cut and each splicing screen from the video of the window to be cut according to the alignment quantity a, and then distributing the pixels in the part cut from the video of the window to be cut to the corresponding splicing screen according to the offset of each splicing screen obtained in the step (4) relative to the video of the window to be cut according to the alignment quantity a.
The spliced screen video cutting algorithm is characterized in that: in the step (1), the horizontal and vertical coordinates of the overlapped part of the video of the window to be cut and each spliced screen are aligned with the horizontal and vertical coordinates of the corresponding spliced screen according to the alignment quantity a, and if the end position of the video of the window to be cut cannot be aligned according to the alignment quantity a, pixels are added to enable the video to be aligned according to the alignment quantity a.
The spliced screen video cutting algorithm is characterized in that: and (3) in the step (2) and the step (3), when the calculated distribution deviation ratios of the transverse and longitudinal pixels are floating point values, taking fixed decimal digits.
The spliced screen video cutting algorithm is characterized in that: and (5) when the pixels are distributed in the step (5), rounding up the offset of each splicing screen relative to the video of the window to be cut, and distributing the pixels according to the rounding up result.
Compared with the prior art, the invention has the advantages that:
the method can quickly calculate the position and the offset of the spliced screen corresponding to the to-be-cut window video, ensure the alignment according to pixels while having no pixel loss, and further realize the quick distribution of the to-be-cut window video to each spliced screen.
Drawings
FIG. 1 is a block flow diagram of the method of the present invention.
Fig. 2 is a schematic diagram of the coordinate system established by the present invention.
Detailed Description
The invention is further illustrated with reference to the following figures and examples.
As shown in fig. 1, a mosaic screen video cutting algorithm includes the following steps:
(1) establishing a coordinate system:
as shown in fig. 2, in a large screen composed of four spliced screens in a horizontal and vertical array, a cross point of a horizontal and vertical edge at the upper left of the large screen is taken as an origin to establish an xy coordinate system, and then a window video to be cut is placed in the xy coordinate system.
In the embodiment, a large screen is formed by four spliced screens, an origin (0,0) in an xy coordinate system is located at a cross point of the transverse and longitudinal edges at the upper left of the large screen, the abscissa of a boundary line between the left and right adjacent spliced screens is (RW,0), and the abscissa of the right side edge of the rightmost spliced screen is (2RW, 0); the ordinate of the boundary line between the upper and lower adjacent spliced screens is (0, RH), and the ordinate of the lower side edge of the lowest spliced screen is (0,2 RH). It can be seen from fig. 2 that the coordinates of each mosaic screen in the xy coordinate system can be obtained, wherein the x coordinates of the upper and lower adjacent mosaic screens are the same, and the y coordinates of the left and right adjacent mosaic screens are the same. The to-be-cut window video (shown by a dotted line in fig. 2) is placed in the coordinate system, and accordingly, the coordinates of the to-be-cut window video in the xy coordinate system can also be obtained, the coordinates of the top left vertex of the to-be-cut window video are (x, y), the coordinates of the top right vertex are (x + w, y), the coordinates of the bottom left vertex are (x, y + h), and the coordinates of the bottom right vertex are (x + w, y + h).
The decoder chip of each spliced screen requires that the size of a window video to be cut and the alignment amount of offset are both a, wherein a refers to the number of pixels, and the chips can be forced to align according to the pixels when processing video signals. In the step (1), the horizontal and vertical coordinates of the overlapped part of the video of the window to be cut and each spliced screen are aligned with the horizontal and vertical coordinates of the corresponding spliced screen according to the alignment quantity a, and if the end position of the video of the window to be cut cannot be aligned according to the alignment quantity a, pixels are added to enable the video to be cut to be aligned according to the alignment quantity a. The alignment according to the alignment amount a means that the horizontal and vertical coordinates of the overlapped portion must be a times of the horizontal and vertical coordinates of the corresponding spliced screen, and the later alignment according to the alignment amount a is the same as that here.
(2) Calculating the transverse pixel distribution deviation proportion of each spliced screen relative to the video of the window to be cut:
(2.1) acquiring the abscissa of each spliced screen in an xy coordinate system, and forming a first reference array by the abscissa of each spliced screen;
and (2.2) determining the overlapping parts of the horizontal resolution of the window video to be cut and each element in the first reference array according to the overlapping area of the window video to be cut and each spliced screen, calculating the proportion of each overlapping part to the horizontal width of the window video to be cut, and taking the calculation result as the horizontal pixel distribution deviation proportion of each spliced screen relative to the window video to be cut.
As shown in fig. 2, the window video to be cut and the four mosaic screens have four overlapping areas in total, but the x coordinates of two mosaic screens adjacent up and down in the four overlapping areas are the same, so that two groups of specific values of the lateral pixel distribution offset ratios of the four mosaic screens relative to the window video to be cut, which are calculated according to the lateral resolution of the window video to be cut and each element in the first reference array, are respectively corresponding to the mosaic screens adjacent up and down on the left side and the right side.
(3) Calculating the vertical pixel distribution deviation proportion of each spliced screen relative to the video of the window to be cut:
(3.1) acquiring the vertical coordinates of each spliced screen in an xy coordinate system respectively, and forming a second reference array by the vertical coordinates of each spliced screen;
and (3.2) according to the overlapping area of the video of the window to be cut and each spliced screen, determining the overlapping part of the longitudinal resolution of the video of the window to be cut and each element in the second reference array, calculating the proportion of each overlapping part to the longitudinal length of the video of the window to be cut, and taking the calculation result as the longitudinal pixel distribution deviation proportion of each spliced screen relative to the video of the window to be cut.
As shown in fig. 2, the window video to be cut and the four mosaic screens have four overlap areas in total, but the y coordinates of the two mosaic screens adjacent to each other on the left and right in the four overlap areas are the same, so that two specific values of the vertical pixel distribution offset ratios of the four mosaic screens relative to the window video to be cut, which are calculated according to the vertical resolution of the window video to be cut and each element in the second reference array, are provided, and the two specific values correspond to the mosaic screens adjacent on the left and right on the upper and lower sides.
And (3) in the step (2) and the step (3), when the calculated distribution deviation ratios of the transverse and longitudinal pixels are floating point values, taking fixed decimal digits.
(4) And respectively calculating the offset of each spliced screen relative to the video of the window to be cut according to the transverse and longitudinal pixel distribution offset proportion of each spliced screen relative to the video of the window to be cut obtained in the steps (2) and (3). The video offset is the offset of the video to be cut relative to the original window to be cut when the cutting part is distributed to the corresponding splicing screen after the overlapped area in the window video to be cut is cut.
(5) Distributing pixels of the video of the window to be cut:
and (4) segmenting the overlapping area of the window video to be cut and each splicing screen from the window video to be cut according to the alignment quantity a, and then distributing pixels in the portion segmented from the window video to be cut to the corresponding splicing screen according to the alignment quantity a according to the offset of each splicing screen relative to the window video to be cut, which is obtained in the step (4).
And when pixels are specifically distributed, carrying out upward rounding on the offset of each splicing screen relative to the video of the window to be cut, and carrying out pixel distribution according to the upward rounding result.
When pixels are allocated, pixels are allocated according to the priority from left to right and from top to bottom as much as possible, and the alignment as a is ensured. As shown in fig. 2, if the horizontal coordinate of the video of the window to be cut has 100 pixels, the alignment amount is 4. Because the distribution deviation proportions of the horizontal pixels and the vertical pixels are two groups, more pixels are distributed on the left spliced screen in the left-right direction and the upper spliced screen in the up-down direction as far as possible according to the principle that the priority of the pixels is reduced from left to right and the priority of the pixels is reduced from top to bottom when the pixels are distributed, and the distributed pixels are aligned according to 4.
The embodiments of the present invention are described only for the preferred embodiments of the present invention, and not for the limitation of the concept and scope of the present invention, and various modifications and improvements made to the technical solution of the present invention by those skilled in the art without departing from the design concept of the present invention shall fall into the protection scope of the present invention, and the technical content of the present invention which is claimed is fully set forth in the claims.

Claims (4)

1. A mosaic screen video cutting algorithm is characterized in that: the method comprises the following steps:
(1) establishing a coordinate system:
in a large screen formed by a plurality of spliced screens according to a horizontal and vertical array, taking a horizontal and vertical edge cross point at the upper left corner of the large screen as an origin to establish an xy coordinate system, and then placing a window video to be cut in the xy coordinate system;
(2) calculating the transverse pixel distribution deviation proportion of each spliced screen relative to the video of the window to be cut:
(2.1) acquiring the abscissa of each spliced screen in an xy coordinate system, and forming a first reference array by the abscissa of each spliced screen;
(2.2) according to the overlapping area of the video of the window to be cut and each spliced screen, determining the overlapping part of the transverse resolution of the video of the window to be cut and each element in the first reference array, calculating the proportion of each overlapping part to the transverse width of the video of the window to be cut, and taking the calculation result as the transverse pixel distribution deviation proportion of each spliced screen relative to the video of the window to be cut;
(3) calculating the vertical pixel distribution deviation proportion of each spliced screen relative to the video of the window to be cut:
(3.1) acquiring the vertical coordinates of each spliced screen in an xy coordinate system respectively, and forming a second reference array by the vertical coordinates of each spliced screen;
(3.2) according to the overlapping area of the video of the window to be cut and each spliced screen, determining the overlapping part of the longitudinal resolution of the video of the window to be cut and each element in the second reference array, calculating the proportion of each overlapping part to the longitudinal length of the video of the window to be cut, and taking the calculation result as the longitudinal pixel distribution deviation proportion of each spliced screen relative to the video of the window to be cut;
(4) respectively calculating the offset of each spliced screen relative to the video of the window to be cut according to the horizontal and vertical pixel distribution offset proportion of each spliced screen relative to the video of the window to be cut obtained in the steps (2) and (3);
(5) distributing pixels of the video of the window to be cut:
and (3) setting that the decoder chip of each splicing screen requires the size of the video of the window to be cut and the alignment quantity of the offset to be a, cutting the overlapping area of the video of the window to be cut and each splicing screen from the video of the window to be cut according to the alignment quantity a, and then distributing the pixels in the part cut from the video of the window to be cut to the corresponding splicing screen according to the offset of each splicing screen obtained in the step (4) relative to the video of the window to be cut according to the alignment quantity a.
2. The tiled screen video slicing algorithm of claim 1, wherein: in the step (1), the horizontal and vertical coordinates of the overlapped part of the video of the window to be cut and each spliced screen are aligned with the horizontal and vertical coordinates of the corresponding spliced screen according to the alignment quantity a, and if the end position of the video of the window to be cut cannot be aligned according to the alignment quantity a, pixels are added to enable the video to be aligned according to the alignment quantity a.
3. The tiled screen video slicing algorithm of claim 1, wherein: and (3) in the step (2) and the step (3), when the calculated distribution deviation ratios of the transverse and longitudinal pixels are floating point values, taking fixed decimal digits.
4. The tiled screen video slicing algorithm of claim 1, wherein: and (5) when the pixels are distributed in the step (5), rounding up the offset of each splicing screen relative to the video of the window to be cut, and distributing the pixels according to the rounding up result.
CN202011002661.XA 2020-09-22 2020-09-22 Spliced screen video cutting algorithm Pending CN112218143A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011002661.XA CN112218143A (en) 2020-09-22 2020-09-22 Spliced screen video cutting algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011002661.XA CN112218143A (en) 2020-09-22 2020-09-22 Spliced screen video cutting algorithm

Publications (1)

Publication Number Publication Date
CN112218143A true CN112218143A (en) 2021-01-12

Family

ID=74049811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011002661.XA Pending CN112218143A (en) 2020-09-22 2020-09-22 Spliced screen video cutting algorithm

Country Status (1)

Country Link
CN (1) CN112218143A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596577A (en) * 2021-07-22 2021-11-02 上海领路人照明工程有限公司 Visual cutting and issuing method, device, medium and terminal of linkage video
CN115499599A (en) * 2022-11-16 2022-12-20 深圳市湘凡科技有限公司 Video splicing display method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104918137A (en) * 2015-06-03 2015-09-16 宁波Gqy视讯股份有限公司 Method enabling spliced screen system to play videos
CN110569013A (en) * 2019-09-24 2019-12-13 支付宝(杭州)信息技术有限公司 image display method and device based on display screen
US20200057595A1 (en) * 2018-08-15 2020-02-20 Boe Technology Group Co., Ltd. Splicing screen, display method thereof and display control apparatus
WO2020062498A1 (en) * 2018-09-25 2020-04-02 北京嗨动视觉科技有限公司 Image display method and video processing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104918137A (en) * 2015-06-03 2015-09-16 宁波Gqy视讯股份有限公司 Method enabling spliced screen system to play videos
US20200057595A1 (en) * 2018-08-15 2020-02-20 Boe Technology Group Co., Ltd. Splicing screen, display method thereof and display control apparatus
WO2020062498A1 (en) * 2018-09-25 2020-04-02 北京嗨动视觉科技有限公司 Image display method and video processing device
CN110569013A (en) * 2019-09-24 2019-12-13 支付宝(杭州)信息技术有限公司 image display method and device based on display screen

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596577A (en) * 2021-07-22 2021-11-02 上海领路人照明工程有限公司 Visual cutting and issuing method, device, medium and terminal of linkage video
CN113596577B (en) * 2021-07-22 2023-03-21 上海领路人科技股份有限公司 Visual cutting and issuing method, device, medium and terminal of linkage video
CN115499599A (en) * 2022-11-16 2022-12-20 深圳市湘凡科技有限公司 Video splicing display method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112218143A (en) Spliced screen video cutting algorithm
CN109658427B (en) Image processing method and device
CN105824593A (en) Spliced screen display system and spliced display method
CN103810675B (en) Image super-resolution reconfiguration system and method
CN101646975B (en) Active matrix substrate, liquid crystal panel, liquid crystal display unit, liquid crystal display device, television receiver, and method of manufacturing liquid crystal panel
CN103760693B (en) The Wiring structure of array base palte
CN109992226A (en) Image display method and device and spliced display screen
CN111492341B (en) Method for determining offset distance of spliced display screen and related device
CN101510304B (en) Method, device and pick-up head for dividing and obtaining foreground image
US20160161814A1 (en) Display Panel and Display Apparatus
US20170261798A1 (en) Liquid crystal display screen and manufacturing method of long strip liquid crystal display screen
CN106226967A (en) A kind of array base palte, display floater and manufacture method
CN110989949A (en) Method and device for special-shaped splicing display
US10410326B2 (en) Image anti-aliasing system
CN110928513A (en) Super-resolution synthesis command application system
CN104318538A (en) Method for splicing two-dimension sequence frame picture into big picture and device
CN108922426B (en) Spliced screen combination method and spliced screen combination system
CN101369415B (en) Display device split joint method
CN105427240A (en) Image cropping method
CN110364127A (en) The adaptive display method and device of intelligent large screen system
CN111462683A (en) L ED display screen and control method thereof
CN112598652B (en) Gradient transformation-based liquid crystal display edge broken line detection method
CN111405200B (en) Video shrinking device, method and system and electronic equipment thereof
KR101617735B1 (en) Method for multi display mapping
US11930597B2 (en) Display panel and display device having same

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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Dai Peng

Inventor after: Xu Wei

Inventor before: Dai Peng

Inventor before: Xu Wei

Inventor before: Tao Jie

Inventor before: Cao Hongkun

Inventor before: Zhang Qiankun

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220602

Address after: 230088 room 1301, 13 / F, block B, phase III (South District), Huguang road independent innovation industrial base, Shushan District, Hefei City, Anhui Province

Applicant after: Hefei Chuan Xiu Technology Co.,Ltd.

Address before: Room 609-152, R & D center building, China (Hefei) international intelligent voice Industrial Park, 3333 Xiyou Road, high tech Zone, Hefei City, Anhui Province, 230088

Applicant before: ANHUI HUISHI TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication

Application publication date: 20210112