sipeed / MaixPy-v1

MicroPython for K210 RISC-V, let's play with edge AI easier
https://wiki.sipeed.com/maixpy
Other
1.68k stars 439 forks source link

VGA compress JPEG error #466

Closed znstj closed 2 years ago

znstj commented 2 years ago

图像由RGB565或YUV422压缩为JPEG格式时,出现错误

右下角最后一个8*8的huffman数据段出现错误 JPEGsnoop错误如下: ERROR: Can't find huffman bitstring @ 0x00008181.3, table 1, value [0xfffec800] ERROR: Bad huffman code @ 0x00008181.2 *** ERROR: Bad scan data in MCU(79,59): Chr(Cr) CSS(0,0) @ Offset 0x00008181.3 MCU located at pixel=(632,472) 偶尔出现,同一张图片,压缩比一致,多次压缩必然重复出现该错误。

未发现错误原因

znstj commented 2 years ago

换了OPENMV旧的jpeg算法以解决,https://github.com/openmv/openmv/blob/bc6d1d22f0/src/omv/imlib/jpeg.c 暂时不知道原因在哪里