This repository provides sample code for application that calculates the occupancy rate of objects using "aitrios-sdk-cloud-app-sample-ts".
-
Following required software you need to install in your system
- Node.js version 16.x.x (Confirmed it functions with version 16.20.2)
For installation please refer the following link:
-
In the
AITRIOS connect mode
of this application, only the image data of the last 1 hour is acquired. Therefore, when using this mode, please make sure that the device is either in the process of uploading image and inference result or has the data has been uploaded in the past 1 hour.
For basic Edge Device and Console operation, please refer to the Device Setup Guide and Console User Manual.
-
Clone or fork this application in your GitHub environment.
-
Click the
+
button to create a codespace on the GitHub environment. See how to create a codespace. -
Create console access setting configuration file with real values in src/common/console_access_settings.yaml.
src/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
To obtain the endpoint URL, see REST API Authentication, or see the Portal user manual for more details.
-
Run the sample application using the following command.
$ npm run dev
-
Access the host address from the pop-up in the lower right corner, and verify that the application is running.
Note
When checking the operation in
AITRIOS connect mode
, make sure that the inference upload is running on the device where the AI model and EdgeApp is deployed.
-
Open the cloned repository from VSCode's "Open Folder" in "File" tab
-
Open Command Palette in VSCode(Ctrl + Shift + P)
-
Type and choose
"Dev Containers: Open Folder in Container..."
-
Select root directory of the project and wait for building DevContainer.
/your/local/workspace/aitrios-application_object-occupancy-rate
-
Create console access setting configuration file with real values in src/common/console_access_settings.yaml.
-
Run the sample application using the following command.
$ npm run dev
-
Access the host address from the pop-up in the lower right corner, and verify that the application is running.
Note
When checking the operation in
AITRIOS connect mode
, make sure that the inference upload is running on the device where the AI model and EdgeApp is deployed.
- "Cloud SDK Sample Application TypeScript IDE Functional Specifications"
- "Cloud SDK Sample Application TypeScript Functional Specifications"
- About the AI model, Edge App and command parameter file for this application :
- Contact SSS member (Logistics Team) via the following query: "Inquiry Form - Input"
- The others
This repository aims to adhere to Semantic Versioning 2.0.0.
See the "Release Note" from [Releases] for this repository.
Each release is generated in the main branch. Pre-releases are generated in the develop branch. Releases will not be provided by other branches.
Before using Codespaces, please read the Site Policy of GitHub and understand the usage conditions.