CN111405200B - Video shrinking device, method and system and electronic equipment thereof - Google Patents

Video shrinking device, method and system and electronic equipment thereof Download PDF

Info

Publication number
CN111405200B
CN111405200B CN202010240653.2A CN202010240653A CN111405200B CN 111405200 B CN111405200 B CN 111405200B CN 202010240653 A CN202010240653 A CN 202010240653A CN 111405200 B CN111405200 B CN 111405200B
Authority
CN
China
Prior art keywords
video
reduced
coordinate point
reduction
lower right
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
CN202010240653.2A
Other languages
Chinese (zh)
Other versions
CN111405200A (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.)
Shenzhen Aoto Electronics Co Ltd
Original Assignee
Shenzhen Aoto Electronics 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 Shenzhen Aoto Electronics Co Ltd filed Critical Shenzhen Aoto Electronics Co Ltd
Priority to CN202010240653.2A priority Critical patent/CN111405200B/en
Publication of CN111405200A publication Critical patent/CN111405200A/en
Application granted granted Critical
Publication of CN111405200B publication Critical patent/CN111405200B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2628Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Landscapes

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

Abstract

The invention relates to a video zooming-out method, a device, a system and electronic equipment thereof, wherein the method comprises the following steps: acquiring an upper left corner coordinate point and a lower right corner coordinate point of a rectangular region from the upper left corner to the lower right corner of the video to be reduced, and outputting the upper left corner coordinate point and the lower right corner coordinate point of the video to be reduced; cutting a cutting rectangular region formed from the coordinate point at the upper left corner to the coordinate point at the lower right corner of the video to be reduced after the video to be reduced is reduced, and outputting the coordinate point at the upper left corner and the coordinate point at the lower right corner of the cut video; calculating the width and height of the cut video in the cut rectangular area according to the coordinate point at the upper left corner and the coordinate point at the lower right corner of the video to be reduced; calculating the width and height of the video after reduction according to the cutting rectangular area and the output upper left corner coordinate point and lower right corner coordinate point, and calculating the video reduction ratio; and carrying out reduction by adopting a bicubic interpolation reduction algorithm and forming a reduced video. The invention has the advantages of high response speed of the controller, high system stability and load resource saving.

Description

Video shrinking device, method and system and electronic equipment thereof
Technical Field
The invention belongs to the technical field of video processing, and particularly relates to a video reduction method, device and system and electronic equipment thereof.
Background
In the field of LED video display and control, the size of display screens is getting larger and larger. The display precision of the LED small-spacing product is continuously improved, the number of input sources which can be received by a single LED video controller is limited, and input videos cannot be moved to the loading areas of other LED video controllers. The prior art needs to realize the function by means of other devices such as a video splicer and the like. However, when the resolution of the display screen reaches 64Kx4K or 128Kx4K, or even greater, a minimum of 32 video processors, corresponding video source playing devices, and correspondingly many video splicers are required to meet the requirement of video reduction. In the prior art, an LED video controller is limited by the volume of controller equipment, the processing capacity of single video input and output is 4K resolution, the video input generally adopts an HDMI (high-definition multimedia interface) interface, a DP (digital video interface) interface or a DVI (digital visual interface), and the video is output to an LED screen through an optical fiber or a network cable after being segmented. Therefore, the prior art needs more front-end video playback sources, and corresponding video control devices, to undertake the task of outputting video to the LED display screen. Video downscaling is also achieved by the above-mentioned prior art stacking format. Therefore, the technical problems that the video needing to be input by the large-size LED display screen is randomly reduced on the whole screen, and the controller equipment is complex and redundant and the system stability is poor due to the fact that too many video splicers are added between the video playing source and the video control equipment to carry out multi-stage cascade are solved.
Disclosure of Invention
The present invention is directed to a video downscaling apparatus, method, system and electronic device thereof, so as to solve the above technical problems.
In order to achieve the purpose, the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present application provides a video zooming-out method, where the method includes:
acquiring an upper left corner coordinate point and a lower right corner coordinate point of a rectangular region from the upper left corner to the lower right corner of the video to be reduced, and outputting the upper left corner coordinate point and the lower right corner coordinate point of the video to be reduced;
cutting a cutting rectangular region formed from the coordinate point at the upper left corner to the coordinate point at the lower right corner of the video to be reduced after the video to be reduced is reduced, and outputting the coordinate point at the upper left corner and the coordinate point at the lower right corner of the cut video;
calculating the width and height of the cut video in the cut rectangular area according to the coordinate point at the upper left corner and the coordinate point at the lower right corner of the video to be reduced;
calculating the width and height of the video after reduction according to the cutting rectangular area and the output upper left corner coordinate point and lower right corner coordinate point, and calculating the video reduction ratio;
and carrying out reduction by adopting a bicubic interpolation reduction algorithm and forming a reduced video.
Preferably, before collecting the upper left corner coordinate point and the lower right corner coordinate point of the rectangular region from the upper left corner to the lower right corner of the video to be reduced and outputting the upper left corner coordinate point and the lower right corner coordinate point of the video to be reduced, the method further includes:
The video to be reduced is respectively cut into a plurality of videos to be reduced by at least 2 video reduction standard units;
each video reduction standard unit respectively encodes a corresponding video to be reduced in the plurality of videos to be reduced;
receiving and caching the videos to be reduced;
merging videos of multiple video input sources into a single-channel video;
after the reduction is performed by adopting a bicubic interpolation reduction algorithm and a reduced video is formed, the method further comprises the following steps:
returning to the step of collecting the coordinate points of the upper left corner and the lower right corner of a rectangular region from the upper left corner to the lower right corner of the video to be reduced, and outputting the coordinate points of the upper left corner and the lower right corner of the video to be reduced until the videos to be reduced are reduced;
and splicing the video clips to form a reduced video.
Preferably, each of the video reduction standard units respectively encodes a corresponding one of the videos to be reduced, and then further includes:
respectively sending the videos to be reduced to corresponding level 2 video reduction standard units;
after the reduction is performed by adopting a bicubic interpolation reduction algorithm and a reduced video is formed, the method further comprises the following steps:
The corresponding level 2 video reduction standard unit respectively sends the video clip back to each corresponding video reduction standard unit;
and splicing a plurality of the reduced videos to form an integral reduced video.
Preferably, the splicing of the plurality of reduced videos into an overall reduced video is performed by the corresponding each video reduction standard unit; after the splicing forms the overall reduced video, the method further comprises the following steps:
intercepting a video to be output from the overall reduced video according to the carrying capacity of the network port;
and reading out the video data carried by the network port from the video intercepting module, converting the video data into a data format output by the network port, and finally outputting the data format to the LED screen through the gigabit network port.
In a second aspect, an embodiment of the present invention provides a video reducing apparatus, including: the video acquisition unit comprises a video input module, an acquisition module, a video cutting module, a calculation module and a video reduction module;
the video input module is used for receiving input video from an HDMI interface or a DP interface;
the acquisition module is used for acquiring an upper left corner coordinate point and a lower right corner coordinate point of a rectangular region from the upper left corner to the lower right corner of the video to be reduced and outputting the upper left corner coordinate point and the lower right corner coordinate point of the video to be reduced; outputting a coordinate point at the upper left corner and a coordinate point at the lower right corner of the cutting video;
The video cutting module is used for receiving different input videos from the video routing module, then cutting a region video needing to be reduced from an input video stream according to a system command, and cutting a cutting rectangular region formed by a coordinate point at the upper left corner to a coordinate point at the lower right corner of the video to be reduced after the video to be reduced is reduced;
the computing module is used for computing the width and the height of the cut video in the cut rectangular area according to the coordinate point at the upper left corner and the coordinate point at the lower right corner of the video to be reduced; the video width and height after being reduced are calculated according to the cutting rectangular area and the output upper left corner coordinate point and the output lower right corner coordinate point, and the video reduction ratio is calculated; the system is also used for analyzing and calculating the resolution, color depth, frame frequency and pixel clock information of the input video and judging the bandwidth required by the input video according to the information;
and the video reduction module is used for calculating the reduction ratio according to the size of the cut video area and the reduced area, reducing the synthesized video, reducing by adopting a bicubic interpolation reduction algorithm and forming reduced video processing.
Preferably, the video reducing device further comprises a video reducing standard unit, wherein the video reducing standard unit comprises a video cutting module, a calculating module, a video reducing module and an encoding module;
The video cutting module is used for receiving different input videos from the video routing module, then cutting a region video needing to be reduced from an input video stream according to a system command, and cutting a cutting rectangular region formed by a coordinate point at the upper left corner to a coordinate point at the lower right corner of the video to be reduced after the video to be reduced is reduced;
the computing module is used for computing the width and the height of the cut video in the cut rectangular area according to the coordinate point at the upper left corner and the coordinate point at the lower right corner of the video to be reduced; the video width and height after being reduced are calculated according to the cutting rectangular area and the output upper left corner coordinate point and the output lower right corner coordinate point, and the video reduction ratio is calculated; the video acquisition device is also used for analyzing and calculating the resolution, color depth, frame frequency and pixel clock information of an input video and judging the bandwidth required by the input video according to the information;
the video reducing module is used for calculating a reducing ratio according to the size of the cut video area and the reduced area, reducing the synthesized video, reducing the video by adopting a 'bicubic interpolation reducing algorithm' and forming reduced video processing;
the encoding module is used for encoding one corresponding video to be reduced in the plurality of videos to be reduced by each video reduction standard unit;
The video cache synthesis module is used for receiving videos cut by different video input sources from the video cutting module, caching the videos into the video cache synthesis module, combining videos of a single path or multiple paths of video input sources into a single path video, and reducing subsequent videos into the single path video for processing.
The video routing module is used for carrying out video routing output on the input video according to system configuration and used for orderly roaming of the video in the whole video reducing device.
And the video intercepting module is used for intercepting the video to be output from the video after the reduction processing according to the carrying capacity of the network port.
Preferably, the video downscaling apparatus further includes: the video zooming-out standard unit of the 2 nd level comprises a video cutting module, a routing module, a video caching and synthesizing module and a video zooming-out module;
the video cache synthesis module is used for receiving videos cut by different video input sources from the video cutting module, caching the videos into the video cache synthesis module, combining the videos of the single-path or multi-path video input sources into a single-path video, and reducing the subsequent video into the single-path video for processing;
The video reduction module is used for calculating the reduction ratio according to the size of the cut video area and the reduced area, reducing the synthesized video, reducing by adopting a bicubic interpolation reduction algorithm and forming reduced video processing;
the video routing module is used for carrying out video routing output on the input video according to system configuration and used for orderly roaming of the video in the whole video reducing device;
the video cutting module is used for receiving different input videos from the video routing module, then cutting a region video needing to be reduced from an input video stream according to a system command, and cutting a cutting rectangular region formed by a coordinate point at the upper left corner to a coordinate point at the lower right corner of the video to be reduced after the video to be reduced is reduced; and is used for receiving different input videos from the video routing module and then cutting the area video required to be reduced from the input video stream according to the system command.
Preferably, the video downscaling apparatus further includes:
and the video output module is used for reading out the video data carried by the network port from the video intercepting module, converting the video data into a data format output by the network port, and finally outputting the data format to the LED screen through the gigabit network port.
The video high-speed interface output module is used for receiving video data from the video routing module, outputting the video data to the video general routing module through a QSFP interface of high 4-pair 10G Serdes, wherein the maximum transmission bandwidth is 40GHz, and 1 path of video with 8Kx2K resolution or 2 paths of video with 4Kx2K resolution can be transmitted;
and the video high-speed interface input module is used for receiving the video data output from the video main routing module, inputting the video data through a QSFP interface of high-4-pair 10G Serdes, wherein the maximum transmission bandwidth is 40GHz, and 1 path of video with 8Kx2K resolution or 2 paths of video with 4Kx2K resolution can be transmitted.
In a third aspect, an embodiment of the present invention further provides a video zooming-out system, where the video zooming-out system includes: the video reduction device or the method for realizing video reduction in any embodiment of the present application is realized.
In a fourth aspect, an embodiment of the present application further provides an electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor-executable instructions, when invoked and executed by the processor, causing the processor to: the method for video reduction in any embodiment of the application is realized.
As can be seen from the above, in the solution provided in the embodiment of the present application, compared with the prior art, the present invention has the following beneficial effects: the technical scheme of the invention solves the technical problem of video reduction in a stacking mode through the controller device, enables the large-size LED display screen to be capable of arbitrarily performing video reduction on the whole screen according to the video input as required, enables the video reduction of the LED display screen with the super large size to be realized only by one video controller without adding too many video splicers between a video playing source and the video control device, and achieves the requirement of high-definition display. The single video control device completes the functions which can be completed by a plurality of video control devices and the video splicing device, reduces the number of the devices and increases the reliability of the system; meanwhile, the routing requirement of the video in the whole screen range controlled in a single device is met; meanwhile, video input is not limited by the input port of the single module any more, can be input from any other port and then roams to the module, and the source number of the input port is increased.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Drawings
FIG. 1 is a flowchart illustrating a video reduction method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of cropping a video;
fig. 3 is a flowchart of a step before acquiring an upper-left corner coordinate point and a lower-right corner coordinate point of a rectangular region from an upper-left corner to a lower-right corner of a video to be reduced and outputting the upper-left corner coordinate point and the lower-right corner coordinate point of the video to be reduced in a video reduction method according to an embodiment of the present invention;
fig. 4 is a flowchart of steps after performing reduction by using a bicubic interpolation reduction algorithm and forming a reduced video in a video reduction method according to an embodiment of the present invention;
FIG. 5 is a diagram of cropping a video across more than 2 video reduction standard cells;
fig. 6 is a flowchart after each video scaling-down standard unit respectively encodes a corresponding video to be scaled down among the plurality of videos to be scaled down in the video scaling-down method according to the embodiment of the present invention;
Fig. 7 is a flowchart of a method after a plurality of reduced videos are stitched together to form an overall reduced video in a video reduction method according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a video capture unit of a video downscaling apparatus according to an embodiment of the present invention;
FIG. 9 is a diagram illustrating a video reduction standard cell of a video reduction apparatus according to an embodiment of the present invention;
FIG. 10 is a diagram illustrating a level 2 video reduction standard cell of a video reduction apparatus according to an embodiment of the present invention;
fig. 11 is a schematic diagram of a video reducing apparatus according to an embodiment of the present invention.
Detailed Description
So that the manner in which the above recited objects, features and advantages of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to the embodiments thereof which are illustrated in the appended drawings. In addition, the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a video reduction method according to an embodiment of the invention; the video zooming-out method comprises the following steps:
s100, collecting an upper left corner coordinate point and a lower right corner coordinate point of a rectangular region from the upper left corner to the lower right corner of the video to be reduced, and outputting the upper left corner coordinate point and the lower right corner coordinate point of the video to be reduced;
s102, cutting a cutting rectangular area formed from the coordinate point at the upper left corner to the coordinate point at the lower right corner of the video to be reduced after the video to be reduced is reduced, and outputting the coordinate point at the upper left corner and the coordinate point at the lower right corner of the cut video;
s104, calculating the width and height of the cut video in the cut rectangular area according to the coordinate point at the upper left corner and the coordinate point at the lower right corner of the video to be reduced;
s106, calculating the width and height of the reduced video according to the cutting rectangular area and the output upper left corner coordinate point and lower right corner coordinate point, and calculating the video reduction ratio;
and S108, carrying out reduction by adopting a bicubic interpolation reduction algorithm, and forming a reduced video.
Specifically, referring to fig. 2, fig. 2 is a schematic diagram of a cropping video; an 8Kx2K cell may be considered a video reduction standard cell; the cropped video region and the video reduced region are both implemented in the same 8Kx2K cell (video reduction standard cell): the video is input into an 8Kx2K unit 3, is output by a gigabit network port after being intercepted by an 8Kx2K unit 3, and is output in an 8Kx2K unit 3 after being reduced, so that a rectangular region from the upper left corner A to the lower right corner B of the cut is reduced to a rectangular region from the upper left corner c to the lower right corner d, the video width and height of the cut region can be calculated according to the coordinates of the point A at the upper left corner and the coordinates of the point B at the lower right corner before the cut, the video width and height after the cut can be calculated according to the coordinates of the point a at the upper corner and the coordinates of the point B at the lower right corner of the cut of the reduced video, the reduction ratio is calculated according to the video width and height, then the video is reduced by adopting a 'bicubic interpolation reduction algorithm' and is output after being intercepted by an internal network port. For example, the one 8Kx2K cell may be located within an 8Kx2K module within any one video controller; for another example, the video scaling-down method according to an embodiment of the present invention may be executed in any video capture unit, and the video capture unit may be located in any video capture board.
Referring to fig. 1 and fig. 3, fig. 3 is a flowchart of a step before acquiring an upper-left corner coordinate point and a lower-right corner coordinate point of a rectangular region from an upper-left corner to a lower-right corner of a video to be reduced and outputting the upper-left corner coordinate point and the lower-right corner coordinate point of the video to be reduced in a video reduction method according to an embodiment of the present invention; because the area of the video to be reduced is formed by cutting in a plurality of video reduction standard units, step S100 in fig. 1 collects the upper left corner coordinate point and the lower right corner coordinate point of the rectangular area from the upper left corner to the lower right corner of the video to be reduced, and before outputting the upper left corner coordinate point and the lower right corner coordinate point of the video to be reduced, the method further includes:
s92, cutting the video to be reduced into a plurality of videos to be reduced by at least 2 video reduction standard units respectively;
s94, each video reduction standard unit respectively encodes a corresponding video to be reduced in the plurality of videos to be reduced;
s96, receiving and caching the videos to be reduced;
s98, merging the videos of the multiple video input sources into a single video; for subsequent downscaling modules to process as 1-way video processing.
Referring to fig. 1 and fig. 4, fig. 4 is a flowchart illustrating steps after performing a reduction by using a bicubic interpolation reduction algorithm and forming a reduced video according to an embodiment of the present invention; after the step S108 of fig. 1 adopts a bicubic interpolation reduction algorithm to perform reduction and form a reduced video, the method further includes:
S110, returning to the step for collecting the upper left corner coordinate point and the lower right corner coordinate point of a rectangular region from the upper left corner to the lower right corner of the video to be reduced, and outputting the upper left corner coordinate point and the lower right corner coordinate point of the video to be reduced until the videos to be reduced are reduced;
and S112, splicing the video segments to form a reduced video.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating cropping a video across more than 2 video-down standard cells; an 8Kx2K cell is taken as a video reduction standard cell; the cropped video region and the reduced region are completed in different 8Kx2K cells. Each 8Kx2K unit respectively calculates the reduction ratio according to the intercepted area and the reduced rectangular area, reduces by respectively adopting a 'bicubic interpolation reduction algorithm', and then completes the final reduction function by splicing; as shown in the above diagram, the 8Kx2K unit 3 cuts out a rectangular region from the upper left corner H to the lower right corner M from the video source, and reduces the rectangular region to the upper left corner H and the lower right corner M, and the 8Kx2K unit 3 calculates a reduction ratio according to the region before and after reduction, and reduces the rectangular region by using a bicubic interpolation reduction algorithm; an 8Kx2K unit 5 intercepts a rectangular region from the upper left corner I to the lower right corner N from a video source and reduces the rectangular region to the upper left corner I and the lower right corner N, and the 8Kx2K unit 5 calculates a reduction ratio according to the regions before and after reduction and reduces the rectangular region by adopting a 'bicubic interpolation reduction algorithm'; the reduction speed of the reduction mode is extremely high, but the reduction ratio is different due to the fact that the size of the intercepting area of 2 units of 8Kx2K is different from the size of the intercepted area of the reduced units of 2 units of 8Kx2K, and the sawtooth effect of the boundary is easily caused at the boundary from i to m after the two units of the intercepting area are reduced, so that the method is suitable for quickly reducing the common high-definition video.
Referring to fig. 3 and fig. 6, fig. 6 is a flowchart after each video scaling-down standard unit respectively encodes a corresponding video to be scaled down in the plurality of videos to be scaled down according to the video scaling-down method of the present invention; in step S94 of fig. 3, each of the video reduction standard units respectively encodes a corresponding one of the videos to be reduced, and then further includes:
s402, respectively sending the videos to be reduced to corresponding level 2 video reduction standard units;
s404, receiving and caching the videos to be reduced;
s406, combining the videos of the multiple video input sources into a single-channel video;
s408, cutting a cutting rectangular region formed from the coordinate point at the upper left corner to the coordinate point at the lower right corner of the video to be reduced after the video to be reduced is reduced, and outputting the coordinate point at the upper left corner and the coordinate point at the lower right corner of the video to be cut;
s410, calculating the width and height of the cut video in the cut rectangular area according to the coordinate point at the upper left corner and the coordinate point at the lower right corner of the video to be reduced;
s412, calculating the width and height of the reduced video according to the cutting rectangular area and the output upper left corner coordinate point and lower right corner coordinate point, and calculating the video reduction ratio;
S414, carrying out reduction by adopting a bicubic interpolation reduction algorithm, and forming a reduced video;
s416, the corresponding level 2 video reduction standard unit respectively sends the video clip back to each corresponding video reduction standard unit;
and S418, splicing the plurality of reduced videos to form an integral reduced video.
Specifically, referring to fig. 5, fig. 5 is a schematic diagram of clipping a video across more than 2 cells of 8Kx 2K; an 8Kx2K cell is taken as a video reduction standard cell; the method comprises the steps that areas intercepted by different 8Kx2K units are transmitted to a level 2 video reduction standard unit, then videos after reduction are returned to the corresponding 8Kx2K modules through a video cutting module, a video synthesis module and a video reduction module of the level 2 video reduction standard unit, and therefore the whole intercepted video area is reduced uniformly by adopting the same reduction ratio to carry out a 'bicubic interpolation scaling algorithm', and the boundary sawtooth effect caused by scaling of 2 different modules can be effectively avoided; referring to fig. 5, the video regions cut by 8Kx2K unit 3 and 8Kx2K unit 5, the rectangular region from 8Kx2K unit 3 to the top left corner H to the bottom right corner M of the video source, the rectangular region from 8Kx2K unit 5 to the top left corner I to the bottom right corner N of the video source, both videos are transmitted to the level 2 video reduction standard unit routing module, then clipping and cache merging are carried out in a 2 nd level video reduction standard unit, the total width of two clipping videos is from H to J point, the total height of the videos is from H to K point, the width of the video after scaling is from H point to J point, the height of the video after scaling is from H point to K point, and the scaling ratio is calculated according to the total width, and then, the video is reduced by uniformly adopting a bicubic interpolation scaling algorithm, and the reduced video returns to 8Kx2K unit 3 and 8Kx2K unit 5 again to finish final video reduction. The aliasing effect at the i to m boundary after scaling down of the two 8Kx2K modules is avoided due to the scaling down with a uniform scaling ratio. And the reduced video is processed by a video intercepting module and a video output module in the video reduction standard unit and then output. Therefore, the whole cut video area is uniformly reduced by adopting the same reduction ratio to carry out a 'bicubic interpolation reduction algorithm', the boundary sawtooth effect caused by respective reduction of 2 different modules can be effectively avoided, and the method has the advantage of highly ensuring the video definition.
Referring to fig. 6 and 7, fig. 7 is a flowchart illustrating a method after a plurality of reduced videos are spliced to form an overall reduced video according to an embodiment of the present invention; the step of splicing the plurality of reduced videos to form an integral reduced video is carried out through each corresponding video reduction standard unit; after the step S418 in fig. 6 of stitching a plurality of the reduced videos to form an overall reduced video, there are further method steps:
s500, according to the carrying capacity of the network port, intercepting the video needing to be output from the whole reduced video;
and S502, reading out the video data carried by the network port from the video intercepting module, converting the video data into a data format output by the network port, and finally outputting the data format to the LED screen through the gigabit network port.
Specifically, the video needing to be output is intercepted and output through a video output module of one video reduction standard unit.
Referring to fig. 8, fig. 8 is a schematic diagram of a video capture unit of a video scaling-down apparatus according to an embodiment of the present invention; the video reducing apparatus includes: video acquisition unit 1, video acquisition unit 1 includes: the system comprises a video input module 2, an acquisition module 3, a video cutting module 4, a calculation module 5 and a video reduction module 6;
Specifically, the video capture unit 1 may be located within a video capture card; or may be located in a separate video reduction standard unit. For example: in the video controller, the separate video reduction standard unit may be an 8Kx2K module for separately processing video reduction.
The video input module 2 is used for receiving an input video from an HDMI interface or a DP interface; for example, the resolution size of its input video varies anywhere from 2K (1920 × 1080) to 4K (3840 × 2160);
the acquisition module 3 is used for acquiring an upper left corner coordinate point and a lower right corner coordinate point of a rectangular region from an upper left corner to a lower right corner of the video to be reduced, and outputting the upper left corner coordinate point and the lower right corner coordinate point of the video to be reduced; outputting a coordinate point at the upper left corner and a coordinate point at the lower right corner of the cutting video;
the video cutting module 4 is used for receiving different input videos from the video routing module, then cutting a region video needing to be reduced from the input video stream according to a system command, and cutting a cutting rectangular region formed by a coordinate point at the upper left corner to a coordinate point at the lower right corner of the video to be reduced after the video to be reduced is reduced;
the calculating module 5 is used for calculating the width and the height of the cut video in the cut rectangular area according to the coordinate point at the upper left corner and the coordinate point at the lower right corner of the video to be reduced; the video width and height after being reduced are calculated according to the cutting rectangular area and the output upper left corner coordinate point and the output lower right corner coordinate point, and the video reduction ratio is calculated; the system is also used for analyzing and calculating the resolution, color depth, frame frequency and pixel clock information of the input video and judging the bandwidth required by the input video according to the information;
And the video reduction module 6 is used for calculating the reduction ratio according to the cut video area and the reduced area, reducing the synthesized video, reducing by adopting a bicubic interpolation reduction algorithm and forming reduced video processing.
Referring to fig. 9, fig. 9 is a schematic diagram of a video reduction standard unit of a video reduction apparatus according to an embodiment of the present invention; the video reducing device further comprises at least 2 video reducing standard units 7, wherein the video reducing standard units 7 comprise at least 2 video cutting modules 8, at least 2 computing modules 9, at least 2 video reducing modules 10, at least 2 coding modules 11, at least 2 video cache synthesis modules 12, at least 2 video routing modules 13 and at least 2 video intercepting modules 14;
the video cutting module 8 is configured to receive different input videos from the video routing module, then cut out a region video to be reduced from an input video stream according to a system command, and cut out a cutting rectangular region formed by a coordinate point at the upper left corner to a coordinate point at the lower right corner of the video to be reduced after reduction;
the calculating module 9 is configured to calculate the width and height of the clipped video in the clipped rectangular region according to the coordinate point at the upper left corner and the coordinate point at the lower right corner of the video to be reduced; the video width and height after being reduced are calculated according to the cutting rectangular area and the output upper left corner coordinate point and the output lower right corner coordinate point, and the video reduction ratio is calculated; the system is also used for analyzing and calculating the resolution, color depth, frame frequency and pixel clock information of the input video and judging the bandwidth required by the input video according to the information;
The video reduction module 10 is used for calculating a reduction ratio according to the size of the cut video area and the reduced area, reducing the synthesized video, reducing the video by adopting a bicubic interpolation reduction algorithm, and forming reduced video processing;
the encoding module 11 is configured to encode, by each video reduction standard unit, a corresponding video to be reduced in the multiple videos to be reduced;
the video cache synthesis module 12 is configured to receive videos, which are clipped by different video input sources, from the video clipping module, cache the videos in the DDR3 buffer of the module, and then read out from the DDR3 buffer to combine videos of a single path or multiple paths of video input sources into a single path video, so that a subsequent video is reduced into the single path video for processing;
the video routing module 13 is configured to perform video routing output on the input video according to the system configuration, and is used for orderly roaming of the video in the whole video scaling-down apparatus. The video input by the level 1 video acquisition can be routed to the cutting module of the level 1; the video collection input route of the level 1 video can also be an output video general route module, and then the video general route module is routed to other level 1 video processing units to finish the video random roaming in the whole video control matrix electronic equipment; or receiving video input from other level 1 video processing units; the method is mainly used for random roaming of the video in the whole electronic equipment of the video control matrix.
The video intercepting module 14 is configured to intercept a video to be output from the video after the reduction processing according to a load carrying capability of the internet access.
Referring to fig. 10, fig. 10 is a diagram illustrating a level 2 video reduction standard unit of a video reduction apparatus according to an embodiment of the present invention; the video downscaling apparatus further includes: a level 2 video reduction standard unit 15, where the level 2 video reduction standard unit 15 includes at least 2 video cropping modules 16, at least 2 video reduction modules 18, at least 2 video cache composition modules 19, and a video routing module 20;
the video cache synthesis module 19 is configured to receive videos, which are clipped by different video input sources, from the video clipping module, cache the videos in the DDR3 cache of the module, and then read from the DDR3 to combine videos of one or more video input sources into a single-channel video, so that a subsequent video is reduced into the single-channel video for processing;
the video reduction module 18 is used for calculating the reduction ratio according to the size of the cut video area and the reduced area, reducing the synthesized video, reducing by adopting a 'bicubic interpolation reduction algorithm' and forming reduced video processing;
The video cache synthesis module 19 is configured to receive videos clipped by different video input sources from the video clipping module, cache the videos in the DDR3 cache of the module, and then read from the DDR3 to combine videos of one or more video input sources into a single-channel video for the subsequent video reduction to the single-channel video for processing.
The video routing module 20 is configured to perform video routing output on the input video according to the system configuration, so as to enable the video to sequentially roam within the whole video scaling-down apparatus. The video input by the level 1 video acquisition can be routed to the cutting module of the level 1; or the level 1 video acquisition input route outputs a video general routing module, and then the video general routing module is routed to other level 1 video processing units to finish the video random roaming in the whole video control matrix; or receiving video input from other level 1 video processing units; the method is mainly used for random roaming of the video in the whole electronic equipment of the video control matrix.
Referring to fig. 9, 10 and 11, fig. 11 is a schematic diagram of a video reducing apparatus according to an embodiment of the present invention; the video reducing apparatus of fig. 11 includes the apparatuses of fig. 9 and 10, and further includes:
And the video output module 21 reads out the video data carried by the network port from the video intercepting module, converts the video data into a data format output by the network port, and finally outputs the data format to the LED screen through the gigabit network port.
And the video high-speed interface output module 22 receives the video data from the video routing module, outputs the video data to the video general routing module through a QSFP interface of 4 pairs of 10G Serdes, has a maximum transmission bandwidth of 40GHz, and can transmit 1 path of video with 8Kx2K resolution or 2 paths of video with 4Kx2K resolution.
The video high-speed interface input module 23 receives the video data output from the video main routing module, inputs the video data through a QSFP interface of high 4-pair 10G Serdes, has a maximum transmission bandwidth of 40GHz, and can transmit 1-channel video with 8Kx2K resolution or 2-channel video with 4Kx2K resolution.
An embodiment of the present invention further provides a video scaling-down system, including: the video reduction device or the method for realizing video reduction in any embodiment of the present application is realized.
Embodiments of the present application further provide an electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor-executable instructions, when invoked and executed by the processor, causing the processor to: the method for video reduction in any embodiment of the application is realized.
An embodiment of the present invention further provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the video scaling-down method according to any of the above embodiments.
The system/computer device integrated components/modules/units, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the above embodiments may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the above method embodiments. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
In the several embodiments provided in the present invention, it should be understood that the disclosed system and method may be implemented in other ways. For example, the system embodiments described above are merely illustrative, and for example, the division of the components is only one logical division, and other divisions may be realized in practice.
In addition, each functional module/component in each embodiment of the present invention may be integrated into the same processing module/component, or each module/component may exist alone physically, or two or more modules/components may be integrated into the same module/component. The integrated modules/components can be implemented in the form of hardware, or can be implemented in the form of hardware plus software functional modules/components.
It will be evident to those skilled in the art that the embodiments of the present invention are not limited to the details of the foregoing illustrative embodiments, and that the embodiments of the present invention are capable of being embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the embodiments being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. Several units, modules or means recited in the system, apparatus or terminal claims may also be implemented by one and the same unit, module or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (3)

1. A video reduction method, comprising:
s400, cutting the video to be reduced into a plurality of videos to be reduced by at least 2 video reduction standard units respectively;
s401, each video reduction standard unit respectively encodes a corresponding video to be reduced in the plurality of videos to be reduced to obtain an encoded video to be reduced;
s402, respectively sending a plurality of coded videos to be reduced to corresponding level 2 video reduction standard units;
s403, receiving and caching a plurality of coded videos to be reduced;
s404, combining a plurality of coded videos to be reduced into a single-channel video;
s405, collecting an upper left corner coordinate point and a lower right corner coordinate point of a rectangular region from the upper left corner to the lower right corner of the video to be reduced, and outputting the upper left corner coordinate point and the lower right corner coordinate point of the video to be reduced;
S406, cutting a cutting rectangular region formed from the coordinate point at the upper left corner to the coordinate point at the lower right corner of the video to be reduced after the video to be reduced is reduced, and outputting the coordinate point at the upper left corner and the coordinate point at the lower right corner of the video to be cut;
s407, calculating the width and height of the cut video in the cut rectangular area according to the coordinate point at the upper left corner and the coordinate point at the lower right corner of the video to be reduced;
s408, calculating the width and height of the reduced video according to the cutting rectangular area and the coordinate points at the upper left corner and the lower right corner of the cutting video, and calculating the video reduction ratio;
s409, carrying out reduction by adopting a bicubic interpolation reduction algorithm, and forming a reduced video;
s410, the corresponding level 2 video reduction standard unit respectively sends the reduced video back to each corresponding video reduction standard unit;
s411, splicing the reduced videos to form an integral reduced video.
2. The video reduction method according to claim 1, wherein said stitching a plurality of said reduced videos to form an overall reduced video is performed by said each corresponding video reduction standard unit; after the plurality of reduced videos are spliced to form the whole reduced video, the method also comprises the following steps:
Intercepting a video to be output from the overall reduced video according to the carrying capacity of the network port;
and reading out the video data carried by the network port, converting the video data into a data format output by the network port, and finally outputting the data format to the LED screen through the gigabit network port.
3. An electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor-executable instructions, when invoked and executed by the processor, causing the processor to: a method of implementing video downscaling as claimed in any one of claims 1-2.
CN202010240653.2A 2020-03-31 2020-03-31 Video shrinking device, method and system and electronic equipment thereof Active CN111405200B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010240653.2A CN111405200B (en) 2020-03-31 2020-03-31 Video shrinking device, method and system and electronic equipment thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010240653.2A CN111405200B (en) 2020-03-31 2020-03-31 Video shrinking device, method and system and electronic equipment thereof

Publications (2)

Publication Number Publication Date
CN111405200A CN111405200A (en) 2020-07-10
CN111405200B true CN111405200B (en) 2022-07-29

Family

ID=71429358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010240653.2A Active CN111405200B (en) 2020-03-31 2020-03-31 Video shrinking device, method and system and electronic equipment thereof

Country Status (1)

Country Link
CN (1) CN111405200B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112561839B (en) * 2020-12-02 2022-08-19 北京有竹居网络技术有限公司 Video clipping method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1457597A (en) * 2001-06-18 2003-11-19 韩唯逻辑公司 Method for outputting video images in video monitoring system
CN101616237A (en) * 2008-06-27 2009-12-30 索尼株式会社 Image processing apparatus, image processing method, program and recording medium
CN102447887A (en) * 2011-10-14 2012-05-09 深圳市先河系统技术有限公司 Method and device for changing image length-width ratio in video signals of security system
CN109831687A (en) * 2018-12-12 2019-05-31 深圳慧源创新科技有限公司 Unmanned plane figure passes video editing method and technology

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1457597A (en) * 2001-06-18 2003-11-19 韩唯逻辑公司 Method for outputting video images in video monitoring system
CN101616237A (en) * 2008-06-27 2009-12-30 索尼株式会社 Image processing apparatus, image processing method, program and recording medium
CN102447887A (en) * 2011-10-14 2012-05-09 深圳市先河系统技术有限公司 Method and device for changing image length-width ratio in video signals of security system
CN109831687A (en) * 2018-12-12 2019-05-31 深圳慧源创新科技有限公司 Unmanned plane figure passes video editing method and technology

Also Published As

Publication number Publication date
CN111405200A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
US11328450B2 (en) Point cloud encoding method, point cloud decoding method, encoder, and decoder
KR101775253B1 (en) Real-time automatic conversion of 2-dimensional images or video to 3-dimensional stereo images or video
CN107274338B (en) Systems, methods, and apparatus for low-latency warping of depth maps
CN102263880B (en) Image scaling method and apparatus thereof
CN110032701B (en) Image display control method and device, storage medium and electronic equipment
CN110992246B (en) Pyramid layered slicing method for image
CN113570626B (en) Image cropping method and device, computer equipment and storage medium
CN103702032A (en) Image processing method, device and terminal equipment
CN109272526B (en) Image processing method and system and electronic equipment
CN111405200B (en) Video shrinking device, method and system and electronic equipment thereof
WO2021082300A1 (en) Video magnification method and apparatus, electronic device and storage medium
EP4050567A1 (en) Information processing device, 3d data generation method, and program
CN116489457A (en) Video display control method, device, equipment, system and storage medium
CN110602410B (en) Image processing method and device, aerial camera and storage medium
CN115190263B (en) Video scaling method, device, equipment and storage medium
CN113989114A (en) Image reduction processing method and device
CN110519530B (en) Hardware-based picture-in-picture display method and device
CN114969409A (en) Image display method and device and readable medium
US20230196700A1 (en) Image processing apparatus and image processing method
CN112911186B (en) Image storage method and device, electronic equipment and storage medium
US7468733B2 (en) Method and system for improving color reduction
CN117221504B (en) Video matting method and device
KR101028449B1 (en) Method and apparatus for resizing image
CN112017112B (en) Image processing method, device and system and computer readable storage medium
CN115689888A (en) Image processing method, image processing device, electronic equipment and storage medium

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
CB02 Change of applicant information

Address after: 518000 1805, tower 2, Shenye Jinyuan Building, No.112, Qingshuihe 1st Road, Qingshuihe community, Luohu District, Shenzhen City, Guangdong Province

Applicant after: SHENZHEN AOTO ELECTRONICS Co.,Ltd.

Address before: 518000 9th Floor, United Headquarters Building, No. 63 Xuefu Road, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN AOTO ELECTRONICS Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant