can I get some idea from the expert of MATLAB?
3 ビュー (過去 30 日間)
古いコメントを表示
I want to use 4 Basler Ace cameras to capture images using MATLAB. How can I start writting MATLAB script for this.
Any help will be appreciated!
7 件のコメント
Walter Roberson
2022 年 7 月 18 日
https://www.mathworks.com/products/image-acquisition.html Image Acquisition Toolbox might be what you want.
採用された回答
Image Analyst
2022 年 7 月 18 日
編集済み: Image Analyst
2022 年 7 月 18 日
Machine vision cameras can often be seen as generic webcams, though not with all the functionality or resolutions you'd get with the Image Acquisition Toolbox. For example, see my camera list below.
I have three cameras: (1) integrated webcam inside the laptop computer, (2) external Logitech c930e webcam, and (3) external Lumenera machine vision camera.
The upper list is a list of all possible resolution modes for the Lumenera camera that are available with the Image Acquisition Toolbox. You can see there are a lot. The camera uses its own third party (manufacturer) adapter called lumeneraimaq-1. It does not use a winvideo adapter in that case.
However the Lumenera camera also shows up at the bottom as winvideo-3, but it has only two resolution modes to choose from. And of course a lot of other functionality that the camera has is missing, like flipping/mirroring, white balancing, adjusting gains of each color channel independently, frame rate, etc. If I want to use the Lumenera camera as a dumb webcam, I can select the winvideo-3 adapter for it and I believe it would still work. I haven't tried it because why would I want to give up all the functionality I have available to me?
So you might be able to run your Basler camera as just a dumb webcam if you want.
camera = webcam; % Connect to the camera
net = alexnet; % Load the neural network
while true
im = snapshot(camera); % Take a picture
image(im); % Show the picture
im = imresize(im,[227 227]); % Resize the picture for alexnet
label = classify(net,im); % Classify the picture
title(char(label)); % Show the class label
drawnow
end
12 件のコメント
Walter Roberson
2022 年 7 月 24 日
編集済み: Walter Roberson
2022 年 7 月 24 日
Take 3 initial images.
Make them the old images
while true
wait 10 minutes
trigger
record the 3 images
compare the images to the old images
if they are different enough, break
make the images just recorded the old images
end of loop
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で GigE Vision Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!