diff options
author | Stanley Yip <stanley_yip@brown.edu> | 2020-02-01 14:56:40 -0500 |
---|---|---|
committer | Stanley Yip <stanley_yip@brown.edu> | 2020-02-01 14:56:40 -0500 |
commit | 1705ce46b2dec37dee11513bfbde4f0ae15aaf98 (patch) | |
tree | 90fa1ef0a1d3cabeb2fd47fa06a8fd185b0fd228 /src/client/DocServer.ts | |
parent | eb1ce559cefedd3666a57ea00594013fbc3b3692 (diff) | |
parent | 0a5728e57c658188a9cbc881fbceeafed5d99fa7 (diff) |
basic ocr lol
Diffstat (limited to 'src/client/DocServer.ts')
-rw-r--r-- | src/client/DocServer.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/DocServer.ts b/src/client/DocServer.ts index d793b56af..5fcd2547e 100644 --- a/src/client/DocServer.ts +++ b/src/client/DocServer.ts @@ -218,6 +218,10 @@ export namespace DocServer { return apiKey; } + export async function analyzeImage(image: string, callback: (result: any) => void) { + Utils.EmitCallback(_socket, MessageStore.AnalyzeInk, image, callback); + } + export function getYoutubeVideos(videoTitle: string, callBack: (videos: any[]) => void) { Utils.EmitCallback(_socket, MessageStore.YoutubeApiQuery, { type: YoutubeQueryTypes.SearchVideo, userInput: videoTitle }, callBack); } |