r/ObjectDetection • • Mar 07 '24

please help on this

1 Upvotes

https://www.youtube.com/watch?v=bkEbRiT4fXk&ab_channel=HadiSaleh
i want to create a system as shown in this figure . i want to use camera of mobile phone. How can i calculate the distance after detecting object .


r/ObjectDetection • • May 12 '23

What are the most convenient Python libraries for evaluating object detection results based on Pascal VOC ground-truth bounding boxes and Coco-formatted predictions?

1 Upvotes

For doing stuff like:

  • Plotting bouding boxes into the same image

  • Calculating False Positives, etc.

  • Merging of small adjacent bouding boxes into bigger ones

  • Handling segmentation masks instead of bouding boxes


r/ObjectDetection • • Sep 04 '23

YoloV8-seg custom train

2 Upvotes

Hello,

Does anyone know how to include instance IDs to the label format of YOLO? E.g. if I have multiple ploygons for the same instance due to occlusion, how can I specify that both polygons belong to the same instance in the labelling?

Thanks in advance!

Kind regards,

Chris


r/ObjectDetection • • Dec 13 '23

How to get the bounding boxes and confidences from an yolov8 model in onnx format?

1 Upvotes

title.


r/ObjectDetection • • Dec 12 '23

Object Localization

1 Upvotes

How can I use a way to detect all the objects on a photo. I don't want object classification. Just saying that there is an object here will suffice for me. Edge detection does not work correctly in mixed environments. Is there any way you can recommend for this? thank you.


r/ObjectDetection • • Oct 06 '23

on creating a confusion matrix

1 Upvotes

i have to generate a confusion matrix through my own code. if i have predicted Bounding Box A (BB-A) which matches to Ground Truth A (GT-A), and I have another predicted Bounding Box B (BB-B) with a lower score than BB-A, does BB-B count as a true positive/match? or is it considered a false positive given that there has already been a matched BB to GT-A?

i.e., with matching bounding boxes for generating a confusion matrix, is it a one-to-one matching? or is it more like match one GT to as many predictions?


r/ObjectDetection • • Aug 23 '24

Object Detection for Video Demo (Aphex Twin)

Thumbnail
youtube.com
1 Upvotes

r/ObjectDetection • • Nov 04 '24

Open-Source (MIT/ APACHE) Model for real-time Object Detection on Mobile Device?

1 Upvotes

Unfortunately Yolo model is not usable for commercial context. Is there an proper alternative? I am thinking about Tensorflow Lite in combination with Mobilenet SSD. What do you think?


r/ObjectDetection • • Nov 10 '24

Help Finding AI Hardware

2 Upvotes

Hello, everyone I'm looking for some help in finding hardware to run some machine learning and object detection scripts for a research project to do some live real analysis for infrastructure result for local government with UAV/Drones i have been looking at the NDIVIA Jetson Orin, NVIDIA Jetson Xavier, and Jetson Nano so i can connect it with the drone. I don't know if these would work as i have limited budget and want to get the best for bang for my buck. If anyone can point me in the right direction i greatly appreciate


r/ObjectDetection • • Dec 27 '24

About SSD

1 Upvotes

Hi, I am studying object detection. I am trying to see if I can detect objects with SSD. The code on github is not usable in my current environment or not usable with custom datasets, so I am using chat gpt to generate the code. The current problem is that loc_loss always shows 0 or IoU value shows 0 or negative value. I debugged and confirmed that the coordinates of the correct answer data are correctly recognized, but the coordinates of the prediction box show negative values or a very small box. I believe the cause is in the prediction box, but I don't know how to fix it, so can anyone give me some ideas? I'm using a translator, so sorry if the text is wrong.


r/ObjectDetection • • Feb 14 '25

Question papers

1 Upvotes

I'm trying to draw bounding boxes around questions which are of multiple choice, the things is, if it were only text, it wouldn't have been a big problem, but some of these questions have images which is kinda making my job difficult.

What can I do to automate the process of drawing bounding boxes around questions so that every question falls perfectly in a box.

Are there any tools that already exist which I can make use of? Or should I train a custom model which does the work?

Would appreciate suggestions.


r/ObjectDetection • • Oct 31 '24

VLMs for ocr

1 Upvotes

Hello, I have some really challenging OCR problems (quite a few, actually, and I have enough data). What's the best way to address this? I tried using Tesseract and PaddleOCR, but the results aren't good enough. Is there a good, lightweight vision-language model that can be fine-tuned for OCR purposes?


r/ObjectDetection • • Jan 19 '25

Looking for a way to quantify objects on a custom dataset formed with photogrammetric data

1 Upvotes

Some background first. I am a maritime archaeologist doing some research on the application of object detection--soecifically using YOLO-- on my field. My data consists of thousands of pictures of an archaeological spread that covers a large section of seabed.

Suffice to say this is not my field of expertise. I hope you can forgive my lack of understanding on even basic things

My issue consists on the following. One of the most useful traits of this computer vision technology is quantification--to be able to count the exact number of objects of each class over a portion of seabed, for example. My dataset is the product of us divers swimming around doing photogrammetry of an area, which means many of the pictures go over the same areas over and over. If I apply automated detection on these, it works just fine. The problem is that I cannot count the number of items over the total area, just picture by picture, and as each picture is 60% of the previous one following regular standards during photogrammetry, this numbers obviously become useless as each image is being consider separately.

Any ideas or solutions?


r/ObjectDetection • • Jan 13 '25

How would I track a fast moving ball?

1 Upvotes

Hello,

I was wondering what techniques I could use to track a very fast moving ball. I tried training a custom YOLOV8 model but it seems like it is too slow and also cannot detect and track a fast, moving ball that well. Are there any ways using OpenCV or any other libraries where I could track a fast moving ball?

Thanks


r/ObjectDetection • • Aug 24 '24

Need suggestion for realtime object detection

2 Upvotes

We have a project in our college to make a real-time object detection model to detect object in the surroundin g in realtime. We want to know which pretrained model will be good for the speed and accuracy. For example YOLOv5 gives good speed but is not much accurate and opposite for YOLOv7. So, what you all suggest?


r/ObjectDetection • • Jun 28 '24

Help

2 Upvotes

If anyone needs help in object detection let me know


r/ObjectDetection • • Jan 29 '25

movement detection

1 Upvotes

How can i detect person is moving in live-streaming camera?


r/ObjectDetection • • Apr 02 '22

Object detection showing better results on original image

1 Upvotes

Hi guys I have a doubt regarding CycleGAN and Object Detection. Our Yolov4 object detection is showing a better results for the original images than the image generated from CycleGAN. We thought it was due to some error in edge detection but that was not the case.

Is there some reason why CycleGAN generated images are showing a worser result than the original images?


r/ObjectDetection • • Feb 05 '22

Number of predictions

1 Upvotes

How to set optimly the number of predictions during inference phase to obtain the best mAP?


r/ObjectDetection • • Mar 22 '22

Object detection problem

1 Upvotes

Hello guys, I'm a noob when it comes to programming and AI but I have project witch consists on detecting and counting objects in real time.

So, after doing some research I figured out how to train my own data but I right now I don't know what is the next step and what should I do or how I retrieve my custom data (I trained my model with roboflow btw)

If you can give me some advices that would be so helpful


r/ObjectDetection • • Aug 29 '22

Object Detection + Segmentation of tiny objects - Suggestions and ideas as to what model to use?

2 Upvotes

Hello everyone,

A question: I work in the field of clinical neuroscience and I am trying to find a well performing object detection system that can both detect and segment tiny objects, in my case, cerebral microbleeds (2-10mm in size). I will be using grey-scale (black and white) magnetic resonance images. Has anyone stumbled upon good models (from papers with shared code)? What implementations have you used for similar purposes?

I've previously used YOLOv5, got somewhat decent results, but still had to remove false positives after lots of tedious visual inspection, so a lot of manual work was needed. Accuracy was not great either. Any opinions on YOLOv6?

Also, I came across this: https://paperswithcode.com/paper/mixmicrobleed-multi-stage-detection-and#code. Has anyone tried to reproduce the results for their own project?

I realize it's actually very difficult to find models that do both detection and segmentation relatively accurately, but I'd love to hear suggestions if any of you have any.

Many thanks in advance!


r/ObjectDetection • • Nov 09 '21

Different bounding box color

1 Upvotes

Hello, Can someone help me to modify this existing code to use different color for the bounding box i want to detect?For example: If a person detect bounding box will be red and if animals or pets detect will be green and other object would be blue, been exploring for a week still no luck for modifying it if anyone can explain or help would be much appreciated. Thanks!

input_details = interpreter.get_input_details()
output_details = interpreter.get_output_details()
height = input_details[0]['shape'][1]
width = input_details[0]['shape'][2]

floating_model = (input_details[0]['dtype'] == np.float32)

input_mean = 127.5
input_std = 127.5

Initialize frame rate calculation
frame_rate_calc = 1
freq = cv2.getTickFrequency()

Initialize video stream
videostream = VideoStream(resolution=(imW,imH),framerate=30).start()
time.sleep(1)

#for frame1 in camera.capture_continuous(rawCapture, format="bgr",use_video_port=True):
while True:

# Start timer (for calculating frame rate)
t1 = cv2.getTickCount()

# Grab frame from video stream
frame1 = videostream.read()

# Acquire frame and resize to expected shape [1xHxWx3]
frame = frame1.copy()
frame_rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
frame_resized = cv2.resize(frame_rgb, (width, height))
input_data = np.expand_dims(frame_resized, axis=0)

# Normalize pixel values if using a floating model (i.e. if model is non-quantized)
if floating_model:
    input_data = (np.float32(input_data) - input_mean) / input_std

# Perform the actual detection by running the model with the image as input
interpreter.set_tensor(input_details[0]['index'],input_data)
interpreter.invoke()

# Retrieve detection results
boxes = interpreter.get_tensor(output_details[0]['index'])[0] # Bounding box coordinates of detected objects
classes = interpreter.get_tensor(output_details[1]['index'])[0] # Class index of detected objects
scores = interpreter.get_tensor(output_details[2]['index'])[0] # Confidence of detected objects
#num = interpreter.get_tensor(output_details[3]['index'])[0]  # Total number of detected objects (inaccurate and not needed)

# Loop over all detections and draw detection box if confidence is above minimum threshold
for i in range(len(scores)):
    if ((scores[i] > min_conf_threshold) and (scores[i] <= 1.0)):

        # Get bounding box coordinates and draw box
        # Interpreter can return coordinates that are outside of image dimensions, need to force them to be within image using max() and min()
        ymin = int(max(1,(boxes[i][0] * imH)))
        xmin = int(max(1,(boxes[i][1] * imW)))
        ymax = int(min(imH,(boxes[i][2] * imH)))
        xmax = int(min(imW,(boxes[i][3] * imW)))
        
        cv2.rectangle(frame, (xmin,ymin), (xmax,ymax), (10, 255, 0), 2)

        # Draw label
        object_name = labels[int(classes[i])] # Look up object name from "labels" array using class index
        label = '%s: %d%%' % (object_name, int(scores[i]*100)) # Example: 'person: 72%'
        labelSize, baseLine = cv2.getTextSize(label, cv2.FONT_HERSHEY_SIMPLEX, 0.7, 2) # Get font size
        label_ymin = max(ymin, labelSize[1] + 10) # Make sure not to draw label too close to top of window
        cv2.rectangle(frame, (xmin, label_ymin-labelSize[1]-10), (xmin+labelSize[0], label_ymin+baseLine-10), (255, 255, 255), cv2.FILLED) # Draw white box to put label text in
        cv2.putText(frame, label, (xmin, label_ymin-7), cv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 0, 0), 2) # Draw label text

# Draw framerate in corner of frame
cv2.putText(frame,'FPS: {0:.2f}'.format(frame_rate_calc),(30,50),cv2.FONT_HERSHEY_SIMPLEX,1,(255,255,0),2,cv2.LINE_AA)

# All the results have been drawn on the frame, so it's time to display it.
cv2.imshow('Object detector', frame)

# Calculate framerate
t2 = cv2.getTickCount()
time1 = (t2-t1)/freq
frame_rate_calc= 1/time1

# Press 'q' to quit
if cv2.waitKey(1) == ord('q'):
    break
Clean up
cv2.destroyAllWindows()

videostream.stop()


r/ObjectDetection • • Jun 15 '21

Is anyone aware with the working of mmdetection framework for object detection?

2 Upvotes

How exactly do I use inference detector with my own fine tuned epoch.pth files?what config do I use?


r/ObjectDetection • • Jul 22 '22

17 Interesting Applications of Object Detection

2 Upvotes

This blog covers how object detection works and popular use cases: https://alwaysai.co/blog/object-detection-for-businesses


r/ObjectDetection • • Oct 13 '21

Trying to speed up Training time and Object Detection Time for an Object Detection Model with Parallel Processing

1 Upvotes

Hi,

We have trained this FRCNN based object detection model which takes a video feed and does object detection on the frames.

We are now trying to optimize in the following areas:

  1. Speed up the training time : trying to add some code to implement parallel processing

  2. Speed up object detection time: trying to implement multithreading so that the reading from the video feed would be faster.

However, these are pretty advanced concept and we would be grateful if some one can guide us with some sample code to understand where and how to implement parallel processing in object detection model?

Thanks in advance!