Page 1 of 5 123 ... LastLast
Results 1 to 10 of 46

Thread: Photostory: A simple Python program

  1. #1
    Join Date
    Mar 2009
    Location
    Ireland
    Beans
    362
    Distro
    Ubuntu 12.04 Precise Pangolin

    Photostory: A simple Python program

    Hey guys - short and sweet post here as I'm pushed for time.

    Basically, I've developed a small application for ubuntu with Python. You can read all about it, and download it, at the following page (on my blog):

    http://tahakkistechblog.hostei.com/2...ct-photostory/

    If you guys could test this for me that'd be absolutely fantastic - so far I've only been able to test it with one webcam, and only on Lucid.

    Thanks!

  2. #2
    Join Date
    Apr 2009
    Location
    Canada
    Beans
    414
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Photostory: A simple Python program

    This is a really cool idea. I'll have to remember to do this.

    I have a suggestion though. From what I can tell there is no way to delete a photo if it did not turn out very well.

    Where are the photos stored since the first one I took, did not turn out.

    EDIT: Also I am on Lucid, and using the Playstation Eye

  3. #3
    Join Date
    Mar 2009
    Location
    Ireland
    Beans
    362
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Photostory: A simple Python program

    Is the program working alright for you apart from not being able to delete?

    Anyway, the photos are stored in /usr/share/photostory/pictures, but deleting them will mess up the database I had to make to number the pictures correctly. If you make a blueprint for this feature I will eventually add it. ^_^

  4. #4
    Join Date
    Apr 2009
    Location
    Canada
    Beans
    414
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Photostory: A simple Python program

    Ok thanks, I deleted the picture, and modified the db acordingly.

    I did notice one other problem. If you start the program, and then plug in the usb webcam, the preview will not show up. I have to restart the program to see the preview.

    Also a suggestion for the video creation. It would be nice to see a file browser.

  5. #5
    Join Date
    Mar 2009
    Location
    Ireland
    Beans
    362
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Photostory: A simple Python program

    Right, I'll add the file browser thing, put it down to laziness.

    As for the webcam, I COULD add a button saying 'Start Webcam' or similar, but I think it's easy enough to restart the program. Most people leave their webcams plugged in.

    I wonder how hard it is to get something into the software store? Anyone feel like designing a decent icon?

  6. #6
    Join Date
    Apr 2009
    Location
    Canada
    Beans
    414
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Photostory: A simple Python program

    I wipped up a quick 'Delete Picture' feature. I'm not familiar with lauchpad very well, so I'll just post it here.
    Attached Files Attached Files

  7. #7
    Join Date
    Mar 2009
    Location
    Ireland
    Beans
    362
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Photostory: A simple Python program

    Thanks! Why have you got both os.remove and del?

    Anyway, I'll try and add this in - a few wee changes needing made, mainly to the ind file. Thank youuu! ^_^

  8. #8
    Join Date
    Apr 2009
    Location
    Canada
    Beans
    414
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Photostory: A simple Python program

    del will get rid of the dictionary entry, while os.remove will get rid of the image from the pictures directory.

    I don't really know python, so there is probably a better way

  9. #9
    Join Date
    Mar 2009
    Location
    Ireland
    Beans
    362
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Photostory: A simple Python program

    No, that's great, just didn't realise.

    I will add this to the next release. Is there a name you'd like put in the credits?

  10. #10
    Join Date
    Apr 2009
    Location
    Canada
    Beans
    414
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Photostory: A simple Python program

    David Turner is my real name, so you can put that

    And ya I wasn't sure how to change the index when deleting it. Decrementing would not work for many cases since if you delete an image which is not today's date, then a day will be re-written.

    Would it not be better to name the images as the date of the image?

    ie. 2010-10-06.png

Page 1 of 5 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •