Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

face_landmark demo error #7

Open
kamejoko80 opened this issue Feb 4, 2025 · 1 comment
Open

face_landmark demo error #7

kamejoko80 opened this issue Feb 4, 2025 · 1 comment

Comments

@kamejoko80
Copy link

kamejoko80 commented Feb 4, 2025

Hello,

I've built canmv following k230d_canmv_bpi_zero_defconfig, after deploying the image in SD card I got the below error when running face_landmark AI demo:

Could not open "G:\media\sensor.py" for reading. Either the file does not exist or you do not have the permissions to open it.

How to address this issue?

@kamejoko80
Copy link
Author

I've change main function for K230D zero:

if name=="main":
# 显示模式,默认"hdmi",可以选择"hdmi"和"lcd"
display_mode="lcd"
# k230保持不变,k230d可调整为[640,360]
rgb888p_size = [640, 360]

Error message in the output console:

Traceback (most recent call last):
File "", line 255, in
File "/sdcard/libs/PipeLine.py", line 97, in get_frame
File "media/sensor.py", line 418, in snapshot
RuntimeError: sensor(0) snapshot chn(2) not support pixelformat(45)
MPY: soft reboot
CanMV v1.2.2(based on Micropython e00a144) on 2025-02-04; k230d_canmv_bpi_zero with K230D

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant