object-detection

How to detect figures in a paper news image in Python?

How to detect figures in a paper news image in Python? Question: So i have this project in Python (Computer Vision), which is seperating text from figures of an image (like a paper news image). My question is what’s the best way to detect those figures in the paper ? (in Python). Paper image example …

Total answers: 5

!_map1.empty() in function 'cv::remap'

!_map1.empty() in function 'cv::remap' Question: I am trying to build this stereo vision obstacle distance detection system using a tutorial, but keep hitting a brick wall and could use some advice, please. When running either disparity2depth or obstacle_avoidance files, I get the same xml file read errors and remap error at both rectification lines. [error:[email protected]] …

Total answers: 1

How to load custom yolo v-7 trained model

How to load custom yolo v-7 trained model Question: How do I load a custom yolo v-7 model. This is how I know to load a yolo v-5 model : model = torch.hub.load(‘ultralytics/yolov5’, ‘custom’, path=’yolov5/runs/train/exp15/weights/last.pt’, force_reload=True) I saw videos online and they suggested to use this : !python detect.py –weights runs/train/yolov7x-custom/weights/best.pt –conf 0.5 –img-size 640 …

Total answers: 4

opencv bounding box issue

opencv bounding box issue Question: I have an image I need to draw a bounding box around and I’m trying to use the code at bottom of this post. The issue I have is that I have tried to blur the blue box shape to remove its details e.g. cv2.blur(img,(20,20)) but the blurred image doesnt …

Total answers: 1

Detecting the onion co-ordinates in an onion field

Detecting the onion co-ordinates in an onion field Question: Due to lack of data, I have been asked to implement a non-data driven approach to find the co-ordinates of the onions in the onion field. The image would be an elevated front view. Here is the image of an Onion Field: I have tried the …

Total answers: 2

How to rotate a rectangle/bounding box together with an image

How to rotate a rectangle/bounding box together with an image Question: I’m working on a data augmentation and im trying to generate synthetic version of every image in my dataset. So i need to rotate images and together with bounding boxes as well in the images. im only going to rotate images by 90, 180, …

Total answers: 3

Drawing bbox for realtime object detection without ML

Drawing bbox for realtime object detection without ML Question: I am attempting to do real-time object detection without any ML. The approach is to identify the object per its color profile. I am trying to identify a rectangular object with a single colour and draw a bounding box. This is the code: import cv2 import …

Total answers: 2

ERROR when trying to compile protoc files: file not found or had errors

ERROR when trying to compile protoc files: file not found or had errors Question: I am trying to compile protoc files using this command: protoc/bin/protoc models/research/object_detection/protos/*.proto –python_out=. but I am getting this output on cmd object_detection/protos/flexible_grid_anchor_generator.proto: File not found. object_detection/protos/grid_anchor_generator.proto: File not found. object_detection/protos/multiscale_anchor_generator.proto: File not found. object_detection/protos/ssd_anchor_generator.proto: File not found. models/research/object_detection/protos/anchor_generator.proto:5:1: Import "object_detection/protos/flexible_grid_anchor_generator.proto" was …

Total answers: 3