Hello World! Questions how to achieve my goals with UXP in Photoshop

Hello Everyone!

I am new to the world of UXP so I hope this is the right place to start.
I’ve been around the software world for quite some time doing C,C++, python and Java most of the time but consider myself far from professional. Now I have two projects in mind I would like to create as plugins for my photoshop. I would like to ask if this is doable in UXP or if I should take another route.

  1. I would like to take one of my documents layers, hand it over to openCV, do some operations there and hand it back to photoshop. I discovered that openCV has some js-modules as well so will this be doable in UXP or will I need to find some hybrid-plugin way to do this?
    Is there any example code out there of a plugin using opencv operations?

  2. Generic license plate generator for my countrys license plates based on input from UXP-textfields. Might be doable with 1) in opencv as well but maybe this can be done using basic js as well?

There might be a solution for my problems using regular Java but I like the idea of solving this in Photoshop directly as it would improve my workflow and I have a lot to learn anyway.

Any help and hints are appreciated.
Kind regards,
Tim