In the Real-time object detection on Raspberry Pi 4b using Tensorflow Lite article posted last month, I mentioned how I implemented real-time object detection on the Raspberry Pi. This week I managed to make it wearable. There are four parts in this wearable set: a box integrating battery and motherboard, a remote control, a pair of eyeglasses with a camera, and a pair of headphones.
I ran into a few problems during the production process. One of the biggest problems was that I tried to get the object detection program to run as soon as the Raspberry Pi boots, but it failed. Finally, I found this article and solved the problem: How to Run a Raspberry Pi Program on Startup - SparkFun Learn. It turned out to be because I had moved the location of the model file I was using in order to make it easier to find it, resulting in the system program not being able to find the location of the model at boot time. I changed the path of the model file to an absolute path in the source code and then the problem was solved. The underlined code in the image below is the modified one.
![](https://static.wixstatic.com/media/25925d_4e4a1aa12c2f4f538c38c0660ff85ec8~mv2.jpg/v1/fill/w_980,h_735,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/25925d_4e4a1aa12c2f4f538c38c0660ff85ec8~mv2.jpg)
Here's a prototype of this device. The battery, the motherboard and the remote control are placed in a fanny pack.
![](https://static.wixstatic.com/media/25925d_ff94ea2357f74c038afe13cccc8a656d~mv2.jpg/v1/fill/w_980,h_1367,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/25925d_ff94ea2357f74c038afe13cccc8a656d~mv2.jpg)
In the future, I want to productize it further. Here are some design sketches.
![](https://static.wixstatic.com/media/25925d_310f6ec700a04cd8b03f40019abc35ef~mv2.jpg/v1/fill/w_980,h_1521,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/25925d_310f6ec700a04cd8b03f40019abc35ef~mv2.jpg)
![](https://static.wixstatic.com/media/25925d_403354e6c3594a229648dc0629a6ee2f~mv2.jpg/v1/fill/w_980,h_559,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/25925d_403354e6c3594a229648dc0629a6ee2f~mv2.jpg)
![](https://static.wixstatic.com/media/25925d_77fbc0f042fb404e8ab00c81128dde62~mv2.jpg/v1/fill/w_980,h_946,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/25925d_77fbc0f042fb404e8ab00c81128dde62~mv2.jpg)
![](https://static.wixstatic.com/media/25925d_2784ce772f4c45c7825fb6063df70f2e~mv2.png/v1/fill/w_980,h_579,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/25925d_2784ce772f4c45c7825fb6063df70f2e~mv2.png)
![](https://static.wixstatic.com/media/25925d_e703eaf3ace94eb7a00e6c21f30aec78~mv2.jpg/v1/fill/w_980,h_735,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/25925d_e703eaf3ace94eb7a00e6c21f30aec78~mv2.jpg)
![](https://static.wixstatic.com/media/25925d_2ae5cee72dbf47b69d4aaa2bed618e2a~mv2.jpg/v1/fill/w_980,h_1372,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/25925d_2ae5cee72dbf47b69d4aaa2bed618e2a~mv2.jpg)
Comentários