-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Description
Answers checklist.
- I have read the documentation XiaoZhi AI Programming Guide and the issue is not addressed there.
- I have updated my firmware to the latest version and checked that the issue is present there.
- I have searched the issue tracker for a similar issue and not found a similar issue.
XiaoZhi AI firmware version.
v2.0.4
Operating System used.
Windows
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
CMD
Power Supply used.
USB
What is the expected behavior?
拍摄一张照片,然后在屏幕上显示并分析
What is the actual behavior?
在屏幕上显示出了错误的图片:正常的图像中参杂很多绿色像素
Steps to reproduce.
- menuconfig中Board Type选择(正点原子DNESP32S3)
- component -> Espressif camera sensors -> sensor configuration -> select -> ov5640 -> 勾选auto detect ov5640,选择YUV422 800X600 10fps dvp 8-bit 24M input
在此之前因为检测不到摄像头,已经尝试过issues/1380的内容,而后成功检测到摄像头并成功初始化和拍照
但问题是,拍照后呈现错乱的颜色(花屏)
并且已经尝试过pull/1245中提到的解决方法:
-
启用 (Top) → Component config → Espressif Camera Sensors Configurations → Camera Sensor Configuration 的 Enable pixel byte order swapping 选项(如果存在此选项)。
-
如果没有这个选项,或者打开后没有效果,则禁用 Enable pixel byte order swapping 选项,启用 (Top) → Xiaozhi Assistant → Camera Configuration 的 Enable software camera buffer endianness swapping (USE WITH CAUTION) 选项。
也尝试了pull/1245下方调低频率20M为10M的提议,仍无法正常工作,后续尝试调高频率为24M,依旧无效。
此外,我发现正点原子开发板摄像头有ov2640和ov5640两种,而小智v2的atk_dnesp32s3.cc的初始化是针对ov2640的,但我的是ov5640版本,所以我在想是否因不适配ov5640而产生花屏错误?
Debug Logs.
暂无
More Information.
D (14763) Esp32Camera: frame.len = 960000, frame.width = 800, frame.height = 600
D (14763) Esp32Camera: 0x3c4fea9c 14 00 29 3c 14 00 29 3c 1d 75 9f ff 00 5d a6 fd |..)<..)<.u...]..|
D (14763) Esp32Camera: 0x3c4feaac 20 5d b6 ff 1d 75 df f7 19 71 9c ff 10 55 86 7f | ]...u...q...U..|
D (14773) Esp32Camera: 0x3c4feabc 15 45 45 ff 45 45 47 df 00 55 66 df 01 45 66 ff |.EE.EEG..Uf..Ef.|
D (14783) Esp32Camera: 0x3c4feacc 10 55 77 ff 41 45 66 ff 10 45 66 ff 05 4e 54 ff |.Uw.AEf..Ef..NT.|
D (14793) Esp32Camera: 0x3c4feadc 54 f5 ee ff 45 cc df ff 45 d4 ff ff 4d cd ff ff |T...E...E...M...|
D (14803) Esp32Camera: 0x3c4feaec 5d dc ff ff 4d 4c 5f ff 45 c4 ff ff 5d cc ff ff |]...ML_.E...]...|
D (14813) Esp32Camera: 0x3c4feafc 45 cc ff ff 4d cc fd df 45 cc ff ff 4d dc df ff |E...M...E...M...|
D (14823) Esp32Camera: 0x3c4feb0c 4d c4 f5 ff 4d cc df ff 5d cc fd ff 4d dc ff ff |M...M...]...M...|
D (14833) Esp32Camera: 0x3c4feb1c 5d cc ff ff 4c cc ff 72 04 10 44 54 00 01 05 01 |]...L..r..DT....|
D (14843) Esp32Camera: 0x3c4feb2c 10 10 00 01 01 41 04 00 46 d4 ff 4d 5d cc df ee |.....A..F..M]...|
D (14853) Esp32Camera: 0x3c4feb3c 4d cc ff f5 4d cd ff df 4d 5c ff ff 4d cc df df |M...M...M..M...|
D (14863) Esp32Camera: 0x3c4feb4c 4d cc ff f7 45 cc ff f5 5d c4 f7 ff 45 44 ff ff |M...E...]...ED..|
D (14863) Esp32Camera: 0x3c4feb5c 4d cc ff ff 5d cc ff ff 5d cc ff ff 5d c5 ff ff |M...]...]...]...|
D (14873) Esp32Camera: 0x3c4feb6c 4d cc ff f7 4d cc 7f ff 45 cd fd ff 4d dc 7f ff |M...M...E...M...|
D (14883) Esp32Camera: 0x3c4feb7c 38 a5 d5 ff 01 47 68 7f 50 45 64 ff 01 55 46 ff |8....Gh.PEd..UF.|
D (14893) Esp32Camera: 0x3c4feb8c 40 45 66 ff 40 55 46 ff 40 55 66 dd 01 45 76 ff |@Ef.@uf.@uf..Ev.|
