[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 […]

Python implements ModBusRTU server

It is a simple matter to implement the ModBusRTU server based on serial port communication in python, which can be achieved through the pymodbus module. 1. A Demo and the problems it causes 1. A Demo import asyncio import json import threading import time from pymodbus.server import StartSerialServer, ServerAsyncStop from pymodbus.datastore import ModbusSequentialDataBlock, ModbusServerContext, ModbusSlaveContext […]

Case study of temperature and humidity collection project based on ModebusRTU communication

Table of Contents 1. Simulation of temperature and humidity 【1.1】Temperature and humidity instrument parameters 【1.1】Use computer to simulate sensors 【1.2】Use Codesys software to simulate sensors 2. Custom control UI design 【2.1】Customized control temperature and humidity columnar design ?edit 【2.1.1】Set the actual columnar display of temperature and humidity [Properties] 【2.1.2】Set the background color of the temperature […]

FPGA project: usrt_rs232

module uart_rx #( parameter UART_BPS = ‘d9600 , CLK_FREQ = ‘d50_000_000 )( input wire sys_clk, input wire sys_rst_n , input wire rx, output reg [7:0] po_data , output reg po_flag ); parameter BAUD_CNT_MAX = CLK_FREQ / UART_BPS; //reg define signal reg rx_reg1; reg rx_reg2; reg rx_reg3; reg start ; reg work_en; reg [12:00] baud_cnt; reg […]

C# develops serial port debugging assistant to realize modbusRTU communication

Let’s do a project for everyone today, come with me, don’t miss it when you pass by, and see how the big V plays C# industrial software development. Serial communication process Hardware products: Serial port RS232 temperature and humidity sensor, used to test the temperature and humidity of the outside world, such as warehouses, greenhouses, […]

python-batch extract plain text in srt files

python-batch extract plain text from srt files 1. Function introduction In order to facilitate daily use, I packaged the program for batch extraction of plain text in srt files into exe files, so that there is no need to install the python environment and related libraries too. The current version of the program can select […]