Pypotrace.

Potrace Python ¹ÙÀεù
Áö±Ý ´Ù¿î·Îµå

Pypotrace. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • GPL
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Luper Rouch
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://projects.luper.fr/misc/wiki/pyflu

Pypotrace. ű×


Pypotrace. ¼³¸í

Potrace Python ¹ÙÀεù Pypotrace´Â Potrace Library.Example »ç¿ë¿¡ ´ëÇÑ °´Ã¼ ÁöÇâ API¸¦ Á¦°øÇÕ´Ï´Ù. ¹ÙÀεùÀº numpy ¹è¿­·Î Ç¥½ÃµÇ´Â ÀÔ·Â À̹ÌÁö·Î ÀÛ¾÷ÇÕ´Ï´Ù. numpy °¡Á® ¿À±â npimport potrace # middledata = np.zeros¿¡ »ç°¢ÇüÀÌÀÖ´Â ¼ýÀÚ ¹è¿­À» ¸¸µì´Ï´Ù ((32, 32 ), np.uint32) µ¥ÀÌÅÍ = 1 # arraybmp = potrace.bit.bit.bitmap¿¡¼­ ºñÆ® ¸ÊÀ» ¸¸µì´Ï´Ù. ºñÆ® ¸ÊÀ» pathpath = bmp.trace () # °æ·ÎÀÇ °æ·Î °î¼±À» ¹Ýº¹ÇÕ´Ï´Ù : PATH : PRINT "start_point ="°î¼±ÀÇ ¼¼±×¸ÕÆ®¿¡ ´ëÇÑ Curve.start_POINT : PRINT SEGMENT END_POINT_X, END_POINT_Y = SEGMENT.END_POINT SEGMENT.IS_CORNER : c_x, c_y = segment.c else : c1_x, c1_y = segment .C1 C2_X, C2_Y = SEGMENT.C2Installation : AGG¿Í Potrace Development ÆÐÅ°Áö°¡ ¼³Ä¡µÇ¾î ÀÖ´ÂÁö È®ÀÎÇϽʽÿÀ (UbuntuÀÇ libagg-dev ¹× libpotrace-dev)ÀÌ ÀÖ´ÂÁö È®ÀÎÇϽʽÿÀ. python setup.py installDocumentation ¹®¼­´Â http : // packages¿¡¼­ È£½ºÆõ˴ϴÙ. .python.org / pypotracea »çº»Àº ¼Ò½º ¹èÆ÷ÆÇÀÇ doc / _build / html µð·ºÅ丮¿¡µµ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã


Pypotrace. °ü·Ã ¼ÒÇÁÆ®¿þ¾î