map-coloring
map-coloring copied to clipboard
No module named 'resource'
File "C:\Users\Smkgames\Desktop\map-coloring-master\map_coloring.py", line 3, in <module>
import resource, sys
ModuleNotFoundError: No module named 'resource'```
This package is only available in Unix.
I need this bro what should I do to fix can you use equivalent library for windows?
I changed the code. Please clone/pull again to use it.
thanks but I have another error:
Traceback (most recent call last):
File "E:\Users\Smkgames\Documents\GitHub\map-coloring\map_coloring.py", line 6, in <module>
MAP_IMAGE_PATH = sys.argv[1]
IndexError: list index out of range
Please follow the README instructions.
python3 map_coloring.py iran.jpg
works like charm! thanks
You're welcome!
سلام مجدد
من می خوام این طرح رو رنگ کنم
ولی با ابزار شما نتونستم کار کنم
این دستی رنگ شده من چنین چیزی می خوام
- Resize your image to something with almost 400px width.
- Increase the number of coloring colors in the code: COLORING_COLORS = [(255, 0, 0), (0, 255, 0), (0, 0, 255), (0, 255, 255), (0, 0, 0)]
- Run the script and wait some minutes.
- You'll get this: