Open heojae opened 3 years ago
https://github.com/heojae/FoodImageRotationAdmin/pull/22#issue-572278403 에서 변경된것 과 같이,
inference.proto
와 user_fix_image.proto
가 변경되었습니다.
기존의 경우, string
을 통해 받았던, 이미지 값들을 bytes
형태로 수정하였습니다.
inference.proto
syntax = "proto3";
import "empty.proto";
message BytesImage {
bytes image_content = 1;
}
message InferenceResult {
int32 model_degree = 1;
int32 exif_degree = 2;
float confidence = 3;
bool success = 4;
}
message ModelPath{
string path = 1;
}
service InferenceImage {
rpc Inference(BytesImage) returns (InferenceResult) {};
rpc LoadModel(ModelPath) returns (Empty){};
}
user_fix_image.proto
syntax = "proto3";
import "empty.proto";
message UserFixedImageInfo {
bytes image_content = 1;
string file_name = 2;
int32 exif_degree = 3;
int32 model_degree = 4;
float confidence = 5;
int32 user_fix_degree = 6;
}
service UserFixImage {
rpc SaveUserFixImage(UserFixedImageInfo) returns (Empty) {};
}
user.proto
user server
를 제외하고, 다른 서버들의 API 들은 프론트에서,request
를 받을 때,rpc Authenticate(Empty) returns (Empty) {}
을 통해,request
의user
인증을 한다.inference.proto
model_version.proto
dataset.proto
user_fix_image.proto