Metropolis Microservices/RidgeRun Services/PTZ: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 18: Line 18:
Before running the service, you should make sure you have all the dependencies installed. The intructions to do it can be found here: [https://developer.ridgerun.com/wiki/index.php/Spherical_Video_PTZ/User_Guide/Building_and_Installation Spherical Video PTZ Building and Installation]
Before running the service, you should make sure you have all the dependencies installed. The intructions to do it can be found here: [https://developer.ridgerun.com/wiki/index.php/Spherical_Video_PTZ/User_Guide/Building_and_Installation Spherical Video PTZ Building and Installation]


Then you have to clone into your device the repository project, available [ https://gitlab.ridgerun.com/ridgerun/rnd/jetson-microservices-and-genai/ptz | here ]
Then you have to clone into your device the repository project, available [ https://gitlab.ridgerun.com/ridgerun/rnd/jetson-microservices-and-genai/ptz here ]


The project is configured (via setup.py) to install the service with the name '''ptz'''. So to install it run:
The project is configured (via setup.py) to install the service with the name '''ptz'''. So to install it run:
Line 42: Line 42:
*****dockerhub?
*****dockerhub?


Before starting with docker support make sure you have nvidia runtime in your system. Follow [https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html#configuration | these instructions] to have docker up and runing in your Jetson Board.
Before starting with docker support make sure you have nvidia runtime in your system. Follow [https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html#configuration these instructions] to have docker up and runing in your Jetson Board.


===Build the container===
===Build the container===
Line 112: Line 112:
(you can modify th IPs, ports, and mapping depending on your needs. Just make sure you configure the other pipelines to match them)
(you can modify th IPs, ports, and mapping depending on your needs. Just make sure you configure the other pipelines to match them)


====Set and update the desired ptz values via the API following the format specified in [https://gitlab.ridgerun.com/ridgerun/rnd/jetson-microservices-and-genai/apis/-/blob/develop/ptz/openapi.yaml?ref_type=heads | here]:====
====Set and update the desired ptz values via the API following the format specified in [https://gitlab.ridgerun.com/ridgerun/rnd/jetson-microservices-and-genai/apis/-/blob/develop/ptz/openapi.yaml?ref_type=heads here]:====


Set the input URI, the output port, and the output mapping (in this example we assume that the RTSP source is being played from the same IP as the ptz microservice):
Set the input URI, the output port, and the output mapping (in this example we assume that the RTSP source is being played from the same IP as the ptz microservice):
89

edits