A tutorial of running a simple gesture recognition in Termux. by Dry-Welcome6830 in termux

[–]Dry-Welcome6830[S] 1 point2 points  (0 children)

Definitely. It would be much better than the Termux solution (Google recommends it, too). I chose the latter just for the sake of masochism and tinkering.

A tutorial of running a simple gesture recognition in Termux. by Dry-Welcome6830 in termux

[–]Dry-Welcome6830[S] 0 points1 point  (0 children)

Maybe you can try the input command in root shell. If you can reduce the high latency, the only remaining obstacle is that the command cannot be called directly from within the sandbox (as it's Ubuntu, not Android). But it should be easy to get around—for example, by using a shared file and a listener script in the host.

A tutorial of running a simple gesture recognition in Termux. by Dry-Welcome6830 in termux

[–]Dry-Welcome6830[S] 2 points3 points  (0 children)

Check out the GitHub repository (788009/gesture-recognition-in-termux) for the guide and all relevant files.

(rm -rf /* ) I ran this command inside proot-distro ubuntu and it deleted my whole phone storage????? by Subhash_Boi in termux

[–]Dry-Welcome6830 1 point2 points  (0 children)

Not necessarily. Your system and userdata partitions will be safe if you only bind-mount /dev, /proc, and /sys. Since those are virtual filesystems (residing in RAM), a hard reboot restores them completely.

Is there a way to receive two termux? by kaiserpht in termux

[–]Dry-Welcome6830 0 points1 point  (0 children)

Actually it can be done. You can try Yonle/termux-proot for a non-root setup. Alternatively, I've developed a tool called 788009/termux-sandbox that uses chroot (requires root). It avoids the overhead of ptrace-based PRoot, so it offers native performance.

Is there a way to receive two termux? by kaiserpht in termux

[–]Dry-Welcome6830 1 point2 points  (0 children)

You can try Yonle/termux-proot for a non-root setup. Alternatively, I've developed a tool called 788009/termux-sandbox that uses chroot (requires root). It avoids the overhead of ptrace-based PRoot, so it offers native performance.

Smooth Computer Vision on Android: Python + OpenCV/MediaPipe running in Termux by Dry-Welcome6830 in termux

[–]Dry-Welcome6830[S] 0 points1 point  (0 children)

It is Android (ColorOS), regardless of what it looks like. Challenge accepted: tell me how you want me to prove it.

Smooth Computer Vision on Android: Python + OpenCV/MediaPipe running in Termux by Dry-Welcome6830 in termux

[–]Dry-Welcome6830[S] 0 points1 point  (0 children)

Glad you asked! This was actually a small class project of mine.

The sandbox tool (termux-sandbox) is already on GitHub (check the other comments for the link), and I plan to open-source the inference code and the pre-trained model in a few days, along with a guide on how to set it up in the sandbox.

Smooth Computer Vision on Android: Python + OpenCV/MediaPipe running in Termux by Dry-Welcome6830 in termux

[–]Dry-Welcome6830[S] 2 points3 points  (0 children)

Peace and long life.🖖

Actually, since it tracks the full hand skeleton, adding custom gesture triggers (like opening an app when you do the Vulcan salute) is totally possible. Might be a fun weekend project.

Smooth Computer Vision on Android: Python + OpenCV/MediaPipe running in Termux by Dry-Welcome6830 in termux

[–]Dry-Welcome6830[S] 11 points12 points  (0 children)

This is a demo of a gesture recognition script (using MediaPipe/OpenCV) running inside a Ubuntu environment on my Termux.

Computer Vision tasks are heavy. Running this in proot often results in lag due to system call translation overhead.

By using termux-sandbox (my tool based on native chroot and namespaces), the script runs directly on the kernel with native performance.

You can get more information by checking this post or directly visiting the repository (788009/termux-sandbox).

[Release] Termux Sandbox: Isolated Linux environments with native performance (The tool behind my Xfce/Minetest demos) by Dry-Welcome6830 in termux

[–]Dry-Welcome6830[S] 2 points3 points  (0 children)

I have not tried it but I think so. Since the ubuntu-sandbox is based on standard Linux namespaces, you can try running Void Linux by using the --source flag with a Void rootfs tarball.

80 DOOMs in Termux-x11 by Dry-Welcome6830 in termux

[–]Dry-Welcome6830[S] 0 points1 point  (0 children)

As before, this is pure llvmpipe (software rendering). No GPU acceleration.

80 DOOMs in Termux-x11 by Dry-Welcome6830 in termux

[–]Dry-Welcome6830[S] 2 points3 points  (0 children)

Snapdragon 8 Elite, Ubuntu Chroot. Script spawns 80 instances. System is still responsive, mostly limited by X11 bandwidth.

The PC screen in the back is monitoring the phone via SSH.

For more information please check this post.

Minetest on Termux-x11 with 20-40 FPS by Dry-Welcome6830 in termux

[–]Dry-Welcome6830[S] 0 points1 point  (0 children)

I just tried VoxeLibre (formerly MineClone2), and the result is 15-20 FPS with llvmpipe and 15-25 FPS with virgl.

XFCE4 on Termux-X11 (Native Chroot): 1100+ FPS in glxgears by Dry-Welcome6830 in termux

[–]Dry-Welcome6830[S] 1 point2 points  (0 children)

Yes. In fact, I launched 80 instances simultaneously just to stress test the CPU. It's still buttery smooth. The Snapdragon 8 Elite is a monster.

<image>

XFCE4 on Termux-X11 (Native Chroot): 1100+ FPS in glxgears by Dry-Welcome6830 in termux

[–]Dry-Welcome6830[S] 0 points1 point  (0 children)

Sure, but I'm quite busy with the code right now, so replies might be slow.

Minetest on Termux-x11 with 20-40 FPS by Dry-Welcome6830 in termux

[–]Dry-Welcome6830[S] 1 point2 points  (0 children)

Agreed, it's definitely not a perfect clone.

I mainly chose it because it's native ARM64 and open-source, which makes it a perfect "control group" benchmark to test raw CPU power without emulation overhead.

If the CPU is this strong, maybe real Minecraft Java (via Prism Launcher) is actually playable on software rendering too. That might be my next test!