Skip to content

Instantly share code, notes, and snippets.

View zihaomu's full-sized avatar
🎯
Focusing

zihaomu

🎯
Focusing
  • 06:42 (UTC -12:00)
View GitHub Profile
@zihaomu
zihaomu / CMakeLists.txt
Created July 15, 2022 07:31
CMakeLists OpenCV
cmake_minimum_required(VERSION 3.22)
project(testOrbbecDevice)
set(CMAKE_CXX_STANDARD 14)
set(OpenCV_DIR "/opencv/build")
find_package(OpenCV REQUIRED)
include_directories(
${PROJECT_SOURCE_DIR}/
${OpenCV_INCLUDE_DIRS}
@zihaomu
zihaomu / arm_performance.csv
Last active April 11, 2022 01:06
OpenCV DNN performance on ARM CPU
Test on Khadas VIM3(Cortex-A73) (ms)
Model Name OpenCV DNN ONNXRuntime TFLite + XNNPACK NCNN
ResNet50 418.83 351.25 230.91 186.18
MobileNet V1 62.84 75.47 31.16 42.96
@zihaomu
zihaomu / OpenCV_with_TimVX.md
Last active July 24, 2022 15:50
Compile OpenCV with TimVX

Compiling OpenCV with TIM-VX backend

OpenCV with TIM-VX is developped to run deep learning models on NPUs (on Khadas VIM3 etc.) using OpenCV with TIM-VX integrated. Code is under review at opencv/opencv#21036. Inference performance on the NPU on Khadas VIM3 can be found in OpenCV Zoo: https://github.com/opencv/opencv_zoo#models--benchmark-results.

We provide two ways compiling OpenCV with TIM-VX backend:

  • (Recommanded) Compile OpenCV together with TIM-VX.
  • Compile OpenCV with TIM-VX library installed previously.

Requirements

@zihaomu
zihaomu / blobprint.cpp
Last active July 27, 2022 08:06
OpenCV print blob
//#define CV_8U 0
//#define CV_8S 1
//#define CV_16U 2
//#define CV_16S 3
//#define CV_32S 4
//#define CV_32F 5
//#define CV_64F 6
//#define CV_16F 7
void printblob(InputArray blob_) {
Mat blob = blob_.getMat();
@zihaomu
zihaomu / GSoC21_OpenCV_RGBD_loop_closure_HF_Net.md
Last active August 26, 2023 13:35
Google Summer of Code 2021 with OpenCV: Loop closure algorithm based on HF-Net

Loop closure algorithm based on HF-Net for depth fusion

Student: Zihao Mu

Mentor: Rostislav Vasilikhin

Link to accomplished work:

@zihaomu
zihaomu / gsoc20_dnn_digit_text_recognition.md
Last active August 31, 2020 01:19
Google Summer of Code 2020 with OpenCV Add digit and text recognition