Questions tagged [object-detection]
Object detection deals with recognizing the presence of objects of a certain semantic class (e.g. “humans”, “buildings”, “cars”, &c) in digital image and video data.
4,444
questions
0
votes
0
answers
7
views
tensorflow custom trained model - weird outputs
I trained SSD MobileNet V2 FPNLite 640x640 model to detect objects from camera using react.
Also, i verified that he workd using python script on images.
After converting it to web model using ...
0
votes
2
answers
13
views
RepresenterError: ('cannot represent an object', <roboflow.core.dataset.Dataset object at 0x7f27813d1ed0>)
I am using a roboflow dataset to train a yolov8m model. It keeps throwing errors. The latest one is
RepresenterError: ('cannot represent an object', <roboflow.core.dataset.Dataset object at ...
0
votes
0
answers
10
views
Pytorch Training Fails on GPU, but not CPU
I am training YOLOv5 for object detection, I have generated some data and trained it successfully. I have recently genrated some new data using the same approach I used for the previous data and ...
0
votes
0
answers
12
views
Pascal VOC annotations not working in CVAT.ai
I've used cvat.ai online tool to create annotations for over 100 images. I wanted to use them later in object detection with Pascal VOC 1.1 format. Unfortunately, after exporting the annotations, the ...
-1
votes
0
answers
17
views
"Motion Sensors Required" error for ZED 2i (Python)
I'm trying working with ZED 2i cameras for body tracking and object detection. I want to use them with Python. But when I start the python program for ZED, it stops showing the message "MOTION ...
0
votes
0
answers
31
views
Improving accuracy on live circle detection in Python [closed]
I am currently detecting live circles using OpenCV and the HoughCircles function together with a color filter. The cameras I use have a resolution of 640x360. At the moment I can detect a small ball ...
1
vote
0
answers
11
views
Declaring the whole dataset to undergo training
so I have been working on a small project of mine and probably a little lost. Here's the source. https://coral.ai/docs/edgetpu/retrain-detection/#requirements I have been successfully able to train ...
-1
votes
0
answers
9
views
How to use Yolov7 on a live video captured by OBS?
So i want to use YoloV7 on a live video that I captured by OBS. To run yolov7 i need to run this code in Terminal (i took the code from a yolov7 tutorial video):
python detect.py --weights yolov7.pt --...
-1
votes
0
answers
10
views
error running make command in cocoapi/PythonAPI folder using Colab
this is my first question in stackoverflow yeyyy. Honestly, I always found solutions just by googling, but now I was literally 2 days searching for stuff to fix this. I'm following this tutorial which ...
0
votes
0
answers
43
views
OpenCV(4.7.0) :-1: error: (-5:Bad argument) in function 'polylines' for Line Detection
I have some hundreds lines of code for Lane Detection problem, and I get an error in the very last cell. The line
cv2.polylines(pred_bin_rgb, [inst.astype(np.int32)], False, (0, 0, 255), 2)
causes ...
0
votes
0
answers
14
views
AttributeError: module 'tensorflow' has no attribute 'contrib'. tried other forums already [duplicate]
import os
from object_detection.utils import label_map_util
from object_detection.utils import visualization_utils as viz_utils
from object_detection.builders import model_builder
AttributeError ...
0
votes
0
answers
17
views
How to edit VoTT json project file manually?
About VoTT (Visual Object Tagging Tool), it's an application from Microsoft to label images for object detection/segmentation tasks.
VoTT's workflow:
Each project will have a *.vott file with JSON ...
0
votes
1
answer
29
views
Use OpenCV to find breast cage area on mouse x-ray mages
I`m kind of new in OpenCV. I have a task to automate breast cage area calculation based on mouse x-ray. So now i only have o body contour.
Code i use
import cv2 as cv
img = cv.imread("sample.jpg&...
-2
votes
0
answers
14
views
OPENCV Detecting known outline in an image/ video in order to accurately transform a video
I am trying to create a program that will read in video and detect the corners of a football field so that the coordinates can be returned and I can perspective transform the image/video.
The video ...
-1
votes
0
answers
14
views
Which is more accurate, semantic segmentation or object detection?
In my project, which is product surface defect detection, such as to detect scratches on the washing machines, the target is to increase the precison and recall of detection.I think object detection ...
0
votes
0
answers
7
views
im not able to rectify the error can anyone help me with this
while True:
#read image
success, imgOrignal = cap.read()
#process image
img = np.asarray(imgOrignal)
img = cv2.resize(img,(32,32))
img = preprocessing(img)
cv2.imshow("Processed Image", ...
0
votes
0
answers
13
views
Optimize sizes and aspect ratios of prior boxes in SSD network
I use SSD network to detect objects in thermal image. Since our camera has only the resolution of 160x120 pixels, I don't resize image to 300x300 but use the camera resolution as the input into the ...
0
votes
0
answers
22
views
How to use zed cam for object detection using yolov7 in python
I am working with Stereo labs zed2 stereo camera and a custom trained data set using yolov7. I am not sure how to use the below code to get the x and y values from the bounding boxes and store them in ...
0
votes
0
answers
14
views
Is there a model that classifies the object from the given bounding box (bounding box as input)?
Here's my dilemma - I'm working with sentinel-2 satellite images and would like to classify buildings in an area based on labels I have for some of the buildings, however I would like to use a ...
0
votes
0
answers
35
views
yolo v8 result grap
Below is a graph of the results of running yolo v8. I would like to know the meaning of the horizontal axis, vertical axis, and units in the following graph. The code used is the following code, which ...
0
votes
0
answers
24
views
How to detect a white object with black outline on white background?
I am working on a project and I would like to know if it was possible to detect object in a picture that has the same color as the background.
Like this :
I would like to detect every units from this ...
0
votes
0
answers
10
views
I can't get the features map shape to be the same as the initial one after using VGG16 and upsampling
I was reading an article about using optical flow to upgrade the performance of object detection & action localization models.
Here is the article if you're interested : Click here
One of the ...
0
votes
0
answers
17
views
How to extract bounding box coordinates from a YolovV5 object detection model that has been converted to a CoreML model for use in an iOS app?
Here is my coreMl model prediction
I need something like that,
I need this kind of prediction
I have tried it for export
!python export.py --weights /content/drive/MyDrive/best.pt --include "...
0
votes
0
answers
24
views
How to delete some images while generating a new version of dataset in Roboflow
I have some 1700 odd source images in my Roboflow project . But i need to delete a lot of images while generating a new version of the dataset .
I don't see any delete source images option anywhere in ...
-1
votes
1
answer
19
views
Tensor flow object detection - detect the first detected object only
im working on one project in which I need to detect only one person at a time. I'm using tensor flow lite object detection. In that I customised to detect only person. Furthermore I need to detect ...
0
votes
0
answers
14
views
How to solve Tensorflow object detection error
Traceback (most recent call last):
File “C:\Users\dhrub\BDSLP-REALTIME\RealTimeObjectDetection\Tensorflow\models\research\object_detection\model_main_tf2.py”, line 31, in
from object_detection import ...
-1
votes
0
answers
15
views
How can I separate and follow the plants that are very similar to each other with the YOLOv5 algorithm?
I want to differentiate between fern and mint using the YOLOv5 algorithm. Now I'm able to take pictures of the fern and mint, mark them on LabelImg, and train them on Google colaboration. However, ...
0
votes
0
answers
28
views
Calculate the position of an object in two cameras
We have 2D camera with alpha field of view angle and a 360 gopro max camera. The 2D one detect an object and return its position (x,y) , how can we determine the position of this object in the 360 ...
0
votes
1
answer
41
views
How to remove label text in detected image YOLOv8?
I don't understand how to remove label text in detected image in YOLOv8 using code from ultralytics github https://github.com/ultralytics/ultralytics. I'm still newbie
I expecting can remove label ...
0
votes
0
answers
26
views
Error loading Yolov5 Model to Local System
I am using Yolov5 ultralytics pytorch colab notebook to train over my custom dataset. I saved the model and wanted to use to make predictions over my local PC but encountered an error
Downloading: &...
-1
votes
0
answers
15
views
writer = tf.io.TFRecordWriter(args.path_to_save_tfrecords) AttributeError: module 'tensorflow' has no attribute 'io' [closed]
I'm using Tensorflow 2.11.0 and python 3.10.5 , I try to generate tf record for object detection. I don't know why i face this error, I've tried to look at the tensorflow official website and found ...
0
votes
0
answers
19
views
Only the initial frame is being tracked in YOLOv4 with DeepSORT on Colab
I am currently trying to do object tracking with YOLOv4 and DeepSORT algorithm on Google Colab by utilizing this repository from the AIGuysCode.
Previously, everything was fine and the following ...
0
votes
0
answers
13
views
In CoreML, how do I get the inference time
I'm running the yolov8 model with CoreML.
I have the following Swift code that runs an object detection model:
class CoreMLModule: InferenceModule {
private var requests = [VNRequest]()
private ...
0
votes
0
answers
29
views
change output file of labelImg from xml to txt [closed]
I'm trying to annotate an image using labelImg. The output file is xml and I want txt files.
I tried to change the labelImg.py file but I can't find the part of the code responsible for creating the ...
0
votes
0
answers
26
views
Torchvision Object Detection using ssdlite320_mobilenet_v3_large
I'm pretty new at this, and I'm struggling to implement this using my own dataset with only one class (one class + background). I already implemented the same model using TensorFlow object detection ...
0
votes
0
answers
31
views
Keras CV object detection: bounding boxes, classes and images
I'm trying to load my custom data for this tutorial. Basically it's an object detector with RetinaNET. The problem starts with the format of the data.
From the tutorial:
KerasCV has a predefined ...
-1
votes
0
answers
52
views
"Image file is truncated" error with TensorFlow model
I am writing a code for project related to Image classification. A program has to identify whether the image show bus/auto/bicycle etc.
I think there is some problem regarding photo format/size or ...
-1
votes
0
answers
9
views
Transfer Learning or Fine Tuning Object Detection Model
I am wanting to fine tune a Spaghettinet model but need some help in understanding a couple of thngs. Basically, i run an object detection software on my IP cameras that is opensource and uses the ...
-1
votes
0
answers
25
views
Can I get the count of vehicles through YOLO object detection?
Most of the online tutorials of YOLO teaches how to prepare training/test images and how to label them, and after running the training process, it will give the image result with frames on it, and the ...
0
votes
0
answers
14
views
How can I make sure my converted TensorFlow lite model works?
I trained YOLO v5 object detection model on my custom dataset, I used the following command to convert my model to TensorFlow lite:
!python export.py --weights best.pt --include tflite --nms --data ...
0
votes
0
answers
17
views
IOU configuration do not overlap in Detectron2
I'm researching the IOU configuration in detectron2,
the configuration for ensuring that the bounding boxes detected do not overlap with each other.
How is this configuration set up in detectron2?
...
0
votes
0
answers
40
views
Finding guitar picks in an image
Starting image
I have tried everything in the book to get this script to accurately find 14 guitar picks in this image.
import cv2
from PIL import Image
import numpy as np
from google.colab.patches ...
1
vote
2
answers
78
views
How can I convert a YOLOv8s model to coreML model using a custom dataset?
I have trained a YOLOv8 object detection model using a custom dataset, and I want to convert it to a Core ML model so that I can use it on iOS.
After exporting the model, I have a converted model to ...
0
votes
0
answers
41
views
How to convert YOLO annotations (.txt) to labelme?
I'm using Yolov8 to perform image segmentation, and I want to retrain the network with images predicted by the network itself, but making corrections to the masks. That is, to make these corrections, ...
0
votes
0
answers
14
views
JumpStart ObjectDetection Annotations Format mismatch on COCO
nice to meet you all,
I'm having a hard time on following some instructions related to the annotations format on JumpStart Object Detection Notebook .
When fine tuning, the notebook states (section 3 ...
-1
votes
0
answers
57
views
ERROR: Failed building wheel for onnx, ERROR: Could not build wheels for onnx, which is required to install pyproject.toml-based projects
I am trining to install YOLOX object detection model after i clon it but it did not work with me.
!git clone https://github.com/augmentedstartups/YOLOX.git
# Installing requirements.txt
%cd YOLOX
!...
0
votes
1
answer
40
views
Mediapipe - Differentiated extraction of hand landmarks based on handedness (right and left) in a C++ framework
I am writing a calculator in C++ "Hand_Landmark_Write_To_File_Calculator" to write in a file the normalized position of the hand mark (x, y, z) as a function of the handedness.
The inputs to ...
0
votes
0
answers
26
views
i am trying to get x and y values from stereo zed cam of a custom dataset for detection(cone set), i am using yolov7
i am working with stereo zed cam to extract the x and y values and store them as a list or array. i used custom dataset which is detect.py and trained those images. but i am getting and error. this ...
-1
votes
0
answers
23
views
Detect a bounding box around the inner circle
I want to detect a bounding box around the inner circle. The images are grey scale images as below. What are the best approaches to detect the circle?
The images are grey scale and formed by stitching ...
0
votes
1
answer
53
views
Jitter in OpenCV Circle Detection
I am working on a project and I need to determine the location of circles in a live feed from a camera.
I have already managed to get this kinda running, but I get a weird jitter with the recognition ...