VisionScript has the following data types:
Detection
: One or more detections from aDetect[]
orSegment[]
call.Image
: An image.Pose
: The results from aDetectPose[]
call.String
: Text.Integer
: A whole number.Boolean
: A True or False statement.
You can inspect the type of the last item on the stack by using an Is[]
statement:
Is[]
To inspect the value of a specific type, add the value whose type you want to inspect as an argument to Is[]
:
Is[Detect["cat"]]