Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- syntax = "proto3";
- package com.bartek.ccr.core;
- option java_outer_classname = "Commands";
- message Rectangle {
- int32 x1 = 1;
- int32 y1 = 2;
- int32 x2 = 3;
- int32 y2 = 4;
- }
- message InitRequest {
- Type type = 1;
- enum Type {
- RECOGNITION = 0;
- RATING = 1;
- }
- }
- message InitResponse {
- bool success = 1;
- string token = 2;
- }
- message Image {
- int64 imageSize = 1;
- string imageFormat = 2;
- string hashCode = 3;
- Rectangle recognitionRectangle = 4;
- bytes image = 5;
- }
- message ImageResponse {
- bool success = 1;
- }
- message RecognitionResult {
- repeated Character character = 1;
- message Character {
- int32 index = 1;
- string character = 2;
- int32 certainty = 3;
- Rectangle characterRectangle = 4;
- }
- }
- message CharacterRateRequest {
- string token = 1;
- int64 characterIndex = 2;
- bool valid = 3;
- }
- message CharacterRateResponse {
- bool success = 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement