Uses 436K of libraries. Click here for Pure Java version (130L/2K/4K).
!752 lib 1003792 // opencv-249 static File pathToOpenCV = userDir("dev/opencv-2.4.9"); import org.opencv.core.Core; import org.opencv.core.CvType; import org.opencv.core.Mat; p { print("Welcome to OpenCV " + Core.VERSION); S libPath = System.getProperty("java.library.path"); //libPath = new File(pathToOpenCV, "lib").getAbsolutePath() + File.pathSeparator + libPath; print(libPath); //System.setProperty("java.library.path", libPath); // fails!? //System.loadLibrary(Core.NATIVE_LIBRARY_NAME); File lib = new File(pathToOpenCV, "lib/lib" + Core.NATIVE_LIBRARY_NAME + ".so"); print("Looking for: " + lib.getAbsolutePath()); Runtime.getRuntime().load(lib.getAbsolutePath()); // TEST Mat m = Mat.eye(3, 3, CvType.CV_8UC1); print("m = " + m.dump()); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003793 |
Snippet name: | Test OpenCV |
Eternal ID of this version: | #1003793/1 |
Text MD5: | c807890d96888f145ffe6fd49e0aad94 |
Transpilation MD5: | 059f046ed8e6ad5b807cf8c0e4f9dcbb |
Author: | stefan |
Category: | javax / opencv / native bindings |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-07-27 16:16:32 |
Source code size: | 821 bytes / 30 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 716 / 718 |
Referenced in: | #1003794 - Test OpenCV - Venturous Single Library #1003796 - Test OpenCV - Moved Dir |