book-ml

書籍「今すぐ試したい!機械学習・深層学習(ディープラーニング)画像認識プログラミングレシピ」のソースコードを配布するレポジトリです。

MIT License

Stars
40
Committers
2

book-ml

https://www.amazon.co.jp/dp/4798056839

  • ColaboratoryJupyter NoteBookGoogle Colaboratory96
  • docker-python3-flask-ml-app04-05 04-06 05-0105-03 PCdocker-compose upDocker267Column
  • python04-02 05-04 05-08 07-02 Python
  • scripts04-02

Pull Request

Twitterhttps://twitter.com/kokensha_tech

259

python3 app.py04-06GitHub

27004-06

book-ml/docker-python3-flask-ml-app/app/chainer_dogscats/

04-06URL(Kaggle)

108

Output

False

False

147148231

Pythonimport

from mpl_toolkits.mplot3d import Axes3D

173

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()

175

Python

x.shape[:2]

image.shape[:2]

226

1 scikit-learn MNIST

1 scikit-learn

iris.data/

digits.data/

366379Colab

201812ColabTensorFlow1.xColabTensorFlow2.x

TensorFlow1.x ColabTensorFlow1.x Colab

%tensorflow_version 1.x

https://github.com/Kokensha/machine_learning_deep_learning_lessons

ITRepo

https://github.com/kawashimaken/salon

Related Projects