Skip to content

gen_pattern.py Pattern Maker has a border issues #18081

@IanMaquignaz

Description

@IanMaquignaz
System information (version)
  • OpenCV => 4.2
  • Operating System / Platform => Windows 64 Bit
  • Compiler => Python3
Detailed description

Borders for make_circles_patter() and and make_acircles_pattern() are inconsistent, resulting in an un-centered pattern.

What a 4x3 asymmetric circle gird with 40mm spacing looks like:
acircleGrid_4x3@40mm

What it should be:
fixed_acircleGrid_4x3@40mm

Steps to reproduce

Run gen_pattern.py and observe the result in Gimp (or another svg file viewer)

gen_pattern.py -o circleGrid_13x9@20mm.svg --rows 4 --columns 3 --type circles --square_size 40 -u mm --page_size A4
--radius_rate 5

Notes

Have resolved the issue, just need to merge

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions