How to merge rectangles of matchTemplate?
Good morning. I'm with some trouble with this code. I want to check if the PCB is ok with manual insertions, i found some codes to check this with a template, ok. But when the componentes are found,...
View Article"_InputArray::isVector()" with Python data
(I believe it's a bug, but maybe I'm missing something) I'm unable to use sparse-to-dense match interpolation from Python, because I see no way to create data that passes "_InputArray::isVector()" from...
View ArticleIs there a package or module in python for xray scanning???
I am new to python programming and have explored only a few packages. Since now there is a lockdown event and also covid19 is taking lives, I am working on a project for the same. It demands real time...
View ArticleHow to automatically align an image using OpenCV in Python
I have dozens of images of this coin at various rotations (34, 120, 170 degrees). What would be the easiest and best way in Python to automatically straighten the images so they are "aligned" as shown...
View ArticleSIFT in OpenCV 4.x
The patent for SIFT owned by Google https://patents.google.com/patent/US6711293B1/en has expired in March 2020. Will we be seeing native implementations of SIFT in future versions of OpenCV?
View ArticleHow to make image using epix camera with python
Now, it wants to operate a camera called SV10M6 (EPIX) with Python using frame graber (SI1) called PIXCI. I bought the SDK file separately and received the dll file, but it is written as c and I don't...
View ArticleopenCV connect and process an ip camera stream (rtsp protocol)
i am trying to connect and process a video stream from my ip camera i am using 360Eye(s) camera. this is my code trying to connect: import cv2 cap =...
View Articlenp.argmax returns 0 always
To determine the class name of the detected object, I need to get the class_id of the image. The problem is, np.argmax always returns 0 and gets the first class name. When I detect another object, it...
View ArticleBest Face Detection Trained Data for Haar Cascade Classifier?
I'm trying to detect faces, however, some of the faces I want to detect are not perfect (some parts covered, not looking straight, head turned slightly). I used the default frontal face XML file...
View ArticleWhat is the difference between cropping an image and applying an ROI (region...
EDIT: Having a base image (`640x640`) I want to know if applying a rectangular white shape mask of (100x100), in another words, a ROI is more time consuming compared to cropping the image in the same...
View Article[python] RAM usage high when using VideoWriter in jupyter ONLY not pycharm
I'm writing around 1200 images to video with opencv's videowriter. When running in pycharm my ram stays at around 6gb used. When I run exactly the same code in jupyter my ram slowly increases and by...
View ArticleProblem in creating a video of multiple intermediate images(paddedIm)?

View ArticleExtracting Curved Contours
So I have been experimenting with OpenCV and extracting a specific portion from an image with python. My test image is: [![enter image description here][1]][1] From this image, I want to draw the...
View Articletraining shape predictor
Hello community, For a while I have been using python in combination with opencv for a project. Now I'm at a point to create a custom shape predictor. I got (in combination with dlib) a working...
View ArticleNeed bit of help with image constructing
Hello! I'm using this syntax: new_rect_area = target[y: y + h, x: x + w] new_rect_area = cv2.add(new_rect_area, masked_image_sample) target[y: y + h, x: x + w] = new_rect_area to construct / populate...
View ArticleError 'module' object has no attribute 'TrackerMIL_create'
OpenCV 3.4 Python 2.7 My code: import cv2 import numpy as np from datetime import datetime import time now = datetime.now() i=0 cap= cv2.VideoCapture(0); fourcc = cv2.VideoWriter_fourcc(*'XVID') out=...
View ArticlePython openCV drawing functions does not work?!
Hi, today I tried to draw a line in a window, this is the code I used. import numpy as np import cv2 # Create a black image img = np.zeros((512,512,3), np.uint8) # Draw a diagonal blue line with...
View ArticlePython OpenCV: Canny Edge Detection for Stickerless Rubik's Cube
Hello, I've started using OpenCV a couple of weeks ago and thought that building a Rubik's cube solver would be a great first project for me. I've done some research and started to implement the color...
View Articlehow to follow a pix value by checking the neighbors 3x3 in x,y imread()
i have a black image with blue lines i did this this to turn each blue pix into red pix img=cv2.imread("bluelines.jpg") for x in range (0, width+1) cv2.imshow("title",img) for y in range (0,height+1)...
View ArticleExtracting same point from images
Hope you guys are doing well. I have a question about opencv and extracting the same point from number of images. Say, we have a dataset of around 100 images. (maybe more but for this purpose it will...
View Article