@fiftyone/utilities¶
Hooks¶
Functions¶
applyAlpha¶
-
@fiftyone/utilities.
applyAlpha
(color, alpha)¶ - Arguments
color (string) –
alpha (number) –
- Return type
string
clone¶
-
@fiftyone/utilities.
clone
(data)¶ - Arguments
data (T) –
- Return type
plugins.fiftyone.utilities.Mutable()
<
plugins.fiftyone.utilities.T()
>
createColorGenerator¶
-
@fiftyone/utilities.
createColorGenerator
(colorPool, seed)¶ - Arguments
colorPool (readonly) –
seed () –
createResourceGroup¶
determinePathType¶
-
@fiftyone/utilities.
determinePathType
(path)¶ - Arguments
path (string) –
- Return type
plugins.fiftyone.utilities.PathType()
doesSchemaContainEmbeddedDocType¶
-
@fiftyone/utilities.
doesSchemaContainEmbeddedDocType
(schema, embeddedDocType)¶ - Arguments
schema (Schema) –
embeddedDocType (string) –
- Return type
boolean
formatDate¶
-
@fiftyone/utilities.
formatDate
(timeStamp)¶ - Arguments
timeStamp (number) –
- Return type
string
formatDateTime¶
-
@fiftyone/utilities.
formatDateTime
(timeStamp, timeZone)¶ - Arguments
timeStamp (number) –
timeZone (string) –
- Return type
string
formatPrimitive¶
-
@fiftyone/utilities.
formatPrimitive
(__namedParameters)¶ - Arguments
__namedParameters (Object) –
__namedParameters.ftype (string) –
__namedParameters.timeZone (string) –
__namedParameters.value (Primitive) –
- Return type
Union<
string
,
URL
>
get32BitColor¶
-
@fiftyone/utilities.
get32BitColor
(color, alpha)¶ - Arguments
color (Union< string , RGB >) –
alpha (number) –
- Return type
number
getCls¶
-
@fiftyone/utilities.
getCls
(fieldPath, schema)¶ - Arguments
fieldPath (string) –
schema (Schema) –
- Return type
Union<
string
,
undefined
>
getColor¶
-
@fiftyone/utilities.
getColor
(pool, seed, fieldOrValue)¶ - Arguments
pool (readonly) –
seed (number) –
fieldOrValue (Union< string , number , boolean >) –
- Return type
string
getColorscaleArray¶
-
@fiftyone/utilities.
getColorscaleArray
(colorscale, alpha)¶ - Arguments
colorscale (Array< RGB >) –
alpha (number) –
- Return type
Readonly < Uint32Array >
<
Uint32Array
>
getEventSource¶
-
@fiftyone/utilities.
getEventSource
(path, events, signal, body)¶ - Arguments
path (string) –
events (Object) –
events.onclose (( )) –
events.onerror (( error : Error )) –
events.onmessage (( event : EventSourceMessage )) –
events.onopen (( )) –
signal (AbortSignal) –
body (Any) –
- Return type
void
getFetchFunction¶
-
@fiftyone/utilities.
getFetchFunction
()¶ - Return type
plugins.fiftyone.utilities.FetchFunction()
getFieldInfo¶
-
@fiftyone/utilities.
getFieldInfo
(fieldPath, schema)¶ - Arguments
fieldPath (string) –
schema (Schema) –
- Return type
Union<
plugins.fiftyone.utilities.Field()
,
undefined
>
getFieldsWithEmbeddedDocType¶
-
@fiftyone/utilities.
getFieldsWithEmbeddedDocType
(schema, embeddedDocType)¶ - Arguments
schema (Schema) –
embeddedDocType (string) –
- Return type
Array<
plugins.fiftyone.utilities.Field()
>
getMimeType¶
-
@fiftyone/utilities.
getMimeType
(sample)¶ - Arguments
sample (Sample) –
- Return type
string
getProtocol¶
-
@fiftyone/utilities.
getProtocol
(path)¶ - Arguments
path (string) –
- Return type
string
getRGB¶
-
@fiftyone/utilities.
getRGB
(color)¶ - Arguments
color (string) –
- Return type
plugins.fiftyone.utilities.RGB()
getRGBA¶
-
@fiftyone/utilities.
getRGBA
(value)¶ - Arguments
value (number) –
- Return type
plugins.fiftyone.utilities.RGBA()
getRGBAColor¶
-
@fiftyone/utilities.
getRGBAColor
(__namedParameters)¶ - Arguments
__namedParameters (RGBA) –
- Return type
string
getRootOrProtocol¶
-
@fiftyone/utilities.
getRootOrProtocol
(path)¶ - Arguments
path (string) –
- Return type
string
getSeparator¶
-
@fiftyone/utilities.
getSeparator
(pathType)¶ - Arguments
pathType (PathType) –
- Return type
string
hexToRgb¶
-
@fiftyone/utilities.
hexToRgb
(hex)¶ - Arguments
hex (string) –
- Return type
plugins.fiftyone.utilities.RGB()
humanReadableBytes¶
-
@fiftyone/utilities.
humanReadableBytes
(bytes)¶ - Arguments
bytes (number) –
- Return type
string
isObjectIdString¶
-
@fiftyone/utilities.
isObjectIdString
(value)¶ - Arguments
value (string) –
- Return type
boolean
isPrimitiveString¶
-
@fiftyone/utilities.
isPrimitiveString
(value)¶ - Arguments
value (unknown) –
- Return type
boolean
isPrimitiveType¶
-
@fiftyone/utilities.
isPrimitiveType
(type)¶ - Arguments
type (string) –
- Return type
boolean
joinPaths¶
-
@fiftyone/utilities.
joinPaths
(paths)¶ - Arguments
paths (Array< string >) –
- Return type
string
makePseudoField¶
-
@fiftyone/utilities.
makePseudoField
(path)¶ - Arguments
path (string) –
- Return type
plugins.fiftyone.utilities.Field()
meetsFieldType¶
-
@fiftyone/utilities.
meetsFieldType
(field, __namedParameters)¶ - Arguments
field (Field) –
__namedParameters (Object) –
__namedParameters.acceptLists (boolean) –
__namedParameters.embeddedDocType (Union< string , >) –
__namedParameters.ftype (Union< string , >) –
- Return type
boolean
move¶
-
@fiftyone/utilities.
move
(array, moveIndex, toIndex)¶ - Arguments
array (Array< T >) –
moveIndex (number) –
toIndex (number) –
- Return type
Array<
plugins.fiftyone.utilities.T()
>
pluralize¶
-
@fiftyone/utilities.
pluralize
(number, singular, plural)¶ - Arguments
number (number) –
singular (Union< string , Element >) –
plural (Union< string , Element >) –
- Return type
Union<
string
,
Element
>
prettify¶
-
@fiftyone/utilities.
prettify
(v)¶ - Arguments
v (Union< string , number , boolean , >) –
- Return type
Union<
string
,
URL
>
removeKeys¶
-
@fiftyone/utilities.
removeKeys
(obj, keys, startsWith)¶ - Arguments
obj (KeyValue < T >) –
keys (Iterable < string >) –
startsWith (boolean) –
- Return type
plugins.fiftyone.utilities.KeyValue()
<
plugins.fiftyone.utilities.T()
>
resolveAncestors¶
-
@fiftyone/utilities.
resolveAncestors
(path)¶ - Arguments
path (string) –
- Return type
Array<
string
>
resolveParent¶
-
@fiftyone/utilities.
resolveParent
(path)¶ - Arguments
path (string) –
- Return type
string
rgbToHexCached¶
-
@fiftyone/utilities.
rgbToHexCached
(color)¶ - Arguments
color (RGB) –
- Return type
any
sendEvent¶
-
@fiftyone/utilities.
sendEvent
(data)¶ - Arguments
data (Any) –
- Return type
Promise < unknown >
<
unknown
>
setFetchFunction¶
-
@fiftyone/utilities.
setFetchFunction
(origin, headers, pathPrefix)¶ - Arguments
origin (string) –
headers (HeadersInit) –
pathPrefix (string) –
- Return type
void
setFetchParameters¶
-
@fiftyone/utilities.
setFetchParameters
(origin, headers, pathPrefix)¶ - Arguments
origin (string) –
headers (HeadersInit) –
pathPrefix (string) –
- Return type
void
sizeBytesEstimate¶
-
@fiftyone/utilities.
sizeBytesEstimate
(object)¶ - Arguments
object (SizeTypes) –
- Return type
number
toCamelCase¶
-
@fiftyone/utilities.
toCamelCase
(obj)¶ - Arguments
obj (O) –
- Return type
plugins.fiftyone.utilities.O()
Types¶
APP_MODE¶
Name |
Type |
Description |
---|---|---|
|
ARRAY_FIELD¶
Name |
Type |
Description |
---|---|---|
|
BOOK_A_DEMO_LINK¶
Name |
Type |
Description |
---|---|---|
|
BOOLEAN_FIELD¶
Name |
Type |
Description |
---|---|---|
|
CLASSIFICATIONS_FIELD¶
Name |
Type |
Description |
---|---|---|
|
CLASSIFICATION_FIELD¶
Name |
Type |
Description |
---|---|---|
|
DATE_FIELD¶
Name |
Type |
Description |
---|---|---|
|
DATE_TIME_FIELD¶
Name |
Type |
Description |
---|---|---|
|
DETECTIONS_FIELD¶
Name |
Type |
Description |
---|---|---|
|
DETECTION_FIELD¶
Name |
Type |
Description |
---|---|---|
|
DETECTION_FILED¶
Name |
Type |
Description |
---|---|---|
|
DICT_FIELD¶
Name |
Type |
Description |
---|---|---|
|
DYNAMIC_EMBEDDED_DOCUMENT_FIELD¶
Name |
Type |
Description |
---|---|---|
|
DYNAMIC_EMBEDDED_DOCUMENT_PATH¶
Name |
Type |
Description |
---|---|---|
|
EMBEDDED_DOCUMENT_FIELD¶
Name |
Type |
Description |
---|---|---|
|
FLOAT_FIELD¶
Name |
Type |
Description |
---|---|---|
|
FRAME_NUMBER_FIELD¶
Name |
Type |
Description |
---|---|---|
|
FRAME_SUPPORT_FIELD¶
Name |
Type |
Description |
---|---|---|
|
GEO_LOCATIONS_FIELD¶
Name |
Type |
Description |
---|---|---|
|
GEO_LOCATION_FIELD¶
Name |
Type |
Description |
---|---|---|
|
GROUP¶
Name |
Type |
Description |
---|---|---|
|
HEATMAP_FIELD¶
Name |
Type |
Description |
---|---|---|
|
INT_FIELD¶
Name |
Type |
Description |
---|---|---|
|
IS_APP_MODE_FIFTYONE¶
Name |
Type |
Description |
---|---|---|
|
JUST_FIELD¶
Name |
Type |
Description |
---|---|---|
|
KEYPOINTS_FIELD¶
Name |
Type |
Description |
---|---|---|
|
KEYPOINTS_POINTS_FIELD¶
Name |
Type |
Description |
---|---|---|
|
KEYPOINT_FIELD¶
Name |
Type |
Description |
---|---|---|
|
LIST_FIELD¶
Name |
Type |
Description |
---|---|---|
|
OBJECT_ID_FIELD¶
Name |
Type |
Description |
---|---|---|
|
POLYLINES_FIELD¶
Name |
Type |
Description |
---|---|---|
|
POLYLINE_FIELD¶
Name |
Type |
Description |
---|---|---|
|
REGRESSION_FIELD¶
Name |
Type |
Description |
---|---|---|
|
SEGMENTATION_FIELD¶
Name |
Type |
Description |
---|---|---|
|
STRING_FIELD¶
Name |
Type |
Description |
---|---|---|
|
TEMPORAL_DETECTIONS_FIELD¶
Name |
Type |
Description |
---|---|---|
|
TEMPORAL_DETECTION_FIELD¶
Name |
Type |
Description |
---|---|---|
|
TRY_IN_BROWSER_LINK¶
Name |
Type |
Description |
---|---|---|
|
VECTOR_FIELD¶
Name |
Type |
Description |
---|---|---|
|
scrollbarStyles¶
Name |
Type |
Description |
---|---|---|
|
Field¶
-
class
@fiftyone/utilities.
Field
()¶
Properties¶
Name |
Type |
Description |
---|---|---|
dbField |
|
|
description |
|
|
embeddedDocType |
|
|
fields |
|
|
ftype |
|
|
info |
|
|
name |
|
|
path |
|
|
pathWithDbField |
|
|
subfield |
|
GQLError¶
-
class
@fiftyone/utilities.
GQLError
()¶
Properties¶
Name |
Type |
Description |
---|---|---|
extensions |
|
|
message |
|
|
paths |
|
Stage¶
-
class
@fiftyone/utilities.
Stage
()¶
Properties¶
Name |
Type |
Description |
---|---|---|
kwargs |
|
BufferRange¶
Name |
Type |
Description |
---|---|---|
BufferRange |
|
-
class
@fiftyone/utilities.
Buffers
()¶
Primitive¶
Union of number()
, null()
, string()
, undefined()
, Object()
-
class
@fiftyone/utilities.
RGB
()¶
RGB¶
Copyright 2017-2024, Voxel51, Inc.
Name |
Type |
Description |
---|---|---|
RGB |
|
-
class
@fiftyone/utilities.
RGBA
()¶
RGBA¶
Name |
Type |
Description |
---|---|---|
RGBA |
|
Variables¶
AGGS¶
Name |
Type |
Description |
---|---|---|
BOUNDS |
|
|
COUNT |
|
|
COUNT_VALUES |
|
|
DISTINCT |
|
ARRAY_FIELD¶
Name |
Type |
Description |
---|---|---|
|
BIG_ENDIAN¶
Name |
Type |
Description |
---|---|---|
|
BOOLEAN_FIELD¶
Name |
Type |
Description |
---|---|---|
|
BUILT_IN_PANEL_PRIORITY_CONST¶
Name |
Type |
Description |
---|---|---|
|
CLASSIFICATION¶
Name |
Type |
Description |
---|---|---|
|
CLASSIFICATIONS¶
Name |
Type |
Description |
---|---|---|
|
CLASSIFICATIONS_FIELD¶
Name |
Type |
Description |
---|---|---|
|
CLASSIFICATION_DISABLED_SUB_PATHS¶
CLASSIFICATION_FIELD¶
Name |
Type |
Description |
---|---|---|
|
CLIPS_FRAME_FIELDS¶
CLIPS_SAMPLE_FIELDS¶
DATE_FIELD¶
Name |
Type |
Description |
---|---|---|
|
DATE_TIME_FIELD¶
Name |
Type |
Description |
---|---|---|
|
DENSE_LABELS¶
Name |
Type |
Description |
---|---|---|
Set < string > |
|
DETECTION¶
Name |
Type |
Description |
---|---|---|
|
DETECTIONS¶
Name |
Type |
Description |
---|---|---|
|
DETECTIONS_FIELD¶
Name |
Type |
Description |
---|---|---|
|
DETECTION_DISABLED_SUB_PATHS¶
DETECTION_FIELD¶
Name |
Type |
Description |
---|---|---|
|
DETECTION_FILED¶
Name |
Type |
Description |
---|---|---|
|
DICT_FIELD¶
Name |
Type |
Description |
---|---|---|
|
DISABLED_LABEL_FIELDS_VISIBILITY¶
DISABLED_PATHS¶
DYNAMIC_EMBEDDED_DOCUMENT¶
Name |
Type |
Description |
---|---|---|
|
DYNAMIC_EMBEDDED_DOCUMENT_FIELD¶
Name |
Type |
Description |
---|---|---|
|
DYNAMIC_EMBEDDED_DOCUMENT_PATH¶
Name |
Type |
Description |
---|---|---|
|
DYNAMIC_GROUP_FIELDS¶
EMBEDDED_DOCUMENT¶
Name |
Type |
Description |
---|---|---|
|
EMBEDDED_DOCUMENT_FIELD¶
Name |
Type |
Description |
---|---|---|
|
FLOAT_FIELD¶
Name |
Type |
Description |
---|---|---|
|
FRAME_NUMBER_FIELD¶
Name |
Type |
Description |
---|---|---|
|
FRAME_SUPPORT_FIELD¶
Name |
Type |
Description |
---|---|---|
|
GEOLOCATION¶
Name |
Type |
Description |
---|---|---|
|
GEOLOCATIONS¶
Name |
Type |
Description |
---|---|---|
|
GEOLOCATIONS_DISABLED_SUB_PATHS¶
GEOLOCATION_DISABLED_SUB_PATHS¶
GEO_LOCATIONS_FIELD¶
Name |
Type |
Description |
---|---|---|
|
GEO_LOCATION_FIELD¶
Name |
Type |
Description |
---|---|---|
|
GROUP¶
Name |
Type |
Description |
---|---|---|
|
HEATMAP¶
Name |
Type |
Description |
---|---|---|
|
HEATMAP_DISABLED_SUB_PATHS¶
HEATMAP_FIELD¶
Name |
Type |
Description |
---|---|---|
|
INT_FIELD¶
Name |
Type |
Description |
---|---|---|
|
JUST_FIELD¶
Name |
Type |
Description |
---|---|---|
|
KEYPOINT¶
Name |
Type |
Description |
---|---|---|
|
KEYPOINTS¶
Name |
Type |
Description |
---|---|---|
|
KEYPOINTS_FIELD¶
Name |
Type |
Description |
---|---|---|
|
KEYPOINTS_POINTS_FIELD¶
Name |
Type |
Description |
---|---|---|
|
KEYPOINT_DISABLED_SUB_PATHS¶
KEYPOINT_FIELD¶
Name |
Type |
Description |
---|---|---|
|
LABELS¶
LABELS_MAP¶
Name |
Type |
Description |
---|---|---|
Classification |
|
|
Classifications |
|
|
Detection |
|
|
Detections |
|
|
GeoLocation |
|
|
GeoLocations |
|
|
Heatmap |
|
|
Keypoint |
|
|
Keypoints |
|
|
Polyline |
|
|
Polylines |
|
|
Regression |
|
|
Segmentation |
|
|
TemporalDetection |
|
|
TemporalDetections |
|
LABELS_PATH¶
Name |
Type |
Description |
---|---|---|
|
LABEL_DOC_TYPES¶
LABEL_LIST¶
Name |
Type |
Description |
---|---|---|
Classifications |
|
|
Detections |
|
|
Keypoints |
|
|
Polylines |
|
|
TemporalDetections |
|
LABEL_LISTS¶
LABEL_LISTS_MAP¶
Name |
Type |
Description |
---|---|---|
Classifications |
|
|
Detections |
|
|
Keypoints |
|
|
Polylines |
|
|
TemporalDetections |
|
LABEL_LIST_PATH¶
LIST_FIELD¶
Name |
Type |
Description |
---|---|---|
|
MASK_LABELS¶
Name |
Type |
Description |
---|---|---|
Set < string > |
|
NONFINITES¶
Name |
Type |
Description |
---|---|---|
Set < string > |
|
NOT_VISIBLE_LIST¶
OBJECT_ID_FIELD¶
Name |
Type |
Description |
---|---|---|
|
PATCHES_FIELDS¶
POLYLINE¶
Name |
Type |
Description |
---|---|---|
|
POLYLINES¶
Name |
Type |
Description |
---|---|---|
|
POLYLINES_FIELD¶
Name |
Type |
Description |
---|---|---|
|
POLYLINE_DISABLED_SUB_PATHS¶
POLYLINE_FIELD¶
Name |
Type |
Description |
---|---|---|
|
REGRESSION¶
Name |
Type |
Description |
---|---|---|
|
REGRESSION_DISABLED_SUB_PATHS¶
REGRESSION_FIELD¶
Name |
Type |
Description |
---|---|---|
|
RESERVED_FIELD_KEYS¶
SEGMENTATION¶
Name |
Type |
Description |
---|---|---|
|
SEGMENTATION_DISABLED_SUB_PATHS¶
SEGMENTATION_FIELD¶
Name |
Type |
Description |
---|---|---|
|
SKIP_FIELD_TYPES¶
STRING_FIELD¶
Name |
Type |
Description |
---|---|---|
|
TEMPORAL_DETECTION¶
Name |
Type |
Description |
---|---|---|
|
TEMPORAL_DETECTIONS¶
Name |
Type |
Description |
---|---|---|
|
TEMPORAL_DETECTIONS_FIELD¶
Name |
Type |
Description |
---|---|---|
|
TEMPORAL_DETECTION_DISABLED_SUB_PATHS¶
TEMPORAL_DETECTION_FIELD¶
Name |
Type |
Description |
---|---|---|
|
UNSUPPORTED_FILTER_TYPES¶
VALID_CLASS_TYPES¶
VALID_DISTRIBUTION_TYPES¶
VALID_KEYPOINTS¶
VALID_LABEL_TYPES¶
VALID_LIST_FIELDS¶
VALID_LIST_LABEL_FIELDS¶
VALID_LIST_TYPES¶
VALID_MASK_TYPES¶
VALID_NON_LIST_LABEL_TYPES¶
VALID_NUMERIC_TYPES¶
VALID_OBJECT_TYPES¶
VALID_PRIMITIVE_TYPES¶
VECTOR_FIELD¶
Name |
Type |
Description |
---|---|---|
|