Inspiration
Regular inventory and distribution systems inspired me. Current infrastructure is vulnerable to attacks and other threats so using block chain should strengthen the security. It can also help stop corruption in more third world countries since all the food is being tracked and shown to the public so no on can embezzle it.
What it does
It tracks the movement of food products through different places. Each real-world food item is represented by a token similar to an NFT. New tokens are minted when a new food is detected on the Android app. This represents adding new food to the system. The app takes a picture, classifies it, and adds it to the blockchain.
How we built it
We built the android app with kotlin and used tensorflow lite for the image classification. We hosted a flask server with python to transfer the information from the android app to the python program. The python program uses web3.py to interact with the blockchain. It uses smart contracts, very similar to how NFTs work to store and keep track of items.
Challenges we ran into
Getting the android app to interact with the python program was very hard. Originally we wanted the android app to interact directly with the block chain but there was not much support for web3 on android. We ended up making a flask server and using rest API to transfer data.
Accomplishments that we're proud of
I am proud of how well-integrated everything is with the CV to the food tracking system.
What we learned
I learned Solidity and web3 frameworks like web3.py I also gained a deeper understanding of how blockchains work.
What's next for FoodBlocks
We can add features like disease detected. If we detect a disease we can trace it back to the source since we have transactions for all the movements.
Built With
- android
- blockchain
- kotlin
- python
- solidity
- tensroflow
Log in or sign up for Devpost to join the conversation.