Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FLIP_H = r.Flip('horizontal')
- FLIP_V = r.Flip('vertical')
- ROT_90 = r.Rotate('90')
- ROT_180 = r.Rotate('180')
- ROT_270 = r.Rotate('270')
- TRA_BACK = r.Transpose('\\')
- TRA_FRONT = r.Transpose('/')
- RULESET = [
- r.IfClassIs('left_only’).then(FLIP_H + r.ChangeLabel('right_only')),
- (r.IfDatasetIs('Belgium’) * r.IfClassIs('left_only')).then(ROT_180 + r.ChangeLabel('right_only')),
- (r.IfDatasetIs('Belgium’) * r.IfClassIs('left_only')).then(ROT_90 + r.ChangeLabel('straight_ahead_only')),
- (r.IfDatasetIs('Belgium’) * r.IfClassIs('left_only')).then(TRA_BACK + r.ChangeLabel('straight_ahead_only')),
- (r.IfDatasetIs('Belgium’) * r.IfClassIs('left_only')).then(FLIP_V),
- r.IfClassIs('straight_ahead_only').then(ROT_90 + r.ChangeLabel('right_only')),
- r.IfClassIs('straight_ahead_only').then(ROT_270 + r.ChangeLabel('left_only')),
- r.IfClassIs('straight_ahead_only').then(TRA_FRONT + r.ChangeLabel('right_only')),
- r.IfClassIs('straight_ahead_only').then(TRA_BACK + r.ChangeLabel('left_only')),
- r.IfClassIs('straight_ahead_only').then(FLIP_H)
- ]
Add Comment
Please, Sign In to add comment