Coder Social home page Coder Social logo

facedetectionincpp's Introduction

Face Detection in Cpp

Sample

Alt Input

Output

Alt Output

OpenCV Face Detection C++ Project

This C++ project demonstrates how to use the OpenCV library to perform face detection in an image. It imports the following OpenCV headers:

  1. opencv2/objdetect/objdetect.hpp
  2. opencv2/imgproc/imgproc.hpp
  3. opencv2/highgui/highgui.hpp

Project Description

The provided C++ code performs the following tasks:

  1. It loads a pre-trained Haar Cascade Classifier for face detection.

  2. It prompts the user to enter the path to an image file for face detection.

  3. The code reads the specified image and performs face detection on it.

  4. Detected faces are highlighted with red rectangles in the image.

  5. The processed image is saved as "output.jpg."

Prerequisites

To run this project, you need the following prerequisites:

  1. C++ Compiler: Ensure that you have a C++ compiler (e.g., g++) installed on your system.

  2. OpenCV: OpenCV must be installed on your system. You can download and install OpenCV from the official website: OpenCV Downloads.

Getting Started

To run the provided C++ code:

  1. Clone this repository to your local machine using Git:

    git clone https://github.com/deepak-gurjar07/FaceDetectioninCpp   
  2. Navigate to the project directory:

    cd "FaceDetectioninCpp\Face Recognisation\Face Recognisation"
  3. Compile the code using your C++ compiler:

    g++ -o main FD.cpp `pkg-config --cflags --libs opencv`
  4. Run the compiled executable:

    ./main

You can modify the code to use your own image path or make any desired improvements to the face detection process.

License

This project is open source and distributed under the MIT License. You are free to use, modify, and distribute it as per the terms of the license.

Please feel free to reach out if you have any questions or need further assistance with this project.

Happy face detection!

facedetectionincpp's People

Contributors

abhaykushwah avatar deepak-gurjar07 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

abhaykushwah

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.