title: use brain.js ( neural network in js ) to learn contrast of background image of element
body: <p>I'm interested in using brain.js: <a href="https://github.com/harthur/brain" rel="nofollow">https://github.com/harthur/brain</a></p>
  
  <p>There is a provided demo that shows how to train the neural network to recognise colour contrast, but how can I set it up so that it can learn, from input, which colour text ( white or black ) looks better on different background images?</p>
  
  <p>Here is that demo: <a href="http://harthur.github.io/brain/" rel="nofollow">http://harthur.github.io/brain/</a></p>
  
  <p>I have a set of background images that I want to train against. And then I want to save that training data and be able to add it to a site that uses those background images and that way be able to determine which colour text to use on top of them.</p>