Descriptions of built-in commands available in AI CAPTURE OS
Executes camera frame capture and push notifications to your smartphone.
Command | Description |
---|---|
push | Sends a push notification to your smartphone. When a push is sent, a tag is automatically added to the recording timeline, allowing you to reference and seek that time in the app. You can also attach detection data to verify detection status in real-time. |
get_frame | Captures and saves the current camera frame. |
Option | Description |
---|---|
-t, --time | Unix timestamp (seconds). Defaults to the current time. |
-i, --image | Path to a JPEG image. Defaults to the current camera frame. Specify “-” to read the image from standard input. |
-j, --json | Path to a JSON file containing data to be pushed with the image. Format must be JSON. If omitted, an empty JSON is sent. |
-J, --json-str | JSON string to be pushed together with the image. If -j is also specified, the file input takes precedence. |
Option | Description |
---|---|
-o, --output | Output file path for the captured camera frame (JPEG). If omitted, outputs to standard output. |
# push command
aicap push -J '{"detected": true, "data": 0.12345}'
# get_frame command
aicap get_frame -o /tmp/frame.jpg
In AIBOX OS, the disk is converted to a RAM disk, except for /home.
With this command, you can enable/disable the RAM disk and check its status.
For a detailed explanation of the RAM disk, please see here.
Command | Description |
---|---|
enable | Enable the RAM disk (requires sudo). |
disable | Disable the RAM disk (requires sudo). |
status | Display current RAM disk status (enable / disable). |
# Enable the RAM disk
sudo ramdisk enable
# Check status
ramdisk status
# Disable the RAM disk
sudo ramdisk disable