4,499 questions
-4
votes
0
answers
65
views
How to implement real-time vehicle recognition with file selection, camera/RTSP URL, YouTube URL input, and zone detection using OpenCV? [closed]
I am building a real-time vehicle recognition system using Python.
The system should support these input methods:
Local video file upload
Live camera feed using a webcam
camera URL
YouTube video ...
2
votes
2
answers
91
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 ...
1
vote
1
answer
108
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 ...
5
votes
1
answer
172
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 ...
3
votes
3
answers
284
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 ...
0
votes
0
answers
166
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 ...
-1
votes
1
answer
49
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 ...
1
vote
0
answers
97
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 ...
1
vote
0
answers
109
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
88
views
Implementing class activation maps for models in Tensorflow Object Detection API
I need to implement CAM for a model trained on the base model ssd_mobilenet_v2_320x320_coco17_tpu-8 in the pre-trained Object Detection Zoo.
How could I accesses the layers and other fields necessary ...
2
votes
0
answers
139
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
0
answers
43
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 ...
-2
votes
2
answers
86
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
1
answer
563
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
...
2
votes
1
answer
98
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 ...
1
vote
0
answers
110
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, ...
0
votes
0
answers
38
views
Problems detecting cardboard boxes with OpenCV
I am developing an application to detect cardboard boxes with a 3d camera. After rasterising the image to get a 2d image of a particular plane from the point cloud I got this.
enter image description ...
1
vote
0
answers
233
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
427
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 ...
0
votes
0
answers
175
views
TypeError: empty() received an invalid combination of arguments
I want to do object detection using cascade r-cnn and swin transformer. Here is my code and the libraries I installed.
mmcv 2.1.0
mmdet 3.3.0 ...
0
votes
0
answers
56
views
Bounding Box does not appear in Vertex Dataset
I'm trying to import my data into Vertex Dataset for my Object Detection use case, when I'm using Python API using method import_data from AI Platform, after process import done, there is no bounding ...
1
vote
0
answers
170
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
57
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 ...
0
votes
1
answer
107
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....
1
vote
0
answers
63
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 ...