[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-80924":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":14,"stars30d":14,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":16,"rankGlobal":9,"rankLanguage":9,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":20,"topics":21,"createdAt":9,"pushedAt":9,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":15,"starSnapshotCount":15,"syncStatus":12,"lastSyncTime":25,"discoverSource":26},80924,"glyphtracy","simoncozens\u002Fglyphtracy","simoncozens","A raster to vector conversion library",null,"Python",33,2,32,1,0,1.43,"Apache License 2.0",false,"main",true,[],"2026-06-12 02:04:08","# Glyphtracy: A raster to vector conversion library\n\n![Glyphtracy Logo](logo.svg)\n\nGlyphtracy is a raster to vector conversion library focused on high-quality curve fitting and node placement for font design.\n\nThis module provides the main Vectorizer class which implements the full pipeline of contour extraction, node identification, path segment creation, and curve fitting. It also includes a command-line interface for processing images and outputting SVG paths along with detailed debug information.\n\nThe Vectorizer class is highly configurable with parameters for tuning node placement sensitivity, curve fitting tolerance, and handle balancing. The output includes both the final SVG path and a structured debug payload containing details of the contours, nodes, and segments for further analysis or visualization.\n\nUsage:\n\n```shell\nglyphtracy input_image.png --output output_image.svg --debug-json debug_output.json\n```\n\nThe debug JSON file contains a detailed breakdown of the contours, nodes, and segments identified and created during the vectorization process, which can be used for debugging or visualization purposes.\n\nA debugging viewer is available at `debugger\u002Fsplit_debug_viewer.html` that can load the debug JSON output and visualize the contours, nodes, and segments interactively.\n\nOpen this HTML file in a web browser, and load the generated debug_output.json to see the results of the vectorization process, including the identified nodes and fitted segments overlaid on the original contours.\n\nProgrammatic usage:\n\n```python\nfrom glyphtracy import Vectorizer\n\nvectorizer = Vectorizer(\n    image_source=\"input_image.png\",\n    sharp_threshold=math.radians(30),\n    pixel_tolerance=1.5,\n    # ... - see Vectorizer.__init__ for all parameters\n)\nfinal_path, debug_data = vectorizer.run()\n# final_path is a BezPath object representing the vectorized image\n# debug_data is a structured dictionary containing details of contours, nodes, and segments for debugging\u002Fvisualization\n```\n\n## License\n\nGlyphtracy is licensed under the Apache License 2.0. See the LICENSE.txt file for details.","Glyphtracy 是一个专注于高质量曲线拟合和节点放置的栅格到矢量转换库，特别适用于字体设计。其核心功能通过Vectorizer类实现，包括轮廓提取、节点识别、路径段创建及曲线拟合等全过程，并提供了命令行接口来处理图像并输出SVG路径以及详细的调试信息。该库具有高度可配置性，用户可以调整节点放置灵敏度、曲线拟合容差和控制点平衡等参数以满足不同需求。此外，还提供了一个基于Web的调试查看器，方便用户可视化地检查矢量化过程中的轮廓、节点和线段细节。此工具非常适合需要将位图图形精确转换为矢量格式的设计场景，尤其是在字体开发过程中对细节有较高要求的应用。","2026-06-11 04:02:50","CREATED_QUERY"]