Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Alturos.Yolo library Error when Deploy Server Web API with C#

$
0
0

In project C# I installed NuGet package name: Alturos.YoloWithCuda101GpuSupport or Alturos.Yolo

Then I deployed my project to server

Error Name: Could not load file or assembly 'Alturos.Yolo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)

    public List<DetectItem> LikeGetAllDetectData()    {        List<DetectItem> listitems = null;        try        {            ServicePointManager.Expect100Continue = true;            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;            WebClient myWebClient = new WebClient();            byte[] myDataBuffer = myWebClient.DownloadData("https://www.sciencemag.org/sites/default/files/styles/inline__450w__no_aspect/public/dogs_1280p_0.jpg?itok=h6VBayx-");            var configurationDetector = new ConfigurationDetector();            var yoloWrapper = new YoloWrapper("/_layouts/15/xxx/YOLOV3TINY/yolov3-tiny.cfg", "/_layouts/15/xxx/YOLOV3TINY/yolov3-tiny.weights", "/_layouts/15/xxx/YOLOV3TINY/coco.names");            var items = yoloWrapper.Detect(myDataBuffer.ToString());            listitems = new List<DetectItem>();            for (int i = 0; i < items.Count(); i++)            {                DetectItem di = new DetectItem();                di.type = items.ToList()[i].Type;                di.confidence = items.ToList()[i].Confidence;                listitems.Add(di);            }            return listitems;        }        catch (Exception ex)        {            ex.ToString();            return listitems;        }        finally        {        }    }

Call API:enter image description here


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>