Interface Sony cameras with MacBook
显示 更早的评论
Hello, I am trying to connect a Sony FCB MA 130 camera with matlab to superimpose a circle. Here there is the code:
% Create a video input object.
vid = videoinput('macvideo',2);
% Create a figure window. This example turns off the default
% toolbar, menubar, and figure numbering.
figure('Toolbar','none',...
'Menubar', 'none',...
'NumberTitle','Off',...
'Name','My Preview Window');
% Create the image object in which you want to display
% the video preview data. Make the size of the image
% object match the dimensions of the video frames.
vidRes = vid.VideoResolution;
nBands = vid.NumberOfBands;
hImage = image( ones(vidRes(2), vidRes(1), nBands) );
hold on
viscircles([1920/2 1080/2],10)
preview(vid, hImage);
end
I'd like to change some parameters, such that brightness, focus and so on, but if I try to execute the following command:
src = getselectedsource(vid);
No parameters are included in the answer;
Could someone help me?
4 个评论
Walter Roberson
2017-12-15
I know that some manufacturers do not put as much work into the video USB drivers for Mac compared to Windows, so there are cases where settings are not available for Mac but are available for Windows.
However, when I research Sony FCB MA 130 I see that it does not have a USB interface: it just has pins. You would need to have mounted it onto a board with some kind of interface. Are you using a development kit of some kind?
Umberto Fontana
2017-12-18
Walter Roberson
2017-12-18
Would you be able to post a link to the English specifications of the CAT MA130? I am only able to find one Japanese PDF for it.
Walter Roberson
2017-12-18
It looks like that particular device has an I2C interface.
回答(1 个)
Walter Roberson
2017-12-18
0 个投票
https://www.phase1vision.com/blog/usb-3-0-interface-for-sony-fcb-ma130-micro-camera claims to be an interface for that device with Mac drivers.
类别
在 帮助中心 和 File Exchange 中查找有关 Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!