Hello everyone, I need help. I am working on a robot arm project using MATLAB and a webcam to detect colors. Do you have any lessons or tutorials for me?
Mostra commenti meno recenti
Hello everyone, I’m working on a robot arm project using MATLAB and Arduino. I use my phone as a webcam to detect colors (like red or green). If the system detects a red object, the robot arm moves and picks it up, then puts it in the red storage area.
Now, I want to improve the project. Instead of the robot always picking red automatically, I want to click on an object in the camera video (GUI in MATLAB) to choose which color to pick — for example, if I click on a red object, it will pick up red. If I click on green, it will pick up green.
I find it hard to research or find tutorials. Can someone help me or guide me with examples or lessons?
Risposta accettata
Più risposte (1)
Jacob Mathew
il 23 Giu 2025
0 voti
Hi Chan,
Given that you already have a model to detect objects based on color, you can modify the code to return the various objects of color as a list. You can either select the object from the list of detected objects but if you want to use a GUI, then you can follow the below MATLAB Answers post where the author gets the coordinates from the clicked image:
You can then check whether the clicked coordinates is within the bounding box of the objects and if so, the corresponding object information can be passed onto the robotic arm to be picked up.
Categorie
Scopri di più su Acquisition Using Kinect for Windows Hardware in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!