Skip to content

Home

Windows   macOS   macOS   Ubuntu   Debian   Raspberry Pi   Orange Pi   Jetson Nano   Docker   Visual Studio   Visual Studio Code


CodeProjectAI

Docker Images Windows Installer   API Docs   GitHub   Discussions

CodeProject.AI Server is a self-hosted, free and Open Source Artificial Intelligence Server for any platform, any language. Just like you would install a database server to provide data storage, you install CodeProject.AI Server to provide AI services.

It can be installed locally, requires no off-device or out of network data transfer, and is easy to use.

Object detection

AI programming is something every single developer should be aware of. We wanted a fun project we could use to help teach developers and get them involved in AI. We'll be using CodeProject.AI as a focus for articles and exploration to make it fun and painless to learn AI programming.

We got sick of fighting versions and libraries and models and being blocked by tiny annoying things every step of the way. So we put put this together so we could save you the frustation. We'll take care of the housekeeping, you focus on the code.

We don't always want our personal data in the cloud. It should always be your choice as to who sees your data.

Help us make this something amazing!

Cut to the chase: how do I play with it?

1: Running and playing with the features

  1. Download the latest version, install, and launch the shortcut to the server's dashboard on your desktop.
  2. On the dashboard, top and center, is a link to the CodeProject.AI Explorer. Open that and play!

2: Running and debugging the code

Read our quick guide to setting up and running CodeProject.AI in Visual Studio Code or Visual Studio.

How do I use it in my application?

Here's an example of using the API for scene detection using a simple JavaScript call:

HTML
<html>
<body>
Detect the scene in this file: <input id="image" type="file" />
<input type="button" value="Detect Scene" onclick="detectScene(image)" />

<script>
function detectScene(fileChooser) {
    var formData = new FormData();
    formData.append('image', fileChooser.files[0]);

    fetch('http://localhost:32168/v1/vision/detect/scene', {
        method: "POST",
        body: formData
    })
    .then(response => {
        if (response.ok) response.json().then(data => {
            console.log(`Scene is ${data.label}, ${data.confidence} confidence`)
        });
    });
}
</script>
</body>
</html>

You can include the CodeProject.AI installer (or just a link to the latest version of the installer) in your own apps and installers and voila, you have an AI enabled app.

What does it include?

CodeProject.AI includes

  1. A HTTP REST API Server. The server listens for requests from other apps, passes them to the backend analysis services for processing, and then passes the results back to the caller. It runs as a simple self contained web service on your device.
  2. Backend Analysis services. The brains of the operation is in the analysis services sitting behind the front end API. All processing of data is done on the current machine. No calls to the cloud and no data leaving the device.
  3. The Source Code, naturally.

What can it do?

CodeProject.AI can currently

  • Detect objects in images
  • Detect faces in images
  • Transform a face into an anime-style cartoon
  • Read text and license plates
  • Detect the type of scene represented in an image
  • Recognise faces that have been registered with the service
  • Pull out the most important sentences in text to generate a text summary
  • Remove the background automatically from images
  • Blur the background of images to produce a portrait effect
  • Generate a sentiment score for text

We will be constantly expanding the feature list.

Please note that the Windows Install and Docker versions only contain object detection modules. Other modules can be installed via the dashboard at runtime.

Our Goals

  1. To promote AI development and inspire the AI developer community to dive in and have a go. AI is here, it's in demand, and it's a huge paradigm change in the industry. Whether you like AI or not, developers owe it to themselves to experiment in and familiarise themselves with the technology. This is CodeProject.AI: a demonstration, an explorer, a learning tool, and a library and service that can be used out of the box.
  2. To make AI development easy. It's not that AI development is that hard. It's that there are so, so many options. Our architecture is designed to allow any AI implementation to find a home in our system, and for our service to be callable from any language.
  3. To focus on core use-cases. We're deliberately not a solution for everyone. Instead we're a solution for common day-to-day needs. We will be adding dozens of modules and scores of AI capabilities to our system, but our goal is always clarity and simplicity over a 100% solution.
  4. To tap the expertise of the Developer Community. We're not experts but we know a developer or two out there who are. The true power of CodeProject.AI comes from the contributions and improvements from our AI community.

Roadmap

The following features will be added over the coming weeks and months

  1. More modules and a streamlined plugin architecture
  2. A GUI management system
  3. GPU support across a range of graphics cards and accelerators
  4. More analysis services