Focusing method of camera module and system thereof

The present invention relates to a focusing method and apparatus of a camera module, the method comprising: setting gripped by the lens holder can rotate a lens of the camera module; An image capture step of rotating the lens photographing a chart with a boundary; Image analysis step of calculating a standard deviation value for the spread of the chart boundary surface from the acquired image; Rotating the lens to adjust the lens until the standard deviation value comes within the reference standard deviation value range; Compensation rotating the lens by the standard deviation value is smallest place through the quadratic regression analysis; It includes. According to the invention the camera and automatically performs a focusing process, and the operation is quickly the module, there is no trouble of having to adjust the position and size of the chart according to the number of pixels of the camera module subject to examination, it is possible also to compensate for the error range excellent accuracy.