xml地图|网站地图|网站标签 [设为首页] [加入收藏]

# 那段代码是用小小二乘法拟合椭圆方程来判别人

It all starts with eyes,
she's got to have those kind of eyes that can look right through the bullshit,
to the good in someone.
20% angel, 20% devil
Down to earth
Ain't afraid to get a little engine grease under her fingernails

my_name = 'Zed A. Shaw'

gray_left_eye=rgb2gray;%左眼灰度图像

my_age = 35 # not a lie

left_eye_edge=edge(gray_left_eye,'sobel');%用sobel算子提取左眼边界

my_height =74 #inches

imshow(left_eye_edge);

my_weight = 180 #lbs

[y0,x0]=find(left_eye_edge==1);

my_eyes = 'Blue'

A=length;

my_teeth = 'White'

x_c=sum/A;

my_hair = 'Brown'

y_c=sum/A;

print "Let's talk about %s." % my_name    # % format control tools

mu_xx='*/A;

print "He's %d inches tall." % my_height

mu_yy='*/A;

print "He's %d pounds heavy." % my_weight

mu_xy='*/A;

print "Actually that's not too heavy."

a=sqrt*sqrt(mu_xx mu_yy sqrt((mu_xx-mu_yy)^2 4*mu_xy^2));

print "He's got %s eyes and %s hair." % (my_eyes, my_hair)

b=sqrt*sqrt(mu_xx mu_yy-sqrt((mu_xx-mu_yy)^2 4*mu_xy^2));

print "His teeth are usually %s depending on the coffee." % my_teeth

left=b/a;

# this line is tricky, try to get it exactly right

if(left<0.32)
text(width/2,height/2,'close', 'Color', 'r', 'FontWeight', 'bold');

print "If I add %d, %d, and %d I get %d." % (

else

my_age, my_height, my_weight, my_age my_height my_weight)

text(width/2,height/2,'open', 'Color', 'r', 'FontWeight', 'bold');

end

#### 小编精选

Ctrl+D 将本页面保存为书签，全面了解最新资讯，方便快捷。