Summary of common basic functions of OpenCV

1. Picture loading, displaying and saving cv2.imread(filename, flags): read and load images cv2.imshow(winname, mat): displays a picture cv2.waitKey(): wait for the picture to close cv2.imwrite(filename, img): save the picture 2. Image display window creation and destruction cv2.namedWindow(winname, attribute): create a window cv2.destro ...

Posted by Jeremiah on Sat, 06 Nov 2021 00:13:46 -0700

Image processing: basic operation of image

1. IO operation of image Here we will introduce how to read images, how to display images and how to save images. 1.1 reading images API: cv.imread() Parameters: Image to readFlag of reading mode cv.IMREAD_COLOR: when loading an image in color mode, the transparency of any image will be ignored. This is the default parameter.cv.IMR ...

Posted by djbuddhi on Thu, 04 Nov 2021 22:05:43 -0700

[artificial intelligence project] Fashion Mnist recognition experiment

[artificial intelligence project] Fashion Mnist recognition experiment This paper mainly carries out the recognition experiment of fashion mnist through four methods, mainly including word bag model, hog feature, mlp multilayer perceptron and cnn convolution neural network. Then don't say much, get up!!! Fashion Mnist Fashion MNIST is an im ...

Posted by peter.t on Tue, 02 Nov 2021 04:03:47 -0700

Jetson nano deployment process record: yolov5s+TensorRT+Deepstream detects usb camera

catalogue 0 preparation: 1. Burn system image 1) Download system image 2) Format SD card 3) Write image using Etcher 4) Boot with SD card 2. Increase swap memory 3. View cuda version 4. clone darknet source code and compile   5. Torch and torch vision installation 6. Yolov5 environment construction 7. Tensorrt make & infere ...

Posted by Helaman on Sat, 30 Oct 2021 20:03:44 -0700

Face feature extraction (Dlib + opencv3.4 + Python 3.8)

1, dlib library introduction and related installation 1.1 INTRODUCTION Dlib library is an open source library of machine learning, which contains many algorithms of machine learning. It is very convenient to use. It can directly include header files, and does not depend on other libraries (with its own image codec library source code). Dl ...

Posted by Mick33520 on Sat, 30 Oct 2021 04:19:59 -0700

opencv+python to identify pigs

Background: judge whether there is a pig in the vehicle in the video returned by on-board monitoring Solution: do object recognition in the returned video. If there is a pig, frame it and give a representative value day1 2021-10-27 Imagine: object recognition and frame it in the figure 1. Align the sample In the beginning, there was no con ...

Posted by stefan63 on Fri, 29 Oct 2021 20:05:49 -0700

Recognizing QR codes and barcodes with OpenCV and Python

Computer vision expert Adrian roserock recently shared how to write a scanning program that can recognize QR code and bar code in real time with the help of OpenCV and Zbar. Finally, he deployed it on raspberry pie and successfully made a practical bar code & QR code scanning device. Recently, a friend asked me if there are any modul ...

Posted by gullit on Wed, 27 Oct 2021 15:35:59 -0700

OpenCV learning notes 08_ Contrast enhancement

1. Laplace sharpening Laplace transform is an integral transform commonly used in engineering mathematics; Laplace operator is a second-order differential operator in n-dimensional Euclidean space; With isotropy, the first derivative of digital image is: The second derivative is: So the Laplace operator is: The four neighborhood templa ...

Posted by amit.patel on Tue, 26 Oct 2021 01:38:10 -0700

Yolo (project) Yolo v3 image classification

catalogue 1, Read file 2, Neural network initialization   1. Build neural network 2. GPU acceleration 3, Turn on the camera and read the image by frame 4, Input to neural network 5, Obtain neural network output 1. Get the name of each layer 2. Get output layer name 3. Get output layer image (content) 6, Frame object 1. Get all ...

Posted by adamlacombe on Sun, 24 Oct 2021 21:39:29 -0700

Second week of CV transformer

6.2.1 data set introduction The data used in this OCR experiment is based on Task 4.3:Word Recognition in icdar2015 incident scene text. This is a word recognition task. Remove some pictures to simplify the difficulty of this experiment. The data set contains many text areas in natural scene images. The training set in the original data co ...

Posted by ManWithNoName on Sun, 24 Oct 2021 08:41:35 -0700