How to Write CMakeLists.txt? (Part 1: Basics)

How to Write CMakeLists.txt? (Part 1: Basics)

Click on the “3D Vision Workshop” above and select “Star” Get valuable content delivered promptly The 62nd Article of 3D Vision Workshop This article summarizes the method of writing CMakeLists.txt files on the linux platform. 1 General Modules at the Beginning 1.1 CMake Version Requirement cmake_minimum_required( VERSION 2.8 ) # Project filename loop_closure, can be … Read more

Compiling OpenCV 4.8.1 with CMake and Visual Studio 2022 on Windows

Compiling OpenCV 4.8.1 with CMake and Visual Studio 2022 on Windows

1. Background The project I am currently maintaining runs on Windows and uses OpenCV version 4.5.2. My local development environment is a Mac, and I am using the newer OpenCV version 4.8.1. To maintain consistency with my local development environment, I plan to upgrade the OpenCV used in the project, as the project still utilizes … Read more

30 Common Python Functions with Code Implementations

30 Common Python Functions with Code Implementations

Click on the above “Beginner Visual Learning”, choose to add “Star” or “Top” Important content delivered promptly 1. Bubble Sort 2. Method to calculate x to the power of n 3. Calculate a*a + b*b + c*c + … 4. Calculate factorial n! 5. List all files and directories in the current directory 6. Convert … Read more

Connecting CSI Camera to Raspberry Pi with OpenCV

Connecting CSI Camera to Raspberry Pi with OpenCV

Click the above“Mechanical and Electronic Engineering Technology” to follow us My requirements: Raspberry Pi 3B+, operating system Raspbian-stretch, with both Python 2.7.13 and Python 3.5.3 versions. The CSI (Camera Serial Interface) camera is a common camera interface used in embedded systems or mobile devices. It is typically used for direct connection to processors or image … Read more

Organizing Photos with Python: A Year in Review

Organizing Photos with Python: A Year in Review

Ah, it’s that time of year again for a big cleanup! Opening my phone’s photo album, oh my, did I really take this many photos in a year? Looking at my nearly full storage space, I suddenly had a brilliant idea: why not let Python help me organize these precious memories? Photo Classification Challenge We … Read more

Create Your Own Webcam Photo Stealer Software Using Python

Create Your Own Webcam Photo Stealer Software Using Python

This tutorial teaches you how to create your own webcam photo stealing software using Python. You need to install Python version 3.5 or above, which can be downloaded from the official website. Then install the opencv-python library by opening the terminal and entering the command line. You can add the parameter -i https://pypi.tuna.tsinghua.edu.cn/simple while using … Read more

Compile OpenCV in Linux and Generate opencv_java.so File

Compile OpenCV in Linux and Generate opencv_java.so File

1. Introduction In a Java project using OpenCV, in addition to needing to introduce the relevant POM dependencies, you also need to load the library files: * On Windows, it is opencv_java451.dll * On Linux, it is opencv_java451.so This article mainly introduces how to compile OpenCV to obtain the relevant library files; 2. Environment Description … Read more

Gesture Recognition with Raspberry Pi OpenCV to Control LED and Buzzer

Gesture Recognition with Raspberry Pi OpenCV to Control LED and Buzzer

0. Introduction Materials: Raspberry Pi, Camera, Two SG90 Servos, PCA9685 Expansion Board, LED Light, Buzzer Module 1. Introduction to Raspberry Pi Pins Raspberry Pi Pinout Table There are three definitions: Wiring Pi encoding, BCM encoding, and BOARD physical pin encoding. 1.1 Pin Setup First, enter the following command in the terminal: sudo raspi-config Go to … Read more