pixelreco

package
v0.0.0-...-2c1810d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2018 License: BSD-3-Clause Imports: 9 Imported by: 0

README

Pixelreco

A weird recommender that maps the x axis of an image as the users, the y axis as the products and the gray level of the pixel as the score. Any image can be used as input.

The idea of recommending pixels of an image was taken from here.

How to start?

  • run locally: go run local/main.go -input image.jpg
  • start Kafka and ZooKeeper, for example, using this Makefile
  • run with Kafka: go run kafka/main.go -input image.jpg
  • see help message for details: go run local/main.go -h and go run kafka/main.go -h

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendGif

func AppendGif(g *gif.GIF, img image.Image) *gif.GIF

func ReadRatings

func ReadRatings(fname string) ([]cofire.Rating, image.Image)

Reads a jpeg or gif image and returns a list of ratings using x values as users, y values as products, and gray value as score.

func SaveGif

func SaveGif(g *gif.GIF, name string) error

func SaveImage

func SaveImage(img image.Image, name string, iteration int) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL