文献
G. B. Huang, M. Ramesh, T. Berg, and E. Learned-miller. Labeled
faces in the wild: A database for studying face recognition in un-
constrained environments. In ECCV Workshop on Faces in Real-life
Images, 2008.
【サイト内の関連ページ】
【関連する外部ページ】
Python の公式ページ: https://www.python.org/
Windows では,コマンドプロン プトを管理者として実行し, 次のコマンドを実行する.
python -m pip install -U scikit-learn scikit-learn-intelex
sudo apt -y update sudo apt -y install python3-sklearn
LFW (the Labeled Faces in the Wild people dataset) の公式ページ: http://vis-www.cs.umass.edu/lfw/
Python プログラムの実行
import sklearn.datasets a = sklearn.datasets.fetch_lfw_people(resize=1.0, color=True)
print(a.images.shape)
import cv2 cv2.imshow("", cv2.cvtColor(a.images[0], cv2.COLOR_RGB2BGR)) cv2.waitKey(0) cv2.destroyAllWindows() # pl.imshow(255.0 - a.data[0])