Ask Your Question

Revision history [back]

how to use unicode with knearest::train for arabic character

I want to do something like that but when I do that the result is ASCII code, not Unicode

cv::Mat_<wchar_t> trainFeatures(40, 1);
    trainFeatures <<  'ب', 'ت', 'ث', 'ج', 'ح', 'خ', 'د', 'ذ', 'ر', 'ز', 'س', 'ش', 'ص', 'ض', 'ط', 'ظ;
    cout << trainFeatures;