Video advertisement detection method, system, storage medium and electronic device
By combining the large language model with VideoCLIP and converter models, video frame features and audio features are extracted, which solves the problem of slow video advertisement detection in the existing technology, achieves fast and accurate advertisement detection, and improves the level of intelligence.
Patent Information
- Application Number
- CN202410719155.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-05
AI Technical Summary
Existing video ad detection methods require a large amount of computing resources, resulting in slow calculation speed.
It uses a large language model combined with VideoCLIP and converter models to extract video frame features and audio features, use the input prompt text to obtain the advertising position, and calculate the similarity of audio clips to detect advertising content.
It achieves fast and accurate video advertisement detection, high degree of intelligence and great practicality.
Smart Images

Figure CN118296186B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of deep learning, and in particular relates to a video advertisement detection method, system, storage medium and electronic device. Background Art
[0002] At present, there are usually advertisements embedded in videos. In some application scenarios, it is necessary to detect the location of advertisements in videos. In the prior art, the detection of advertisement locations in videos is mainly achieved through computer vision technology. This process first decomposes the target video into a series of image frames, and then extracts features about possible advertisement embedding locations in each frame, such as color, texture, and edge information; next, the target detection algorithm is used to identify areas that may contain advertisements and determine the location and bounding box of the advertisement. If the advertisement has specific landmarks, image recognition technology can also be used to detect these landmarks to further confirm the location of the advertisement.
[0003] However, existing video ad detection methods usually require a lot of computing resources, resulting in relatively slow calculation speed. Summary of the invention
[0004] In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide a video advertisement detection method, system, storage medium and electronic device, which can realize video advertisement detection based on a large language model with high speed and accuracy.
[0005] In a first aspect, the present invention provides a video advertisement detection method, the method comprising the following steps: obtaining a video file containing an advertisement, the video file comprising video and audio; extracting frame features of the video; extracting full audio features of the audio; obtaining a first input prompt text, the first input prompt text being used to indicate detection of an advertisement position for the video file; inputting the frame features, the audio features and the first input prompt text into a large language model to obtain the advertisement position in the video file; intercepting a corresponding audio segment in the audio based on the advertisement position; extracting segment audio features of the audio segment; obtaining a second input prompt text, the second input prompt text being used to indicate extraction of detection audio features for the audio segment; inputting the frame features, the segment audio features and the second input prompt text into the large language model to obtain detection audio features of the audio segment; calculating pairwise similarities between the detection audio features and audio features in an audio feature library, and obtaining an audio segment containing an advertisement in the audio according to the pairwise similarities.
[0006] In an implementation manner of the first aspect, a video encoder based on a VideoCLIP model extracts frame features of the video.
[0007] In an implementation of the first aspect, an audio encoder based on a conformer model extracts full audio features of the audio and extracts segment audio features of the audio segment.
[0008] In an implementation of the first aspect, obtaining the advertisement position in the video file includes the following steps:
[0009] Determining whether each frame in the video contains an advertisement;
[0010] For a frame containing an advertisement, a first identification mark is used; for a frame not containing an advertisement, a second identification mark is used;
[0011] The advertisement position is determined based on the first identifier.
[0012] In an implementation manner of the first aspect, the pairwise similarity adopts cosine similarity.
[0013] In an implementation of the first aspect, obtaining the audio segment containing the advertisement in the video according to the pairwise similarities comprises the following steps:
[0014] Comparing the pairwise similarities with a preset threshold;
[0015] The audio segments corresponding to the pairwise similarities greater than the preset threshold are selected as the audio segments containing the advertisements.
[0016] In an implementation manner of the first aspect, the preset threshold is 0.85.
[0017] In a second aspect, the present invention provides a video advertisement detection system, the system comprising a first acquisition module, a first extraction module, a second extraction module, a second acquisition module, a first model processing module, an interception module, a third extraction module, a third acquisition module, a second model processing module and a detection module;
[0018] The first acquisition module is used to acquire a video file containing an advertisement, wherein the video file includes video and audio;
[0019] The first extraction module is used to extract frame features of the video;
[0020] The second extraction module is used to extract the full audio features of the audio;
[0021] The second acquisition module is used to acquire a first input prompt text, where the first input prompt text is used to indicate the detection of an advertisement position for the video file;
[0022] The first model processing module is used to input the frame features, the audio features and the first input prompt text into a large language model to obtain the advertisement position in the video file;
[0023] The interception module is used to intercept the corresponding audio segment in the audio based on the advertisement position;
[0024] The third extraction module is used to extract the segment audio features of the audio segment;
[0025] The third acquisition module is used to acquire a second input prompt text, where the second input prompt text is used to instruct to extract and detect audio features for the audio segment;
[0026] The second model processing module is used to input the frame feature, the segment audio feature and the second input prompt text into the large language model to obtain the detected audio feature of the audio segment;
[0027] The detection module is used to calculate the pairwise similarity between the detected audio features and the audio features in the audio feature library, and obtain the audio segment containing the advertisement in the audio according to the pairwise similarity.
[0028] In a third aspect, the present invention provides an electronic device, the electronic device comprising: a processor and a memory;
[0029] The memory is used to store computer programs;
[0030] The processor is used to execute the computer program stored in the memory, so that the electronic device executes the above-mentioned video advertisement detection method.
[0031] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned video advertisement detection method when executed by an electronic device.
[0032] As described above, the video advertisement detection method, system, storage medium and electronic device of the present invention have the following beneficial effects:
[0033] (1) It can detect video ads based on a large language model with high speed and accuracy;
[0034] (2) Highly intelligent and extremely practical. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 Shown is a schematic diagram of a scene of an electronic device in an embodiment of the present invention;
[0036] Figure 2 Shown is a flow chart of a video advertisement detection method in one embodiment of the present invention;
[0037] Figure 3 Shown is a schematic diagram of a framework of a video advertisement detection method in one embodiment of the present invention;
[0038] Figure 4 Shown is a schematic diagram of the structure of a video advertisement detection system in one embodiment of the present invention;
[0039] Figure 5 It is a schematic structural diagram of an electronic device of the present invention in one embodiment. DETAILED DESCRIPTION
[0040] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0041] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0042] The following embodiments of the present invention provide a video advertisement detection method, which can be applied to Figure 1 The electronic device shown. The electronic device described in the present invention may include a mobile phone 11 with a wireless charging function, a tablet computer 12, a laptop computer 13, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiment of the present invention does not impose any restrictions on the specific type of the electronic device.
[0043] For example, the electronic device may be a station (STAION, ST) in a WLAN with a wireless charging function, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with a wireless charging function, a computing device or other processing device, a computer, a laptop computer, a handheld communication device, a handheld computing device, and / or other devices for communicating on a wireless system and a next generation communication system, such as a mobile terminal in a 5G network, a mobile terminal in a future evolved Public Land Mobile Network (PLMN), or a mobile terminal in a future evolved Non-terrestrial Network (NTN).
[0044] For example, the electronic device can communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobilecommunication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS can include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), BeiDou navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS) and / or Satellite Based Augmentation Systems (SBAS).
[0045] The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0046] like Figure 2 and Figure 3 As shown, in one embodiment, the video advertisement detection method of the present invention includes steps S1 to S10.
[0047] Step S1: Acquire a video file containing an advertisement, wherein the video file includes video and audio.
[0048] Specifically, for a video file of an advertisement to be detected, it is first split into independent video and audio.
[0049] Step S2: extract frame features of the video.
[0050] Specifically, the frame rate of the video is set to 1 frame per second. A video encoder based on the VideoCLIP model extracts frame features of the video. VideoCLIP is a comparative learning method for pre-training zero-sample video and text understanding models without requiring any labels for downstream tasks. VideoCLIP trains the Transformer of video and text by comparing temporally overlapping positive video-text pairs and negative sample pairs retrieved by nearest neighbors.
[0051] Step S3: extracting the full audio features of the audio.
[0052] Specifically, the sampling rate of the audio is set to 1 sample point per second. An audio encoder based on a conformer model extracts the full audio features of the audio. The conformer is a speech recognition model that combines a convolutional network and a transformer, which can better model local and global features in a speech sequence.
[0053] Step S4: Obtain a first input prompt text, where the first input prompt text is used to instruct detection of an advertisement position for the video file.
[0054] Specifically, the user provides the first input prompt text through prompt. Prompt refers to text or instructions that provide input to the model to guide it to generate specific output. It is a text paragraph provided by the user when interacting with the model, which is used to describe the information, answer, text, etc. that the user wants to obtain from the model. The purpose of prompt is to guide the model to produce the desired response in order to better control the generated output.
[0055] In one embodiment, the content of the prompt is 'With the given media file, find out where the ads are located and present them as one label per frame: the positions with ads are marked as 1, and the positions without ads are marked as 0'. That is, using a given video file, find out where the ads are located and present them as one label per frame: the frames with ads are marked as 1, and the frames without ads are marked as 0.
[0056] Step S5: input the frame features, the audio features and the first input prompt text into a large language model to obtain the advertisement position in the video file.
[0057] Specifically, Large Language Models (LLMs) are AI models designed to understand and generate human language. They are trained on large amounts of text data and can perform a wide range of tasks, including text summarization, translation, sentiment analysis, and more. LLMs are characterized by their large size and contain billions of parameters, which help them learn complex patterns in language data. These models are often based on deep learning architectures such as Transformers, which helps them achieve impressive performance on various NLP tasks.
[0058] In the present invention, the frame features, the audio features and the first input prompt text are input into a large language model, and the large language model outputs the advertisement position in the video. In one embodiment, the large language model first determines whether each frame in the video contains advertisements; then, for frames containing advertisements, a first identifier (such as 1) is used to mark them; for frames not containing advertisements, a second identifier (such as 0) is used to mark them; and finally, the advertisement position is determined based on the first identifier, that is, the position of the frame marked as 1 is the advertisement position.
[0059] Step S6: extract a corresponding audio segment from the audio based on the advertisement position.
[0060] Specifically, the corresponding audio position is determined according to the advertisement position, and the corresponding audio segment is intercepted from the audio. It should be noted that there may be one or more audio segments, and one or more audio segments need to be intercepted according to actual conditions.
[0061] Step S7: extracting the audio features of the audio segment.
[0062] Specifically, the audio encoder based on the conformer model extracts the segment audio features of the audio segment.
[0063] Step S8: Obtain a second input prompt text, where the second input prompt text is used to instruct to extract and detect audio features for the audio segment.
[0064] Specifically, the user provides the second input prompt text through a prompt. In one embodiment, the content of the prompt is 'You are a feature extractor, please extract the feature of the audio, the feature dimension is 128, and compress the element value of the feature to 0-1'. That is, the feature extractor is used to extract the detected audio features of the audio clip. Among them, the dimension of the audio detection feature is 128, and the element value of the audio detection feature is compressed to 0-1.
[0065] Step S9: input the frame features, the segment audio features and the second input prompt text into the large language model to obtain the detected audio features of the audio segment.
[0066] Specifically, the frame features, the segment audio features and the second input prompt text are input into the large language model, and the large language model outputs the detected audio features of the audio segment.
[0067] Step S10: Calculate the pairwise similarities between the detected audio features and the audio features in the audio feature library, and obtain the audio segment containing the advertisement in the audio according to the pairwise similarities.
[0068] Specifically, the present invention is pre-set with an audio feature library. Assuming that the audio feature library contains M audio features, and the number of the detected audio features is N, then a total of M*N pairwise similarities are calculated. Preferably, the pairwise similarity adopts cosine similarity.
[0069] In the present invention, the pairwise similarities are compared with a preset threshold (eg, 0.85). If the pairwise similarities are greater than the preset threshold, the corresponding audio segment is regarded as an audio segment containing an advertisement.
[0070] The protection scope of the video advertisement detection method described in the embodiment of the present invention is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present invention are included in the protection scope of the present invention.
[0071] An embodiment of the present invention further provides a video advertisement detection system, which can implement the video advertisement detection method described in the present invention. However, the implementation device of the video advertisement detection system described in the present invention includes but is not limited to the structure of the video advertisement detection system listed in this embodiment. All structural deformations and replacements of the prior art made according to the principles of the present invention are included in the protection scope of the present invention.
[0072] like Figure 4 As shown, in one embodiment, the video advertising detection system of the present invention includes a first acquisition module 401, a first extraction module 402, a second extraction module 403, a second acquisition module 404, a first model processing module 405, an interception module 406, a third extraction module 407, a third acquisition module 408, a second model processing module 409 and a detection module 410.
[0073] The first acquisition module 401 is used to acquire a video file containing an advertisement, where the video file includes video and audio.
[0074] The first extraction module 402 is connected to the first acquisition module 401 and is used to extract frame features of the video.
[0075] The second extraction module 403 is connected to the first acquisition module 401 and is used to extract the full audio features of the audio.
[0076] The second acquisition module 404 is used to acquire a first input prompt text, where the first input prompt text is used to instruct to detect an advertisement position for the video file.
[0077] The first model processing module 405 is connected to the first extraction module 402, the second extraction module 403 and the second acquisition module 404, and is used to input the frame features, the audio features and the first input prompt text into a large language model to obtain the advertisement position in the video file.
[0078] The interception module 406 is connected to the first model processing module 405, and is used to intercept the corresponding audio segment in the audio based on the advertisement position.
[0079] The third extraction module 407 is connected to the interception module 406 and is used to extract the segment audio features of the audio segment.
[0080] The third acquisition module 408 is used to acquire a second input prompt text, where the second input prompt text is used to instruct to extract and detect audio features for the audio segment.
[0081] The second model processing module 409 is connected to the first extraction module 402, the third extraction module 407 and the third acquisition module 408, and is used to input the frame features, the segment audio features and the second input prompt text into the large language model to obtain the detected audio features of the audio segment.
[0082] The detection module 410 is connected to the second model processing module 409 and is used to calculate the pairwise similarity between the detected audio features and the audio features in the audio feature library, and obtain the audio segment containing the advertisement in the audio according to the pairwise similarity.
[0083] Among them, the structures and principles of the first acquisition module 401, the first extraction module 402, the second extraction module 403, the second acquisition module 404, the first model processing module 405, the interception module 406, the third extraction module 407, the third acquisition module 408, the second model processing module 409 and the detection module 410 correspond one by one to the steps in the above-mentioned video advertising detection method, so they will not be repeated here.
[0084] In the several embodiments provided by the present invention, it should be understood that the disclosed system, device or method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules / units is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or units 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 interfaces, indirect coupling or communication connection of devices or modules or units, which can be electrical, mechanical or other forms.
[0085] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention. For example, the functional modules / units in the various embodiments of the present invention may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.
[0086] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0087] The embodiment of the present invention also provides a computer-readable storage medium. A person of ordinary skill in the art can understand that all or part of the steps in the method for implementing the above embodiment can be completed by instructing the processor through a program, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.
[0088] An embodiment of the present invention further provides an electronic device, which includes a processor and a memory.
[0089] The memory is used to store computer programs.
[0090] The memory includes: ROM, RAM, disk, USB flash drive, memory card or CD and other media that can store program codes.
[0091] The processor is connected to the memory and is used to execute the computer program stored in the memory so that the electronic device executes the above-mentioned video advertisement detection method.
[0092] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0093] like Figure 5 As shown, the electronic device of the present invention is in the form of a general computing device. The components of the electronic device may include but are not limited to: one or more processors or processing units 51, a memory 52, and a bus 53 connecting different system components (including the memory 52 and the processing unit 51).
[0094] Bus 53 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0095] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.
[0096] The memory 52 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 521 and / or cache memory 522. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 523 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 53 via one or more data medium interfaces. The memory 52 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0097] A program / utility 524 having a set (at least one) of program modules 5241 may be stored, for example, in the memory 52, such program modules 5241 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include an implementation of a network environment. The program modules 5241 generally perform the functions and / or methods of the embodiments described herein.
[0098] The electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, displays, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via input / output (I / O) interface 54. Furthermore, the electronic device may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapter 55. Figure 5 As shown, the network adapter 55 communicates with other modules of the electronic device via the bus 53. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0099] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A video advertisement detection method, characterized in that: The method comprises the following steps: Acquire a video file containing an advertisement, wherein the video file includes video and audio; Extracting frame features of the video; Extracting full audio features of the audio; Acquire a first input prompt text, where the first input prompt text is used to indicate detecting an advertisement position for the video file; Inputting the frame feature, the audio feature and the first input prompt text into a large language model to obtain an advertisement position in the video file; Based on the advertisement position, intercept a corresponding audio segment in the audio; Extracting audio features of the audio segment; Acquire a second input prompt text, where the second input prompt text is used to instruct to extract and detect audio features for the audio segment; Inputting the frame feature, the segment audio feature and the second input prompt text into the large language model to obtain the detected audio feature of the audio segment; The pairwise similarities between the detected audio features and the audio features in the audio feature library are calculated, and the audio segment containing the advertisement in the audio is obtained according to the pairwise similarities.
2. The video advertisement detection method according to claim 1, characterized in that: The video encoder based on the VideoCLIP model extracts frame features of the video.
3. The video advertisement detection method according to claim 1, characterized in that: The audio encoder based on the conformer model extracts the full audio features of the audio and extracts the segment audio features of the audio segment.
4. The video advertisement detection method according to claim 1, characterized in that: Obtaining the advertisement position in the video file includes the following steps: Determining whether each frame in the video contains an advertisement; For a frame containing an advertisement, a first identification mark is used; for a frame not containing an advertisement, a second identification mark is used; The advertisement position is determined based on the first identifier.
5. The video advertisement detection method according to claim 1, characterized in that: The pairwise similarity adopts cosine similarity.
6. The video advertisement detection method according to claim 1, characterized in that: Acquiring the audio segment containing the advertisement in the video according to the pairwise similarities comprises the following steps: Comparing the pairwise similarities with a preset threshold; The audio segments corresponding to the pairwise similarities greater than the preset threshold are selected as the audio segments containing the advertisements.
7. The video advertisement detection method according to claim 6, characterized in that: The preset threshold is 0.
85.
8. A video advertisement detection system, characterized in that: The system comprises a first acquisition module, a first extraction module, a second extraction module, a second acquisition module, a first model processing module, a interception module, a third extraction module, a third acquisition module, a second model processing module and a detection module; The first acquisition module is used to acquire a video file containing an advertisement; the video file includes video and audio; The first extraction module is used to extract frame features of the video; The second extraction module is used to extract the full audio features of the audio; The second acquisition module is used to acquire a first input prompt text, where the first input prompt text is used to indicate the detection of an advertisement position for the video file; The first model processing module is used to input the frame features, the audio features and the first input prompt text into a large language model to obtain the advertisement position in the video file; The interception module is used to intercept the corresponding audio segment in the audio based on the advertisement position; The third extraction module is used to extract the segment audio features of the audio segment; The third acquisition module is used to acquire a second input prompt text, where the second input prompt text is used to instruct to extract and detect audio features for the audio segment; The second model processing module is used to input the frame feature, the segment audio feature and the second input prompt text into the large language model to obtain the detected audio feature of the audio segment; The detection module is used to calculate the pairwise similarity between the detected audio features and the audio features in the audio feature library, and obtain the audio segment containing the advertisement in the audio according to the pairwise similarity.
9. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory, so that the electronic device executes the video advertisement detection method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by an electronic device, the video advertisement detection method according to any one of claims 1 to 7 is implemented.
