MCPcopy Create free account
hub / github.com/PaddlePaddle/Serving / SimplifyPolygon

Function SimplifyPolygon

core/predictor/tools/ocrtools/clipper.cpp:4079–4085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4077//------------------------------------------------------------------------------
4078
4079void SimplifyPolygon(const Path &in_poly, Paths &out_polys,
4080 PolyFillType fillType) {
4081 Clipper c;
4082 c.StrictlySimple(true);
4083 c.AddPath(in_poly, ptSubject, true);
4084 c.Execute(ctUnion, out_polys, fillType, fillType);
4085}
4086//------------------------------------------------------------------------------
4087
4088void SimplifyPolygons(const Paths &in_polys, Paths &out_polys,

Callers

nothing calls this directly

Calls 3

StrictlySimpleMethod · 0.80
AddPathMethod · 0.80
ExecuteMethod · 0.80

Tested by

no test coverage detected