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.
68,709
questions
0
votes
0
answers
12
views
Incrementing a counter when writing data to MySQL from Python
So I made a barcode scanner for attendance monitoring in Python and each scanned barcode will enter the data into a MySql database, but I want to make it so that each entry will increment a row in the ...
-3
votes
0
answers
18
views
(Pycharm) Open Cv only showing init-PY [closed]
The only functions I have access to would be the bootstrap function. Looking through this website I see that this used to be a common issue, but for me this has never actually been a problem. Is their ...
0
votes
0
answers
17
views
cv2 display large image window with scrollbar - python
I have been trying several ways to display a very large image with a scrollbar, but I cant
I need to display those scrollbar because if I resize the image to fit to my window, the image is so blurry ...
0
votes
0
answers
34
views
how to segment the marbling/fibers on a piece of meat
I want to be able to highlight the marbling in a piece of meat like this:
I'm using OpenCV (blurring, sobel operator) to detect the edges, which I was hoping would give me just the main marbling. ...
0
votes
0
answers
21
views
OpenCV change imread to videocapture(0)
I'm new to OpenCV, so I apologize if my question is very basic.
I am trying to use a pose estimation for multiple people (which mediapipe does not allow). I found this code and it works perfectly: ...
0
votes
0
answers
18
views
I'm not able to get the correct homography points
I'm trying to create homography matrix from this field:
(source image with ids:)
To the destination image:
The points for the source points are:
pts_src = [[ 761, 704],
[ 910, 292],
[1109, 544]...
0
votes
2
answers
32
views
Show single channel in it's color (not grayscale) with OpenCV
I can successfully convert a BGR image to CMYK and I get a array of size (height, width, 4), the 4 being the C, M, Y and K channels, ranging from 0 to 1.
After I split that CMYK array, I have 4 arrays ...
1
vote
1
answer
28
views
How to replace color of image using opencv?
I'm trying to replace different colors in image using opencv.
Image is as below
I'm trying to replace border color and main object color which is shade of yellow into some other random different ...
0
votes
0
answers
23
views
is resize first faster than convert first in OpenCV
I'm trying to convert and resizing image but I'm not sure which best order.
That image is just screenshots dan grabbed every time (screen recording).
Yes I know no matter which order eventually it ...
0
votes
0
answers
10
views
Uninstalling Multiple OpenCV
Helloo, im using Ubuntu 18.04, and now have 2 OpenCV version (4.5.2 & 4.6.0) on it and don't know where is opencv path. and when check my opencv version result is
$ python
>>> import cv2
&...
0
votes
0
answers
18
views
Failing to load a large video in pytorch
Edit: I figured it out. I didn't realize that decoding of a video expands the memory requirements. What may be a 200 MB video turns out to be 10 gb when decoded, causing me to run out of memory. But ...
0
votes
0
answers
17
views
How to correctly convert a resized image from opencv to pyqt5?
Goal:
I am trying to display an image using PyQt5 edited using OpenCV.
The above image shows a side by side comparison of my expected output (Shown from a openCV Window) and the actual output ...
-4
votes
0
answers
21
views
How can I Fix This Error in Face Recognition Project [closed]
When I Run the Code it gives me this error :
Traceback (most recent call last):
File "C:\Users\PycharmProjects\FaceRecognitionProject\AttendanceProject.py", line 48, in
imgS = cv2.resize(...
0
votes
0
answers
12
views
error while loading yolov5 custom model using opencv in python
I was trying to predict defects on a metal plate using yolov5 pre-trained weights.it was throwing this error:
**
File "C:\Users\acer.spyder-py3\metallic surface defect detection\untitled3.py"...
0
votes
0
answers
18
views
How to crop images / edges in a picture in OpenCV
Here's a picture of a maze solver, when the BFS function goes over the image it goes around the image
I know it's possible to just crop the image manually, but I want a function where the computer can ...