我使用這個MATLAB程序到阿拉伯文字寫入圖像使用Matlab將阿拉伯文字插入圖像?
I = imread('test.jpg');
text_str = cell(3,1);
conf_val = [85.212 98.76 78.342];
str = char(['م','ا','ل','س']);
encoded_str = unicode2native(str, 'UTF-8');
position = [23 23];
RGB = insertText(I,position,str);
figure
imshow(RGB)
它顯示了「?」在圖像而不是阿拉伯文字母。 link to result
我無法複製。該文本在R2017a中顯示得很好。你使用什麼樣的'版本'?你的示例代碼有幾行內容什麼都不做。 – horchler
我正在使用matlab R2015a –