An algorithm is proposed to detect small liver cancers in enhanced CT scan images. This algorithm extracts the liver area by areagrowth method,then simplifies the template matching method which is proposed by Y Lee and uses the method to quick the calculating speed.