New media video adaptive sorting optimization method and system
By locating image break points in new media videos and extracting the features of differential image blocks, efficient sorting of new media videos and illegal content elimination are achieved, solving the problem of increasing difficulty in video content management and improving the efficiency and effectiveness of video management. accuracy.
Patent Information
- Application Number
- CN202410963918.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The exponential growth in the number of new media videos has led to a significant increase in the difficulty of video content management. In particular, the insertion and removal of advertisements and illegal content is inefficient and difficult to effectively solve with existing technology.
By acquiring the new media video and decomposing it frame by frame, we can locate the frame breaking point of the image, obtain the difference image blocks before and after the frame breaking point, extract the calibration data features, and filter out the video images with low correlation with the calibration feature set to realize the sorting of video content. and removal of illegally inserted content.
It effectively improves the sorting effect and efficiency of new media videos, can effectively remove illegally inserted content in videos, and improves the efficiency and accuracy of video management.
Smart Images

Figure CN118644807A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a new media video adaptive sorting optimization method and system. Background Art
[0002] New media is a form of communication that uses digital technology to provide information and services to users through computer networks, wireless communication networks, satellites and other channels, as well as terminals such as computers, mobile phones and digital televisions. With the development of real-time and interactivity of new media, new media video software is gradually enriched. At the same time, the amount of interactive video data is large and is transmitted in both directions. Therefore, a dedicated video management platform is needed to manage the video in real time.
[0003] In traditional media advertising, especially advertising on television and radio programs, all are presented in the form of video and audio. These videos are prepared by full-time personnel, the video content insertion rules are fixed, and the inserted content is reasonable; however, with the development of new media videos, the number of new media videos has grown exponentially, and the difficulty of video content management has increased significantly. There may be a lot of inserted content in a video, mainly advertising insertions and illegal content insertions, which provides new challenges for advertising supervision of new media videos.
[0004] If the separation is done manually, even by fast forwarding, the efficiency is very low. Therefore, a new media video adaptive sorting optimization method and system are expected to remove video advertisements and illegal content, so as to optimize the new media video adaptive sorting. Summary of the invention
[0005] In order to solve the above problems, an embodiment of the present application provides a new media video adaptive sorting optimization method, which effectively locates all image breakpoints in the video, obtains difference image blocks before and after the breakpoints, and processes and sorts the entire new media video content according to the characteristics of the calibration data in the difference image blocks, effectively removes illegally inserted content from the video, and has good new media video sorting effect and high efficiency.
[0006] In a first aspect, an embodiment of the present application provides a new media video adaptive sorting optimization method, the method comprising: S100: Acquire new media video and decompose it frame by frame to obtain video images; S200: Obtaining a video image frame break point, and dividing the video image into a plurality of image units; S300: Acquire a difference image block between image units before and after the frame break point; S400: Determine whether the difference image block contains only text data or image data, if yes, use the text data or image data as calibration data and directly execute step S600; otherwise, execute step S500; S500: Acquire the image covered by the text data and the text filled in the image data in the difference image block as calibration data; S600: extracting features from all calibration data to obtain a calibration feature set; S700: Screen out video images whose correlation with the calibration feature set is lower than a predetermined threshold, and sort the new media videos.
[0007] As one of the preferred embodiments of the present invention, when executing step S100, after acquiring the new media video and decomposing it frame by frame to obtain the video image, the video image is preprocessed to eliminate the video image without actual content.
[0008] As one of the preferred embodiments of the present invention, when executing step S200, n video image frame points are obtained, and the video image is divided into n+ image units.
[0009] As one of the preferred embodiments of the present invention, when executing step S300, it specifically includes: S310: Acquire two image units before and after the frame break point; S320: Acquire a difference area between two image units to obtain a difference image block.
[0010] As one of the preferred embodiments of the present invention, when executing step S500, specifically: If there is text data covering an image, the image covering the text data is intercepted as calibration data; If there is text data filled in the image data, the text filled in the image data is intercepted and used as the calibration data.
[0011] As one of the preferred embodiments of the present invention, when executing step S600, it specifically includes: S610: Extracting features from each calibration data in turn to obtain at least one calibration feature; S620: Collecting calibration features of all calibration data to obtain a calibration feature set; When executing step S620, if the same calibration features are extracted from the two calibration data, the two calibration features are collected into a calibration feature set.
[0012] As one of the preferred embodiments of the present invention, when executing step S700, it specifically includes: S710: extracting all image features of a video image; S720: Calculate a feature vector between the image feature and each calibration feature in the calibration feature set, add all feature vectors, and obtain a total correlation between the video image and the calibration feature set; S730: Screen out all video images whose correlation with the calibration feature set is lower than a predetermined threshold; S740: Determine whether there are screened video images that are continuously not less than a predetermined value. If so, screen out the continuous video images to obtain new media data; otherwise, directly delete the screened video images.
[0013] In a second aspect, an embodiment of the present application provides a new media video adaptive sorting optimization system, the system comprising: Image acquisition module; Image segmentation module; Difference acquisition module; Judgment module; Calibration module; Feature extraction module; Sorting module; The image acquisition module acquires the new media video and decomposes it frame by frame to obtain the video image; the image segmentation module acquires the video image breakpoint and divides the video image into multiple image units; the difference acquisition module acquires the difference image block between the image units before and after the breakpoint; the judgment module determines whether the difference image block contains only text data or image data, if so, the text data or image data is used as calibration data and the feature extraction module is directly enabled; otherwise, the calibration module is started; the calibration module acquires the image covered by the text data in the difference image block and the text filled in the image data as calibration data; the feature extraction module extracts features from all calibration data to obtain a calibration feature set; the sorting module screens out the video images whose correlation with the calibration feature set is lower than a predetermined threshold and sorts the new media video.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method provided in any possible implementation manner of the first aspect is implemented.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method provided in any possible implementation manner of the first aspect is implemented.
[0016] The beneficial effects of the present invention are: All image breakpoints in the video are effectively located, and the difference image blocks before and after the breakpoints are obtained. According to the characteristics of the calibration data in the difference image blocks, the entire new media video content is processed and sorted, and the illegally inserted content in the video is effectively removed. The new media video sorting effect is good and the efficiency is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A flowchart of a new media video adaptive sorting optimization method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0019] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0020] In the following introduction, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The following introduction provides multiple embodiments of the present application, and different embodiments can be replaced or combined, so the present application can also be considered to include all possible combinations of the same and / or different embodiments recorded. Therefore, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then the present application should also be considered to include embodiments containing one or more of all other possible combinations of A, B, C, and D, although the embodiment may not be clearly recorded in the following text.
[0021] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present application. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described in some examples may be combined in other examples.
[0022] Example 1: See Figure 1 , Figure 1 : is a flow chart of a new media video adaptive sorting optimization method provided in an embodiment of the present application. In an embodiment of the present application, the method includes: A new media video adaptive sorting optimization method, the method comprising: S100: Acquire new media video and decompose it frame by frame to obtain video images; In an embodiment of the present application, when executing step S100, after obtaining the new media video and decomposing it frame by frame to obtain the video image, the video image is preprocessed to eliminate video images without actual content, such as the black screen image at the beginning of the new media video and the black screen image at the end of the video.
[0023] S200: Obtaining a video image frame break point, and dividing the video image into a plurality of image units; In an embodiment of the present application, when executing step S200, n video image breakpoints are obtained, and the video image is divided into n+ image units. Generally speaking, all inserted content in a new media video will inevitably cause the new media video to break. Therefore, as long as all video breakpoints are obtained, the video image can be divided into multiple image units, and the inserted content must be one or more image units.
[0024] S300: Acquire a difference image block between image units before and after the frame break point; In the embodiment of the present application, when step S300 is executed, it specifically includes: S310: Acquire two image units before and after the frame break point; S320: Acquire a difference area between two image units to obtain a difference image block.
[0025] Generally speaking, two video images before and after the break point are extracted and compared to obtain a difference image block. If the content of the two video images before and after the break point is insufficient (such as a black screen transition image or a blurred background), frames are selected from the break point to both sides one by one until two video images before and after the break point with sufficient content are selected and compared to obtain a difference image block.
[0026] If the content after the frame break point is illegally inserted, it can be basically determined that the entire image is a large different image block.
[0027] When executing step S320, a color channel grayscale image of the image unit is constructed, the fractal surface area of each pixel in each color channel grayscale image is calculated, the fractal cardinality of each pixel is calculated based on the fractal surface area, the fractal feature parameters of each pixel of the image are obtained, and the fractal feature parameters of each pixel of an image are weighted to obtain the pixel distribution characteristics of the image unit; by comparing the pixel distribution characteristics of two image units, an image block with different distribution characteristics is obtained, which is a difference image block S400: Determine whether the difference image block contains only text data or image data, if yes, use the text data or image data as calibration data and directly execute step S600; otherwise, execute step S500; S500: Acquire the image covered by the text data and the text filled in the image data in the difference image block as calibration data; In the embodiment of the present application, when step S500 is executed, specifically: If there is text data covering an image, the image covering the text data is intercepted as calibration data; If there is text data filled in the image data, the text filled in the image data is intercepted and used as the calibration data.
[0028] S600: extracting features from all calibration data to obtain a calibration feature set; In the embodiment of the present application, when step S600 is executed, it specifically includes: S610: Extracting features from each calibration data in turn to obtain at least one calibration feature; S620: Collecting calibration features of all calibration data to obtain a calibration feature set; When executing step S620, if the same calibration features are extracted from the two calibration data, the two calibration features are collected into a calibration feature set.
[0029] S700: Screen out video images whose correlation with the calibration feature set is lower than a predetermined threshold, and sort the new media videos.
[0030] In the embodiment of the present application, when step S700 is executed, it specifically includes: S710: extracting all image features of a video image; S720: Calculate a feature vector between the image feature and each calibration feature in the calibration feature set, and add up all feature vectors to obtain a total correlation between the video image and the calibration feature set; S730: Screening out all video images whose correlation with the calibration feature set is lower than a predetermined threshold; S740: Determine whether there are screened video images that are continuous and not less than a predetermined value. If so, screen out the image units where the continuous video images are located to obtain new media data; otherwise, directly delete the screened video images.
[0031] When executing step S740, once there are continuous video images that are not less than a predetermined value, the agreed value is generally 50, that is, at least fifty frames of inserted pictures are inserted in the video, this image unit contains information that can be recognized by the naked eye, and it can be removed to form new new media data. After being reviewed and found to be harmless (legal advertisements inserted in the video itself), it can be added to the new media video for playback again. If the review finds that it is harmful, that is, illegally inserted content, it will be removed as evidence of illegal insertion of the new media video; if there are no continuous video images that are not less than a predetermined value, the agreed value is generally 50, that is, less than fifty frames of inserted pictures, it is difficult for the naked eye to obtain the content, and even if they are removed individually, it is meaningless. These inserted pictures with less than fifty frames can be directly deleted.
[0032] The present invention discloses a new media video adaptive sorting optimization method, which effectively locates all image frame breaks in a video, obtains difference image blocks before and after the frame breaks, processes and sorts the entire new media video content according to the features of calibration data in the difference image blocks, effectively removes illegally inserted content in the video, and has good new media video sorting effect and high efficiency.
[0033] Embodiment 2: The embodiment of the present application provides a new media video adaptive sorting optimization system, the system comprising: Image acquisition module; Image segmentation module; Difference acquisition module; Judgment module; Calibration module; Feature extraction module; Sorting module; The image acquisition module acquires the new media video and decomposes it frame by frame to obtain the video image; the image segmentation module acquires the video image breakpoint and divides the video image into multiple image units; the difference acquisition module acquires the difference image block between the image units before and after the breakpoint; the judgment module determines whether the difference image block contains only text data or image data, if so, the text data or image data is used as calibration data and the feature extraction module is directly enabled; otherwise, the calibration module is started; the calibration module acquires the image covered by the text data in the difference image block and the text filled in the image data as calibration data; the feature extraction module extracts features from all calibration data to obtain a calibration feature set; the sorting module screens out the video images whose correlation with the calibration feature set is lower than a predetermined threshold and sorts the new media video.
[0034] Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present application can be implemented with the help of software and / or hardware. The "unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.
[0035] It can be understood that the devices provided in the embodiments of the present invention are all applicable to the method described in Embodiment 1. The specific functions of each module can refer to the above method flow and will not be described in detail here.
[0036] Embodiment 3, an electronic device provided by the embodiment of the present invention is used to implement the method described in embodiment 1. The electronic device may include: at least one central processor, at least one network interface, a control interface, a memory, and at least one communication bus.
[0037] Among them, the communication bus is used to realize the connection, communication and information exchange between various components.
[0038] The network interface may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0039] Among them, the control interface is used to output control operations according to instructions.
[0040] The central processing unit may include one or more processing cores. The central processing unit uses various interfaces and lines to connect various parts in the entire terminal, and executes various functions of the terminal and processes data according to the method described in the first embodiment by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory.
[0041] The memory may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory includes a non-transitory computer-readable storage medium. The memory may be used to store instructions, programs, codes, code sets or instruction sets. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), and methods for implementing the above-mentioned embodiment 1; the data storage area may store data involved in each of the above method embodiments, etc.
[0042] The present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method described in the first embodiment is implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.
[0043] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0044] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0045] In the several embodiments provided by the present invention, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0046] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software functional units.
[0047] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk, etc., various media that can store program codes.
[0048] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct related hardware, and the program may be stored in a computer-readable memory, which may include a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0049] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device comprising the elements.
[0050] The above contents are further detailed descriptions of the present invention in combination with specific preferred implementation modes, and it cannot be determined that the specific embodiments of the present invention are limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as belonging to the protection scope of the present invention.
Claims
1. A new media video adaptive sorting optimization method, characterized in that: include: S100: Acquire new media video and decompose it frame by frame to obtain video images; S200: Obtaining a video image frame break point, and dividing the video image into a plurality of image units; S300: Acquire a difference image block between image units before and after the frame break point; S400: Determine whether the difference image block contains only text data or image data, if yes, use the text data or image data as calibration data and directly execute step S600; otherwise, execute step S500; S5 00: Get the image covered by the text data in the difference image block and the text filled in the image data as calibration data; S600: extracting features from all calibration data to obtain a calibration feature set; S700: Screen out video images whose correlation with the calibration feature set is lower than a predetermined threshold, and sort the new media videos.
2. A new media video adaptive sorting optimization method according to claim 1, characterized in that: When executing step S100, after acquiring the new media video and decomposing it frame by frame to obtain the video image, the video image is preprocessed to remove the video image without actual content.
3. The new media video adaptive sorting optimization method according to claim 1 is characterized in that: When executing step S200, n video image frame points are obtained, and the video image is divided into n+ image units.
4. The new media video adaptive sorting optimization method according to claim 1 is characterized in that: When executing step S300, it specifically includes: S310: Acquire two image units before and after the frame break point; S320: Acquire a difference area between two image units to obtain a difference image block; When executing step S320, a color channel grayscale image of the image unit is constructed, the fractal surface area of each pixel in each color channel grayscale image is calculated, the fractal cardinality of each pixel is calculated based on the fractal surface area, the fractal feature parameters of each pixel of the image are obtained, the fractal feature parameters of each pixel of an image are weighted, and the pixel distribution characteristics of the image unit are obtained; by comparing the pixel distribution characteristics of two image units, image blocks with different distribution characteristics are obtained, namely, difference image blocks.
5. The new media video adaptive sorting optimization method according to claim 1 is characterized in that: When executing step S500, specifically: If there is text data covering an image, the image covering the text data is intercepted as calibration data; If there is text data filled in the image data, the text filled in the image data is intercepted and used as the calibration data.
6. A new media video adaptive sorting optimization method according to claim 1, characterized in that: When executing step S600, it specifically includes: S610: Extracting features from each calibration data in turn to obtain at least one calibration feature; S620: Collecting calibration features of all calibration data to obtain a calibration feature set; When executing step S620, if the same calibration features are extracted from the two calibration data, the two calibration features are collected into a calibration feature set.
7. A new media video adaptive sorting optimization method according to claim 6, characterized in that: When executing step S700, it specifically includes: S710: extracting all image features of a video image; S720: Calculate a feature vector between the image feature and each calibration feature in the calibration feature set, and add up all feature vectors to obtain a total correlation between the video image and the calibration feature set; S730: Screening out all video images whose correlation with the calibration feature set is lower than a predetermined threshold; S740: Determine whether there are screened video images that are continuously not less than a predetermined value. If so, screen out the continuous video images to obtain new media data; otherwise, directly delete the screened video images.
8. A new media video adaptive sorting optimization system, characterized in that: include: Image acquisition module; Image segmentation module; Difference acquisition module; Judgment module; Calibration module; Feature extraction module; Sorting module; The image acquisition module acquires the new media video and decomposes it frame by frame to obtain the video image; the image segmentation module acquires the video image breakpoint and divides the video image into multiple image units; the difference acquisition module acquires the difference image block between the image units before and after the breakpoint; the judgment module determines whether the difference image block contains only text data or image data, if so, the text data or image data is used as calibration data and the feature extraction module is directly enabled; otherwise, the calibration module is enabled; The calibration module obtains the image covered by the text data in the difference image block and the text filled in the image data as calibration data; the feature extraction module extracts features from all the calibration data to obtain a calibration feature set; the sorting module screens out video images whose correlation with the calibration feature set is lower than a predetermined threshold and sorts the new media videos.
9. An electronic device 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 method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
