I’m doing a research on “Mask R-CNN for Object Detection and Segmentation”. So I have read the original research paper which presents Mask R-CNN for object detection, and also I found few implementations of Mask R-CNN, here and here (by Facebook AI research team called detectron). But they all have used coco datasets for testing. But I’m quite a bit
Tag: computer-vision
How to merge lines after HoughLinesP?
My task is to find coordinates of lines (startX, startY, endX, endY) and rectangles (4 lines). Here is input file: I use the next code: I get the next results: From the last image you can see big amount of small red lines. Questions: What is the best way to merge small lines? Why there are a lot of small
“SystemError: tile cannot extend outside image” in PIL during save image
I have this Image => here is, all coordinates of above yellow boxes that is written in 3.txt file. My intension is to crop those boxes and save all boxes as Image. I have written a code for that but getting error. Here is my code => I am getting these error => Traceback (most recent call last): File “reshape.py”,
Attribute Error : none type object has no attribute ‘ shape ‘
I keep encountering an attribute error trying to read some frames from a piCamera on a raspberry pi Here is the error: Answer It seems that frame was returned as None in this line as if you camera couldn’t read an image: Then, when resizing a None object, the program blows up as we described in the error message AttributeError:
Normalizing images in OpenCV produces black image?
I wrote the following code to normalize an image using NORM_L1 in OpenCV. But the output image was just black. How to solve this? Answer If you want to change the range to [0, 1], make sure the output data type is float.
How to draw a rectangle around a region of interest in python
I’m having trouble with import cv in my python code. My issue is I need to draw a rectangle around regions of interest in an image. How can this be done in python? I’m doing object detection and would like to draw a rectangle around the objects I believe I’ve found in the image. Answer please don’t try with the
How does one convert a grayscale image to RGB in OpenCV (Python)?
I’m learning image processing using OpenCV for a realtime application. I did some thresholding on an image and want to label the contours in green, but they aren’t showing up in green because my image is in black and white. Early in the program I used gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) to convert from RGB to grayscale, but to go back