MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / getShortcutCapture

Method getShortcutCapture

src/main/ocr.ts:27–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 }
26
27 getShortcutCapture() {
28 if (!this.shortcutCapture) {
29 const ShortcutCapture = require("shortcut-capture");
30 this.shortcutCapture = new ShortcutCapture();
31 this.shortcutCapture.on("capture", (data: any) =>
32 this.recognize(data["dataURL"])
33 );
34 }
35 return this.shortcutCapture;
36 }
37
38 enabled(): boolean {
39 return !!this.client;

Callers 1

captureMethod · 0.95

Calls 2

recognizeMethod · 0.95
onMethod · 0.80

Tested by

no test coverage detected