Skip to content

Releases: thqby/opencv_ahk

1.1.6

08 Jun 04:33
Compare
Choose a tag to compare
Construct Mat from a low-level pointer or mat object

1.1.5

28 Apr 15:06
Compare
Choose a tag to compare

Determine the VarRef type.
Fixed bugs.

1.1.4

23 Apr 10:07
Compare
Choose a tag to compare

Fixed duplicate name conflicts, class cv::Moments and func cv::moments.
Add Mat operations, add, subtract, multiply and divide.

1.1.3

17 Apr 13:37
Compare
Choose a tag to compare

Added function createTrackbar(trackbarname, winname, count, callback := 0).
Remove the virtual base classes.

1.1.2

16 Apr 09:26
Compare
Choose a tag to compare

Added TextDraw.putText, non-ascii characters are supported.
Added Vector.__Item

TextDraw(font := '', fontsize := 24, weight := 0, italic := 0, underline := 0).putText(inputoutputarray, string, point, color, bottomLeftOrigin := 0)

add vector classes

15 Apr 02:39
Compare
Choose a tag to compare
1.1.1

add vector classes

opencv4.5.5

12 Apr 11:03
Compare
Choose a tag to compare

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