Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Data Collection Example

Authors
Affiliations
The Eric and Wendy Schmidt Center for Data Science & Environment
University of California, Berkeley
The Eric and Wendy Schmidt Center for Data Science & Environment
University of California, Berkeley
The Eric and Wendy Schmidt Center for Data Science & Environment
University of California, Berkeley

This example uses config/data-collection-example.yaml to launch a data-collection app. Here we have included a number configurations that go beyond the data-collection example in simple-examples.ipynb

  • specified the columns to be shown in the filterable/sortable list

  • added columns to be displayed in the “info card” when a clip is selected

  • changed the text on the “capture” button to “Save Spectrograms” and specifed a default director for the visualizations

  • enabled all 4-types of time annotation (time_select, start/end_time_select, bounding-box, multibox)

  • required speices labeling attacted to time annotations (so each multibox can be labeled independently)

  • additional form types (number-box and checkbox)

Author: Brookie Guzder-Williams (bguzder-williams@berkeley.edu)
Affiliation: The Eric and Wendy Schmidt Center for Data Science & Environment
Website: https://dse.berkeley.edu/
License: BSD 3-Clause

For configuration options and advanced usage see the documentation and the geo-analysis example. See simple-examples.ipynb for minimal configurations of BioacousticAnnotator.

from jupyter_bioacoustic import BioacousticAnnotator

DATA = 'data/annotate-data.csv'
AUDIO = 'https://dse-soundhub.s3.us-west-2.amazonaws.com/public/audio/dev/20230524_200000.flac'
AUDIO = 'audio/test-default.flac'
CATEGORIES = 'data/categories-small.csv'
ba = BioacousticAnnotator(data_path=DATA, audio=AUDIO, config='config/data-collection-example.yaml')
ba.open()