Open harmeling opened 4 years ago
Sorry, I don't have access to a Mac (my macbook is formatted with Arch because I got sick of OSX backward trending), so I won't be able to help. I use Java bindings of OpenCV, and query camera directly through there, so that might be a starting point to google?
I found this, but not sure if it'll be of help: https://stackoverflow.com/questions/56084303/opencv-command-line-app-cant-access-camera-under-macos-mojave
This problem still exists with macOS Monterey (latest version), can't grant access to access the camera.
hmm, if you open terminal, cd Downloads
(or wherever you've got the jar file) and start it with java -jar igoki.jar
- could you let me know if that works?
nov. 19, 2021 8:59:13 P.M. nu.pattern.OpenCV$SharedLoader
above was what it gave me after I ran the newest version (0.7.1) it asked me to grant access to the terminal for access after granting I had "functioning" webcam/video though very low framerate, but it seems to have done the trick.
hmm https://youtrack.jetbrains.com/issue/JBR-3721 makes me thinks it's some weird jdk 17 bug.
The low framerate is actually intentional - I need to do some work there to enable faster framerates without making the board reading horrible - so sounds like it's working as it should!
yes I added a script that automates the terminal commands, as it appears you have to do It every time to run it. it only works if you leave the igoki.jar in the Downloads folder otherwise you have to modify it
thx anyway, going to experiment with it soon, I'll report back my findings!
awesome, thank you :)
Trying your code on MacOS 10.15.4 (Catalina). I get some camera error. Might be due to restrictions to camera access in Catalina? The output in the Terminal is shown below. Thank you for your help!
I don't know Clojure good enough to find the command that asks for a camera to repair it myself...