4,489 questions
Advice
0
votes
1
replies
74
views
Tracking small targets on thermal video
I'm tracking a target from an UAV using a thermal camera. Detection is YOLOv8n running every N frames on an NPU, and I need something to hold the track between detections.
What I've tried:
Template ...
Best practices
2
votes
2
replies
47
views
How to map people detected in a fixed camera view to a 2D seat layout (seat occupancy, not person ID)?
I am working on a classroom attendance / seat occupancy visualization system and I am struggling with the system design rather than the detection model itself.
Scenario
A fixed-position surveillance ...
1
vote
2
answers
124
views
How to get coordinate of group of feature matching points
I use cv2.FlannBasedMatcher to detect some objects. I got good accuracy and would like to get (x, y) of group of points.
What I have:
What i'd like to get
There is my function:
def detect(self):
...
Advice
0
votes
12
replies
6k
views
Metal object detection using openCV
I'm just starting out with OpenCV, so if I did anything "illegal" bear that in mind:)
I've got images such like these (I need the image to be monochromatic), and I'm trying to remove the ...
Advice
1
vote
4
replies
93
views
How to Detect Objects on a Paper
It is my first year at university, and I am a Computer Engineering student. I would like to develop a program that can detect objects such as buildings, roads, railways, trees, and similar elements ...
Tooling
0
votes
1
replies
82
views
Object detection + metric depth on mobile for outdoor navigation (blind users)
I’m building a mobile navigation app (android) for blind users. Two core features needed:
real-time detection of outdoor objects (cars, benches, curbs, stairs, pedestrians) on the phone camera.
a ...
1
vote
2
answers
126
views
How to detect a B/W icon inside a colored dashboard photo when scale/rotation/color differ (OpenCV, Python)
Problem:
I need to check whether a small black-and-white icon (template) appears inside a large, colored dashboard photo.
The icon in the photo may differ from the template in color, scale, small ...
0
votes
1
answer
107
views
Cannot calculate confusion matrix utilizing supervision from roboflow for Yolov8 model
I am trying to calculate the confusion matrix for my yolov8 (or yolov11) model utilizing supervision from roboflow. I found some instructions but they do not seem to be crystal clear. For example ...
1
vote
1
answer
133
views
How can I find the contour of a box with a diagonal inside using OpenCV
I have to find the contours of boxes.
Some boxes have diagonal inside of them. I try to remove diagonal but I think it isn't answer.
Here are the images those I preprocessing and contour result. Only ...
1
vote
2
answers
185
views
How do I train an object detection model using Torchvision's pre-trained models?
I read the torchvision API documentation using pre-trained models for object detection. This is an example they have included:
from torchvision.io.image import decode_image
from torchvision.models....
5
votes
1
answer
257
views
Extracting the colors on the face of a stickerless Rubik's cube
I am tasked with the problem of finding the colors on the face of a stickerless Rubik's cube using OpenCV but I can't figure out what the best way might be to do so.
I tried to look at various ...
1
vote
1
answer
141
views
Why I am not able to get exact matches when I perform template-matching?
I am performing a simple template matching but for the life of me I still not able to find out why I am not getting correct matches.
I've tried without converting to grayscale and to remove the alpha ...
3
votes
3
answers
432
views
Image detection with rotation (2D)
I try to find the best way to detect images with the rotation. Without rotation cv2.matchTemplate works pretty fine, but I found no function for rotated images.
I need the position and angle of the ...
-1
votes
1
answer
145
views
YOLOv8 recognition under motion blur [closed]
I am currently developing a robot that uses YOLOv8 for real-time object detection based on the video captured by the robot’s camera. However, when the robot rotates, the input image becomes blurred, ...
0
votes
0
answers
235
views
How to covert pytorch to rknn?
I have exported the yolov5s PyTorch model from ultralytics/yolov5 and converted it to ONNX, using Google Colab, so that I can convert it to rknn in my rk3588 Radxa Rock 5c module.
%cd /content/
!pip ...
0
votes
1
answer
365
views
Implementing StrongSort with Ultralytics YOLO
I have a project where I am implementing the Yolo object detection algorithm with different tracking algorithms. I am now struggling to implement the StrongSort tracking with my detection program. Can ...
-1
votes
1
answer
56
views
Get Object Detection results from Edge export TFJS model, bin & dict in Express/Node API
I have exported my VertexAI model to TFJS as "edge", which results in:
dict.txt
group1_shard1of2.bin
group1_shard2of2.bin
model.json
Now, I send an image from my client to the Node/Express ...
0
votes
0
answers
199
views
How to detect custom arrow shapes in OpenCV?
The problem
As shown in the image, I am trying to detect road marking arrows in images using OpenCV. The arrows are always of the same size and shape but can appear in different orientations.
These ...
1
vote
0
answers
129
views
Inconsistent Canny Edge Detection under varying lighting – How to improve preprocessing?
I'm working on an object detection project in C++ using OpenCV. Specifically, I capture an image (e.g., coins on a background) and then try to detect them via Canny edge detection and contour ...
0
votes
2
answers
322
views
Issue with Object Detection Results in Java using YOLOv5 ONNX Model
I trained a neural network for object detection using YOLOv5 and exported it to the ONNX format, as I need to use it in a Java application. However, I am encountering issues with incorrect class IDs ...
1
vote
0
answers
144
views
Tflite Detection Postprocess Explanation
I am trying to replicate the working of TFLITE_DETECTION_POSTPROCESS layer for a custom object detection model.
Does anyone has any reference for TFLITE_DETECTION_POSTPROCESS layer implementation in ...
0
votes
0
answers
141
views
Pill counting using only opencv
I am trying to make a pill counting model using only opencv so far I have tried to use otsu's method of thresholding to get dynamic thresholding values but it didn't worked out, I have used Contrast ...
1
vote
0
answers
82
views
How do I use Open3D to use it for image recognition?
I'm trying to use Open3D for image recognition. I want to detect the block, then put a square around it (I have a ply with 524288 points). I'm using the Intel real sense d435 as the camera.
I turned ...
2
votes
0
answers
187
views
How to use a self trained YOLO OBB model in Xcode without multiarray output
I'm new to Xcode and have some trouble getting my model into an appropriate format.
I have quite a similar problem as in this unanswered
question but for OBBs:
I trained a YOLOv8n-obb model on a ...
0
votes
2
answers
150
views
Batch Prediction for Object Detection Auto ML took so long
I want to predicting using Batch Prediction in Vertex AI. My script runs normally before and has no issue, but somehow a few days ago, without any changes in my script, the batch prediction elapsed ...
0
votes
0
answers
57
views
How to best pre-process this image so the faint cell border is the most visible?
I have tried using ImageJ/Fiji but I am not sure how to best de-noise the image. I tried using the denoise function in Fiji to no avail. I was wondering if I could get some guidance. I was informed I ...
0
votes
0
answers
55
views
Finding & Cropping to focused subject
I'm currently trying to find a method to find the subject (the character) of an sprite, preferably with JS.
Originally I thought of finding the part of the image with the most pixel density, though I'...
-2
votes
2
answers
104
views
Ideas for Extracting Blade Tip Coordinates from masked Wind Turbine Image [closed]
I am looking for image processing tools in python to get the coordinates from the Blade Tips of a Wind Turbine, in this case a small model of one. The blades already get segmented by a yoloV8 ...
1
vote
0
answers
111
views
Roboflow Annotation for YOLO
We are using YOLO for object detection in satellite images to detect greenhouses.
I'm annotating images through Roboflow. I've downloaded satellite images with different zoom levels. (zoom level means ...
1
vote
1
answer
715
views
How to extract bounding box coordinates from grounding dino's predict function?
The boxes returned by the predict function doesn't seem to be of normalized form, even after multiplying with the image width and height i can't get the coordinates of the bounding boxes.
import torch
...
0
votes
1
answer
997
views
Use YOLO OBB coordinates to crop rotated objects in opencv
Problem:
I am developing a model to detect objects on a custom dataset using YOLO OBB (Oriented Bounding Box), and then I want to extract the text using EasyOCR. For this, I need to work with the ...
2
votes
1
answer
112
views
How to detect (most) mortared stones with OpenCV findContours
I need to correctly outline as many as possible of the mortared stones in a street zone. The code below correctly detects some of them in the stones image "in.jpg", but it is not obvious why ...
0
votes
0
answers
109
views
Data Loader from CSV in TensorFlow Model Maker takes time too long
I've been working for Object Detection using Tensorflow Model Maker. I used DataLoader.from_csv to load my csv file, however the running time takes too long. In my case, I got around 30 minutes.
My ...
1
vote
0
answers
170
views
How to Integrate Object Detection Model with Augmented Reality (AR) in Android?
I am working on an Android application where I want to integrate an object detection model with Augmented Reality (AR). My current setup is working fine with a normal CameraX implementation. However, ...
2
votes
1
answer
73
views
identify how many times same vehicle was captured in the provided video [closed]
Working on Video analysis assignment where I need to capture how many times same vehicle was captured in given video.
So far using YOLO11 was able to identify the vehicles such cars, bike, bus & ...
1
vote
0
answers
273
views
Changing color of segments from YOLO segment predicted images
I am working on an object detection project, detecting three types of objects in a set of images. This image shows a Sample of yolo segment model prediction model image.
The issue I have is that ...
2
votes
0
answers
62
views
Error processing frame: failed to allocate memory [Op:AddV2] - Deepface object detection
i'm a newbie to object detection, we wrote a script to identify gender and age of a person using the deepface library and then adds trackers using the Sort library.
The code works well on the CPU and ...
2
votes
0
answers
469
views
Yolov11 model running slow through webcam
I'm using yolov11 to train a model to recognize a toy truck. I followed the steps in this EXCELLENT youtube video, and I have a working model build off of yolov11m.pt.
I'm using the following ...
1
vote
0
answers
74
views
Mismatch 'target' and 'output shape' on object detection using ssd and mobilenetv2
I try to train custom object detection model using ssd and mobilenetv2, though the ssd_loss functions seems mismatch the output shape of the model. how do i fix it ?
model preparation
import ...
2
votes
1
answer
124
views
OpenCV SSD MobileNet V2 Model: No Object Detection Despite Confidence Threshold
I'm using a Basler camera with OpenCV's DNN module to run an SSD object detection model (mobilenetv2_050_Opset18.onnx) with CUDA support enabled on c++. The Basler camera is correctly capturing frames,...
1
vote
1
answer
114
views
How to import Ultralytics without an Error?
When I try to import Ultralytics, I get the following error:
Te installation is successful but the issue in "No package"
<ipython-input-4-ef7a9f069429> in <cell line: 2>()
...
1
vote
0
answers
209
views
How to make cropping when doing motion-tracking look super smooth? (using OpenCV and yolo v8)
I'm using yolo to track a face in a video on a frame by frame basis, and then I'm using OpenCV to crop the video (with some padding) around the speakers face so it creates a motion tracking type ...
1
vote
0
answers
65
views
Issue with Pytorch -> CoreML convertion for SSD Mobilenetv3 Object Detection Model
My objective is to develop a object detection model for iOS and Android. I have trained an SSD Mobilenetv3 model with Pytorch framework using Coco format dataset. I have trained it from the official ...
1
vote
0
answers
37
views
EfficientdetD0. The huge values of the loss function
I'm trying to train my EfficientdetD0 model, but the loss function values are in the billions.
My code:
import torch
from torch.utils.data import DataLoader
from torchvision.datasets import ...
0
votes
1
answer
123
views
matchTemplate() missing detections and giving false positives, what can I do?
I'm trying to use opencv to detect objects in a video game. I have grabbed the image as a png and trimmed it so that the background is transparent, and yet, it only detects it at threshold levels ~ 0....
0
votes
1
answer
36
views
link to tensorflow object detection dependencies
Please advise a link to list of libraries on which TensorFlow Object Detection API depends. in order to install each and every dependencies before moving forward
1
vote
0
answers
72
views
Need help getting the relative height from the camera to an object
I have a robot with a Intel RealSense D435 (a depth camera) and want to estimate the position of an detected object. However, the cam is rotated at a 30° angle. When I detect an object, I can ...
0
votes
1
answer
365
views
Yolo 11 nano dataset structured incorrectly
I'm new to working with Yolo and trying for the first time to structure my database. This is how my directory is structured.
Project_Name/
├── datasets/
│ ├── images/
│ │ ├── train/ ...
0
votes
0
answers
115
views
Convert Yolov4-tiny model weights to tflite
I have trained a YoloV4-tiny object detecion model using darknet by referring this tutorial. My images are of size 1024x64.
I got yolov4-tiny_custom_training_last.weights as output.
I want to convert ...
0
votes
1
answer
2k
views
Dataset format mismatches between Ultralytics YOLOv8 training and Label Studio exported
I used Tensorflow before and am new to PyTorch and Ultralytics YOLOv8. I recently learnt to train (fine-tune) the YOLOv8 object detection model to fit my own dataset. However, the official ...