在Windows上使用MATLAB Image Acquisition Toolbox |
您所在的位置:网站首页 › matlab2022b很卡 › 在Windows上使用MATLAB Image Acquisition Toolbox |
MATLAB gigecam 接口
从MATLAB 2014a开始,GigE视觉硬件的Image Acquisition Support Package还包括专为GigE Vision相机设计的gigecam接口。 它可用于访问GigE视觉特定功能。 以下MATLAB命令演示如何连接到GigE相机并使用gigecam接口设置相机属性。 % List cameras >> gigecamlist ans = 1×4 table Model Manufacturer IPAddress SerialNumber ___________ ___________________ ______________ ____________ 'PHX050S-M' 'Lucid Vision Labs' '169.254.51.0' '50' % Connect to camera by IP address % It is also possible to connect by list index number or serial number >> g = gigecam('169.254.51.0') g = Display Summary for gigecam: DeviceModelName: 'PHX050S-M' SerialNumber: '50' IPAddress: '169.254.51.0' PixelFormat: 'Mono8' AvailablePixelFormats: {'Mono8' 'Mono10p' 'Mono10Packed' 'Mono12Packed' 'Mono12p' 'Mono10' 'Mono12' 'Mono16'} Height: 2048 Width: 2448 Timeout: 10 Show Beginner, Expert, Guru properties. Show Commands. >> g.PixelFormat = 'Mono8' >> g.Width = 320 >> g.Height = 240 >> g.GainAuto = 'Off' >> g.Gain = 1 >> g.ExposureAuto = 'Off' >> g.ExposureTime = 1000 >> g.GevSCPSPacketSize = 9000 % preview(g) will preview the image from the camera % snapshot(g) will acquire a single image >> img = snapshot(g) % display 'img' on screen >> imshow(img) % clear 'img' >> clear img有关Gigecam接口的更多信息,请参阅MathWorks中的Acquisition Using GigE Vision Hardware页面。 请注意 Image Acquisition Tool使用带有videoinput对象的gige接口,该对象与gigecam接口分离。 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |