Initial project commit

This commit is contained in:
2021-02-15 11:38:37 -08:00
commit 0f1eb41b09
11 changed files with 692 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;
namespace PornocopiaVisionMetadataExtractor.Data
{
public class ComputerVisionResponse
{
[JsonPropertyName("request_id")]
public String RequestID { get; set; }
[JsonPropertyName("metadata")]
public ComputervisionFaceResult[] Results { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;
namespace PornocopiaVisionMetadataExtractor.Data
{
public class ComputervisionFaceResult
{
public DetectedFace Face { get; set; }
public Decimal Age { get; set; }
public Decimal BMI { get; set; }
[JsonPropertyName("gender_woman")]
public Decimal GenderWomanPercentage { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace PornocopiaVisionMetadataExtractor.Data
{
public class DetectedFace
{
public Int32 Top { get; set; }
public Int32 Bottom { get; set; }
public Int32 Left { get; set; }
public Int32 Right { get; set; }
public Int32 Size { get; set; }
public Decimal SizePercentage { get; set; }
}
}

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace PornocopiaVisionMetadataExtractor.Data
{
class ForumPost
{
public ForumPost()
{
Images = new List<ForumPostImage>();
}
public Int32 ForumPostID { get; set; }
public String Title { get; set; }
public String Link { get; set; }
public String Author { get; set; }
public DateTime Timestamp { get; set; }
public Boolean Downloadable { get; set; }
public Int32 Source { get; set; }
public Int32 PostID { get; set; }
public List<ForumPostImage> Images { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace PornocopiaVisionMetadataExtractor.Data
{
class ForumPostImage
{
public Int32 ImageID { get; set; }
public Int32 ForumPostID { get; set; }
public Int32 TorrentPostID { get; set; }
public String ImageName { get; set; }
public String ImageLocation { get; set; }
public Int32 IndexerPostID { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
using Dapper.Contrib.Extensions;
using System;
using System.Collections.Generic;
using System.Text;
namespace PornocopiaVisionMetadataExtractor.Data
{
[Table("porn_imagemetadata")]
class ImageMetadata
{
[Key]
public Int32 MetadataID { get; set; }
[ExplicitKey]
public Int32 ForumPostID { get; set; }
public String Name { get; set; }
public String ValueString { get; set; }
public Int32? ValueInt { get; set; }
public Decimal ValueDecimal { get; set; }
}
}