Re: why k means do not rectangle the red area drawn by harris corner?

2017-08-14 Thread Michael Torrie
On 08/14/2017 07:28 PM, jlada...@itu.edu wrote: > 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: > > f

Re: why k means do not rectangle the red area drawn by harris corner?

2017-08-14 Thread jladasky
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

Re: why k means do not rectangle the red area drawn by harris corner?

2017-08-14 Thread Ho Yeung Lee
my code can run without error, you can try to download one of face from search keyword "face" and try this script 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/

Re: why k means do not rectangle the red area drawn by harris corner?

2017-08-14 Thread Ho Yeung Lee
i would like to ask whether at line dd = dst>0.01*dst.max() and the part of code below from script, whether write wrong in array access or assignment testing1 = zip(*np.where(dd == 1)) locations = testing1 testing1 = [list((float(elem[0]),float(elem[1]))) for elem in testing1]

Re: why k means do not rectangle the red area drawn by harris corner?

2017-08-14 Thread jladasky
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

why k means do not rectangle the red area drawn by harris corner?

2017-08-14 Thread Ho Yeung Lee
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