ai-lab icon indicating copy to clipboard operation
ai-lab copied to clipboard

[FEATURE] Detatch confidence from labels

Open GantMan opened this issue 3 years ago • 0 comments

Currently if no labels are passed, the confidence is not show, only the bounding box.

So this code:

          <AILabLocalVideo
            ObjectDetectionUI={AILabObjectDetectionUI}
            model={model}
            modelConfig={{
              modelType: 'ssd',
              // labels: CLASSES,
            }}
            visual
            src={'/walkers.mov'}
          />

creates this result: image


But when you add labels, the label AND the confidence are displayed.

So this code:

          <AILabLocalVideo
            ObjectDetectionUI={AILabObjectDetectionUI}
            model={model}
            modelConfig={{
              modelType: 'ssd',
              labels: CLASSES,
            }}
            visual
            src={'/walkers.mov'}
          />

creates this result: image


It would be cool if modelConfig had a setting for "confidence: true" that would show or hide the confidence regardless of the labels.

GantMan avatar Feb 19 '22 20:02 GantMan