ADO interface _RecordsetPtr pointer

Original reference: ADO interface_RecordsetPtr-CSDN blog _RecordsetPtr smart pointer, which is a pointer specially set up for operating the database through the recordset. Through this interface, various operations can be performed on the records, fields, etc. in the database table. To be clear: the database and the ADO record set are two different concepts, two storage […]

VUE3+javaCV realizes long-term video recording

Table of Contents need accomplish The front-end plays the picture of Hikvision camera Record video Method 1: HTMLVideoElement (obsolete) Method 2: HTMLCanvasElement (obsolete) Method three: javaCV code question Requirement The front end receives the hls stream converted from rtsp by webrtc-streamer Click the start button to start recording for a while Click the Stop button […]

[Record] PDF|Chinese and English PDF scanned version directory extraction (1, QQ+GPT)

need: 1) Quickly extract table of contents from PDF; 2) Don’t want to download any software. Article directory 1. Directly export the directory using existing commonly used software 1 (recommendation index☆) QQ OCR text recognition 2 (recommendation index 0 stars) GPT4 image recognition 3 (recommended index 0 stars) GPT4 AI PDF plug-in 4 (recommended index […]

Pure front-end to record screen and save video locally, so simple

Big factory technology advanced front-end Node advanced Click above for Programmer Growth Guide and follow the official account Reply 1, join the advanced Node communication group Author: Moment Link: As a senior picture cutter, we will inevitably need to share some functions of the pages we write with others through videos. There is another […]

Web (h5) and Electron implement recording software

Background In today’s increasingly advanced world of modern technology, our computers and mobile phone devices are capable of completing many daily tasks, one of which is recording. Whether it is recording meetings, making voice memos, or composing music, recording is one of the functions we often use in our lives. This article will introduce how […]

Assert and CommUtils throw exceptions (self-recorded)

Assert Assert.notNull(vo, “The loan information is empty”); Assert.notBlank(vo.getLoanId(), “The loan number is blank”); Assert.notEmpty(busiLoanApplyDto.getCustId(), “The customer number is empty!”); Assert.notNull(busiLoanApplyDto.getApplyTerm(), “The loan term is null!”); Assert.isTrue(0 != busiLoanApplyDto.getApplyTerm(), “The loan term is empty!”); Assert.notNull(busiLoanApplyDto.getLoanAmount(), “The loan amount is null!”); Assert.notEmpty(busiLoanApplyDto.getLoanCode(), “The loan application number is empty”); CommUtils (self-created class) String validate = ValidationUtils.validate(signMemberInitDto); if (CommUtils.isNotEmpty(validate)){ […]

WSL2 Ubuntu22.04 + 3070 installation cuda11.6 +Pytorch1.13.0 full record

Article directory Install cuda Check the maximum supported cuda version Install according to the official website steps Aftermath after installation is complete Install cudnn Install PyTorch Install miniconda to manage the python environment Install Pytorch in torch_env Result check gpustat Install cuda Note in advance: If the WSL distribution version is Ubuntu22.04, an error occurred […]

7. Use MediaRecorder to record video files

Use MediaRecorder to record video files Android emulator cannot record audio. Life cycle First, you need to grant two permissions through ActivityCompat.requestPermissions(): <uses-permission android:name=”android.permission.CAMERA” /> <uses-permission android:name=”android.permission.RECORD_AUDIO” /> <uses-permission android:name=”android.permission.WRITE_EXTERNAL_STORAGE” /> The steps to record audio using MediaRecorder are usually as follows: MediaRecorder recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264); recorder.setOutputFile(PATH_NAME); recorder.prepare(); recorder.start(); […]

onFrameRecord obtains real-time pcm audio stream and implements audio playback and uploading

Background: To realize audio recording, audio upload and playback on the mobile terminal, use the recording API provided by the native app (native h5 getUserMedia, which is limited by the app’s kernel browser and does not support the getUserMedia method, and the popular plug-ins js-audio-record and record-core Debugging is supported on PC but not on […]