import org.sikuli.script.*; public class Main { private static final Pattern something = new Pattern(Main.class.getResource("../resources/Screenshot from 2021-01-25 01-53-38.png")); public static void main(String[] args) throws FindFailed { Screen screen = new Screen(); screen.click(something); } }
O/P is - [error] RunTime:loadLib: opencv_java (failed) probably dependent libs missing: no opencv_java in java.library.path: /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib [error] Save your work, correct the problem and restart the IDE! [error] see: https://github.com/RaiMan/SikuliX1/wiki/macOS-Linux:-Support-Libraries-for-OpenCV-4
I have tried this, no help
sudo apt install libopencv4.2-java openjdk-11-jre-headless
cd /usr/lib/jni/
sudo ln -s libopencv_java420.so libopencv_java.so
1.4m articles
1.4m replys
5 comments
57.0k users