nrtk.impls.gen_object_detector_blackbox_response.simple_generic_generator

This module defines the SimpleGenericGenerator class, an implementation of the GenerateObjectDetectorBlackboxResponse interface for generating item-response curves based on a set of images and ground-truth bounding box annotations.

Classes:

SimpleGenericGenerator: An example implementation that generates object detection responses for a sequence of images and their associated ground-truth data.

Dependencies:
  • numpy for handling image data.

  • smqtk_image_io for bounding box operations.

  • nrtk.interfaces for blackbox response generation interface.

Example usage:

images = [image1, image2, …] ground_truth = [

[(bbox1, {label1: score1}), (bbox2, {label2: score2})], …

] generator = SimpleGenericGenerator(images, ground_truth) image, ground_truth, metadata = generator[0]

Classes

SimpleGenericGenerator

Example implementation of the GenerateObjectDetectorBlackboxResponse interface.