Opencv-Face-Recognition | An android app for Face Recognition using OpenCV | Computer Vision library

 by   Ajay191191 Java Version: Current License: No License

kandi X-RAY | Opencv-Face-Recognition Summary

kandi X-RAY | Opencv-Face-Recognition Summary

Opencv-Face-Recognition is a Java library typically used in Artificial Intelligence, Computer Vision, OpenCV applications. Opencv-Face-Recognition has no bugs, it has no vulnerabilities and it has low support. However Opencv-Face-Recognition build file is not available. You can download it from GitHub.

This is an Android application for Face Detection using the OPENCV API.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              Opencv-Face-Recognition has a low active ecosystem.
              It has 99 star(s) with 76 fork(s). There are 19 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 3 open issues and 0 have been closed. On average issues are closed in 2104 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of Opencv-Face-Recognition is current.

            kandi-Quality Quality

              Opencv-Face-Recognition has 0 bugs and 0 code smells.

            kandi-Security Security

              Opencv-Face-Recognition has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              Opencv-Face-Recognition code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              Opencv-Face-Recognition does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              Opencv-Face-Recognition releases are not available. You will need to build from source code and install.
              Opencv-Face-Recognition has no build file. You will be need to create the build yourself to build the component from source.
              Opencv-Face-Recognition saves you 22640 person hours of effort in developing the same functionality from scratch.
              It has 44342 lines of code, 31 functions and 15 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed Opencv-Face-Recognition and discovered the below as its top functions. This is intended to give you an instant insight into Opencv-Face-Recognition implemented functionality, and help decide if they suit your requirements.
            • Called when a surface is changed
            • Set preview
            • Sets up camera parameters
            • Process processing
            • Get the height of the view
            • Get the frame width
            • Resume camera
            • Open camera to preview
            • Get the front - facing camera ID
            • Called when a surface holder is destroyed
            • Release the camera s camera
            • Called when the surface is created
            • Initializes the instance
            • Called when the preview is stopped
            • Called when the preview is started
            • Called when the view is released
            • Computes a bitmap from the input image
            • Save the image
            • Initializes the activity manager
            Get all kandi verified functions for this library.

            Opencv-Face-Recognition Key Features

            No Key Features are available at this moment for Opencv-Face-Recognition.

            Opencv-Face-Recognition Examples and Code Snippets

            No Code Snippets are available at this moment for Opencv-Face-Recognition.

            Community Discussions

            QUESTION

            How to do face recognition using euclidean distance in python
            Asked 2020-Apr-15 at 15:45

            I have a project where I need to include face recognition in it. I am referring to this article. This article is using open-face to get the face embeddings and its saving all the embeddings in a pickle file. Then its passing the face embeddings data to support vector machine which generates another pickle file. This file is later used to recognize and predict the face.

            This has been working and is giving me more than 80% accuracy. But this article has not explained on how to calculate euclidean distance. This I needed for my own research work.

            I can easily calculate euclidean distance between the face embedding of test image and face embeddings present in pickle file but I am not able to understand how to set the threshold value so that any distance more than that will be tagged as unknown.

            Can anyone please point me to some article where this has been explained and I can follow up from there. I have tried searching many articles but didnt get much results on this. Please help. Thanks

            ...

            ANSWER

            Answered 2020-Apr-15 at 15:45

            You can build 2 ( normal ) distributions.

            1. distances between same person's faces
            2. distances between different faces

            Intersection of these distributuins will be the threshold.

            Small illustration:

            Source https://stackoverflow.com/questions/61231411

            QUESTION

            LabelEncoder object is not subscriptable
            Asked 2020-Jan-04 at 17:47
            from sklearn.preprocessing import LabelEncoder
            from sklearn.svm import SVC
            import argparse
            import pickle
            
            # construct the argument parser and parse the arguments
            ap = argparse.ArgumentParser()
            ap.add_argument("-e", "--embeddings",default=r"C:\Users\osama\Desktop\opencv-face-recognition\face_detection_model\output",
                help="path to serialized db of facial embeddings")
            ap.add_argument("-r", "--recognizer", default=r"C:\Users\osama\Desktop\opencv-face-recognition\face_detection_model\output",
                help="path to output model trained to recognize faces")
            ap.add_argument("-l", "--le", default=r"C:\Users\osama\Desktop\opencv-face-recognition\face_detection_model\output",
                help="path to output label encoder")
            args = vars(ap.parse_args())
            # load the face embeddings
            print("[INFO] loading face embeddings...")
            data = pickle.loads(open(args["embeddings"], "rb").read())
            
            # encode the labels
            
            
            
               print("[INFO] encoding labels...")
                le = LabelEncoder()
                labels = le.fit_transform(data["names"])
            
            # train the model used to accept the 128-d embeddings of the face and
            # then produce the actual face recognition
            
            
             print("[INFO] training model...")
                recognizer = SVC(C=1.0, kernel="linear", probability=True)
                recognizer.fit(data["embeddings"], labels)
            
            # write the actual face recognition model to disk
            f = open(args["recognizer"], "wb")
            f.write(pickle.dumps(recognizer))
            f.close()
            
            #write the label encoder to disk
            f = open(args["le"], "wb")
            f.write(pickle.dumps(le))
            f.close()
            
            ...

            ANSWER

            Answered 2020-Jan-04 at 17:47

            You are unpickling an object here:

            Source https://stackoverflow.com/questions/59592867

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install Opencv-Face-Recognition

            You can download it from GitHub.
            You can use Opencv-Face-Recognition like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the Opencv-Face-Recognition component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/Ajay191191/Opencv-Face-Recognition.git

          • CLI

            gh repo clone Ajay191191/Opencv-Face-Recognition

          • sshUrl

            git@github.com:Ajay191191/Opencv-Face-Recognition.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link