Questions tagged [opencv]
OpenCV (Open Source Computer Vision) is a library for real time computer vision. When using this tag, please add a language specific tag (python, c++, ...), if relevant.
opencv
73,461
questions
0
votes
0
answers
12
views
How to not scale/normalize using cv2
Im going to analyze the pixel intensity in tiff images, but when I am plotting the intensity I notice that the code has normalized the intensity to 16bit, so the highest value from the image is always ...
0
votes
0
answers
14
views
Image Rotation using OpenCV
I am trying to create a function using OpenCV that overlays an image onto a defined polygon (using 4 points) in another image. How can I handle the rotation of the image so that the overlay looks ...
0
votes
0
answers
18
views
How doi get opencv to work? The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support
I can't use the opencv command like cv2.imshow or cv2.imread to display image, and its giving me the error below.
error Traceback (most recent call last)
Cell In[13]...
0
votes
0
answers
26
views
How to find the width of a river in a LandSat-8 image using rasterio, in a given interval? eg:10m, 20m [closed]
I am working on a project where I have to find width of a river in a given interval.
# %% [markdown]
# ### Import required libraries
# %%
import rasterio
from skimage import filters
import matplotlib....
-2
votes
0
answers
27
views
How do I compare a template sketch to an image of a manufactured part? [closed]
I have a template image that is used as the baseline to determine where parts are soldered onto a circuit board. I cannot guarantee the images to be the same size or scale. The baseline image is ...
0
votes
1
answer
43
views
How do i modify image in python to fit face_recognition parameters (8bit gray or RGB image)
I'm trying to modify my image so that it fits the supported image type.
I've tried using cv2 and Pillow to modify the dtype however it returns the error "RuntimeError: Unsupported image type, ...
0
votes
0
answers
29
views
Parsing Error with YOLOv3 and OpenCV 4.10.0 when reading yolov3.cfg
I'm encountering a parsing error when attempting to load a YOLOv3 model using OpenCV 4.10.0 in Python. Specifically, the error occurs while trying to read the configuration file yolov3.cfg. Despite ...
-2
votes
1
answer
52
views
remove splitting edges from image while keeping holes [closed]
Though there are lots of similar questions out there which mostly are answered perfectly, either they do not match my need or I can't tune them to fit my problem.
I have a lot of images which show ...
0
votes
0
answers
38
views
not authorized to capture video on Mac OS
I had been getting this message since the last few days when i run this code
img = cv2.VideoCapture(0)
while(True):
re, frame = img.read()
print(frame)
cv2.release()
here's the complete ...
-1
votes
0
answers
35
views
Issues Detecting Line in QR Code for Orientation Detection [closed]
I'm currently working on a project that requires detecting the orientation of a QR code. I'm using the qrcode library to detect the center of the QR code and then trying to orient it using a line. ...
-9
votes
0
answers
51
views
CMake Error at modules/dnn/CMakeLists.txt:53 (message): DNN: CUDA backend requires cuDNN. Please resolve dependency or disable OPENCV_DNN_CUDA=OFF [closed]
I am trying to build Opencv 4.10.0, I have cuda 11.8 and cudnn 8.9.0 why do i still get this error,
here is the entire log.
CMake Warning (dev) at CMakeLists.txt:127 (enable_language):
project() ...
-3
votes
1
answer
43
views
Lower and Upper thresholds for HSV determination [closed]
I am trying to detect the liquid height (blue) and particle (green) inside a two-phase pipe flow. However, I cannot figure out the thresholds for lower and higher HSV values in order to use for image ...
-4
votes
0
answers
34
views
How Can I Improve Real-Time Face Matching and Display Efficiency in a Multi-Camera System Using OpenCV and Dlib? [closed]
I am working on a real-time face recognition project where I have two cameras (Camera X and Camera Y) set up to capture images of people passing by. The goal is to match faces from Camera X with those ...
-3
votes
0
answers
23
views
Importing Opencv into xcode [closed]
I have been wanting to implement my python code into a app through xcode but I've had a lot of trouble doing it. At first, it kept saying "No such module OpenCV2" and after I downloaded a ...
0
votes
0
answers
27
views
How do I change camera resolution without zooming in in Python OpenCV [duplicate]
From what I've seen you can alter the resolution of a frame using the following code using OpenCV:
cap = cv2.VideoCapture(0) # Adjust index if necessary
cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640)
cap....