How cross-platform is OpenCV? Can I do anything with java that I can with python?

Thank you @crackwitz
While the heavy calculations of my application may be within the OpenCV library, it’s not the only parts. So it may still be relevant to some degree.

Currently I’m building an application which recognises colors on the screen and clicks it.

I may be going a bit of the original topic here, but I have two essential challenges to overcome before I know whether I can make the switch:

  1. object tracking by using color-space has a great tutorial in python but not in java, OpenCV: Changing Colorspaces
    The methods mentioned: cv.inrange, cv.bitwise_and and cv.imshow. Are they used in the same way in java?
    When I try to look them up in java docs I get a 404:

  2. How can I capture frames from the computer screen and perform opencv operations on them?
    Currently I’m using this python example:
    opencv_tutorials/004_window_capture/windowcapture.py at master · learncodebygaming/opencv_tutorials · GitHub
    It uses the libraries: win32gui, win32ui and win32con.

So far for java I’ve found: Robot: createScreenCapture(Rectangle screenRect) (can’t paste more links)

But there’s a risk that I won’t get it to work, or work as well with java.