Search found 77 matches

by kazhafeizhale
16 Jun 2022, 11:07
Forum: Scripts and Functions (v2)
Topic: [FUNC] fuzz match return score
Replies: 0
Views: 458

[FUNC] fuzz match return score

Some fuzz match func Translate from https://github.com/maxbachmann/rapidfuzz-cpp use example ;https://github.com/maxbachmann/rapidfuzz-cpp /* ("rapid_fuzz_cpp_ratio", "rapid_fuzz_cpp_partial_ratio", "rapid_fuzz_cpp_token_ratio", "rapid_fuzz_cpp_partial_token_ratio" "rapid_fuzz_cpp_token_sort_ratio"...
by kazhafeizhale
04 Jun 2022, 23:42
Forum: Scripts and Functions (v2)
Topic: LOG lib
Replies: 0
Views: 461

LOG lib

LOG lib print to console , editor(VSCODE ...), file #include <log> logger.is_out_file := true ;logger.is_use_editor := false logger.level := logger.level_trace logger.debug("debug") logger.trace("trace") s1 := "100" s2 := 100 s3 := "autohotkey" s4 := map("key", "nice") obj := {key : "value"} logger...
by kazhafeizhale
30 Apr 2022, 07:13
Forum: Scripts and Functions (v1)
Topic: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)
Replies: 391
Views: 250098

Re: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)

gif.gif
gif.gif (728.66 KiB) Viewed 5372 times
by kazhafeizhale
17 Apr 2022, 03:21
Forum: Scripts and Functions (v2)
Topic: opencv-ahk bindings
Replies: 5
Views: 2809

Re: opencv-ahk bindings

example : image process https://i.postimg.cc/GBR3G2qn/image.png https://i.postimg.cc/hXLcDngy/image.png https://i.postimg.cc/QBSD7qFc/image.png https://github.com/kazhafeizhale/opencv_ahk/tree/main/graphAngle #include "cv2.ah2" #DllLoad opencv_ahk.dll cv := ObjFromPtr(DllCall('opencv_ahk.dll\opencv_...
by kazhafeizhale
17 Apr 2022, 03:12
Forum: Scripts and Functions (v2)
Topic: opencv-ahk bindings
Replies: 5
Views: 2809

Re: opencv-ahk bindings

example : matchtemplate find image from screen, use dxgi and opencv ImageSearch use 300ms vs dxgi&opencv 30ms https://github.com/kazhafeizhale/opencv_ahk/tree/main/matchtemplate https://i.postimg.cc/D0Vw3CTY/image.png #DllLoad opencv_ahk.dll #include <wincapture> #include <cv2> #include <log> SetWo...
by kazhafeizhale
27 Mar 2022, 23:03
Forum: Scripts and Functions (v1)
Topic: OpenCV COM
Replies: 51
Views: 14320

Re: OpenCV COM

May be You need smth like this? cv := ComObjCreate("OpenCV.cv") big := cv.imread("big.jpg") small := cv.imread("small.jpg") roi := ComObjArray(VT_VARIANT:=12, 4) roi[0] := 0 roi[1] := 0 roi[2] := small.width roi[3] := small.height small.copyTo(ComObjCreate("OpenCV.cv.Mat").create(big, roi)) cv.imsh...
by kazhafeizhale
27 Mar 2022, 05:36
Forum: Scripts and Functions (v1)
Topic: OpenCV COM
Replies: 51
Views: 14320

Re: OpenCV COM

malcev wrote:
27 Mar 2022, 05:01
I do not understand what do You want.
It is better to ask Your question to author on autoit forum.
OK, thanks
by kazhafeizhale
27 Mar 2022, 04:44
Forum: Scripts and Functions (v1)
Topic: OpenCV COM
Replies: 51
Views: 14320

Re: OpenCV COM

malcev wrote:
27 Mar 2022, 02:04
I already gave it.
viewtopic.php?p=453114#p453114
not create func, The large image was not modified at the end
by kazhafeizhale
27 Mar 2022, 01:08
Forum: Scripts and Functions (v1)
Topic: OpenCV COM
Replies: 51
Views: 14320

Re: OpenCV COM

Hi malcev
I want use this methoud, but i don't know how to use, can you give a example? thanks!

Code: Select all

["cv.Mat.Mat", "", [], [
        ["Mat", "src", "", []],
        ["Rect", "roi", "", []]
    ], "", ""],
by kazhafeizhale
24 Mar 2022, 21:08
Forum: Scripts and Functions (v1)
Topic: OpenCV COM
Replies: 51
Views: 14320

Re: OpenCV COM

For what exactly do You need this? May be smth like this. cv := ComObjCreate("OpenCV.cv") src := cv.imread("test.png") roi := ComObjArray(VT_VARIANT:=12, 4) roi[0] := 100 roi[1] := 200 roi[2] := 300 roi[3] := 400 ComObjCreate("OpenCV.cv.Mat").create(src, roi) And the original image does not occupy ...
by kazhafeizhale
23 Mar 2022, 23:10
Forum: Scripts and Functions (v1)
Topic: OpenCV COM
Replies: 51
Views: 14320

Re: OpenCV COM

Mat src = imread("test.png"); src(Rect(0, 0, 0, 0)); /** @overload @param m Array that (as a whole or partly) is assigned to the constructed matrix. No data is copied by these constructors. Instead, the header pointing to m data or its sub-array is constructed and associated with it. The reference ...
by kazhafeizhale
16 Feb 2022, 05:02
Forum: Scripts and Functions (v1)
Topic: OpenCV COM
Replies: 51
Views: 14320

Re: OpenCV COM

by kazhafeizhale
14 Feb 2022, 09:48
Forum: Scripts and Functions (v1)
Topic: OpenCV COM
Replies: 51
Views: 14320

Re: OpenCV COM

https://www.autoitscript.com/forum/topic/206432-opencv-v4-udf On autohotkey register and use something like this: ; register com hOpencv := DllCall("LoadLibrary", "str", "opencv-4.5.4-vc14_vc15\opencv\build\x64\vc15\bin\opencv_world454.dll", "ptr") hOpencvCom := DllCall("LoadLibrary", "str", "autoi...
by kazhafeizhale
09 Jan 2022, 10:36
Forum: Ask for Help (v1)
Topic: tooltip with scroll bar
Replies: 2
Views: 483

Re: tooltip with scroll bar

Loop, 500 ttext .= "asdf " tip(ttext) Sleep, 3000 tip() Return TipGuiEscape: Gui, Tip:Destroy Return tip(ttext := "") { If (ttext > "") { Gui, Tip:New, +ToolWindow -Caption Gui, Margin, 1, 1 Gui, Add, Edit, w300 r30 ReadOnly, %ttext% Gui, Show, NoActivate } Else Gui, Tip:Destroy } Thank you very mu...
by kazhafeizhale
09 Jan 2022, 08:17
Forum: Ask for Help (v1)
Topic: tooltip with scroll bar
Replies: 2
Views: 483

tooltip with scroll bar

Hi
If i show a large number of text, tooltip can't show all in screen, Can tooltip whith a scroll bar?
by kazhafeizhale
01 Jan 2022, 05:10
Forum: Ask for Help (v1)
Topic: LoadPicture() from variable Topic is solved
Replies: 12
Views: 41320

Re: LoadPicture() from variable Topic is solved

[Mod edit: This message by @kazhafeizhale ended up in the reports for this post, so that nobody could see it. Now it has been transformed into a post:]
kazhafeizhale wrote:HI, you may need free memory
Dllcall("GlobalFree", "Ptr", hData)
by kazhafeizhale
31 Dec 2021, 22:50
Forum: Ask for Help (v1)
Topic: Show image from memory
Replies: 1
Views: 291

Show image from memory

Hi,
Now, I have a BMP in memory, How i show this image
I have a pointer to this memory block

Go to advanced search