Text this: Least Squares Method and Least Modules Method for Finding Defects in Regular Images