Je veux integrer une composante activex qui fait acquisition des images donc je veux integrer une webcam dans matlab gui(j'utilise guide).
Je sais que je dois avoir les toolbox Image Processing et Data Acquisition Toolbox. (je les ai).
J'ai trouve ici un tres bon lien qui m'aides un peu:
http://madan.wordpress.com/2007/03/2...cam-in-matlab/
Voila ce qui me retourne la commande imaqwinfo:
Ce que je n'ai pas compris c'est ca de la documentation:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 >> imaqhwinfo ans = InstalledAdaptors: {'winvideo'} MATLABVersion: '7.1 (R14SP3)' ToolboxName: 'Image Acquisition Toolbox' ToolboxVersion: '1.9 (R14SP3)' >>
J'attends vos reponses svp!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 Notice that the adaptor is Winvideo Any webcam you connect is accessed through this adaptor. Now the main part 1)Connect your webcam to the computer through the USB. vid = videoinput(winvideo, 1, RGB24_320×240′); Specify the adaptor name and resolution 2) Open Preview window to view video at runtime preview(vid); This will open a window similar to yahoo messenger Webcam interface. And you will be able to view the video demo the webcam at runtime 3) Capture data = getsnapshot(vid); This command will store the image of that instant into the variable data in a matrix of 320X240. Thats it , now that you have the image of what your robot is looking at or probably the desired object, you may carry on processing and provide proper control signals to your Parallel Ports . If You are new to parallel ports read here.
Je dois implementer ca dans un pushbutton1 (avec la propriete string : Connect to Webcam ?). C'est ca?
J'ai trouve ici une ressource mais je veux implementer ce que est dit sur ce blog.
http://www.mathworks.com/matlabcentr...exchange/22792
http://www.mathworks.com/matlabcentr...eexchange/8232
Pour lister toutes les fonction du toolbox Data Acquisition Toolbox:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2>>help daq
Je ne sais pas quelles fonctions utiliser et quelles seront les etapes si vous pouvez m'expliquer en details si vous savez le processus!
Partager