Skip to content

htm-community/image2sdr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image2sdr

NodeJS service to generate SDRs for images


GETTING STARTED

Copy config_example.yml into a file named config.yml

Enter your Cortical.io and Clarifai API keys in config.yml

Create a folder called "uploads", where uploaded files will temporarily be stored


OTHER OPTIONS

The URLs to Retina and Clarifai APIs can be changed if they are running in another location.

The Retina name and Clarifai model can be changed

The sparsity of the generated SDRs can be changed from default 0.02 (if set to 1, generates union SDRs)

The listening port can be modified

Dockerfile is included for running service in a container

If running in Docker, use the -v flag to mount a host folder to /usr/src/app/uploads

Set Environment to "Production" to disable verbose logging


TODO: Support proxy config


ROUTES

[POST] /

Expects an image file attachment, and returns an SDR.

HTTP code 200 indicates success.

Response is in JSON format: { sdr: [] }

About

NodeJS service to generate SDRs for images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published