object-detection

How can I evaluate multiple checkpoints with the TF2 Object Detection?

How can I evaluate multiple checkpoints with the TF2 Object Detection? Question: I’ve successfully trained a model with around 16k steps which produced quite a few checkpoints that are saved in my training folder. I want to make sure that I am not running into overfitting issues, so I would like to evaluate every single …

Total answers: 1

(Tensorflow) TypeError: create_estimator_and_inputs() missing 1 required positional argument: 'hparams'

(Tensorflow) TypeError: create_estimator_and_inputs() missing 1 required positional argument: 'hparams' Question: I try to train a model object detection and I follow this tutorial: https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/tensorflow-1.14/training.html But at the end I execute the command in the cmd : python model_main.py –alsologtostderr –model_dir=training/ –pipeline_config_path=training/ssd_inception_v2_coco.config and it return the following lines: Traceback (most recent call last): File "model_main.py", line …

Total answers: 1

Crop Boxes in Tensorflow Object Detection and display it as jpg image

Crop Boxes in Tensorflow Object Detection and display it as jpg image Question: I’m using the tensorflow objection detection to detect specific data on passports like full name and other things. I’ve already trained the data and everything is working fine. It perfectly identifies data surrounding it with a bounding box. However, now I just …

Total answers: 2

YOLOv4 annotations saves dimensions in a [0,1] float interval

YOLOv4 annotations saves dimensions in a [0,1] float interval Question: This is from an annotations file for an image: 0 0.6142131979695431 0.336 0.467005076142132 0.392 The first 0 is the class label. 0.6142131979695431 and 0.336 are the x and y coordinates of the bounding box. 0.467005076142132 and 0.392 are the width and the height of the …

Total answers: 1

Check if the rectangle contour contains numbers inside or not? (OpenCV – Python)

Check if the rectangle contour contains numbers inside or not? (OpenCV – Python) Question: I know the quality is so so bad, but that’s original image gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) rectKern = cv2.getStructuringElement(cv2.MORPH_RECT, (85, 64)) blackhat = cv2.morphologyEx(gray, cv2.MORPH_BLACKHAT, rectKern) edges = cv2.Canny(light, 120, 255, 1) squareKern = cv2.getStructuringElement(cv2.MORPH_RECT, (3, 3)) light = cv2.morphologyEx(gray, cv2.MORPH_OPEN, …

Total answers: 1

How to get the coordinates of a bounding box in YOLO?

How to get the coordinates of a bounding box in YOLO? Question: I am trying to get the coordinates of a bounding box in YOLOv4. I followed the accepted answer provided here. But, even after editing the image.c file I can not see the BBox coordinates. What am I doing wrong? I am running YOLO …

Total answers: 3

How to resolve the error "cannot import name 'string_int_label_map_pb2' from 'object_detection.protos'"

How to resolve the error "cannot import name 'string_int_label_map_pb2' from 'object_detection.protos'" Question: My friends and I are partaking in a hackathon and are stuck on this one tutorial on training an object detection model: https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/training.html But after three people have tried to follow the above tutorial to the letter, we are all stuck on the …

Total answers: 2

Merging each instance mask back to the original image Python

Merging each instance mask back to the original image Python Question: I am having a bunch of mask (object is white, non-object is black) bounded by their bounding box as a separate image, and I’m trying to put them back to their original positions on the original image. What I have in mind right now …

Total answers: 1

How to filter contours based on their approximate shape in a Binary video frames

How to filter contours based on their approximate shape in a Binary video frames Question: I’m working on a project where i have to detect a red vehicle (please see image below). As i believe that this can be achieved with out using Deep learning (overkill in this case), i used histogram Back projection depending …

Total answers: 2