Small Basic Forum
ZS Extension. - Printable Version

+- Small Basic Forum (https://litdev.uk/mybb)
+-- Forum: Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=1)
+--- Forum: Extensions (https://litdev.uk/mybb/forumdisplay.php?fid=3)
+--- Thread: ZS Extension. (/showthread.php?tid=100)

Pages: 1 2 3 4 5 6 7 8 9 10


RE: ZS Extension. - z-s - 07-11-2024

Yes you could give the code i am happy to learn something new


RE: ZS Extension. - AbsoluteBeginner - 07-11-2024

(07-11-2024, 04:40 PM)z-s Wrote: Yes you could give the code i am happy to learn something new

I made a mistake.  Sad
This code was written in Delphi (Pascal).
I'm sorry.  Angel


RE: ZS Extension. - z-s - 07-12-2024

Hii everyone


RE: ZS Extension. - z-s - 07-12-2024

Hii AB
Your challenge seems very hard.
It is known as image recognition.
I once seen the machine learning and image recognition third party library of csharp having huge sized.
I gone a quick search in Google and found many people trying it but it's hard.
But not impossible because the world it self say I m possible Smile
Coming to main point it's really hard but there is a way.
Anyone know that all images are made of small coloured pixel.
We could match pixels but this would be extremely slow.
I will try my best and do more research on it.


RE: ZS Extension. - AbsoluteBeginner - 07-12-2024

Dear Z-S,  Shy

Let's clarify what concept we are talking about.

It seems to me that you are talking about "RECOGNITION" of images.
But, I'm talking about "SEARCHING" an image.

“RECOGNIZE” an image means CLASSIFY, to determine which class the depicted object belongs to.
But, "FIND" images - this means that we must simply check whether such a small fragment that we are looking for exists in a large image.
This is similar to searching for the desired word in a text file.

Small BASIC is too slow for this purpose.
Just as LitDev created the “FastArray” extension and the “FastString” method, you can try to create an “ImageSearch” method that will SEARCH a small image inside a large image as quickly as possible.

Smile


RE: ZS Extension. - z-s - 07-12-2024

Haha AB
I Did It With Help Of GPT But Quite Slow So Be Patient But Tried Working.
Latest Release 1.2.0.6 : https://github.com/zs-3/ZS/releases/tag/1.2.0.6
Some Dialog Lib Functions Are Not Working Currently.

But Small Images Are Very Fast


RE: ZS Extension. - AbsoluteBeginner - 07-12-2024

I am sure that the fastest code will not come out immediately.

The fastest code is a fun challenge.  Rolleyes


RE: ZS Extension. - z-s - 07-12-2024

Do you tried


RE: ZS Extension. - AbsoluteBeginner - 07-12-2024

I'm using a paid third party autoclicker written in C++.
But, it's dangerous.
I want to have a secure autoclicker that I compiled myself using open source code.
But I was too lazy to create a program in C#.
But I will be interested in using Small BASIC, SB-Prime Editor and the open source extension to now create my own autoclicker.  Tongue


RE: ZS Extension. - z-s - 07-13-2024

Hii AB.
For more speed of our searching function i will advise you to make simple algorithm in program and use small images.
I am adding new functions in ZSUtilities for more simpler and smooth work.
1) adding a capture screen function (already present in LD EXTENSION)
2) adding a image resize function so that we can resize original image to smaller size and increase speed ( this is also already present in LD EXTENSION but it use Imagelist which my searching function don't use.)