These are racks of wooden wish/prayer cards at a Japanese temple courtyard.  Some of the cards contain handwriting while others have identical iconic markings.  In front of the racks are boxes for depositing the cards.