-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAC OS Catalina - No webcams found #757
Comments
I think this is a duplicate of #723 |
This should already be fixed by commit ae28f26 from @kkieffer. @JakobMaaloe can you please verify this issue with latest 0.3.13-SNAPSHOT which is available here? |
Hi, No luck I'm afraid. Just downloaded the 0.3.13 snapshot, imported it and ran the code again. Initially it gave me a But after including the bridj jar I still get an error (see below). What am I missing here?
|
@JakobMaaloe Thank you. It seems like we did the test after fix in a wrong way so, and I'm sorry for that, this problem is not yet fixed :( |
Ok, no problem. I'll be waiting. :-) |
Hello,
and running macOS 10.15.4. No prompt to authorize camera. Any news yet? |
@thanosa75 you need an updated lib - see end of thread on #723 still working issue |
Thanks for the quick reply @kkieffer ! Got to the bottom of this, going through OpenIMAJ tickets and a few from this repo. Simpler solution that WFM 💯 is:
a. add repository to pom:
b. add artifacts (no need to exclude transitive one):
|
@thanosa75 Thank you very much for this. I really appreciate it 😄 |
The fix doesn't work for me. Any advice on what JDK did you use?? |
@rubenqba did you get anything working? - I cannot get any driver working with MacOS Catalina. I have left my comments in
If you do get anything working i will be so happy if you tell me what you did. I have tried with java 14, 15 and 16 and have no luck. Currently am trying with:
Thanks |
@javaspeak I got my sample project working using SNAPSHOT version, here a snippet of my dependencies <dependency>
<groupId>com.github.sarxos</groupId>
<artifactId>webcam-capture</artifactId>
<version>0.3.13-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.github.sarxos</groupId>
<artifactId>webcam-capture-driver-openimaj</artifactId>
<version>0.3.13-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>org.openimaj</groupId>
<artifactId>core-video-capture</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.nativelibs4java</groupId>
<artifactId>bridj</artifactId>
<version>0.7-20140918-3</version>
</dependency> btw, I'm using Java 15 |
Thanks for your answer. When I run it I get:
Note the line:
When you run it do you get a pop up asking if you want to allow the webcam ? I get no such popup. Also are your running it in an IDE or did you package your app up into a dmg and sign it, etc, to get it working? I am just running code in an IDE. Further did you add any webcam permission to a info.plist file of your Java installation? I think that if I add a permission there it needs to be signed - I think I am missing a lot of info. |
I was running inside the IDE (Intellij in my case) without any issue. Also, I don't remember any popup but in my system, the Intellij already has access to the camera. |
SUCCESS getting webcam to work with MacOS Catalina - time to party! For anyone else who has problems starting a webcam with MacOS Catalina I just managed :-) I am so happy :-) I was trying to run the webcam code from the STS (Eclipse IDe) and it never popped up a security dialog to enable the camera. Instead the application always crashed out and in Macs Console app I saw a crash error like:
The Solution was to start my STS IDE from the terminal as follows:
I then got a security popup to allow access to the camera and the webcam worked without error. When I went to the Security and Privacy settings for the Camera I now see the Terminal application and a ticked checkbox. prior to the popup there was no Terminal in the list. I have included a zip file of the code here so you can see the dependencies in the pom.xml and the Java code. Note I used JRE 15.0.2 that was bundled as a plugin in my STS IDE. /Applications/SpringToolSuite4_3.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_15.0.2.v20210201-0955/jre/lib I have also successfully run it with:
I get the above __CRASHING_DUE_TO_PRIVACY_VIOLATION error if I run it on:
My pom.xml looks like:
Here is the zip of the code and pom: |
Thanks @javaspeak!! I'm on macOS 11.6.4 (Big Sur), still using jdk1.8.0_73.jdk. |
Hi, please try this driver, it should work with recent MacOS versions https://github.com/eduramiba/webcam-capture-driver-native |
@javaspeak . i am trying to implement these dependencies to kotlin compose multiplatfrom.
But I got: org.jetbrains.kotlin.scripting.compiler.plugin.ScriptingCompilerConfigurationComponentRegistrar is not compatible with this version of compiler |
Hi,
I've been using the framework on an old Macbook Pro, but after changing to a new Macbook Pro running Catalina, the framework no longer finds the connected webcams.
There are currently two working webcams (one internal) connected to the Macbook Pro, both have been verified using Google Hangout, etc.
Mac OS: Catalina Version 10.15.2
Computer: i9, 32 GB
Code:
public BufferedImage takePicture() throws IOException {
List webcams = Webcam.getWebcams();
log.info("Found {} webcams", webcams.size());
....
Log:
2020-01-29 09:46:38.152 INFO 5638 --- [nio-8080-exec-7] d.d.a.a.service.CameraService : Found 0 webcams
2020-01-29 09:46:38.153 WARN 5638 --- [nio-8080-exec-7] com.github.sarxos.webcam.Webcam : No webcam has been detected!
Any chance something has changed with Catalina or something has to be changed?
Br.
Jakob Maaloe
The text was updated successfully, but these errors were encountered: