sipeed / MaixPy

Easily create AI projects with Python on edge device
https://wiki.sipeed.com/maixpy/
Other
153 stars 33 forks source link

RunTimeError : Value is null and camera suddenly shutdown while using yolov8n #22

Closed Diqtra closed 4 days ago

Diqtra commented 2 months ago

Screenshot 2024-06-23 151912 My Maixcam has an error when using yolov8n, and the message says, "RuntimeError: Value is Null: Camera read failed." I'm using the yolov8n that comes with MaixPy. The camera works but only for a little while before stopping.

lxowalle commented 2 months ago

Hi, from the logs it looks like you're launching multiple apps, please make sure that the MaixVision app and the MaixCAM app aren't launching at the same time (MaixCAM black screen means no apps are running) . If that doesn't solve the problem, you can try to get the latest image from release, update it and try again!

JimlyAdam commented 2 months ago

It also happened to me, Maixvision app was just for knowing the log file, the fact is the program was installed and then exit with code 1... This happened even with the latest MaixPy suddenly exit by itself but sometimes it doesn't...

IMG20240626104731~3.jpg

lxowalle commented 2 months ago

This may not be a software problem, but the camera is not connected properly, you can open the back cover to check if the camera cable is loose.

JimlyAdam commented 2 months ago

Unfortunately, I have two MaixCAM, but it happened at both, I've tried to replace the MicroSD and check all the flexible but those was safe

lxowalle commented 2 months ago

I still haven't reproduced your problem, can you try the old mirror first?