Skip to content

Instantly share code, notes, and snippets.

@efi
Created February 13, 2019 19:29
Show Gist options
  • Save efi/82e5c8caff814bbb53ac097ddac5c2d8 to your computer and use it in GitHub Desktop.
Save efi/82e5c8caff814bbb53ac097ddac5c2d8 to your computer and use it in GitHub Desktop.
MaixPy Face_detect demo on the MAIX Bit (MAIX GO Suit)
__ __ _____ __ __ _____ __ __
| \/ | /\ |_ _| \ \ / / | __ \ \ \ / /
| \ / | / \ | | \ V / | |__) | \ \_/ /
| |\/| | / /\ \ | | > < | ___/ \ /
| | | | / ____ \ _| |_ / . \ | | | |
|_| |_| /_/ \_\ |_____| /_/ \_\ |_| |_|
Official Site:http://www.sipeed.com/
Wiki:http://maixpy.sipeed.com/
[MAIXPY]Pll0:freq:806000000
[MAIXPY]Pll1:freq:159714285
[MAIXPY]CPU:freq:403000000
[MAIXPY]Flash:0xc8:0x17
[MAIXPY]:Spiffs Mount successful
[MAIXPY]LCD:init
MicroPython d58620dd1-dirty on 2018-12-18; Sipeed_M1 with kendryte-k210
Type "help()" for more information.
>>> cam = machine.OV2640()
>>> cam.init()
Enter the ov2640_init
True
>>> ai = machine.Face_detect()
>>> ai.init()
[MAIXPY]Flash:0xc8:0x17
MAIXPY]Face Detect:init successful!
>>> lcd = machine.ST7789()
>>> lcd.init()
[MAIXPY]LCD:init
>>> image = bytearray(320*240*2)
>>> while(1) :
... cam.get_image(image)
... ai.process_image(image)
... lcd.draw_picture_default(image)
...
True
[59104, 0, 51064, 0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment