注册时间
最后登录
新帖
发布在 技术交流 阅读更多

开始运行[[remote]mian.js]
19:45:15.484/E: No implementation found for long org.opencv.core.Mat.n_Mat() (tried Java_org_opencv_core_Mat_n_1Mat and Java_org_opencv_core_Mat_n_1Mat__)

java.lang.UnsatisfiedLinkError: No implementation found for long org.opencv.core.Mat.n_Mat() (tried Java_org_opencv_core_Mat_n_1Mat and Java_org_opencv_core_Mat_n_1Mat__)
at org.opencv.core.Mat.n_Mat(Native Method)
at org.opencv.core.Mat.<init>(Mat.java:23)
at com.stardust.autojs.core.opencv.Mat.<init>(Mat.java:37)
at com.stardust.autojs.core.image.ImageWrapper.getMat(ImageWrapper.java:106)
at com.stardust.autojs.runtime.api.Images.findImage(Images.java:290)
at java.lang.reflect.Method.invoke(Native Method)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:206)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:211)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1879)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1061)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:90)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:380)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3869)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:103)
at com.stardust.autojs.engine.RhinoJavaScriptEngine.doExecution(RhinoJavaScriptEngine.kt:74)
at com.stardust.autojs.engine.JavaScriptEngine.execute(JavaScriptEngine.java:20)
at com.stardust.autojs.engine.LoopBasedJavaScriptEngine.access$001(LoopBasedJavaScriptEngine.java:21)
at com.stardust.autojs.engine.LoopBasedJavaScriptEngine.lambda$execute$0$com-stardust-autojs-engine-LoopBasedJavaScriptEngine(LoopBasedJavaScriptEngine.java:46)
at com.stardust.autojs.engine.LoopBasedJavaScriptEngine$$ExternalSyntheticLambda0.run(D8$$SyntheticClass)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at com.stardust.autojs.engine.LoopBasedJavaScriptEngine.execute(LoopBasedJavaScriptEngine.java:65)
at com.stardust.autojs.engine.LoopBasedJavaScriptEngine.execute(LoopBasedJavaScriptEngine.java:38)
at com.stardust.autojs.execution.LoopedBasedJavaScriptExecution.doExecution(LoopedBasedJavaScriptExecution.java:42)
at com.stardust.autojs.execution.RunnableScriptExecution.execute(RunnableScriptExecution.java:43)
at com.stardust.autojs.execution.RunnableScriptExecution.execute(RunnableScriptExecution.java:37)
at com.stardust.autojs.execution.RunnableScriptExecution.run(RunnableScriptExecution.java:31)
at java.lang.Thread.run(Thread.java:761)
19:45:15.487/V:

requestScreenCapture();
var wx = images.read("./mig/2.png");
//返回桌面
home();
//截图并找图
sleep(2000)
var p = findImage(captureScreen(), wx);
if(p){
toast("找到了: " + p);
}else{
toast("未找到");
}
一运行就报错