Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Danily07 committed Jun 17, 2023
1 parent e416e3a commit 20e4c91
Show file tree
Hide file tree
Showing 227 changed files with 15,132 additions and 0 deletions.
86 changes: 86 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
[*.cs]

# IDE0058: Expression value is never used
dotnet_diagnostic.IDE0058.severity = none
csharp_indent_labels = one_less_than_current
csharp_using_directive_placement = outside_namespace:silent
csharp_prefer_simple_using_statement = true:suggestion
csharp_prefer_braces = true:silent
csharp_style_namespace_declarations = block_scoped:silent
csharp_style_prefer_method_group_conversion = true:silent
csharp_style_prefer_top_level_statements = true:silent
csharp_style_expression_bodied_methods = false:silent
csharp_style_expression_bodied_constructors = false:silent
csharp_style_expression_bodied_operators = false:silent
csharp_style_expression_bodied_properties = true:silent
csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_accessors = true:silent
csharp_style_expression_bodied_lambdas = true:silent
csharp_style_expression_bodied_local_functions = false:silent

[*.{cs,vb}]
#### Naming styles ####

# Naming rules

dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i

dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case

dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case

# Symbol specifications

dotnet_naming_symbols.interface.applicable_kinds = interface
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.interface.required_modifiers =

dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.types.required_modifiers =

dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.non_field_members.required_modifiers =

# Naming styles

dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case

dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case

dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case
dotnet_style_operator_placement_when_wrapping = beginning_of_line
tab_width = 4
indent_size = 4
end_of_line = crlf
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_auto_properties = true:silent
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
dotnet_style_prefer_conditional_expression_over_return = true:silent
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_compound_assignment = true:suggestion
dotnet_style_prefer_simplified_interpolation = true:suggestion
dotnet_style_namespace_match_folder = true:suggestion
Binary file added Translation.dll
Binary file not shown.
64 changes: 64 additions & 0 deletions Translumo.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32929.385
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Translumo", "src\Translumo\Translumo.csproj", "{01D957E6-7E62-4EBB-910E-04D7EA8877A6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Translumo.Infrastructure", "src\Translumo.Infrastructure\Translumo.Infrastructure.csproj", "{BD488C1C-5B7A-4EC1-9826-4B8973A76348}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C48B1480-5935-4C90-9EDD-E30485AB2124}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Translumo.OCR", "src\Translumo.OCR\Translumo.OCR.csproj", "{1901D1F8-CF7E-44A5-8CF0-35ECF5CEF18E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Translumo.Utils", "src\Translumo.Utils\Translumo.Utils.csproj", "{DBFA83C9-3493-4FFA-8F67-B8751049D246}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Translumo.Translation", "src\Translumo.Translation\Translumo.Translation.csproj", "{EA39FB76-C903-4F72-A8AA-66A69A643AE2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Translumo.Processing", "src\Translumo.Processing\Translumo.Processing.csproj", "{01C146C8-F14C-48E0-BECB-2587392AD1DC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{01D957E6-7E62-4EBB-910E-04D7EA8877A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{01D957E6-7E62-4EBB-910E-04D7EA8877A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{01D957E6-7E62-4EBB-910E-04D7EA8877A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{01D957E6-7E62-4EBB-910E-04D7EA8877A6}.Release|Any CPU.Build.0 = Release|Any CPU
{BD488C1C-5B7A-4EC1-9826-4B8973A76348}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BD488C1C-5B7A-4EC1-9826-4B8973A76348}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BD488C1C-5B7A-4EC1-9826-4B8973A76348}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BD488C1C-5B7A-4EC1-9826-4B8973A76348}.Release|Any CPU.Build.0 = Release|Any CPU
{4103BF92-A4F3-41BA-BE73-11485B90411F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4103BF92-A4F3-41BA-BE73-11485B90411F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4103BF92-A4F3-41BA-BE73-11485B90411F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4103BF92-A4F3-41BA-BE73-11485B90411F}.Release|Any CPU.Build.0 = Release|Any CPU
{1901D1F8-CF7E-44A5-8CF0-35ECF5CEF18E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1901D1F8-CF7E-44A5-8CF0-35ECF5CEF18E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1901D1F8-CF7E-44A5-8CF0-35ECF5CEF18E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1901D1F8-CF7E-44A5-8CF0-35ECF5CEF18E}.Release|Any CPU.Build.0 = Release|Any CPU
{DBFA83C9-3493-4FFA-8F67-B8751049D246}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DBFA83C9-3493-4FFA-8F67-B8751049D246}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DBFA83C9-3493-4FFA-8F67-B8751049D246}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DBFA83C9-3493-4FFA-8F67-B8751049D246}.Release|Any CPU.Build.0 = Release|Any CPU
{EA39FB76-C903-4F72-A8AA-66A69A643AE2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EA39FB76-C903-4F72-A8AA-66A69A643AE2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EA39FB76-C903-4F72-A8AA-66A69A643AE2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EA39FB76-C903-4F72-A8AA-66A69A643AE2}.Release|Any CPU.Build.0 = Release|Any CPU
{01C146C8-F14C-48E0-BECB-2587392AD1DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{01C146C8-F14C-48E0-BECB-2587392AD1DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{01C146C8-F14C-48E0-BECB-2587392AD1DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{01C146C8-F14C-48E0-BECB-2587392AD1DC}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6A02922C-035F-409D-A4B1-49801954F57E}
EndGlobalSection
EndGlobal
20 changes: 20 additions & 0 deletions binaries_extract.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@echo off

setlocal EnableDelayedExpansion


set "targetPaths[0]=%1python\"
set "targetPaths[1]=%1models\easyocr\"
set "targetPaths[2]=%1models\tessdata\"
set "targetPaths[3]=%1models\prediction\"

set "inputBinariesPaths[0]=%~dp0etc\python\Python_38.zip"
set "inputBinariesPaths[1]=%~dp0etc\models\easyocr.zip"
set "inputBinariesPaths[2]=%~dp0etc\models\tesseract.zip"
set "inputBinariesPaths[3]=%~dp0etc\models\prediction.zip"

for %%i in (0,1,2,3) do (
if NOT exist !targetPaths[%%i]! (
powershell Expand-Archive !inputBinariesPaths[%%i]! -DestinationPath !targetPaths[%%i]!
)
)
Binary file added etc/Models/tesseract.zip
Binary file not shown.
Binary file added etc/Python/Python_38.zip
Binary file not shown.
Loading

0 comments on commit 20e4c91

Please sign in to comment.