Aiming at the problem that face recognition methods only rely on single feature recognition leading to low recognition accuracy, a face recognition algorithm based on the optimal fusion of LBP and HOG features is proposed. The method first extracts the face features through LBP and HOG operators and subsequently fuses the two features using linear weighting. Unlike traditional feature fusion, a genetic algorithm is introduced to automatically optimise the weights during feature fusion. At the initial stage, a number of weight sets are randomly generated, and the recognition accuracy obtained in facial recognition tasks by the fused features is used as the primary evaluation metric for the quality of weights. By iteratively performing operations such as selection, crossover, and mutation on the weights in the solution space, the quality of weights is optimized. After successive iterations, the optimal combination of weights is obtained, ensuring that the fused features exhibit optimal performance. Finally, employing the Euclidean distance as a measure of similarity between features, the fused features are classified using the nearest-neighbour classification method, and the recognition accuracy is computed. Experimental validation is conducted on the publicly available YALE and ORL datasets. The results indicate that, compared to other face recognition algorithms, this method exhibits superior robustness and higher recognition accuracy.