Discuss Scratch

presidency_user
Scratcher
3 posts

Parrarel threading technology to Scan images

Have you ever saw how Griffpatch created a project that scans an image in under 13 seconds using binary scanning technology? While 13 seconds might seem fast, it’s impractical for real-time applications like a camera, where no one would keep their face still for that long. After much thought, I developed a new technology to address this issue.

Typically, for each pixel, we scan from 1 to 16 million colors before moving to the next pixel. Instead of this sequential approach, let’s consider the parallel threading technology used by CPUs. By creating multiple threads to process different pixels simultaneously, we can significantly reduce the scanning time.

Although this might not seem impressive at first, it was a game-changer when I implemented it. Using parallel threading technology combined with binary scanning, I reduced the image scanning time to a mere 2 seconds. This was achieved using TurboWarp, as Scratch cannot handle such intensive processing without lag.

We need to make this a reality. Imagine being able to conduct real-time video calls on Scratch by transmitting pixel data efficiently! Comment me to join

Last edited by presidency_user (Dec. 6, 2024 13:50:06)

moigam
Scratcher
1000+ posts

Parrarel threading technology to Scan images

How did you get this “parallel threading technology” to work on Turbowarp? How did you create multiple threads with only Scratch? Is it just about running multiple “scanners” in parallel?
presidency_user
Scratcher
3 posts

Parrarel threading technology to Scan images

@moigam In the scanning process, initially, we capture one pixel at a time before moving on to the next. However, the proposed method involves having a multitude of pixels, each with different variables, operating independently and not sequentially. This data is then stored in a list. With 300 pixels working concurrently to scan the entire screen, the process is expedited. Although this method initially creates a lag, it is short-lived, lasting only about 3 seconds, and is a worthwhile trade-off for the efficiency gained. The longest delay recorded was 5 seconds, encountered when scanning an item with extremely varied colors. Arranging the colors in sequence post-scan was challenging, but it has been successfully implemented. Please make most people get to know about it and also check my account for this projects (https://scratch-mit-edu.ezproxyberklee.flo.org/projects/1003761971/ = draw each frame with stickman or anthing you want and create stunning animations like adobe animate or flipaclip with my animate doodle) (https://scratch-mit-edu.ezproxyberklee.flo.org/projects/1104454194/ = MSW microsoft windows logo; an app developed my microsoft which was text based coding language for biegneers. i recreated it 100% working on scratch)
ninjacat28_
Scratcher
4 posts

Parrarel threading technology to Scan images

could it be possible to have more than 300 scanners

Powered by DjangoBB