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
|
/focus/auto
Function | Enable auto focus on the lens. |
---|---|
Method | Get |
Response | Status code 200, for an completed operation being preformed. |
Example |
CODE
|
/focus/manual
Function | Enable manual focus on the lens. |
---|---|
Method | Get |
Response | Status code 200, for an completed operation being preformed. |
Example |
CODE
|
/focus/far
Function | Focus the lens far. |
---|---|
Method | Get |
Response | The lens position. |
Example |
CODE
|
/focus/near
Function | Focus the lens near. |
---|---|
Method | Get |
Response | The lens position. |
Example |
CODE
|
/focus/limit
Function | Gets the AF limits set in the sysProp. |
---|---|
Method | Get |
Response | Far and near values. |
Example |
CODE
|
/focus/region/{x}/{y}
Function | Set AF region upon click events. |
---|---|
Method | Get |
Response | y coordinates. |
Example |
CODE
|
/focus
Function | Get the current focus value. |
---|---|
Method | Get |
Response | A representing the asynchronous operation. |
Example |
CODE
|
/type
Function | Get the lens type. |
---|---|
Method | Get |
Response | The lens type. |
Example |
CODE
|
/zoom
Function | Get the zoom level. |
---|---|
Method | Get |
Response | Current zoom position. |
Example |
CODE
|
/focus/toggle
Function | Toggle the focus between auto and manual. |
---|---|
Method | Get |
Response | Status code 200, for an completed operation being preformed. |
Example |
CODE
|
/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
|
/ois/isenabled
Function | Get a value indicating whether OIS is enabled. |
---|---|
Method | Get |
Response | True if OIS is enabled. |
Example |
CODE
|
/ois/disable
Function | Disable OIS. |
---|---|
Method | Get |
Response | Status code 200, for an completed operation being preformed. |
Example |
CODE
|
/ois/enable
Function | Enable OIS. |
---|---|
Method | Get |
Response | Status code 200, for an completed operation being preformed. |
Example |
CODE
|
/pan/left
Function | Activates a pan left action. |
---|---|
Method | Get |
Response | Status code 200, for an completed operation being preformed. |
Example |
CODE
|
/pan/left/{speed}
Function | Activates a pan left with a specific speed. |
---|---|
Method | Get |
Response | given speed. |
Example |
CODE
|
/pan/right
Function | Activates a pan right action. |
---|---|
Method | Get |
Response | Status code 200, for an completed operation being preformed. |
Example |
CODE
|
/pan/right/{speed}
Function | Activates a pan right action and specifies the speed. |
---|---|
Method | Get |
Response | The speed as a percentage integer. |
Example |
CODE
|
/focus/{value}
Function | Set the focus value. |
---|---|
Method | Get |
Response | A representing the asynchronous operation. |
Example |
CODE
|
/ptz/stop
Function | Stops all continuous PTZ actions. |
---|---|
Method | Get |
Response | Status code 200, for an completed operation being preformed. |
Example |
CODE
|
/tilt/down/{speed}
Function | Activates a tilt down action and specifies the speed. |
---|---|
Method | Get |
Response | The speed as a percentage integer. |
Example |
CODE
|
/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
|
/tilt/up/{speed}
Function | Activates a tilt up action and specifies the speed. |
---|---|
Method | Get |
Response | The speed as a percentage integer. |
Example |
CODE
|
/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
|
/zoom/in
Function | Zoom the lens in. |
---|---|
Method | Get |
Response | Current zoom position. |
Example |
CODE
|
/zoom/out
Function | Zoom the lens out. |
---|---|
Method | Get |
Response | Current zoom position. |
Example |
CODE
|
/zoom/{value}
Function | Set the zoom level. |
---|---|
Method | Get |
Response | A representing the asynchronous operation. |
Example |
CODE
|