Skip to content
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

dont render well #911

Open
christian-llauderes96 opened this issue Nov 3, 2023 · 4 comments
Open

dont render well #911

christian-llauderes96 opened this issue Nov 3, 2023 · 4 comments

Comments

@christian-llauderes96
Copy link

christian-llauderes96 commented Nov 3, 2023

I get some example here(WebcamPanelExample). In netbeans it works fine but when I build it as executable jar file and open it works except for the camera. It seems very slow first it was "device initialization" after a plenty seconds (33s) it shows but black video and repaint value is 0.2 and fps 0.0 and doesn't change. I don't know what is the problem.

In desktop works fine. The problem arises on laptop

@eduramiba
Copy link

I suggest you try this driver: https://github.com/eduramiba/webcam-capture-driver-native

@christian-llauderes96
Copy link
Author

I suggest you try this driver: https://github.com/eduramiba/webcam-capture-driver-native

will this work in java ant?? My project was not in maven

@eduramiba
Copy link

Sure it should work if you download the jars from maven central: https://repo1.maven.org/maven2/io/github/eduramiba/webcam-capture-driver-native/1.0.0/

Then, if using windows, remember to copy the correct DLLs from https://github.com/eduramiba/webcam-capture-driver-native/tree/master/natives to where your program will run

@christian-llauderes96
Copy link
Author

I get some example here(WebcamPanelExample). In netbeans it works fine but when I build it as executable jar file and open it works except for the camera. It seems very slow first it was "device initialization" after a plenty seconds (33s) it shows but black video and repaint value is 0.2 and fps 0.0 and doesn't change. I don't know what is the problem.

In desktop works fine. The problem arises on laptop

In logs
2023-12-05 09:57:24,183 [AWT-EventQueue-0] INFO com.github.sarxos.webcam.Webcam - WebcamDefaultDriver capture driver will be used
2023-12-05 09:57:24,353 [atomic-processor-1] INFO com.github.sarxos.webcam.ds.cgt.WebcamOpenTask - Opening webcam USB2.0 HD UVC WebCam 0
2023-12-05 09:57:57,730 [atomic-processor-1] ERROR com.github.sarxos.webcam.ds.buildin.WebcamDefaultDevice - Timeout when requesting image!
2023-12-05 09:58:03,225 [frames-refresher-[0]] ERROR com.github.sarxos.webcam.ds.buildin.WebcamDefaultDevice - Timeout when requesting image!
2023-12-05 09:58:08,814 [atomic-processor-1] ERROR com.github.sarxos.webcam.ds.buildin.WebcamDefaultDevice - Timeout when requesting image!
2023-12-05 09:58:14,381 [frames-refresher-[0]] ERROR com.github.sarxos.webcam.ds.buildin.WebcamDefaultDevice - Timeout when requesting image!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants