Questions tagged [non-maximum-suppression]

32 questions
1
vote
0 answers

Non maximal suppression(thinning Algorithm)

i have a problem in applying this thinning algorithm and I don't know what's the problem with the code provided.the output image is almost the same as the thresholded image. nonMaxSupp: %this function returns a boolean matrix to be multiplied…
0
votes
0 answers

YOLOV8 image segmentation postprocessing with NMS for android TFLite model

After training custom data in YOLOV8 Image segmentation it gives output float32[1,37,8400] and float32[1,160,160,32] where one is prediction and another is detection image edges. But in android there have no way to perform non maximum suppression…
0
votes
0 answers

non_max_suppression overlapping boxes

I am using a tesseract for text detection. The algorithm gives as output many boxes, and often overlapping. I am using the non_max_suppression from the imutils library.The problem that I have is that the function compares the surrounding boxes, and…
cobdmg
  • 49
  • 6
0
votes
0 answers

where can I find this non-max suppression file called in the return statement? (most likely a CPP file)

This torchvision.ops.nms(boxes, scores, iou_thres) takes me to the boxes.py file in "C:\Users\anaconda\envs\gpu_low\Lib\site-packages\torchvision\ops" where gpu_low is my virtual environment name. In this boxes.py file there is a function nms: def…
0
votes
1 answer

python, how do i matchtemplate transparent image with opencv

im using matchtemplate to detect 67x45 sqaure on background. i think my code works fine without any problem but the problem is i have to set high threshold for it to detect successfully otherwise it would give so many false detections. so i tried…
0
votes
0 answers

How to merge detected boxes with opencv?

I wrote a code that can detect the differences between two pages, but I want the boxes close to each other to appear as a single box,I want to see it in the form of the purple box in the picture I added. How can I do this, I have the coordinates of…
0
votes
0 answers

Multiple bounding boxes around Object (OpenCV)

I am new to ML, and OpenCV and was trying to perform object detection of a car using the pre-trained model on Coco Dataset, DNN. I am receiving multiple bounding boxes around the car. The code and image are attached for reference. cap =…
0
votes
1 answer

can't compile model using Non Max Suppression + Dense layer because of unknown NMS output size

I'm trying to write a model that extracts 10 regions of interest out of 128 proposals and feeds them into a Dense layer: # x is an input tensor of size [None, 128, 4]. # scores is the corresponding [None, 128] score vector. indices =…
0
votes
1 answer

YOLO - does Intersection over Union is actually a part of Non Maximum Suppresion

Here:[related topic] 1 they say that in YOLO actually the IoU (intersection over union) used twice: 1- during training to compare ground truth box to predicted box 2- during the usage of already trained YOLO network this technique is being used to…
0
votes
2 answers

Yolov3 to Tensorrt : Custom Plugins for tf-keras Lambda Layers

I have trained a yolov3-tiny model in Tensorflow 2.0 using this repo : https://github.com/zzh8829/yolov3-tf2 On inference, the model uses two functions wrapped in tf-keras lambda layers for postprocessing, these are : yolo_boxes : to calculate…
0
votes
1 answer

Coremltools: cannot use some of the outputs from a non-maximum suppression layer in subsequent layers

EDIT: seems like this is a bug in Coremltools. See here: https://github.com/apple/coremltools/issues/691#event-3295066804 one-sentence summary: the non-maximum suppression layer outputs four values, but I am only able to use two of those four…
ab1470
  • 91
  • 2
  • 3
0
votes
1 answer

Shape must be rank 2 but is rank 3 for NonMaxSuppressionV3: ERROR

I'm facing this error while trying to use tf.image.non_max_suppression while video object detection. Tensorflow version is 1.10.0 ValueError: Shape must be rank 2 but is rank 3 for 'non_max_suppression/NonMaxSuppressionV3' (op:…
bassma
  • 1
0
votes
0 answers

Nested loop doesn't execute past first inner if-loop

New to coding and to Python. I have this code which for some reason will only go through my first if-statement. I've looked at it for hours and I honestly can't tell why? for i in range(1, trex.shape[0]-1): for j in range(1,trex.shape[1]-1): …
0
votes
0 answers

tf.image.non_max_suppression gives Uninitialized tensor

I'm using tensorflow's tf.image.non_max_suppression in Faster-RCNN network. The tensorflow graph builds successfully and also runs without errors, but when running the graph, the output is empty tensors, with the dimension that depends on the input…
MohamedEzz
  • 2,830
  • 3
  • 20
  • 26
0
votes
1 answer

Qt - Image class - Non max suppression - C++

During coding some pixel manipulation class, I have implemented non max suppression function. Code is here: signed char * nonMaxSuppress(int windowSize, signed char * pointer) { int delta = windowSize / 2; int index; int counter = 0; signed char…
Daniel Eitan
  • 45
  • 1
  • 7