EOIDetectionObject
eyesonit-typescript-sdk / EOIDetectionObject
Class: EOIDetectionObject
Constructors
Constructor
new EOIDetectionObject(
object_descriptions,detection_type,class_confidence,class_name?,bounds?,image?,face?,similarity?):EOIDetectionObject
Parameters
object_descriptions
detection_type
string
class_confidence
number
class_name?
string
bounds?
image?
string
face?
similarity?
Returns
EOIDetectionObject
Properties
object_descriptions
object_descriptions:
EOIObjectDescription[]
detection_type
detection_type:
string
class_confidence
class_confidence:
number
class_name?
optionalclass_name:string
bounds?
optionalbounds:EOIBoundingBox
image?
optionalimage:string
face?
optionalface:EOIFaceDetectionObject
similarity?
optionalsimilarity:EOISimilarityDetectionObject
Methods
fromJsonObj()
staticfromJsonObj(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