필터 지우기
필터 지우기

Detect red dots with robotic arm and web camera?? Any help with codes...??

조회 수: 1 (최근 30일)
kwstis xoustoulakis
kwstis xoustoulakis 2015년 5월 12일
댓글: Image Analyst 2015년 5월 13일
I have built a robotic arm with three servos and a web camera mounted on the top . I want via the camera to spot on a map red big dots and move in that direction the arm .!! Can anyone help with codes im beginner?? ur help is important thanks!!

답변 (2개)

Sebastian Castro
Sebastian Castro 2015년 5월 13일
You can download USB Webcam support packages for MATLAB, which should let you stream Webcam data right into MATLAB on your PC: http://www.mathworks.com/hardware-support/matlab-webcam.html
As for the robot servos, that depends on how they are controlled. What are the servos connected to -- an Arduino or something?
- Sebastian
  댓글 수: 3
Sebastian Castro
Sebastian Castro 2015년 5월 13일
Perfect!
So, you can look at Image Analyst's color tracking demo and wrap that around the USB Webcam and Arduino support packages for sensor input and actuator output, respectively.
Have fun :)
kwstis xoustoulakis
kwstis xoustoulakis 2015년 5월 13일
Can you be more specific...?? Thanks!!!

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2015년 5월 13일
See my attached demo where I find and track a green Sharpie marker in a video. You'd just pull the frame from your video feed instead of from the video file.
  댓글 수: 4
kwstis xoustoulakis
kwstis xoustoulakis 2015년 5월 13일
yes i know but i had r2009 version and not running m-file,so that i asked, but know i install r2014 and i run ur m file and its running.But I need a code that activates the camera and identify red spots and moves the arm on them. It is possible to make them in a m-file ??? or if it is possible to add some code in m-file you sent ??? Your file does not turn on the camera and not communicating with servo.... i hope to understanding what i looking for.
Thanks for ur time !!.
Image Analyst
Image Analyst 2015년 5월 13일
You need to either get the Image Acquisition Toolbox, or use the built-in webcam support: http://www.mathworks.com/support/2014a/matlab/8.3/demos/webcam-support.html

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Robotics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by