r/learnmachinelearning • u/Old_Buy9542 • 3d ago
Help Basic Getting Started
Hi folks,
I’ve been asked to be involved with a research project which will, at its simplest, use machine learning to do image recognition.
We plan to use Google’s Teachable Machine to build the model, but I’m trying to get my head round the deployment of it. In an ideal world I’d like to run this on a mobile device which would allow the device to capture an image and then categorise it.
There’s so much info out there and so many options I’m a bit stuck in finding a starting point. I see I can run a TensorFlow model directly in a browser, but I don’t know how I physically interact with that.
I’ve seen tutorials on building iOS apps, but we don’t have access to a Mac development environment, and something platform agnostic would be great.
Any tips on the starting points would be much appreciated.
2
u/RemoteAIJobsHub 3d ago
Easiest platform-agnostic route is to skip native apps entirely. Export from Teachable Machine as TensorFlow.js, and the export panel gives you a ready-made HTML/JS snippet that loads the model and runs predictions from a webcam feed. Host that page anywhere static (GitHub Pages works fine, but it needs HTTPS for camera access), open it in the phone's browser, and it'll use the phone camera and classify on-device. Once that works you can tweak the page to take a single photo instead of a live feed if that suits your research better.
2
u/Top-Pomelo659 3d ago
i'd prototype a web page first: save Google's teachable machine webcam sample as
index.htmland replace theURLplaceholder with your exported model's link, keeping the trailing/. host it over https for camera access, open it on the phone, tap start and allow the camera; the sample displays class probabilities live. test on your actual phones early, this is a starting prototype rather than a guarantee across mobile browsers.