Python opencv: reading, modifying and displaying pictures

opencv+Python is used to learn the basic operation of image processing. Now it is sorted out as follows, as learning notes and forgetting records. 1. Picture loading You can read the picture from the local path and get its size: import cv2 img = cv2.imread('Tree.jpg') shape = img.shape The results are as follows: 2. Pic ...

Posted by spider0176 on Mon, 06 Jan 2020 00:49:18 -0800

Tensorbboard write picture

The default channel for opencv to read pictures is bgr, which is not a common rgb. A conversion is needed to display the pictures normally. Otherwise, there will be color confusion!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!   Write picture seems to be asynchronous operation You need to wait for a while to write in. If you don't set the wait, you wil ...

Posted by Wolfsoap on Sun, 05 Jan 2020 18:14:16 -0800

opencv replaces solid background with transparent background

Recently, in the development of matting project, a colleague wants to remove a color. It's very easy to use OpenCV. I use opencv3, which has foreach to use The pictures to be cut are as follows: He wants to remove the black (0,0,0) background, so the code is as follows: #include <opencv2/core/core.hpp> #include <opencv2/highgui/h ...

Posted by pod2oo5 on Sat, 04 Jan 2020 22:58:11 -0800

Ubuntu 18.04 install artificial intelligence image processing tool OpenCV

Picture.png python version installation $ sudo pip install opencv-python $ sudo pip install opencv-contrib-python C++ installation Install OpenCV dependency $ sudo apt-get update $ sudo apt-get upgrade # development tool $ sudo apt-get install build-essential cmake unzip pkg-config # Graphics library $ sudo apt-get instal ...

Posted by xenophobia on Wed, 01 Jan 2020 17:00:48 -0800

Opencv development note 6: pixel reading and writing (2) comparison of reading and writing efficiency

1, How to calculate efficiency To calculate the efficiency of a program, you need to get the time it takes for the program to run to its current location Two simple timing functions getTickCount() and getTickFrequency() are provided in opencv     double t = (double)getTickCount();     // do something ...     t = ((double)get ...

Posted by lmaster on Sat, 21 Dec 2019 12:36:25 -0800

Kinect2 runs RGB-D interface under orb slam2 through ROS

Written in front In the last article, I recorded the driver of Kinect2 installed in Ubuntu and the bridge running in ROS. Now I can't wait to run the RGB-D interface under ORB-SLAM2. Modify ORB-SLAM2 After installing the Kinect2 driver, execute: roslaunch kinect_bridge kinect_bridge.launch Then execute the following comm ...

Posted by potatoCode on Tue, 17 Dec 2019 14:05:40 -0800

[Xuefeng magnetic needle stone blog] computer vision opcencv tool deep learning fast practice 1 face recognition

Using the pre trained deep learning face detector model provided by OpenCV, face recognition can be carried out quickly and accurately. In August 2017, OpenCV 3.3 was officially released, bringing a highly improved "DNN deep neural networks" module. The module supports many deep learning frameworks, including Caffe, TensorFlow and Tor ...

Posted by naveenbj on Fri, 06 Dec 2019 20:59:43 -0800

Computer vision opcencv tool deep learning quick practice 2 opencv quick start

opencv basic operation # -*- coding: utf-8 -*- # Author: xurongzhong#126.com wechat:pythontesting qq:37391319 # Technical support nail group: 21745728 (pythontesting invitation can be added) # qq group: 144081101 591302926 567351477 # CreateDate: 2018-11-17 import imutils import cv2 # Read picture information image = cv2.imre ...

Posted by phpete2 on Fri, 06 Dec 2019 13:35:25 -0800

Hongsoft face recognition 3.0 - Introduction to image data structure (C + +)

Since the 2.0 SDK was opened by hongsoft, our company has used the hongsoft SDK in the face recognition access control application due to the characteristics of free and offline use. The recognition effect is good, so we pay more attention to the official dynamics of the hongsoft SDK. Recently, ArcFace 3.0 SDK version was launched, which really ...

Posted by heinrich on Tue, 03 Dec 2019 00:37:15 -0800

JNI layer Bitmap to OpenCV Mat

JNI layer Bitmap to OpenCV Mat Most of the image types provided by Java are Bitmap types (ARGB? 8888 or RGB? 565) If you need to use OpenCV for processing, you need to convert Bitmap to cv::Mat. Suppose the input picture is: Job object obj? Bitmap The output picture is: Job object obj ﹣ bitmapout #include <android/bitmap. ...

Posted by xdentan on Sat, 30 Nov 2019 19:37:59 -0800