add_image: Add image to Pastec index

Description Usage Arguments Value Examples

View source: R/pastec_api.R

Description

Add image to Pastec index

Usage

1
add_image(image_path, image_id, server)

Arguments

image_path

Path to the image file

image_id

Integer. Unique image id.

server

Pastec server

Value

On successful addition, silently returns list with server response.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 

erasmus1 <- system.file("img", "RP-P-1906-1485.jpg", package = "PastecR")
ps <- open_pastec_server()
str(add_image(erasmus1, 1, ps))
#> List of 3
#>  $ image_id             : int 1
#>  $ nb_features_extracted: int 1721
#>  $ type                 : chr "IMAGE_ADDED"

## End(Not run)

mdlincoln/PastecR documentation built on May 22, 2019, 4:03 p.m.