public Observable<ServiceResponse<ImageCreateSummary>> createImagesFromPredictionsWithServiceResponseAsync(UUID projectId, ImageIdCreateBatch batch) {
        if (projectId == null) {
            throw new IllegalArgumentException("Parameter projectId is required and cannot be null.");
        }
        if (batch == null) {
            throw new IllegalArgumentException("Parameter batch is required and cannot be null.");
        }
        if (this.client.apiKey() == null) {
            throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null.");
        }
        Validator.validate(batch);
        return service.createImagesFromPredictions(projectId, batch, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent())
            .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ImageCreateSummary>>>() {
                @Override
                public Observable<ServiceResponse<ImageCreateSummary>> call(Response<ResponseBody> response) {
                    try {
                        ServiceResponse<ImageCreateSummary> clientResponse = createImagesFromPredictionsDelegate(response);
                        return Observable.just(clientResponse);
                    } catch (Throwable t) {
                        return Observable.error(t);
                    }
                }
            });
    }
public Observable < ServiceResponse < ImageCreateSummary > > createImagesFromPredictionsWithServiceResponseAsync ( UUID projectId , ImageIdCreateBatch batch ) { if ( projectId == null ) { throw new IllegalArgumentException ( "Parameter projectId is required and cannot be null." ) ; } if ( batch == null ) { throw new IllegalArgumentException ( "Parameter batch is required and cannot be null." ) ; } if ( this . client . apiKey ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.apiKey() is required and cannot be null." ) ; } Validator . validate ( batch ) ; return service . createImagesFromPredictions ( projectId , batch , this . client . apiKey ( ) , this . client . acceptLanguage ( ) , this . client . userAgent ( ) ) . flatMap ( new Func1 < Response < ResponseBody > , Observable < ServiceResponse < ImageCreateSummary > > > ( ) { @ Override public Observable < ServiceResponse < ImageCreateSummary > > call ( Response < ResponseBody > response ) { try { ServiceResponse < ImageCreateSummary > clientResponse = createImagesFromPredictionsDelegate ( response ) ; return Observable . just ( clientResponse ) ; } catch ( Throwable t ) { return Observable . error ( t ) ; } } } ) ; }
Add the specified predicted images to the set of training images.
This API creates a batch of images from predicted images specified. There is a limit of 64 images and 20 tags.

@param projectId The project id
@param batch Image and tag ids. Limted to 64 images and 20 tags per batch
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the ImageCreateSummary object