Skip to content

Instantly share code, notes, and snippets.

synctam / MainPage.xaml.cs
Created Aug 25, 2020
Windows 10 OCR のテストプログラム。 This program is licensed under the GNU General Public License v3.0.
View MainPage.xaml.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading.Tasks;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.Graphics;
synctam / PsStitcher.cs
Last active Aug 14, 2020
EmguCVを使った背景除去とパノラマ合成のサンプル。 This program is licensed under the GNU General Public License.
View PsStitcher.cs
namespace LibCoreStitcher
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using Emgu.CV;
using Emgu.CV.Stitching;
using Emgu.CV.Structure;
using Emgu.CV.Util;
synctam / GcaTextDetector.cs
Last active Aug 13, 2020
OpenCVで輪郭検出を行いテキスト領域を抽出するサンプル。 This program is released under the MIT license.
View GcaTextDetector.cs
namespace LibTextDetector.TextDetector
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Emgu.CV;
synctam / Tesseratc4.config
Last active Mar 27, 2020
Tesseract 4 ホワイトリスト指定例。
View Tesseratc4.config
tessedit_char_whitelist 1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.,?!#$%&()=-{}[]+*;:"
synctam / Program(Packer).cs
Last active Oct 9, 2018
The Tiny Bang Story pfp file packer/unpacker.
View Program(Packer).cs
/// <summary>
/// The Tiny Bang Story pfp file packer.
/// This software is released under the GPL.
/// Copyright(c) お~るげーむず(仮)
/// 「How to 日本語化(Hard mode) – お~るげーむず(仮)」
/// Ported from AutoIT to C# by synctam.
/// </summary>
namespace TtbsPacker
synctam / PotionOfMinorHealingEX.gamedatabundle
Last active Jun 30, 2018
Pillars of Eternity 2 用サンプルMOD。BaseValue を 40 から 80 に変更。これでポーションの効果が倍なります。
View PotionOfMinorHealingEX.gamedatabundle
"GameDataObjects": [{
"$type": "Game.GameData.StatusEffectGameData, Assembly-CSharp",
"DebugName": "Potion_of_minor_healing_SE_Heal",
"ID": "cd28d424-c999-45e3-885c-b2c1ba34fd30",
"Components": [{
"$type": "Game.GameData.StatusEffectComponent, Assembly-CSharp",
"StatusEffectType": "Health",
"OverrideDescriptionString": -1,
"UseStatusEffectValueAs": "None",
synctam / フォントの座標情報(futura_0.tex)
Last active Jun 3, 2018
Fallout Shelter のフォント座標情報
View フォントの座標情報(futura_0.tex)
resources_00002.-20(14260 bytes)
offset value description
--------- ------------------ -----------------------------------
0000( 4):0x00000000 PPtr(game object) FileID
0004( 8):0x350C0000(3125) PPtr(game object) PathID
000C( 1):0x01(1) Enabled
synctam / フォントの座標情報(Unity)
Last active Sep 26, 2018
View フォントの座標情報(Unity)
offset size description
--------- ---- ---------------------------------
0000:0000 (04) 00000000(0) GameObject.FileID
0000:0004 (08) 00000000(0) GameObject.PathID
0000:0008 (--) 00000000
0000:000C (04) 01000000(1) GameObject.Enabled
0000:0010 (04) 01000000( 1) Script.FileID
0000:0014 (08) 7D070000(1917) Script.PathID
0000:0018 (--) 00000000
View フォントの座標情報のサンプル
<info face="Liberation Sans" size="-40" bold="0" italic="0" charset="" unicode="1" stretchH="100" smooth="1" aa="1" padding="0,0,0,0" spacing="1,1" outline="0"/>
<common lineHeight="45" base="36" scaleW="512" scaleH="512" pages="1" packed="0" alphaChnl="0" redChnl="4" greenChnl="4" blueChnl="4"/>
<page id="0" file="HugeText_0.png" />
<chars count="333">
<char id="32" x="54" y="74" width="1" height="1" xoffset="0" yoffset="36" xadvance="11" page="0" chnl="15" />
<char id="33" x="375" y="285" width="4" height="28" xoffset="4" yoffset="8" xadvance="11" page="0" chnl="15" />
<char id="34" x="75" y="406" width="11" height="9" xoffset="2" yoffset="8" xadvance="14" page="0" chnl="15" />
synctam / Terraria_Death_Text_Pen.spritefont
Last active Jun 10, 2018
This software is released under the MIT License.
View Terraria_Death_Text_Pen.spritefont
<?xml version="1.0" encoding="utf-8"?>
<XnaContent xmlns:Graphics="ReLogic.Content.Pipeline">
<Asset Type="Graphics:DynamicFontDescription">
Modify this string to change the default font that will be imported.