Back to Camera Hacker |
|
Can i use my camera to read an ebook ?I was playing around with my camera (cannon a75) today, taking photographs from pages of books, and it was interesting how easy it was to read a page from a book, that i had photographed. I have often thought about how awesome it would be to beable to put images onto my memory card, and view them on the lcd screen. Sadly past experiments have shown that the camera ignors non native images. Is there anyway around this? It seems all someone would have to do is build a program that converts outside images to mimic the cannon image encode? Thanks you for your replies.
Willuknight
Yes, we recently figured it out on a Sony digital camera . . . see "using Sony digital camera as a picture viewer". You can download the python program to do it. It should work with Canon digital cameras as well. Try it and let us know.
Chieh Cheng
hi Chieh Cheng. You'll have to help me as i have never tried to run a python script before. I placed 3 images and the script in a directory called NEW on my desktop. THe images are named 01.jpg - 03.jpg. I cmd'd to the directory and ran the script with: C:\Documents and Settings\Willuknight\Desktop\NEW\DCF.py "01" [..."02" ] Which unsurprisingly didn't do anything except open the python script in notepad.
willuknight
willuknight, DCF.py is a Python script. The Python interpreter doesn't come with Windows. However, you can download it for free at The Python Programming Language -- Official Website. Once you are there, click on "DOWNLOAD", and then pick "Python 2.4.3 Windows installer" (as of this writing). Be warned that I have never used Python on Windows before (I use it on Linux). But the Python web site has documentations for you to follow along. Once you have Python installed, you can execute the script on your three images with the following command: DCF.py 01.jpg 02.jpg 03.jpg If those are the only images in the current directory, you can use the following command with wild-card: DCF.py *.jpg
Chieh Cheng
Thanks for that Chieh Cheng. I've downloaded and installed the python interpreter. C:\Documents and Settings\Willuknight\Desktop\NEW>dcf.py *.jpg Any ideas what this means?
willuknight
It means you are missing the "Image" module. Doing a search on Google turned up the "Python Imaging Library (PIL)" written by PythonWare. Give it a try by downloading the library from their web site.
Chieh Cheng
OMG it works ! Awesome! I put the pictures on the camera and i can actually view them :D :D Thankyou ! I'll write up a guide about this and put it on my website. Cheers!
Willuknight
mm something i forgot to mention. The wildcard search doesnt seem to work. I have to do it filename by file name, which isn't really practical for doing 100's of images like i wanted too. "DCF.py *.jpg"
Willuknight
Did you actually used double-quotes on the command-line? Try the command without double-quotes.
Chieh Cheng
yeah, it wasn't working when i tried it the first time without the quotes. Also i've noticed that not all images seem to work. I converted 20 pages (jpgs) from a manga using the code, yet only about half of those worked. The other half said format not compatible. I'm puzzeled as to why some of the pages worked, and some didn't, when they're pretty similar format. All would have been edited by the same program, have the same colour resolution and page size...
Willuknight
Hey Willu, here's a method since you're using the command line: You can make a batch file that can gather all of the *.JPG into a list and then run this thing on every JPG in that list. Put this into notepad: REM Turn off displaying extra stuff There ya go! Happy ... python-ing...or something. :D
Aikeru
Arigatou Aikeru :) i once tried to use a batch file before - it didn't work :D hopefully this one does. Cheers.
Willuknight
TrackBack
Title: using Sony digital camera as a picture viewer Add Comment
Messages, files, and images copyright by respective owners. |
69 Users Online
$10000-above $5000-$9999 $2000-$4999 $1000-$1999 $500-$999 $200-$499 $100-$199 $50-$99 $25-$49 $0-$24 Gift Certificate |
|
Copyright © 1998 - 2009 by Chieh Cheng. All Rights Reserved. |