Cloud APIs

1

Agree to Terms of Use

Visit RICOH Developer Connection Management Console and click the [Log in with RICOH Account] button if you agree to terms of RICOH Cloud API.

2

Register Account

On the Web page that appears after you click the [Subscribe] button, enter the information required to register for the RICOH account service.
After entering the information, you will receive an email informing you that an account has been created. Click the link in the email body to complete account registration. (Use the same Web browser you used when you clicked the [Subscribe] button to access the URL in the email body.)

3

Open the Management Console

After step 2, you will be automatically redirected to the Management Console and registration to use the Cloud API is complete.

4

Create an API Client

Click the [Create Client] button in Management Console and you will see the Client ID and Client Secret.

5

Use Cloud APIs

For RICOH Visual Recognition API

Install SDK and Setup

$ git clone https://github.com/ricohapi/ricoh-cloud-sdk-python.git
$ cd ricoh-cloud-sdk-python
$ pip install .
$ pip install pillow

Rename template.config.json to config.json and set your credentials.
Run to Use Visual Recognition API
Put photos to be recognized in the directory.

# FaceDetection Sample
$ python face_detection.py -f ./sample_1.jpg
# HumanDetection Sample
$ python human_detection.py -f ./sample_2.jpg
# FaceRecognition Sample
$ python face_recognition.py -s ./sample_3a.jpg -t ./sample_3b.jpg

For RICOH Live Streaming API

Install SDK and Setup

$ git clone https://github.com/ricohapi/ricoh-cloud-sdk-js.git
$ cd ricoh-cloud-sdk-js/samples/sfu-server/

Set your client credentials in app.js.
Run web server with port:3000

$ npm install
$ npm start

You can access to broadcasting page sample by http://localhost:3000/broadcast.html . Push the broadcast button, you can start stream.
You can access to watching page sample by http://localhost:3000/watch.html . Push the list button, you can start listing rooms.

For RICOH Peer-to-Peer Communication API

Set your app’s RTCPeerConnection configuration
The following example demonstrates how to set your app’s RTCPeerConnection configuration to use both STUN Service and TURN Service:

const configuration = {
  iceServers: [{
    urls: "stun:stun.api.ricoh:3478"
  }, {
  urls: "turn:turn.api.ricoh:3478?transport=udp",
    username: "<sub in ID Token>",
    credential: "<Access Token>"
  }]
};
const pc = new RTCPeerConnection(configuration);