This repo provides a web application to use the Stereolabs ZED 2 camera for live camera tracking in Unreal Engine. It was created during a university project and should be used with the customized Nvidia Jetson Nano from Hochschule der Medien for wireless tracking.
- CUDA capable GPU
- CUDA v11.0
- Stereolabs SDK v3.5.3
- Sterolabs Python "pyzed" module
- Python v3.8.8
- Python modules found in
python/requirements.txt
- Unreal Engine v4.27
- Unreal Engine Plugin: UDPCommunication
Newer versions of Python and Unreal Engine may be supported, but are not tested.
Hochschule der Medien students please see the steps at the end of this file.
- Install all dependencies
- Build the pyzed Python module
Contact me, if you need a working Jetson Nano SD card image.
- Install the UDPCommunication plugin by copy & pasting the whole folder to
Unreal Projects\{your project}\Plugins
- Copy the
unreal/ZED_Cam.uasset
into your Unreal Engine content folder and restart Unreal Engine.
Hochschule der Medien students please see the steps at the end of this file.
-
Plug in the ZED 2 camera
-
Start a terminal and:
> cd path\to\camtrack > set FLASK_APP=server.py > python -m flask run
-
Navigate to the URL shown by flask to view the web interface
-
Set your IP address
-
Click on "Capture"
-
Start capturing
-
In Unreal Engine drag the ZED_Cam blueprint into your scene
-
Press
Alt + S
-
The virtual camera should now react to movements
You don't need to configure a tracking device, just use the Jetson Nano.
- Plug the ZED Camera into the Jetson Nano
- Start it up for about a minute
- Connect to the "ZED NAVI" WIFI network
- Visit the URL 1.1.1.1
- Set your IP address
- Click on "Capture"
- Start capturing
- In Unreal Engine drag the ZED_Cam blueprint into your scene
- Press
Alt + S
- The virtual camera should now react to movements