Computer VisionBrowser-basedNo API requiredTensorFlow.jsMobileNetEducational demo
Object Classification Studio
Upload an image or use your webcam to classify objects directly in the browser using a pre-trained machine learning model.
What is object classification?
Predict the main category.
Object classification is a computer vision task where a machine learning model predicts the category of an image or object. If you upload a dog photo, the model may predict “dog”, “golden retriever”, or “Labrador retriever”.
How does it work?
- The image is converted into pixels.
- Pixels are resized and normalized.
- A neural network extracts edges, textures, shapes, and object parts.
- The final layer predicts probabilities for classes.
- The highest probability becomes the top prediction.
What model are we using?
MobileNet + TensorFlow.js
MobileNet is a lightweight convolutional neural network designed to run efficiently on limited devices such as phones and browsers. That makes it ideal for real-time teaching demos.
Image preview appears here.
Results and interpretation
Prediction output
- Model status
- Loading MobileNet in the browser...
- Input type
- No input selected
- Top prediction
- —
- Confidence
- —
No predictions yet. Upload an image or classify a webcam frame.
Confidence bars
Confidence bars appear after classification.
Educational interpretation: Run classification to see how the model interprets the image.
Limitations
Use predictions as learning outputs.
- • The model is trained on a fixed set of image categories.
- • It may not recognize rare, local, medical, scientific, or custom objects.
- • Blurry, dark, cropped, or multi-object images may confuse the model.
- • It classifies the whole image; it does not draw bounding boxes.
- • Predictions are educational outputs, not expert decisions.
Computer vision comparison
Object Classification vs Other Computer Vision Tasks
| Task | Main Question | Output | Example |
|---|---|---|---|
| Object Classification | What is this image/object? | Class label + confidence | Image classified as “cat” |
| Object Detection | Where are the objects and what are they? | Bounding boxes + labels | Box around a cat and a dog |
| Object Identification | Which specific object/person is this? | Specific identity | This is Person A |
| Object Verification | Does this match the reference? | Yes/No or similarity score | Does this face match the ID photo? |
| Image Segmentation | Which pixels belong to each object? | Pixel mask | Exact cat outline |
Try This in Class
Student tasks
- • Upload a clear image with one object.
- • Upload an image with multiple objects.
- • Upload a blurry image.
- • Upload an unusual object.
- • Compare how the confidence changes.
- • Discuss why the model may be wrong.
- • Explain why classification is different from detection.
Discussion questions
- Why does the model sometimes predict a very specific label?
- What happens when the image contains more than one object?
- Why is confidence not the same as truth?
- Why is this not object detection?
- What dataset would classify custom university lab equipment?
Technical Notes
- Library
- TensorFlow.js
- Model
- MobileNet
- Execution
- Browser/client-side
- Input
- image element, video frame, or canvas
- Output
- predicted class names and probabilities
- Privacy
- image stays in the browser