Page 1 of 1

Face detection

Posted: Thu Jul 22, 2021 7:49 pm
by AriadnaR
Hello,
I have been running all my codes in Idle 3. Which means all have been python codes. I was looking at the github face detection example and I could not find the oython code of it. Do you know where I can find it ?

Re: Face detection

Posted: Fri Jul 23, 2021 8:42 am
by kimberly
Hi!

The facedetector example is based on greenwaves example found here: https://github.com/GreenWaves-Technolog ... eDetection

But no, it's not based on any python example I know of, this has been especially made for the gap8 chip.

If you want any python examples I would suggest googling opencv + facedetection

Re: Face detection

Posted: Fri Jul 23, 2021 4:19 pm
by AriadnaR
So I followed this website https://www.bitcraze.io/documentation/r ... ker-gap8/ , but I am not able to run any example. I might be missing something to run but I am not sure what. I also went through this https://www.bitcraze.io/documentation/r ... tection/ one before the gap 8 docker.

For the first link I attached I got stuck in the "Running an Example"

Re: Face detection

Posted: Tue Jul 27, 2021 9:48 am
by kimberly
Hi. Let's do one thing at the time... so let's fix your docker issue first.

So your screenshot is showing that you do the

Code: Select all

docker commit <container id> bitcraze/aideck
within the bitcraze/aideck container itself. That is not what the instructions are indicating. You are supposed to do the commit in the same terminal where you did the 'docker ps' command, so in a seperate terminal outside of the docker container.

Re: Face detection

Posted: Tue Jul 27, 2021 3:15 pm
by AriadnaR
I did it in a separate terminal but I closed it, since it was just one line of code.

Re: Face detection

Posted: Wed Jul 28, 2021 11:52 am
by kimberly
Oke great, I saw it in the container file so I thought that it how it went.

Now you can close the container again with 'exit' and use the 'running an example' subtitle of the docker instructions, like face detection example. You go to the folder where the Makefile exist of the example and then copy and run the docker command.

Re: Face detection

Posted: Wed Jul 28, 2021 6:03 pm
by AriadnaR
That’s where I have problems, where should the make file be located at ? I looked for the AI deck examples folder but I can’t find it in the virtual machine.

Re: Face detection

Posted: Thu Jul 29, 2021 9:09 am
by kimberly
It's not by standard in the bitcraze virtual machine. You will need git clone this repository to it first: https://github.com/bitcraze/AIdeck_examples

Re: Face detection

Posted: Fri Jul 30, 2021 2:29 am
by AriadnaR
How can I run the face detection code?
Screenshot (2654).png

Re: Face detection

Posted: Fri Jul 30, 2021 2:28 pm
by kimberly
The gap_run function will only work on the aideck VM provided for the AIdeck workshop. in your case, you will need to follow the exact instructions of the docker instructions of running an example:

Code: Select all

docker run --rm -it -v $PWD:/module/data/ --device /dev/ttyUSB0 --privileged -P bitcraze/aideck /bin/bash -c 'export GAPY_OPENOCD_CABLE=interface/ftdi/olimex-arm-usb-tiny-h.cfg; source /gap_sdk/configs/ai_deck.sh; cd /module/data/;  make clean all run'
Make sure that your debugger is selected in your VM and that the right .cfg is also in the same command line as well.

If that works, you can use the above line to create an 'gap_run' alias in your ~/.bashrc file