I am working on a project C# and I have to write a code that detects all the objects inside an image (if not all as much as possible).
is there any good API to do that in .NET?
I tried Cognitive Services but they do not give me the detected objects. only what inside the photo.
thank you.
Try the AForge.NET Framework:
They have some neat examples too.
http://www.aforgenet.com/framework/
Related
I can't seem to find any samples demonstrating the use of the Windows.Devices.Perception APIs. There doesn't seem to be one in the UWP SDK samples. Also, information is scarce other than the Microsoft API doc.
Is this API deprecated or still active?
I am trying to work out how to use the API.
Is this the recommended way to get the depth/infra frames or is the recommended way using the Windows.Media.Capture APIs?
Ok after closer look at the Microsoft API docs for this namespace. I can see it is tagged as Deprecated. So I guess the Windows.Media.Capture is the correct way to grab the infra frames now.
My C# program generates both training and testing data. I need to use Back Propagation Neural Network/ Multilayer perceptron in Weka GUI for classification & testing. Currently I'm supplying the testing data manually.
As my C# program generates test data, this has to be supplied automatically to the Multilayer perceptron in the weka. This is a Kinect application written in C#.
Is there a solution for automatic testing of data using weka?.
So that my application works without my manual intervention.
Thanks in advance.
Weka has a Java API that that can be used to access the majority of the features exposed in the GUI. Plenty of documentation is available on their website. A good starting point is this guide to using WEKA in Java Code.
The problem here is to link C# code with Weka(Java). For this, I found CSharpJavaMerger. But we need to get the source code of Weka which is in Java, use the merger software for converting and thus link it to C# code.
I have a Microsoft LifeCam and I want to Capture image using C# and use the image inside my application.
I have checked A previously asked question in SO but the link provided in first answer to OpenCV looks to be invalid ( I get "FORBIDDEN" response ).
I want to know if there is any Sample that I can use to learn and capture Image from LifeCam? And also I need the dll (s) for this.
Does anyone have any experience in this case?
Thanks to Sascha, ESCAPI Solution really helped, I used the ESCAPI.dll along with the C# wrapper to translate it to C# and it all went well.
currently i am implementing an application in Unity3D (C#) that will be exported to Flash and WebPlayer Version.
The Application uses JSON to communicate with the server.
My question is: is there any JSON-Parser that works in Unity WebPlayer AND Flash??
i tried MiniJSON Flash Version already. After spending hours to make it to a clean export it decodes JSON in UnityWebPlayer but returns NULL in Flash.
Is there any other way to parse a JSON string in Unity WebPlayer and Flash? Or is there another JSON-Parser that works in Flash too?
I really searched a lot but either the people provide links to MiniJSON or suggest to wait for Unity3D version 4.0.
I even tried the Proxy-Class feature of unity3D but couldnt get to run it on Flash side. Maybe someone could provide an example for it?
Thanks very much
I use LitJSON for Unity and had no problems when I built a web player version for testing purposes a while ago. I have no experience with Flash player but according to this presentation Unity and Flash, the best of both worlds! - Unite presentation slides page 18 ff. it should do the job.
No JSON library written in C# is likely to work with Unity's flash export (if you want strongly typed objects on the client side) because some key .net reflection pieces are not supported, even in the official 4.0 release. I asked Unity to sanction a supported JSON parser that could be used across desktop, web player and flash and it just didn't happen for this release.
I ended up using native AS3 stringify and parse methods on the client side and JSON.net on the server side. The tricky part is compensating for the name mangling that Unity does when it converts your C# to ActionScript. I was able to make this work without hard coding by using some of the standard ways to override parsing and serializing JSON strings, using a lot of describeType(). Since JSON.net is supported in their web player, I was able to use some #if FLASH pragmas to get both working well depending on build target.
So....it is possible, and perhaps I've done much of the hard work for you. If you want some examples let me know.
-Tray Weeds
Try this: https://github.com/ironmagma/jsonparse
It is completly written in UnityScript. Probably it helps and works in Flash Export. But i did not test it.
Has anybody used Mapnik for rendering Maps from .net c# environment? I would like to use it to render maps in a desktop application developed under .net4. I found it the best open source map renderer tool, much more better, than the well known sharpmap, dotspatial (...). The 'only' problem is that it was written in C++ and Python and does not have a trivial way to use it from C#.
Do you know any .net Mapnik wrappers? Do you know any sample code?
I've just published my attempts in C# bindings.
They are available at: http://sourceforge.net/projects/mapniknet/
Some good new about Mapnik-.Net integration:
"Another thing that will help Windows developers is a way to use Mapnik from .Net languages. Although a full .Net wrapper is too much work besides all the other issues, hopefully I can make a meaningful start and open the door for .Net developers to leverage Mapnik in their applications."
Source: Mapnik homepage http://mapnik.org/news/2011/jun/09/gsoc_2011_windows_build_system_introduction/
NET-Mapnik
You might want to give this a try. Its pretty recent and has a simple example with options to create vector tiles.
https://github.com/kernelsanders/NET-Mapnik
So, finally I hacked it. Not a nice solution, but it works at least. In nutshell it operates in the following way:
developed a python script, which takes parameters as command line arguments. (using python api of mapnik)
call this python script by shell fom c# code (Process)
after map image has been generated, I show it in SharpMap as a background layer
In case of any map refresh (zoom, pan) I regenerate 'mapnik map layer'. I have also some kind of cache, in which I can store generated maps, so I can make tricks by using earlier generated map images or pre-generate them (e.g. generate maps for the next zoom level when user uses zoom tool). I also use some asynchron calls to do this, so I can create 1-3 map images paralelly.
The weak part of this solution is the communication between python and c# modules. I could not find better than command line arguments + shell.
My solution works, mapnik is fast, can genarate my maps less than a sec.
If you have any advice on .net - python communication (NO ironpython, it is not suitable for manik api), pls write it here. Thx.
Do you know about TAO Project?
It is a .Net project that takes unmanaged opengle library to .Net Managed Form by calling DllIMport() in C#.
You must do it for Mapnik, simaliar to TAOFramework.net