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

Traceback (most recent call last): File "./Documents/S.py", line 36, in...

I have this error when i run this code: import cv2 cascPath = "/usr/local/lib/python2.7/site-packages/h.xml" eyePath = "/usr/local/lib/python2.7/site-packages/e.xml" smilePath =...

View Article


I am trying to run yolo in opencv using darknet on cpu code works fine but...

code is here you guys can see` import cv2 from darkflow.net.build import TFNet import numpy as np import time option= { 'model':'cfg/yolo.cfg', 'load':'bin/yolov2.weights', 'threshold': 0.13, }...

View Article


Use custom classifier in ERFilter with python

I want to use a custom classifier and use the python opencv API (3.x) for ERFilter. I wonder why the `eval` method is not called, from what I found in the sources, this is the method that classifies...

View Article

No module named 'cv2'

I have install opencv using pip install opencv-python ,it install but when i try to run code error pops up "no module named'cv2'" The code is import cv2 from darkflow.net.build import TFNet import...

View Article

trouble with imdecode: always returns none. Why?

I wrote streaming via UDP in python applying compression with send and rec as below send.py import socket import numpy as np import cv2 as cv import sys addr = ("127.0.0.1", 65534) buf = 512 width =...

View Article


Option: BUILD_opencv_python3 missing from cmake-gui

I've downloaded versions of OpenCV 4.1.2 a few days apart. The earlier version has a cmake-gui option: BUILD_opencv_python3:BOOL=ON It is not present in today's version (2019 nov 04). It's not that...

View Article

late fusion over color and texture descriptors

Any idea on how to do late fusion over color and texture descriptors? I am doing a texture matching project. I want to merge color descriptor (I used calchist()) and texture descriptor (i used LBP)....

View Article

Get video input when device not on uvc input

I am using OpenMV H7 camera as the camera for stereo vision application. The OpenMV camera shows up on /dev/ttyACMx port on the machine as it isn't uvc enabled. Due to this I am unable to capture...

View Article


How to draw contours on squares drawn with pencil (Python)

Code: import cv2 img = cv2.imread('media/multi-rec.jpg') img = cv2.resize(img, (414, 732)) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) edges_high_thresh = cv2.Canny(image=gray, threshold1=60,...

View Article


Any implementation of LineSegmentDetector for python ?

I see that cv2.createLineSegmentDetector implementation has been removed due original code license issues in function, any workarounds that don't include downgrading to an older version ? Thanks a lot!

View Article

Draw a line connecting overhangs (ridges)

I want to connect the overhang (ridge) points of an image to create a separation between left and right. ![image description](/upfiles/15771700491463259.png) ![image...

View Article

GCR and UCR - python Possible

GCR (gray component replacement) and under color removal (UCR) Can we use opencv for the above functions in python

View Article

Syncing multiple cameras with the multiprocessing library

I have 4 usb cameras and I was interested in using VideoCapture.grab to synchronize them. I need 4 processes, one for each camera, to be able to distribute the load between the 4 cores of the Rpi 4B....

View Article


No module named 'cv2' but opencv is installed

Hey Guys, i've installed opencv-python using pip and tried to run a code that uses opencv in Visual Studio Code. I can't run the code, everytime I try to run it, i get this error message:>...

View Article

Difference in output of minAreaRect in python and c++

I am doing text skewness correction and when I wrote the same code in python and c++ the results are different for the box angle Here is the Python version ``` import numpy as np import cv2 as cv def...

View Article


CUDA: Has anyone tried passing GpuMats to other Python CUDA modules?

I am trying to accelerate some image processing that requires tasks not currently available in any one python CUDA module. For example, [`cupy`](https://cupy.chainer.org/) has a lot of `numpy`/`scipy`...

View Article

How to get daytime of each frame when use cv2.VideoCapture("ip camera") ?

![Daytime with red line](/upfiles/1577692876336017.jpg)

View Article


How to use cudacodec + blobFromImage

The problem is that i can't transfer my frame from cv2.cudastream directly to cv2.blobFromImage. Here is a part of my implementation (I skipped many parts of code, 'cause it is not necessary) ... net =...

View Article

How to remove some black parts from image

This is my [frame](https://i.stack.imgur.com/pvWJS.jpg). I would like to remove some black parts. I tried filter those parts with HSV values. But i couldn't it because hsv values are close to each...

View Article

Laplacian Pyramid not matching

Hi, I try to adapt this code [here](https://pysource.com/2018/03/16/image-pyramids-blending-and-reconstruction-opencv-3-4-with-python-3-tutorial-24/) but I get this error, when I try to reconstruct the...

View Article
Browsing all 2088 articles
Browse latest View live