face-detection icon indicating copy to clipboard operation
face-detection copied to clipboard

nothing happened

Open audio99 opened this issue 10 years ago • 10 comments

when click start camera button nothing happened

audio99 avatar Oct 04 '16 17:10 audio99

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!

luigidr avatar Oct 04 '16 20:10 luigidr

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

audio99 avatar Oct 05 '16 15:10 audio99

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?

luigidr avatar Oct 05 '16 19:10 luigidr

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.

forest-yang avatar Jan 30 '17 13:01 forest-yang

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);
}

forest-yang avatar Jan 31 '17 03:01 forest-yang

Thanks, this repository has not been updated with the changes of FXHelloCV.

I will fix the problem as soon as possible.

luigidr avatar Jan 31 '17 20:01 luigidr

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

petervalencic avatar Mar 09 '17 13:03 petervalencic

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.

luigidr avatar Mar 09 '17 14:03 luigidr

@petervalencic, I just update the repository to solve this issue.

Could you try?

luigidr avatar Mar 10 '17 11:03 luigidr

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 .

petervalencic avatar Mar 10 '17 14:03 petervalencic