Video plate capture: calibration, edge enhance, auto-detect well borders
This commit is contained in:
@@ -31,7 +31,7 @@ class Command(BaseCommand):
|
||||
|
||||
)
|
||||
print()
|
||||
print(f"Export video: {job.id}")
|
||||
print(f"Export video: {job.id}") # type: ignore[union-attr]
|
||||
except Exception as e:
|
||||
print("Export video uuid error", e)
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ def create_user():
|
||||
if User.objects.count() == 0:
|
||||
for email, username, password, is_superuser in settings.ADMINS:
|
||||
if is_superuser:
|
||||
User.objects.create_superuser(
|
||||
User.objects.create_superuser( # type: ignore[attr-defined]
|
||||
email=email,
|
||||
username=username,
|
||||
password=password,
|
||||
@@ -21,7 +21,7 @@ def create_user():
|
||||
is_superuser=is_superuser,
|
||||
)
|
||||
else:
|
||||
User.objects.create_user(
|
||||
User.objects.create_user( # type: ignore[attr-defined]
|
||||
email=email,
|
||||
username=username,
|
||||
password=password,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# encoding: utf-8
|
||||
from uuid import uuid4
|
||||
from django.core.management import BaseCommand
|
||||
from django.core.management.utils import get_random_string;
|
||||
from django.utils.crypto import get_random_string
|
||||
|
||||
class Command(BaseCommand):
|
||||
def add_arguments(self, parser):
|
||||
|
||||
@@ -4,7 +4,11 @@ Created on 19 janv. 2026
|
||||
@author: denis
|
||||
'''
|
||||
from django.core.management.base import BaseCommand
|
||||
from modules.grbl import GRBLController, wait_for
|
||||
from modules.grbl import GRBLController
|
||||
import threading
|
||||
|
||||
def wait_for(delay: float = 1.0) -> None:
|
||||
threading.Event().wait(delay)
|
||||
import time
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user