Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Browsing all 2088 articles
Browse latest View live
↧

Opencv : How to remove rectangle black box without removing any other characters

I would like to remove a rectangle black box from the below image. [![enter image description here][1]][1] I do some preprocessing operation to keep the upper top of the image only. My problem with...

View Article


Python: Merge overlapping bounding boxes, replace by surrounding bounding box

I'm working on comparing bounding boxes and combining boxes that overlap too much. I got it working with this code I found, basically a non-max-suppression: def non_max_suppression_fast(boxes,...

View Article


removing noise using connected components

Hi all, I have an image like this:![image description](/upfiles/1530066287689211.png) Its an HSV thresholded output of a BGR image. I am trying to crop the roots alone. I have been able to...

View Article

"Const kernel input not found" error when trying to load faster_rcnn models...

System information (version) OpenCV => 3.4.1 Operating System / Platform => Windows 64 Bit Compiler => Visual Studio 15 2017 Win64 Detailed description I have been working with the tensorflow...

View Article

How to trim a video based on a condition

I have a video from drone. I want to delete the part of video that has takeoff included. I want to retain the part where the drone is flying. Can someone suggest a method in OpenCV to achieve this ?

View Article


remove white reflection from image

Hi there, I am getting these pictures from my camera. Ususally there are white reflections on the pictures during the day. Is there any option how to remove reflections from the image "on the fly"...

View Article

How can I stream the output of my OpenCV python script (running on a RaspPi)...

Hi I have a Raspberry Pi running an OpenCV script I wrote in python that recognizes and highlights colored round objects. I can easily view the raw video stream of the Pi Camera using VLC player, but...

View Article

Foreground segmentation when background and subject have nearly identical colour

I have an image that has background and foreground with nearly identical color. For example see [the link ](https://i.stack.imgur.com/BKT51.png). I have tried grabcut and graphcut to segment but with...

View Article


Python - Failure to import cv2: DLL load failed

I refered to this [link](http://answers.opencv.org/question/69587/failure-to-import-cv2-in-python-dll-load-failed/). But it did not help me. I installed python 2.7 and opencv 3.2.0. cv2.pyd exist in...

View Article


Decorrelation stretch in Python

Hello, I am new to openCV, I have been using Matlab for 3-4 years. I wanted to know if I can find a decorrelation stretching operation similar to Matlab in OpenCV in python? Thank you

View Article

OpenCV_annotation tool

Hi I am trying to use opencv annotation tool for small pieces of high-resolution satellite images. each of my positive images is 14*14 or even smaller. these images are too small to mark the object...

View Article

Deploying Flask based OpenCV application on Heroku PaaS

Hi, I have a simple Face Detection application developed using Flask and OpenCV, and is working fine on my local machine (laptop) because it is using my laptop's camera for capturing images. When I...

View Article

Segmenting an image with similar background color.

I have an image with similar background color and foregorund color. I want to segment the footprint part and leave out background. It would be very helpful if someone provided me with a code to...

View Article


Python (-211) The total matrix size does not fit to "size_t" type in function...

Hi I am tring to detect something on a tif image. my code is image = cv2.imread('.tif',0) faceRect = cascade.detectMultiScale(image, scaleFactor=1.1, minNeighbors=1, minSize=(1,1)) But I got this...

View Article

Open USB webcam by name instead Id in Python Windows 10

Hi, I need to open specific camera, logitech c920, and I have more than one camera connected to my laptop. Sometimes the c920 takes Id 0 and sometimes Id 1, and I need automatically open the correct...

View Article


I am using openCV python for face recognition but while comparing the saved...

The execution of if-elif-else block is not working properly.

View Article

OpenCV face recognition.

I did the coding for face recognition using openCV but for all user id its showing one name "Ahmed" here is the code can u help me out for correction. ![image description](/upfiles/15185236303214538.png)

View Article


3.4.2 cannot open and create videos, but with 3.4.1 I can

I am using ArchLinux. My system just got updated to OpenCV 3.4.2-1. When I try to read or create a video, it outputs this error message: python:15977): GStreamer-CRITICAL **: 18:19:37.484:...

View Article

How to convert CV_8UC4 to CV_32FC1 in python?

What is the python equivalent of cv::Mat depthMap = cv::Mat(depthAs8C4.rows, depthAs8C4.cols, CV_32FC1, depthAs8C4.data).clone(); where depthAs8C4 is of type CV_8UC4

View Article

Import SVM in cv2 [python]

Trying to simply run this project: https://github.com/mjk188/ASL-Translator Anyone know how to set up SVM stuff inside cv2? I installed openCV 3.1.0 via these instructions:...

View Article
Browsing all 2088 articles
Browse latest View live