Skip to main content

EOIDetectionObject

eyesonit-typescript-sdk


eyesonit-typescript-sdk / EOIDetectionObject

Class: EOIDetectionObject

Constructors​

Constructor​

new EOIDetectionObject(object_descriptions, detection_types, class_confidence, class_name?, bounds?, image?, face?, similarity?): EOIDetectionObject

Parameters​

object_descriptions​

EOIObjectDescription[]

detection_types​

string[]

class_confidence​

number

class_name?​

string

bounds?​

EOIBoundingBox

image?​

string

face?​

EOIFaceDetectionObject

similarity?​

EOISimilarityDetectionObject

Returns​

EOIDetectionObject

Properties​

object_descriptions​

object_descriptions: EOIObjectDescription[]


detection_types​

detection_types: string[]


class_confidence​

class_confidence: number


class_name?​

optional class_name: string


bounds?​

optional bounds: EOIBoundingBox


image?​

optional image: string


face?​

optional face: EOIFaceDetectionObject


similarity?​

optional similarity: EOISimilarityDetectionObject

Methods​

fromJsonObj()​

static fromJsonObj(obj): EOIDetectionObject

Parameters​

obj​

any

Returns​

EOIDetectionObject


getConfidenceForDescription()​

getConfidenceForDescription(description): number | null

Parameters​

description​

string

Returns​

number | null


getMaxConfidenceDescription()​

getMaxConfidenceDescription(): [string, number] | null

Returns​

[string, number] | null