Source code at github/mjheick/img2rubiks

json:
image file:
restraint in rubiks cubes: