原创 OpenCV C++圖像操作常用API

cv::Resize(): https://stackoverflow.com/questions/23984191/resize-image-opencv cv::flip(): https://docs.opencv.org/3.4/

原创 tflite模型推理流程

.tflite模型的推理 tflite模型推理(Python/C++) https://medium.com/analytics-vidhya/tensorflow-lite-model-inferencing-fast-and-lea

原创 C++主函數參數

學習C++主函數的參數輸入,用於從command line中讀取參數,下面以讀取視頻文件爲例進行說明 #include <iostream> #include <fstream> #include <string> #include <op

原创 FFmpeg視頻裁剪

ffmpeg -i input.mp4 \ -ss hh:mm:ss \ # 起始時間點 -t hh:mm:ss \ # 持續時間 (duration) -c copy \ # 視頻和音頻編碼直接copy output.mp4 參考

原创 scipy.optimize 優化

scipy.optimize.least_square scipy.optimize.minimize 添加正則項約束 https://stackoverflow.com/questions/62768131/how-to-ad

原创 C++之向量vector

#include <iostream> #include <vector> #include <string> using namespace std; int main() { vector<string> msg = {"H

原创 Ceres-Solver學習記錄(三): BA優化

應用案例: Ceres-Solver for Bundle Adjustment BA優化教程:http://ceres-solver.org/nnls_tutorial.html#bundle-adjustment [代碼] https

原创 Eigen矩陣/向量操作

Q: Eigen中矩陣和向量相加,是不是沒有Python中的廣播機制 參考資料 官網文檔:https://eigen.tuxfamily.org/dox/group__TutorialMatrixArithmetic.html 中文博客:

原创 C++之字符串string

記錄cpp相關的字符串操作 #include <string> C++中的std::string可以視爲std::vector<char>類型的向量,因此可以用.size()函數返回字符串的字符長度(不含'\n'結尾符號)。 以下是str

原创 常見英文縮寫 (圖形學相關)

學習Games101課程 bayer pattern (顯示屏的RGB期間陳列) 包圍盒 aabb (AxisAlignedBoundingBox) OrientedBoundingBox http://www.open3d.org/d

原创 Eigen數據類型

常用數據類型 Eigen::Matrix3f:3x3方陣,數據類型:float typedef Matrix<float, Dynamic, 2> MatrixX2f, shape: (N, 2), dtype: float https:/

原创 pytorch和numpy默認數據類型的區別

numpy默認數據類型float64 (int32 for 整數) PyTorch默認數據類型float32,通常需要將numpy數據的數據類型轉爲np.float32 參考: https://blog.csdn.net/yyb1995

原创 Ceres-Solver求解非線性最小二乘問題

non-linear least square problem http://ceres-solver.org/nnls_tutorial.html how to regularized nonlinear least square

原创 Ceres-Solver

Why ceres? 爲什麼起名爲Ceres呢? http://ceres-solver.org/index.html#id1 Ceres-Solver可以用來解什麼問題: Non-linear Least Squares probl

原创 一文詳解爲什麼需要用CMake來管理大型C++工程

場景1:編譯普通C++代碼 /*hello_world.cpp*/ #include <iostream> using namespace std; int main() { cout << "Hello, world!" <