
办公工具
令狐傻笑
图像算法工程师,主要研究方向为图像分类,目标检测
展开
-
一个可以接受POST请求的python脚本
"""依赖:pip install ai-hub flask测试用例:model为y=2*x请求数据为json:{"img":3}-----------post请求:curl localhost:8080/tccapi -X POST -d '{"img":3}'返回结果 6"""from ai_hub import inferServerimport jsonclass MyInfer(inferServer): def __init__(self, model):原创 2021-08-17 16:41:47 · 1380 阅读 · 0 评论 -
github同步fork仓库与原作者仓库
github同步fork仓库与原作者仓库1. 查看远程仓库$ git remote -v# List the current remotesorigin https://github.com/user/repo.git (fetch)origin https://github.com/user/repo.git (push)2. 添加远程上游仓库$ git remote add upstream https://github.com/otheruser/repo.git# Set a原创 2020-10-15 19:15:06 · 426 阅读 · 0 评论 -
C++使用mutex对多thread进行变量保护
thread可以在C++中创建多线程调用函数,mutex可以对一些公共变量进行保护,代码如下:代码#include <iostream>#include <thread>#include <mutex>std::mutex m;//you can use std::lock_guard if you want to be exception safeint i = 0;void makeACallFromPhoneBooth(){ m.lock原创 2020-09-10 16:29:16 · 1333 阅读 · 0 评论 -
C++ boost生成uuid
C++ boost生成uuid1. CMakeLists.txt文件cmake_minimum_required(VERSION 3.12)project(UUID)set(CMAKE_CXX_STANDARD 14)find_package(Boost REQUIRED)message(STATUS "Find Boost include at ${Boost_INCLUDE_DIRS}")message(STATUS "Find Boost libraries: ${Boost_LIB原创 2020-09-08 11:14:06 · 1360 阅读 · 0 评论 -
Ubuntu xrdp安装配置——使用windows mstsc远程连接
安装步骤apt-get update输入apt-get update安装xubuntu-desktop输入apt-get xubuntu-desktop安装xrdp输入apt-get xrdp输入echo xfce4-session > ~/.xsession重启xrdp服务输入service xrdp restart远程连接windows远程连接在windows系统中使用win+R,输入mstsc,输入远程连接的地址加端口号,输入用户名和密码后,即可连接。...原创 2020-07-16 15:02:01 · 1478 阅读 · 0 评论 -
C++实现类似python os.listdir功能
#include <string>#include <dirent.h>std::vector<std::string>readFolder(const std::string &image_path){ std::vector<std::string> image_names; auto dir = opendi...原创 2020-03-20 09:57:53 · 1342 阅读 · 3 评论 -
HP ProBook 440静电保护恢复方法
1.断掉电源;2.按住电源键和F5(静音键)到30秒以上;3.重新开机。原创 2020-03-12 08:45:48 · 3478 阅读 · 0 评论 -
Docker启动容器
在终端中输入以下命令:docker run --runtime=nvidia --name=deepstream --privileged --ipc=host -p 6666:22 -itd -v /home/lihan:/home/lihan nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04 /bin/bash或者docker run -...原创 2019-11-05 17:12:20 · 802 阅读 · 0 评论 -
Git学习总结
1. 安装gitsudo apt-get install git2. 配置git用户名和邮箱git config --global user.name "user_name"git config --global user.email "user_name@server.com"3. 创建版本库mkdir "folder_name"cd "folder_name"g...原创 2019-10-24 08:25:06 · 159 阅读 · 0 评论 -
pdf转word工具
https://download.youkuaiyun.com/download/linghu8812/11872070原创 2019-10-17 09:28:10 · 258 阅读 · 0 评论