stereolabs / zed-csharp-api

C# API for the ZED SDK
MIT License
10 stars 3 forks source link

Should i add dll to reference on c#? #9

Closed Wei10857104 closed 4 years ago

Wei10857104 commented 4 years ago

like c++ we need to add lib. python we need to import pyzed.sl.

But how to use on c#, Should i need to add dll to reference on c#? Then i can using what title to use these code.

InitParameters init_params = new InitParameters(); init_params.resolution = RESOLUTION.HD720; init_params.cameraFPS = 60; init_params.coordinateUnit = UNIT.METER; init_params.coordinateSystem = COORDINATE_SYSTEM.RIGHT_HANDED_Y_UP; init_params.depthMode = DEPTH_MODE.PERFORMANCE;

Wei10857104 commented 4 years ago

my environment is visual c# 2017 and sdk3.10

enconter problem

image

Wei10857104 commented 4 years ago

image

obraun-sl commented 4 years ago

You need to build the Stereolabs.zed in release and then right click on INSTALL >> generate. It will install the C interface + NET wrapper in C:/ProgramFiles(x86)/ZED SDK/bin Make sure you have admin rights to do that.

Lancename commented 4 years ago

官方的工程有点小毛病.你把Image_Capture中引用里面的那个sl_zed_interface.dll移除,然后新添加stereolabs.zed.dll进去就可以

there is something wrong with the official project, and you remove the sl_zed_interface.dll referenced in Image Capture,and then add stereolabs.zed.dll to it . and it work well