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

FaceAnonymizationWebCam Issue on Mac #94

Open
codenamewei opened this issue Aug 19, 2020 · 3 comments
Open

FaceAnonymizationWebCam Issue on Mac #94

codenamewei opened this issue Aug 19, 2020 · 3 comments
Labels
bug Something isn't working critical Significant failures affecting the running of repository

Comments

@codenamewei
Copy link
Contributor

Mac
Java java version "1.8.0_221"

https://gist.github.com/codenamewei/fa73de5eefc377dfe498d950496348b4

Screenshot 2020-08-19 at 2 05 15 PM

@kenghooi-teoh

@khalidmjii
Copy link

@codenamewei codenamewei self-assigned this Aug 19, 2020
@codenamewei codenamewei added bug Something isn't working critical Significant failures affecting the running of repository labels Aug 19, 2020
@codenamewei
Copy link
Contributor Author

I abled to reproduce two problems with different JDK 8 patches

@choowilson @kenghooi-teoh
Yet not able to find the solutions as of now.

Screenshot 2020-08-20 at 10 03 14 AM

Screenshot 2020-08-20 at 10 02 31 AM

@codenamewei codenamewei removed their assignment Aug 20, 2020
@kenghooi-teoh
Copy link
Contributor

kenghooi-teoh commented Aug 25, 2020

Not sure how to debug the unknown exception, but here's a workaround:

Instead of using .imshow, we can use the following code,

    // Before while loop in in FaceRecognitionWebcam.java
    // Create image window named "My Image".
    final CanvasFrame canvas = new CanvasFrame(caption, 1.0);

    // Request closing of the application when the image window is closed.
    canvas.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

    // Convert from OpenCV Mat to Java Buffered image for display
    final OpenCVFrameConverter converter = new OpenCVFrameConverter.ToMat();

    // Show image on window. //Inside while loop in FaceRecognitionWebcam.java
    canvas.showImage(converter.convert(image));`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working critical Significant failures affecting the running of repository
Projects
None yet
Development

No branches or pull requests

3 participants