Abstract Currently, new energy industries such as electric vehicles and storage batteries are experiencing rapid growth throughout the world. As a recognized ideal element, lithium have also attracted considerable interest. To improve image contrast, industry employs preprocessing algorithms. Due to high requirement of consistency in template matching method, which is difficult meet practice, l...