Open peteruithoven opened 10 years ago
I guess it did find a marker, because when I remove all markers I get:
Taking Snapshot...
Finding markers...
Found 0/4 markers
Applying transformation...
Just a wild guess: Do the versions of the installed java-cv and open-cv match? As I understand it, java-cv is a wrapper for the native open-cv libraries, so if there are broken links, maybe due to different versions?
Could be... There is a minimal requirement, 2.4.3, as I read on the readme here:
https://github.com/t-oster/VisiCam/tree/master/lib/javacv-bin
I seem to have 2.4.7. checked using pkg-config --modversion opencv
I compiled javacv following:
http://salaboy.com/2013/06/14/using-javacv-in-the-raspberry-pi-linux-arm/
I then copied the generated javacpp jar to visicam using:
cp /root/javacv/target/javacpp.jar /root/VisiCam/dist/lib
But, weird thing is that you clone both javacv and javacpp but you only go into javacv for compilation, but then it does generate the javacpp.jar I copied.
Also weird, it ends with KILLED...
[root@visicam ~]# cd javacv
[root@visicam javacv]# mvn clean install -Dplatform.name=linux-arm
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JavaCV 0.6
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ javacv ---
[INFO] Deleting /root/javacv/target
[INFO]
[INFO] --- maven-dependency-plugin:2.3:properties (properties) @ javacv ---
[INFO]
[INFO] --- maven-dependency-plugin:2.3:copy-dependencies (copy-dependencies) @ javacv ---
[INFO] Copying javacpp-0.6.jar to /root/javacv/target/javacpp.jar
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ javacv ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 10 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3:compile (default-compile) @ javacv ---
[INFO] Compiling 43 source files to /root/javacv/target/classes
Killed
Installing using the -X option, for debugging doesn't display any errors. So I'm kind of assuming Killed is positive.
(In the meantime I'm also trying to rebuild the app in c++, using openFrameworks.)
So it worked on Raspbian, but if someone wants to try it on Arch Linux, maybe check if you can alter the cpu/gpu memory split. This is something I had to do on Raspbian to compile openFrameworks. Try decreasing the split for gpu to something like 64 for example. It's probably best to restore it after compilation.
I've bin trying to install VisiCam on a Raspberry Pi, this time on Arch Linux: https://github.com/t-oster/VisiCam/wiki/Raspberry-Pi-installation-(Arch-Linux)
It seems to be installed correctly, I'm able to take snapshots, configure the marker locations. But it can't generate the corrected image. Going to the main page I get the error: