書籍「今すぐ試したい!機械学習・深層学習(ディープラーニング)画像認識プログラミングレシピ」のソースコードを配布するレポジトリです。
MIT License
https://www.amazon.co.jp/dp/4798056839
docker-compose up
Docker267ColumnPull Request
Twitterhttps://twitter.com/kokensha_tech
python3 app.py04-06GitHub
27004-06
book-ml/docker-python3-flask-ml-app/app/chainer_dogscats/
04-06URL(Kaggle)
Output
False
False
Pythonimport
from mpl_toolkits.mplot3d import Axes3D
openCV
ValueError: not enough values to unpack (expected 3, got 2)
import numpy as np
import cv2
import matplotlib.pyplot as plt
img_bgr = cv2.imread('kawashima01.jpg')
img_gray = cv2.cvtColor(img_bgr,cv2.COLOR_BGR2GRAY)
retval,thresh = cv2.threshold(img_gray,88,255,0)
contours, hierarchy = cv2.findContours(thresh,cv2.RETR_EXTERNAL,cv2.CHAIN_APPROX_SIMPLE)
blank_image = 255 * np.ones((320,320,3), np.uint8)
result_img = cv2.drawContours(blank_image, contours, -1, (0,0,255), 3)
#
plt.imshow(result_img)
plt.show()
Python
x.shape[:2]
image.shape[:2]
1 scikit-learn MNIST
1 scikit-learn
iris.data/
digits.data/
201812ColabTensorFlow1.xColabTensorFlow2.x
TensorFlow1.x ColabTensorFlow1.x Colab
%tensorflow_version 1.x
https://github.com/Kokensha/machine_learning_deep_learning_lessons