Questions tagged [pyclipper]

Cython wrapper for the C++ translation of the Angus Johnson's Clipper library

Pyclipper is a Cython wrapper exposing public functions and classes of the C++ translation of the Angus Johnson’s Clipper library.

7 questions
2
votes
1 answer

Failure to scale in pyclipper - TypeError: 'Zero' object is not iterable

I've just come up against a TypeError I've not seen before and can't figure out why it's occurring. Googling for the error TypeError: 'Zero' object is not iterable returns no results. I've tested in python 2.7 and 3.5 and the error is the same in…
Jamie Bull
  • 12,889
  • 15
  • 77
  • 116
1
vote
0 answers

Opening and Reading clipper header (.CH) data file with python 3.7

I am relatively new to python and am not even sure if this is at all possible as clipper header files are written entirely in C to my limited knowledge. I am hoping someone might have some idea of how to open a .CH file such as '''ECD1B.CH''' Below…
1
vote
0 answers

Pyclipper/Clipper: Intersection of Polylines with Polygon Edge

If I want to clip the intersections between evenly spaced Polylines and a closed rectangle Polygon, the outermost Polylines coincide with the edges of the Rectangle. Polylines Intersection with Rectangle Polygon(Green: Clip, Black: Subject, Red:…
1
vote
2 answers

Offsetting polygons by meters with clipper

I would like to create buffered polygons of locations (towns, villages etc) in order to use them for searching in radius. This is what I would like to achieve (units for ilustration): This is how I do it in pyclipper: import pyclipper coordinates…
Michal Gallovic
  • 4,109
  • 2
  • 18
  • 25
0
votes
1 answer

Cannot access clipboard in Heroku (Selenium webscraper - python)

I have deployed a very basic webscraper in heroku to periodically press a button, which then copies a link to the browsers clipboard, which I then store in a variable using: text = pyclip.paste() This works fine on my local machine that's running…
0
votes
0 answers

Is there a way to identify/detect shapes on a PDF or Illustrator file programmatically?

I'm trying to discover if there is a way, a library, or tool today that would help me to detect the shapes programmatically on a PDF file or an Illustrator File. I have seen some libraries such as Shapely or Pyclipper but haven't been able to use a…
lorelayb
  • 33
  • 8
0
votes
1 answer

how to import the module 'pyclipper' when using python3

I am training a CNN model (scene text detection) and there is a error Import Error: no module named pyclipper I have tryed pip3 install --default-timeout=100 pyclipper as what i did when facing other similiar import error. but it kept retrying,…
郑天烨
  • 1
  • 2