WO2021143273A1 - 直播流采样方法、装置及电子设备 - Google Patents
直播流采样方法、装置及电子设备 Download PDFInfo
- Publication number
- WO2021143273A1 WO2021143273A1 PCT/CN2020/124817 CN2020124817W WO2021143273A1 WO 2021143273 A1 WO2021143273 A1 WO 2021143273A1 CN 2020124817 W CN2020124817 W CN 2020124817W WO 2021143273 A1 WO2021143273 A1 WO 2021143273A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- sampled
- images
- hash code
- image
- sampled image
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000005070 sampling Methods 0.000 title claims abstract description 49
- 238000001914 filtration Methods 0.000 claims description 10
- 230000009466 transformation Effects 0.000 claims description 6
- 238000000605 extraction Methods 0.000 claims description 3
- 238000012216 screening Methods 0.000 abstract 1
- 238000004590 computer program Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 230000000875 corresponding effect Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000012550 audit Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000000644 propagated effect Effects 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
- G06V20/46—Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/74—Image or video pattern matching; Proximity measures in feature spaces
- G06V10/761—Proximity, similarity or dissimilarity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/77—Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
- G06V10/7715—Feature extraction, e.g. by transforming the feature space, e.g. multi-dimensional scaling [MDS]; Mappings, e.g. subspace methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
- G06V20/48—Matching video sequences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
Definitions
- the present disclosure relates to the technical field of image processing, and in particular, to a method, device and electronic equipment for sampling a live stream.
- the video content of the live broadcast needs to be reviewed and checked for violations.
- the live stream must be sampled.
- the live stream is characterized by a very large amount of data and a very high requirement for efficiency.
- Conventional uniform sampling based on the number of frames per second (Frames Per Second, referred to as FPS).
- FPS Frames Per Second
- the existing live stream sampling scheme has technical problems such as excessive data volume or excessive leakage.
- the embodiments of the present disclosure provide a live stream sampling, which at least partially solves the problems existing in the prior art.
- embodiments of the present disclosure provide a live stream sampling method, including:
- Filter forward similar images from all the sampled images, where the forward similar image is a sampled image similar to the sampled image of the previous adjacent frame;
- the remaining sampled images from all the sampled images excluding the forward similar images are used as the sampled images of the live stream.
- the step of filtering forward similar images from all the sampled images includes:
- the sampled image of each frame According to the hash code of the sampled image of each frame and the sampled image of the previous adjacent frame, it is determined whether the sampled image is a forward similar image.
- the step of judging whether the sampled image is a forward similar image based on the hash code of the sampled image of each frame and the sampled image of the previous adjacent frame includes:
- the Hamming distance is greater than or equal to the preset threshold, it is determined that the sampled image is not a forward similar image
- the sampled image is a forward similar image.
- the step of calculating the hash code of each frame of sampled image includes:
- the step of calculating a preset type of parameter difference between each center point and all of its neighboring points as the hash code segment of the center point includes:
- the pixel value comparison values of the center point and all the neighboring points are sequentially arranged to obtain the hash code segment of the center point.
- the step of calculating the pixel value comparison between the center point and each neighboring point includes:
- the pixel value comparison value of the center point and the area point is recorded as 0.
- the step of determining the neighborhood point of each center point includes:
- the step of calculating the hash code of each frame of sampled image includes:
- the step of calculating the hash code of each frame of sampled image includes:
- the step of calculating the hash code of the fixed-size sampled image includes:
- all the hash code segments of the sampled images of the preset scale are sequentially arranged to obtain the hash code of the sampled image.
- a live stream sampling device including:
- Extraction module used to extract multiple frames of sampled images from the live stream
- a filtering module configured to filter forward similar images from all the sampled images, where the forward similar images are sampled images similar to the sampled images of the previous adjacent frame;
- the processing module is configured to use the remaining sampled images from all the sampled images with the forward similar images removed as the sampled images of the live stream.
- embodiments of the present disclosure also provide an electronic device, which includes:
- At least one processor and,
- a memory communicatively connected with the at least one processor; wherein,
- the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the live broadcast in the foregoing first aspect or any implementation manner of the first aspect Stream sampling method.
- the embodiments of the present disclosure also provide a non-transitory computer-readable storage medium that stores computer instructions, and the computer instructions are used to make the computer execute the first aspect or the first aspect described above.
- a live stream sampling method in any implementation manner of one aspect.
- the embodiments of the present disclosure also provide a computer program product.
- the computer program product includes a computing program stored on a non-transitory computer-readable storage medium.
- the computer program includes program instructions. When executing, the computer is caused to execute the live stream sampling method in the foregoing first aspect or any implementation manner of the first aspect.
- the live stream sampling scheme in the embodiment of the present disclosure includes: extracting multiple frames of sampled images from the live stream; filtering forward similar images from all the sampled images, where the forward similar images are adjacent to the previous one A sampled image that is similar to the frame sampled image; and the remaining sampled images from all the sampled images except the forward similar images are used as the sampled images of the live stream.
- FIG. 1 is a schematic flowchart of a method for sampling a live stream according to an embodiment of the disclosure
- FIG. 2 is a schematic partial flowchart of another live stream sampling method provided by an embodiment of the present disclosure
- FIG. 3 is a schematic partial flowchart of another live stream sampling method provided by an embodiment of the present disclosure.
- FIG. 4 is a schematic diagram of neighborhood point selection involved in a live stream sampling method provided by an embodiment of the disclosure
- FIG. 5 is a schematic structural diagram of a live stream sampling device provided by an embodiment of the disclosure.
- FIG. 6 is a schematic diagram of an electronic device provided by an embodiment of the disclosure.
- the embodiment of the present disclosure provides a method for sampling a live stream.
- the live stream sampling method provided in this embodiment can be executed by a computing device, which can be implemented as software, or as a combination of software and hardware, and the computing device can be integrated in a server, terminal equipment, and the like.
- a live stream sampling method provided by an embodiment of the present disclosure includes:
- the live stream sampling method provided in this embodiment is used to extract frames of images in the live stream and audit the live video content to detect whether the video content is in violation of regulations.
- the data volume of the live stream is very large.
- a fixed FPS can be used for uniform sampling, and multiple frames of sampled images can be extracted from the live stream.
- the data volume of the sampled image extracted at this time is also large.
- samples are uniformly sampled to multiple frames of sampled images based on FPS.
- the electronic device can first filter the extracted multi-frame sampled images to find out which sampled images are similar to other images.
- a sampled image similar to the sampled image of the previous adjacent frame is defined as a forward similar image, and the electronic device filters out existing forward similar images from all the sampled images.
- the similarity here can mean that the content is completely the same, or the content is relatively close but not completely the same.
- the forward adjacent frame can also be an image with similar content in all adjacent frames in the previous sequence, or also The similar images can be reduced by filtering backward similar images, which is not limited.
- the filtered forward similar images can be removed from all the sampled images, and the remaining sampled images are used as the live broadcast
- the content of the live stream is reviewed based on the remaining sampled images of this part.
- step S102 filtering forward similar images from all the sampled images may include:
- the degree of similarity between images is determined based on the hash code of each frame of sampled image.
- calculating the hash code of an image refers to the use of a hash algorithm to allow each sampled image in the same group of images to have a different hash code according to its own different characteristics, but it does not mean that the different object hash codes are completely different. different.
- S203 Determine whether the sampled image is a forward similar image according to the hash code of the sampled image of each frame and the sampled image of the previous adjacent frame.
- the hash code of each frame of sampled image from the second frame of sampled image can be compared with the previous adjacent frame of sampled image to determine this The similarity of the two images is used to determine whether the sampled image of the current frame is a forward similar image.
- step S203 judging whether the sampled image is a forward similar image based on the hash code of each frame of sampled image and the previous adjacent frame of sampled image may include:
- the Hamming distance is greater than or equal to the preset threshold, it is determined that the sampled image is not a forward similar image
- the sampled image is a forward similar image.
- the Hamming distance between the two image hash codes is calculated, and it is determined in turn whether the sampled image of the current frame is a forward similar image.
- the Hamming distance refers to the number of different characters in the corresponding positions between two strings of equal length, that is, the number of characters that need to be replaced to transform one string into another string.
- the set preset threshold is highly correlated with filtering requirements, the number of sampled images, or the number of selected points, and there is no specific numerical limitation.
- step S201 calculating the hash code of each frame of sampled image may include:
- the basis for calculating the hash code is the difference of the display parameters between the reference point and the surrounding pixels. After the center point is selected on the sampled image, the neighborhood point of each center point is determined.
- the step of determining the neighborhood point of each center point may include:
- the center point is located on the edge row and column of the sampled image, its neighboring point is the adjacent pixel point in the process of extending the center point to the inside of the sampled image.
- the center point on the edge row and column usually has 5 neighboring points (as shown in Figure 4). As shown in A and a), or 3 neighborhood points (as shown in B and b in Figure 4).
- the center point is located on a non-edge row and column on the sampled image, its neighboring point is the adjacent pixel point in the process of extending the center point to the surrounding.
- the center point on the non-edge row and column usually has 8 domain points (as shown in Figure 4). C and c) etc. as shown.
- S303 Calculate a preset type of parameter difference between each central point and all its neighboring points, and use it as a hash code segment of the central point;
- the step of calculating a preset type of parameter difference between each central point and all its neighboring points as the hash code segment of the central point may include:
- the pixel value comparison values of the center point and all the neighboring points are sequentially arranged to obtain the hash code segment of the center point.
- step of calculating the pixel value comparison between the center point and each neighboring point includes:
- the pixel value comparison value of the center point and the area point is recorded as 0.
- S304 Combine all the hash code segments of the center point to obtain the hash code of the sample image.
- the hash code corresponding to the sampled image can be obtained by combining.
- the comparison effect when calculating the hash code, pre-appoint the selection parameters of the center point, the arrangement order of the pixel value comparison value of each neighboring point of the center point, and the arrangement order of the hash code segments corresponding to all the center points. In the case of consistent operation, the comparison effect is more accurate.
- the step of calculating the hash code of each frame of the sampled image includes:
- the hash code is calculated, which reduces the amount of redundant calculation caused by RGB parameters and simplifies the hash code calculation process.
- step of calculating the hash code of each frame of sampled image may include:
- step of calculating the hash code of the sampled image of the fixed size includes:
- all the hash code segments of the sampled images of the preset scale are sequentially arranged to obtain the hash code of the sampled image.
- the initial scale of each sampled image is transformed into a fixed size, and then the same scale transformation is added on the basis of the fixed size. In this way, the obtained hash code value is richer and more accurate, and the reference of the hash code comparison is higher. .
- the hash code is calculated for a given sample image, and the calculation method is as follows:
- the live stream sampling scheme in the embodiment of the present disclosure includes: extracting multiple frames of sampled images from the live stream; filtering forward similar images from all the sampled images, where the forward similar images are adjacent to the previous one A sampled image that is similar to the frame sampled image; and the remaining sampled images from all the sampled images except the forward similar images are used as the sampled images of the live stream.
- an embodiment of the present disclosure also provides a live stream sampling device 50, including:
- the extraction module 501 is used to extract multiple frames of sampled images from the live stream
- the filtering module 502 is configured to filter forward similar images from all the sampled images, where the forward similar images are sampled images similar to the sampled images of the previous adjacent frame;
- the processing module 503 is configured to use the remaining sampled images from all the sampled images with the forward similar images removed as the sampled images of the live stream.
- the device shown in FIG. 5 can correspondingly execute the content in the foregoing method embodiment.
- an electronic device 60 which includes:
- At least one processor and,
- a memory communicatively connected with the at least one processor; wherein,
- the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the live stream sampling method in the foregoing method embodiment.
- the embodiments of the present disclosure also provide a non-transitory computer-readable storage medium that stores computer instructions for causing the computer to execute the live stream sampling method in the foregoing method embodiment .
- the embodiments of the present disclosure also provide a computer program product, the computer program product includes a calculation program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer, The computer executes the live stream sampling method in the foregoing method embodiment.
- FIG. 6 shows a schematic structural diagram of an electronic device 60 suitable for implementing embodiments of the present disclosure.
- the electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (e.g. Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc.
- the electronic device shown in FIG. 6 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
- the electronic device 60 may include a processing device (such as a central processing unit, a graphics processor, etc.) 601, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 602 or from a storage device 608.
- the program in the memory (RAM) 603 executes various appropriate actions and processing.
- various programs and data required for the operation of the electronic device 60 are also stored.
- the processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604.
- An input/output (I/O) interface 605 is also connected to the bus 604.
- the following devices can be connected to the I/O interface 605: including input devices 606 such as touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; including, for example, liquid crystal displays (LCD), speakers, An output device 607 such as a vibrator; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609.
- the communication device 609 may allow the electronic device 60 to perform wireless or wired communication with other devices to exchange data.
- the figure shows the electronic device 60 having various devices, it should be understood that it is not required to implement or have all the illustrated devices. It may be implemented alternatively or provided with more or fewer devices.
- an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart.
- the computer program may be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602.
- the processing device 601 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
- the aforementioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
- the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable removable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
- a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
- a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
- the computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
- the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
- the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
- the foregoing computer-readable medium carries one or more programs, and when the foregoing one or more programs are executed by the electronic device, the electronic device can implement the solutions provided by the foregoing method embodiments.
- the aforementioned computer-readable medium carries one or more programs, and when the aforementioned one or more programs are executed by the electronic device, the electronic device can implement the solutions provided by the aforementioned method embodiments.
- the computer program code used to perform the operations of the present disclosure may be written in one or more programming languages or a combination thereof.
- the above-mentioned programming languages include object-oriented programming languages—such as Java, Smalltalk, C++, and also conventional Procedural programming language-such as "C" language or similar programming language.
- the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
- the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass Internet connection).
- LAN local area network
- WAN wide area network
- each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logic function.
- Executable instructions can also occur in a different order from the order marked in the drawings. For example, two blocks shown one after another can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved.
- each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
- the units involved in the embodiments described in the present disclosure can be implemented in software or hardware. Wherein, the name of the unit does not constitute a limitation on the unit itself under certain circumstances.
- the first obtaining unit can also be described as "a unit for obtaining at least two Internet Protocol addresses.”
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Bioinformatics & Computational Biology (AREA)
- General Engineering & Computer Science (AREA)
- Evolutionary Biology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Description
Claims (13)
- 一种直播流采样方法,其特征在于,包括:从直播流中抽取多帧采样图像;从全部所述采样图像中筛选出前向类似图像,其中,所述前向类似图像为与前一相邻帧采样图像类似的采样图像;将全部采样图像中除去所述前向类似图像的剩余采样图像作为所述直播流的采样图像。
- 根据权利要求1所述的方法,其特征在于,所述从全部所述采样图像中筛选出前向类似图像的步骤,包括:计算每帧采样图像的哈希码;获取每帧采样图像与前一相邻帧采样图像的哈希码;依据每帧采样图像与前一相邻帧采样图像的哈希码,判断所述采样图像是否为前向类似图像。
- 根据权利要求2所述的方法,其特征在于,所述依据每帧采样图像与前一相邻帧采样图像的哈希码,判断所述采样图像是否为前向类似图像的步骤,包括:计算所述采样图像的哈希码与前一相邻帧采样图像的哈希码之间的汉明距离;判断所述汉明距离是否大于或者等于预设阈值;若所述汉明距离大于或者等于所述预设阈值,则判定所述采样图像不是前向类似图像;若所述汉明距离小于所述预设阈值,则判定所述采样图像是前向类似图像。
- 根据权利要求3所述的方法,其特征在于,所述计算每帧采样图像的哈希码的步骤,包括:从所述采样图像中选择预设数量的中心点;确定每个中心点的邻域点;计算每个中心点与其全部邻域点之间的预设类型的参数差值,作为所述中心点的哈希码段;将全部所述中心点的哈希码段组合得到所述采样图像的哈希码。
- 根据权利要求4所述的方法,其特征在于,所述计算每个中心点与其全部邻域点之间的预设类型的参数差值,作为所述中心点的哈希码段的步骤,包括:计算所述中心点与每一邻域点的像素值对比值;按照预设的排列顺序,依次排列所述中心点与全部所述邻域点的像素值对比值,得到所述中心点的哈希码段。
- 根据权利要求5所述的方法,其特征在于,所述计算所述中心点与每一邻域点的像素值对比值的步骤,包括:采集所述中心点与所述邻域点的像素值;若所述中心点的像素值大于所述领域点的像素值,则将所述中心点与所述领域点的像素值对比值记录为1;若所述中心点的像素值小于或者等于所述领域点的像素值,则将所述中心点与所述领域点的像素值对比值记录为0。
- 根据权利要求4所述的方法,其特征在于,所述确定每个中心点的邻域点的步骤,包括:确定在所述采样图像上与所述中心点邻接的全部像素点。
- 根据权利要求2至7中任一项所所述的方法,其特征在于,所述计算每帧采样图像的哈希码的步骤,包括:对所述采样图像进行灰度处理;计算经过灰度处理后的所述采样图像的哈希码。
- 根据权利要求8所述的方法,其特征在于,所述计算每帧采样图像的哈希码的步骤,包括:将所述采样图像进行尺度变换,获得固定尺寸的采样图像;计算所述固定尺寸的采样图像的哈希码。
- 根据权利要求9所述的方法,其特征在于,所述计算所述固定尺寸的采样图像的哈希码的步骤,包括:将所述固定尺寸的采样图像进行尺度变换,获得至少两个不同预设尺度的采样图像;获取每个预设尺度的采样图像的哈希码段;按照预设的排列顺序,依次排列全部预设尺度的采样图像的哈希码段,得到所述采样图像的哈希码。
- 一种直播流采样装置,其特征在于,包括:抽取模块,用于从直播流中抽取多帧采样图像;筛选模块,用于从全部所述采样图像中筛选出前向类似图像,其中,所述前向类似图像为与前一相邻帧采样图像类似的采样图像;处理模块,用于将全部采样图像中除去所述前向类似图像的剩余采样图像作为所述直播流的采样图像。
- 一种电子设备,其特征在于,所述电子设备包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行前述权利要求1-10中任一项所述的直播流采样方法。
- 一种非暂态计算机可读存储介质,该非暂态计算机可读存储介质存储计算机指令,该计算机指令用于使该计算机执行前述权利要求1-10中任一项所述的直播流采样方法。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US17/624,217 US12020482B2 (en) | 2020-01-19 | 2020-10-29 | Live streaming sampling method and apparatus, and electronic device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010060220.9 | 2020-01-19 | ||
CN202010060220.9A CN111325096B (zh) | 2020-01-19 | 2020-01-19 | 直播流采样方法、装置及电子设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021143273A1 true WO2021143273A1 (zh) | 2021-07-22 |
Family
ID=71167023
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/124817 WO2021143273A1 (zh) | 2020-01-19 | 2020-10-29 | 直播流采样方法、装置及电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111325096B (zh) |
WO (1) | WO2021143273A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114205632A (zh) * | 2021-12-17 | 2022-03-18 | 深圳Tcl新技术有限公司 | 视频预览方法、装置、电子设备及计算机可读存储介质 |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111325096B (zh) * | 2020-01-19 | 2021-04-20 | 北京字节跳动网络技术有限公司 | 直播流采样方法、装置及电子设备 |
CN112085097A (zh) * | 2020-09-09 | 2020-12-15 | 北京市商汤科技开发有限公司 | 图像处理方法及装置、电子设备和存储介质 |
CN114419018A (zh) * | 2022-01-25 | 2022-04-29 | 重庆紫光华山智安科技有限公司 | 图像采样方法、***、设备及介质 |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020181780A1 (en) * | 2001-06-05 | 2002-12-05 | Matrox Electronic Systems Ltd. | Geometic hashing method for model-based recognition of an object |
US20090080778A1 (en) * | 2007-09-21 | 2009-03-26 | Electronics & Telecommunications Research Institute | Pattern recognition method and apparatus for data protection |
CN101887457A (zh) * | 2010-07-02 | 2010-11-17 | 杭州电子科技大学 | 基于内容的复制图像检测方法 |
CN105025392A (zh) * | 2015-06-25 | 2015-11-04 | 西北工业大学 | 基于摘要空间特征学习的视频摘要关键帧提取方法 |
CN107145487A (zh) * | 2016-03-01 | 2017-09-08 | 深圳中兴力维技术有限公司 | 图像搜索方法和装置 |
CN110472484A (zh) * | 2019-07-02 | 2019-11-19 | 山东师范大学 | 基于多视图特征的视频关键帧提取方法、***及设备 |
CN110505495A (zh) * | 2019-08-23 | 2019-11-26 | 北京达佳互联信息技术有限公司 | 多媒体资源抽帧方法、装置、服务器及存储介质 |
CN111325096A (zh) * | 2020-01-19 | 2020-06-23 | 北京字节跳动网络技术有限公司 | 直播流采样方法、装置及电子设备 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107358141B (zh) * | 2016-05-10 | 2020-10-23 | 阿里巴巴集团控股有限公司 | 数据识别的方法及装置 |
CN109670071B (zh) * | 2018-10-22 | 2021-10-08 | 北京大学 | 一种序列化多特征指导的跨媒体哈希检索方法和*** |
CN110188223B (zh) * | 2019-06-06 | 2022-10-04 | 腾讯科技(深圳)有限公司 | 图像处理方法、装置及计算机设备 |
-
2020
- 2020-01-19 CN CN202010060220.9A patent/CN111325096B/zh active Active
- 2020-10-29 WO PCT/CN2020/124817 patent/WO2021143273A1/zh active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020181780A1 (en) * | 2001-06-05 | 2002-12-05 | Matrox Electronic Systems Ltd. | Geometic hashing method for model-based recognition of an object |
US20090080778A1 (en) * | 2007-09-21 | 2009-03-26 | Electronics & Telecommunications Research Institute | Pattern recognition method and apparatus for data protection |
CN101887457A (zh) * | 2010-07-02 | 2010-11-17 | 杭州电子科技大学 | 基于内容的复制图像检测方法 |
CN105025392A (zh) * | 2015-06-25 | 2015-11-04 | 西北工业大学 | 基于摘要空间特征学习的视频摘要关键帧提取方法 |
CN107145487A (zh) * | 2016-03-01 | 2017-09-08 | 深圳中兴力维技术有限公司 | 图像搜索方法和装置 |
CN110472484A (zh) * | 2019-07-02 | 2019-11-19 | 山东师范大学 | 基于多视图特征的视频关键帧提取方法、***及设备 |
CN110505495A (zh) * | 2019-08-23 | 2019-11-26 | 北京达佳互联信息技术有限公司 | 多媒体资源抽帧方法、装置、服务器及存储介质 |
CN111325096A (zh) * | 2020-01-19 | 2020-06-23 | 北京字节跳动网络技术有限公司 | 直播流采样方法、装置及电子设备 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114205632A (zh) * | 2021-12-17 | 2022-03-18 | 深圳Tcl新技术有限公司 | 视频预览方法、装置、电子设备及计算机可读存储介质 |
WO2023109284A1 (zh) * | 2021-12-17 | 2023-06-22 | 深圳Tcl新技术有限公司 | 视频预览方法、装置、电子设备以及计算机可读存储介质 |
Also Published As
Publication number | Publication date |
---|---|
US20220383637A1 (en) | 2022-12-01 |
CN111325096A (zh) | 2020-06-23 |
CN111325096B (zh) | 2021-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021143273A1 (zh) | 直播流采样方法、装置及电子设备 | |
CN109168026B (zh) | 即时视频显示方法、装置、终端设备及存储介质 | |
CN111445902B (zh) | 数据收集方法、装置、存储介质及电子设备 | |
WO2022105779A1 (zh) | 图像处理方法、模型训练方法、装置、介质及设备 | |
WO2021114979A1 (zh) | 视频页面显示方法、装置、电子设备和计算机可读介质 | |
WO2020244553A1 (zh) | 字幕越界的处理方法、装置和电子设备 | |
WO2020200173A1 (zh) | 文档输入内容的处理方法、装置、电子设备和存储介质 | |
WO2021197161A1 (zh) | 图标更新方法、装置和电子设备 | |
WO2023284437A1 (zh) | 媒体文件处理方法、装置、设备、可读存储介质及产品 | |
US20220394333A1 (en) | Video processing method and apparatus, storage medium, and electronic device | |
CN110727566B (zh) | 一种获取进程崩溃信息的方法、装置、介质和电子设备 | |
CN112037223B (zh) | 图像缺陷检测方法、装置及电子设备 | |
WO2021135864A1 (zh) | 图像处理方法及装置 | |
CN111626921A (zh) | 图片处理方法、装置及电子设备 | |
CN112291121B (zh) | 一种数据处理方法及相关设备 | |
WO2021114981A1 (zh) | 视频播放页面显示方法、装置、电子设备和介质 | |
WO2020192246A1 (zh) | 终端界面的显示控制方法、装置、存储介质及电子设备 | |
CN111783632A (zh) | 针对视频流的人脸检测方法、装置、电子设备及存储介质 | |
US12020482B2 (en) | Live streaming sampling method and apparatus, and electronic device | |
WO2021027597A1 (zh) | 图像特效处理方法、装置、电子设备和计算机可读存储介质 | |
CN111258582B (zh) | 一种窗口渲染方法、装置、计算机设备及存储介质 | |
CN113225488B (zh) | 一种视频处理方法、装置、电子设备及存储介质 | |
WO2021018176A1 (zh) | 文字特效处理方法及装置 | |
WO2021004171A1 (zh) | 水波纹图像实现方法及装置 | |
WO2021018179A1 (zh) | 文字特效处理方法及装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20914364 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20914364 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13.02.2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20914364 Country of ref document: EP Kind code of ref document: A1 |