Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
106 views

imaginary Bounding Box

Let's say I have a picture like this (Image 1). Isohypses are drawn so that they form a rectangle, which should correspond to the edge of a map. I want to detect that rectangle. In red, I drew the ...
Milos Basaric's user avatar
0 votes
0 answers
2k views

How to count no. of boxes using OpenCV?

I am trying to find no. of boxes available in the warehouse. I am using: Here is my code for the same. # Import libraries import cv2 import numpy as np import matplotlib.pyplot as plt image = cv2....
meet delvadiya's user avatar
0 votes
0 answers
455 views

Shape & color detection in python and opencv

i found this code on GitHub and it is a function that serves to find circles based on camera frames, yet my problem is that i would like to modify it so that i could choose which shape it has to find. ...
Didi's user avatar
  • 1
2 votes
1 answer
932 views

Approximating a quadrilateral from a given mask

Goal: I'd like to estimate a 4 coordinates quadrilateral (not only rectangles) of a given masked object as shown in the image + without losing any pixel of the masked object. Trials: I tried using ...
mohamadmansourx's user avatar
4 votes
1 answer
884 views

How to divide image into two parts without crossing any object using openCV?

I am using an object detection machine learning model (only 1 object). It working well in case there are a few objects in image. But, if my image has more than 300 objects, it can't recognize anything....
Ho Si Tuan's user avatar
0 votes
1 answer
84 views

I am getting fractional artifacts (pieces of metal) instead of whole ones. It seems that the edges are not continuous but they are

My goal is to detect objects placed on a white surface. From there, count how many there are and calculate the area of each one. It seems that this algorithm is detecting its edge but counting it as ...
Alexandre Tavares's user avatar
1 vote
1 answer
1k views

How can I draw only the largest rectangle contour to detect Vehicle License Plate (specifically for motorbike license plate)

I've been working on detecting motorbike license plate using only OpenCV. My question is: Can I find and draw only the largest contour (which is around the license plate)? If not then what should I ...
Michael Nguyen's user avatar
0 votes
0 answers
754 views

How to get the rotation of and object given its Axis-aligned bounding box coordinates Python

Below is a function that return a bbox_coordinates and a binary image. def back_projectcam1(histm,hsv_histt,hsvt): #hist: model histogram, hsv_histt: target image histogram, hsvt: hsv image of the ...
Khaled's user avatar
  • 573
0 votes
2 answers
3k views

How to filter contours based on their approximate shape in a Binary video frames

I'm working on a project where i have to detect a red vehicle (please see image below). As i believe that this can be achieved with out using Deep learning (overkill in this case), i used histogram ...
Khaled's user avatar
  • 573
0 votes
2 answers
196 views

Shape Openness detection in OpenCV

I'm building a shape analysis algorithm and one of the attributes we would like to add is whether the shape is open or closed. For example, the left circle is closed, the middle circle is open and the ...
Roi Yozevitch's user avatar
1 vote
0 answers
880 views

How to select child contour in OpenCV and increase accuracy using python

I'm really new to OpenCV. :) I have been working on this for almost an entire day. After hours of sleepless work I would like to know if I can further improve my code. I have written some code to ...
Avishka Dambawinna's user avatar
0 votes
0 answers
599 views

Swift detect identity card using OpenCV

I'm trying to detect the square of an identity card using OpenCV. Already install the framework and make the entire setup but everything about detection which I found using other language's example (...
Tyrone Prude's user avatar
2 votes
1 answer
2k views

openCV problem with detecting contours of shapes fully

I am doing this university project where i try to detect UI elements on screenshots of Android applications using openCV. I am not expecting a 100 percent accuracy for this detection of UI elements. ...
calveeen's user avatar
  • 651
2 votes
1 answer
724 views

Image Processing: Problem with Fish measuring

I'm having problems with contouring a live video capture. I'm using OpenCV library on Python My objective is to measure tilapia fishes that go through a tube one by one and get their approx sizes by ...
John Michael Garcia's user avatar
4 votes
0 answers
4k views

A good way to identify cars at night in a video

I'm trying to identify car contours at night in a video (Video Link is the link and you can download it from HERE). I know that object detection based on R-CNN or YOLO can do this job. However, I want ...
YQ.Wang's user avatar
  • 1,177

15 30 50 per page