Files
cell/docs/api/modules/camera.md
John Alanbrook 96ef8ccba3
Some checks failed
Build and Deploy / package-dist (push) Has been cancelled
Build and Deploy / deploy-itch (push) Has been cancelled
Build and Deploy / deploy-gitea (push) Has been cancelled
Build and Deploy / build-linux (push) Has been cancelled
Build and Deploy / build-windows (CLANG64) (push) Has been cancelled
Add camera and debug modules
2025-02-21 17:15:58 -06:00

822 B

camera

list() function

Return an array of available camera device IDs.

Returns: An array of camera IDs, or undefined if no cameras are available.

open(id) function

Open a camera device with the given ID.

id: The camera ID to open.

Returns: A camera object on success, or throws an error if the camera cannot be opened.

name(id) function

Return the name of the camera with the given ID.

id: The camera ID to query.

Returns: A string with the camera's name, or throws an error if the name cannot be retrieved.

position(id) function

Return the physical position of the camera with the given ID.

id: The camera ID to query.

Returns: A string indicating the camera position ("unknown", "front", or "back").