Commit af1524e6 authored by Nathan/Eilisha Shiraini's avatar Nathan/Eilisha Shiraini
Browse files

Added a list of suggested interleaving modes for a set number of codes

parent db851bcf
......@@ -23,10 +23,16 @@ INTERLEAVING_MODES
- ``mode`` : The image mode, which is the value to pass to Pillow's ``Image.new()``
- ``maxcodes`` : The maximum number of codes that can be interleaved by this mode
- ``desc`` : A short one-line description of this interleaving mode
BEST_PARSE_MODE
List in which the string at index ``N`` is the recommended interleaving mode
for ``N+1`` codes.
"""
import random
from enum import Enum
random.seed()
class BWInterleave(Enum):
"""
Interleaving for single bit (black/white) image
......@@ -268,3 +274,5 @@ INTERLEAVING_MODES = {
'desc' : 'One code per bit on a 24 bits RGB image'
},
}
BEST_PARSE_MODE = ['single', random.choice(('redcyan', 'greenmagenta', 'blueyellow')), 'rgb'] + (['rgb2'] * 3) + (['fullgray'] * 2) + (['allcolors'] * 16)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment