xxxxxxxxxx
from encord.client import EncordClient
from encord.library import EncordOperations
# Initialise client
client = EncordClient.initialise()
# Fetch label row
lr = client.get_label_row('sample_uid')
# Delete all labels with <80% confidence
lr = EncordOperations.filter_labels(
lr,
conf_thresh=0.8,
method=EncordOperations.DELETE,
operator=EncordOperations.LESS_THAN,
)
# Save label row
client.save_label_row('sample_uid', lr)
Our APIs & SDK allow for easy building of workflow scripts to converge quickly into successful data strategies. Set up complex pipelines and integrations within minutes.