Search code examples
pythonopencvjythonsikuli

How to use Python OpenCV functions in Sikuli


I'd like to use OpenCV functions, like Hough Transform and Corner Detection, in Sikuli.

I tried the OpenCV installation instructions for CPython on Sikuli and it's a no go.

I understand that Sikuli is Jython and this might be the hard way to do things. What are the easier alternatives?

I'd still like to use Sikuli & Python because the code I write just works; but maybe I'm hitting the limits of Sikuli.


Solution

  • You could use Automa as an alternative to Sikuli. It is a pure Python library (so you can use any other Python library with it) and its image search algorithms are fully compatible with Sikuli. In fact, it uses OpenCV's Python bindings itself, and thus ships with them.

    Disclaimer: I'm one of Automa's developers.