How to use the simplification.cutil.simplify_coords function in simplification

To help you get started, we’ve selected a few simplification examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hanskrupakar / COCO-Style-Dataset-Generator-GUI / coco_dataset_generator / gui / contours.py View on Github external
def find_contours(*args):
    
    contours = FC(*args)
    
    simplified_contours = [np.array(simplify_coords(x, 1), dtype=np.int32) \
                                for x in contours]
    
    return simplified_contours

simplification

Fast linestring simplification using RDP or Visvalingam-Whyatt and a Rust binary

MIT
Latest version published 2 months ago

Package Health Score

73 / 100
Full package analysis