test cv
This commit is contained in:
parent
bc392ce157
commit
8c244d3273
|
@ -1,4 +1,39 @@
|
||||||
[
|
[
|
||||||
|
{
|
||||||
|
"label": "annotations",
|
||||||
|
"importPath": "__future__",
|
||||||
|
"description": "__future__",
|
||||||
|
"isExtraImport": true,
|
||||||
|
"detail": "__future__",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "os",
|
||||||
|
"kind": 6,
|
||||||
|
"isExtraImport": true,
|
||||||
|
"importPath": "os",
|
||||||
|
"description": "os",
|
||||||
|
"detail": "os",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "site",
|
||||||
|
"kind": 6,
|
||||||
|
"isExtraImport": true,
|
||||||
|
"importPath": "site",
|
||||||
|
"description": "site",
|
||||||
|
"detail": "site",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "sys",
|
||||||
|
"kind": 6,
|
||||||
|
"isExtraImport": true,
|
||||||
|
"importPath": "sys",
|
||||||
|
"description": "sys",
|
||||||
|
"detail": "sys",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "json",
|
"label": "json",
|
||||||
"kind": 6,
|
"kind": 6,
|
||||||
|
@ -97,15 +132,6 @@
|
||||||
"detail": "gyp.common",
|
"detail": "gyp.common",
|
||||||
"documentation": {}
|
"documentation": {}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"label": "os",
|
|
||||||
"kind": 6,
|
|
||||||
"isExtraImport": true,
|
|
||||||
"importPath": "os",
|
|
||||||
"description": "os",
|
|
||||||
"detail": "os",
|
|
||||||
"documentation": {}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"label": "posixpath",
|
"label": "posixpath",
|
||||||
"kind": 6,
|
"kind": 6,
|
||||||
|
@ -249,15 +275,6 @@
|
||||||
"detail": "code",
|
"detail": "code",
|
||||||
"documentation": {}
|
"documentation": {}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"label": "sys",
|
|
||||||
"kind": 6,
|
|
||||||
"isExtraImport": true,
|
|
||||||
"importPath": "sys",
|
|
||||||
"description": "sys",
|
|
||||||
"detail": "sys",
|
|
||||||
"documentation": {}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"label": "hashlib",
|
"label": "hashlib",
|
||||||
"kind": 6,
|
"kind": 6,
|
||||||
|
@ -1660,6 +1677,30 @@
|
||||||
"detail": "django.test",
|
"detail": "django.test",
|
||||||
"documentation": {}
|
"documentation": {}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"label": "Image",
|
||||||
|
"importPath": "PIL",
|
||||||
|
"description": "PIL",
|
||||||
|
"isExtraImport": true,
|
||||||
|
"detail": "PIL",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Bitmap",
|
||||||
|
"importPath": "potrace",
|
||||||
|
"description": "potrace",
|
||||||
|
"isExtraImport": true,
|
||||||
|
"detail": "potrace",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "POTRACE_TURNPOLICY_MINORITY",
|
||||||
|
"importPath": "potrace",
|
||||||
|
"description": "potrace",
|
||||||
|
"isExtraImport": true,
|
||||||
|
"detail": "potrace",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "render",
|
"label": "render",
|
||||||
"importPath": "django.shortcuts",
|
"importPath": "django.shortcuts",
|
||||||
|
@ -1756,6 +1797,105 @@
|
||||||
"detail": "django.core.wsgi",
|
"detail": "django.core.wsgi",
|
||||||
"documentation": {}
|
"documentation": {}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"label": "cv2",
|
||||||
|
"kind": 6,
|
||||||
|
"isExtraImport": true,
|
||||||
|
"importPath": "cv2",
|
||||||
|
"description": "cv2",
|
||||||
|
"detail": "cv2",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "numpy",
|
||||||
|
"kind": 6,
|
||||||
|
"isExtraImport": true,
|
||||||
|
"importPath": "numpy",
|
||||||
|
"description": "numpy",
|
||||||
|
"detail": "numpy",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "bin_dir",
|
||||||
|
"kind": 5,
|
||||||
|
"importPath": ".venv.bin.activate_this",
|
||||||
|
"description": ".venv.bin.activate_this",
|
||||||
|
"peekOfCode": "bin_dir = os.path.dirname(abs_file)\nbase = bin_dir[: -len(\"bin\") - 1] # strip away the bin part from the __file__, plus the path separator\n# prepend bin to PATH (this file is inside the bin directory)\nos.environ[\"PATH\"] = os.pathsep.join([bin_dir, *os.environ.get(\"PATH\", \"\").split(os.pathsep)])\nos.environ[\"VIRTUAL_ENV\"] = base # virtual env is right above bin directory\nos.environ[\"VIRTUAL_ENV_PROMPT\"] = \"interactive-table-py3.10\" or os.path.basename(base) # noqa: SIM222\n# add the virtual environments libraries to the host python import mechanism\nprev_length = len(sys.path)\nfor lib in \"../lib/python3.10/site-packages\".split(os.pathsep):\n path = os.path.realpath(os.path.join(bin_dir, lib))",
|
||||||
|
"detail": ".venv.bin.activate_this",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "base",
|
||||||
|
"kind": 5,
|
||||||
|
"importPath": ".venv.bin.activate_this",
|
||||||
|
"description": ".venv.bin.activate_this",
|
||||||
|
"peekOfCode": "base = bin_dir[: -len(\"bin\") - 1] # strip away the bin part from the __file__, plus the path separator\n# prepend bin to PATH (this file is inside the bin directory)\nos.environ[\"PATH\"] = os.pathsep.join([bin_dir, *os.environ.get(\"PATH\", \"\").split(os.pathsep)])\nos.environ[\"VIRTUAL_ENV\"] = base # virtual env is right above bin directory\nos.environ[\"VIRTUAL_ENV_PROMPT\"] = \"interactive-table-py3.10\" or os.path.basename(base) # noqa: SIM222\n# add the virtual environments libraries to the host python import mechanism\nprev_length = len(sys.path)\nfor lib in \"../lib/python3.10/site-packages\".split(os.pathsep):\n path = os.path.realpath(os.path.join(bin_dir, lib))\n site.addsitedir(path.decode(\"utf-8\") if \"\" else path)",
|
||||||
|
"detail": ".venv.bin.activate_this",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "os.environ[\"PATH\"]",
|
||||||
|
"kind": 5,
|
||||||
|
"importPath": ".venv.bin.activate_this",
|
||||||
|
"description": ".venv.bin.activate_this",
|
||||||
|
"peekOfCode": "os.environ[\"PATH\"] = os.pathsep.join([bin_dir, *os.environ.get(\"PATH\", \"\").split(os.pathsep)])\nos.environ[\"VIRTUAL_ENV\"] = base # virtual env is right above bin directory\nos.environ[\"VIRTUAL_ENV_PROMPT\"] = \"interactive-table-py3.10\" or os.path.basename(base) # noqa: SIM222\n# add the virtual environments libraries to the host python import mechanism\nprev_length = len(sys.path)\nfor lib in \"../lib/python3.10/site-packages\".split(os.pathsep):\n path = os.path.realpath(os.path.join(bin_dir, lib))\n site.addsitedir(path.decode(\"utf-8\") if \"\" else path)\nsys.path[:] = sys.path[prev_length:] + sys.path[0:prev_length]\nsys.real_prefix = sys.prefix",
|
||||||
|
"detail": ".venv.bin.activate_this",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "os.environ[\"VIRTUAL_ENV\"]",
|
||||||
|
"kind": 5,
|
||||||
|
"importPath": ".venv.bin.activate_this",
|
||||||
|
"description": ".venv.bin.activate_this",
|
||||||
|
"peekOfCode": "os.environ[\"VIRTUAL_ENV\"] = base # virtual env is right above bin directory\nos.environ[\"VIRTUAL_ENV_PROMPT\"] = \"interactive-table-py3.10\" or os.path.basename(base) # noqa: SIM222\n# add the virtual environments libraries to the host python import mechanism\nprev_length = len(sys.path)\nfor lib in \"../lib/python3.10/site-packages\".split(os.pathsep):\n path = os.path.realpath(os.path.join(bin_dir, lib))\n site.addsitedir(path.decode(\"utf-8\") if \"\" else path)\nsys.path[:] = sys.path[prev_length:] + sys.path[0:prev_length]\nsys.real_prefix = sys.prefix\nsys.prefix = base",
|
||||||
|
"detail": ".venv.bin.activate_this",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "os.environ[\"VIRTUAL_ENV_PROMPT\"]",
|
||||||
|
"kind": 5,
|
||||||
|
"importPath": ".venv.bin.activate_this",
|
||||||
|
"description": ".venv.bin.activate_this",
|
||||||
|
"peekOfCode": "os.environ[\"VIRTUAL_ENV_PROMPT\"] = \"interactive-table-py3.10\" or os.path.basename(base) # noqa: SIM222\n# add the virtual environments libraries to the host python import mechanism\nprev_length = len(sys.path)\nfor lib in \"../lib/python3.10/site-packages\".split(os.pathsep):\n path = os.path.realpath(os.path.join(bin_dir, lib))\n site.addsitedir(path.decode(\"utf-8\") if \"\" else path)\nsys.path[:] = sys.path[prev_length:] + sys.path[0:prev_length]\nsys.real_prefix = sys.prefix\nsys.prefix = base",
|
||||||
|
"detail": ".venv.bin.activate_this",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "prev_length",
|
||||||
|
"kind": 5,
|
||||||
|
"importPath": ".venv.bin.activate_this",
|
||||||
|
"description": ".venv.bin.activate_this",
|
||||||
|
"peekOfCode": "prev_length = len(sys.path)\nfor lib in \"../lib/python3.10/site-packages\".split(os.pathsep):\n path = os.path.realpath(os.path.join(bin_dir, lib))\n site.addsitedir(path.decode(\"utf-8\") if \"\" else path)\nsys.path[:] = sys.path[prev_length:] + sys.path[0:prev_length]\nsys.real_prefix = sys.prefix\nsys.prefix = base",
|
||||||
|
"detail": ".venv.bin.activate_this",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "sys.path[:]",
|
||||||
|
"kind": 5,
|
||||||
|
"importPath": ".venv.bin.activate_this",
|
||||||
|
"description": ".venv.bin.activate_this",
|
||||||
|
"peekOfCode": "sys.path[:] = sys.path[prev_length:] + sys.path[0:prev_length]\nsys.real_prefix = sys.prefix\nsys.prefix = base",
|
||||||
|
"detail": ".venv.bin.activate_this",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "sys.real_prefix",
|
||||||
|
"kind": 5,
|
||||||
|
"importPath": ".venv.bin.activate_this",
|
||||||
|
"description": ".venv.bin.activate_this",
|
||||||
|
"peekOfCode": "sys.real_prefix = sys.prefix\nsys.prefix = base",
|
||||||
|
"detail": ".venv.bin.activate_this",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "sys.prefix",
|
||||||
|
"kind": 5,
|
||||||
|
"importPath": ".venv.bin.activate_this",
|
||||||
|
"description": ".venv.bin.activate_this",
|
||||||
|
"peekOfCode": "sys.prefix = base",
|
||||||
|
"detail": ".venv.bin.activate_this",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "_Known",
|
"label": "_Known",
|
||||||
"kind": 6,
|
"kind": 6,
|
||||||
|
@ -8326,6 +8466,15 @@
|
||||||
"detail": "back.api.serializers",
|
"detail": "back.api.serializers",
|
||||||
"documentation": {}
|
"documentation": {}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"label": "file_to_svg",
|
||||||
|
"kind": 2,
|
||||||
|
"importPath": "back.api.tracer",
|
||||||
|
"description": "back.api.tracer",
|
||||||
|
"peekOfCode": "def file_to_svg(filename: str):\n try:\n image = Image.open(filename)\n except IOError:\n print(\"Image (%s) could not be loaded.\" % filename)\n return\n bm = Bitmap(image, blacklevel=0.5)\n # bm.invert()\n plist = bm.trace(\n turdsize=2,",
|
||||||
|
"detail": "back.api.tracer",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "products",
|
"label": "products",
|
||||||
"kind": 2,
|
"kind": 2,
|
||||||
|
@ -8559,5 +8708,68 @@
|
||||||
"peekOfCode": "def main():\n \"\"\"Run administrative tasks.\"\"\"\n os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'back.settings')\n try:\n from django.core.management import execute_from_command_line\n except ImportError as exc:\n raise ImportError(\n \"Couldn't import Django. Are you sure it's installed and \"\n \"available on your PYTHONPATH environment variable? Did you \"\n \"forget to activate a virtual environment?\"",
|
"peekOfCode": "def main():\n \"\"\"Run administrative tasks.\"\"\"\n os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'back.settings')\n try:\n from django.core.management import execute_from_command_line\n except ImportError as exc:\n raise ImportError(\n \"Couldn't import Django. Are you sure it's installed and \"\n \"available on your PYTHONPATH environment variable? Did you \"\n \"forget to activate a virtual environment?\"",
|
||||||
"detail": "back.manage",
|
"detail": "back.manage",
|
||||||
"documentation": {}
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "img",
|
||||||
|
"kind": 5,
|
||||||
|
"importPath": "test",
|
||||||
|
"description": "test",
|
||||||
|
"peekOfCode": "img = cv2.imread(\n \"/home/arizona/projects/svs_tech/demo-int-table/admin_front/assets/img/plan.png\"\n)\n(h, w) = img.shape[:2]\nt = 1600\nimg = cv2.resize(img, (t, int((h/w) * t)))\ngray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)\ngray = 255 - gray\ngray = cv2.blur(gray, (8, 1))\ngray = cv2.threshold(gray, 1, 255, cv2.THRESH_BINARY)[1]",
|
||||||
|
"detail": "test",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "t",
|
||||||
|
"kind": 5,
|
||||||
|
"importPath": "test",
|
||||||
|
"description": "test",
|
||||||
|
"peekOfCode": "t = 1600\nimg = cv2.resize(img, (t, int((h/w) * t)))\ngray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)\ngray = 255 - gray\ngray = cv2.blur(gray, (8, 1))\ngray = cv2.threshold(gray, 1, 255, cv2.THRESH_BINARY)[1]\ncontours, hierarchy = cv2.findContours(gray, cv2.RETR_LIST, cv2.CHAIN_APPROX_NONE)\nfor cnt in contours:\n area = cv2.contourArea(cnt)\n if area > 150000 and area < 500000:",
|
||||||
|
"detail": "test",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "img",
|
||||||
|
"kind": 5,
|
||||||
|
"importPath": "test",
|
||||||
|
"description": "test",
|
||||||
|
"peekOfCode": "img = cv2.resize(img, (t, int((h/w) * t)))\ngray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)\ngray = 255 - gray\ngray = cv2.blur(gray, (8, 1))\ngray = cv2.threshold(gray, 1, 255, cv2.THRESH_BINARY)[1]\ncontours, hierarchy = cv2.findContours(gray, cv2.RETR_LIST, cv2.CHAIN_APPROX_NONE)\nfor cnt in contours:\n area = cv2.contourArea(cnt)\n if area > 150000 and area < 500000:\n cv2.drawContours(img, [cnt], 0, (255, 0, 0), 2)",
|
||||||
|
"detail": "test",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "gray",
|
||||||
|
"kind": 5,
|
||||||
|
"importPath": "test",
|
||||||
|
"description": "test",
|
||||||
|
"peekOfCode": "gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)\ngray = 255 - gray\ngray = cv2.blur(gray, (8, 1))\ngray = cv2.threshold(gray, 1, 255, cv2.THRESH_BINARY)[1]\ncontours, hierarchy = cv2.findContours(gray, cv2.RETR_LIST, cv2.CHAIN_APPROX_NONE)\nfor cnt in contours:\n area = cv2.contourArea(cnt)\n if area > 150000 and area < 500000:\n cv2.drawContours(img, [cnt], 0, (255, 0, 0), 2)\ncv2.imshow(\"img\", img)",
|
||||||
|
"detail": "test",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "gray",
|
||||||
|
"kind": 5,
|
||||||
|
"importPath": "test",
|
||||||
|
"description": "test",
|
||||||
|
"peekOfCode": "gray = 255 - gray\ngray = cv2.blur(gray, (8, 1))\ngray = cv2.threshold(gray, 1, 255, cv2.THRESH_BINARY)[1]\ncontours, hierarchy = cv2.findContours(gray, cv2.RETR_LIST, cv2.CHAIN_APPROX_NONE)\nfor cnt in contours:\n area = cv2.contourArea(cnt)\n if area > 150000 and area < 500000:\n cv2.drawContours(img, [cnt], 0, (255, 0, 0), 2)\ncv2.imshow(\"img\", img)\ncv2.waitKey()",
|
||||||
|
"detail": "test",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "gray",
|
||||||
|
"kind": 5,
|
||||||
|
"importPath": "test",
|
||||||
|
"description": "test",
|
||||||
|
"peekOfCode": "gray = cv2.blur(gray, (8, 1))\ngray = cv2.threshold(gray, 1, 255, cv2.THRESH_BINARY)[1]\ncontours, hierarchy = cv2.findContours(gray, cv2.RETR_LIST, cv2.CHAIN_APPROX_NONE)\nfor cnt in contours:\n area = cv2.contourArea(cnt)\n if area > 150000 and area < 500000:\n cv2.drawContours(img, [cnt], 0, (255, 0, 0), 2)\ncv2.imshow(\"img\", img)\ncv2.waitKey()",
|
||||||
|
"detail": "test",
|
||||||
|
"documentation": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "gray",
|
||||||
|
"kind": 5,
|
||||||
|
"importPath": "test",
|
||||||
|
"description": "test",
|
||||||
|
"peekOfCode": "gray = cv2.threshold(gray, 1, 255, cv2.THRESH_BINARY)[1]\ncontours, hierarchy = cv2.findContours(gray, cv2.RETR_LIST, cv2.CHAIN_APPROX_NONE)\nfor cnt in contours:\n area = cv2.contourArea(cnt)\n if area > 150000 and area < 500000:\n cv2.drawContours(img, [cnt], 0, (255, 0, 0), 2)\ncv2.imshow(\"img\", img)\ncv2.waitKey()",
|
||||||
|
"detail": "test",
|
||||||
|
"documentation": {}
|
||||||
}
|
}
|
||||||
]
|
]
|
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 137 KiB |
|
@ -1,5 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const testImg = '/_nuxt/assets/img/plan.png'
|
const testImg = '/_nuxt/assets/img/plan.svg'
|
||||||
const canvasElement: Ref<HTMLCanvasElement | undefined> = ref();
|
const canvasElement: Ref<HTMLCanvasElement | undefined> = ref();
|
||||||
const context: Ref<CanvasRenderingContext2D | undefined> = ref();
|
const context: Ref<CanvasRenderingContext2D | undefined> = ref();
|
||||||
console.log(testImg)
|
console.log(testImg)
|
||||||
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
from PIL import Image
|
||||||
|
from potrace import Bitmap, POTRACE_TURNPOLICY_MINORITY # `potracer` library
|
||||||
|
|
||||||
|
|
||||||
|
def file_to_svg(filename: str):
|
||||||
|
try:
|
||||||
|
|
||||||
|
image = Image.open(filename)
|
||||||
|
except IOError:
|
||||||
|
print("Image (%s) could not be loaded." % filename)
|
||||||
|
return
|
||||||
|
bm = Bitmap(image, blacklevel=0.5)
|
||||||
|
# bm.invert()
|
||||||
|
plist = bm.trace(
|
||||||
|
turdsize=2,
|
||||||
|
turnpolicy=POTRACE_TURNPOLICY_MINORITY,
|
||||||
|
alphamax=1,
|
||||||
|
opticurve=False,
|
||||||
|
opttolerance=0.2,
|
||||||
|
)
|
||||||
|
with open(f"{filename}.svg", "w") as fp:
|
||||||
|
fp.write(
|
||||||
|
f'''<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{image.width}" height="{image.height}" viewBox="0 0 {image.width} {image.height}">''')
|
||||||
|
parts = []
|
||||||
|
for curve in plist:
|
||||||
|
fs = curve.start_point
|
||||||
|
parts.append(f"M{fs.x},{fs.y}")
|
||||||
|
for segment in curve.segments:
|
||||||
|
if segment.is_corner:
|
||||||
|
a = segment.c
|
||||||
|
b = segment.end_point
|
||||||
|
parts.append(f"L{a.x},{a.y}L{b.x},{b.y}")
|
||||||
|
else:
|
||||||
|
a = segment.c1
|
||||||
|
b = segment.c2
|
||||||
|
c = segment.end_point
|
||||||
|
parts.append(f"C{a.x},{a.y} {b.x},{b.y} {c.x},{c.y}")
|
||||||
|
parts.append("z")
|
||||||
|
fp.write(f'<path stroke="none" fill="black" fill-rule="evenodd" d="{"".join(parts)}"/>')
|
||||||
|
fp.write("</svg>")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
file_to_svg('plan.png')
|
|
@ -30,13 +30,13 @@ files = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "django"
|
name = "django"
|
||||||
version = "5.0.4"
|
version = "5.0.6"
|
||||||
description = "A high-level Python web framework that encourages rapid development and clean, pragmatic design."
|
description = "A high-level Python web framework that encourages rapid development and clean, pragmatic design."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.10"
|
python-versions = ">=3.10"
|
||||||
files = [
|
files = [
|
||||||
{file = "Django-5.0.4-py3-none-any.whl", hash = "sha256:916423499d75d62da7aa038d19aef23d23498d8df229775eb0a6309ee1013775"},
|
{file = "Django-5.0.6-py3-none-any.whl", hash = "sha256:8363ac062bb4ef7c3f12d078f6fa5d154031d129a15170a1066412af49d30905"},
|
||||||
{file = "Django-5.0.4.tar.gz", hash = "sha256:4bd01a8c830bb77a8a3b0e7d8b25b887e536ad17a81ba2dce5476135c73312bd"},
|
{file = "Django-5.0.6.tar.gz", hash = "sha256:ff1b61005004e476e0aeea47c7f79b85864c70124030e95146315396f1e7951f"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
|
@ -310,20 +310,6 @@ files = [
|
||||||
{file = "psycopg2-2.9.9.tar.gz", hash = "sha256:d1454bde93fb1e224166811694d600e746430c006fbb031ea06ecc2ea41bf156"},
|
{file = "psycopg2-2.9.9.tar.gz", hash = "sha256:d1454bde93fb1e224166811694d600e746430c006fbb031ea06ecc2ea41bf156"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "pypotrace"
|
|
||||||
version = "0.3"
|
|
||||||
description = "potrace Python bindings"
|
|
||||||
optional = false
|
|
||||||
python-versions = "*"
|
|
||||||
files = [
|
|
||||||
{file = "pypotrace-0.3-cp37-cp37m-manylinux2014_x86_64.whl", hash = "sha256:ed7d2ab2f6721876cbc181f9c567b0bc409ef0a7c8db68d52de963399450ae0b"},
|
|
||||||
{file = "pypotrace-0.3.tar.gz", hash = "sha256:b019b30a1f45c83e399af479d17405ed26de9b4c1dcb74676dfa00ec30effff7"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.dependencies]
|
|
||||||
numpy = "*"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "python-dotenv"
|
name = "python-dotenv"
|
||||||
version = "1.0.1"
|
version = "1.0.1"
|
||||||
|
@ -403,95 +389,7 @@ files = [
|
||||||
{file = "tzdata-2024.1.tar.gz", hash = "sha256:2674120f8d891909751c38abcdfd386ac0a5a1127954fbc332af6b5ceae07efd"},
|
{file = "tzdata-2024.1.tar.gz", hash = "sha256:2674120f8d891909751c38abcdfd386ac0a5a1127954fbc332af6b5ceae07efd"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "vtracer"
|
|
||||||
version = "0.6.11"
|
|
||||||
description = "Python bindings for the Rust Vtracer raster-to-vector library"
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.7"
|
|
||||||
files = [
|
|
||||||
{file = "vtracer-0.6.11-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:91d4d681b8b7d1a5a68e010c44a9c80fb2c1afb7e957e3f35b1cb7469ac224f4"},
|
|
||||||
{file = "vtracer-0.6.11-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:1b5a66cba5ba96bd0898161bc78893bbcbc87b5bb87a2be9ea9389b71a86eb87"},
|
|
||||||
{file = "vtracer-0.6.11-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:88d7bfd3f2605fe62d97ff24de6a16c31bdc0d191fc2a7ed8bc3c0fe04d8c7f0"},
|
|
||||||
{file = "vtracer-0.6.11-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:35761bf24eeb6e1d45f1899bfda47c60376b2a13ca6bd981a960bbd904ed5937"},
|
|
||||||
{file = "vtracer-0.6.11-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:979dac594344ea707fb5134c86e0d6080114c2d52e62c0910d058818b12d8da4"},
|
|
||||||
{file = "vtracer-0.6.11-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:db1c4b04bbeab83a2a442f6a88bdf247184b79e0e9c05b076b162b70c5cd1ead"},
|
|
||||||
{file = "vtracer-0.6.11-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fa8f6391d6572c5a55c7865d613a1774cbe88581080045984993fd2021e1608b"},
|
|
||||||
{file = "vtracer-0.6.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:03cd974619657b2b5614d1936be5b59ebfdbc9f611e4c939c9a7c84712314df3"},
|
|
||||||
{file = "vtracer-0.6.11-cp310-none-win32.whl", hash = "sha256:e6a67492f103e85540e52b09c6cc947819a8630083696fdea5be466e812ae519"},
|
|
||||||
{file = "vtracer-0.6.11-cp310-none-win_amd64.whl", hash = "sha256:ea65c0a6cd06df28e1d5e4c58e60c3dfae3241ce75b628b5256dded636781ff0"},
|
|
||||||
{file = "vtracer-0.6.11-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:9868a771c264a4895ea61d86b7445754b896be3b3f287d56331de0ea0a6ed4f6"},
|
|
||||||
{file = "vtracer-0.6.11-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:0dd57915987a5c62d78ba17cf620a27a8297983d481675313328f75f59ff1840"},
|
|
||||||
{file = "vtracer-0.6.11-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9414748c8877ea38f5a6d5942ad994185d9c13761f85316620c97cd53bc8d197"},
|
|
||||||
{file = "vtracer-0.6.11-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5eb28a6f3de3f4a65d81a0cd60afe3ffa0ed65480f5f06ba18be4019aae255d5"},
|
|
||||||
{file = "vtracer-0.6.11-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9eaffb399d023d1ea5fb8ae5faf0e6248692a7c34d1e3bed04e50f307b242158"},
|
|
||||||
{file = "vtracer-0.6.11-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:82920d1c4afe0c3c7ad075bbe63b2b3e3e4884c98f1773f078630947a88e0718"},
|
|
||||||
{file = "vtracer-0.6.11-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:93c07a5c3456648708f688664334fe6e66b5cd897c8ddad7d2442700056de6a5"},
|
|
||||||
{file = "vtracer-0.6.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:62f752f5e6d46a334e064368ff47b72550c4f460aad7ff2ede1f790ba6f65b33"},
|
|
||||||
{file = "vtracer-0.6.11-cp311-none-win32.whl", hash = "sha256:bca8d8f1c92184abcc6ec76b2f06c75f4172f05812794efe8ec4eff057435bff"},
|
|
||||||
{file = "vtracer-0.6.11-cp311-none-win_amd64.whl", hash = "sha256:efec6250df8a4e27a8c9d8e101093726b3de4d65a7df1f426c813974dbc19960"},
|
|
||||||
{file = "vtracer-0.6.11-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:4ac53a37dd1729f16ed64feae4f40b8dae1cf61dfe0d6bf26e9d399d48a25250"},
|
|
||||||
{file = "vtracer-0.6.11-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:e48a726e0f1b1d80d8d199e17ae3f95c048b5907f764134e257a79e543e30278"},
|
|
||||||
{file = "vtracer-0.6.11-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:67e17c5ac4cfa697c8686e563db84e027b9fb1c8b06b797285f58abd6e147eff"},
|
|
||||||
{file = "vtracer-0.6.11-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3229dd4f32d316d4fad14a6671583e57d0c7eec604bf6f91a8765c8fc7cc6610"},
|
|
||||||
{file = "vtracer-0.6.11-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:be93615d159947e050cfd26e89a0916c8e3674c2ab2ef1c87ce31579a0900eca"},
|
|
||||||
{file = "vtracer-0.6.11-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1644d2f7942a27109bc8ca4de8116fc4234135ecea20ef8e0350ddd4cbbf9972"},
|
|
||||||
{file = "vtracer-0.6.11-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6a47ed4d19834fc7e9e5387f85c160895552cb81a3eb4171e2087dc9e4841551"},
|
|
||||||
{file = "vtracer-0.6.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1f804d3b4f23b512a5bcf687944e1eb7a38069e0b2bec4edf4ae9810a13d5953"},
|
|
||||||
{file = "vtracer-0.6.11-cp312-none-win32.whl", hash = "sha256:63ae0ec7ba3db067b5e9979aa05219e79dc181b9013d2cdc4fea4dfb22818eb9"},
|
|
||||||
{file = "vtracer-0.6.11-cp312-none-win_amd64.whl", hash = "sha256:5f2174a6f2da741672f3322daf0d59fc24705632a5c4ecb633cb74d5cf1c0c16"},
|
|
||||||
{file = "vtracer-0.6.11-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a15b28da034245337dd1a9f53a0883f98105e86ffc35be548ef897edee75af1e"},
|
|
||||||
{file = "vtracer-0.6.11-cp37-cp37m-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:82e114b038360d11c6d85818c8aa845f7c2f019b79f1bc0047bd1e2ab0f90096"},
|
|
||||||
{file = "vtracer-0.6.11-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:826cb577a6815dadb53215b3cb3791daead78e155d437bdc4780f412fa0e171c"},
|
|
||||||
{file = "vtracer-0.6.11-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4c440ef50b0cc066acbf5abe567c92514e8dfbc3242b01ce99ae883839dfecb8"},
|
|
||||||
{file = "vtracer-0.6.11-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cc0ec2d33fc8388450e4f4bc116db9941f06e7c11ae5ad20d8441980422b34c2"},
|
|
||||||
{file = "vtracer-0.6.11-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9e15d9e0de17573036e01c223d5488cb94bfb09d9f835ac2b480b6194d3d022c"},
|
|
||||||
{file = "vtracer-0.6.11-cp37-none-win32.whl", hash = "sha256:887f4b1f668a98d5b9756b6ca37170fe497e2078532cd356b4c79a4e1a1d8f12"},
|
|
||||||
{file = "vtracer-0.6.11-cp37-none-win_amd64.whl", hash = "sha256:1062b8f8978b336bd1ce3f4ad2bfcb1438e7896a17a0e5564dff229359e4cac6"},
|
|
||||||
{file = "vtracer-0.6.11-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7ed4dfe82fc8113aa3a7ea082f178a357c4efdd21532553f6c27bde0d06260b1"},
|
|
||||||
{file = "vtracer-0.6.11-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:52b1152dac4274736318fb57d6a4ab2879cd912fe98caf2f8a592c5d5ed901d1"},
|
|
||||||
{file = "vtracer-0.6.11-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:64fd2f812d9ee27c695e0d773840d30c06f1b240d305bdbf9ca172d9a06d9632"},
|
|
||||||
{file = "vtracer-0.6.11-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b44012fdfd54a78edae8139c2a31fcfd2b8699ef07830f756f2d3cb86ca8dcb6"},
|
|
||||||
{file = "vtracer-0.6.11-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:29a25162f04607f63fb85807e155c196451e04c69b57205adc03f4350b0cd53a"},
|
|
||||||
{file = "vtracer-0.6.11-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9b0148e7a5ace6288bc8d6e8ccd172996bab0357d9d52e3ec22ed1893d71ed1c"},
|
|
||||||
{file = "vtracer-0.6.11-cp38-none-win32.whl", hash = "sha256:f374051dc97578968f5d78d985d2ded36f8934389b808f9c0e3fa4c56d4e6fd5"},
|
|
||||||
{file = "vtracer-0.6.11-cp38-none-win_amd64.whl", hash = "sha256:1e83ee2f9c740ad25560a13de7e24f0f395f5d71ebb1cccf63d0db8083eff576"},
|
|
||||||
{file = "vtracer-0.6.11-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e6911c1c638676de1319e18b354d678dcae51a8fd6ec443737f005320028b13d"},
|
|
||||||
{file = "vtracer-0.6.11-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:118c996d98233af2af51f04d01675a173e8b36d0e74e23ad7d327a407c29b732"},
|
|
||||||
{file = "vtracer-0.6.11-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0b72a08e6701194bbb38aae959527ec513a155a3c3a90675e2b27bb00ff55c5c"},
|
|
||||||
{file = "vtracer-0.6.11-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9823a2c383023034dea741da6f2dc3da230458047518259280229e7da1514199"},
|
|
||||||
{file = "vtracer-0.6.11-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f06faec6ab9e624613e0a43dafb0704209e6cb96338602294d774e7b56c685fb"},
|
|
||||||
{file = "vtracer-0.6.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0969450d45ac8d6711bf7c6eb8bab36d5570f623e22d03f11c259232b7ff5444"},
|
|
||||||
{file = "vtracer-0.6.11-cp39-none-win32.whl", hash = "sha256:c6139e35e501a39a6065217ddb085296be4ec4d910978a739eb91c4d85f00a03"},
|
|
||||||
{file = "vtracer-0.6.11-cp39-none-win_amd64.whl", hash = "sha256:2754a02f4edfb707e097169ebdfb5fc23fbb8d18a10b28ba0eaf5438b0075a00"},
|
|
||||||
{file = "vtracer-0.6.11-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:650dad7cc650fa607b762476865cb8f76314f15c9197c93789885ab964f3b90c"},
|
|
||||||
{file = "vtracer-0.6.11-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:64733282d1736c4e7849b875865f1a3f3e0c637e584dd17a47691b747392e235"},
|
|
||||||
{file = "vtracer-0.6.11-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:23911ee68ecb36acad3bd1f46bfbb4c8e33ed527937f0b1a3ab9e047e422783d"},
|
|
||||||
{file = "vtracer-0.6.11-pp310-pypy310_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c913a7c63ae9309044c0e768978aba0e032b2000e9b67fd3fb2ae0a5bb88a72d"},
|
|
||||||
{file = "vtracer-0.6.11-pp310-pypy310_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a2d4c1295e5fdb1c857f0b9f0eedb706550b0531f0cedae07df1b45bc2509a60"},
|
|
||||||
{file = "vtracer-0.6.11-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:80e263c67263a9b7af3a4b78d8b49c33f223e8017fc937b64f224ce3c632d1bb"},
|
|
||||||
{file = "vtracer-0.6.11-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:be040bb7d32916ffeaa17f09853d27134fdcb0708ab0205d07b412cd9f8ccd44"},
|
|
||||||
{file = "vtracer-0.6.11-pp37-pypy37_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:498553f1cd7bb5daa405da30ebd121951fb3b768372688874ba293510309ca98"},
|
|
||||||
{file = "vtracer-0.6.11-pp37-pypy37_pp73-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:47d03ff1a587630f9377c9fa0b1e264d7c30e84605f10c7e9021f587776d1132"},
|
|
||||||
{file = "vtracer-0.6.11-pp37-pypy37_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5187358e32a535160ca107c023002cdc0d2e92568b93b0129f00d910f3f30513"},
|
|
||||||
{file = "vtracer-0.6.11-pp37-pypy37_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2c7c94a9173adf3a351cca4ceefc1d95df5fb926d9fa61c24760dd0d911cf56b"},
|
|
||||||
{file = "vtracer-0.6.11-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9339cd3d96377c557204b0e10e7538e51931b0ad30739545deee587a55753e2a"},
|
|
||||||
{file = "vtracer-0.6.11-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:609cb9ea17e060a9af4ac476a5251df4be83b70e512480952cb5b931a486914a"},
|
|
||||||
{file = "vtracer-0.6.11-pp38-pypy38_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:96c1c4307d76c96d76fa287caac3f98826b29b8cde017a825864aa1502c05440"},
|
|
||||||
{file = "vtracer-0.6.11-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0e450ff70a7a8414de0a12dfc1df953c711c04d6f0737f16fb5586c1e8507800"},
|
|
||||||
{file = "vtracer-0.6.11-pp38-pypy38_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:943239b04dbaf0bcf0f9c52e2d499091aab7feb28bb12ae20855feb54f909a8d"},
|
|
||||||
{file = "vtracer-0.6.11-pp38-pypy38_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:760ecdd42da9005f11a3025ef5d50bdd801e04e5af88089c95d4aa1fd6192e44"},
|
|
||||||
{file = "vtracer-0.6.11-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:224f288e8f9c5d9e95bfd35aeaecc90c4ae4ea60c15d3106083e4c603ea23371"},
|
|
||||||
{file = "vtracer-0.6.11-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7f35ce0a554880350accfdc612e08da76eb8e190af475548cb7d7decb8062150"},
|
|
||||||
{file = "vtracer-0.6.11-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:14f00d0ea32d4753c1294fb0619834850f70106d121218be5e61de69827d5f08"},
|
|
||||||
{file = "vtracer-0.6.11-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5a445ca67a2851c5e1250fea6eec89a14a72f61df4462c935b7634941da5a87f"},
|
|
||||||
{file = "vtracer-0.6.11-pp39-pypy39_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1cba70952fda455507855fe252a901199cf709006809b5f58afd2bc4d2b08af4"},
|
|
||||||
{file = "vtracer-0.6.11-pp39-pypy39_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1f0734431a3e32ea37845b88b9f07a9bde045de9fe18a34bca4d91bececee6f2"},
|
|
||||||
{file = "vtracer-0.6.11-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:542cc9b03372d4802245077b523c8ea338b1bc2d17b92695ace12a82a4d28d3c"},
|
|
||||||
{file = "vtracer-0.6.11.tar.gz", hash = "sha256:407e147362366e14e2666155bf328814bdc345899a6cce18a7729724ff25c01e"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "2.0"
|
lock-version = "2.0"
|
||||||
python-versions = "^3.10"
|
python-versions = "^3.10"
|
||||||
content-hash = "c5ecd8d6dd6b9af7ed7d30e5dc910179efc33921ded8d8f98aae54c4021b194c"
|
content-hash = "1c57908ec6786460241b91a63e9b1e30eb78d340264c8e798eaa35041f9bc9f6"
|
||||||
|
|
|
@ -4,6 +4,7 @@ version = "0.1.0"
|
||||||
description = ""
|
description = ""
|
||||||
authors = ["Your Name <you@example.com>"]
|
authors = ["Your Name <you@example.com>"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
package-mode=false
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.10"
|
python = "^3.10"
|
||||||
|
@ -15,8 +16,6 @@ pillow = "^10.3.0"
|
||||||
python-dotenv = "^1.0.1"
|
python-dotenv = "^1.0.1"
|
||||||
psycopg2 = "^2.9.9"
|
psycopg2 = "^2.9.9"
|
||||||
opencv-python = "^4.9.0.80"
|
opencv-python = "^4.9.0.80"
|
||||||
vtracer = "^0.6.11"
|
|
||||||
pypotrace = "^0.3"
|
|
||||||
potracer = "^0.0.4"
|
potracer = "^0.0.4"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,55 @@
|
||||||
|
import cv2
|
||||||
|
import numpy as np
|
||||||
|
|
||||||
|
# def image_resize(image, width = None, height = None, inter = cv2.INTER_AREA):
|
||||||
|
# # initialize the dimensions of the image to be resized and
|
||||||
|
# # grab the image size
|
||||||
|
# dim = None
|
||||||
|
# (h, w) = image.shape[:2]
|
||||||
|
|
||||||
|
# # if both the width and height are None, then return the
|
||||||
|
# # original image
|
||||||
|
# if width is None and height is None:
|
||||||
|
# return image
|
||||||
|
|
||||||
|
# # check to see if the width is None
|
||||||
|
# if width is None:
|
||||||
|
# # calculate the ratio of the height and construct the
|
||||||
|
# # dimensions
|
||||||
|
# r = height / float(h)
|
||||||
|
# dim = (int(w * r), height)
|
||||||
|
|
||||||
|
# # otherwise, the height is None
|
||||||
|
# else:
|
||||||
|
# # calculate the ratio of the width and construct the
|
||||||
|
# # dimensions
|
||||||
|
# r = width / float(w)
|
||||||
|
# dim = (width, int(h * r))
|
||||||
|
|
||||||
|
# # resize the image
|
||||||
|
# resized = cv2.resize(image, dim, interpolation = inter)
|
||||||
|
|
||||||
|
# # return the resized image
|
||||||
|
# return resized
|
||||||
|
|
||||||
|
|
||||||
|
img = cv2.imread(
|
||||||
|
"/home/arizona/projects/svs_tech/demo-int-table/admin_front/assets/img/plan.png"
|
||||||
|
)
|
||||||
|
(h, w) = img.shape[:2]
|
||||||
|
t = 1600
|
||||||
|
img = cv2.resize(img, (t, int((h/w) * t)))
|
||||||
|
|
||||||
|
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
|
||||||
|
gray = 255 - gray
|
||||||
|
gray = cv2.blur(gray, (8, 1))
|
||||||
|
gray = cv2.threshold(gray, 1, 255, cv2.THRESH_BINARY)[1]
|
||||||
|
contours, hierarchy = cv2.findContours(gray, cv2.RETR_LIST, cv2.CHAIN_APPROX_NONE)
|
||||||
|
|
||||||
|
for cnt in contours:
|
||||||
|
area = cv2.contourArea(cnt)
|
||||||
|
if area > 150000 and area < 500000:
|
||||||
|
cv2.drawContours(img, [cnt], 0, (255, 0, 0), 2)
|
||||||
|
|
||||||
|
cv2.imshow("img", img)
|
||||||
|
cv2.waitKey()
|
224
tracer.py
224
tracer.py
|
@ -1,224 +0,0 @@
|
||||||
Script started on 2024-05-16 16:53:05+03:00 [TERM="xterm-256color" TTY="/dev/pts/3" COLUMNS="318" LINES="75"]
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ /bin/python3 /home/aarizona/.vscode/extensions/ms-python.python-2024.7.11361010/python_files/printEnvVariablesToFile.py /home/aarizona/.vscode/extensions/ms-python.python-2024.7.11361010/python_files/deactivate/bash/envVars.txt
[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[Cgit add .[K/bin/python3 /home/aarizona/.vscode/extensions/ms-python.python-2024.7.11361010/python_files/printEnvVariablesToFile.py /home/aarizona/.vscode/extensions/ms-python.python-2024.7.11361010/python_files/deactivate/bash/envVars.txt
[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[Kpoetry run python tracer.py
|
|
||||||
[?2004l
thread '<unnamed>' panicked at cmdapp/src/python.rs:42:61:
|
|
||||||
called `Result::unwrap()` on an `Err` value: "No image file found at specified input path"
|
|
||||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
|
||||||
Traceback (most recent call last):
|
|
||||||
File "/home/aarizona/projects/interactive-table/tracer.py", line 10, in <module>
|
|
||||||
vtracer.convert_image_to_svg_py(input_path, output_path, colormode='binary')
|
|
||||||
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: "No image file found at specified input path"
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ poetry run python tracer.py
|
|
||||||
[?2004l
Traceback (most recent call last):
|
|
||||||
File "/home/aarizona/projects/interactive-table/tracer.py", line 2, in <module>
|
|
||||||
from tracer import input_path
|
|
||||||
File "/home/aarizona/projects/interactive-table/tracer.py", line 2, in <module>
|
|
||||||
from tracer import input_path
|
|
||||||
ImportError: cannot import name 'input_path' from partially initialized module 'tracer' (most likely due to a circular import) (/home/aarizona/projects/interactive-table/tracer.py)
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ poetry run python tracer.py
|
|
||||||
[?2004l
thread '<unnamed>' panicked at cmdapp/src/python.rs:42:61:
|
|
||||||
called `Result::unwrap()` on an `Err` value: "Cannot create output file."
|
|
||||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
|
||||||
Traceback (most recent call last):
|
|
||||||
File "/home/aarizona/projects/interactive-table/tracer.py", line 11, in <module>
|
|
||||||
vtracer.convert_image_to_svg_py(input_path, output_path, colormode='binary')
|
|
||||||
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: "Cannot create output file."
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ poetry run python tracer.py
|
|
||||||
[?2004l
thread '<unnamed>' panicked at cmdapp/src/python.rs:42:61:
|
|
||||||
called `Result::unwrap()` on an `Err` value: "Cannot create output file."
|
|
||||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
|
||||||
Traceback (most recent call last):
|
|
||||||
File "/home/aarizona/projects/interactive-table/tracer.py", line 11, in <module>
|
|
||||||
vtracer.convert_image_to_svg_py(input_path, output_path, colormode='binary')
|
|
||||||
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: "Cannot create output file."
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ poetry run python tracer.py [1@s[1@u[1@d[1@o[1@
|
|
||||||
[?2004l
[sudo] password for aarizona: ********
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ poetry run pyton vtracer
|
|
||||||
[?2004l
[31;1mCommand not found: [39;22m[36mpyton[39m
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ poetry run pyton vtracer[C[1@h
|
|
||||||
[?2004l
/home/aarizona/projects/interactive-table/.venv/bin/python: can't open file '/home/aarizona/projects/interactive-table/vtracer': [Errno 2] No such file or directory
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ vtracer
|
|
||||||
[?2004l
Command 'vtracer' not found, did you mean:
|
|
||||||
command 'ctracer' from deb pahole (1.25-0ubuntu1~22.04.2)
|
|
||||||
command 'tracer' from deb pvm-dev (3.4.6-3.2)
|
|
||||||
Try: sudo apt install <deb name>
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ pip install vtracer
|
|
||||||
[?2004l
Requirement already satisfied: vtracer in ./.venv/lib/python3.10/site-packages (0.6.11)
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ pip install vtracer[12Pvtracerpvtraceryvtracertvtracerhvtracerovtracernvtracer vtracer
|
|
||||||
[?2004l
python: can't open file '/home/aarizona/projects/interactive-table/vtracer': [Errno 2] No such file or directory
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ python vtracer[5@ip install[C[C[C[C[C[C[C[C[12Pvtracer
|
|
||||||
[?2004l
Command 'vtracer' not found, did you mean:
|
|
||||||
command 'tracer' from deb pvm-dev (3.4.6-3.2)
|
|
||||||
command 'ctracer' from deb pahole (1.25-0ubuntu1~22.04.2)
|
|
||||||
Try: sudo apt install <deb name>
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ vtracerpython vtracer[5@ip install[C[C[C[C[C[C[C[C[5Python[C[C[C[C[C[C[C[C[7Pvtracer[K./vtracer
|
|
||||||
[?2004l
bash: ./vtracer: No such file or directory
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ цршср мекфсук
|
|
||||||
[?2004l
цршср: command not found
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ which vtracer
|
|
||||||
[?2004l
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ ~/.[K[K/.[K~[K.local/bin/vtracert
|
|
||||||
[?2004l
bash: /home/aarizona/.local/bin/vtracert: No such file or directory
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ ~/.local/bin/vtracert[K[K[K[K[K[K[K[K[K[K[K[Kc~/.local/d~/.local/ ~/.local/
|
|
||||||
[?2004l
[?2004h]0;aarizona@TD-AARIZONA: ~/.local[01;32maarizona@TD-AARIZONA[00m:[01;34m~/.local[00m$ ls
|
|
||||||
[?2004l
[0m[01;34mlib[0m [01;34mshare[0m [01;34mstate[0m
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/.local[01;32maarizona@TD-AARIZONA[00m:[01;34m~/.local[00m$ cd lib
|
|
||||||
[?2004l
[?2004h]0;aarizona@TD-AARIZONA: ~/.local/lib[01;32maarizona@TD-AARIZONA[00m:[01;34m~/.local/lib[00m$ ls
|
|
||||||
[?2004l
[0m[01;34mpython3.10[0m
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/.local/lib[01;32maarizona@TD-AARIZONA[00m:[01;34m~/.local/lib[00m$ cd python3.10/
|
|
||||||
[?2004l
[?2004h]0;aarizona@TD-AARIZONA: ~/.local/lib/python3.10[01;32maarizona@TD-AARIZONA[00m:[01;34m~/.local/lib/python3.10[00m$ ls
|
|
||||||
[?2004l
[0m[01;34msite-packages[0m
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/.local/lib/python3.10[01;32maarizona@TD-AARIZONA[00m:[01;34m~/.local/lib/python3.10[00m$ cd site-packages/
|
|
||||||
[?2004l
[?2004h]0;aarizona@TD-AARIZONA: ~/.local/lib/python3.10/site-packages[01;32maarizona@TD-AARIZONA[00m:[01;34m~/.local/lib/python3.10/site-packages[00m$ ls
|
|
||||||
[?2004l
[0m[01;34mvtracer[0m [01;34mvtracer-0.6.11.dist-info[0m
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/.local/lib/python3.10/site-packages[01;32maarizona@TD-AARIZONA[00m:[01;34m~/.local/lib/python3.10/site-packages[00m$ cd vtracer
|
|
||||||
[?2004l
[?2004h]0;aarizona@TD-AARIZONA: ~/.local/lib/python3.10/site-packages/vtracer[01;32maarizona@TD-AARIZONA[00m:[01;34m~/.local/lib/python3.10/site-packages/vtracer[00m$ c[Kls
|
|
||||||
[?2004l
__init__.py [0m[01;34m__pycache__[0m README.md [01;32mvtracer.cpython-310-x86_64-linux-gnu.so[0m vtracer.pyi
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/.local/lib/python3.10/site-packages/vtracer[01;32maarizona@TD-AARIZONA[00m:[01;34m~/.local/lib/python3.10/site-packages/vtracer[00m$ ./vtracer.cpython-310-x86_64-linux-gnu.so
|
|
||||||
[?2004l
Segmentation fault (core dumped)
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/.local/lib/python3.10/site-packages/vtracer[01;32maarizona@TD-AARIZONA[00m:[01;34m~/.local/lib/python3.10/site-packages/vtracer[00m$ vte[Kracer
|
|
||||||
[?2004l
Command 'vtracer' not found, did you mean:
|
|
||||||
command 'ctracer' from deb pahole (1.25-0ubuntu1~22.04.2)
|
|
||||||
command 'tracer' from deb pvm-dev (3.4.6-3.2)
|
|
||||||
Try: sudo apt install <deb name>
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/.local/lib/python3.10/site-packages/vtracer[01;32maarizona@TD-AARIZONA[00m:[01;34m~/.local/lib/python3.10/site-packages/vtracer[00m$ vtracer./vtracer.cpython-310-x86_64-linux-gnu.so [K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[Kpyi
|
|
||||||
[?2004l
bash: ./vtracer.pyi: Permission denied
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/.local/lib/python3.10/site-packages/vtracer[01;32maarizona@TD-AARIZONA[00m:[01;34m~/.local/lib/python3.10/site-packages/vtracer[00m$ ./vtracer.pyis./vtracer.pyiu./vtracer.pyid./vtracer.pyio./vtracer.pyi ./vtracer.pyi
|
|
||||||
[?2004l
sudo: ./vtracer.pyi: command not found
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/.local/lib/python3.10/site-packages/vtracer[01;32maarizona@TD-AARIZONA[00m:[01;34m~/.local/lib/python3.10/site-packages/vtracer[00m$ sudo ./vtracer.pyi[5P./vtracer.pyi[6Pvtracer./vtracer.cpython-310-x86_64-linux-gnu.so
|
|
||||||
[?2004l
Segmentation fault (core dumped)
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/.local/lib/python3.10/site-packages/vtracer[01;32maarizona@TD-AARIZONA[00m:[01;34m~/.local/lib/python3.10/site-packages/vtracer[00m$ ./vtracer.cpython-310-x86_64-linux-gnu.so [24Psudo ./vtracer.pyi[5P./vtracer.pyi[6Pvtracer./vtracer.cpython-310-x86_64-linux-gnu.so ls[Kcd vtracerls[Kcd site-packages/ls[Kcd python3.10/ls[Kcd lib[4Plscd ~/.local/~/.local/bin/vtracert[8Pwhich vtracerцршср мекфсук[4P./vtracer[2Pvtracerpython vtracer[5@ip install[C[C[C[C[C[C[C[C -G
|
|
||||||
[?2004l
|
|
||||||
Usage:
|
|
||||||
pip install [options] <requirement specifier> [package-index-options] ...
|
|
||||||
pip install [options] -r <requirements file> [package-index-options] ...
|
|
||||||
pip install [options] [-e] <vcs project url> ...
|
|
||||||
pip install [options] [-e] <local project path> ...
|
|
||||||
pip install [options] <archive url/path> ...
|
|
||||||
|
|
||||||
no such option: -G
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/.local/lib/python3.10/site-packages/vtracer[01;32maarizona@TD-AARIZONA[00m:[01;34m~/.local/lib/python3.10/site-packages/vtracer[00m$ св Ё[K[K[K[Kcd ~/projects/interactive-table/
|
|
||||||
[?2004l
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ poetry add [7mpypotrace[27mpypotrace
|
|
||||||
[?2004l
Using version [39;1m^0.3[39;22m for [36mpypotrace[39m
|
|
||||||
|
|
||||||
[34mUpdating dependencies[39m
|
|
||||||
[2K[34mResolving dependencies...[39m [39;2m(0.0s)[39;22m
[2K[34mResolving dependencies...[39m [39;2m(0.1s)[39;22m
[2K[34mResolving dependencies...[39m [39;2m(0.2s)[39;22m
|
|
||||||
|
|
||||||
[39;1mPackage operations[39;22m: [34m1[39m install, [34m0[39m updates, [34m0[39m removals
|
|
||||||
|
|
||||||
[34;1m-[39;22m [39mInstalling [39m[36mpypotrace[39m[39m ([39m[39;1m0.3[39;22m[39m)[39m: [34mPending...[39m
|
|
||||||
[1A[0J [34;1m-[39;22m [39mInstalling [39m[36mpypotrace[39m[39m ([39m[39;1m0.3[39;22m[39m)[39m: [34mPreparing...[39m
|
|
||||||
[1A[0J [31;1m-[39;22m [39mInstalling [39m[36mpypotrace[39m[39m ([39m[31;1m0.3[39;22m[39m)[39m: [31;1mFailed[39;22m
|
|
||||||
|
|
||||||
[31;1mChefBuildError[39;22m
|
|
||||||
|
|
||||||
[39;1mBackend subprocess exited when trying to invoke build_wheel
|
|
||||||
|
|
||||||
A setup.py file already exists. Using it.
|
|
||||||
Package libagg was not found in the pkg-config search path.
|
|
||||||
Perhaps you should add the directory containing `libagg.pc'
|
|
||||||
to the PKG_CONFIG_PATH environment variable
|
|
||||||
No package 'libagg' found
|
|
||||||
Traceback (most recent call last):
|
|
||||||
File "/tmp/tmp4kv56pfh/pypotrace-0.3/setup.py", line 28, in [39;22m[39;1m<module>[39;22m[39;1m
|
|
||||||
build(setup_kwargs)
|
|
||||||
File "/tmp/tmp4kv56pfh/pypotrace-0.3/build.py", line 19, in build
|
|
||||||
extra_compile_args = pkg_config("libagg", '--cflags')
|
|
||||||
File "/tmp/tmp4kv56pfh/pypotrace-0.3/build.py", line 11, in pkg_config
|
|
||||||
return subprocess.check_output(["pkg-config", command, pkg_name]).decode(
|
|
||||||
File "/usr/lib/python3.10/subprocess.py", line 421, in check_output
|
|
||||||
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
|
|
||||||
File "/usr/lib/python3.10/subprocess.py", line 526, in run
|
|
||||||
raise CalledProcessError(retcode, process.args,
|
|
||||||
subprocess.CalledProcessError: Command '['pkg-config', '--cflags', 'libagg']' returned non-zero exit status 1.
|
|
||||||
Traceback (most recent call last):
|
|
||||||
File "/usr/local/lib/python3.10/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in [39;22m[39;1m<module>[39;22m[39;1m
|
|
||||||
main()
|
|
||||||
File "/usr/local/lib/python3.10/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
|
|
||||||
json_out['return_val'] = hook(**hook_input['kwargs'])
|
|
||||||
File "/usr/local/lib/python3.10/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
|
|
||||||
return _build_backend().build_wheel(wheel_directory, config_settings,
|
|
||||||
File "/tmp/tmp1wy3mwag/.venv/lib/python3.10/site-packages/poetry/core/masonry/api.py", line 58, in build_wheel
|
|
||||||
return WheelBuilder.make_in(
|
|
||||||
File "/tmp/tmp1wy3mwag/.venv/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 88, in make_in
|
|
||||||
wb.build(target_dir=directory)
|
|
||||||
File "/tmp/tmp1wy3mwag/.venv/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 121, in build
|
|
||||||
self._build(zip_file)
|
|
||||||
File "/tmp/tmp1wy3mwag/.venv/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 182, in _build
|
|
||||||
self._run_build_command(setup)
|
|
||||||
File "/tmp/tmp1wy3mwag/.venv/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 248, in _run_build_command
|
|
||||||
subprocess.check_call([
|
|
||||||
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
|
|
||||||
raise CalledProcessError(retcode, cmd)
|
|
||||||
subprocess.CalledProcessError: Command '['/tmp/tmp1wy3mwag/.venv/bin/python', '/tmp/tmp4kv56pfh/pypotrace-0.3/setup.py', 'build', '-b', '/tmp/tmp4kv56pfh/pypotrace-0.3/build', '--build-purelib', '/tmp/tmp4kv56pfh/pypotrace-0.3/build/lib', '--build-platlib', '/tmp/tmp4kv56pfh/pypotrace-0.3/build/lib.linux-x86_64-cpython-310']' returned non-zero exit status 1.
|
|
||||||
[39;22m
|
|
||||||
|
|
||||||
at [32m/usr/local/lib/python3.10/dist-packages/poetry/installation/chef.py[39m:[39;1m164[39;22m in [36m_prepare[39m
|
|
||||||
[39;2m160[39;22m[39;2m│[39;22m
|
|
||||||
[39;2m161[39;22m[39;2m│[39;22m [39m error [39m[39;2m= [39;22m[39mChefBuildError[39m[39;2m([39;22m[33;1m"\n\n"[39;22m[39;2m.[39;22m[39mjoin[39m[39;2m([39;22m[39mmessage_parts[39m[39;2m))[39;22m
|
|
||||||
[39;2m162[39;22m[39;2m│[39;22m
|
|
||||||
[39;2m163[39;22m[39;2m│[39;22m [39m [39m[35;1mif [39;22m[39merror [39m[35;1mis not None[39;22m[39;2m:[39;22m
|
|
||||||
[31;1m→[39;22m [39;1m164[39;22m[39;2m│[39;22m [39m [39m[35;1mraise [39;22m[39merror [39m[35;1mfrom None[39;22m
|
|
||||||
[39;2m165[39;22m[39;2m│[39;22m
|
|
||||||
[39;2m166[39;22m[39;2m│[39;22m [39m [39m[35;1mreturn [39;22m[39mpath[39m
|
|
||||||
[39;2m167[39;22m[39;2m│[39;22m
|
|
||||||
[39;2m168[39;22m[39;2m│[39;22m [39m [39m[35;1mdef [39;22m[39m_prepare_sdist[39m[39;2m([39;22m[39;1mself[39;22m[39;2m, [39;22m[39marchive[39m[39;2m: [39;22m[39mPath[39m[39;2m, [39;22m[39mdestination[39m[39;2m: [39;22m[39mPath [39m[39;2m| [39;22m[35;1mNone [39;22m[39;2m= [39;22m[35;1mNone[39;22m[39;2m) -> [39;22m[39mPath[39m[39;2m:[39;22m
|
|
||||||
|
|
||||||
[34mNote: This error originates from the build backend, and is likely not a problem with poetry but with pypotrace (0.3) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "pypotrace (==0.3)"'.[39m
|
|
||||||
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ [7mudo apt-get install build-essential python-dev libagg-dev libpotrace-dev pkg-config[27m
[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[Cudo apt-get install build-essential python-dev libagg-dev libpotrace-dev pkg-config
|
|
||||||
[?2004l
Command 'udo' not found, but can be installed with:
|
|
||||||
sudo apt install udo
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ udo apt-get install build-essential python-dev libagg-dev libpotrace-dev pkg-config[1@s
|
|
||||||
[?2004l
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 3%
Reading package lists... 3%
Reading package lists... 5%
Reading package lists... 5%
Reading package lists... 6%
Reading package lists... 6%
Reading package lists... 6%
Reading package lists... 6%
Reading package lists... 6%
Reading package lists... 6%
Reading package lists... 6%
Reading package lists... 6%
Reading package lists... 33%
Reading package lists... 33%
Reading package lists... 46%
Reading package lists... 46%
Reading package lists... 59%
Reading package lists... 59%
Reading package lists... 59%
Reading package lists... 59%
Reading package lists... 59%
Reading package lists... 59%
Reading package lists... 59%
Reading package lists... 59%
Reading package lists... 63%
Reading package lists... 63%
Reading package lists... 64%
Reading package lists... 64%
Reading package lists... 67%
Reading package lists... 67%
Reading package lists... 71%
Reading package lists... 71%
Reading package lists... 71%
Reading package lists... 71%
Reading package lists... 74%
Reading package lists... 74%
Reading package lists... 77%
Reading package lists... 77%
Reading package lists... 78%
Reading package lists... 78%
Reading package lists... 79%
Reading package lists... 79%
Reading package lists... 79%
Reading package lists... 79%
Reading package lists... 79%
Reading package lists... 79%
Reading package lists... 79%
Reading package lists... 79%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 80%
Reading package lists... 83%
Reading package lists... 83%
Reading package lists... 84%
Reading package lists... 84%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 91%
Reading package lists... 91%
Reading package lists... 91%
Reading package lists... 91%
Reading package lists... 93%
Reading package lists... 93%
Reading package lists... 96%
Reading package lists... 96%
Reading package lists... 97%
Reading package lists... 97%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 99%
Reading package lists... Done
|
|
||||||
Building dependency tree... 0%
Building dependency tree... 0%
Building dependency tree... 50%
Building dependency tree... 50%
Building dependency tree... Done
|
|
||||||
Reading state information... 0%
Reading state information... 0%
Reading state information... Done
|
|
||||||
Package python-dev is not available, but is referred to by another package.
|
|
||||||
This may mean that the package is missing, has been obsoleted, or
|
|
||||||
is only available from another source
|
|
||||||
However the following packages replace it:
|
|
||||||
python2-dev:i386 python2:i386 python2-dev python2 python-dev-is-python3
|
|
||||||
|
|
||||||
E: Package 'python-dev' has no installation candidate
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ sudo apt-get install build-essential python-dev libagg-dev libpotrace-dev pkg-config[C[1P[1P[1P[1P[1P[1P[1P[1P[1P[1P[1P
|
|
||||||
[?2004l
Reading package lists... 0%
Reading package lists... 100%
Reading package lists... Done
|
|
||||||
Building dependency tree... 0%
Building dependency tree... 0%
Building dependency tree... 50%
Building dependency tree... 50%
Building dependency tree... Done
|
|
||||||
Reading state information... 0%
Reading state information... 0%
Reading state information... Done
|
|
||||||
build-essential is already the newest version (12.9ubuntu3).
|
|
||||||
build-essential set to manually installed.
|
|
||||||
pkg-config is already the newest version (0.29.2-1ubuntu3).
|
|
||||||
The following packages were automatically installed and are no longer required:
|
|
||||||
gyp libjs-events libjs-inherits libjs-is-typedarray libjs-psl libjs-source-map libjs-sprintf-js libjs-typedarray-to-buffer node-abbrev node-ansi-regex node-ansi-styles node-ansistyles node-are-we-there-yet node-arrify node-asap node-asynckit node-balanced-match node-brace-expansion node-chownr
|
|
||||||
node-clean-yaml-object node-color-convert node-color-name node-commander node-core-util-is node-decompress-response node-delayed-stream node-delegates node-depd node-diff node-encoding node-end-of-stream node-err-code node-escape-string-regexp node-fancy-log node-foreground-child node-fs.realpath
|
|
||||||
node-function-bind node-get-stream node-glob node-growl node-has-flag node-has-unicode node-hosted-git-info node-iconv-lite node-iferr node-imurmurhash node-indent-string node-inflight node-inherits node-ini node-ip node-ip-regex node-is-buffer node-is-plain-obj node-is-typedarray node-isarray node-isexe
|
|
||||||
node-json-parse-better-errors node-jsonparse node-kind-of node-lodash-packages node-lowercase-keys node-lru-cache node-mimic-response node-minimatch node-minimist node-minipass node-mute-stream node-negotiator node-npm-bundled node-once node-osenv node-p-cancelable node-p-map node-path-is-absolute
|
|
||||||
node-process-nextick-args node-promise-inflight node-promise-retry node-promzard node-pump node-quick-lru node-read node-readable-stream node-resolve node-retry node-safe-buffer node-set-blocking node-signal-exit node-slash node-slice-ansi node-source-map node-spdx-correct node-spdx-exceptions
|
|
||||||
node-spdx-expression-parse node-spdx-license-ids node-sprintf-js node-stealthy-require node-string-decoder node-supports-color node-text-table node-time-stamp node-tmatch node-typedarray-to-buffer node-universalify node-util-deprecate node-validate-npm-package-license node-webidl-conversions node-whatwg-fetch
|
|
||||||
node-wrappy node-yallist python-pkginfo-doc python3-cachecontrol python3-cachy python3-cleo python3-clikit python3-crashtest python3-distlib python3-html5lib python3-lockfile python3-msgpack python3-pastel python3-pip python3-pkginfo python3-platformdirs python3-poetry-core python3-pylev python3-requests-toolbelt
|
|
||||||
python3-shellingham python3-tomlkit python3-virtualenv python3-wheel python3-wheel-whl
|
|
||||||
Use 'sudo apt autoremove' to remove them.
|
|
||||||
The following additional packages will be installed:
|
|
||||||
libpotrace0
|
|
||||||
The following NEW packages will be installed:
|
|
||||||
libagg-dev libpotrace-dev libpotrace0
|
|
||||||
0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded.
|
|
||||||
Need to get 1 068 kB of archives.
|
|
||||||
After this operation, 5 721 kB of additional disk space will be used.
|
|
||||||
Do you want to continue? [Y/n] y
|
|
||||||
0% [Working]
Get:1 http://mirror.yandex.ru/ubuntu jammy/universe amd64 libagg-dev amd64 1:2.6.1-r134+dfsg1-2 [1 048 kB]
|
|
||||||
0% [1 libagg-dev 2 476 B/1 048 kB 0%]
85% [Working]
Get:2 http://mirror.yandex.ru/ubuntu jammy/universe amd64 libpotrace0 amd64 1.16-2 [17,2 kB]
|
|
||||||
85% [2 libpotrace0 3 877 B/17,2 kB 22%]
93% [Working]
Get:3 http://mirror.yandex.ru/ubuntu jammy/universe amd64 libpotrace-dev amd64 1.16-2 [3 380 B]
|
|
||||||
93% [3 libpotrace-dev 3 380 B/3 380 B 100%]
100% [Working]
Fetched 1 068 kB in 0s (2 539 kB/s)
|
|
||||||
Selecting previously unselected package libagg-dev:amd64.
|
|
||||||
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 831185 files and directories currently installed.)
|
|
||||||
Preparing to unpack .../libagg-dev_1%3a2.6.1-r134+dfsg1-2_amd64.deb ...
|
|
||||||
Unpacking libagg-dev:amd64 (1:2.6.1-r134+dfsg1-2) ...
|
|
||||||
Selecting previously unselected package libpotrace0:amd64.
|
|
||||||
Preparing to unpack .../libpotrace0_1.16-2_amd64.deb ...
|
|
||||||
Unpacking libpotrace0:amd64 (1.16-2) ...
|
|
||||||
Selecting previously unselected package libpotrace-dev:amd64.
|
|
||||||
Preparing to unpack .../libpotrace-dev_1.16-2_amd64.deb ...
|
|
||||||
Unpacking libpotrace-dev:amd64 (1.16-2) ...
|
|
||||||
Setting up libagg-dev:amd64 (1:2.6.1-r134+dfsg1-2) ...
|
|
||||||
Setting up libpotrace0:amd64 (1.16-2) ...
|
|
||||||
Setting up libpotrace-dev:amd64 (1.16-2) ...
|
|
||||||
Processing triggers for libc-bin (2.35-0ubuntu3.7) ...
|
|
||||||
[?2004h]0;aarizona@TD-AARIZONA: ~/projects/interactive-table[01;32maarizona@TD-AARIZONA[00m:[01;34m~/projects/interactive-table[00m$ sudo apt-get install build-essential libagg-dev libpotrace-dev pkg-config[11@python-dev [C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C
[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C
|
|
Loading…
Reference in New Issue