![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
bug
铁匠oO
这个作者很懒,什么都没留下…
展开
-
关于linux下读取文件路径出错的问题(win10 & docker)
Q:最近在win10的docker拉的一个linux上用python脚本调用opencv处理图片时,按行读取一个txt中的图片路径(每行一个路径),结果将每行的字符串传进去,读取图片时发现读取的是none,但是如果手动赋值一个图片的路径字符串可以读取到。ps:读取每行已经做了replace('\n', '')和strip(),在mac上的linux读取不是none。A:将txt第一行repla原创 2017-06-17 13:21:31 · 2500 阅读 · 0 评论 -
mac下文件不能放入U盘问题
在mac下,文件拉不进去,抹掉也不行,发现是windows下NTFS格式,在mac上是只读的,也不能格式化,最后我在windows下给u盘格式成FAT格式后OK了,好像mac上有辅助工具可以格式化NTFS的。原创 2017-11-14 14:38:58 · 5058 阅读 · 0 评论 -
Python错误AttributeError: 'module' object has no attribute 'copy'
Traceback (most recent call last): File “/Users/fujikoli/scripts/test.py”, line 40, in import matplotlib.pylab as plt File “/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/l原创 2017-12-14 19:43:20 · 9037 阅读 · 0 评论 -
Linux下编译caffe报错catastrophic error: error while writing generated C++ file: No space left on device
catastrophic error: error while writing generated C++ file: No space left on device,但是查看内存和存储都够。解决方法:mkdir $HOME/tmpexport TMPDIR=$HOME/tmp原创 2017-12-23 09:41:20 · 662 阅读 · 0 评论 -
Linux下编译caffe报错catastrophic error: error while writing generated C++ file: No space left on device
catastrophic error: error while writing generated C++ file: No space left on device,但是查看内存和存储都够。解决方法:mkdir $HOME/tmpexport TMPDIR=$HOME/tmp原创 2017-12-23 09:41:29 · 861 阅读 · 0 评论 -
caffe问题Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Python
caffe中输入层使用python时,出现问题:Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Python解决方法:在caffe目录下Makefile.config中,把WITH_PYTHON_LAYER := 1的注释去掉就OK了。原创 2017-12-06 14:59:14 · 980 阅读 · 0 评论 -
caffe输入层问题AttributeError: 'RoIDataLayer' object has no attribute 'param_str_'
在caffe输入层用python时,出现下面的问题:Traceback (most recent call last): File “./tools/train_net.py”, line 112, in max_iters=args.max_iters) File “/data1/user/fujikoli/train_proj/tools/../lib/fast_rcnn原创 2017-12-06 14:42:07 · 3036 阅读 · 10 评论 -
CMake错误No CMAKE_CXX_COMPILER could be found.
No CMAKE_CXX_COMPILER could be found原创 2017-12-16 14:40:56 · 65290 阅读 · 15 评论 -
pip install opencv-python遇到的错误
Found existing installation: numpy 1.8.0rc1 DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact tha原创 2017-12-19 13:11:12 · 23132 阅读 · 23 评论 -
quadmath.h: No such file or directory yum install
问题:quadmath.h: No such file or directory解决方法sudo yum -y install libquadmath-devel原创 2018-08-18 14:58:48 · 2132 阅读 · 0 评论 -
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: 无法解析的外部符号 WinMain
vs2012的bug:1>MSVCRTD.lib(crtexew.obj) : error LNK2019: 无法解析的外部符号 WinMain解决方法: 注意入口函数:创建项目时如果是win32项目,入口函数是WinMain;如果是win32控制台应用程序,入口函数是main。原创 2017-11-04 13:47:40 · 2737 阅读 · 0 评论 -
Python错误IndentationError: unexpected indent
IndentationError: unexpected indent这个问题是缩进问题报这个错时,发现缩进什么也没问题。因为文件是从mac拷到windows再编辑的,我一细检查,mac上的缩进在windows全部变成了4个空格,而我又加的代码是用的缩进,因为python只允许一个代码块中缩进和4空格两者存在一种,所以要细心了!原创 2017-11-18 10:30:35 · 1248 阅读 · 0 评论 -
Xcode运行错误library not found for -lcrt1.3.1.o
Xcode运行错误library not found for -lcrt1.3.1.o解决方案: 将Deployment Target由5.0改成6.0以上原创 2017-10-26 16:23:16 · 388 阅读 · 0 评论 -
关于IOS的AVFoundation框架的AVCaptureVideoDataOutput无法输出问题
最近用到了AVFoundation做个跟视频相关的项目,在使用AVCaptureVideoDataOutputSampleBufferDelegate这个委托的(void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnectio原创 2017-07-06 11:53:04 · 596 阅读 · 0 评论 -
编caffe2的android库出现的问题
改了下caffe2的代码,跑scripts/build_android.sh时,出现了下面的错误:There is an error when I compile the build_android.sh:Building caffe2CMake Error at third_party/android-cmake/android.toolchain.cmake:616 (me原创 2017-08-28 13:34:22 · 1623 阅读 · 0 评论 -
IOS编GPUImage库遇到的问题
git上clone的GPUImage,跑build.sh脚本时,遇到下面错误: xcodebuild: error: SDK “iphoneos9.0” cannot be located解决方法: xcodebuild -showsdks后,出现自己的sdk的版本,然后打开build.sh,将IOSSDK_VER改成相应的版本就行了。原创 2017-09-08 09:19:45 · 1275 阅读 · 0 评论 -
ndk编静态库遇到的错误
jni/opencv-prefix/jni/include/opencv2/core/types_c.h:55:10: fatal error: ‘assert.h’ file not found解决方案:利用Android Studio内下载重新NDK吧,之前的版本我是直接下载的,可能与AS的Android的SDK有冲突。原创 2017-09-09 12:43:32 · 664 阅读 · 0 评论 -
error: cannot use 'try' with exceptions disabled
NDK编库时,出现error: cannot use ‘try’ with exceptions disabled这个错误。解决方案: 在Android.mk中添加LOCAL_CPPFLAGS += -fexceptions即可编译成功。原创 2017-09-09 13:20:06 · 10445 阅读 · 0 评论 -
DELETE_FAILED_INTERNAL_ERROR Error while Installing APKs
安卓真机调试出现的错误,把app卸载了还是不能装。解决方法: File->Settings->Build,Execuion,Deployment->Instant Run 然后把Enable Instant Run to…那一项的勾去掉就好了。原创 2017-09-20 09:51:52 · 409 阅读 · 0 评论 -
无法启动此程序,因为计算机丢失opencv_core249d.dll
在本子上配置环境测试下OpenCV,出现无法启动此程序,因为计算机丢失opencv_core249d.dll,opencv_imgproc249d.dll,opencv_highgui249d.dll。解决方案: 在C++工程里的Debug目录里添加opencv_core249d.dll,opencv_imgproc249d.dll,opencv_highgui249d.dll这三个文件即可,不需原创 2017-10-02 14:21:49 · 2414 阅读 · 0 评论 -
android摄像头对焦出现的bug
手动对焦bug原创 2017-10-19 14:09:53 · 836 阅读 · 0 评论 -
Xcode报错undefined xxx
1.undefined reference xxx 未找到函数,在compile Sources 添加需要编译的.cpp文件或者.m文件或者Link Binary With Libraries加上.a静态库。2.undefined symbols for architecture xxx Link Binary With Libraries下添加需要的framework。还有一种情况是本身这个f原创 2017-10-21 13:02:05 · 730 阅读 · 0 评论 -
IOS camera bug
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSCameraUsageDescription key with a string value explaining原创 2017-10-26 10:43:14 · 290 阅读 · 0 评论 -
undefined reference to `PyUnicodeUCS2_FromEncodedObject'
编译SSD版caffe的python接口,出现以下问题 .build_release/lib/libcaffe.so: undefined reference to `PyUnicodeUCS2_FromEncodedObject’网上查了下相关的资料,最后在python文档中找到了这个问题 https://docs.python.org/2/faq/extending.html#can-...原创 2018-08-23 13:04:58 · 1930 阅读 · 1 评论