{ "info": { "author": "Siva Praveen Rayapudi", "author_email": "rsivapraveen001@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "\nF-Identify (Face Identify)\n##########################\n\nPython Script to identify a known face in a video.\n\nContents\n\n.. contents:: :local:\n\nSummary\n=======\n\nThis is a command line python program to identify a known face/(s) in a video/(s) built using dlib's \nstate-of-art face recognition with deep learning. You can also invoke this script \nfrom another python file.\n\nThis is a small and ready-to-run program. There are two dependencies that will get installed \nwhen you install this repo.\n1. open-cv\n2. facerecognition\n\nCompatability\n=============\n\nThis program is compatible with both the versions of python - 2.x and 3.x (recommended).\nIt is a download-and-run program with no changes to the file.\nYou will just have to specify parameters through the command line.\n\nInstallation\n============\n\nYou can use **one of the below methods** to download and use this repository.\n\nUsing pip\n\n.. code-block:: bash\n\n $ pip install fidentify\n\nManually using CLI\n\n.. code-block:: bash\n\n $ git clone https://github.com/NoSkillGuy/fidentify.git\n $ cd fidentify && sudo python setup.py install\n\nManually using UI\n\nGo to the `repo on github `__ ==> Click on 'Clone or Download' ==> Click on 'Download ZIP' and save it on your local disk.\n\nUsage - Using Command Line Interface\n====================================\n\nIf installed via pip or using CLI, use the following command:\n\n.. code-block:: bash\n\n $ fidentify [Arguments...]\n\nIf downloaded via the UI, unzip the file downloaded, go to the 'fidentify' directory and use one of the below commands:\n\n.. code-block:: bash\n\n $ python3 fidentify.py [Arguments...]\n OR\n $ python fidentify.py [Arguments...]\n\n\nUsage - From another python file\n================================\n\nIf you would want to use this library from another python file, you could use it as shown below:\n\n.. code-block:: python\n\n from fidentify import fidentify\n\n fidentify_obj = fidentify.fidentify()\n fidentify_obj.identify({})\n\n\nArguments\n=========\n\n+-------------------+-------------+-------------------------------------------------------------------------------------------------------------------------------+\n| Argument | Short hand | Description |\n+===================+=============+===============================================================================================================================+\n| config_file | cf | You can pass the arguments inside a config file. This is an alternative to passing arguments on the command line directly. |\n| | | |\n| | | Please refer to the |\n| | | `config file format `__ below |\n| | | |\n| | | * If 'config_file' argument is present, the program will use the config file and command line arguments will be discarded |\n| | | * Config file can only be in **JSON** format |\n| | | * Please refrain from passing invalid arguments from config file. Refer to the below arguments list |\n+-------------------+-------------+-------------------------------------------------------------------------------------------------------------------------------+\n| known_images_path | kip | Specify the `known images path`. This path should contain images only from these whitelisted formats (jpg, png, gif, bmp). |\n| | | The name of the person is syntactically drawn from the filename without the extension. |\n| | | Default known_images_path - 'images/' |\n| | | Example: |\n| | | - If the file name is Steve Jobs.png, then the name derived is Steve Jobs |\n| | | - If the file name is Elon Musk.png, then the name derived is Elon Musk |\n+-------------------+-------------+-------------------------------------------------------------------------------------------------------------------------------+\n| videos_path | vp | The path of the video folder, videos are directly picked from the folder and searches for all the knonw faces listed in |\n| | | known_images_path. |\n| | | NOTE: video path should be full path. Example: for ~/downloads use $HOME/downloads. |\n+-------------------+-------------+-------------------------------------------------------------------------------------------------------------------------------+\n| download_path | dp | This is the place where all your fidentify downloads will be located. |\n| | | The path will be auto created if the given download_path doesn't exist. |\n| | | Default download path - `downloads/` |\n| | | |\n+-------------------+-------------+-------------------------------------------------------------------------------------------------------------------------------+\n| download_format | df | Denotes the format/extension of the file that will be downnloaded |\n| | | |\n| | | `Possible values: json, CSV, inline` |\n| | | `Default Value: inline` |\n| | | |\n| | | If the -df argument is mentioned either `json` or `CSV` and -dp is not metioned `downloads/` path is auto created in the |\n| | | current working directory |\n+-------------------+-------------+-------------------------------------------------------------------------------------------------------------------------------+\n| help | h | show the help message regarding the usage of the above arguments |\n+-------------------+-------------+-------------------------------------------------------------------------------------------------------------------------------+\n\nConfig File Format\n==================\n\nYou can either pass the arguments directly from the command as in the examples below or you can pass it through a config file. Below is a sample of how a config\nfile looks.\n\nYou can pass more than one record through a config file. The below sample consist of two set of records. The code will iterate through each of the record and\ndownload images based on arguments passed.\n\n.. code:: json\n\n {\n \"Arguments\":\n {\n \"known_images_path\": \"/users/NoSkillGuy/mysites/fidentify/paths/images_path\",\n \"videos_path\": \"/users/NoSkillGuy/mysites/fidentify/paths/videos_path\"\n \"download_path\": \"/users/NoSkillGuy/mysites/fidentify/downloads\",\n \"download_format\": \"json\"\n }\n }\n\n\nExamples\n========\n\n- If you are calling this library from another python file, below is the sample code\n\n.. code-block:: python\n\n from fidentify import fidentify #importing the library\n\n response = fidentify.fidentify() #class instantiation\n\n arguments = {\n \"known_images_path\": \"/users/NoSkillGuy/mysites/fidentify/images\",\n \"download_path\":\"/users/NoSkillGuy/mysites/fidentify/downloads\",\n \"download_format\":\"json\"\n } #creating list of arguments\n \n response.capture(arguments) #passing the arguments to the function\n\n\n- If you are passing arguments from a config file, simply pass the config_file argument with name of your JSON file\n\n.. code-block:: bash\n\n $ fidentify -cf example.json\n\n- Simple example of using arguments\n\n.. code-block:: bash\n\n $ fidentify --known_images_path /users/NoSkillGuy/mysites/fidentify/images --download_path /users/NoSkillGuy/mysites/fidentify/downloads --download_format json\n\n- To use the short hand command\n\n.. code-block:: bash\n\n $ fidentify --kip /users/NoSkillGuy/mysites/fidentify/images --dp /users/NoSkillGuy/mysites/fidentify/downloads --df json\n\n--------------\n\nTroubleshooting\n===============\n\n**## fidentify: command not found**\n\nWhile using the above commands, if you get ``Error: -bash: fidentify: command not found`` then you have to set the correct path variable.\n\nTo get the details of the repo, run the following command:\n\n.. code-block:: bash\n\n $ pip show -f fidentify \n\nyou will get the result like this:\n\n.. code-block:: bash\n\n Location: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages\n Files:\n ../../../bin/fidentify\n\ntogether they make: ``/Library/Frameworks/Python.framework/Versions/2.7/bin`` which you need add it to the path:\n\n.. code-block:: bash\n\n $ export PATH=\"/Library/Frameworks/Python.framework/Versions/2.7/bin\"\n\n\n**## [Errno 13] Permission denied creating directory 'downloads'**\n\nWhen you run the command, it downloads the images in the current directory (the directory from where you are running the command). If you get permission denied error for creating the `downloads directory`, then move to a directory in which you have the write permission and then run the command again.\n\n\n**## Permission denied while installing the library**\n\nOn MAC and Linux, when you get permission denied when installing the library using pip, try doing a user install.\n\n.. code-block:: bash\n\n $ pip install fidentify --user\n\nYou can also run pip install as a superuser with ``sudo pip install fidentify`` but it is not generally a good idea because it can cause issues with your system-level packages.\n\nContribute\n==========\n\nAnyone is welcomed to contribute to this script.\nIf you would like to make a change, open a pull request.\nFor issues and discussion visit the\n`Issue Tracker `__.\n\nIn Development\n==============\n\nIf this project gets 10 Stars, then i will work on the following \n\n1. Now it checks every frame of the video. should make this optional. Like how many frames you want to check per second. \n2. Documentation \n3. Examples\n4. Tests\n\nUse Cases\n=========\n\n1. Suspect Detection: Lets say there is a robbery, we got all the security camera videos, then we can easily check the videos if any known suspect is responsible for the robbery.\n2. Someone Missing: Someone went missing, Police can easily get all the security camera videos and then they will automatically know where all places the missing person is.", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/NoSkillGuy/fidentify/tarball/1.0.0", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/NoSkillGuy/fidentify", "keywords": "face-recognition face-detection face detection recognition terminal command-line work", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "fidentify", "package_url": "https://pypi.org/project/fidentify/", "platform": "", "project_url": "https://pypi.org/project/fidentify/", "project_urls": { "Download": "https://github.com/NoSkillGuy/fidentify/tarball/1.0.0", "Homepage": "https://github.com/NoSkillGuy/fidentify" }, "release_url": "https://pypi.org/project/fidentify/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Python Script to identify faces in a video. It is a ready-to-run code! ", "version": "1.0.0" }, "last_serial": 3778262, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "fdb57508afa04d08e1c95310080f2b7e", "sha256": "5825f7a9109e10ad4fb6098033f9bd5aa9918f759d34855d56abe7edc55b617d" }, "downloads": -1, "filename": "fidentify-1.0.0.tar.gz", "has_sig": false, "md5_digest": "fdb57508afa04d08e1c95310080f2b7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8736, "upload_time": "2018-04-18T19:33:17", "url": "https://files.pythonhosted.org/packages/af/1a/5ae87bf72e4ffe1a2e96acec278428f76426900e926ff59013e496b5231c/fidentify-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fdb57508afa04d08e1c95310080f2b7e", "sha256": "5825f7a9109e10ad4fb6098033f9bd5aa9918f759d34855d56abe7edc55b617d" }, "downloads": -1, "filename": "fidentify-1.0.0.tar.gz", "has_sig": false, "md5_digest": "fdb57508afa04d08e1c95310080f2b7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8736, "upload_time": "2018-04-18T19:33:17", "url": "https://files.pythonhosted.org/packages/af/1a/5ae87bf72e4ffe1a2e96acec278428f76426900e926ff59013e496b5231c/fidentify-1.0.0.tar.gz" } ] }