Package biopb.image
Class ObjectDetectionGrpc.ObjectDetectionStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<ObjectDetectionGrpc.ObjectDetectionStub>
biopb.image.ObjectDetectionGrpc.ObjectDetectionStub
- Enclosing class:
- ObjectDetectionGrpc
public static final class ObjectDetectionGrpc.ObjectDetectionStub
extends io.grpc.stub.AbstractAsyncStub<ObjectDetectionGrpc.ObjectDetectionStub>
A stub to allow clients to do asynchronous rpc calls to service ObjectDetection.
Implementing the `RunDetection` call is mandatory. The rest are optional.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectDetectionGrpc.ObjectDetectionStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidgetOpNames(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<OpNames> responseObserver) Query supported model names and their kwargs schemas.voidrunDetection(DetectionRequest request, io.grpc.stub.StreamObserver<DetectionResponse> responseObserver) Unitary call for computing cell detection / segmentation.io.grpc.stub.StreamObserver<DetectionRequest>runDetectionOnGrid(io.grpc.stub.StreamObserver<DetectionResponse> responseObserver) Send the image dataset as a stream of (overlapping or non-overlapping) image patches, instead of one large chunk of binary data.io.grpc.stub.StreamObserver<DetectionRequest>runDetectionStream(io.grpc.stub.StreamObserver<DetectionResponse> responseObserver) The streaming version allows dynamic updating of the DetectionRequest and getting updated results.io.grpc.stub.StreamObserver<DetectionRequest>runModelAdaptation(io.grpc.stub.StreamObserver<com.google.protobuf.Any> responseObserver) Run model adaptation based on the submitted stream of DetectionRequest, which may or may not contain ROI annotations.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected ObjectDetectionGrpc.ObjectDetectionStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<ObjectDetectionGrpc.ObjectDetectionStub>
-
runDetection
public void runDetection(DetectionRequest request, io.grpc.stub.StreamObserver<DetectionResponse> responseObserver) Unitary call for computing cell detection / segmentation.
-
runDetectionStream
public io.grpc.stub.StreamObserver<DetectionRequest> runDetectionStream(io.grpc.stub.StreamObserver<DetectionResponse> responseObserver) The streaming version allows dynamic updating of the DetectionRequest and getting updated results. For example, a client may request analyses at several different settings on the same image. After initial request, the following streaming requests no longer need to transmit the image pixel data anymore, but only the new parameter settings, which saves network bandwidth.
-
runDetectionOnGrid
public io.grpc.stub.StreamObserver<DetectionRequest> runDetectionOnGrid(io.grpc.stub.StreamObserver<DetectionResponse> responseObserver) Send the image dataset as a stream of (overlapping or non-overlapping) image patches, instead of one large chunk of binary data. There are two use cases for this call: (1) The image dataset is too large therefore sending all data in one message would exceed GRPC message size limit; (2) The original data were taken as a grid scan so it is convenient to read/write as patches.
-
runModelAdaptation
public io.grpc.stub.StreamObserver<DetectionRequest> runModelAdaptation(io.grpc.stub.StreamObserver<com.google.protobuf.Any> responseObserver) Run model adaptation based on the submitted stream of DetectionRequest, which may or may not contain ROI annotations. This call returns an opaque data structure representing the model configuration after model adaptation, which in turn should be included in future inference request as a DetectionSettings field.
-
getOpNames
public void getOpNames(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<OpNames> responseObserver) Query supported model names and their kwargs schemas.
-