Questions tagged [opencv3.0]

OpenCV (Open Source Computer Vision) is a library for real time computer vision. (This tag is for questions about OpenCV 3.0. Use [opencv] for general questions.)

OpenCV is an open source computer vision library

Version 3.0 released in June 2015. Its documentation can be found here.

For more information, see .

2111 questions
0
votes
1 answer

(-215:Assertion failed) 1 <= blobs.size() && blobs.size() <= 2

I'm trying to import my own pre-trained Caffe Googlenet model using OpenCV v.3.4.3, where i run a Caffe test after training using the model deploy file and everything was working fine. However when feeding the OpenCv net (after loading it) with…
peter bence
  • 782
  • 3
  • 14
  • 34
0
votes
2 answers

'bool' object not iterable

I am working on python3, opencv 3.4 and using Microsoft Azure's FaceAPI function 'CF.face.detect()' As far as I know, 'for loop' needs iterable object to run on like list but simple boolean is not iterable. Though 'res1' is a list I get this…
Afshan Anwarali
  • 337
  • 1
  • 3
  • 12
0
votes
1 answer

TypeError: src2 is not a numpy array, neither a scalar

I am trying to solve a problem where I have to compare one image with a list of images for the similarity. for fn in image_path_list: difference = cv2.subtract(image1, fn) result = not np.any(difference) #if difference is all zeros it will return…
chetan parmar
  • 73
  • 1
  • 7
0
votes
0 answers

OpenCV VideoCapture works slowly

I am developing an application in python(ver-2.7) for real-time face detection using opencv3. Currently i am able to access the video stream using VideoCapture(1) but the live-video loads very slowly. import cv2 import time …
0
votes
1 answer

Opencv identify difference between similar object

I am working on a project to figure out the difference between two objects and tag them with the proper model code. I need help with a suggestion on how can we tackle such problem with image processing using OpenCV, following are the images Till now…
Dhiraj kadam
  • 377
  • 3
  • 15
0
votes
1 answer

How to save a encoded image using Pickle

What I am doing here is encoding a image and then adding this into a list with the path of the original image in the database variable like this database.append[path, encoding] I then want to save this database variable into a pickle for use in…
MNM
  • 2,673
  • 6
  • 38
  • 73
0
votes
1 answer

Compute mean of pixel values where another image pixels meet condition

After segmentation, I have labels and gray images. I would like to compute average intensity for each label, i.e. mean of intensity values where label pixels have a particular value. Something like this: // both are 1-channel cv::Mat gray, labels //…
eudoxos
  • 18,545
  • 10
  • 61
  • 110
0
votes
0 answers

C++ Open File Dialog doesn't show up with OpenCv library

I build windows form C++ which it contains one button to open the file then show the file text that I choose on the text box but the issue is the file dialog box not shown no idea why and am sure nothing wrong on my code. Is something wrong in my…
memi
  • 13
  • 8
0
votes
2 answers

Installing OpenCV 3.4.2 on Ubuntu 18.04

I'm trying to install a complete OpenCV 3.4.2 on ubuntu 18.04, within a conda environment named "tf". This is my cmake command : $ source activate tf $ cd ~/Downloads/opencv-3.4.2/build/ $ cmake -D CMAKE_BUILD_TYPE = RELEASE \ -D…
WillGFR
  • 75
  • 2
  • 8
0
votes
0 answers

Image processing on opencv keypoints

I'm working on detection of blobs and doing image processing (like histogram analysis) on them. Although I detected the blobs using OpenCV SimpleBlobDetector_create(params), Now I want to perform image processing/analysis on each and every blob…
Rishi
  • 13
  • 3
0
votes
1 answer

What are the possible ways to play RTSP live stream on Web?

What are the possible ways we can play a live stream (RTSP) on the web browser, without using any video player plugin like VLC or VXG players? I have a web application written with Laravel framework. The application is to play live stream from IP…
Sem
  • 1,237
  • 16
  • 17
0
votes
0 answers

open-cv won't capture frames from web cam on Jupyter Notebook on FloydHub

I am testing a simple open-cv example on a project hosted on FloydHub. I have installed opencv using 'pip install opencv-python'. I am trying to capture the video from web cam this way: import cv2 cap = cv2.VideoCapture(1) while(True): _, frame =…
user3602426
0
votes
0 answers

How can I get more than 30FPS from a supported webcam in opencv?

I'm using a webcam for Aruco detection which suppose to give 90FPS at 640X480 (MJPEG) or less using YUY2 capture. In OpenCV when I'm getting up to 30 fps no matter what. I made sure the resolution is set to 640X480 and before that defined the FOURCC…
Alophind
  • 842
  • 2
  • 12
  • 27
0
votes
1 answer

Template matching using Emgu CV - not working for multiple templates

i am working on Emgu CV and i am not getting the result for multiple templates within an image, please check the below code and let me know where i am making a mistake. i believe i have made a mistake at while loop- kindly correct me what i need to…
srima
  • 21
  • 6
0
votes
0 answers

Fix inconsistent result between windows and linux for detectAndCompute in opencv python + ImageMagick

I have been fighting with this for a while without any luck. I am converting a pdf using wand library (ImageMagick) in python and calculating the features using open cv2 for later on some other image matching. The is the following from wand.image…
hlagos
  • 7,690
  • 3
  • 23
  • 41