Skip to content

awajs/aitrios-sample-application-check-data-tool-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tutorial Checkdata: Sample Application on AITRIOS

Contents

Overview

This repository provides sample code for a Flask Web API that uses Console Access Library for Python to respond inference results to a frontend application (aitrios-sample-application-check-data-tool-ts), as well as configuration files for building a development environment. This application builds an API to retrieve and return object detection based metadata from AITRIOS | Console.

Get Started

Build an environment and get started with the sample application

  1. Clone or fork this application in your GitHub environment.

  2. Click the + button to create a codespace on the GitHub environment. See how to create a codespace.

  3. Create console access setting configuration file with real values under src/data_loader/common/config/. src/data_loader/common/console_access_settings.yaml

    console_access_settings:
        console_endpoint: "__console_endpoint__"
        portal_authorization_endpoint: "__portal_authorization_endpoint__"
        client_secret: "__client_secret__"
        client_id: "__client_id__"
    

    Note

    • Specify the base URL
    • Specify the token URL
    • Specify registered application secret for client_secret
    • Specify registered application client ID for client_id

    See the Portal user manual for details.

  4. Run the sample application using the following command.

    $ cd ./src
    $ flask run --debugger --reload
    
  5. Open localhost:5000 in a browser and verify that the application is running.

    Note Please check only for codespaces users!

    Public Ports (Front-end application link)
    To link with the front-end application, follow the steps below to make the port on codespaces public.

    1. Open a terminal and open the [Port] tab. Right-click on the port that will be shared and, after clicking on [Port Display Range], click on [Public].
    2. Click on the copy icon on the right side of the port’s local adress and copy it.

codespace_public_port

Specifications

Functional overview

  • Web API to obtain various datas from AITRIOS | Console.
    • An API that can be obtained a list of edge AI devices connected to the AITRIOS | Console.
    • An API that can be obtained a list of sub-directories containing images taken with the specified device.
    • An API that can be obtained a list of pairs of image and inference result that stored in the Console.
  • Only object detection made by Custom Vision is supported.
  • It can be run on devcontainer/codespaces.

Restrictions

None

Get support

See also

Trademark

Notice

Security

Before using Codespaces, please read the Site Policy of GitHub and understand the usage conditions.

About

Checkdata Tool with Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 96.7%
  • Python 2.4%
  • HTML 0.5%
  • JavaScript 0.1%
  • Shell 0.1%
  • Batchfile 0.1%
  • Dockerfile 0.1%