Skip to content

๐Ÿ“น A Small OpenCV (Open Source Computer Vision) Example, who has the ability to detect multiple cat faces at the same time ๐Ÿฑ

License

Notifications You must be signed in to change notification settings

IDouble/Cat-Face-Detector-with-OpenCV-and-JavaFX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

23 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฑ Cat Face Detector with OpenCV and JavaFX โ˜•๏ธ

This is a Cat Face Detector written in Java using OpenCV (Open Source Computer Vision).
It's a small application, but it shows you how to:

  • Access to the camera
  • Make pictures with the camera and render it as a video (FPS / frames per second)
  • Check pictures for patterns (in this case cat faces ๐Ÿฑ)
  • Design a GUI for OpenCV Applications with JavaFX
  • Get the number of detected Cat Faces ๐Ÿฑ

๐Ÿฑ Examples (Images) ๐Ÿฑ

The Face Detecting capabilities of OpenCV (Open Source Computer Vision) are working very well.
It detects the faces that are detectable, when somebody doesn't look at the camera, the face isn't really detectable, but there are solutions to fix this problem. (Add more Patterns to search in Images as an example, but the application logically gets slower) (often a extended version of the haarcascade is available)

Example Image OpenCV Face Detection

Example Image OpenCV Face Detection with different Faces

You can see here very clearly how OpenCV works, by detecting patterns in faces.
The important Thing about this is, that it still was possible for the application to recognise the Cat Face Pattern (haarcascade_frontalcatface.xml) in different cats. ๐Ÿฑ

โ˜•๏ธ How to import a JavaFX Application to Eclipse โ˜•๏ธ

  1. Open your existing workspace in Eclipse.
  2. In the Eclipse menu, choose File -> Import.
  3. Expand the General folder and select Existing Projects into Workspace, then click Next.
  4. You should now see the Import Projects dialog.
  5. Select Finish.

Binance Ready to give crypto a try ? buy bitcoin and other cryptocurrencies on binance