Releases: thqby/opencv_ahk
Releases · thqby/opencv_ahk
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
add vector classes
1.1.1 add vector classes
opencv4.5.5
opencv ahk binding. Dependent on opencv_world4.5.5 x64 and ahk_v2h.beta.3-fixed.5
To use in v2L, you need to load the ahk.dll.
#DllLoad opencv_ahk.dll
#DllLoad AutoHotkey64.dll
api := DllCall('autohotkey64.dll\ahkGetApi', 'cdecl ptr')
; api := DllCall(A_AhkPath '\ahkGetApi', 'cdecl ptr')
cv := ObjFromPtr(DllCall('opencv_ahk.dll\opencv_init', 'ptr', api, 'cdecl ptr'))
mat := cv.Mat(300, 300, cv.constants.CV_8UC3, [120,100,200])
loop 40 {
row := A_Index
loop 40
mat[row, A_Index] := [Random(0, 255),Random(0, 255),Random(0, 255),]
}
cv.putText(mat, "ahk", [50, 50], cv.constants.FONT_HERSHEY_COMPLEX, 2, [0, 0, 255], 1, 8, false)
cv.imshow('src', mat)
MsgBox