Errors in code execution Gstreamer
When I run my code import cv2 filepath = raw_input("enter the path to the video ") #cap = cv2.VideoCapture(filepath) cap = cv2.VideoCapture('filesrc location-/media/kelly/Files/aaaa.mp4 ! decodebin !...
View ArticleA bug causes crash when class inherit from cv2.KeyPoint
Look this code: import numpy as np import cv2 class T(cv2.KeyPoint): def __init__(self, pt): super().__init__() self.pt = pt def calculate_corners(A): A_gray = cv2.cvtColor(A, cv2.COLOR_BGR2GRAY) pa =...
View ArticleSaving a video from Tello Drone
Hi everyone, totally new with programming and here so bare with me. Currently, I'm using this guide to help me with my current project...
View ArticleI found 2 circles, I want to cut and save each circle into a different...
 [link text](https://textuploader.com/110jd)
View ArticleWhy i get black stripes on crops with feature matching?
Hi all. Im trying to make an featuring match web app for learn opencv, but i actually have problems with the crop. My code do this: - Compare two images - Find feature matchs from one to other - Warp...
View ArticleI want to monitor this python process from openframeworks using C#
Hi, All. I have executed python process like this - $ python3 infer.py And, I want to monitor this python process from openframeworks using C#.net watchdog. When this process killed, Iit must be...
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 ArticleCV2 installed, but Import cv2 on spyder gives an error
Hi, yesterday I tried different approaches to install OpenCV. when I go to the following directory: "C:\Users\Salvo\Anaconda3\Lib\site-packages\cv2" I can find the package is installed. I have windows...
View ArticleCalcHist gives different results on C++ vs Python
I'm loading a Tiff and running calcHist in python and c++, but I can't get the results to match. Code and output attached. Thank you! **Python Implementation:** import numpy as np import cv2 as cv from...
View ArticleColor consistency algorithms python
Hey folks, I'm working on forgery detection (pixel and edge-based Color Estimation) there are some algorithms which work well. 1) gray world 2) max RGB 3) shades of gray 4) first-order Gray edge 5)...
View ArticlePredict trajectory of hand based on 3D coordinates
Hi all, I'm looking into a way to predict the trajectory of a hand that is grabbing towards an object in Python. I already have 3D coordinates of all joints of the hand (I'm using a Charuco board and...
View Articlegetting select timeout on Linux, quirks solution doesn't work
Hello everyone. I'm using opencv to capture frames from a USB camera 24/7 for a face recognition project. I've noticed that I get a select timeout error during the early morning hours, when there is...
View ArticleVideoCapture failing for ~25% of videos from IP Camera
I've had a Python (3.7) app using OpenCV (3.4) for a year or so, working fine. I recently reinstalled Debian Buster, and with it upgraded to OpenCV 4.1. Somewhere in that process I've found that videos...
View ArticleChanging gstreamer pipeline to opencv in python
Trying to change this gstreamer pipline to python for opencv but having a few issues gst-launch-1.0 -v playbin uri=rtsp://admin:password@192.168.1.65:554/Streaming/Channels/400...
View ArticleHow can I get the values of the pixels that are inside a contour?
I'm developing an application that allows the user to load an image, make a selection of a certain region (by drawing a random closed shape) and I want to have the values of the pixels that are inside...
View Articlein here I get error for roi it is 'inconsistent use of tabs and spaces in...
Code: import numpy as np import cv2 face_cascade = cv2.CascadeClassifier('cascades/data/haarcascade_frontalface_alt2.xml') cap = cv2.VideoCapture(0) while(True): ret,frame = cap.read() gray =...
View Article4K VideoCapture very slow on Windows compared to MS Camera App
Hi! I have gotten a Logitech BRIO Webcam, which delivers nice smooth 30 fps of 4k images in the native Windows Camera App. Using OpenCV 4.1.0 in Python, this seems impossible. The stream is very slow...
View ArticleRead image to an already allocated Mat
[modules/imgcodecs/src/loadsave.cpp](https://github.com/opencv/opencv/blob/f663e8f903645a3dd66f6833f63717b86e861d77/modules/imgcodecs/src/loadsave.cpp#L400) defines a function `imread_` that allows the...
View Article[Python] Real time image stabilization with Optical Flow
Hi! I'm new here on this forum, and would love some help with a project I'm working on! I'm trying to make a small image stabilization programme in Python, but I can't get it to work the way I want....
View ArticleI am getting an error "recognizer.train(x_train, np.array(y_labels))...
program : import os from PIL import Image import numpy as np import cv2 import pickle BASE_DIR=os.path.dirname(os.path.abspath(__file__)) image_dir=os.path.join(BASE_DIR,"photos")...
View Article