-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finished Generic recognizer and tests
- refactored classes according to conventions and added various bits of documentation - added support for YAML serialization and deserialization of type tags. This allows us to deserialize arrays/maps with variably typed elements. - added an automatically generated YAML schema for the generic recognizer config - added a full suite of tests for generic recognizer, including the re-use of algorithms in multiple profiles - added a hand crafted audio test fixture that made it easy to write said tests Note: the whistle component and associated test currently fail because @towsey has not completed that algorithm yet.
- Loading branch information
Showing
22 changed files
with
699 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// <copyright file="INamedProfiles.cs" company="QutEcoacoustics"> | ||
// All code in this file and all associated files are the copyright and property of the QUT Ecoacoustics Research Group (formerly MQUTeR, and formerly QUT Bioacoustics Research Group). | ||
// </copyright> | ||
|
||
namespace Acoustics.Shared.ConfigFile | ||
{ | ||
using System.Collections.Generic; | ||
|
||
/// <summary> | ||
/// Allows a <see cref="Config"/> class to have profiles. | ||
/// </summary> | ||
/// <typeparam name="T">The type of each expected profile.</typeparam> | ||
public interface INamedProfiles<T> | ||
{ | ||
/// <summary> | ||
/// Gets a collection of named profiles that allow for | ||
/// variable and configurable algorithms to be used. | ||
/// </summary> | ||
Dictionary<string, T> Profiles { get; } | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// <copyright file="IProfiles.cs" company="QutEcoacoustics"> | ||
// All code in this file and all associated files are the copyright and property of the QUT Ecoacoustics Research Group (formerly MQUTeR, and formerly QUT Bioacoustics Research Group). | ||
// </copyright> | ||
|
||
namespace Acoustics.Shared.ConfigFile | ||
{ | ||
using System.Collections.Generic; | ||
|
||
/// <summary> | ||
/// Allows a <see cref="Config"/> class to have profiles. | ||
/// </summary> | ||
/// <typeparam name="T">The type of each expected profile.</typeparam> | ||
public interface IProfiles<out T> | ||
{ | ||
/// <summary> | ||
/// Gets a collection of unnamed profiles that allow for | ||
/// variable and configurable algorithms to be used. | ||
/// </summary> | ||
IReadOnlyCollection<T> Profiles { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
src/AnalysisConfigFiles/RecognizerConfigFiles/Ecosounds.GenericRecognizers.schema.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
Profiles: | ||
TestAed: !AedParameters | ||
IntensityThreshold: 0 | ||
SmallAreaThreshold: 0 | ||
BandpassMinimum: | ||
BandpassMaximum: | ||
NoiseReductionType: None | ||
BgNoiseThreshold: 0 | ||
ResampleRate: 0 | ||
IncludeHitElementsInOutput: false | ||
ConfigPath: | ||
GenericConfig: | ||
TestOscillation: !OscillationParameters | ||
DctDuration: 1 | ||
DctThreshold: 0.5 | ||
MinOscillationFrequency: 6 | ||
MaxOscillationFrequency: 4 | ||
EventThreshold: 0.29999999999999999 | ||
ComponentName: | ||
SpeciesName: | ||
FrameSize: | ||
FrameStep: | ||
BgNoiseThreshold: | ||
MinHertz: 0 | ||
MaxHertz: 0 | ||
BottomHertzBuffer: 0 | ||
TopHertzBuffer: | ||
MinDuration: 1 | ||
MaxDuration: 10 | ||
DecibelThreshold: 6 | ||
TestBlob: !BlobParameters | ||
ComponentName: | ||
SpeciesName: | ||
FrameSize: | ||
FrameStep: | ||
BgNoiseThreshold: | ||
MinHertz: 800 | ||
MaxHertz: 8000 | ||
BottomHertzBuffer: 0 | ||
TopHertzBuffer: | ||
MinDuration: 1 | ||
MaxDuration: 10 | ||
DecibelThreshold: 6 | ||
TestWhistle: !WhistleParameters | ||
ComponentName: | ||
SpeciesName: | ||
FrameSize: | ||
FrameStep: | ||
BgNoiseThreshold: | ||
MinHertz: 0 | ||
MaxHertz: 0 | ||
BottomHertzBuffer: 0 | ||
TopHertzBuffer: | ||
MinDuration: 1 | ||
MaxDuration: 10 | ||
DecibelThreshold: 6 | ||
HighResolutionIndicesConfig: | ||
EventThreshold: 0.2 | ||
SegmentDuration: 60 | ||
SegmentOverlap: 0 | ||
ResampleRate: 22050 | ||
SaveIntermediateWavFiles: False | ||
SaveIntermediateCsvFiles: false | ||
SaveSonogramImages: False | ||
RequireDateInFilename: false |
Oops, something went wrong.