Showing posts with label photo. Show all posts
Showing posts with label photo. Show all posts
Portugal
![]() |
| from: os externos |
When i made this picture little did i know that almost 3 years later I would be blogging it from Estonia.
Estonian Wildlife Live Stream
See here and look for links that say striim.
I know of these 2:
I know of these 2:
- Wild Pig: mms://tv.eenet.ee/siga
- Eagles: mms://tv.eenet.ee/kotkas
re-Painting Mona Lisa
genetic algorithms re-painting pictures
The goal is to get an image represented as a collection of overlapping polygons of various colors and transparencies.
We start from random 50 polygons that are invisible. In each optimization step we randomly modify one parameter (like color components or polygon vertices) and check whether such new variant looks more like the original image. If it is, we keep it, and continue to mutate this one instead.
Fitness is a sum of pixel-by-pixel differences from the original image. Lower number is better.
The goal is to get an image represented as a collection of overlapping polygons of various colors and transparencies.
We start from random 50 polygons that are invisible. In each optimization step we randomly modify one parameter (like color components or polygon vertices) and check whether such new variant looks more like the original image. If it is, we keep it, and continue to mutate this one instead.
Fitness is a sum of pixel-by-pixel differences from the original image. Lower number is better.
little photo organizer
Place this script in a folder full of pictures, run it, and it will organize the pictures into folders by the day they were taken.
Run it as: ruby photo_organizer.rb
Code:
Run it as: ruby photo_organizer.rb
Code:
#photo_organizer.rb
require 'fileutils'
def fileShortDate(fich)
dt = File.mtime(fich)
dt.strftime("%d-%m-%Y")
end
def isImagem(fich)
File.extname(fich).upcase == ".JPG" or File.extname(fich).upcase == ".PNG"
end
print "Creating dirs "
Dir.foreach(".") { |x| Dir.mkdir(fileShortDate(x)) and print(".") if (isImagem(x)) unless File.directory?(fileShortDate(x)) }
print "\nCopying pics "
Dir.foreach(".") { |x| FileUtils.mv(x, fileShortDate(x)+'/'+x) and print(".") if (isImagem(x)) }
Turn Your Point-And-Shoot into a Super Camera
Subscribe to:
Posts (Atom)













