We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ZS Extension.
#21
Yes you could give the code i am happy to learn something new
ZS
Reply
#22
(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
Reply
#23
Hii everyone
ZS
Reply
#24
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.
ZS
Reply
#25
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
Reply
#26
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
ZS
Reply
#27
I am sure that the fastest code will not come out immediately.

The fastest code is a fun challenge.  Rolleyes
Reply
#28
Do you tried
ZS
Reply
#29
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
Reply
#30
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.)
ZS
[-] The following 1 user Likes z-s's post:
  • AbsoluteBeginner
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)