Real Time Face Detection Using OpenCV With Java

Published

Introduction: Real Time Face Detection Using OpenCV With Java

Face detection is the way of determining the locations of human faces in digital images or video stream like cam.

We use face detection in robotics and also in biometric recognition like in this instructable

https://www.instructables.com/id/Person-Authenticat...

In this instructable i show you how to do real time face detection using OpenCV library with Java programming language.

Requirements :

1- PC or laptop contains JDK (download JDK from this link)

http://www.oracle.com/technetwork/java/javase/down...

2- Netbeans IDE( download java se from this link https://netbeans.org/downloads/ )

3- USB webcam.

Steps :

See this video to know how to develop this application

Source Code :

https://www.github.com/emara-geek/real-time-face-detection-using-opencv-with-java

Share

    Recommendations

    • Creative Misuse Contest

      Creative Misuse Contest
    • Water Contest

      Water Contest
    • Clocks Contest

      Clocks Contest

    3 Discussions

    I Have Project Open Source Here

    https://www.instructables.com/id/Real-Time-Face-Detection-using-OpenCV-with-Java/

    Here is other example. I think it is simplier

    http://privateblog.info/java-tips-and-tricks/kak-poluchit-kartinku-s-kamery-s-pomoshhyu-opencv/

    run:

    Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no opencv_java in java.library.path

    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)

    at java.lang.Runtime.loadLibrary0(Runtime.java:845)

    at java.lang.System.loadLibrary(System.java:1084)

    at org.opencv.core.Mat.<clinit>(Mat.java:2141)

    at gui.FaceDetection.<init>(FaceDetection.java:32)

    at gui.FaceDetection$3.run(FaceDetection.java:208)

    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)

    at java.awt.EventQueue.access$200(EventQueue.java:103)

    at java.awt.EventQueue$3.run(EventQueue.java:682)

    at java.awt.EventQueue$3.run(EventQueue.java:680)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)

    BUILD SUCCESSFUL (total time: 3 seconds)