sipeed / libmaix

New MaixCDK will replace this repo: https://github.com/sipeed/MaixCDK
https://github.com/sipeed/MaixCDK
MIT License
67 stars 27 forks source link

retinaface example run failed #11

Closed ZHEQIUSHUI closed 2 years ago

ZHEQIUSHUI commented 2 years ago

image

Neutree commented 2 years ago

reboot and try again, error from camera module

ZHEQIUSHUI commented 2 years ago

reboot and try again, error from camera module

i reboot many times, d4e466f93cea7b21a333e184e0a799b

ZHEQIUSHUI commented 2 years ago

python3 use camera and display is good a2b29f029ff732f744d06ecc9c4af59

junhuanchen commented 2 years ago

Maybe check the libmaix_cam library first and maixPy3 is working properly? Must it happen?

ZHEQIUSHUI commented 2 years ago

需要模仿camera的example同时打开两个cam,就会正常出图

    libmaix_cam_t* cam = libmaix_cam_create(0, res_w, res_h, 1, 0);
    if(!cam)
    {
        printf("create cam fail\n");
    }

    libmaix_cam_t* cam1 = libmaix_cam_create(1, 256, 160, 1, 0);
    if(!cam1)
    {
        printf("create cam1 fail\n");
    }

记得要destory

    if(cam)
        libmaix_cam_destroy(&cam);
    if(cam1)
        libmaix_cam_destroy(&cam1);