5 ms·
It looks like it's just applying a bunch of filters/convolutions to the image. You could write it in C++ to be pretty quick, in CUDA you could get it down to mi
by drchewbacca 7y ago
It looks like it's just applying a bunch of filters/convolutions to the image. You could write it in C++ to be pretty quick, in CUDA you could get it down to microseconds I think.
Though that does not take account of the latency of the webcam itself.
- fortran77 7y agoToo bad you can't get CUDA easily on a recent Macintosh.
- tantalor 7y agoHuh? https://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html https://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-...
- RussianCow 7y agoMacBooks haven't had Nvidia GPUs for a few years.
- coldtea 7y agoThey have also supported eGPUS for years though...
- codetrotter 7y agoYou’ll also need an NVIDIA GPU. All of the MacBooks that came with NVIDIA GPUs are from 2010 and earlier. That’s quite a while ago in computer age. https://support.apple.com/en-us/HT204349#nvidia https://support.apple.com/en-us/HT204349#nvidia
- nacs 7y agoYou could use one via the eGPU support in most newer Macs: https://support.apple.com/en-us/HT208544 https://support.apple.com/en-us/HT208544
- codetrotter 7y agoYeah but then you haven’t turned a MacBook into a Touchscreen with $1 of Hardware. You’ve turned a MacBook into a Touchscreen with $price_of_GPU + $price_of_eGPU_adapter + $1. And additionally you’ve made your MacBook a lot less portable.
- fortran77 7y agoI'm always amused when Mac people ask me why I don't use Macs and I tell them "I program CUDA for a living" and they respond "But you can jerry rig a PCIx slot in a box over a wonky cable plug it into your Thunderfire port" or something. As if that's a real solution.
- applecrazy 7y agoThere’s no need to do any of that. Commercially-available eGPU boxes[1] work well, no jank required. [1]: https://www.sonnettech.com/product/egfx-breakaway-box.html https://www.sonnettech.com/product/egfx-breakaway-box.html
- codetrotter 7y agoI know we frown upon the kind of comment I’m about to make but I really feel the need to point this out right here; relevant username!
- liability 7y agoCommercially available jank is still jank. And the matter of portability (why else would you be using a laptop in the first place?) still remains. Forget walking around with it around towb in a bag; if I am trying to work on my deck chair outside, where do I put that mother of all dongles? Balance it precariously on the chair's armrest? No thanks!
- fortran77 7y agoI wonder if Mac users are pulling our legs, or if they are True Believers. Like it or not, a significant number of people doing signal processing, simulation, AI, and even playing games, need or strongly prefer Nvidia and CUDA. And for them, Macs are not an option.
- fortran77 7y agoHuh? You have to go back two versions of the OS in order to follow those instructions.
- seandougall 7y agoYou can do all that in Metal -- though as GP said, it doesn't matter, because there's fixed latency at the camera input.