tree: 92823b791afac04c1a7f2838cddd8fff318cb93a [path history] [tgz]
  1. __init__.py
  2. camera_metadata_tag_info.mako
  3. camera_metadata_tags.mako
  4. CameraMetadataKeys.mako
  5. CameraPropertiesKeys.mako
  6. CaptureRequestKeys.mako
  7. CaptureResultKeys.mako
  8. docs.html
  9. html.mako
  10. metadata-check-dependencies
  11. metadata-generate
  12. metadata-parser-sanity-check
  13. metadata-validate
  14. metadata_helpers.py
  15. metadata_helpers_test.py
  16. metadata_model.py
  17. metadata_model_test.py
  18. metadata_parser_xml.py
  19. metadata_properties.xml
  20. metadata_properties.xsd
  21. metadata_template.mako
  22. metadata_validate.py
  23. README.md
camera/docs/README.md

Camera Metadata XML

Introduction

This is a set of scripts to manipulate the camera metadata in an XML form.

Generated Files

Many files can be generated from XML, such as the documentation (html/pdf), C code, Java code, and even XML itself (as a sanity check).

Dependencies

  • Python 2.7.x+
  • Beautiful Soup 4+ - HTML/XML parser, used to parse metadata_properties.xml
  • Mako 0.7+ - Template engine, needed to do file generation
  • Tidy - Cleans up the XML/HTML files.
  • XML Lint - Validates XML against XSD schema

Quick Setup (Ubuntu Precise):

sudo apt-get install python-mako sudo apt-get install python-bs4 sudo apt-get install tidy sudo apt-get install libxml2-utils #xmllint

Quick Setup (MacPorts)

sudo port install py27-beautifulsoup4 sudo port install py27-mako sudo port install tidy sudo port install libxml2 #xmllint