github.com/Mrs4s/MiraiGo@v0.0.0-20240226124653-54bdd873e3fe/client/pb/oidb/oidb0xe07.proto (about)

     1  syntax = "proto3";
     2  
     3  option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb";
     4  
     5  message DE07ReqBody {
     6    int32 version = 1;
     7    int32 client = 2;
     8    int32 entrance = 3;
     9    OCRReqBody ocrReqBody = 10;
    10  }
    11  
    12  message OCRReqBody {
    13    string imageUrl = 1;
    14    string languageType = 2;
    15    string scene = 3;
    16    string originMd5 = 10;
    17    string afterCompressMd5 = 11;
    18    int32 afterCompressFileSize = 12;
    19    int32 afterCompressWeight = 13;
    20    int32 afterCompressHeight = 14;
    21    bool isCut = 15;
    22  }
    23  
    24  message DE07RspBody {
    25    int32 retCode = 1;
    26    string errMsg = 2;
    27    string wording = 3;
    28    OCRRspBody ocrRspBody = 10;
    29  }
    30  
    31  message TextDetection {
    32    string detectedText = 1;
    33    int32 confidence = 2;
    34    Polygon polygon = 3;
    35    string advancedInfo = 4;
    36  }
    37  
    38  message Polygon {
    39    repeated Coordinate coordinates = 1;
    40  }
    41  
    42  message Coordinate {
    43    int32 X = 1;
    44    int32 Y = 2;
    45  }
    46  
    47  message Language {
    48    string language = 1;
    49    string languageDesc = 2;
    50  }
    51  
    52  message OCRRspBody {
    53    repeated TextDetection textDetections = 1;
    54    string language = 2;
    55    string requestId = 3;
    56    repeated string ocrLanguageList = 101;
    57    repeated string dstTranslateLanguageList = 102;
    58    repeated Language languageList = 103;
    59    int32 afterCompressWeight = 111;
    60    int32 afterCompressHeight = 112;
    61  }