DeepStack - CSharp Guide

DeepStack is an AI server that empowers every developer in the world to easily build state-of-the-art AI systems both on premise and in the cloud. The promises of Artificial Intelligence are huge but becoming a machine learning engineer is hard. DeepStack is device and language agnostic. You can run it on Windows, Mac OS, Linux, Raspberry PI and use it with any programming language.

Top Features

Example Code

Using DeepStack, we can classify the scene of the above image as seen below

using System;
using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
namespace app
class App {
static HttpClient client = new HttpClient();
public static async Task makeRequest(){
var request = new MultipartFormDataContent();
var image_data = File.OpenRead("image.jpg");
request.Add(new StreamContent(image_data),"image",Path.GetFileName("image.jpg"));
var output = await client.PostAsync("http://localhost:80/v1/vision/scene",request);
var jsonString = await output.Content.ReadAsStringAsync();
static void Main(string[] args){


{ success: true, label: 'highway', confidence: 0.63377846 }

You simply send in an image by POST and DeepStack returns a JSON response detailing the label of the image as well as the confidence of the prediction on a scale of 0 - 1

DeepStack is developed and maintained by DeepQuest AI


DeepStack is available in three variants, CPU Version, GPU Version and Raspberry PI Version (With Support for Intel Neural Compute Stick)

Instructions for installation of the CPU Version is in the next section.

Installing DeepStack - CPU Version

DeepStack can be installed on Linux, Mac and Windows via docker. On windows, DeepStack can also be installed as a standalone Windows App. Both steps are detailed below.

If you are on Windows, you can Skip to Option 2 : Installing on Windows

Step 1: Install Docker (If not already installed)

sudo apt-get update
sudo apt-get install curl
curl -fsSL -o && sh

Mac OS and Windows Users can install docker from Docker's Website

Step 2: Install DeepStack

Legacy CPU Version
sudo docker pull deepquestai/deepstack
Legacy CPU Version
sudo docker pull deepquestai/deepstack:noavx

If you are running an old system without modern cpu instructions such as AVX, please use the Legacy CPU Version

Step 3: Run DeepStack

sudo docker run -e VISION-SCENE=True -v localstorage:/datastore -p 80:5000 deepquestai/deepstack

Basic Parameters

-e VISION-SCENE=True This enables the scene recognition API, all apis are disabled by default.

-v localstorage:/datastore This specifies the local volume where DeepStack will store all data.

-p 80:5000 This makes DeepStack accessible via port 80 of the machine.

Option 2 : Installing DeepStack on Windows

Step 1: Download the DeepStack Installer

Step 2: Run the downloaded Installer

Step 3: Start DeepStack

DeepStack Windows provides a very friendly GUI, you can launch it from the Desktop or the Start Menu,

The interface below will appear when launched.

Click Start Server and, Select the Scene API and click Start Now on the interface that appears next.

Once started, you should activate DeepStack following instructions in Activate DeepStack

After activation, you can run the Example Code to test your installation