OpenCV PCA Compute in Python

前端 未结 2 518
半阙折子戏
半阙折子戏 2020-12-31 14:35

I\'m loading a set of test images via OpenCV (in Python) which are 128x128 in size, reshape them into vectors (1, 128x128) and put them all together in a matrix to calculate

2条回答
  •  暖寄归人
    2020-12-31 15:07

    You can also put

    cv.PCACompute(matrix_test, mean = np.array([]))
    

    and the function computes the mean.

提交回复
热议问题