Skip to content

axinc-ai/ailia-csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

ailia-csharp

This is a sample to execute ailia's Inference API using C#.

Requirements

  • Windows 10
  • VisualStudio 2019

Architecture

Unity's cs file can be used from Visual Studio just by commenting out import UnityEngine. Debug.Log, Color32, Vactor2, Mathf are not defined, so define them in AiriaMigration.cs.

Build

  • Open ailia-csharp.sln.
  • Change active platform Any CPU to x64.

active_platform.png

  • Build.

Run

  • Manually place ailia.dll to /ailia-csharp/ailia-csharp/bin/x64/Debug.
  • If you are using the evaluation version, place the license file in the same folder as the dll.

copy_dll.png

  • *.onnx and *.jpg are automatically place to /ailia-csharp/ailia-csharp/bin/x64/Debug on build process.
  • Run.

Result

yolox

Read yolox.jpg and display the inference result of yolox.

yolox.png

facemesh

Read facemesh.jpg and display the inference result of facemesh.

facemesh.png

real_esrgan

Read real_esrgan_anime.jpg and display the inference result of real_esrgan.

real_esrgan.png

Architecture

The inference code is below. Usage is the same as the Unity version.

Test images

About

ailia SDK example for Visual Studio C#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages