Tsukikage is a program that reads the JSON output produced by OwOCR, which contains OCRed text and their coordinates, and sends the preferred output when the user hovers over the corresponding regions. See Tsukikage.ini for all available settings and output types.
Download from the releases page.
- .NET Desktop Runtime 10.0 or later
1. Install and configure OwOCR
To use Tsukikage, you first need to install OwOCR.
-
read_from
Selectscreencapture.
Other options may work if the image's top-left position is atx = 0, y = 0, but using anything other thanscreencaptureis not recommended. -
write_to
If you intend to use Tsukikage with JL, set this towebsocket. -
websocket_port
Make sure the port number matches the port used in Tsukikage'sOcrJsonInputWebSocketAddresssetting.
Both use port7331by default. -
output_format
Set this tojson. -
engines
Only enable OCR engine(s) you actually use.
This greatly affects OwOCR's startup time.
I personally only haveChrome Screen AIandOneOCRenabled. -
screen_capture_area
If you use Magpie, selectwindow. Don't forget to enter the window name of the window.
If you don't use Magpie, Tsukikage should work with all options, butwindowis still strongly recommended for efficiency and accuracy reasons. -
screen_capture_delay_seconds
If OwOCR's CPU usage is too high, try increasing this value.
A higher value reduces CPU usage but increases the delay before Tsukikage receives updated text, which hurts interactivity.- For
Chrome Screen AIsetting it to 0 works well for me, but YMMV. - For
OneOCR, a value between1.5and3seconds works well for me, but YMMV. - If you need a very large value to keep CPU usage reasonable, consider disabling automatic capture by setting this to
-1and instead using thescreen_capture_combohotkey to trigger OCR manually.
- For
-
join_lines
Enable this option. -
join_paragraphs
Disable this option. -
paragraph_separator
Setting this to\n\nis recommended. -
reorder_text
Enabling this is recommended.
Note: You must start OwOCR after the window you want to OCR is already open.
2. Install and configure JL
If you intend to use Tsukikage with JL, you must also install JL.
JL v4.0.0+ includes predefined Profiles. Selecting the Tsukikage profile will currently configure the following settings automatically:
-
Enable Tsukikage WebSocket text capture
Enabled. -
Auto reconnect to Tsukikage WebSocket
Enabled. -
Tsukikage WebSocket server address
Set tows://127.0.0.1:8768.
This must match Tsukikage'sOutputWebSocketAddresssetting.
If you need to use a different port, make sure to keep both settings in sync. -
Hide popups on text change
Disabled. -
Don't capture identical text from Clipboard/WebSocket
Enabled. (Optional) -
Enable clipboard text capture
Disabled. (Optional) -
Hide all buttons when mouse is not over the title bar
Enabled. (Optional) -
Text only visible on hover
Enabled. (Optional) -
Change opacity on unhover
Enabled. (Optional) -
Don't auto look up the first term on text change if Main Window is not minimized
Disabled. (Optional)
It is still recommended to minimize JL's main window, as you won't need to interact with it while using Tsukikage.
-
Lookup requires Lookup Key press
This can be enabled if you want to require a key press to avoid accidental lookups of in-game text. -
Enable mining mode
Even though it may not be obvious, you can still use the"Enable mining mode" buttonto enable mining mode.
Alternatively, you can use theMining modehotkey, or theAutomatically enable mining modeandMining mode activation delay (in milliseconds)settings to enable mining mode. -
Popup settings for vertical text received from Tsukikage
The following settings behave the same as their non-vertical counterparts, but only apply to vertical text received from Tsukikage:X Offset (Vertical Text)Y Offset (Vertical Text)Popup position relative to cursor (Vertical Text)Flip (Vertical Text)
All Tsukikage settings and their explanations can be found in the Tsukikage.ini file.
-
OcrJsonInputWebSocketAddress
Must use the same port as OwOCR'swebsocket_port.
Both default to7331. -
TextHookerWebSocketAddress
WebSocket address of a text hooker.
Text received from this address is used to correct OCR mistakes when possible.
Leave this empty or commented out if you cannot hook the source of the OCRed image. -
OutputType
If you intend to use Tsukikage with JL, set this to eitherGraphemeInfoorTextStartingFromPosition.GraphemeInfois recommended, as it provides metadata that allows JL to:- Correctly detect text orientation
- Apply JL's vertical-text popup settings (
X Offset (Vertical Text),Y Offset (Vertical Text),Popup position (Vertical Text),Flip (Vertical Text)) when the text is vertical - Keep more accurate statistics when possible
-
OutputIpcMethod
If you intend to use Tsukikage with JL, set this toWebSocket. -
OutputWebSocketAddress
Must match JL's Tsukikage WebSocket server address.
If you need to use a different port, make sure to keep both settings in sync.
Licensed under the GPL-2.0 only