shimat / opencvsharp

OpenCV wrapper for .NET
Apache License 2.0
5.37k stars 1.15k forks source link

Adding functionality to read aruco dictionaries from files #1561

Closed MHerrmannSOLID closed 1 year ago

MHerrmannSOLID commented 1 year ago

I figured that the functionality to read dictionaries from YAML-Files wasn't wrapped yet. See here from OCV doc: https://docs.opencv.org/4.x/d5/d0b/classcv_1_1aruco_1_1Dictionary.html#a69ec5ae547b01be07b7ce8c437ad1db4

So I added a wrapper with according tests for that. However, since FileStorage and FileNode were both also not available, it works on a simple path string now: var dictionary = CvAruco.ReadDictionary("someDictionaryFile.yaml");

Would be happy if these changes will find their way into your repository. Thanks a lot for all your efforts

shimat commented 1 year ago

Thank you!!