Skip to content

creates a cluster of visual data, arranged by a given tiomeframe (day, month etc). The objects also contain exif information

License

Notifications You must be signed in to change notification settings

Phalanstere/TimestampedVisuals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TimestampedVisuals

creates a cluster of visual data, arranged by a given timeframe (day, month etc). The objects also contain exif information.

to install from npm, you write:

 	npm install timestamped-visuals 

You embed the library with a command like this:

 	TV = require('timestamped-visuals); 

To import the visual data and create an array of time clustered objects, you write:

	var x = new TV({
                path: "./../images",   // here you have to pass the path 
                filename: "image.json", // output file
                callback: done,
                timeframe: "day"
                });
  • the path parameter specifies the path where the images are located. Subfolders will also be scanned.
  • the filename specifies the output where the timestamped objects are written into. It should be *.json format
  • with the optional callback you can specify a callback function that receives the results, as a list of js objects.
  • with the timeframe parameter you define an ordering structure. For example 'day' will groop the files on a daily basis. Valid parameters are "minute", "hour", "day", "week", "month", "year"

In the examples folder you will find a sample that demonstrates a running example.

TimestampedVisuals works fine in conjunction with ClusterPainter


License

MIT

Copyright

Copyright © 2015. Phalanstere.

About

creates a cluster of visual data, arranged by a given tiomeframe (day, month etc). The objects also contain exif information

Resources

License

Stars

Watchers

Forks

Packages

No packages published