This paper reports the finding of the experimentation of the Particle Swarm Optimization in optimizing the stereo matching algorithm’s parameters for the star fruit inspection system. The star fruit inspection system is built by CvviP Universiti Teknologi Malaysia. While the stereo matching algorithm used in the experiment is taken from the Matlab library. Each particle of Particle Swarm Optimization in the search pace repsents a set of candidate
numerical value of the stereo matching’s parameters. The fitness function for this application is the sum of absolute error of the gray scale value of both images. Based on this information, the particles will improve its position in the search space by moving towards its best record and the swarm best record. The process repeated until the maximum iteration met. The result indicates that there is potential application of Particle Swarm Optimization in stereo matching’s parameters tuning