Issues (58)

scripts/redstickdetection.py (2 issues)

1
#!/usr/bin/env python
2
"""Segment points by colour from a pointcloud file and saves all reddish points
3
target pointcloud file. Autodectects ply, pcd and las files.
4
5
Usage: redstickdetection.py  [-h] <infile> <outfile>
6
"""
7
8
from docopt import docopt
9
from patty.segmentation.segRedStick import get_red_mask
10
from patty.utils import extract_mask, load, save
11
12
if __name__ == '__main__':
13
    args = docopt(__doc__)
0 ignored issues
show
Coding Style Naming introduced by
The name args does not conform to the constant naming conventions ((([A-Z_][A-Z0-9_]*)|(__.*__))$).

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
14
15
    pc = load(args['<infile>'])
0 ignored issues
show
Coding Style Naming introduced by
The name pc does not conform to the constant naming conventions ((([A-Z_][A-Z0-9_]*)|(__.*__))$).

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
16
    red_pc = extract_mask(pc, get_red_mask(pc))
17
    save(red_pc, args['<outfile>'])
18