- 博客(29)
- 资源 (35)
- 收藏
- 关注
原创 清华源设置
-i https://pypi.tuna.tsinghua.edu.cn/simplehttps://download.pytorch.org/whl/torch_stable.html
2023-01-04 14:29:57 926
原创 挂载FTP目录
ifconfig eth0 downifconfig eth0 hw ether 66:BF:65:91:FB:C4ifconfig eth0 10.40.1.224 netmask 255.255.255.0route add default gw 10.40.1.0ifconfig eth0 up修改/etc/exportssudo apt-get install nfs-kernel-server/home/lhc *(rw,nohide,insecure,no_subtree_che
2022-02-28 09:32:23 1178
原创 linux清华源配置
vim ~/.condarcchannels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ - https://mirrors.tuna.tsingh...
2022-01-27 16:23:34 4506
原创 OPENCV C++保存视频
//视频保存位置 string outputVideoPath = "/home/lhc/_20211209204549292.avi"; //打开摄像头 VideoCapture capture0(0); VideoWriter outputVideo; //获取当前摄像头的视频信息 cv::Size S = cv::Size((int)capture0.get(CV_CAP_PROP_FRAME_WIDTH...
2021-12-10 09:28:12 7162
原创 QT arm configuration
## Configure the runtime environment for Qt#export QTDIR=/opt/qt-4.7.3-arm64export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH export QT_QWS_FONTDIR=$QTDIR/lib/fontsexport QWS_SIZE=800x400export QWS_DISPLAY=LinuxFb:/dev/fb0(这个根据开发板而定)...
2021-11-02 10:06:38 160
原创 C++ 实现一个日志类
enum log_level{debug, info, warning, error};// 日志等级enum log_target{file, terminal, file_and_terminal};// 日志输出目标//log.h/////////////////////////////#ifndef _LOGGER_H_#define _LOGGER_H_#include <iostream>#include <fstream>#include ...
2021-10-11 14:28:20 398
原创 scp 免密码传输
网上找了半天,都不够简单明了,我自己总结以下:把你的本地主机用户的ssh公匙文件写入到远程主机用户的~/.ssh/authorized_keys文件中,具体方法假设本地主机localhost,远程主机remote一,在localhost主机里的用户运行ssh-keygen -t rsa结果如下Generating public/private rsa key pair.Enter file in which to save the key (/home/.username/ssh/id_rsa
2021-10-08 19:54:08 316
原创 ssh 免登录密码
linux 设置ssh免密登录配置 A-192.168.1.219 免密登录 B-192.168.1.220在A上执行ssh-keygen -t rsa -P ''可以看到~/.ssh生成两个文件id_rsa.pubid_rsa然后分发公钥到目标机器:ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.1.220(注意不要忘记了参数-i)这里需要输入yes,B的登录密码注意:.ssh目录权限是700authoriz...
2021-08-09 11:37:47 153
原创 python 视频转图像
# coding=utf-8# 全局变量VIDEO_PATH = 'd:/data/batball2020604.avi' # 视频地址EXTRACT_FOLDER = 'd:/data/bat' # 存放帧图片的位置EXTRACT_FREQUENCY = 2 # 帧提取频率def extract_frames(video_path, dst_folder, index): # 主操作 import cv2 video = cv2.VideoCapture() .
2020-12-15 16:53:08 230
原创 浮点型转字符串
static std::string float2string(float fScore, int precisionNum){ std::string strScore; std::stringstream ss; ss << std::setprecision(precisionNum) << fScore; strScore = ss.str(); return strScore;}
2020-12-15 14:30:15 422
原创 android打开wav声音
从assets拷贝到手机上再打开才能成功#define APP_TEMPPATH "/storage/emulated/0/fitness/" static int OpenSound(QMediaPlayer* &ply, QString qstrSound) { ply = new QMediaPlayer(); QFile dfile("assets:/"+qstrSound); if (dfile.exists()) { .
2020-12-09 09:52:17 1322
原创 qt get
QString FitnessMainDlg::QtGet(QString url){ QNetworkRequest request; //QNetworkAccessManager* naManager = new QNetworkAccessManager(this); QUrl strUrl = url; request.setUrl(strUrl); request.setRawHeader("Content-Type", "charset='utf-.
2020-12-08 18:14:03 274
原创 mat 转 Qimage
QImage FitnessMainDlg::MatImageToQt(const cv::Mat &src){ //CV_8UC1 8位无符号的单通道---灰度图片 if (src.type() == CV_8UC1) { //使用给定的大小和格式构造图像 //QImage(int width, int height, Format format) QImage qImage(src.cols, src.rows, QIm.
2020-12-08 18:12:42 540
原创 QT post 获取数据
//QNetworkAccessManager* naManager = new QNetworkAccessManager(this); QNetworkRequest answerReq; QString strJson = "{\ \"areaId\": " + str2qstr((m_curStudent.areaId)) + ",\ \"stuId\"...
2020-12-08 17:45:43 633
原创 QT 声音初始化,并播放声音
void TestDlg::IniSound(){ m_Fisrt_bend_ply = new QMediaPlayer(); m_Fisrt_bend_ply->setMedia(QUrl::fromLocalFile("sound/first_bend.wav")); m_Fisrt_bend_ply->setVolume(100); m_Second_bend_ply = new QMediaPlayer(); m_Second_bend_ply->setMedia(.
2020-12-08 17:43:20 377
原创 qt android jni 通过C++调用java
androidjni.cpp#include "AndroidJNI.h"#include <QtAndroidExtras/QAndroidJniObject>#include <qDebug>#include <QtAndroidExtras/QAndroidJniEnvironment>static JavaVM* g_javaVM = 0; //虚拟机指针static jclass g_JNIClassID = 0.
2020-12-08 17:09:17 637
原创 jsoncpp解析
{ "code": "200", "msg": "成功", "success": true, "data": { "addUserList": [ { "numberNo": null, "name": "小叶子", "id": 22861, "eigenvalueList": [ { "imgUrl": "http://orbbec.oss-cn-shanghai...
2020-12-08 16:56:15 767
原创 windows编译生成openssl库
1.下载openssl源代码2.perl Configure VC-WIN32 no-asm或pperl configure VC-WIN64A3.ms\do_nasm.bat4.nmake -f ms\ntdll.mak下载所需工具Perl:http://downloads.activestate.com/ActivePerl/releases/5.26.1.2601/ActivePerl-5.26.1.2601-MSWin32-x64-404865.exe NASM:http.
2020-10-28 17:23:01 160
原创 向日 葵无法连接
linux下非root用户启动图形化界面报错[oratest@dudu ~]$ xclockXlib: connection to ":0.0" refused by serverXlib: No protocol specifiedError: Can't open display: :0.0解决方法:[root@dudu ~]# xhost local:oracle non-network local connections being added to access contro.
2020-07-23 18:26:24 875
原创 opencv将图像序列转换为视频
import osimport globimport cv2def imgs2video(imgs_dir, save_name): fps=30 fourcc = cv2.VideoWriter_fourcc(*'MJPG') video_writer = cv2.VideoWriter(save_name, fourcc, fps, (1280, 102...
2019-12-11 11:18:59 653
原创 VOC转coco数据集
#coding:utf-8# pip install lxmlimport osimport globimport jsonimport shutilimport numpy as npimport xml.etree.ElementTree as ETpath2 = "."START_BOUNDING_BOX_ID = 1def get(root, ...
2019-12-11 11:10:15 262
原创 python opencv 视频流转换为图像
# coding=utf-8# 全局变量VIDEO_PATH = 'E:\\data\\kinets\\hand\handimg\\p\\z.avi' # 视频地址EXTRACT_FOLDER = 'E:\\data\\kinets\\hand\handimg\\p\\pic\\' # 存放帧图片的位置EXTRACT_FREQUENCY = 1 # 帧提取频率def extrac...
2019-12-11 10:54:35 773
原创 maskrcnn windows 上C++做预测
我自己做下记录keras训练代码https://github.com/matterport/Mask_RCNN1.keras模型转 .pbimport tensorflow as tffrom keras import backend as Kfrom tensorflow.python.framework import graph_utilmodel_keras ...
2019-07-18 17:41:17 737 6
原创 tensorflow模型转换
https://github.com/tensorflow/models/blob/master/research/slim/README.mdFine-tuning a model from an existing checkpointRather than training from scratch, we'll often want to start from
2017-12-03 15:57:24 3050 1
VC 编程实例
2013-05-10
《VISUAL C++开发案例整合》6-10章工程案例代码
2013-03-15
Visual C++数字图像模式识别技术及工程实践工程源代码
2013-05-17
VC++数字图像模式识别技术及工程实践
2013-05-16
VisualC++实例精通光盘代码
2013-05-15
SIFT源代码及剖析
2013-05-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人