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

MaixAmigo - Front vs rear camera #408

Closed PJPAC closed 3 years ago

PJPAC commented 3 years ago

Hi, I'm a newb with Sipeed and I'm trying to get a project running on MaixAmigo.

MaixAmigo presents 2 cameras one on the front and the second on the rear of the device. However, all the camera related demos I found are using the front camera only.

See for instance demo_video_record.py

I cannot see how to select the rear camera as for instance there is no GC0328 / OV7740 label to set in the commands which would then allow using a specific camera. Could you please clarify how to select the camera rear and/or to suggest relevant documents ?

junhuanchen commented 3 years ago

see this https://github.com/sipeed/MaixUI/blob/master/test/test_amigo_sensor.py

PJPAC commented 3 years ago

Thanks. It seems all down to sensor.reset(choice=1) vs sensor.reset(choice=2) instead of using sensor.reset(), and it works smoothly... 👍