Detection of Blur in Images/Video sequences

I had asked this on photo stackexchange but thought it might be relevant here as well, since I want to implement this programatically in my implementation. I am trying to implement a blur...

How to recalculate axis-aligned bounding box after translate/rotate

When I first load my object I calculate the initial AABB with the maximum and minimum (x,y,z) points. But this is in object space and the object moves around the world and more importantly,...

C#: Chained Linq methods and casting

I have a little game, where I implemented some collision detection. Now I want to get a list of all items of a specific type, which are colliding with the current "Entity" object. I want to do...

OpenCV C++/Obj-C: Proper object detection

As some kind of "holiday project" I'm playing around with OpenCV and want to detect and measure stuff. Current workflow (early stage - detection): Convert to grayscale (cv::cvtColor) Apply...

Real time face detection using Viola and Jones in MATLAB

I am looking to detect faces in real time video captured from laptop camera. I use MATLAB R2011a (not the latest one) which does not have any Cascade Object Classifier function to identify face...

Meaning of "False Positives Per Window"

In the paper Histograms of Oriented Gradients for Human Detection (Navneet Dalal and Bill Triggs) (see link below), to visualize their results, they use a ROC curve, on which the Y axis is TP and...

Angular2 how to update an item inside an observable collection

Update, in short: I am looking for the equivalent of doing something like this but for an Observable rather than a regular array: var i = this.customers.findIndex(customer => customer._id ===...

what is anisotropic scaling in computer vision?

What is anisotropic scaling? And how is it achieved w.r.t image processing and computer vision? I understand that it is some form of non-uniform scaling as Wikipedia puts it, but I still don't get...

Collision detection algorithm in Javascript

I want to create a function that make collision detection with two objects in canvas using JavaScript. I have coin objects and piggy bank objects. I am trying to create a function that when the...

how to stream multiple camera feeds to single socket in python

I am working on a module where i have to detect some predefined objects in the video stream. For object detection i am using YOLO. I need to process multiple camera feeds in parallel. I tried...

How do we approximately calculate how much memory is required to run a program?

Today I was trying to implement an object detection API in Tensorflow. After carrying out the training process, I was trying to run the program to detect objects in webcam. As I was running it,...

SavedModel file does not exist at saved_model/{saved_model.pbtxt|saved_model.pb}

I'm try running Tensorflow Object Detection API on Tensorflow 2 and I got that error, can someone have a solution? The code : Loader def load_model(model_name): base_url =...

Unable to run faster R-CNN with elastic inference and tensorflow serving - how to debug?

I have found a saved_model from Tensorflow's Model Zoo. I am able to run my Faster R-CNN model locally using the following code: image_np = np.array(Image.open('my_input.jpg')) image =...

Translate Firebase MLKit Bounding box coordinates to screen view coordinates

I am using the FirebaseVision Object detection to detect things from the CameraX camera preview. It is detecting things find but I am trying to draw the bounding box of the items detected over the...

OpenCV Image Coordinates to World Coordinates Conversion Issue

I am trying to capture an image of an object with a monocular camera and with : First a normal calibration of the camera And then a perspective calibration of the camera using known object...

"error: (-2:Unspecified error) Can't create layer" shows while using net.detect in python.how to fix this type problem?

I am facing a problem in classIds, confs, bbox = net.detect(img,confThreshold=float(0.5)). How to fix it?Please help.Thanks in advance. import cv2 img= cv2.imread('lena.png') classNames=...

TF object detection: return subset of inference payload

Problem I'm working on training and deploying an instance segmentation model using TF's object detection API. I'm able to successfully train the model, package it into a TF Serving Docker image...

How to Create Class Label for Mosaic Augmentation in Image Classification?

To create a class label in CutMix or MixUp type augmentation, we can use beta such as np.random.beta or scipy.stats.beta and do as follows for two labels: label = label_one*beta +...

TypeError: Could not build a TypeSpec with type KerasTensor

I am a newbie to deep learning so while I am trying to build a Masked R-CNN model for training my Custom Dataset I am getting an error which reads: TypeError: Could not build a TypeSpec for...

EXC_BAD_ACCESS on VNSequenceRequestHandler

The following code uses the Vision and AVFoundation frameworks to enable face tracking on the built-in camera on macOS. In some circumstances the code crashes due to EXC_BAD_ACCESS (code=2) on a...

Converting TF2 Object detection API model to frozen graph

I trained model ssd_resnet50_v1_fpn_640x640_coco17_tpu-8 using Tensorflow object detection API https://github.com/tensorflow/models/blob/master/research/object_detection/model_main_tf2.py After I...

Errors when attempting to run object detection

The code that im trying to run import cv2 cap = cv2.VideoCapture(1) cap.set(3,640) cap.set(4,480) classNames = [] classFile = 'coco.names' with open(classFile, 'rt') as f: classNames =...

Tensorflow2 Object Detection Counting API for tutorial

I've racked my brain at customizing the TensorFlow object detection using webcam tutorial to count how many objects are detected from each classification. I trained my custom detection model using...

How to count objects using tensorflow model?

i want to count detected objects based on detection scores. I am using EdjeElectronics's Object detection code. And here's the code i've been using: # Input tensor is the image image_tensor =...

error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support

I was working on a sign language detection project on jupyter notebook. While running the code for live detection I encountered an error as shown below: OpenCV(4.5.1)...

Integrate yolo custom object detector in flutter app is not detecting any object

I was traying to integrate my custom YOLO models (I try with YOLOv3 and YOLOv4) to flutter like was show in https://stackoverflow.com/a/62990869/9420938. However when I call...

How do I draw bounding boxes from "results.xyxy[0]" with cv2 rectangle (YOLOv5)?

New to both python and machine learning. I'm trying to draw bounding boxes on my mss screen capture. This is the part of the code where I believe I should be receiving the coordinates to draw the...

TypeError: object of type 'numpy.float32' has no len()

I have had Tensorflow Lite running on a Raspberry Pi for a while to do some object detection, I have tried it on a few test models with no problems at all. Recently I tried to make my own model...

Segmentation Fault when running Tensorflow Lite Model

I am running Tensorflow Lite on my Raspberry Pi 3b+ with a custom object detection mode. I have tested it on a Google COCO dataset and it works wonderfully but when I test it on my custom trained...

cannot import name '_registerMatType' from 'cv2.cv2'

I got below error message when I run model_main_tf2.py on Object Detection API. " Traceback (most recent call last): File "/content/models/research/object_detection/model_main_tf2.py", line 32,...