Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ public partial interface IRoboflowClient
/// type (str): The type of video data provided, one of 'url' or 'base64'.<br/>
/// value (Optional[Any]): Video data corresponding to the video type.
/// </param>
/// <param name="confidence">
/// Candidate threshold before merging. "best" uses model-eval thresholds, "default" or absent uses the model built-in, or pass a float.
/// </param>
/// <param name="includeCandidates">
/// Return unmerged scored candidates for threshold evaluation<br/>
/// Default Value: false
/// </param>
/// <param name="classFilter">
/// The subset of a fine-tuned model's classes to report. A zero-shot model answers in its own words and ignores this.
/// </param>
Expand All @@ -92,6 +99,8 @@ public partial interface IRoboflowClient
string? sourceInfo = default,
string? streamPipelineContextId = default,
bool? disableModelMonitoring = default,
global::Roboflow.AnyOf<double?, global::Roboflow.ActionRecognitionInferenceRequestConfidence?>? confidence = default,
bool? includeCandidates = default,
global::System.Collections.Generic.IList<string>? classFilter = default,
global::Roboflow.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ public partial interface IRoboflowClient
/// <param name="classFilter">
/// Action recognition only: comma separated classes. The subset of a fine-tuned model's classes to report. A zero-shot model answers in its own words and ignores it.
/// </param>
/// <param name="includeCandidates">
/// Action recognition: return raw scored candidates<br/>
/// Default Value: false
/// </param>
/// <param name="labels">
/// If true, labels will be include in any inference visualization.<br/>
/// Default Value: false
Expand All @@ -52,6 +56,10 @@ public partial interface IRoboflowClient
/// One of 'accurate' or 'fast'. If 'accurate' the mask will be decoded using the original image size. If 'fast' the mask will be decoded using the original mask size. 'accurate' is slower but more accurate.<br/>
/// Default Value: accurate
/// </param>
/// <param name="allowReducedMaskResolution">
/// Opt into mask_decode_mode and tradeoff_factor on inference_models. Otherwise masks stay at image resolution. Legacy backend decoding is unchanged.<br/>
/// Default Value: false
/// </param>
/// <param name="tradeoffFactor">
/// The amount to tradeoff between 0='fast' and 1='accurate'<br/>
/// Default Value: 0F
Expand Down Expand Up @@ -92,7 +100,7 @@ public partial interface IRoboflowClient
/// Parameter to be used when Active Learning data registration should happen against different dataset than the one pointed by model_id
/// </param>
/// <param name="includeAnomalyMap">
/// Anomaly detection only: include the raw anomaly heatmap in original image coordinates<br/>
/// Anomaly detection only: include the raw anomaly heatmap at the network input resolution<br/>
/// Default Value: false
/// </param>
/// <param name="source">
Expand All @@ -119,8 +127,10 @@ public partial interface IRoboflowClient
string? image = default,
string? imageType = default,
string? classFilter = default,
bool? includeCandidates = default,
bool? labels = default,
string? maskDecodeMode = default,
bool? allowReducedMaskResolution = default,
double? tradeoffFactor = default,
int? maxDetections = default,
double? overlap = default,
Expand Down Expand Up @@ -177,6 +187,10 @@ public partial interface IRoboflowClient
/// <param name="classFilter">
/// Action recognition only: comma separated classes. The subset of a fine-tuned model's classes to report. A zero-shot model answers in its own words and ignores it.
/// </param>
/// <param name="includeCandidates">
/// Action recognition: return raw scored candidates<br/>
/// Default Value: false
/// </param>
/// <param name="labels">
/// If true, labels will be include in any inference visualization.<br/>
/// Default Value: false
Expand All @@ -185,6 +199,10 @@ public partial interface IRoboflowClient
/// One of 'accurate' or 'fast'. If 'accurate' the mask will be decoded using the original image size. If 'fast' the mask will be decoded using the original mask size. 'accurate' is slower but more accurate.<br/>
/// Default Value: accurate
/// </param>
/// <param name="allowReducedMaskResolution">
/// Opt into mask_decode_mode and tradeoff_factor on inference_models. Otherwise masks stay at image resolution. Legacy backend decoding is unchanged.<br/>
/// Default Value: false
/// </param>
/// <param name="tradeoffFactor">
/// The amount to tradeoff between 0='fast' and 1='accurate'<br/>
/// Default Value: 0F
Expand Down Expand Up @@ -225,7 +243,7 @@ public partial interface IRoboflowClient
/// Parameter to be used when Active Learning data registration should happen against different dataset than the one pointed by model_id
/// </param>
/// <param name="includeAnomalyMap">
/// Anomaly detection only: include the raw anomaly heatmap in original image coordinates<br/>
/// Anomaly detection only: include the raw anomaly heatmap at the network input resolution<br/>
/// Default Value: false
/// </param>
/// <param name="source">
Expand All @@ -252,8 +270,10 @@ public partial interface IRoboflowClient
string? image = default,
string? imageType = default,
string? classFilter = default,
bool? includeCandidates = default,
bool? labels = default,
string? maskDecodeMode = default,
bool? allowReducedMaskResolution = default,
double? tradeoffFactor = default,
int? maxDetections = default,
double? overlap = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ public partial interface IRoboflowClient
/// <param name="classFilter">
/// Action recognition only: comma separated classes. The subset of a fine-tuned model's classes to report. A zero-shot model answers in its own words and ignores it.
/// </param>
/// <param name="includeCandidates">
/// Action recognition: return raw scored candidates<br/>
/// Default Value: false
/// </param>
/// <param name="labels">
/// If true, labels will be include in any inference visualization.<br/>
/// Default Value: false
Expand All @@ -52,6 +56,10 @@ public partial interface IRoboflowClient
/// One of 'accurate' or 'fast'. If 'accurate' the mask will be decoded using the original image size. If 'fast' the mask will be decoded using the original mask size. 'accurate' is slower but more accurate.<br/>
/// Default Value: accurate
/// </param>
/// <param name="allowReducedMaskResolution">
/// Opt into mask_decode_mode and tradeoff_factor on inference_models. Otherwise masks stay at image resolution. Legacy backend decoding is unchanged.<br/>
/// Default Value: false
/// </param>
/// <param name="tradeoffFactor">
/// The amount to tradeoff between 0='fast' and 1='accurate'<br/>
/// Default Value: 0F
Expand Down Expand Up @@ -92,7 +100,7 @@ public partial interface IRoboflowClient
/// Parameter to be used when Active Learning data registration should happen against different dataset than the one pointed by model_id
/// </param>
/// <param name="includeAnomalyMap">
/// Anomaly detection only: include the raw anomaly heatmap in original image coordinates<br/>
/// Anomaly detection only: include the raw anomaly heatmap at the network input resolution<br/>
/// Default Value: false
/// </param>
/// <param name="source">
Expand All @@ -119,8 +127,10 @@ public partial interface IRoboflowClient
string? image = default,
string? imageType = default,
string? classFilter = default,
bool? includeCandidates = default,
bool? labels = default,
string? maskDecodeMode = default,
bool? allowReducedMaskResolution = default,
double? tradeoffFactor = default,
int? maxDetections = default,
double? overlap = default,
Expand Down Expand Up @@ -177,6 +187,10 @@ public partial interface IRoboflowClient
/// <param name="classFilter">
/// Action recognition only: comma separated classes. The subset of a fine-tuned model's classes to report. A zero-shot model answers in its own words and ignores it.
/// </param>
/// <param name="includeCandidates">
/// Action recognition: return raw scored candidates<br/>
/// Default Value: false
/// </param>
/// <param name="labels">
/// If true, labels will be include in any inference visualization.<br/>
/// Default Value: false
Expand All @@ -185,6 +199,10 @@ public partial interface IRoboflowClient
/// One of 'accurate' or 'fast'. If 'accurate' the mask will be decoded using the original image size. If 'fast' the mask will be decoded using the original mask size. 'accurate' is slower but more accurate.<br/>
/// Default Value: accurate
/// </param>
/// <param name="allowReducedMaskResolution">
/// Opt into mask_decode_mode and tradeoff_factor on inference_models. Otherwise masks stay at image resolution. Legacy backend decoding is unchanged.<br/>
/// Default Value: false
/// </param>
/// <param name="tradeoffFactor">
/// The amount to tradeoff between 0='fast' and 1='accurate'<br/>
/// Default Value: 0F
Expand Down Expand Up @@ -225,7 +243,7 @@ public partial interface IRoboflowClient
/// Parameter to be used when Active Learning data registration should happen against different dataset than the one pointed by model_id
/// </param>
/// <param name="includeAnomalyMap">
/// Anomaly detection only: include the raw anomaly heatmap in original image coordinates<br/>
/// Anomaly detection only: include the raw anomaly heatmap at the network input resolution<br/>
/// Default Value: false
/// </param>
/// <param name="source">
Expand All @@ -252,8 +270,10 @@ public partial interface IRoboflowClient
string? image = default,
string? imageType = default,
string? classFilter = default,
bool? includeCandidates = default,
bool? labels = default,
string? maskDecodeMode = default,
bool? allowReducedMaskResolution = default,
double? tradeoffFactor = default,
int? maxDetections = default,
double? overlap = default,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace Roboflow.JsonConverters
{
/// <inheritdoc />
public sealed class ActionRecognitionInferenceRequestConfidenceJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Roboflow.ActionRecognitionInferenceRequestConfidence>
{
/// <inheritdoc />
public override global::Roboflow.ActionRecognitionInferenceRequestConfidence Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Roboflow.ActionRecognitionInferenceRequestConfidenceExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Roboflow.ActionRecognitionInferenceRequestConfidence)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Roboflow.ActionRecognitionInferenceRequestConfidence);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Roboflow.ActionRecognitionInferenceRequestConfidence value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::Roboflow.ActionRecognitionInferenceRequestConfidenceExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#nullable enable

namespace Roboflow.JsonConverters
{
/// <inheritdoc />
public sealed class ActionRecognitionInferenceRequestConfidenceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Roboflow.ActionRecognitionInferenceRequestConfidence?>
{
/// <inheritdoc />
public override global::Roboflow.ActionRecognitionInferenceRequestConfidence? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Roboflow.ActionRecognitionInferenceRequestConfidenceExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Roboflow.ActionRecognitionInferenceRequestConfidence)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Roboflow.ActionRecognitionInferenceRequestConfidence?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Roboflow.ActionRecognitionInferenceRequestConfidence? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

if (value == null)
{
writer.WriteNullValue();
}
else
{
writer.WriteStringValue(global::Roboflow.ActionRecognitionInferenceRequestConfidenceExtensions.ToValueString(value.Value));
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace Roboflow.JsonConverters
{
/// <inheritdoc />
public sealed class ActionRecognitionInferenceResponseSpanSemanticsJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Roboflow.ActionRecognitionInferenceResponseSpanSemantics>
{
/// <inheritdoc />
public override global::Roboflow.ActionRecognitionInferenceResponseSpanSemantics Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Roboflow.ActionRecognitionInferenceResponseSpanSemanticsExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Roboflow.ActionRecognitionInferenceResponseSpanSemantics)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Roboflow.ActionRecognitionInferenceResponseSpanSemantics);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Roboflow.ActionRecognitionInferenceResponseSpanSemantics value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::Roboflow.ActionRecognitionInferenceResponseSpanSemanticsExtensions.ToValueString(value));
}
}
}
Loading
Loading