摘要: windows或者ubuntu 都可以运行,post body 参数为:image ,上传图片格式为base64,新建一个static文件夹,图片存储在static文件夹中 package main import ( "fmt" "net/http" "log" "io/ioutil" "time" 阅读全文
posted @ 2019-10-15 17:00 陈加爵 阅读(1439) 评论(0) 推荐(0) 编辑
摘要: python 打包:anaconda 安装pyinstaller 格式:pyinstaller -F -w (-i icofile) filename filename :Python程序文件名 -w 表示隐藏程序运行时的命令行窗口(不加-w会有黑色窗口) -i 表示给程序加上图标,图标必须为.ic 阅读全文
posted @ 2019-10-15 16:50 陈加爵 阅读(170) 评论(0) 推荐(0) 编辑
摘要: int CMyCamera::startGrabImage(Mat &image, string &info){ unsigned int nRecvBufSize = 0; MVCC_INTVALUE stParam; memset(&stParam, 0, sizeof(MVCC_INTVALU 阅读全文
posted @ 2019-10-15 16:44 陈加爵 阅读(6088) 评论(0) 推荐(0) 编辑
摘要: cv::Mat QImageToMat(QImage image) { cv::Mat mat; switch (image.format()) { case QImage::Format_ARGB32: case QImage::Format_RGB32: case QImage::Format_ 阅读全文
posted @ 2019-10-15 16:38 陈加爵 阅读(789) 评论(0) 推荐(0) 编辑
摘要: 读取本地时间,计算本地时间与延时时间的和,当本地时间超过前面之和时,即计时到了,跳出循环 void Delay_MSec(unsigned int msec) { QThread::msleep(100); qDebug() << "start" << msec << endl; qDebug()  阅读全文
posted @ 2019-10-15 16:32 陈加爵 阅读(5076) 评论(0) 推荐(0) 编辑
摘要: 最近写了一个动态链接库提供给C#界面开发的同事调用。为了方便调试输出,用C/C++的标准库API编写了一个Log日志库。 读取本地时间作为Log文件名,一天一个文件,定义一个LOG_LEVEL,一共分为五个级别。 #include <iostream>#include <fstream>#inclu 阅读全文
posted @ 2019-10-15 16:19 陈加爵 阅读(5593) 评论(0) 推荐(0) 编辑