{"id":37036918,"url":"https://github.com/stereolabs/zed-csharp-api","last_synced_at":"2026-02-10T16:16:38.710Z","repository":{"id":56353694,"uuid":"256219429","full_name":"stereolabs/zed-csharp-api","owner":"stereolabs","description":"C# API for the ZED SDK","archived":false,"fork":false,"pushed_at":"2025-10-24T08:02:44.000Z","size":11939,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-24T10:08:47.899Z","etag":null,"topics":["c-sharp","dotnet","stereo-vision","zed-camera"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stereolabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-04-16T13:14:21.000Z","updated_at":"2025-10-24T08:02:48.000Z","dependencies_parsed_at":"2025-04-16T08:50:51.659Z","dependency_job_id":"526431f7-29dc-4834-b112-0274808b17b5","html_url":"https://github.com/stereolabs/zed-csharp-api","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/stereolabs/zed-csharp-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stereolabs%2Fzed-csharp-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stereolabs%2Fzed-csharp-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stereolabs%2Fzed-csharp-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stereolabs%2Fzed-csharp-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stereolabs","download_url":"https://codeload.github.com/stereolabs/zed-csharp-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stereolabs%2Fzed-csharp-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28409477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-sharp","dotnet","stereo-vision","zed-camera"],"created_at":"2026-01-14T04:23:34.856Z","updated_at":"2026-02-10T16:16:38.704Z","avatar_url":"https://github.com/stereolabs.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stereolabs.Net - C#/.NET API\n\nThis package lets you use the ZED stereo camera in C#. The C# API is a wrapper around the ZED SDK which is written in C++ optimized code. We make the ZED SDK accessible from external C# code.\n\n\n## Getting started\n\n- First, download the latest version of the ZED SDK on [stereolabs.com](https://www.stereolabs.com/developers)\n- For more information, read the ZED [API documentation](https://www.stereolabs.com/docs/api/python/) or our [Community page](https://community.stereolabs.com)\n\n## Prerequisites\n\n- **Windows** 10 64bits or later\n- Visual Studio 2017 with C# extensions\n- Cmake 3.23 at least\n- [C wrapper](https://github.com/stereolabs/zed-c-api) of the ZED SDK\n- [ZED SDK **5.2**](https://www.stereolabs.com/developers/release/) and its dependency ([CUDA](https://developer.nvidia.com/cuda-downloads))\n\n## From NuGet\n\nThe C# API is available as a Nuget Package on Nuget.org.\n\n| Package | Description | Link |\n|---------|-------------|------|\n|**Stereolabs.zed**| .NET Wrapper that imports the functions from the interface | [![NuGet version](https://badge.fury.io/nu/Stereolabs.zed.svg)](https://badge.fury.io/nu/Stereolabs.zed) |\n\n## Add the package to your Project\n\nTo add a NuGet pacakge to your project, please follow this [documentation](https://learn.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio).\n\n# From Sources\n\nIt is also possible to build the wrapper from the sources. The C# wrapper made of two libraries :\n\n- The C# wrapper called Stereolabs.zed.dll. It defines all the functions of the ZED SDK in C#.\n- The C wrapper called zed-c-api. This native dll binds all the C# functions to the ZED SDK (written in C++). This wrapper is available here : https://github.com/stereolabs/zed-c-api\n\n### Build the C# wrapper\n\n- Open cmake-gui.\n- In “Where is the source code“, enter the path of the project folder where the CMakeLists.txt is located.\n- In “Where to build the binaries“, enter the previous path and add: /build.\n- Click on [*Configure*].\n- A dialog window asks you if CMake can create the “build” folder. Say yes.\n- Another dialog window will ask you to specify a generator for your project. Choose [Visual Studio](https://visualstudio.microsoft.com/downloads/)  in **Win64** and click on [*Finish*].\n- CMake may take a few seconds to configure the project.\n- Click on [*Generate*] to build the Visual Studio project files.\n\n- CMake has now generated your project in the build directory.\nYou can directly open the solution by clicking on [*Open Project*] or by closing the cmake-gui window and opening the **build** folder.\n\n- A Visual Studio solution has been generated. Open **Stereolabs.ZED.sln** and set it in `Release` mode.\n\n#### Build the C wrapper\n\nThe Csharp wrapper is using the [C wrapper](https://github.com/stereolabs/zed-c-api) to interface with the ZED SDK.\nTherefore, you also need to build it following the same step as before.\n\n## Add the wrapper to your Project\n\n- Open yourproject in Visual studio\n- Right click on your project in the Solution Window and select `Add ` -\u003e  `Project Reference`.\n- Click on  `Browse ` and select the Stereolabs.ZED.dll you just created before. Add it in your project.\n- For the moment you also need to manually copy the c wrapper (sl_zed_c.dll) at the same location, in yourproject.\n\n### Usage\n\nHere is an example of the .NET API.\n```C#\nusing System.Numerics;\n\nnamespace sl\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            // Create the camera\n            Camera zedCamera = new Camera(0);\n            // Create default configuration parameters\n            InitParameters init_params = new InitParameters();\n            ERROR_CODE err = zedCamera.Open(ref init_params);\n            if (err != ERROR_CODE.SUCCESS)\n                Environment.Exit(-1);\n\n            // Get camera information (serial number)\n            int zed_serial = zedCamera.GetZEDSerialNumber();\n            Console.WriteLine(\"Hello! This is my serial number: \" + zed_serial);\n            Console.ReadLine();\n\n            zedCamera.Close();\n        }\n    }\n}\n```\n\n## Support\nIf you need assistance go to our Community site at https://community.stereolabs.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstereolabs%2Fzed-csharp-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstereolabs%2Fzed-csharp-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstereolabs%2Fzed-csharp-api/lists"}