nothing happened
when click start camera button nothing happened
Hi,
could you provide some more details? On which operating system are you trying the application? In which IDE? With which version of OpenCV/Java? When you click the "start" button, does the webcam of your computer start? Does the portion of interface that is above the "start" button change color (maybe it becomes black)?
Thanks!
OS = Windows 10 Pro x64 IDE = Netbeans 8.1 OpenCV = 3.1.0
no,the webcam didnt start, the imageView on jafaFX didnt change at anything
Thanks. Never tried with Netbeans - always used Eclipse for this project. I'll have a look.
Just to be sure to exclude the obvious: did you set up the "Netbeans-equivalent" of a User Library named opencv that links both to the OpenCV jar and native libraries?
Nothing happened with my environment. OS: MAC OS 10.12.3 IDE: Eclipse Neon.2 Release (4.6.2) OpenCV 3.2
PS: another case, FXHelloCV works well and can see the camera capture video.
I trace the code, file FaceDetectionController.java, this line will throw exception for thread issue: originalFrame.setImage(imageToShow);
I copy Utils.java from FXHelloCV project, with updateImageView. replace with updateImageView. it works.
private void updateImageView(ImageView view, Image image)
{
Utils.onFXThread(view.imageProperty(), image);
}
Thanks, this repository has not been updated with the changes of FXHelloCV.
I will fix the problem as soon as possible.
Hi @forest-yang forest-yang, can you please let me know what you have modifed?
in FaceDetectionController.java there is:
@Override
public void run()
{
Image imageToShow = grabFrame();
originalFrame.setImage(imageToShow);
}
I get only some random colored pixel in my camera window like this: http://s5.postimg.org/jamvsn1qf/screenshot_1827.jpg
I'm using Netbeans with opencv 3.10 on Windows 10, Java 1.8
Hi @petervalencic,
could you try if the FXHelloCV project works on your system?
If it works, you need to copy the Utils.java file in your project and replace the last line you reported with the equivalent used in that project.
I hope to update this project with the new code as soon as possible.
@petervalencic, I just update the repository to solve this issue.
Could you try?
I have reinstalled webcam drivers and it works fine also with old version from github..
Will try also your new version! thank you
On Fri, Mar 10, 2017 at 12:50 PM, Luigi De Russis [email protected] wrote:
@petervalencic https://github.com/petervalencic, I just update the repository to solve this issue.
Could you try?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/opencv-java/face-detection/issues/1#issuecomment-285650247, or mute the thread https://github.com/notifications/unsubscribe-auth/AKXO1Nq02GG_byrfKYTJCC8oRont-7W4ks5rkTkIgaJpZM4KN-HX .