Open tcsenpai opened 4 days ago
Hi @tcsenpai, thanks for opening up an issue I don't have an Ubuntu machine handy, so I couldn't test it right now
However, I can suggest checking the developer console in the pinch app (should be right click and then inspect), and see the error message there.
My suspicion is it failed to get the camera in this line https://github.com/reynaldichernando/pinch/blob/9e06b4c4635f05349a89d6122a7834ae8bed252c/src/down.js#L46
I did a quick research regarding the navigator.mediaDevices, and on macOS, there is an additional step for allowing the program to access the camera https://github.com/tauri-apps/tauri/discussions/5572 I suspect similar thing for Linux as well, but I haven't found any resource regarding that
If it is really a camera access issue, here is what I found:
Just did some digging around, and asked the Tauri team on their discord.
The main thing is Linux camera permission is not supported yet, due to webkitgtk not supporting webrtc.
However, I found another discussion on GitHub regarding the Linux camera support, and seems like this person did it, but it took some effort to build Tauri from source. https://github.com/tauri-apps/tauri/discussions/8426#discussioncomment-8268622
And indeed:
Probably is something I could watch at but I am at the moment a bit overwhelmed by my projects. I'll resort writing something in Python if we cannot find a fix :)
(Yes, Python + MediaPipe should work better in this sense; but of course I don't expect you to rewrite the whole project in python. For inspiration, you can look at https://github.com/tcsenpai/mienmouse that I just made inspired by your project: it isn't nearly as polished but I wanted to experiment with a Pythonesque approach).
Hello,
I managed to compile the project (I suggest adding
apt install libxdo-dev
for Ubuntu-derivatives as it fails otherwise).This is what I get. The camera led does not even lights up.
System report: