Skip to content

Commit

Permalink
Move the example to jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
thqby committed Dec 21, 2023
1 parent 4b35fad commit 13d8bb5
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions RapidOcr/RapidOcr.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ class RapidOcr {
* @param {String} [config.cls] model file name of cls
* @param {Integer} [config.numThread] The thread number, default: 4
* @param {String} dllpath The path of RapidOcrOnnx.dll
* @example
* param := RapidOcr.OcrParam()
* param.doAngle := false ;, param.maxSideLen := 300
* ocr := RapidOcr({ models: A_ScriptDir '\models' })
* MsgBox ocr.ocr_from_file('1.jpg', param)
*/
__New(config?, dllpath?) {
static init := 0
Expand Down Expand Up @@ -176,12 +181,3 @@ class RapidOcr {
}
}
}

if A_LineFile == A_ScriptFullPath {
param := RapidOcr.OcrParam()
param.doAngle := false
; param.maxSideLen := 300
ocr := RapidOcr({ models: A_ScriptDir '\models' })
t := A_TickCount
MsgBox ocr.ocr_from_file('1.jpg', param) '`n' (A_TickCount - t)
}

0 comments on commit 13d8bb5

Please sign in to comment.