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 ArticleI 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 ArticleUse 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 ArticleNo 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 Articletrouble 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 ArticleOption: 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 Articlelate 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 ArticleGet 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 ArticleHow 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 ArticleAny 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 ArticleDraw a line connecting overhangs (ridges)
I want to connect the overhang (ridge) points of an image to create a separation between left and right.   has a lot of `numpy`/`scipy`...
View ArticleHow to get daytime of each frame when use cv2.VideoCapture("ip camera") ?

View ArticleHow 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 ArticleHow 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 ArticleLaplacian 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