Skip to content

Instantly share code, notes, and snippets.

View pktiuk's full-sized avatar

Paweł Kotiuk pktiuk

View GitHub Profile
@hhackbarth
hhackbarth / jetson_hardware_accelerated_opencv_4.5.3_with_ffmpeg_4.2.4.md
Last active January 22, 2024 09:19
Hardware accelerated OpenCV 4.5.3 build with FFMPEG 4.2.4 on NVidia Jetson

OpenCV 4.5.3 and FFMPEG 4.2.4 (with SRT support) hardware accelerated on NVidia Jetson

Unfortunately, NVidia Jetpack 4.5.x for Jetson Nano, Xavier etc. comes with OpenCV 4.1.1 and FFMPEG 3.4.8 compiled without any hardware (GPU, CUDA) acceleration and without SRT support.

Retrieving current OpenCV build information:

$ python3

import cv2
@ndevenish
ndevenish / CMakeLists.txt
Last active March 4, 2024 22:47
Very simple "Getting started" boost-python CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
# Find python and Boost - both are required dependencies
find_package(PythonLibs 2.7 REQUIRED)
find_package(Boost COMPONENTS python REQUIRED)
# Without this, any build libraries automatically have names "lib{x}.so"
set(CMAKE_SHARED_MODULE_PREFIX "")
# Add a shared module - modules are intended to be imported at runtime.
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active November 16, 2024 22:55
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@santa4nt
santa4nt / HelloJNI.java
Last active October 5, 2024 11:32
Sample JNI/C++ HelloWorld
public class HelloJNI {
static {
System.loadLibrary("hello"); // loads libhello.so
}
private native void sayHello(String name);
public static void main(String[] args) {
new HelloJNI().sayHello("Dave");
}