MCbookworm
Posts: 5
Joined: Tue Jan 16, 2018 12:44 am

Minecraft Pi selfies with pre-existing photos

Tue Jan 16, 2018 12:49 am

Is there a way to do the Minecraft Pi selfie project with a picture already taken? I have no Pi camera, and even if I did I can't exactly retake some of the photos I'd like to use.

scotty101
Posts: 2987
Joined: Fri Jun 08, 2012 6:03 pm

Re: Minecraft Pi selfies with pre-existing photos

Tue Jan 16, 2018 10:06 am

Yes it should be easy to do..

The existing example uses PiCamera to save the photo and it is then read in using the commands on this page. You could just remove the code to take the photo and replace the "selfie.jpg" with the name of the photo you want to use.

You may have to convert the photograph to a lower resolution since the software is expecting a photo that is only 80x60 pixels. You could either do this with some photo editing software manually or use skimage to resize it automatically
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

Return to “Staffroom, classroom and projects”

Who is online

Users browsing this forum: No registered users and 1 guest