06 2022 档案
摘要:1 视频解码图片 import cv2 #根据需要修改路径 cap = cv2.VideoCapture("D:/test/test.mp4") i = 0 while cap.isOpened(): ret, frame = cap.read() if not ret: break # frame
阅读全文
摘要:1 更新软件源 sudo apt update 2 下载 sudo apt install gparted 3 启动 在终端输入gparted命令,或者在搜索栏中搜索 4 卸载 sudo apt remove gparted 参考链接:https://linuxways.net/centos/how
阅读全文
摘要:点击需要编辑的图形,然后依次点击"视图->任务窗格->大小和位置",这个时候,图形的大小和位置信息就会显示出来。 这个时候可用鼠标点击"宽度"和"高度"的值上,并输入想输入的值来改变图形大小。还可选择多个图形,然后统一调整图形高宽。
阅读全文
摘要:static inline float sigmoid(float x) { return static_cast<float>(1.f / (1.f + exp(-x))); }
阅读全文
摘要:1 不需要加载图片 // C++ program for the above approach #include <iostream> #include <opencv2/core/core.hpp> // Library to include for // drawing shapes #incl
阅读全文
摘要:using namespace cv; // Capture the Image from the webcam VideoCapture cap(0); // Get the frame Mat save_img; cap >> save_img; if(save_img.empty()) { s
阅读全文
摘要:#include <iostream> #include <vector> template<typename T> std::vector<double> linspace(T start_in, T end_in, int num_in) { std::vector<double> linspa
阅读全文
摘要:#include<iostream> #include<assert.h> #include<vector> #include<chrono> int main() { int iter = 10000; std::vector<double> coeffs = { 4, 2, -2, 5, 0,
阅读全文
摘要:#include<iostream> #include<vector> #include<math.h> std::vector<double> Polyval(std::vector<double> coeffs, std::vector<double> values) { std::vector
阅读全文