Skip to main content

All Questions

Tagged with
-1 votes
0 answers
24 views

Find the best convergence point of multiple particules trajectories? [closed]

In my project, I would like to find the best convergence point of trajectories of tracked points (done with cv2.calcOpticalFlowPyrLK...). I know all the points of each trajectory. My goal is to find ...
zarg404's user avatar
  • 318
1 vote
3 answers
112 views

What does '[' after an argument in a call function signify in Python?

I have been going through the opencv wiki when I came across the resize function defined as: dst = resize( src, dsize[, dst[, fx[, fy[, interpolation]]]] ) I am unable to understand what the [ after ...
Anjishnu's user avatar
0 votes
0 answers
250 views

No module named 'cmake' (Jupyter notebook cmake, dlib import)

I'm doing face detection using a real-time camera, but I keep getting stuck in dlib install. The usage environment is Windows and jupyter notebook. **!pip install dlib !pip install opencv-python** I ...
HiYG's user avatar
  • 1
0 votes
0 answers
111 views

Python OpenCV VideoCapture Color Differs from ffmpeg and Other Media Players

I’m working on video processing in Python and have noticed a slight color difference when using cv2.VideoCapture to read videos compared to other media players. I then attempted to read the video ...
cliffsu's user avatar
  • 71
-1 votes
1 answer
227 views

Python cv2 imwrite() - RGB or BGR

It is confusing how opencv works in python. I understand that cv2.imread() assumes that the image is in BGR. However, when i convert the image from BGR to RGB using cv2.cvtColor(image, cv2....
robo1996's user avatar
0 votes
0 answers
72 views

DJI Tello won't follow me

I am trying to use a code for a dji tello drone for face tracking, which I got from https://github.com/Shreyas-dotcom/DJITello_FaceTracking/blob/main/Code%3A%20V2. I had modified it for my needs and ...
Carlos Peguero's user avatar
0 votes
0 answers
38 views

CV2 Python - image merging based on homography matrix - error in mergeing

I am working on a project where I need to merge some (more than 1000) orthophotos. First of all I would like to know what my options are, because I think I haven't found all the solutions. Secondly, I ...
Domkrt's user avatar
  • 85
1 vote
1 answer
71 views

How to apply inversion of pixel position

Goal I'm trying to write a program that maps a region of an image to another region in the same image. for instance, if I have a circular region in an image that I want to map every pixel on the ...
Amanuel Jissa's user avatar
0 votes
1 answer
48 views

How to rotate a section of an image by iteration

Goal I'm trying to rotate a masked section of an image. For instance if I have a mask that is circular with inner radius of 30 and outer radius of 50 then my aim is to rotate the masked image by some ...
Amanuel Jissa's user avatar
0 votes
0 answers
26 views

Image merger showing that cGAN doesn't exist

Merge Image Code: import cv2 import numpy as np from tkinter import Tk, filedialog, Label, Button import tensorflow as tf from tensorflow.keras.models import load_model # preprocessing of image def ...
Shades05's user avatar
0 votes
0 answers
93 views

module 'cv2' has no attribute 'TrackerCSRT_create'

I try to run the following code, but there is an AttributeError. I have tried everything but anything works. If anyone has any idea feel free to tell me. -- import cv2 import time import math p1 = ...
Soph's user avatar
  • 1
0 votes
0 answers
216 views

Opencv VideoCapture() for Raspberry Pi cam working with Python 3.6 but not with Python 3.7

I am writing a little Python script in which I want to use OpenCV to capture images from my Raspberry Pi camera. I am initializing video capturing with the following line. cam=cv2.VideoCapture("...
Gray Fox's user avatar
0 votes
0 answers
29 views

code with cv2 library doesn't work what's wrong?

This code generates an error: import cv2 import face_recognition as fr while 5<6: cap=cv2.VideoCapture(0) ret, frame = cap.read() cv2.imwrite('camera1.jpg', frame) cap.release() ...
Да не знаю я's user avatar
2 votes
0 answers
3k views

FFMPEG RTSP Stream timeout triggered after 30015.187000 ms

I am trying to read several RTSP streams using opencv cv2.VideoCapture(URL). It has FFMPEG backend. Sometimes for few streams it is throwing timeout warning after 30 seconds. [ WARN:[email protected]] global ...
BatCoder's user avatar
0 votes
0 answers
33 views

How to detect lines for match the following from images

I want to detect the lines joining the points and extract the coordinates of the points that are joined by the line. But the code is just considering the all lines as single along with the points. ...
sid s's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
205