How to detect two different objects via webcam?

6 vues (au cours des 30 derniers jours)
Tim-Van Ho
Tim-Van Ho le 6 Mai 2016
Right now I can detect coloured objects and place a square box around the detected object (As seen in the image below). However, it automatically places a square box around all objects but what I wanted to do is to place square box around square objects and place a circle box around circle objects. I've been trying figure out how to do this a couple days with no luck. Please help
The image is from a live video capture from webcam
  1 commentaire
keerthana vallamkonda
keerthana vallamkonda le 2 Juil 2019
Hello Tim-Van Ho,
CAn you share your code to me or sent me an email keerthana.vallamkonda@ltts.com
thanks

Connectez-vous pour commenter.

Réponses (1)

Image Analyst
Image Analyst le 6 Mai 2016
First detect the colored objects (see my File Exchange for color segmentation demos). Then you'll have a segmented image (binary mask image) and you can call bwboundaries() to plot the exact shape around them.
I also attach my shape recognition demo in case you want to check that out.
  2 commentaires
Tim-Van Ho
Tim-Van Ho le 7 Mai 2016
Not really sure how to code that can you you provide some code?
Image Analyst
Image Analyst le 7 Mai 2016
I did - it's in the File Exchange. You can get it there so why do I need to attach it here?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Feature Detection and Extraction dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by