Questions tagged as 'opencv'

0
answers

OpenCV Issues - Eyes Cascade and Face Cascade [closed]

Hello! All right? I am doing a program in C ++ with OpenCV and when running the error appears below This is the error that is occurring without try-catch Thisistheerrorthatisoccurringwithtry-catch intdetectEye(Mat&im,Mat&tpl,Rect&...
asked by 10.09.2015 / 18:44
0
answers

Apply NDVI to images with OpenCV and Java [closed]

Hello, good afternoon. I need help with image processing using the OpenCV library. Basically, I need to take a satellite image and apply the NDVI (vegetation index by normalized difference). Its calculation is simple: NDVI = (NIR - RED) / (...
asked by 17.04.2015 / 20:41
1
answer

error: (-215: Assertion failed)! empty () in function 'detectMultiScale'

I'm totally lazy in linux and I'm trying to use opencv version 3.4.2 with python 3.5.2 in linux mint to run an example facial detection code. Below the code: import numpy as np import cv2 classificador = cv2.CascadeClassifier('\home\linux\Doc...
asked by 29.07.2018 / 03:43
1
answer

Kanade Optical Flow Algorithm Lucas Tomasi (KLT) in Python [closed]

Hello. I searched all over the internet and could not find it. Does anyone have an alternative to extract features in images with the Kanade Lucas Tomasi (KLT) algorithm in python?     
asked by 02.12.2018 / 14:18
1
answer

I can not perform color conversion after rotating image

I'm developing an algorithm that rotates images by 10 degrees. For this, I am identifying the center of my region of interest, not the center of the image, because it has region of interest that are close to the songs. With this I can rotate eac...
asked by 07.12.2018 / 15:42
1
answer

Syntax error in if and elif systems

while True: ret,img=cam.read(); gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) faces=faceDetect.detectMultiScale(gray,1.3,5); for (x,y,w,h) in faces: cv2.rectangle(img,(x,y),(x+w,y+h),(0,0,255),2) id, conf= rec.predict(gray[y:y+h,x:x+w]) i...
asked by 01.04.2018 / 22:25
1
answer

Error Open.CV save file

Good morning, I have the following code: var faceImage = new Image<Gray, byte>(new Bitmap(bm)); imagensFace[i] = faceImage.Resize(100, 100, Inter.Cubic); faceLabels[i] = todasFaces[i].ID; }...
asked by 05.11.2017 / 14:08
1
answer

Segment image and highlight object border using python

I'm testing some algorithms to improve the image quality my hardware is getting. I have a vane in the image and would like to highlight the object contained in it. Iusedthecodebelowtodotheequalizationoftheimage,butIdidnotsucceed.importcv2imp...
asked by 08.06.2017 / 21:08
1
answer

Figure Area Calculation

Maybe I already have something on the subject, but I did not find it. I am new to the area and would like help in developing a C ++ algorithm for detecting the area of a predetermined color in a figure. That is, the user inserts only the image i...
asked by 17.04.2016 / 04:08
1
answer

How to plot a graph when closing a computer view script on Raspberry pi?

I have a code using opencv Raspberry Pi and it is executing a loop pattern recognition, in the end I close the script using "Ctrl + X", without any problem! I want to by "stop" the graphics processing, perform a function to plot the recognition...
asked by 31.05.2014 / 00:15