generated from vvvv/VL.NewLibrary.Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
1,521 additions
and
738 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,63 @@ | ||
using System.Text.Json; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace MediaPipe.FaceDetectorResults | ||
{ | ||
public class faceDetectorRoot | ||
{ | ||
public Facedetectorresults faceDetectorResults { get; init; } | ||
public Resolution resolution { get; } | ||
} | ||
|
||
public class Facedetectorresults | ||
{ | ||
[JsonPropertyName("detections")] | ||
public FaceDescription[] Faces { get; init; } | ||
} | ||
|
||
public class FaceDescription | ||
{ | ||
[JsonPropertyName("categories")] | ||
public Category[] Categories { get; init; } | ||
[JsonPropertyName("keypoints")] | ||
public Keypoint[] Keypoints { get; init; } | ||
|
||
//with .NET8 we'll be able to set the below to private and then jsoninclude | ||
//[JsonInclude] | ||
public Boundingbox boundingBox { private get; init; } | ||
|
||
public Rectangle BoundingRect { get { return new Rectangle(boundingBox.originX, boundingBox.originY, boundingBox.width, boundingBox.height); } } | ||
} | ||
|
||
public class Boundingbox | ||
{ | ||
public int originX { get; set; } | ||
public int originY { get; set; } | ||
public int width { get; set; } | ||
public int height { get; set; } | ||
public int angle { get; set; } | ||
} | ||
|
||
public class Category | ||
{ | ||
public float Score { get; set; } | ||
public int Index { get; set; } | ||
public string CategoryName { get; set; } | ||
public string DisplayName { get; set; } | ||
} | ||
|
||
public class Keypoint | ||
{ | ||
public float x { private get; init; } | ||
public float y { private get; init; } | ||
public Vector2 Position { get { return new Vector2(x, y); } } | ||
public int Score { get; set; } | ||
public string Label { get; set; } | ||
} | ||
|
||
public class Resolution | ||
{ | ||
public int Width { get; set; } | ||
public int Height { get; set; } | ||
} | ||
} |
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,54 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace MediaPipe.FaceLandmarkResults | ||
{ | ||
public class FaceLandmarkRoot | ||
{ | ||
public Facelandmarkresults FaceLandmarkResults { get; set; } | ||
public Resolution Resolution { get; set; } | ||
} | ||
|
||
public class Facelandmarkresults | ||
{ | ||
public Facelandmark[][] FaceLandmarks { get; set; } | ||
public Faceblendshape[] FaceBlendshapes { get; set; } | ||
public Facialtransformationmatrix[] FacialTransformationMatrixes { get; set; } | ||
} | ||
|
||
public class Facelandmark | ||
{ | ||
public float x { private get; init; } | ||
public float y { private get; init; } | ||
public float z { private get; init; } | ||
|
||
public Vector3 Position { get { return new Vector3(x, y, z); } } | ||
} | ||
|
||
public class Faceblendshape | ||
{ | ||
public Category[] Categories { get; set; } | ||
public int HeadIndex { get; set; } | ||
public string HeadName { get; set; } | ||
} | ||
|
||
public class Category | ||
{ | ||
public int Index { get; set; } | ||
public float Score { get; set; } | ||
public string CategoryName { get; set; } | ||
public string DisplayName { get; set; } | ||
} | ||
|
||
public class Facialtransformationmatrix | ||
{ | ||
public int Rows { get; set; } | ||
public int Columns { get; set; } | ||
public float[] Data { get; set; } | ||
} | ||
|
||
public class Resolution | ||
{ | ||
public int Width { get; set; } | ||
public int Height { get; set; } | ||
} | ||
} |
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,61 @@ | ||
namespace MediaPipe.GestureResults | ||
{ | ||
public class Rootobject | ||
{ | ||
public Gestureresults gestureResults { get; set; } | ||
public Resolution resolution { get; set; } | ||
} | ||
|
||
public class Gestureresults | ||
{ | ||
public Gesture[][] gestures { get; set; } | ||
public Landmark[][] landmarks { get; set; } | ||
public Worldlandmark[][] worldLandmarks { get; set; } | ||
public Handedness[][] handedness { get; set; } | ||
public Handedness1[][] handednesses { get; set; } | ||
} | ||
|
||
public class Gesture | ||
{ | ||
public float score { get; set; } | ||
public int index { get; set; } | ||
public string categoryName { get; set; } | ||
public string displayName { get; set; } | ||
} | ||
|
||
public class Landmark | ||
{ | ||
public float x { get; set; } | ||
public float y { get; set; } | ||
public float z { get; set; } | ||
} | ||
|
||
public class Worldlandmark | ||
{ | ||
public float x { get; set; } | ||
public float y { get; set; } | ||
public float z { get; set; } | ||
} | ||
|
||
public class Handedness | ||
{ | ||
public float score { get; set; } | ||
public int index { get; set; } | ||
public string categoryName { get; set; } | ||
public string displayName { get; set; } | ||
} | ||
|
||
public class Handedness1 | ||
{ | ||
public float score { get; set; } | ||
public int index { get; set; } | ||
public string categoryName { get; set; } | ||
public string displayName { get; set; } | ||
} | ||
|
||
public class Resolution | ||
{ | ||
public int width { get; set; } | ||
public int height { get; set; } | ||
} | ||
} |
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,52 @@ | ||
namespace MediaPipe.HandResults | ||
{ | ||
public class Rootobject | ||
{ | ||
public Handresults handResults { get; set; } | ||
public Resolution resolution { get; set; } | ||
} | ||
|
||
public class Handresults | ||
{ | ||
public Landmark[][] landmarks { get; set; } | ||
public Worldlandmark[][] worldLandmarks { get; set; } | ||
public Handedness[][] handednesses { get; set; } | ||
public Handedness1[][] handedness { get; set; } | ||
} | ||
|
||
public class Landmark | ||
{ | ||
public float x { get; set; } | ||
public float y { get; set; } | ||
public float z { get; set; } | ||
} | ||
|
||
public class Worldlandmark | ||
{ | ||
public float x { get; set; } | ||
public float y { get; set; } | ||
public float z { get; set; } | ||
} | ||
|
||
public class Handedness | ||
{ | ||
public float score { get; set; } | ||
public int index { get; set; } | ||
public string categoryName { get; set; } | ||
public string displayName { get; set; } | ||
} | ||
|
||
public class Handedness1 | ||
{ | ||
public float score { get; set; } | ||
public int index { get; set; } | ||
public string categoryName { get; set; } | ||
public string displayName { get; set; } | ||
} | ||
|
||
public class Resolution | ||
{ | ||
public int width { get; set; } | ||
public int height { get; set; } | ||
} | ||
} |
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,27 @@ | ||
namespace VL.MediaPipe.ImageResults | ||
{ | ||
public class Rootobject | ||
{ | ||
public Imageresults imageResults { get; set; } | ||
public Resolution resolution { get; set; } | ||
} | ||
|
||
public class Imageresults | ||
{ | ||
public Classification[] classifications { get; set; } | ||
public int timestampMs { get; set; } | ||
} | ||
|
||
public class Classification | ||
{ | ||
public object[] categories { get; set; } | ||
public int headIndex { get; set; } | ||
public string headName { get; set; } | ||
} | ||
|
||
public class Resolution | ||
{ | ||
public int width { get; set; } | ||
public int height { get; set; } | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
namespace MediaPipe; | ||
|
||
public enum PoseModels { Lite, Full, Heavy }; | ||
public enum PoseModels { Lite, Full, Heavy }; | ||
public enum SegmentationModels { selfieSquare, selfieLandscape, hairSegmenter, selfieMulticlass, deepLabV3 }; |
Oops, something went wrong.