Category "computer-vision"

How to detect multiple colored regions in an image and produce individual crops for each with Python OpenCV?

I have an image like this: And I want to crop the image anywhere there is red. So with this image I would be looking to produce 4 crops: Obviously I f

How to find and crop words into individual images with Python OpenCV?

I have a binary image of words as shown, and I want crop the image with each character in different image. Output should have different images of k,7,2,f,5 &am

Working with image data from memory in Pytorch

Question: If I have an array in memory with dims (n, height, width, channels) and I want to get a Pytorch classifier to feed them forward and give me an array w

How to perform image lighting correction with OpenCV?

I have an image which I grab using a camera. Sometimes, the lighting is uneven in them image. There are some dark shades. This causes incorrect optimal threshol

How to detect and extract rectangles with Python OpenCV?

I am trying to detect three rectangles from the contour. I have already extracted the entire contour from the whole image. I am attaching the image of extracted

How to extract green objects in an image?

I have ROI's for the bounding boxes around the objects in an image. The ROI's are obtained by the Faster R-CNN. Now I want to get the green spike objects contai

Sparse Categorical CrossEntropy shape problem with Keras

I have a multiclass problem where an image can be one of three classes (Masked, UnMasked, Hybrid). I am using image_dataset_from_directory from keras preprocess

How to set a known position and orientation as a starting point of ARKit

I am starting to use ARKit and I have a use case where I want to know the motion from a known position to another one. So I was wondering if it is possible (lik

How to extract multiple objects from an image using Python OpenCV?

I am trying to extract object from an image using the color using OpenCV, I have tried by inverse thresholding and grayscale combined with cv2.findContours() bu