A system design technique of automatic thickness measurement and defect inspection system, which measures the thickness of the ALC(Autoclaved Lightweight Concrete) block and inspects the defect on a realtime basis is proposed. The image processing system was established with a CCD camera, an image grabber, and a personal computer without using assembled measurement equipment. The image obtained by this system was analyzed by a devised algorithm, specially designed for the enhanced measurement accuracy. For the realization of the proposed algorithm, the preprocessing method that can be applied to overcome uneven lighting environment, an enhanced edge decision method using 8 edge-pairs with irregular and rough surface, the unit length decision method in uneven condition with rocking objects, and the curvature calibration method of camera using a constructed grid are developed. The experimental results, show that the required measurement accuracy specification is sufficiently satisfied using our proposed method.