Below are functions available in the VisionScript language.
Input
-
Load[]
Load an image from a file or a URL. Also, load all images in a folder.
-
SetRegion[]
Filter detections by region.
Process
-
Blur[]
Blur an image
-
Cutout[]
Cut out the region of a bounding box returned by an object detection model.
-
FilterByClass[]
Filter predictions by class(es)
-
Greyscale[]
Convert an image to greyscale
-
Paste[]
Paste the last item on the stack to an x,y coordinate.
-
PasteRandom[]
Paste the last item on the stack to a random x,y coordinate.
-
Profile[]
Enable the profiler to see how long each function takes to run.
-
Replace[]
Replace the region of a bounding box returned by an object detection model.
-
Resize[]
Resize an image
-
Rotate[]
Rotate an image
-
SetBrightness[]
Set the brightness of an image
-
SetConfidence[]
Set the confidence percentage by which to filter predictions
-
Size[]
Get the size of an image.
Find
-
Caption[]
Generate a caption for an image.
-
Classify[]
Classify objects in an image
-
ComparePose[]
Compare two poses.
-
Count[]
Count the number of predictions in an image
-
CountInRegion[]
Count the number of predictions in a region of an image
-
Describe[]
See Caption[].
-
Detect[]
Find objects in an image.
-
DetectPose[]
Identify a human pose.
-
Find[]
See Detect[].
-
First[]
Get first item in list.
-
GetEdges[]
Uses Sobel edge detection to find the edges in an image.
-
GetText[]
Retrieve text in an image
-
Last[]
Get lasts item in list.
-
ReadQR[]
Read a QR code and return the text associated with the QR code.
-
Search[]
Search a folder of images with a text query.
-
Segment[]
Find objects in an image at a pixel level.
-
Similarity[]
Get the similarity between two or more images.
Output
-
Compare[]
Show two or more images side by side
-
GetDistinctScenes[]
Get the distinct scenes in a video
-
GetFPS[]
Get the FPS of a video or video stream.
-
Not[]
Turn a True statement into a False statement, or a False statement into a True statement.
-
Random[]
Get a random item from a list.
-
Save[]
Save an image or detections to a file
-
Say[]
Say a message
-
Show[]
Display an image.
-
ShowText[]
Show text on an image
-
ShowText[]
Show text on an image
-
Web[]
Show text on an image
Logic
-
Break[]
Exit out of an In[] or UseCamera[] statement.
-
Breakpoint[]
Pause program runtime and start a debugging session.
-
Equality (==, !=)
Test for equality or inequality between two values.
-
Exit[]
Exit the program
-
If[]
Run code if a statement is true.
-
Import[]
Import a .vic file.
-
In[]
Iterate over all images in a folder or frames in a video.
-
Make[]
Define a function.
-
Read[]
Read the value at the top of the stack. Used in if statement conditionals.
-
Reset[]
Reset program state to a blank initialization.
-
Select[]
Select an item from a list.
-
Use[]
Declare a model to use