Skip to main content
Skip table of contents

LensController

Last updated: 2025/3/7 10:58:52

Path To

Name

Description/Function

/api/lens

/focus/limit/{farLimit}/{nearLimit}

Set focus limit in AF.

/api/lens

/focus/auto

Enable auto focus on the lens.

/api/lens

/focus/manual

Enable manual focus on the lens.

/api/lens

/focus/far

Focus the lens far.

/api/lens

/focus/near

Focus the lens near.

/api/lens

/focus/limit

Gets the AF limits set in the sysProp.

/api/lens

/focus/region/{x}/{y}

Set AF region upon click events.

/api/lens

/focus

Get the current focus value.

/api/lens

/type

Get the lens type.

/api/lens

/zoom

Get the zoom level.

/api/lens

/focus/toggle

Toggle the focus between auto and manual.

/api/lens

/focus/isauto

Gets a value indicating whether the lens is in auto focus.

/api/lens

/ois/isenabled

Get a value indicating whether OIS is enabled.

/api/lens

/ois/disable

Disable OIS.

/api/lens

/ois/enable

Enable OIS.

/api/lens

/pan/left

Activates a pan left action.

/api/lens

/pan/left/{speed}

Activates a pan left with a specific speed.

/api/lens

/pan/right

Activates a pan right action.

/api/lens

/pan/right/{speed}

Activates a pan right action and specifies the speed.

/api/lens

/focus/{value}

Set the focus value.

/api/lens

/ptz/stop

Stops all continuous PTZ actions.

/api/lens

/tilt/down/{speed}

Activates a tilt down action and specifies the speed.

/api/lens

/tilt/down/

Activates a tilt down action and specifies the speed.

/api/lens

/tilt/up/{speed}

Activates a tilt up action and specifies the speed.

/api/lens

/tilt/up

Activates a tilt up action and specifies the speed.

/api/lens

/zoom/in

Zoom the lens in.

/api/lens

/zoom/out

Zoom the lens out.

/api/lens

/zoom/{value}

Set the zoom level.

/focus/limit/{farLimit}/{nearLimit}

Function

Set focus limit in AF.

Method

Get

Response

Set limit for near.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/focus/limit/{farLimit}/{nearLimit}

/focus/auto

Function

Enable auto focus on the lens.

Method

Get

Response

Status code 200, for an completed operation being preformed.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/focus/auto

/focus/manual

Function

Enable manual focus on the lens.

Method

Get

Response

Status code 200, for an completed operation being preformed.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/focus/manual

/focus/far

Function

Focus the lens far.

Method

Get

Response

The lens position.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/focus/far

/focus/near

Function

Focus the lens near.

Method

Get

Response

The lens position.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/focus/near

/focus/limit

Function

Gets the AF limits set in the sysProp.

Method

Get

Response

Far and near values.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/focus/limit

/focus/region/{x}/{y}

Function

Set AF region upon click events.

Method

Get

Response

y coordinates.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/focus/region/{x}/{y}

/focus

Function

Get the current focus value.

Method

Get

Response

A representing the asynchronous operation.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/focus

/type

Function

Get the lens type.

Method

Get

Response

The lens type.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/type

/zoom

Function

Get the zoom level.

Method

Get

Response

Current zoom position.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/zoom

/focus/toggle

Function

Toggle the focus between auto and manual.

Method

Get

Response

Status code 200, for an completed operation being preformed.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/focus/toggle

/focus/isauto

Function

Gets a value indicating whether the lens is in auto focus.

Method

Get

Response

True if the lens is in auto focus. False if it's in auto focus.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/focus/isauto

/ois/isenabled

Function

Get a value indicating whether OIS is enabled.

Method

Get

Response

True if OIS is enabled.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/ois/isenabled

/ois/disable

Function

Disable OIS.

Method

Get

Response

Status code 200, for an completed operation being preformed.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/ois/disable

/ois/enable

Function

Enable OIS.

Method

Get

Response

Status code 200, for an completed operation being preformed.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/ois/enable

/pan/left

Function

Activates a pan left action.

Method

Get

Response

Status code 200, for an completed operation being preformed.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/pan/left

/pan/left/{speed}

Function

Activates a pan left with a specific speed.

Method

Get

Response

given speed.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/pan/left/{speed}

/pan/right

Function

Activates a pan right action.

Method

Get

Response

Status code 200, for an completed operation being preformed.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/pan/right

/pan/right/{speed}

Function

Activates a pan right action and specifies the speed.

Method

Get

Response

The speed as a percentage integer.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/pan/right/{speed}

/focus/{value}

Function

Set the focus value.

Method

Get

Response

A representing the asynchronous operation.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/focus/{value}

/ptz/stop

Function

Stops all continuous PTZ actions.

Method

Get

Response

Status code 200, for an completed operation being preformed.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/ptz/stop

/tilt/down/{speed}

Function

Activates a tilt down action and specifies the speed.

Method

Get

Response

The speed as a percentage integer.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/tilt/down/{speed}

/tilt/down/

Function

Activates a tilt down action and specifies the speed.

Method

Get

Response

Status code 200, for an completed operation being preformed.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/tilt/down/

/tilt/up/{speed}

Function

Activates a tilt up action and specifies the speed.

Method

Get

Response

The speed as a percentage integer.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/tilt/up/{speed}

/tilt/up

Function

Activates a tilt up action and specifies the speed.

Method

Get

Response

Status code 200, for an completed operation being preformed.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/tilt/up

/zoom/in

Function

Zoom the lens in.

Method

Get

Response

Current zoom position.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/zoom/in

/zoom/out

Function

Zoom the lens out.

Method

Get

Response

Current zoom position.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/zoom/out

/zoom/{value}

Function

Set the zoom level.

Method

Get

Response

A representing the asynchronous operation.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/lens/zoom/{value}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.