Cant configure one model for the Allied Vision Camera from Image Acquisition App
6 次查看(过去 30 天)
显示 更早的评论
I have two cameras slighlty different models. One that I use for debugging. While the other is installed into a system. Following the instructions on allied vision website. I was able to get the spare camera to work. However, when I load the other from image aquisition, I dont get a tool bar , check the top of the screengrab, or an ability to export the code. Matlab sees the camera in the hardware list but thats it.
I tried using the previous code I created which works with the spare camera and there is no image generated. Anyone run into this before?
Allied Vision Matlab instructions: https://cdn.alliedvision.com/fileadmin/content/documents/products/software/software/Vimba/appnote/MATLAB_Getting-Started_AppNote.pdf
%%%sample code for camera that works
v = videoinput("gentl", 1, "Mono8");
Configure Device-Specific Properties
Configure properties that are specific to this device.
src = getselectedsource(v);
src.ExposureTime = 5.001217e+03;
Capture Image
Capture a single frame.
snapshot1 = getsnapshot(v);
View Snapshot
Display the captured image.
f = figure;
ax = axes(f);
imshow(snapshot1, "Parent", ax);
Clean Up
Delete the videoinput object and clear variables from the workspace.
delete(v)
clear src v
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 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!