This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IPNC 3.8 SWOSD 中文字庫問題請教



我的環境: DM8127  & IPNC RDK 3.8

請問一下: 我想要做一個像SWOSD內建的SWOSD_STRING PATTERN一樣的漢字字庫,我試了一下使用手冊的步驟,請各位高手指正

Step1: Creation of bmp image of string pattern

             這個步驟寫說用Windows小畫筆做出文字的BMP檔,我的步驟 (1)將字串"測試文字"用螢幕擷取存檔,然後用小畫筆轉成BMP檔

Step2: Conversion of bmp format to jpeg format:

               : 轉成jpeg

Step3: Conversion of JPEG format to YUV422 format:

             我是用UBUNTU的ImageMagick套件

             $: convert  XXX.jpg  XXXX.uyvy

Step4: Conversion of YUV422 format to YUV420 planar (UV interleaved) format

              使用  image_convert   --> image_convert  -i  input.yuv  uyvy422 640 480 640  -o  output_05_420.yuv   yuv420p 640

Step 5:  Extract the y data and uv data:

               目前還沒找到合適工具

Step 6: Conversion of YUV files to TEXT file

               使用Bin2C 工具

問: 1. 在第一個步驟裡,SWOSD是一個字元一個BMP檔,還是可以將整個字串PATTERN只做成一個檔案,BMP檔是否需要去除背景色?

         2.  Step4中,的寬度、高度與offset要如何調整?

         3.     Step5中,要如何分離Y分量與UV分量?

   4. 想請問SWOSD YUV字庫檔的格式,有沒有特殊的編排?還是轉檔完後即可使用?(對YUV格式不太了解)

謝謝

  • Hi ,

          我也有这样的困惑,可以分享一下这几个问题的方法吗

  • 製作流程:
    1: 製作bmp字圖檔 ,一個bmp檔可以有多個字,例如: "測試字庫"

    但我沒做去背


    2. bmp轉成JPG檔   http://www.zamzar.com/uploadComplete.php?convertFile=bmp&to=jpg
    3. JPG轉成YUV422--->使用ImageMagick 工具
    4. YUV422轉成YUV420 -->使用TI內附image_convert工具
    ---> image_convert -i xxxx.uyvy yuv422 64 28 64 -o xxx.yuv yuv420p 64
    5. yuv420檔 轉成C語言char陣列--->使用Bin2C工具
    6.分離char陣列-->Y陣列(前面2/3) , UV陣列(剩餘1/3)

    結果: