Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed project configuration - #10

  • Loading branch information...
commit 289a28b670e523fde4d24993a7c609ca8ef0fdae 1 parent 826d2ab
@charlesw authored
View
23 Tesseract.Net40/Tesseract.Net40.csproj
@@ -12,26 +12,25 @@
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
+ <OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;LittleEndian,Net40</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ <DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
+ <OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE;LittleEndian,Net40</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ <Optimize>true</Optimize>
+ <DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
View
24 Tesseract.Net45/Tesseract.Net45.csproj
@@ -12,25 +12,25 @@
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
+ <OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;LittleEndian,Net45</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ <DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
+ <OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE;LittleEndian,Net45</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
+ <Optimize>true</Optimize>
+ <DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
View
27 Tesseract.Tests.Console/Tesseract.Tests.Console.csproj
@@ -12,24 +12,27 @@
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <PlatformTarget>x86</PlatformTarget>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
+ <OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
+ <DebugType>full</DebugType>
+ <PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
+ <Prefer32Bit>true</Prefer32Bit>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
</PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <PlatformTarget>x86</PlatformTarget>
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
+ <OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
+ <Optimize>true</Optimize>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
+ <Prefer32Bit>true</Prefer32Bit>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
View
48 Tesseract.Tests/AnalyseResultTests.cs
@@ -0,0 +1,48 @@
+using NUnit.Framework;
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Tesseract.Tests
+{
+ [TestFixture]
+ public class AnalyseResultTests
+ {
+ #region Setup\TearDown
+ private TesseractEngine engine;
+
+ [SetUp]
+ public void Init()
+ {
+ engine = new TesseractEngine(@"./tessdata", "eng", EngineMode.Default);
+ }
+
+ [TearDown]
+ public void Dispose()
+ {
+ if (engine != null) {
+ engine.Dispose();
+ }
+ }
+
+ #endregion
+
+ #region Tests
+
+ public void AnalyseBitmap()
+ {
+ using(var img = new Bitmap(@".\phototest.tif")) {
+ using(var page = engine.Process(img)) {
+ using (var pageLayout = page.AnalyseLayout()) {
+
+ }
+ }
+ }
+ }
+
+ #endregion
+ }
+}
View
2  Tesseract.Tests/Tesseract.Tests.csproj
@@ -44,6 +44,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<Prefer32Bit>false</Prefer32Bit>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework">
@@ -61,6 +62,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
+ <Compile Include="AnalyseResultTests.cs" />
<Compile Include="BaseApiTests.cs" />
<Compile Include="EngineTests.cs" />
<Compile Include="Leptonica\BitmapHelperTests.cs" />
View
60 Tesseract.sln
@@ -43,16 +43,16 @@ Global
{07B09DF6-19B0-477A-A8CE-5D7146EEBDFD}.Release|Mixed Platforms.Build.0 = Release|x86
{07B09DF6-19B0-477A-A8CE-5D7146EEBDFD}.Release|x86.ActiveCfg = Release|x86
{07B09DF6-19B0-477A-A8CE-5D7146EEBDFD}.Release|x86.Build.0 = Release|x86
- {1868CAC0-D64C-4092-9108-59D562321056}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1868CAC0-D64C-4092-9108-59D562321056}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1868CAC0-D64C-4092-9108-59D562321056}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {1868CAC0-D64C-4092-9108-59D562321056}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {1868CAC0-D64C-4092-9108-59D562321056}.Debug|x86.ActiveCfg = Debug|Any CPU
- {1868CAC0-D64C-4092-9108-59D562321056}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1868CAC0-D64C-4092-9108-59D562321056}.Release|Any CPU.Build.0 = Release|Any CPU
- {1868CAC0-D64C-4092-9108-59D562321056}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {1868CAC0-D64C-4092-9108-59D562321056}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {1868CAC0-D64C-4092-9108-59D562321056}.Release|x86.ActiveCfg = Release|Any CPU
+ {1868CAC0-D64C-4092-9108-59D562321056}.Debug|Any CPU.ActiveCfg = Debug|x86
+ {1868CAC0-D64C-4092-9108-59D562321056}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {1868CAC0-D64C-4092-9108-59D562321056}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {1868CAC0-D64C-4092-9108-59D562321056}.Debug|x86.ActiveCfg = Debug|x86
+ {1868CAC0-D64C-4092-9108-59D562321056}.Debug|x86.Build.0 = Debug|x86
+ {1868CAC0-D64C-4092-9108-59D562321056}.Release|Any CPU.ActiveCfg = Release|x86
+ {1868CAC0-D64C-4092-9108-59D562321056}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {1868CAC0-D64C-4092-9108-59D562321056}.Release|Mixed Platforms.Build.0 = Release|x86
+ {1868CAC0-D64C-4092-9108-59D562321056}.Release|x86.ActiveCfg = Release|x86
+ {1868CAC0-D64C-4092-9108-59D562321056}.Release|x86.Build.0 = Release|x86
{DA780CA0-2606-4259-91C4-3F38C5C90592}.Debug|Any CPU.ActiveCfg = Debug|x86
{DA780CA0-2606-4259-91C4-3F38C5C90592}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
{DA780CA0-2606-4259-91C4-3F38C5C90592}.Debug|Mixed Platforms.Build.0 = Debug|x86
@@ -63,26 +63,26 @@ Global
{DA780CA0-2606-4259-91C4-3F38C5C90592}.Release|Mixed Platforms.Build.0 = Release|x86
{DA780CA0-2606-4259-91C4-3F38C5C90592}.Release|x86.ActiveCfg = Release|x86
{DA780CA0-2606-4259-91C4-3F38C5C90592}.Release|x86.Build.0 = Release|x86
- {E0784105-00D8-4692-BD2E-0645440D4D09}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E0784105-00D8-4692-BD2E-0645440D4D09}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E0784105-00D8-4692-BD2E-0645440D4D09}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {E0784105-00D8-4692-BD2E-0645440D4D09}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {E0784105-00D8-4692-BD2E-0645440D4D09}.Debug|x86.ActiveCfg = Debug|Any CPU
- {E0784105-00D8-4692-BD2E-0645440D4D09}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {E0784105-00D8-4692-BD2E-0645440D4D09}.Release|Any CPU.Build.0 = Release|Any CPU
- {E0784105-00D8-4692-BD2E-0645440D4D09}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {E0784105-00D8-4692-BD2E-0645440D4D09}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {E0784105-00D8-4692-BD2E-0645440D4D09}.Release|x86.ActiveCfg = Release|Any CPU
- {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Debug|x86.ActiveCfg = Debug|Any CPU
- {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Release|Any CPU.Build.0 = Release|Any CPU
- {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Release|x86.ActiveCfg = Release|Any CPU
+ {E0784105-00D8-4692-BD2E-0645440D4D09}.Debug|Any CPU.ActiveCfg = Debug|x86
+ {E0784105-00D8-4692-BD2E-0645440D4D09}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {E0784105-00D8-4692-BD2E-0645440D4D09}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {E0784105-00D8-4692-BD2E-0645440D4D09}.Debug|x86.ActiveCfg = Debug|x86
+ {E0784105-00D8-4692-BD2E-0645440D4D09}.Debug|x86.Build.0 = Debug|x86
+ {E0784105-00D8-4692-BD2E-0645440D4D09}.Release|Any CPU.ActiveCfg = Release|x86
+ {E0784105-00D8-4692-BD2E-0645440D4D09}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {E0784105-00D8-4692-BD2E-0645440D4D09}.Release|Mixed Platforms.Build.0 = Release|x86
+ {E0784105-00D8-4692-BD2E-0645440D4D09}.Release|x86.ActiveCfg = Release|x86
+ {E0784105-00D8-4692-BD2E-0645440D4D09}.Release|x86.Build.0 = Release|x86
+ {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Debug|Any CPU.ActiveCfg = Debug|x86
+ {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Debug|x86.ActiveCfg = Debug|x86
+ {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Debug|x86.Build.0 = Debug|x86
+ {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Release|Any CPU.ActiveCfg = Release|x86
+ {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Release|Mixed Platforms.Build.0 = Release|x86
+ {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Release|x86.ActiveCfg = Release|x86
+ {4D635942-9F51-45C6-BAB0-23AD2E42C99F}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Please sign in to comment.
Something went wrong with that request. Please try again.