Saving Clusters in OpenCV
I'm using OpenCV with Python 3.6. Suppose I have this [this black-white binary image](https://i.stack.imgur.com/j2paS.png), which shows 10 white blobs on a black background. Is it possible to save each...
View ArticleWhy do we get different predictions when using java and python(dnn)?
When using the python language at the output of a neural network, I get an array consisting of numbers from 0 to 5. For example: ...[3 3 3 ... 1 1 1] [3 3 3 ... 1 1 1] [3 3 3 ... 1 1 1]... When using...
View ArticleUsing ORB image recognition
Hello, I have to create a traffic sign detector (in python)which detect,distinguish three sort pf panels (turn right,left ,stop) and show the distance between the vehicle and the sign. I don't know how...
View ArticleHow can i set mouse callbacks to different windows with python
I am working on a project that will require me to have two OpenCV windows,i want to set callbacks for the different windows,how do i go about it using python
View ArticleAcne Detection OpenCV
I'm working on an acne detection problem. So far I have applied a canny edge detector and want to find the five pimples on the cheek. I've been trying to use a HoughCircle detector but I can't seem to...
View ArticleTypeError: Incorrect type of self(must be 'face_faceRecognizer' or its...
Hi, I am trying to execute face recognition code(opencv 3.4 and python2.7), i get the following error : TypeError: Incorrect type of self(must be 'face_faceRecognizer' or its derivative. the code and...
View ArticleVideo Codecs and Compression Rates Available in ffmpeg320_64.dll
I'm using OpenCV 3.3 in a Python 3.6 environment on a 64-bit Windows 10 platform. I want to save videos at a fairly high compression rate, but can't seem to find the right codec. The ability to choose...
View Articlesift keypoint into json object
I am trying to send a server request with the image keypoints and descriptor as a json object... here is my code.. import cv2 import requests import json imgDetail = {'keypoints': '', 'descriptor': ''}...
View Articlei want to get the BGR value of a image on click in python
I want to be able to get the color value(bgr) of an image whenever i click on it,my callback works but i am not getting the desired result,instead i get a list not related to what i want.Here is my...
View ArticleReading in images, typeError: mat is not numpy nor scalar
So as part of a larger project [here](https://github.com/AcrimoniousMirth/Project-Adam-3D-SCANNER-CODE) I've got this function meant to iterate through a directory of images and then perform some...
View ArticleTypeError: Scalar value for argument 'color' is not numeric
While drawing a filled rectangle,i tried using a dynamic color set by another function,but i get the error "TypeError: Scalar value for argument 'color' is not numeric" what could be the problem. Here...
View ArticleTypeError: Scalar value for argument 'color' is not numeric
While drawing a filled rectangle,i tried using a dynamic color set by another function,but i get the error "TypeError: Scalar value for argument 'color' is not numeric" what could be the problem. Here...
View Articlecv2 module not found python3 odroid
I have a python 3 script which uses OpenCV which isn't working on my Odroid. The error that I'm getting is: `Import error: No module named 'cv2'.` But when I run the program in python 2 it seems to...
View ArticlevideoCapture() cannot open specific png images (python/windows)
I'm using Opencv 3.4.0 with python 2.7 cv2.VideoCapture() usually works for images but I've had a few instances where it could not open specific png images, while cv2.imread() will open those files...
View ArticleHow To Create ROI In Opencv Using Python On A Video?
https://www.youtube.com/watch?v=mUSwD7q3Mr8 I Want To Make Project Something like This So I Want To Know How To Create ROI Like In That Video.If You Know How to Do Kindly Guide Me and Also Kindly Share...
View ArticleHow to increase the quality of sampled images ? and does it affect the...
hello, I want to create a object detector .xml file ,for which i gathered some positive images , when i am creating samples -w 20 -h 20 , and when i checked the .vec file the quality of the samples is...
View ArticleIs there a limit to frames per second for a composite usb video capture device?
I ran a code which seems to have increased my frame rates from about 25fps to about 60fps, but I am not sure if I am getting true 60FPS. I feel I may be getting 60fps per second, but many of those...
View ArticleError while running code that uses Haar Classifier xml: "Incorrect type of...
I created my own Haar Cascade Classifier for detecting cows. The code works perfectly fine for the available OpenCv xml files but shows the following error when I run it using the xml file that I...
View ArticleIn Python, is there a method or operator to determine if a frame is empty or...
For example, I would like to finish this code: import cv2 import numpy as np cap = cv2.VideoCapture(0) while True: ret, frame = cap.read() if # frame is empty or all zeros #: print("Empty Frame")...
View ArticleHow to use a dpm cascade model xml file in a Python script?
I was wondering if I can use the same code used to run a Haar Cascade xml file , to run the dpm cascade model xml file. My code looks like this : > import numpy as np >import cv2>>>...
View Article