Mohamed Hassan AbdulRahman
Published © Apache-2.0

Intelligent Object Detection

Adding AI capabilities to Walabot existing features so that you can get more information about detected object.

IntermediateFull instructions provided6 hours1,100
Intelligent Object Detection

Things used in this project

Hardware components

Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
×1
Walabot Creator
Walabot Creator
×1

Software apps and online services

Android Studio
Android Studio
Firebase
Google Firebase
Google CLOUD VISION API
Google Android

Story

Read more

Code

Raspberry Python Code

Python
from __future__ import print_function
from sys import platform
from os import system
from firebase import firebase
firebase = firebase.FirebaseApplication('https://xxxx.firebaseio.com/', None)
import time
import WalabotAPI as wlbt
wlbt.Init()  # load the WalabotSDK to the Python wrapper
wlbt.Initialize()  # set the path to the essetial database files
wlbt.ConnectAny()  # establishes communication with the Walabot
wlbt.SetProfile(wlbt.PROF_TRACKER)  # set scan profile out of the possibilities
wlbt.SetDynamicImageFilter(wlbt.FILTER_TYPE_MTI)  # specify filter to use
wlbt.Start()  # starts Walabot in preparation for scanning
while True:
   wlbt.Trigger()  # initiates a scan and records signals
   targets = wlbt.GetTrackerTargets() # provides a list of identified targetsc
   
   for i, t in enumerate(targets):
       if(t.zPosCm > 25)
           ts = time.time() 
           firebase.put('applications/walabot/','timestamp',ts)  
           print(ts);
           time.sleep(120) # wait for 2 minutes 
wlbt.Stop()  # stops Walabot when finished scanning
wlbt.Disconnect()  # stops communication with Walabot

Android Project

Credits

Mohamed Hassan AbdulRahman

Mohamed Hassan AbdulRahman

5 projects • 25 followers
Maker, aiming to make people’s life easier and more meaningful, using the latest HW & SW technologies, analysis and research.

Comments

Add projectSign up / Login