04 2023 档案

ubuntu 安装已编译的 opencv,并配置c++开发环境
摘要:Ubuntu 有没有办法安装官方编译好的 opencv 3.1.0 库而不用自己编译?是的,你可以使用Ubuntu的软件包管理器(apt-get)来安装官方编译好的OpenCV 3.1.0库,而不需要自己编译。 以下是在Ubuntu上安装OpenCV 3.1.0库的步骤: 打开终端(Ctrl+Alt 阅读全文

posted @ 2023-04-24 10:54 空明流光 阅读(1226) 评论(0) 推荐(0) 编辑

opencv c++ 保存为位深度为1的png
摘要:vector<int> compression_params; compression_params.push_back(IMWRITE_PNG_COMPRESSION); compression_params.push_back(3); compression_params.push_back(I 阅读全文

posted @ 2023-04-17 18:10 空明流光 阅读(156) 评论(0) 推荐(0) 编辑

axios 上传文件极简示例
摘要:1. 直接从磁盘上传 <!DOCTYPE html> <html> <head> <title>文件上传示例</title> </head> <body> <h1>文件上传示例</h1> <form enctype="multipart/form-data"> <input type="file" 阅读全文

posted @ 2023-04-14 15:26 空明流光 阅读(1103) 评论(0) 推荐(0) 编辑

asp.net webform 允许跨域
摘要:void Application_BeginRequest(object sender, EventArgs e) { // 允许跨域请求的域名列表,可以根据需求进行修改 string[] allowedOrigins = new string[] { "http://example1.com", 阅读全文

posted @ 2023-04-11 20:47 空明流光 阅读(294) 评论(0) 推荐(0) 编辑

OpencvSharp 的使用 以及配合 BitMiracle.LibTiff.NET 从内存读取多页的TIF
摘要:需要同时安装 OpenCvSharp4 和 OpenCvSharp4 runtime,作者 shimat,地址: https://github.com/shimat/opencvsharp using OpenCvSharp; Mat image1 = Cv2.ImRead("..\272b4318 阅读全文

posted @ 2023-04-11 18:12 空明流光 阅读(626) 评论(0) 推荐(0) 编辑

c++ stdcall 方式与 C# 传递 struct 数据类型?
摘要:using namespace std; #include <iostream> #include <thread> #include <mutex> struct MyStruct { char* myString; int length; // other members }; #ifdef _ 阅读全文

posted @ 2023-04-10 14:59 空明流光 阅读(108) 评论(0) 推荐(0) 编辑

c++ 多线程摘记
摘要:有没有 linux 和 windows 通用的 多线程库? 是的,C++11 标准引入了一个名为 std::thread 的多线程库,它可以在 Windows 和 Linux 上使用。std::thread 库提供了一种方便的方式来创建和管理线程,包括启动、等待、终止和同步线程。此外,它还提供了一些 阅读全文

posted @ 2023-04-10 14:47 空明流光 阅读(31) 评论(0) 推荐(0) 编辑

c++ opencv 等比例缩放以显示大图像
摘要:#include <Windows.h> // 引入 Windows 头文件 #pragma comment(lib, "user32.lib") void showMat(cv::Mat image) { cv::namedWindow("image", cv::WINDOW_NORMAL); / 阅读全文

posted @ 2023-04-03 17:01 空明流光 阅读(955) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示