MIRAI - MRI Brain Tumor Detection API

4

MIRAI is a neural network that detects and outlines brain tumors in MRI brain scans. This model utilizes deep learning to be able to detect brain tumors with an accuracy that rivals that of a professional. MIRAI takes in a MRI head scan and spits out a labeled one, as well as a precise outline of the tumor. Upload an image and try it out! *Disclaimer: this model is for research purchases only and not approved for medical use or diagnosis.

url upload file upload


API Docs
QUICK START API REQUEST
curl \
    -F 'image=YOUR_IMAGE_URL' \
    -H 'api-key:YOUR_API_KEY' \
    https://api.deepai.org/api/mri-brain-tumor-detection 

Detect

Anomalies, such as Brain Tumors

Brain tumors are deadly and silent, and can be hard to detect, especially in earlier stages. MIRAI can easily detect tumors, regardless of size.

Outline

masking tumors with pixel-by-pixel accuracy

Want to know exactly where and how big the tumor is? The API outlines it so its easy for any other program or person to analyze it.

Confidence

how sure is the model?

Sometimes, you just want to know how sure a doctor is about a diagnoses. Well, MIRAI gives a confidence level to do just that.

Process MRI Scans

MRI scans are commonly taken in horizontal cross-sections. MIRAI can scan these and mask them, so any patient who wants a second opinion doesn’t have to go and look for another doctor to confirm a diagnosis.


Label Brain Tumors

Just boxing a tumor is easy. MIRAI can mask it, making it clear where the boundaries of the tumor itself are.


MIRAI - MRI Brain Tumor Detection API Documentation

MIRAI - MRI Brain Tumor Detection cURL Examples

# Example posting a image URL:

curl \
    -F 'image=YOUR_IMAGE_URL' \
    -H 'api-key:YOUR_API_KEY' \
    https://api.deepai.org/api/mri-brain-tumor-detection 


# Example posting a local image file:

curl \
    -F 'image=@/path/to/your/file.jpg' \
    -H 'api-key:YOUR_API_KEY' \
    https://api.deepai.org/api/mri-brain-tumor-detection 

MIRAI - MRI Brain Tumor Detection Javascript Examples

// Get the 'deepai' package here (Compatible with browser & nodejs):
//     https://www.npmjs.com/package/deepai
// All examples use JS async-await syntax, be sure to call the API inside an async function.
//     Learn more about async-await here: https://javascript.info/async-await

// Example posting a image URL:

const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML

deepai.setApiKey('YOUR_API_KEY');

(async function() {
    var resp = await deepai.callStandardApi("mri-brain-tumor-detection", {
            image: "YOUR_IMAGE_URL",
    });
    console.log(resp);
})()


// Example posting file picker input image (Browser only):

const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML

deepai.setApiKey('YOUR_API_KEY');

(async function() {
    var resp = await deepai.callStandardApi("mri-brain-tumor-detection", {
            image: document.getElementById('yourFileInputId'),
    });
    console.log(resp);
})()


// Example posting a local image file (Node.js only):
const fs = require('fs');

const deepai = require('deepai'); // OR include deepai.min.js as a script tag in your HTML

deepai.setApiKey('YOUR_API_KEY');

(async function() {
    var resp = await deepai.callStandardApi("mri-brain-tumor-detection", {
            image: fs.createReadStream("/path/to/your/file.jpg"),
    });
    console.log(resp);
})()

MIRAI - MRI Brain Tumor Detection Python Examples

# Ensure your pyOpenSSL pip package is up to date
# Example posting a image URL:

import requests
r = requests.post(
    "https://api.deepai.org/api/mri-brain-tumor-detection",
    data={
        'image': 'YOUR_IMAGE_URL',
    },
    headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())


# Example posting a local image file:

import requests
r = requests.post(
    "https://api.deepai.org/api/mri-brain-tumor-detection",
    files={
        'image': open('/path/to/your/file.jpg', 'rb'),
    },
    headers={'api-key': 'YOUR_API_KEY'}
)
print(r.json())

MIRAI - MRI Brain Tumor Detection Ruby Examples

# Example posting a image URL:

require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/mri-brain-tumor-detection', timeout: 600,
    headers: {'api-key' => 'YOUR_API_KEY'},
    payload: {
        'image' => 'YOUR_IMAGE_URL',
    }
)
puts r


# Example posting a local image file:

require 'rest_client'
r = RestClient::Request.execute(method: :post, url: 'https://api.deepai.org/api/mri-brain-tumor-detection', timeout: 600,
    headers: {'api-key' => 'YOUR_API_KEY'},
    payload: {
        'image' => File.new('/path/to/your/file.jpg'),
    }
)
puts r

MIRAI - MRI Brain Tumor Detection Csharp Examples

// Ensure your DeepAI.Client NuGet package is up to date: https://www.nuget.org/packages/DeepAI.Client
// Example posting a image URL:

using DeepAI; // Add this line to the top of your file

DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");

StandardApiResponse resp = api.callStandardApi("mri-brain-tumor-detection", new {
        image = "YOUR_IMAGE_URL",
});
Console.Write(api.objectAsJsonString(resp));


// Example posting a local image file:

using DeepAI; // Add this line to the top of your file

DeepAI_API api = new DeepAI_API(apiKey: "YOUR_API_KEY");

StandardApiResponse resp = api.callStandardApi("mri-brain-tumor-detection", new {
        image = File.OpenRead("C:\\path\\to\\your\\file.jpg"),
});
Console.Write(api.objectAsJsonString(resp));