Initial project commit
This commit is contained in:
@@ -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; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
|
||||
}
|
||||
}
|
||||
17
PornocopiaVisionMetadataExtractor/Data/DetectedFace.cs
Normal file
17
PornocopiaVisionMetadataExtractor/Data/DetectedFace.cs
Normal 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; }
|
||||
|
||||
}
|
||||
}
|
||||
23
PornocopiaVisionMetadataExtractor/Data/ForumPost.cs
Normal file
23
PornocopiaVisionMetadataExtractor/Data/ForumPost.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
17
PornocopiaVisionMetadataExtractor/Data/ForumPostImage.cs
Normal file
17
PornocopiaVisionMetadataExtractor/Data/ForumPostImage.cs
Normal 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; }
|
||||
|
||||
}
|
||||
}
|
||||
21
PornocopiaVisionMetadataExtractor/Data/ImageMetadata.cs
Normal file
21
PornocopiaVisionMetadataExtractor/Data/ImageMetadata.cs
Normal 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; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user