原创 gopl-Exercise1.5: Animated GIFs

本文主要用來記錄Golang學習中,Animated GIFs的小節作業。 源碼 // Copyright © 2016 Alan A. A. Donovan & Brian W. Kernighan. // License: h

原创 Golang go-simplejson

Source code go-simplejson a Go package to interact with arbitrary JSON. Install go get -u github.com/bitly/go-simpl

原创 Golang JSON Unmarshal MySQL datetime to time.Time

json.Unmarshal uses RFC3339 to decode MySQL datetime type into time.Time. Json snippet Right "Datetime": "2017-07-0

原创 Install OpenCV-Python on Ubuntu18.04

文章目錄OpenCV-python1 Pip / Pip32 OpenCV3 Reference OpenCV-python 1 Pip / Pip3 $ sudo apt-get update && sudo apt-get u

原创 基於OpenCV的圖像模糊與否檢測

本文用以記錄,圖像模糊與否的一種檢測方法,該方法主要採用圖像的拉普拉斯卷積操作。 源碼 blur_detection.h #pragma once #ifndef BLUR_DETECTION_H #define BLUR_DET

原创 gopl-Exercise1.7-9: Fetch

本文主要完成The Golang Programming Language中,1.7-9的練習。 源碼fetch.go // Copyright © 2016 Alan A. A. Donovan & Brian W. Kerni

原创 How to use tensorflow pre-trained model in Android

本文主要介紹在Retrain a tensorflow model based on Inception v3基礎上,將新訓練的tensorflow模型移植到Android中。 閱讀本文前,請確保已經知曉Retrain a ten

原创 Retrain a tensorflow model based on Inception v3

本文在谷歌2015_CVPR Inception v3模型的基礎上,結合花朵識別的具體問題重新訓練該模型,以獲取自己需要的tensorflow模型。 重新訓練Inception v3實質是在原有模型輸出層後,新加了一個輸出層作爲最

原创 golang simplejson 學習

golang simplejson 學習1 源碼2 輸出3 參考 1 源碼 package main import ( "encoding/json" "fmt" "reflect" "strconv" simple

原创 Python Pillow Image Invert

本文主要是利用Python的第三方庫Pillow,實現單通道灰度圖像的顏色翻轉功能。 # -*- encoding:utf-8 -*- import os import sys from PIL import Image from

原创 Go convert string to time

本文主要以代碼實例的形式,說明了Golang語言中,time對象和string對象之間的轉換。 源碼 package main import ( "fmt" "reflect" "time" ) fun

原创 Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR

1. 環境信息 Ubuntu 18.04 LTS python3.6 tensorflow-gpu 1.15.0 cuda 10.2 cudnn 7.6.3 keras 2.3.1 Nvidia (wtf) ➜ effic

原创 機器學習和數據科學攻略

原文鏈接:https://mbd.baidu.com/newspage/data/landingsuper?context=%7B%22nid%22%3A%22news_10296616795879

原创 golang -- ioDecReader redeclared in this block

1 問題 利用 govendor 來管理基於 gin 的golang web項目,我在用govendor remove移除不必要golang第三方庫後,在項目根目錄下運行go run main.go出現類似以下錯誤: ioDecR

原创 Ubuntu16.04 ImportError: No module named 'LanguageSelector.LanguageSelector'

解決方法 sudo apt-get install language-selector-gnome --reinstall sudo apt-get install language-selector-common --reins