原创 android攝像頭對焦出現的bug

E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback E/MessageQueue-JNI: java.lang.Runtim

原创 mac下caffe編譯中的錯誤

No receipt for ‘com.apple.pkg.CLTools_Executables’ found at ‘/’. /bin/sh: line 0: [: -gt: unary operator expected

原创 Python錯誤IndentationError: unexpected indent

IndentationError: unexpected indent 這個問題是縮進問題 報這個錯時,發現縮進什麼也沒問題。因爲文件是從mac拷到windows再編輯的,我一細檢查,mac上的縮進在windows全部變成了4個空

原创 Python判斷一個文件夾內哪些文件是圖片

def is_img(ext): ext = ext.lower() if ext == '.jpg': return True elif ext == '.png': re

原创 IOS添加手動對焦功能

1.初始化 /* * 對焦手勢 */ _tapGesture = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(focusGesture

原创 1>MSVCRTD.lib(crtexew.obj) : error LNK2019: 無法解析的外部符號 WinMain

vs2012的bug:1>MSVCRTD.lib(crtexew.obj) : error LNK2019: 無法解析的外部符號 WinMain 解決方法: 注意入口函數:創建項目時如果是win32項目,入口函數是WinMain