Hi Irena
The OAK-D Pro device itself runs on an embedded system (Myriad X VPU) which is not designed to host services such as a Flask server. Therefore, directly implementing a Flask REST API server on the OAK-D Pro is not possible.
However, you can connect the OAK-D Pro to a host machine (like a Raspberry Pi or a standard PC) via USB, and then implement your Flask server on that host machine. The Flask server can interact with the OAK-D Pro using the DepthAI Python API to capture frames, run inference, and so on.
Thoughts?
Jaka