element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
PiCasso Design Challenge
  • Challenges & Projects
  • Design Challenges
  • PiCasso Design Challenge
  • More
  • Cancel
PiCasso Design Challenge
Blog PiCasso Adapting Art to Viewers:  Displaying Art, Blog #9
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: fmilburn
  • Date Created: 1 May 2019 9:45 PM Date Created
  • Views 1134 views
  • Likes 7 likes
  • Comments 4 comments
  • picasso
  • pi presents
  • 3D Printing
  • picasso_design
  • raspberry pi camera v2
  • ai
  • art
  • picasso_design_challenge
  • image recognition raspberry pi 3b+
  • pi face
Related
Recommended

PiCasso Adapting Art to Viewers:  Displaying Art, Blog #9

fmilburn
fmilburn
1 May 2019

Art is often made to appeal to a specific set of viewers.  This is the 9th blog in a series exploring the idea of using AI to recognize a viewer and adapt art to their age or interest.  The intent is to encourage early art appreciation while being attractive to all household members.

image

In previous posts the near completion of the build has been presented and image recognition capabilities demonstrated.  Art, in the form of short animations involving drawings by the children, was shown.  In this post the software that will control the art after image recognition occurs is described and demonstrated.

 

Pi Presents

 

Due to a lack of knowledge and experience with Linux and Python the software development for displaying and controlling art was progressing slowly.  The requirements are:

  • Easy to run on a Raspberry Pi
  • Able to manage multimedia - e.g. video, stills, sound, etc.
  • Able to read and output GPIO

 

 

So I did a search for existing software and found Pi Presents, "a toolkit for producing interactive multimedia applications for museums, visitor centres, and more".  It is Python based.  The video player uses omxplayer with all supported formats, and the image player supports all formats in the Python Imaging Library.  It also includes a message player and audio player.  Numerous working examples that demonstrate the capabilities are included.

 

Installation on a Raspberry Pi is straight forward and  the code and instructions are on github.

 

Using the Toolkit

 

Development with Pi Presents is done in a web based editor - knowledge of Python is not required.  Some files such as setting up GPIO are done in a text editor.  File arrangement is quirky and was non-intuitive to me but manageable.  I found documentation complete, but hard to follow in places.  The examples are a good place to start and served as jumping off places for modification.  What follows is not a tutorial - I don't consider myself sufficiently knowledgeable and a good tutorial covering all the capabilities would require a lot of effort.

 

Developing on the project hardware has become difficult since the enclosure was completed since pins, the SD card, and such are now difficult to access.  Accordingly Pi Presents development was done on a separate Raspberry Pi as seen just behind the keyboard and in front of the project enclosure in the photo below.

image

A breadboard and jumpers were used to simulate input from the Pi running the face recognition software and display was done on the large monitor in the background.  The most difficult part of setting up the software was understanding and setting up GPIO pins.  The screenshot below shows the web based editor after opening and selecting the presentation (in this case my PiCasso presentation, already working).

image

The window on the right side of the editor contains the "tracks" that will be played.  They are stored in a media directory and selected easily using the web based editor.  To enable playing them it is necessary to edit the controls in the "show" which is located in the upper left corner.  The control edit panel when opened is shown below.

image

Also shown on the left of the screen shot is a file that contains pin configuration which must be done in a text editor and placed in a named folder in the correct location. 

 

Pi Presents is powerful and I recommend it with the proviso that it is not a refined product like for example PowerPoint.  Expect to spend some time reading the manual and studying examples while figuring out the quirks as you learn to use it.

 

Demonstration

image

 

The video below demonstrates Pi Presents working with the art currently contributed by my grandchildren.  The other adults in the family have feigned interest in the project, but not much interest in contributing art.  So it might just be me and the kids, with me being the biggest kid.  The 404 message above is displayed when an unrecognized face, or one of the non-participating adults is recognized.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Upcoming Work

 

This weeks work was a milestone as all the pieces work and have been demonstrated now.  What remains is integration and refinement.  Upcoming work will include:

 

  • Integration and refinement
  • Additional art
  • Demonstration video and final documentation

 

Thanks for reading - comments and suggestions are always welcome.

 

Other Blogs in this Series

PiCasso Adapting Art to Viewers: Introduction  Blog #1

PiCasso Adapting Art to Viewers: OpenCV Face Detection, Blog #2

PiCasso Adapting Art to Viewers: Cabinet Design, Blog #3

PiCasso Adapting Art to Viewers: Pi talks to Pi, Blog #4

PiCasso Adapting Art to Viewers: Grandpa Shark, Blog #5

PiCasso Adapting Art to Viewers: More on Cabinet Design, Blog #6

PiCasso Adapting Art to Viewers:  New Art, Blog #7

PiCasso Adapting Art to Viewers:  Mechanical Complete, Blog #8

PiCasso Adapting Art to Viewers:  Displaying Art, Blog #9

  • Sign in to reply

Top Comments

  • dubbie
    dubbie over 6 years ago +3
    Looking very good. Your wiring looks a lot like my wiring - there just seems to be no sensible alternative to the spaghetti approach. Dubbie
  • genebren
    genebren over 6 years ago +2
    Frank, Coming along very nicely! The Pi Presents software seems like a great approach to managing your display portion of your project. Keep up the good work. Gene
  • fmilburn
    fmilburn over 6 years ago in reply to genebren +2
    Thanks Gene, Pi Presents ended up saving me a lot of time since I have no experience writing multimedia code in Python (or any other language). The ability to read and respond to GPIO is a differentiator…
  • fmilburn
    fmilburn over 6 years ago in reply to dubbie

    Thanks Dubbie,

     

    Yes wiring image ...   I plan on using ribbon jumpers eventually which should clean it up a bit. 

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fmilburn
    fmilburn over 6 years ago in reply to genebren

    Thanks Gene,

     

    Pi Presents ended up saving me a lot of time since I have no experience writing multimedia code in Python (or any other language).  The ability to read and respond to GPIO is a differentiator plus it handles all the media types I need.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • genebren
    genebren over 6 years ago

    Frank,

     

    Coming along very nicely!  The Pi Presents software seems like a great approach to managing your display portion of your project.  Keep up the good work.

     

    Gene

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dubbie
    dubbie over 6 years ago

    Looking very good. Your wiring looks a lot like my wiring - there just seems to be no sensible alternative to the spaghetti approach.

     

    Dubbie

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube