Skip to content

Real time image processing with ML (brain.js). Transform dark, unviewable images to unviewable.

Notifications You must be signed in to change notification settings

ch3ll0v3k/ML.real-time-image.night-vision.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ML.real-time-image.night-vision.js

ML-Network is only 24.0 Kb

Attach USB-Cam Open public_html/index.html is browser.

It will start in auto-mode


Real-time processing:

[print-all]

[print-all]

[print-all]

[print-all]

[print-all]

Create dataset
SUBSET=30; 

# Can be 10-50, or your own value, higher the value == increase train time && quality 
# 10-30 will produce good result

node --max-old-space-size=8192 create-dataset.SUBSET.js $SUBSET
Train network

it will train 10 times && save network

while true; do node --max-old-space-size=8192 "./train.brainjs.$SUBSET.js" "./dataset.512x512.SUBSET.$SUBSET.json"; sync; done
"Ask" network (predict)
node ask.brainjs.SUBSET.js "brain.SUBSET.$SUBSET.json" "./any/dark/image.png" && <your-image-viewer> "out.SUBSET.$SUBSET.png"

About

Real time image processing with ML (brain.js). Transform dark, unviewable images to unviewable.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages