-
Notifications
You must be signed in to change notification settings - Fork 107
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
Added webcam -> cvResize -> cvtColor(BGR2BGRA) #768
Comments
Error message? |
I can confirm this on mac. It took the entire build down, I didn't get the "this exception was thrown" screen, so that needs to be fixed first. Here's the error, from the console:
|
Windows 10: cannot reproduce. I do get an exception when trying to preview the Thread[JavaFX Application Thread,5,main] threw an exception Stack Trace:java.lang.UnsupportedOperationException: Only 1 or 3 channel images can be shown, tried to show a 4 channel image
at edu.wpi.grip.ui.util.ImageConverter.convert(ImageConverter.java:118)
at edu.wpi.grip.ui.preview.ImageSocketPreviewView.lambda$null$0(ImageSocketPreviewView.java:31)
at edu.wpi.grip.ui.util.GripPlatform.lambda$onJavaFXRunnerEvent$0(GripPlatform.java:74)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745) System Info:
|
Interestingly, it looks like it's running the pipeline in the JavaFX thread... @bradamiller, does this happen when running Windows in parallels? |
I'll have to test it tomorrow when I'm at school with a web cam that I can assign to the VM. I have the camera shared with windows, but it doesn't seem to be working in GRIP. If I plug in a real USB camera and assign it, I expect it will work. |
You shouldn't have to use a webcam for this, any image file should be fine |
I get the exception, but it doesn't crash. Maybe at some point we can make it check for things with mismatched numbers of channels. That would avoid the exception and the error all together. |
Oh, I misread your stacktrace. I had the same error. This is definitely something that can be improved. |
Note, |
Created the pipeline webcam -> cvResize -> cvtColor(BGR2BGRA), and it crashed.
The text was updated successfully, but these errors were encountered: