// 根据人脸中心点坐标从左至右排序 public int compareTo(Face face) { // TODO Auto-generated method stub int result = 0; if (this.getCenterX() > face.getCenterX()) result = 1; else result = -1; return result; }