Skip to content

Commit

Permalink
Changed Name of Project and add new trained file
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewthe13th committed Dec 3, 2021
1 parent ad3c605 commit e9655ea
Show file tree
Hide file tree
Showing 37 changed files with 53 additions and 47 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion GenshinGuide.sln → InventoryKamera.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30611.23
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GenshinGuide", "GenshinGuide\GenshinGuide.csproj", "{7B7F907E-11F4-4000-B711-8E532A36F8A9}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InventoryKamera", "InventoryKamera\InventoryKamera.csproj", "{7B7F907E-11F4-4000-B711-8E532A36F8A9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public static void ScanArtifactImage(int id)
artifactImages.Add(artifactLocked); //6

// Send Image to Worker Queue
GenshinData.workerQueue.Enqueue(new OCRImage(artifactImages, "artifact", id));
InventoryKamera.workerQueue.Enqueue(new OCRImage(artifactImages, "artifact", id));
g.Dispose();
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions GenshinGuide/Form1.cs → InventoryKamera/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public partial class Form1 : Form
{
//private KeyHandler ghk;
static Thread mainThread;
static GenshinData data = new GenshinData();
static InventoryKamera data = new InventoryKamera();
static public KeyboardHook hook = new KeyboardHook();
static string filePath = "";
static int delayLevel = 0;
Expand Down Expand Up @@ -137,7 +137,7 @@ private void hook_KeyPressed(object sender, KeyPressedEventArgs e)
data.StopImageProcessorWorker();
UserInterface.SetProgramStatus("Scan Stopped",true);
// Reset data
data = new GenshinData();
data = new InventoryKamera();
Navigation.Reset();
// Un register ENTER key
//hook.Dispose();
Expand All @@ -152,7 +152,7 @@ private void ResetUI()
{
UserInterface.SetProgramStatus("Finished");
// Reset data
data = new GenshinData();
data = new InventoryKamera();
Navigation.Reset();
// Un register ENTER key
hook.Dispose();
Expand Down Expand Up @@ -269,7 +269,7 @@ private void button1_Click(object sender, EventArgs e)
}
else
{
data = new GenshinData();
data = new InventoryKamera();
UserInterface.AddError("Game Window not set to 1280 x 720 Windowed");
Navigation.Reset();
// Un register ENTER key
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion GenshinGuide/GOOD.cs → InventoryKamera/GOOD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public GOOD()
weapons = new List<IWeapon>();
}

public GOOD(GenshinData genshinData)
public GOOD(InventoryKamera genshinData)
{
format = "GOOD";
version = 1;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace GenshinGuide
{
public class GenshinData
public class InventoryKamera
{
[JsonProperty]
private static List<Character> characters = new List<Character>();
Expand All @@ -23,7 +23,7 @@ public class GenshinData
private static volatile bool b_threadCancel = false;
// TODO add language option

public GenshinData()
public InventoryKamera()
{
characters = new List<Character>();
inventory = new Inventory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{7B7F907E-11F4-4000-B711-8E532A36F8A9}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>GenshinGuide</RootNamespace>
<AssemblyName>GenshinGuide</AssemblyName>
<RootNamespace>InventoryKamera</RootNamespace>
<AssemblyName>InventoryKamera</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
Expand Down Expand Up @@ -120,7 +120,7 @@
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="GenshinData.cs" />
<Compile Include="InventoryKamera.cs" />
<Compile Include="OCRImage.cs" />
<Compile Include="Inventory.cs" />
<Compile Include="KeyboardHook.cs" />
Expand All @@ -145,6 +145,7 @@
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.manifest" />
<None Include="packages.config" />
Expand All @@ -157,7 +158,9 @@
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<None Include="tessdata\genshin_best_eng.traineddata" />
<None Include="tessdata\genshin_best_eng.traineddata">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="tessdata\genshin_fast_09_04_21.traineddata">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[assembly: AssemblyDescription("A OCR scanner for Genshin Impact")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Andrew De La Fuente")]
[assembly: AssemblyProduct("GenshinGuide")]
[assembly: AssemblyProduct("InventoryKamera")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion GenshinGuide/Scraper.cs → InventoryKamera/Scraper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,7 @@ public static string FindElement(string name)
return element;
}

public static void CreateJsonFile(GenshinData data)
public static void CreateJsonFile(InventoryKamera data)
{
// write to JSON file
string JSONresult = JsonConvert.SerializeObject(data);
Expand Down
2 changes: 1 addition & 1 deletion GenshinGuide/Seelie.cs → InventoryKamera/Seelie.cs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ public Seelie()
inventory = new List<SeelieItem>();
}

public Seelie(GenshinData genshinData)
public Seelie(InventoryKamera genshinData)
{
inventory = new List<SeelieItem>();

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public static void ScanWeaponImage(int id)
weaponImages.Add(weaponEquippedCharacter);

// Send Image to Worker Queue
GenshinData.workerQueue.Enqueue(new OCRImage(weaponImages,"weapon",id));
InventoryKamera.workerQueue.Enqueue(new OCRImage(weaponImages,"weapon",id));
g.Dispose();
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e9655ea

Please sign in to comment.