javacv

Installed latest JDK 1.8.0, but my Javac -version still shows an older version (Windows 7 - 64)

落爺英雄遲暮 提交于 2019-12-02 07:55:53
问题 I've been attempting to install NativeScript with Angular with this tutorial for the past two days, and I keep running into problems surrounding the Android SDK not installing correctly and freezing, and finally re-installing the latest JDK and JVE before attempting to install Android Studio. As I researched the problem I think I found the culprit: When I run Javac -version I keep getting an older version of JDK, it states: javac 1.6.0_45 However I have the latest version of Jdk 1.8.0_102. I

I get only one image while transferring in a loop over a socket in java

独自空忆成欢 提交于 2019-12-02 07:54:16
问题 What basically i want to do is implement live video streaming in java. i.e grab video infront of webcam of one computer and send that video to other computer in real time This is my server side code where i grab images in a loop using opencv libraries and and then save it to a file. I then open it using a Filestream and send it to other network and below is my client side code Error: I get only one image on client side i.e the first captured image from webcam What is the workaround to get all

javaCV UnsatisfiedLinkError

好久不见. 提交于 2019-12-02 07:28:36
I have a problem with JavaCV. I downloaded javaCV-bin and i added .jar file in my project in references libraries on ubuntu I could worked sample codes which locate in downloaded file But error is Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/libjniopencv_core3835922554849797701.so: libopencv_core.so.2.4: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1646) at java.lang.Runtime.load0(Runtime

Prograurding android project using Javacv gives exception

本秂侑毒 提交于 2019-12-02 00:58:18
Hi i am developing an app with Javacv. The app works fine until i proguard the build. After proguarding, the app crashes at the place of jni function call. -dontshrink -dontoptimize -dontpreverify -dontwarn android.support.** -keep class com.googlecode.javacv.** -dontwarn com.googlecode.javacv.** -keep class com.googlecode.javacpp.** -dontwarn com.googlecode.javacpp.** -keepclasseswithmembernames class * { native <methods>; } -keepattributes *Annotation* I can't find any answer that solves my problem. I am getting NoSuchMethodError. Anybody help me. I am using the latest version of Javacv

JavaCV Vs OpenCV from Runtime point of View

亡梦爱人 提交于 2019-12-01 07:31:05
问题 I am building an Android App that includes image processing techniques. From the Runtime point of view, which is better JavaCV or OpenCV ? 回答1: Their runtime overhead seems to be about the same, but the android-opencv wrappers do not give access to raw data via direct NIO buffers, rendering custom processing in Java a lot less efficient. JavaCV is more efficient for those tasks. Being the author of JavaCV, I also like its API better :) It's closer to the original C/C++ API than android-opencv

How to Iterate in OpenCV4Android

爱⌒轻易说出口 提交于 2019-12-01 01:38:10
I had this piece of code to be converted into Java using OpenCV4Android. But their are no Java-Wrappers for matiterator in OpenCV4Android. void show_result(const cv::Mat& labels, const cv::Mat& centers, int height, int width) { std::cout << "===\n"; std::cout << "labels: " << labels.rows << " " << labels.cols << std::endl; std::cout << "centers: " << centers.rows << " " << centers.cols << std::endl; assert(labels.type() == CV_32SC1); assert(centers.type() == CV_32FC1); cv::Mat rgb_image(height, width, CV_8UC3); cv::MatIterator_<cv::Vec3b> rgb_first = rgb_image.begin<cv::Vec3b>(); cv:

Looping through OpenCV Mat in Java bindings

半城伤御伤魂 提交于 2019-11-30 16:00:50
I am trying to convert a C++ method from a previous answer I received using OpenCV to Java using OpenCV Java bindings C++ code: cv::Mat gray; cv::Mat element = cv::getStructuringElement(cv::MORPH_CROSS, cv::Size(2 * erosion_size + 1, 2 * erosion_size + 1), cv::Point(erosion_size, erosion_size) ); cv::erode(gray, gray, element); // Scan the image searching for points and store them in a vector std::vector<cv::Point> points; cv::Mat_<uchar>::iterator it = gray.begin<uchar>(); cv::Mat_<uchar>::iterator end = gray.end<uchar>(); for (; it != end; it++) { if (*it) points.push_back(it.pos()); } I can

Playing a video with JavaCV and FFmpeg

為{幸葍}努か 提交于 2019-11-30 13:31:57
So, I'm developing a custom video player for Android but I need to play more than the android supported video files (mp4, 3gp...), like wmv, avi, flv. At this time I do already convert any video type to .mp4 and I'm able to play them after recoding, but I have no idea how can I play those wmv , avi files without recoding them to mp4 video formats. Is there any way I can play any video on Android without recoding them? JavaCV + FFmpeg library already working, just don't know how to do that. By the way, heres the code that I'm using to recode videos: public static void convert(File file) {

Android Computer Vision JavaCV OpenCV FastCV comparison

落爺英雄遲暮 提交于 2019-11-30 05:02:57
I am working on school project and part of it should be about current situation about computer vision libraries for Android. I went to it with large enthusiasm because computer vision seems like fascinating subject but I have been searching for more then a week and I did not find much. I would like to be able to provide information about libraries themselves and about comparison between them. I will share what I found so far. OpenCV seems like the most advanced one and the most popular. provide the biggest number of functions it had problem with backward compatibility is fast(at least so I

Exporting Executable jar file that uses opencv

百般思念 提交于 2019-11-29 12:15:43
While exporting in eclipse I choose "Package required libraries into generated jar". The jar file works only in my machine. However, when I test it on other machine it gives this Exception: Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniopencv_core in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681) at java.lang.Runtime.loadLibrary0(Runtime.java:840) at java.lang.System.loadLibrary(System.java:1047) at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:593) at com.googlecode.javacpp.Loader.load(Loader.java:489) at com.googlecode.javacpp.Loader