18 questions from the last 30 days
0
votes
0
answers
46
views
OpenCV producing completely black mask from image
I'm attempting to narrow a screenshot of an app to a specific section of the UI for later processing by Tesseract; in particular, the X Battle ratings located in the lower half of the image.
I did a ...
-7
votes
0
answers
60
views
How can I project the 3D bounding boxes on an image [closed]
I am trying to project 3d bounding boxes on vehicles and pedestrians using a detector model. I ran the inference with 6 images and got output in the below format. Now i want to project the boxes on ...
0
votes
2
answers
97
views
CV2 not able to identify the valid numpy arrays
I am running a Python code for the pose detection using HRNet, and the cv2 throws an error for an invalid numpy array, even though the type matched the validity criteria.
This is giving error even ...
0
votes
0
answers
65
views
Error throwing while building opencv with gstreamer support [closed]
I am trying to build opencv from source to enable GStreamer support. I have followed this instructions here, but an error occurred. More specifically, the error occurred in this step:
make -j$(nproc)
...
Best practices
0
votes
1
replies
79
views
How can I correctly extract table structure (rows, columns, merged cells) from a complex scanned image using OpenCV?
I’m trying to extract tabular data from a scanned engineering document.
The table contains:
merged header cells
irregular row heights
irregular column widths
faint and broken borders
text inside ...
0
votes
0
answers
61
views
OpenCV - LOG_LEVEL_SILENT doesn't work when reading image from file using imread
I would like to silence OpenCV errors that occur while attempting to read an image that it does not support, example HEIC. I have tried setting the OPENCV_LOG_LEVEL environment variable as well as the ...
1
vote
2
answers
145
views
How to close a gap in the contour in OpenCV
I have a problem that I struggle with and cant seem to find a solution;
I want to get the area of the contours I see in this image/video frame:
The problem is the contour is cut off at the right as ...
0
votes
0
answers
25
views
opencv.js in node throws abort(ReferenceError: document is not defined)
I want to use opencv in node. Found @techstark/opencv-js and looks promising, but I cannot run even a simple example.
I've installed the examples from https://github.com/TechStark/opencv-js-examples. ...
1
vote
1
answer
106
views
Watershed fails to properly segmented objects
Currently I'm working on object detection for counting how many object presented on the frame. I already successfully separate some of them. There's still some object which is very close together ...
1
vote
1
answer
83
views
Not able to build opencv manually in python env
I am trying to build opencv from it's github repo manually and use it in the virtual python environment. I am unable to import opencv.
Previously I got the error as mentioned Here. The solution is to ...
0
votes
0
answers
81
views
importing opencv-python in an embeded python program
I have a problem with a little program Im making
This is my program:
#define PY_SSIZE_T_CLEAN
#include <Python.h>
int main() {
Py_SetPythonHome(L"C:/Users/fxct/AppData/Local/Python/...
1
vote
0
answers
64
views
OpenCV-Python with PyQt5: Qt platform plugin "xcb" error and cv2.imshow not working on Linux
I'm trying to use OpenCV with PyQt5 on Linux, but encountering Qt compatibility issues. When I install opencv-python, I get Qt platform plugin errors that prevent the application from starting. When I ...
1
vote
0
answers
61
views
Green video output when streaming to RTSPtoWeb using GStreamer
I’m trying to make a script in python that restream an RTSP feed that has been processed in OpenCV (where I overlay the current date and time on each frame).
After processing, I use GStreamer to ...
0
votes
0
answers
63
views
Problem regarding hierarchies when using cv.findContours function in openCV
The problem statement is basically shape detection, when there is a shape inside another, and also list the hierarchy order, for example, "triangle inside hexagon". For this, I am using the ...
-1
votes
0
answers
69
views
Python OpenCV LBPHFaceRecognizer "Unknown C++ exception from OpenCV code"
Trying to build a mini face recognition project from a set of pictures in a folder
When trying to use LBPH algorithm to do so using:
recognizer = cv.face.LBPHFaceRecognizer()
I get:
"Unknown C++...
0
votes
0
answers
45
views
How to measure plant length in pixels using PlantCV
I am trying to use PlantCV to track the growth of seedlings, I am currently trying to get it to work on a single seedling before scaling it to track the growth of multiple seedlings. After some image ...
3
votes
1
answer
1k
views
I am having problems trying to install opencv-python
Im trying to install this package using my windows 11 machine, python version 3.14.0 and pip version 25.3 and numpy 2.3.4
This is what I get:
Installing build dependencies ... done
Getting ...
Tooling
0
votes
2
replies
91
views
How to remove colors from image keeping black, white and gray
PaddleSharp is used to find orientation and get text form image below:
using Mat imgSrc = Mat.FromImageData(image);
PaddleRotationDetector detector = new(RotationDetectionModel....