自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(54)
  • 资源 (1)
  • 收藏
  • 关注

原创 paddle onnx protobuf visualdl cuda cudnn版本匹配

经过尝试发现如下版本能正常安装。

2023-05-04 13:39:11 1005 4

原创 修改 huggingface transformers 默认模型保存路径

修改 huggingface transformers 的默认模型保存位置

2023-04-23 14:29:21 7894 2

原创 python opencv vscode 增加自动补全 auto completement

vscode中使用opencv时,无法自动补全。自己生成 pyi 文件。

2023-03-17 14:52:39 718 1

原创 彻底移除conda命令

在powershell中移除启动时添加的conda命令

2022-08-29 11:16:57 904 1

原创 open3d Error - Read geometry::TriangleMesh failed: unknown file extension.

问题使用open3d加载obj模型时报错Read geometry::TriangleMesh failed: unknown file extension.解决方法更新open3d到最新版本pip uninstall open3d-pythonpip install open3d备注pip install open3d-python上述命令安装的open3d版本为0.7,最新为0.15...

2022-04-24 13:38:19 2060 2

原创 【表结构】

http://:9200/camera_basic_info/{ "settings": { "index": { "number_of_shards": "5", "max_result_window": "2000000000", "analysis": { "analyzer": { "geonum4_analyzer": { "filter": [ "uppercase", "asciifolding"

2022-03-01 11:13:25 97

原创 【视频产品】摄像头坐标打码脚本

def add_monitor_area_for_cam_location(): df = pd.read_excel('xxxx.xlsx') url = '/monitorarea/registerMonitorArea' headers = {'Content-Type': 'application/x-www-form-urlencoded'} prefix = '{"type":"Point","coordinates":' postfix = '}'

2022-02-28 19:07:12 275

原创 测试 liveGBS摄像头的可用性

测试 liveGBS摄像头的可用性#coding=utf-8import cv2 import json import tqdm import requests import logging import pandas as pd class liveGBS(object): def __init__(self): self.url = "http://xx.xx.xx.xx:xxxxx" class liveGBSStream(object):

2022-02-24 16:25:49 2273

原创 openssl 报错 Can‘t open openssl.cnf for reading, No such file or directory

openssl 报错Can’t open C:\ci\openssl_1569593028961_h_env\Library/openssl.cnf for reading, No such file or directory9372:error:02001003:system library:fopen:No such process:crypto\bio\bss_file.c:69:fopen(‘C:\ci\openssl_1569593028961_h_env\Library/openssl.c

2021-12-07 10:22:31 6678 2

原创 ffmpeg: cl is unable to create an executable file

按官网编译Windows版ffmpeg,configure报错查 log 发现,平台不符(x86 vs x64)。本机是64位,将之前用的 “VS2015 X64 X86 兼容工具命令提示符” 改为“VS2015 X86 X64 兼容工具命令提示符”后即可。

2021-11-12 16:09:37 760

原创 [C++学习]应输入声明C/C++(169)

将该段加入到main函数中。

2021-10-06 16:24:03 8655 1

原创 应输入标识符C/C++(40)

将 , 改为 ;

2021-10-05 21:19:02 16079

原创 use of deleted function ‘std::basic_istream<_CharT, _Traits>::basic_istream(const std::basic_istream

下述代码报错,原因是因为istream后漏了一个 &//从输入流中将家庭作业的成绩读入到一个vector<double>中istream read_hw(istream& in, vector<double>& hw){ if (in) { //清除vector原先的内容 hw.clear(); //读家庭作业成绩 double x; while (in &gt

2021-10-05 20:57:34 839

原创 ModuleNotFoundError: No module named ‘libc‘ 的解决方法

ModuleNotFoundError: No module named 'libc'TLDRTLDR从from libc.math import sqrt改为from libc.math cimport sqrt注意是cimport而不是import

2021-07-07 09:50:00 691

原创 线性代数应用系列-1-图像旋转(3/N)-并行加速

图像旋转3/N-并行加速正文计算旋转后的顶点坐标参考正文前文用了二重循环的方式,非常慢,本章将在时间上优化。这里用到了 np.meshgrid 函数。计算旋转后的顶点坐标from PIL import Image import numpy as np import matplotlib.pyplot as plt # 读取图片img = Image.open("lena.jpg")img_arr = np.array(img)# 需要用到的两个旋转矩阵theta = 45 /

2021-06-04 16:35:25 237 1

原创 线性代数应用系列-1-图像旋转(2/N)-去除黑色条码

图像旋转2/N-去除黑色条码正旋转与反旋转旋转后坐标的有效性验证新的问题参考接上文线性代数应用系列-1-图像旋转(1/N)-最基础直接的方式。正旋转与反旋转直接进行旋转得到的图像有明显的黑色条码,这与我们的期望不符。得到这个结果后,本能的想到了插值,知道看到了有篇文章介绍了旋转后再旋转回来的套路,将对原图的二重遍历,转化为对旋转后图像的二重遍历,这样就不会遗漏旋转后图像上的点。以原图A为例,逆时针旋转45°后得到新图B,新图B顺时针旋转45°后得到新图C,对B到C的转换过程应用上文中的思路,即达

2021-06-01 13:31:44 351

原创 线性代数应用系列-1-图像旋转(1/N)-最基础直接的方式

@TOC最近考虑到个人发展的事情,打算巩固下图像处理相关方面的基础,于是开始重温一本关于线性代数及其应用的书《Linear Algebra with Applications, 9th edition》。使用经典的Lena图(512x512尺寸),请自行搜索获取。线性代数与点旋转直接说结论,对于二维平面上的一个点来说,将其逆时针旋转 θ\thetaθ 即表示其对应的旋转矩阵为[cos(θ)−sin(θ)sin(θ)cos(θ)]\left[ \begin{matrix} cos(\th

2021-05-31 19:22:18 1374 1

原创 WSL DETECTED: We recommend using Docker Desktop for Windows

目录背景问题解决方法背景已经配置好了wsl2和docker desktop,因C盘空间不够卸载了Ubuntu20.04,后来又重新安装了Ubuntu20.04(nVidia-docker需要)问题可以在powershell下使用docker,但是不能在Ubuntu下运行,提示如下$ docker Command 'docker' not found, but can be installed with: sudo apt install docker.io$ sudo apt ins

2021-05-19 17:11:00 3817 1

原创 np.arctan2 易错点:函数参数x1、x2与x、y的对应关系

背景计算线性方向平均值时,需要用到 np.arctan2 函数问题验证时,发现结果与ArcMap的小数部分相同,整数部分不一样原因计算时,将纬度(x)放在了x1位置,经度(y)放在了x2位置,而实际该函数的参数要求是相反的,即Parametersx1: array_like, real-valuedy-coordinates.x2: array_like, real-valuedx-coordinates. ...

2021-04-23 14:30:56 916

原创 tensorflow v2 object detection ValueError 问题

tensorflow v2 object detection ValueError 问题背景解决方法背景近期项目需求,再次上手tf的API,顺便升级到了V2。Windows10 下训练时发现报了这么个错误:Traceback (most recent call last): File "D:\Anaconda3\lib\site-packages\absl\app.py", line 299, in run _run_main(main, args) File "D:\Anacond

2020-09-29 09:50:47 712 6

原创 ubuntu 20.04 安装 cuda tensorflow pytorch

注意tensorflow 2.3 目前仅支持 cuda 10.1安装 cuda 10.1gcc 需要降级到8,默认为9教程如下:https://docs.nvidia.com/cuda/archive/10.1/cuda-installation-guide-linux/index.html安装 tensorflow 2.3pip install 即可安装 pytorch 1.6.0从官网下载安装包,pip install即可https://download.pytorch.org/

2020-08-12 13:17:17 1070

原创 自动重启挂掉的ffmpeg服务

自动重启挂掉的ffmpeg服务背景准备代码启动服务检查服务状态并重启执行参考背景工作需要进行视频流的转换,但是不稳定,需要挂掉后自动重启服务。准备代码启动服务restart.sh中的内容ffmpeg -i "rtsp://xx.xx.xx.xx:554/xxx?tcp" -vcodec mpeg2video -b 2048k -acodec libmp3lame -ab 128k -f...

2020-04-14 11:30:03 3653 1

原创 Cython: Working with NumPy

运行时间方法时间convolve_py409 ms ± 5.92 ms per loop (mean ± std. dev. of 3 runs, 2 loops each)convolve1305 ms ± 2.06 ms per loop (mean ± std. dev. of 3 runs, 2 loops each)convolve2329 ms ...

2019-12-26 22:41:55 122

原创 Cython Profiling 实践

Cython Profiling 实践时间记录python 实现cython 实现1cython 实现2cython 实现3TIPScProfile has no attribute runctxZeroDivisionError时间记录python 实现# calc_pi.pydef recip_square(i): return 1. / i ** 2def approx...

2019-12-24 21:46:15 226

原创 Windows10与Ubuntu18.04系统中,python编程的差异(持续更新)

目录起因正文os.listdir() 函数起因因工作需要,在Windows10环境下开发,Ubuntu18.04下部署。工作过程中发现在一个系统中正常运行的代码,到了另一个系统出现异常,检查发现是两个系统间有些差异,所以整理记录。正文os.listdir() 函数与Windows不同,该函数在ubuntu环境下返回没有排序的列表。...

2019-09-06 09:03:15 2115

原创 Windows 10 通过 rdp 远程连接 Ubuntu 18.04

在Ubuntu上安装 xrdp sudo apt install xrdp重启 Ubuntu注意:不要登陆 Ubuntu 系统在 Windows 系统上打开 rdp输入 Ubuntu 系统的IP地址,不要保存凭据连接到 Ubuntu 系统, 输入密码如果出现Ubuntu的授权窗口,点击 cancelPS: 取消授权窗口的方法:@cswusudo bash -c "cat &g...

2018-12-20 14:50:59 6785 1

原创 Ubuntu 18.04 grub installation failed

该问题有好几种可能的原因。我的原因是使用UEFI 启动,但没有设置EFI分区:之前看到有帖子说新版Ubuntu只需要一个分区即可,所有没有设置这个分区,导致重装多次都是该错误。将第一个分区设置为EFI即解决该问题。其他可能的原因:Ubuntu18.04安装grub失败的解决方法安装ubuntu最后出现grub安装失败(grub installation failed)、安装程序崩溃...

2018-12-20 13:53:51 5009

翻译 解决 Windows 10 自带虚拟机运行 Ubuntu 18.04 卡顿的问题

来源: A guide how to run Ubuntu 18.04 in Enhanced Mode in Hyper-V 系统要求控制端:Windows 10, 1803以及之后受控端:Ubuntu 18.04步骤修改 Ubuntu18.04 以使用 xrdp#Get the scripts from GitHub$ sudo apt-get update$ sudo ...

2018-12-18 10:15:03 9797 1

原创 onenote 共享笔记本 错误代码: 0x803d0000

最近需要在个人账户和工作账户间同步OneNote笔记本,却出现下列错误。服务器无法完成此操作。错误代码: 0x803d0000百度谷歌都找不到解决方法,以下是替代方法:使用网页版登陆OneNote;选择需要共享的笔记本,点击右上的共享即可。...

2018-12-12 14:07:53 5287

原创 python 环境下 gdal, rasterio, fiona, geopandas, shapely 版本适配

python 下, rasterio 对 gdal 的版本有要求但是却没有说明, fiona 似乎也是如此。如果 gdal 的版本落后于 rasterio 和 fiona 的版本, 就会出现如下错误:ImportError: DLL load failed: 找不到指定的模块。故记录下已使用的适配版本, 供其他人参考。rasteriofionagdal1.0a12......

2018-12-10 10:00:54 4620 2

原创 FAISS 聚类使用记录

spherical的作用maxpointsper_centroid说明根据官方文档GPU k means example所述该值设置了256的默认值,对某些大数据集来说需要更改为((numVecsToCluster + numberOfClusters - 1) / numberOfClusters) // By default faiss only samples 256 v...

2018-11-05 15:24:27 4102

原创 win32ui.error: CreateCompatibleDC failed

while trying to reproduce codes on PoE AI Part 4: Real-time Screen Capture and Plumbing, i encountered an error like this :PS E:\tmp\game_assistant&gt; python .\SSTime.pyException in thread Thread-...

2018-10-14 16:14:16 3766 6

原创 ubuntu, dlib, anaconda: dlib `CXXABI_1.3.8' not found

昨天编译安装dlib,成功安装后import时提示dlib `CXXABI_1.3.8’ not found经查@Xer,tensorflow编译安装有类似的问题,是由anaconda引起的。解决方法如下:strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep CXXABI_1.3.8如果上述命令返回 &gt; CXXAB...

2018-09-29 09:14:18 354

转载 win10, virtualbox, docker —— 更换dockers默认存储路径

原帖链接: @Rajesh J Advani安装步骤添加环境变量,比如MACHINE_STORAGE_PATH =“E:\VirtualBox VMs\docker”安装docker toolbox备注亲测,安装docker后再添加环境变量没有作用。...

2018-09-25 09:47:55 1513

转载 CMAKE_C_COMPILER CMAKE_CXX_COMPILER not set

– Building for: NMake MakefilesCMake Error in CMakeLists.txt:GeneratorNMake Makefilesdoes not support platform specification, but platformx64was specified.CMake Error: CMAKE_C_COMPILER not set...

2018-09-20 15:40:30 9648

原创 Pycharm 下设置运行/调试时的工作目录

直接运行/调试Pycharm中的程序时,默认工作目录为当前代码文件的目录,在工程比较复杂(包含多个文件夹、子包)时,这样做会导致一些意料之外的错误,比如找不到文件——因为相对路径的原因——等等。这时需要手动设置工作目录,本例中将 working directory 设置为 “E:\ChinaRS\code\example_codes\Flow-Guided-Feature-Aggregatio...

2018-09-18 16:41:04 15494

转载 win10, python35, cuda90实现NMS

原帖 https://www.cnblogs.com/king-lps/p/9031568.html, Linux平台下。方法1、2没有大问题,只需要注意模块名的一致性方法3:setup2.py 需要添加numpy库。见无法打开包括文件: “numpy/arrayobject.h”: No such file or directoryfrom distutils.core i...

2018-09-17 14:47:21 1191 2

原创 win10, cuda 9.0, python 3.5环境下复现 Flow-Guided Feature Aggregation for Video Object Detection 问题总结

error:Microsoft Visual C++ is required 参考链接,在vs2017中配置vc++ 14LINK : fatal error LNK1158: cannot run ‘rc.exe’ 参考链接 将rc.exe、rcdll.dll从C:\Program Files (x86)\Windows Kits\8.1\bin\x64复制到C:\Program Fil...

2018-09-14 09:02:35 2136 4

原创 安装visual studio 2017的情况下,"error: Microsoft Visual C++ 14.0 is required"的解决方法

最近复现mxnet FGFA,安装安装链接到第二步时出错python setup_windows.py build_ext --inplacerunning build_extskipping 'bbox.c' Cython extension (up-to-date)building 'bbox' extensionerror: Microsoft Visual C++ 14.0 i...

2018-09-14 08:41:13 12518 2

原创 使用SCP (Semi-Automatic Classification Plugin) 下载哨兵(Sentinel)数据

拥有一个哨兵数据的下载账号(官网免费注册)切换到SCP的设置页面,选择Login data,填写用户名和密码如果还不能正常使用,将Login Sentinels的Service网址改为https://scihub.copernicus.eu/dhus ...

2018-09-05 16:41:05 1420

Leica DISTO™ D5 手持式激光测距仪说明书

感谢您选用 Leica DISTO™ D5 手持式激光测距仪。 请在使用此产品前,先仔细阅读产品使用手册和安全手册。 仪器负责人员应确保所有使用人员阅读并遵循此手册。 目录 安全手册 ...................................... 1 启动 .......................................... 4 菜单功能 ...................................... 5 操作指南 ...................................... 7 基本测量 ...................................... 7 功能使用 ...................................... 8 备注 ......................................... 12

2020-01-19

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除