No commit activity in last 3 years
No release in over 3 years
Red Datasets GDK Pixbuf adds `#to_gdk_pixbuf` method to some datasets in Red Datasets. You can get `GdkPixbuf::Pixbuf` objects from a dataset.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 3.3.0
>= 0.0.7
 Project Readme

README

Name

Red Datasets GDK Pixbuf

Description

Red Datasets GDK Pixbuf adds GDK Pixbuf object export feature to Red Datasets.

Red Datasets GDK Pixbuf adds #to_gdk_pixbuf method to some datasets in Red Datasets. You can get GdkPixbuf::Pixbuf objects from a dataset.

Install

% gem install red-datasets-gdk-pixbuf

Usage

Here is an example to get images for CIFAR dataset by #to_gdk_pixbuf:

require "datasets"

cifar = Datasets::CIFAR.new
cifar.each.with_index do |record, i|
  pixbuf = record.to_gdk_pixbuf
  pixbuf.save("#{record.label}-#{i}.png")
end

License

The MIT license. See LICENSE.txt for details.