Skip to content

Instantly share code, notes, and snippets.

Jakub Vaněk JakubVanek

Block or report user

Report or block JakubVanek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View opencv_apt.txt
robot@ev3dev:~$ sudo apt-get install --no-install-recommends --no-upgrade libopencv2.4-java
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libavcodec57 libavformat57 libavutil55 libbluray1 libchromaprint1
libdc1394-22 libgme0 libgsm1 libgtk2.0-0 libgtk2.0-common libilmbase12
libmp3lame0 libmpg123-0 libopencv-calib3d2.4v5 libopencv-contrib2.4v5
libopencv-core2.4v5 libopencv-features2d2.4v5 libopencv-flann2.4v5
libopencv-highgui2.4-deb0 libopencv-imgproc2.4v5 libopencv-ml2.4v5
JakubVanek / jri11_ldd.txt
Created Nov 5, 2018
OpenCV JRI11 simple run with ldd
View jri11_ldd.txt
time java -Djava.library.path=/usr/lib/jni/ -cp /home/robot/ev3dev-lang-java-2.4.7-SNAPSHOT-all.jar:/usr/share/OpenCV/java/opencv-249.jar examples.opencv.HelloWorldCV
ev3dev#6|2018-11-05 19:19:48 [main] INFO examples.opencv.HelloWorldCV - Welcome to OpenCV
ev3dev#6|2018-11-05 19:19:49 [main] INFO examples.opencv.HelloWorldCV - /usr/lib/jni/
ev3dev#6|2018-11-05 19:19:49 [main] INFO examples.opencv.HelloWorldCV - opencv_java249
ev3dev#6|bash: line 1: 1003 Segmentation fault java -Djava.library.path=/usr/lib/jni/ -cp /home/robot/ev3dev-lang-java-2.4.7-SNAPSHOT-all.jar:/usr/share/OpenCV/java/opencv-249.jar examples.opencv.HelloWorldCV
ev3dev#6|real 1m1.017s
ev3dev#6|user 0m25.976s
ev3dev#6|sys 0m2.495s
JakubVanek / jri11_log.txt
Created Nov 5, 2018
OpenCV with verbose jni/class on Java 11
View jri11_log.txt
time java -verbose:class -verbose:jni -Djava.library.path=/usr/lib/jni/ -cp /home/robot/ev3dev-lang-java-2.4.7-SNAPSHOT-all.jar:/usr/share/OpenCV/java/opencv-249.jar examples.opencv.HelloWorldCV
ev3dev#8|[0.420s][info][class,load] opened: /opt/jri-12/lib/modules
ev3dev#8|[0.691s][info][class,load] java.lang.Object source: jrt:/java.base
ev3dev#8|[0.747s][info][class,load] source: jrt:/java.base
ev3dev#8|[0.754s][info][class,load] java.lang.Comparable source: jrt:/java.base
ev3dev#8|[0.784s][info][class,load] java.lang.CharSequence source: jrt:/java.base
ev3dev#8|[0.803s][info][class,load] java.lang.String source: jrt:/java.base
ev3dev#8|[0.872s][info][class,load] java.lang.reflect.AnnotatedElement source: jrt:/java.base
ev3dev#8|[0.887s][info][class,load] java.lang.reflect.GenericDeclaration source: jrt:/java.base
JakubVanek / Fake Pulseaudio software balun
Last active Apr 28, 2018
Fake Pulseaudio balanced mono-output
View Fake Pulseaudio software balun
Creates a mono "balanced" output from a stereo unbalanced one.
JakubVanek / matrix.fzz
Last active Dec 28, 2016
Fast 8x8 LED dot matrix + SN74HC595 + Arduino Uno R3 counter
JakubVanek / EV3 ethernet hotplug
Created Jul 1, 2016
Connect EV3 to hotplugged ethernet
View EV3 ethernet hotplug
This is a small program for restarting DHCP on first interface for the EV3 programmable brick. This can be useful when you need to make the brick connect through a *supported* USB-to-Ethernet adapter to a wired network and you don't want to wait for a restart.
How to build:
- Get a copy of EV3 assembler (lmsasm) - my modified version can be found on
- Download connect.lms to the directory with file assembler.jar from the step above.
- Compile this program. That is done by running "java -jar assembler.jar connect" in the assembler directory.
- Upload the connect.rbf file to the brick.
JakubVanek / Framebuffer to PNG
Last active Feb 8, 2019
Convert raw BGRA framebuffer to RGB png file
View Framebuffer to PNG
This program can be used to convert raw BGRA 8888 framebuffer to standard PNG file.
You can’t perform that action at this time.