scripts/libraries: Move _NO_DETECTION into post-processors.

MicroPython doesn't import _NO_DETECTION from utils using the wildcard
operator. Importing it by name works, but, only after removing the
const() part in the call.
This commit is contained in:
Kwabena W. Agyeman 2025-10-07 22:05:00 -07:00 committed by iabdalkader
parent c282c9474c
commit 1e8eb2ec2f
5 changed files with 12 additions and 3 deletions

View File

@ -31,6 +31,9 @@ from micropython import const
from ulab import numpy as np
_NO_DETECTION = const(())
# This is a lightweight version of the tiny yolo v2 object detection algorithm.
# It was optimized to work well on embedded devices with limited computational resources.
class YoloV2:

View File

@ -31,6 +31,9 @@ from micropython import const
from ulab import numpy as np
_NO_DETECTION = const(())
class Fomo:
_FOMO_CLASSES = const(1)

View File

@ -31,6 +31,9 @@ from micropython import const
from ulab import numpy as np
_NO_DETECTION = const(())
class BlazeFace:
_BLAZEFACE_CX = const(0)
_BLAZEFACE_CY = const(1)

View File

@ -31,6 +31,9 @@ from micropython import const
from ulab import numpy as np
_NO_DETECTION = const(())
class YoloV5:
_YOLO_V5_CX = const(0)
_YOLO_V5_CY = const(1)

View File

@ -30,9 +30,6 @@ import math
from ulab import numpy as np
_NO_DETECTION = const(())
def logit(x):
return np.log(x / (1.0 - x))