Questions tagged [non-maximum-suppression]

32 questions
13
votes
3 answers

Non-max suppression

We've learned that you can get the gradient direction with atan(dy/dx) which is the direction orthogonal to the edge. Now we had a homework where we were supposed to discretize this direction into four classes (x- and y-direction and both diagonals)…
user1709708
  • 1,557
  • 2
  • 14
  • 27
7
votes
2 answers

Tensorflow high false-positive rate and non-max-suppression issue

I am training Tensorflow Object detection on Windows 10using faster_rcnn_inception_v2_coco as pretrained model. I'm on Windows 10, with tensorflow-gpu 1.6 on NVIDIA GeForce GTX 1080, CUDA 9.0 and CUDNN 7.0. My dataset contain only one object,…
7
votes
1 answer

How to use OpenCV cornerSubPix() in Python?

I'm trying to get and paint corner points in an image. Now, I have a list of tuples with the following format: (row,column,scale) (scale is because I'm using a Gaussian Pyramid), obtained from harrisCornerDetector and nonMaximumSupression process…
Carlos
  • 889
  • 3
  • 12
  • 34
4
votes
2 answers

How to read tensorflow non-maximum-suppression method source code?

I'm trying to read the source code of Tensorflow non maximum suppression method in this line. It is imported from gen_image_ops file, but I can't find the file anywhere in the tensorflow source code. Is there any source that I can reach this…
2
votes
2 answers

Non-Max suppression on circles

I have detected objects using bounding circles. How do I perform non-max suppression on them? I have both rectangles and circles and somehow I want to separate circles from circles and rectangles from rectangles. I have already tried using non-max…
2
votes
0 answers

non maximum suppression in C

Im trying to implement a non maximum suppression function in C. Non-maximum suppression is a non-linear filter that suppresses all of the values in the window that are not the maximum value. Consider a 5-element sequence w[n] that has the following…
1
vote
3 answers

How to remove box overlapping 90% with other bounding box

I have list of bounding boxes. When I plot them, there are some boxes overlapping with other. How can I identify them? Here is attached example Here we can see box 3,4 is overlapping, 10,11 is overlapping and box 7 is inside box 6. So I want to…
Talha Anwar
  • 2,699
  • 4
  • 23
  • 62
1
vote
3 answers

TypeError: Can't convert vector element for 'scores', index=0

I'm trying to take the output of a yolov5s.onnx model and and run NMSBoxes on it. But I keep getting this error: Traceback (most recent call last): File "python_detection.py", line 132, in class_ids, confidences, boxes =…
Grant Allan
  • 189
  • 1
  • 4
  • 10
1
vote
1 answer

“TypeError: only integer scalar arrays can be converted to a scalar index” when comparing a float with the value from an array

I get an error at the line where -22.5 is being compared with Gmat[i,j] when I try to run the following non-maximum suppression function: I use np.all and np.any as and and or would give an error called 'ValueError: The truth value of an array with…
1
vote
1 answer

Plus one in calculating area of rectangle

areas = (end_x - start_x + 1) * (end_y - start_y + 1) Above is what use in calculating area of rectangle for non-max-suppression in two different links below, why there is a need for plus…
william007
  • 17,375
  • 25
  • 118
  • 194
1
vote
0 answers

OpenVino model crashes after loading the network

I converted an onnx model to IR using python3 mo_onnx.py --input_model SSD_nms.onnx --input inputs,top_k_per_class,nms_iou,nms_score --input_shape [1,3,224,224],[1],[1],[1] This step worked fine, but when I try to load the network it gives me the…
Kira
  • 955
  • 1
  • 11
  • 25
1
vote
0 answers

How to apply Non max suppression on batch of images in tensorflow 1.14?

I have batch of cropped images from original image on which I have to perform object detection, I am trying to apply tensorflow NMS operation. I looked into tensorflow api docs, and found tf.image.combined_non_max_suppression(), but I am unable to…
1
vote
0 answers

Problem using core.post_processing.multiclass_non_max_suppression in Tensorflow Object Detection API

I'm using Tensorflow Object Detection API for an object detection class. I have found a function for non max suppression in core/post_processing.py which when I try to use It I'll encounter the following error. File …
1
vote
1 answer

Fast NMS algorithm suppresses boxes without overlap

I'm testing out the Fast NMS algorithm by Malisiewicz et al. I noticed while running through examples that in one case, if I input two particular boxes that have no overlap, with an IoU threshold below approximately 0.75, one box is suppressed…
Austin
  • 6,921
  • 12
  • 73
  • 138
1
vote
1 answer

Tensorflow Object detection development in IOS app - nonmaxsuppressionV2

I am trying to detect object using ssd_mobilenet_v1_coco model. My own trained model file .pb file is used for detection. After successful build , click run button and I got the below error. "Not found: Op type not registered 'NonMaxSuppressionV2'…
1
2 3