Automatic Optical Inspection (AOI) systems that are extensively used in the industry of Electronics Manufacturing Services (EMS), performs the inspection of Surface Mount Devices (SMD). One of the main tasks of such an AOI system is to align a given PCB to the parameters of the corresponding PCB positioning system by a process called fiducial alignment. However, no detailed analysis has been carried out so far on the methodologies that can be used to have a very precise identification of PCB fiducial points. In our research, we have implemented an AOI system for the inspection of soldering defects of Through Hole Technology (THT) solder joints, which can be integrated to a desktop soldering robotic platform. Such platforms are used in environments where no specific lighting conditions can be provided within a surrounded atmosphere. Therefore, an AOI system that is capable of performing fiducial alignment of any given PCB under varying lighting condition is highly preferred. In this paper, we have presented a detailed analysis on feature extraction and template matching algorithms that can be used to implement a very precise fiducial verification process under normal lighting condition.