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 件のコメント
parth bir
parth bir 2019 年 2 月 8 日
can you please elaborate on that!!
also, i ahve attached the image for the errors, is there any way to bypass these??prob.png
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 Center および File ExchangeSetup and Configuration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by