On Monday, August 14, 2017 at 4:41:23 PM UTC-7, Ho Yeung Lee wrote: > my code can run without error, > > you can try to download one of face from search keyword "face" > and try this script
You're assuming a lot. From your code: from PIL import Image # Two lines removed import numpy as np import cv2 from pylab import plot,show from numpy import vstack,array from numpy.random import rand from scipy.cluster.vq import kmeans,vq from pywinauto.application import Application I count five third-party packages which are not part of the Python language. Many programmers won't have all of these packages installed. Many people won't have any of these packages installed. > > On Tuesday, August 15, 2017 at 4:33:51 AM UTC+8, jlad...@itu.edu wrote: > > On Monday, August 14, 2017 at 12:30:21 PM UTC-7, Ho Yeung Lee wrote: > > > https://gist.github.com/hoyeunglee/df7e6cb9b76c576b26fd2bb2b26bfe2f > > > > > > sample image > > > https://drive.google.com/file/d/0Bxs_ao6uuBDUY09qM1JMWS1Ob0k/view?usp=sharing > > > > > > would like to rectangle bound the eye ,mouth corner etc > > > which detected by harris corner > > > > > > but using kmeans can not rectangle the red area drawn by harris corner > > > > Does your code run without errors? You appear to be asking more general > > question, about machine learning and image processing algorithms, than > > about Python. -- https://mail.python.org/mailman/listinfo/python-list