Tag: extra
[Script Tool] Extract frames from video, add srt subtitles for reading, and add background audio
1. Article directory After reading this article, you will be able to learn the following: Batch video frame extraction; Add srt subtitles; Add srt dubbing; Add background music; Combine multiple video clips into a new video; Effect: 2. Install dependencies First install the video processing libraries opencv-python and moviepy. The installation method is pip install […]
4. Use MediaExtractor+MediaCodec+AudioTrack to play audio files
Use MediaExtractor + MediaCodec + AudioTrack to play audio files First look at a picture: If you want to play a video, you have to deprotocol and decapsulate the video file. Then you can get the audio data and video data (separately), decode them separately again, and finally play them synchronously (because the devices that […]
Top 5 Python libraries for extracting text from images
The main thing is to understand and master the OCR tool for text positioning and recognition~ Optical character recognition is an old but still challenging The problem involves detecting and recognizing text from unstructured data, including images and PDF documents. It has wide applications in areas such as banking, e-commerce, and social media content management. […]
JMeterJSON extractor of post-processor
Test environment JMeter 5.4.1 Plug-in introduction The JSON PostProcessor allows you to extract data from JSON-formatted responses using the JSON Path syntax. Similar to the regular expression extractor, it must be located under the HTTP sampler or other sampler that can return JSON data as a child node. Plug-in parameters Name The name that appears […]
[whisper] Call whisper in python to extract subtitles or translate subtitles into text
Recently I have been doing business related to video processing. There is a need to extract subtitles from the video. Our implementation process is divided into two steps: first separate the audio, and then use whisper for speech recognition or translation. This article will introduce in detail the basic use of whisper and the two […]
[Image Segmentation] Image detection (segmentation, feature extraction), measurement and filtering of various features (area, etc.) (Matlab code implementation)
Welcome to this blog Advantages of bloggers:Blog content should be as thoughtful and logical as possible for the convenience of readers. Motto:He who travels a hundred miles is half as good as ninety. The directory of this article is as follows: Table of Contents 1 Overview 2 Operation results ? 3 References 4 Matlab code […]
Use Python to batch modify PPT fonts and extract all text to word
Directory 1. Modify the font of each page in PPT Python modification VBA modification, modify the text box and chart font to Microsoft Yahei (commonly used) VBA code base 2. Put all the words in the text box into word 3. Insert pictures and modify positions in PPT 1. Insert pictures into PPT 2. Modify […]
Frame extraction processing of something-somethingV2 data set
Regarding the problems I encountered when processing the ssv2 data set, it’s really terrible. Although it’s not a big problem, it can mess with people’s mentality. 1. Brief introduction to the problem Because the ssv2 data set is all videos, unlike ssv1 which has ready-made jpg images, the video needs to be extracted and processed […]
Web page data extraction — regular expressions
Table of Contents 1 Overview 2. Metacharacters Basic metacharacters: Repeating metacharacters: Positional metacharacters: Other metacharacters Escapes: 3. Commonly used regular expressions 4. Methods of re module 5. Advanced use of regular expressions .*? pattern modifier 6. Regular parsing data demo 1. Overview Regular Expression, translated as regular expression or regular expression, represents a regular expression, […]