How can I load multiple images and add bitwise operation and save the images...
I am trying to load 600 images from computer and apply bitwise operation and save the images in computer
View ArticleVideoWriter with gstreamer pipeline which writes frames in I420 format
I have frames in YUV_I420 format, and want to write correct pipeline for VideoWriter which process it, and writes to file. Frame shape in BGR format: width=1280, height=720. YUV_I420 frame shape:...
View ArticleAfter zooming in image, how to get standard mouse cursor back?
I have an application where I draw lots of rectangles on images in OpenCv 4 using Python. Some of the images are very large, so it is helpful to zoom in on them before selecting regions to crop. The...
View ArticleOpenCV 4.1 + Python 3 + CUDA
I am going to rewrite feature matching + homography code using CUDA. I know that CUDA is implemented in OpenCV 4.1 and I have already used some of the functions of CUDA, but I'm a beginner, and the...
View ArticleI am getting bug while performing open cv based dnn face detection
This is the error am getting I tried converting image to grayscale but it didnt worked please help its very important to me...
View ArticleSame Code works with LinearSVM but not RBF
When I use **trainAuto** method of SVM, I get the value 2 for `getKernelType()` but when I use the `RBF` in my code, it trains my file and outputs the XML file. svm = cv2.ml.SVM_create()...
View Articlepython ret value vastly different from reprojection error
In this question, I am referring to the documentation example given here: https://docs.opencv.org/4.1.0/dc/dbb/tutorial_py_calibration.html To give a short summary: It's an example on how to calibrate...
View ArticleWhat is wrong in this Opencv Face Recognition code?
import cv2 import numpy as np . face_cascade = cv2.CascadeClassifier('Desktop\haarcascade_frontalface_default.xml') eye_cascade = cv2.CascadeClassifier('Desktop\haarcascade_eye.xml') cap =...
View ArticleSegmentation fault while using createTrackBar in OpenCV-Python
I am using OpenCV 4.1.1. When I try to run the trackbar tutorial code, I get the segmentation fault (core dumped) error. It seems that the crash occurs when the trackbar is created in an existing...
View ArticleHow to calculate Optical Flow magnitude?
I'm trying to see how big different two given video frames are. My goal is to calculate a single value showing how fast objects inside those frames are moving. I can calculate Optical Flow matrix...
View Articlewhy does my image appear cropped when displayed using cv2.imgshow() using python
import numpy as np import cv2 img=cv2.imread("vn.jpeg",0) cv2.imshow('image',img) cv2.waitKey(0)
View Articlein here I get error for roi it is 'inconsistent use of tabs and spaces in...
Code: import numpy as np import cv2 face_cascade = cv2.CascadeClassifier('cascades/data/haarcascade_frontalface_alt2.xml') cap = cv2.VideoCapture(0) while(True): ret,frame = cap.read() gray =...
View ArticleJupyter kernel crashes after running "train" for decision tree classifier
I tried to perform training on my data and on toy example too. Command prompt doesnt show anything but the message about restarting. segm_features = np.array([[1,0], [1,1], [0,1]]) labels =...
View ArticleOpenCV 4.1.0 not changing brightness
I made a program that can change the brightness/contrast of the camera by pressing the arrow keys, while showing a live feed of what the camera sees. Since I only used one camera, I initiated it using...
View ArticleHow to access cameras using OpenCV with Python
Open Computer Vision (OpenCV) is an open source BSD licensed image processing bundle that contains functions for all type of image processing functionality from basic image decoding, enhancement, color...
View ArticleOpenCV for Python is missing functions
I am missing some functions like solvePnPGeneric() in my cv2 module for Python. I tried those setups: - Official Python 3.7.4, opencv-contrib-python 4.1.0 via pip - Anaconda Python 3.7.3, opencv 4.1.1...
View ArticleHow to use an opencv function in a keras layer? Python
I would like to know how I can use a OpenCV function like Akaze inside of a Keras layer So the model would look like this input output1 = model_a(input) opencv_output = opencv_layer(input)...
View ArticlePython Bindings for OpenCV 4.1.1 reports DLL not found on Windows 10
Hello, I compiled OpenCV from source following roughly the tutorial here: https://docs.opencv.org/master/d3/d52/tutorial_windows_install.html using Visual Studio 19 with PYTHON 3.7 (No Python 2). I...
View ArticleHow to read video from Thorlabs DCC1545M camera using opencv python
I want to perform some simple video processing on camera feed using opencv(4.1.0) python(3.7) programming
View ArticleOpenCV support across languages, particularly Javascript
OpenCV has been implemented in many languages, I wonder if there is a breakdown by implemented features across languages. I am particularly interested in Javascript support and how the support for JS...
View Article