[Python] How to load SVM data from file in OpenCV 3.1?

Discussão em 'Python' iniciado por Stack, Setembro 6, 2025.

  1. Stack

    Stack Membro Participativo

    I have a problem with load trained SVM from file. I use Python and OpenCv 3.1.0. I create svm object by:

    svm = cv2.ml.SVM_create()


    Next, I train svm and save to file by:

    svm.save('data.xml')


    Now i want to load this file in other Python script. In docs i can't find any methods to do it.

    Is there a trick to load svm from file? Thanks for any responses.

    Continue reading...

Compartilhe esta Página