#!/usr/bin/env python from gamera import gendoc if __name__ == '__main__': # Step 1: # Import all of the plugins to document. # Be careful not to load the core plugins, or they # will be documented here, too. # If the plugins are not already installed, we'll just ignore # them and generate the narrative documentation. try: from gamera.toolkits.gamera_mei.plugins import clear except ImportError: print "WARNING:" print "This `gamera_mei` toolkit must be installed before generating" print "the documentation. For now, the system will skip generating" print "documentation for the plugins." print # Step 2: # Generate documentation for this toolkit # This will handle any commandline arguments if necessary gendoc.gendoc()
if __name__ == '__main__': # Step 1: # Import all of the plugins to document. # Be careful not to load the core plugins, or they # will be documented here, too. # If the plugins are not already installed, we'll just ignore # them and generate the narrative documentation. try: from gamera.toolkits.greekocr.plugins import clear except ImportError: print "WARNING:" print "This `greekocr` toolkit must be installed before generating" print "the documentation. For now, the system will skip generating" print "documentation for the plugins." print # Step 2: # Generate documentation for this toolkit # This will handle any commandline arguments if necessary gendoc.gendoc(classes=[("gamera.toolkits.greekocr.greekocr", "GreekOCR", "__init__" +\ " load_trainingdata" +\ " get_page_glyphs" +\ " process_image" +\ " save_debug_images" +\ " save_text_unicode" +\ " save_text_teubner")], plugins=[], sourceforge_logo=False)
#!/usr/bin/env python from gamera import gendoc if __name__ == '__main__': # Step 1: # Import all of the plugins to document. # Be careful not to load the core plugins, or they # will be documented here, too. # If the plugins are not already installed, we'll just ignore # them and generate the narrative documentation. try: from gamera.toolkits.new_binarization_toolkit.plugins import clear except ImportError: print "WARNING:" print "This `new_binarization_toolkit` toolkit must be installed before generating" print "the documentation. For now, the system will skip generating" print "documentation for the plugins." print # Step 2: # Generate documentation for this toolkit # This will handle any commandline arguments if necessary gendoc.gendoc()
# them and generate the narrative documentation. try: from gamera.toolkits.psaltiki.plugins import * except ImportError: print "WARNING:" print "The `psaltiki` toolkit must be installed before generating" print "the documentation. For now, the system will skip generating" print "documentation for the plugins." print # Step 2: # Generate documentation for this toolkit # This will handle any commandline arguments if necessary gendoc.gendoc(classes=[("gamera.toolkits.psaltiki.psaltiki_page",\ "PsaltikiPage",\ "__init__" +\ " get_wide_ccs" +\ " find_baselines" +\ " remove_lyrics" +\ " mark_characteristic_dimensions" +\ " characteristic_dimensions"), ("gamera.toolkits.psaltiki.psaltiki_neumes",\ "PsaltikiNeumes",\ "__init__" +\ " create_grouping_list" +\ " correct_outliers" +\ " coloring_groups" +\ " get_chant_code" +\ " get_txt_output")],\ plugins=["Psaltiki","Preprocessing"])
gendoc.gendoc(classes=[("gamera.toolkits.musicstaves.musicstaves", "StaffObj", "__init__"), ("gamera.toolkits.musicstaves.musicstaves", "MusicStaves", "__init__ remove_staves get_staffpos"), ("gamera.toolkits.musicstaves.musicstaves_rl_simple", "MusicStaves_rl_simple", "remove_staves get_staffpos"), ("gamera.toolkits.musicstaves.musicstaves_rl_fujinaga", "MusicStaves_rl_fujinaga", "remove_staves get_staffpos"), ("gamera.toolkits.musicstaves.musicstaves_rl_roach_tatem", "MusicStaves_rl_roach_tatem", "remove_staves get_staffpos"), ("gamera.toolkits.musicstaves.musicstaves_rl_carter", "MusicStaves_rl_carter", "remove_staves get_staffpos"), ("gamera.toolkits.musicstaves.musicstaves_linetracking", "MusicStaves_linetracking", "remove_staves get_staffpos"), ("gamera.toolkits.musicstaves.musicstaves_skeleton", "MusicStaves_skeleton", "__init__ remove_staves get_staffpos"), ("gamera.toolkits.musicstaves.stafffinder", "StafflineAverage", "__init__ to_average to_polygon to_skeleton"), ("gamera.toolkits.musicstaves.stafffinder", "StafflinePolygon", "__init__ to_average to_polygon to_skeleton"), ("gamera.toolkits.musicstaves.stafffinder", "StafflineSkeleton", "__init__ to_average to_polygon to_skeleton"), ("gamera.toolkits.musicstaves.stafffinder", "StaffFinder", "__init__ find_staves show_result get_average get_polygon get_skeleton"), ("gamera.toolkits.musicstaves.stafffinder_miyao", "StaffFinder_miyao", "find_staves"), ("gamera.toolkits.musicstaves.stafffinder_projections", "StaffFinder_projections", "find_staves"), ("gamera.toolkits.musicstaves.stafffinder_dalitz", "StaffFinder_dalitz", "find_staves"), ("gamera.toolkits.musicstaves.plugins.skeleton_utilities", "SkeletonSegment", "__init__"), ("gamera.toolkits.musicstaves.equivalence_grouper", "EquivalenceGrouper", "__init__ join joined __iter__") ], plugins=["MusicStaves"])
gendoc.gendoc(classes=[ ("gamera.toolkits.musicstaves.musicstaves", "StaffObj", "__init__"), ("gamera.toolkits.musicstaves.musicstaves", "MusicStaves", "__init__ remove_staves get_staffpos"), ("gamera.toolkits.musicstaves.musicstaves_rl_simple", "MusicStaves_rl_simple", "remove_staves get_staffpos"), ("gamera.toolkits.musicstaves.musicstaves_rl_fujinaga", "MusicStaves_rl_fujinaga", "remove_staves get_staffpos"), ("gamera.toolkits.musicstaves.musicstaves_rl_roach_tatem", "MusicStaves_rl_roach_tatem", "remove_staves get_staffpos"), ("gamera.toolkits.musicstaves.musicstaves_rl_carter", "MusicStaves_rl_carter", "remove_staves get_staffpos"), ("gamera.toolkits.musicstaves.musicstaves_linetracking", "MusicStaves_linetracking", "remove_staves get_staffpos"), ("gamera.toolkits.musicstaves.musicstaves_skeleton", "MusicStaves_skeleton", "__init__ remove_staves get_staffpos"), ("gamera.toolkits.musicstaves.stafffinder", "StafflineAverage", "__init__ to_average to_polygon to_skeleton"), ("gamera.toolkits.musicstaves.stafffinder", "StafflinePolygon", "__init__ to_average to_polygon to_skeleton"), ("gamera.toolkits.musicstaves.stafffinder", "StafflineSkeleton", "__init__ to_average to_polygon to_skeleton"), ("gamera.toolkits.musicstaves.stafffinder", "StaffFinder", "__init__ find_staves show_result get_average get_polygon get_skeleton" ), ("gamera.toolkits.musicstaves.stafffinder_miyao", "StaffFinder_miyao", "find_staves"), ("gamera.toolkits.musicstaves.stafffinder_projections", "StaffFinder_projections", "find_staves"), ("gamera.toolkits.musicstaves.stafffinder_dalitz", "StaffFinder_dalitz", "find_staves"), ("gamera.toolkits.musicstaves.stafffinder_stable_path", "StaffFinder_stable_path", "find_staves"), ("gamera.toolkits.musicstaves.plugins.skeleton_utilities", "SkeletonSegment", "__init__"), ("gamera.toolkits.musicstaves.equivalence_grouper", "EquivalenceGrouper", "__init__ join joined __iter__") ], plugins=["MusicStaves"])
#!/usr/bin/env python from gamera import core, gendoc if __name__ == "__main__": core.init_gamera() gendoc.gendoc(classes=[ ("gamera.core", "ImageInfo", 'x_resolution y_resolution ncols nrows depth ncolors'), ("gamera.core", "ImageData", 'nrows ncols page_offset_x page_offset_y stride size bytes pixel_type storage_format'), ("gamera.core", "RGBPixel", 'red green blue hue saturation value cie_x cie_y cie_z cie_Lab_L cie_Lab_a cie_Lab_b cyan magenta yellow') ])
#!/usr/bin/env python from gamera import core, gendoc if __name__ == "__main__": core.init_gamera() gendoc.gendoc(classes=[ ("gamera.core", "ImageInfo", 'x_resolution y_resolution ncols nrows depth ncolors'), ("gamera.core", "ImageData", 'nrows ncols page_offset_x page_offset_y stride size bytes pixel_type storage_format' ), ("gamera.core", "RGBPixel", 'red green blue hue saturation value cie_x cie_y cie_z cie_Lab_L cie_Lab_a cie_Lab_b cyan magenta yellow' ) ])