GitHub
Preparing search index...
The search index is not available
Viam SDK
Viam SDK
VisionClient
Class VisionClient
A gRPC-web client for a Vision service.
Implements
Vision
Index
Constructors
constructor
Properties
client
name
options
Accessors
service
Methods
capture
All
From
Camera
do
Command
get
Classifications
get
Classifications
From
Camera
get
Detections
get
Detections
From
Camera
get
Object
Point
Clouds
get
Properties
Constructors
constructor
new
Vision
Client
(
client
,
name
,
options
?
)
:
VisionClient
Parameters
client
:
RobotClient
name
:
string
options
:
Options
= {}
Returns
VisionClient
Properties
Private
client
client
:
VisionServiceClient
Private
Readonly
name
name
:
string
Private
Readonly
options
options
:
Options
Accessors
Private
service
get
service
(
)
:
VisionServiceClient
Returns
VisionServiceClient
Methods
capture
All
From
Camera
capture
All
From
Camera
(
cameraName
,
__namedParameters
,
extra
?
)
:
Promise
<
{
classifications
:
visionApi
.
Classification
.
AsObject
[]
;
detections
:
visionApi
.
Detection
.
AsObject
[]
;
image
:
undefined
|
cameraApi
.
Image
.
AsObject
;
objectPointClouds
:
commonApi
.
PointCloudObject
.
AsObject
[]
;
}
>
Parameters
cameraName
:
string
__namedParameters
:
CaptureAllOptions
extra
:
{}
= {}
Returns
Promise
<
{
classifications
:
visionApi
.
Classification
.
AsObject
[]
;
detections
:
visionApi
.
Detection
.
AsObject
[]
;
image
:
undefined
|
cameraApi
.
Image
.
AsObject
;
objectPointClouds
:
commonApi
.
PointCloudObject
.
AsObject
[]
;
}
>
do
Command
do
Command
(
command
)
:
Promise
<
StructType
>
Parameters
command
:
StructType
Returns
Promise
<
StructType
>
get
Classifications
get
Classifications
(
image
,
width
,
height
,
mimeType
,
count
,
extra
?
)
:
Promise
<
visionApi
.
Classification
.
AsObject
[]
>
Parameters
image
:
Uint8Array
width
:
number
height
:
number
mimeType
:
MimeType
count
:
number
extra
:
StructType
= {}
Returns
Promise
<
visionApi
.
Classification
.
AsObject
[]
>
get
Classifications
From
Camera
get
Classifications
From
Camera
(
cameraName
,
count
,
extra
?
)
:
Promise
<
visionApi
.
Classification
.
AsObject
[]
>
Parameters
cameraName
:
string
count
:
number
extra
:
StructType
= {}
Returns
Promise
<
visionApi
.
Classification
.
AsObject
[]
>
get
Detections
get
Detections
(
image
,
width
,
height
,
mimeType
,
extra
?
)
:
Promise
<
visionApi
.
Detection
.
AsObject
[]
>
Parameters
image
:
Uint8Array
width
:
number
height
:
number
mimeType
:
MimeType
extra
:
StructType
= {}
Returns
Promise
<
visionApi
.
Detection
.
AsObject
[]
>
get
Detections
From
Camera
get
Detections
From
Camera
(
cameraName
,
extra
?
)
:
Promise
<
visionApi
.
Detection
.
AsObject
[]
>
Parameters
cameraName
:
string
extra
:
StructType
= {}
Returns
Promise
<
visionApi
.
Detection
.
AsObject
[]
>
get
Object
Point
Clouds
get
Object
Point
Clouds
(
cameraName
,
extra
?
)
:
Promise
<
commonApi
.
PointCloudObject
.
AsObject
[]
>
Parameters
cameraName
:
string
extra
:
StructType
= {}
Returns
Promise
<
commonApi
.
PointCloudObject
.
AsObject
[]
>
get
Properties
get
Properties
(
extra
?
)
:
Promise
<
{
classificationsSupported
:
boolean
;
detectionsSupported
:
boolean
;
objectPointCloudsSupported
:
boolean
;
}
>
Parameters
extra
:
{}
= {}
Returns
Promise
<
{
classificationsSupported
:
boolean
;
detectionsSupported
:
boolean
;
objectPointCloudsSupported
:
boolean
;
}
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
client
name
options
service
capture
All
From
Camera
do
Command
get
Classifications
get
Classifications
From
Camera
get
Detections
get
Detections
From
Camera
get
Object
Point
Clouds
get
Properties
Viam SDK
Loading...
Generated using
TypeDoc
A gRPC-web client for a Vision service.