Java and two cameras on Pi4

I have an AI application (neural network) which I run on the Pi4 written in Java, it requires the use of both camera ports or the stereo camera hat.

  1. Can I still use two camera inputs, either on the board or the hat, with the Grove board on the Pi?
  2. What do I need to do to use the board to accelerate my Java app?
    Thanks.