{ "info": { "author": "Behnam Esfahbod", "author_email": "behnam@behnam.es", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Natural Language :: English", "Programming Language :: Python", "Topic :: Multimedia :: Graphics", "Topic :: Multimedia :: Graphics :: Viewers" ], "description": "=========================================\nLFP (Light Field Photography) File Reader\n=========================================\n\n\n\n*Version 2.0*\n\nProvides a Python library and command-line scripts to read Lytro LFP files.\nThere is also an enhanced viewer for Lytro LFP Picture files supporting\nlight-field picture refocusing and enhanced-depth-of-field/parallax view.\n\nThis version supports picture files generated by\n*Lytro Desktop application version 2.0*.\n\nTechnically, there are two types of LFP files: Picture and Storage. LFP\nStorage files are used to store the data and configurations for Lytro cameras,\nand LFP Picture (.lfp) files are used to store RAW and/or processed data for\nLytro light-field pictures.\n\n\nHow to Install\n==============\n\nDependencies\n------------\n\nThis is a pure-Python package and should work on any platform, but some\nfunctionalities depend on external Python and non-Python libraries.\n\n- Python Imaging Library:\n ``PIL`` (http://pypi.python.org/pypi/PIL) or\n ``Pillow`` (http://pypi.python.org/pypi/Pillow/).\n\n- GStreamer Python:\n ``gstreamer``, ``gst-python`` and the ``gst-plugins-ugly`` plugin set\n (http://gstreamer.freedesktop.org/modules/).\n\nInstall in Ubuntu\n-----------------\n\nRun following commands in a terminal::\n\n sudo apt-get install libjpeg-dev python-gst0.10 gstreamer0.10-plugins-ugly python-pip\n\n sudo pip install https://github.com/behnam/python-lfp-reader/tarball/master\n\n\nLFP File Format\n===============\n\n*LFP* is a new file format used by *Lytro Cameras* and *Lytro Desktop* app for\nRAW and Processed picture files, as well as storing camera software and\ninformation.\n\n**LFP Picture** files have a ``.lfp`` extension, and among these, the name of\nthe processed picture files end in ``-stk.lfp``, where *stk* stands for\nrefocuse \"stack\". Embadding JPEG data with some additional refocus data, the\n``stk.lfp`` files are designed to be used in the Lytro Desktop application and\non the web.\n\n**LFP Storage** files embed various data files, which are identified by a\npathname, i.e. ``C:\\CALIB\\WIFI_MAC_ADDR.TXT``.\n\n\nLFP Viewer\n===========\n\n**lfp-viewer.py**\n\n An enhanced light-field picture viewer, suppring *refocus* and\n *enhanced depth-of-field/parallax* features.\n\n You may provide the name of the Processed LFP Picture file in the\n command-line.::\n\n ./lfp-viewer.py samples/IMG_0001-stk.lfp\n\n\nCommand-line Scripts\n====================\n\nThis package provides the following command-line scripts.\n\n\nlfp-file.py\n-----------\n\n**Sub-command: info**\n\n Prints general information about any LFP file, including the metadata and\n data chunks (their size and sha1 ids).::\n\n ./lfp-file.py info samples/IMG_0003.lfp\n\n**Sub-command: export**\n\n Exports metadata and data sections of a generic file into separate files.::\n\n ./lfp-file.py export samples/IMG_0001.lfp\n\n**Sub-command: extract**\n\n Extract the content of a data chunk to standard output, giving its SHA1 id.::\n\n ./lfp-file.py extract samples/IMG_0001.lfp sha1-992ae2d9f755077e50de7b9b1357e873885b3382\n\n\nlfp-picture.py\n--------------\n\n**Sub-command: info**\n\n Provides detailed information about the LFP Picture file.::\n\n ./lfp_picture_info.py samples/IMG_0003.lfp\n\n The *Frame* section provides the information about the RAW picture data.\n\n the *Refocus-Stack* section tells you about the processed image data for\n refocues feature, including the number of refocues images and the size of the\n depth table.\n\n the *Parallax-Stack* section tells you about the processed image data for\n EDoF/Parallax feature, including the number of parallax images.\n\n**Sub-command: exporter**\n\n Exports raw, processed data and an all-in-focus image of the LFP Picture file\n into separate files.::\n\n ./lfp_picture_exporter.py samples/IMG_0001.lfp\n ./lfp_picture_exporter.py samples/IMG_0001-stk.lfp\n\n\nlfp-storage.py\n--------------\n\n**Sub-command: info**\n\n Prints general information about any LFP Storage file, including a list of\n embedded data files (their path and size).::\n\n ./lfp-storage.py info samples/IMG_0003.lfp\n\n**Sub-command: export**\n\n Exports metadata and embedded files of an LFP Storage file into separate files.::\n\n ./lfp-storage.py export samples/IMG_0001.lfp\n\n**Sub-command: extract**\n\n Extract the content of an embedded file to standard output, giving its path.::\n\n ./lfp-storage.py extract samples/IMG_0001.lfp \"C:\\\\CALIB\\\\ACC.TXT\"\n\n\nLFP Reader Library\n==================\n\n**LFP Reader library (``lfp_reader``)** provides direct reading access to all\ndata and metadata in any LFP files. For the processed LFP Picture files, you\ncan easily access the refocused and parallax data and the depth table. And for\nLFP Storage files, you can access embedded files easily using their pathname.\n\nFor more details, look at the module documentation.\n\n\nCode License\n============\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program. If not, see .\n\n\nLegal Notice\n============\n\nThis project is NOT affiliated with LYTRO, INC. Lytro (R) is a trademark of\nLYTRO, INC. \n\nThis project uses GStreamer plugins for H.264 decoding, thus includes no\nimplementation of H.264 algorithms.\n\nSome of this work is based on Nirav Patel's ``lfptools`` project and his\nanalysis on LFP file format. \n\nCopyright (C) 2012-2013 Behnam Esfahbod. \n\nPlease report any problems at .", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/behnam/python-lfp-reader/archive/python-lfp-reader-2.0.0.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://behnam.github.com/python-lfp-reader/", "keywords": null, "license": "GNU General Public License v3 or later (GPLv3+)", "maintainer": null, "maintainer_email": null, "name": "lfp-reader", "package_url": "https://pypi.org/project/lfp-reader/", "platform": "any", "project_url": "https://pypi.org/project/lfp-reader/", "project_urls": { "Download": "https://github.com/behnam/python-lfp-reader/archive/python-lfp-reader-2.0.0.zip", "Homepage": "http://behnam.github.com/python-lfp-reader/" }, "release_url": "https://pypi.org/project/lfp-reader/2.0.0/", "requires_dist": null, "requires_python": null, "summary": "LFP (Light Field Photography) File Reader", "version": "2.0.0" }, "last_serial": 763873, "releases": { "1.4.7": [ { "comment_text": "", "digests": { "md5": "e8f83507d4af744769a72290b2664654", "sha256": "c6758cab3c0006b6975c9f4dc74c2fd2ef9a8a8e691d67d8fe3f9fabe34a91cb" }, "downloads": -1, "filename": "lfp-reader-1.4.7.tar.gz", "has_sig": false, "md5_digest": "e8f83507d4af744769a72290b2664654", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23299, "upload_time": "2013-02-02T06:48:14", "url": "https://files.pythonhosted.org/packages/30/e1/4b8e7c8edcc09c5300b594e9d6e74fb23dd73c2832edc424be1c719d850c/lfp-reader-1.4.7.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "c8468a6fb31499a304c4969390f49d5c", "sha256": "4b668a0137cd59989e7abfcf4832b50f292eb466756e62bff7ba1a85556bec03" }, "downloads": -1, "filename": "lfp-reader-2.0.0.tar.gz", "has_sig": false, "md5_digest": "c8468a6fb31499a304c4969390f49d5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31576, "upload_time": "2013-03-04T04:43:05", "url": "https://files.pythonhosted.org/packages/a3/f1/c83facd2eefe1a29acb9100b7dd9ea5e86ec42f80cbfadb9c78867b13f51/lfp-reader-2.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c8468a6fb31499a304c4969390f49d5c", "sha256": "4b668a0137cd59989e7abfcf4832b50f292eb466756e62bff7ba1a85556bec03" }, "downloads": -1, "filename": "lfp-reader-2.0.0.tar.gz", "has_sig": false, "md5_digest": "c8468a6fb31499a304c4969390f49d5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31576, "upload_time": "2013-03-04T04:43:05", "url": "https://files.pythonhosted.org/packages/a3/f1/c83facd2eefe1a29acb9100b7dd9ea5e86ec42f80cbfadb9c78867b13f51/lfp-reader-2.0.0.tar.gz" } ] }