Last Updated on : 2024-06-25 03:47:21download
The extended features of pan-tilt-zoom (PTZ) control include site favorites, preset points, and panorama stitching.
Add a site to favorites on the mobile app:
How to add a site to favorites:
The user rotates the camera to the intended position using the mobile app, taps Add, and names the site. The mobile app then sends this operation as a DP command to the camera, which is then sent to the PTZ component through E_TY_MSG_PTZ_PRESET_ADD
.
On receiving the command, the PTZ component will check if the number of site favorites has reached the upper limit. If so, it will return a failure response. Otherwise, it will read and save the current position to the PTZ configuration, assign an index ID to this site, and send the E_TY_MSG_PTZ_PRESET_ADD
message to the event
component to report the result.
Sites in the favorites are sorted by pan angle in ascending to facilitate planning patrol routes.
How to delete a site from favorites:
The user sends a DP command to the camera using the mobile app.
The camera sends the _TY_MSG_PTZ_PRESET_DEL
message to the PTZ component, which will retrieve and delete the specified site by index ID and report success. If the specified site is not found, the PTZ component reports a failure.
Users can add up to 16 sites to their favorites. If the limit is reached, they must delete a site before adding a new one.
Adding a preset point is like adding a site to favorites. The user adds a preset point to the camera using the mobile app by sending a DP command to the camera. These preset points are identified by preset names that cannot be changed. The PTZ component receives E_TY_MSG_PTZ_LINK_POS_SET
.
The camera captures images from different angles using the PTZ feature and uploads them for stitching. The user can then view the stitched panoramic image on the mobile app.
Currently, only horizontal stitching is supported.
How panorama stitching works
E_PANORAMA_START
to the PTZ component through E_TY_MSG_PTZ_PANORAMA
.E_PANORAMA_SEND
to the event
component through E_TY_MSG_PTZ_PANORAMA
.event
invokes the capture component to capture and upload images to the mobile app using the SDK. Once completed, it sends E_PANORAMA_SEND_DONE
to the PTZ component through E_TY_MSG_PTZ_PANORAMA
.If any issues occur during the process mentioned above, such as network failure or privacy mode being enabled, you can send E_PANORAMA_EXIT
to the PTZ component through E_TY_MSG_PTZ_PANORAMA
. This will interrupt PTZ movement and return it to its original position.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback