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

Unable to load image into window using cv2.Imshow

I have been attempting to produce an OCR tool following this tutorial on youtube, and using the following script: import os import sys import cv2 import numpy as np input_f = 'letter.data' img_resize_factor = 12 start, end = 6, -1 height, width =…
TisButaScratch
  • 163
  • 1
  • 5
  • 17
0
votes
1 answer

NSMutableArray of NSNumber is nil after adding parsed float

I am trying to parse an array of Vectors (from C++'s std::vector) to an NSMutableArray of NSNumber. However, the Vector that I add to the NSNumber array is always nil, even after adding a NSNumber (parsed from std::vector) In this project, I'm…
Richard Sun
  • 69
  • 10
0
votes
0 answers

can I create a python gui and code at the same time?

i am trying to build a GUI using Python but i don't know if i can use OpenCV. is it possible to create the GUI using only python and at the same time program image processing using OpenCV?
0
votes
0 answers

how to read sequence of .yml file and concatenate them in a single .yml file

I'm trying to read sequence of YAML files and reshape them in a single row then trying to concatenate in a single YAML file. Here is my snap of code: for (int i = 1; i <= 6; i++ ) { sprintf_s(filename,…
a.kushwaha
  • 11
  • 2
0
votes
1 answer

Get difference between 2 images and normalise the result

I want to get the difference between the two images and normalise the resulting array and scaled to fit [0,255]. I was trying the following: import cv2 img1 = cv2.imread("lko.png") img2 = cv2.imread("jum.png") cv2.subtract(img1, img2) But I am…
0
votes
0 answers

Problems with building OpenCv with Xcode. Cannot find opencv2/opencv.hpp file

I have installed OpenCv with Homebrew on my MacOs. I have added libopencv 4.0.1.dylib in Xcode. When I try to build, Xcode cannot find the files. Any suggestions? I changed my path but still have problems. Main code: #include #include…
Shobi
  • 43
  • 1
  • 7
0
votes
1 answer

opencv face recognition false positives unknown category

I have trained FisherFaces algorithm with about 50 images for two individuals. It does recognize them accurately, but it also recognizes others as them. I've tried to use the threshold value as an indicator but unfortenately I get also accurate…
serj
  • 508
  • 4
  • 20
0
votes
1 answer

Putting my pictures over black ground not working OpenCV

So this is what I have now: As you can see, the neural style transfer thing is only going over the area the detection box is detecting. I am trying to put the transformed cool picture (which will always be less than 1200 x 900 because the…
Acy
  • 589
  • 2
  • 9
  • 25
0
votes
1 answer

Why applying the same channel thrice results in a black and white image?

I was experimenting with color swapping using opencv. In the following snippet, the results are pretty close to what I expect. import cv2 color = cv2.imread("lohri.jpg") b,g,r = cv2.split(color) swap = cv2.imwrite("swap.jpg",…
Suhail Gupta
  • 22,386
  • 64
  • 200
  • 328
0
votes
0 answers

how to code one vs rest multi class SVM for action recognition project

I'm new to SVM. I want to use Multiclass svm for classification in my action recognition project. My data set have 15 class like running jogging walking biking etc. I understand binary SVM and seen lot of examples. I'm getting confusion in one vs…
a.kushwaha
  • 11
  • 2
0
votes
2 answers

Overlaying an image over another image both with transparent background using opencv

I'm trying to place an image on top of another image using opencv.Both images have transparent background. Here's the code I'm trying s_img = cv2.imread("obama2.png", -1) l_img = cv2.imread('obama.png',-1) x_offset = 162 y_offset = 69 y1, y2 =…
Saikiran
  • 756
  • 2
  • 11
  • 29
0
votes
1 answer

How to find a file/ data from a given data set in python- opencv image processing project?

I have a data set of images in an image processing project. I want to input an image and scan through the data set to recognize the given image. What module/ library/ approach( eg: ML) should I use to identify my image in my python- opencv code?
0
votes
0 answers

Getting Rects from 2D Array of indices in opencv

I have a situation where I have a 2D List of indices that each row represent a line. For example the indices are example of the following: [[157, 157], [157, 158], [157, 159], [161, 161], [161, 162], [190, 190], [190, 191], [197, 197], [197, 198],…
andre
  • 731
  • 2
  • 13
  • 27
0
votes
1 answer

Kivy image does not reload and app stops responding

I am trying to build an application with Python using Kivy. This is what I am trying to achieve: Use input from a video or camera to detect images using a detector that (to simplify) finds all circles in an image, and highlights them somehow,…
raggot
  • 992
  • 15
  • 38
0
votes
1 answer

OpenCV: How to save images using cv::imwrite without overwriting them

I have a small application that saves images using cv::imwrite. The problem that I have is that I have been trying to find a way to store cropped images after matching them. I successfully extract the cropped image but it is overwritten in the same…
Emanuele
  • 2,194
  • 6
  • 32
  • 71