Class EngineInfoSerializer
Inheritance
object
EngineInfoSerializer
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Assembly: SaigeVision.Core.Inference.dll
Syntax
public class EngineInfoSerializer
Methods
View Source
DeserializeClsEngine(Stream)
Declaration
public (IReadOnlyList<ClassInfo>, EngineMetadata, TrainingOptions, ClsInspectionOptions) DeserializeClsEngine(Stream xmlDataStream)
Parameters
| Type |
Name |
Description |
| Stream |
xmlDataStream |
|
Returns
View Source
DeserializeSegEngine(Stream)
Declaration
public (IReadOnlyList<ClassInfo>, EngineMetadata, SegTrainingOptions, SegInspectionOptions) DeserializeSegEngine(Stream xmlDataStream)
Parameters
| Type |
Name |
Description |
| Stream |
xmlDataStream |
|
Returns
View Source
ReadAugParamsFrom(XElement)
Declaration
protected virtual AugmentationParams ReadAugParamsFrom(XElement root)
Parameters
| Type |
Name |
Description |
| XElement |
root |
|
Returns
View Source
ReadClaasInfos(XDocument)
Declaration
protected virtual IReadOnlyList<ClassInfo> ReadClaasInfos(XDocument document)
Parameters
| Type |
Name |
Description |
| XDocument |
document |
|
Returns
View Source
ReadClsInspectionOptionsFrom(XDocument)
Declaration
protected virtual ClsInspectionOptions ReadClsInspectionOptionsFrom(XDocument document)
Parameters
| Type |
Name |
Description |
| XDocument |
document |
|
Returns
View Source
Declaration
protected virtual EngineMetadata ReadMetadataFrom(XDocument document)
Parameters
| Type |
Name |
Description |
| XDocument |
document |
|
Returns
View Source
ReadNetworkParamsFrom(XElement)
Declaration
protected virtual NetworkParams ReadNetworkParamsFrom(XElement root)
Parameters
| Type |
Name |
Description |
| XElement |
root |
|
Returns
View Source
ReadSegInspectionOptionsFrom(XDocument)
Declaration
protected virtual SegInspectionOptions ReadSegInspectionOptionsFrom(XDocument document)
Parameters
| Type |
Name |
Description |
| XDocument |
document |
|
Returns
View Source
ReadSegTrainingOptions(XDocument)
Declaration
protected virtual SegTrainingOptions ReadSegTrainingOptions(XDocument document)
Parameters
| Type |
Name |
Description |
| XDocument |
document |
|
Returns
View Source
ReadTrainingOptions(XElement)
Declaration
protected virtual TrainingOptions ReadTrainingOptions(XElement element)
Parameters
| Type |
Name |
Description |
| XElement |
element |
|
Returns
View Source
Serialize<T>(T, Stream)
Declaration
public void Serialize<T>(T engine, Stream stream) where T : IInspectionEngine
Parameters
| Type |
Name |
Description |
| T |
engine |
|
| Stream |
stream |
|
Type Parameters
View Source
SerializeClassificationEngine(ClassificationEngine, Stream)
Declaration
protected virtual void SerializeClassificationEngine(ClassificationEngine engine, Stream stream)
Parameters
View Source
SerializeSegmentationEngine(SegmentationEngine, Stream)
Declaration
protected virtual void SerializeSegmentationEngine(SegmentationEngine engine, Stream stream)
Parameters
View Source
ToRange(XElement)
Declaration
protected virtual Range? ToRange(XElement element)
Parameters
| Type |
Name |
Description |
| XElement |
element |
|
Returns
View Source
ToXElementFrom(AugmentationParams)
Declaration
protected virtual XElement ToXElementFrom(AugmentationParams param)
Parameters
Returns
| Type |
Description |
| XElement |
|
View Source
Declaration
protected virtual XElement ToXElementFrom(EngineMetadata metadata)
Parameters
Returns
| Type |
Description |
| XElement |
|
View Source
ToXElementFrom(ClsInspectionOptions)
Declaration
protected virtual XElement ToXElementFrom(ClsInspectionOptions options)
Parameters
Returns
| Type |
Description |
| XElement |
|
View Source
ToXElementFrom(InspectionOptions, string)
Declaration
protected virtual XElement ToXElementFrom(InspectionOptions options, string elementName = null)
Parameters
Returns
| Type |
Description |
| XElement |
|
View Source
ToXElementFrom(SegInspectionOptions)
Declaration
protected virtual XElement ToXElementFrom(SegInspectionOptions options)
Parameters
Returns
| Type |
Description |
| XElement |
|
View Source
ToXElementFrom(NetworkParams)
Declaration
protected virtual XElement ToXElementFrom(NetworkParams param)
Parameters
Returns
| Type |
Description |
| XElement |
|
View Source
ToXElementFrom(SegTrainingOptions)
Declaration
protected virtual XElement ToXElementFrom(SegTrainingOptions options)
Parameters
Returns
| Type |
Description |
| XElement |
|
View Source
ToXElementFrom(TrainingOptions)
Declaration
protected virtual XElement ToXElementFrom(TrainingOptions options)
Parameters
Returns
| Type |
Description |
| XElement |
|
View Source
ToXElementFrom(IEnumerable<ClassInfo>)
Declaration
protected virtual XElement ToXElementFrom(IEnumerable<ClassInfo> classes)
Parameters
| Type |
Name |
Description |
| IEnumerable<ClassInfo> |
classes |
|
Returns
| Type |
Description |
| XElement |
|
View Source
ToXElementFrom(Size, string)
Declaration
protected virtual XElement ToXElementFrom(Size size, string elementName)
Parameters
| Type |
Name |
Description |
| Size |
size |
|
| string |
elementName |
|
Returns
| Type |
Description |
| XElement |
|
View Source
ToXElementFrom(Range?, string)
Declaration
protected virtual XElement ToXElementFrom(Range? param, string elementName)
Parameters
| Type |
Name |
Description |
| Range? |
param |
|
| string |
elementName |
|
Returns
| Type |
Description |
| XElement |
|