can i use my laptop webcam to send data into arduino, and use the data acquired from the video to derive output from the interfaced arduino??

7 次查看(过去 30 天)
_

回答(3 个)

Rahul punk
Rahul punk 2019-2-8
if you understand communication with software and hardware then you can first connect aurdino to matlab then program as per your application, first test serial data tx and rx then its work then reprogram again and connect .
  3 个评论
Walter Roberson
Walter Roberson 2019-2-8
code generation is not supported for clear it appears , at least not for general variables .
code generation is not supported for snapshot of a usb webcam .

请先登录,再进行评论。


Rahul punk
Rahul punk 2019-2-8
syntax read carefully and find just go to help and search syntax example.

Walter Roberson
Walter Roberson 2019-2-8
You need to understand that you are not creating one program: you are creating one program for the host and one program for the arduino.
For the arduino you have several options:
  1. develop C or C++ code separately using your favourite IDE
  2. develop a Simulink model and Deploy to Target making use of Arduino hardware support already available at no extra cost
  3. develop MATLAB code and use MATLAB Coder product to generate generic C or C++ code . No hardware specific support is available . Very limited hardware input output support . Does not know anything about Arduino or ARM.
  4. develop MATLAB code and use MATLAB Coder and Embedded Coder to generate more optimized code. Knows more about ARM but not about Arduino
For the host side you have several options:
  1. develop code that is outside MATLAB to do the video work and talk to the Arduino
  2. run a live MATLAB session with MATLAB code that uses serial (usb) or Bluetooth or zigbee or TCP to communicate with the Arduino
  3. develop a simulink model that uses generic blocks or Arduino specific blocks to talk to the arduino "live"
  4. simulink again , with Simulink Coder or Simulink Real Time to generate executables that talks to the arduino
  5. MATLAB Compiler to compile MATLAB code to an executable . This can use snapshot or getsnapshot
  6. MATLAB Coder to generate C or C++ that can be built into an executable . no support for snapshot or getsnapshot

类别

Help CenterFile Exchange 中查找有关 Setup and Configuration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by