Compare commits
No commits in common. "82abe8b6d5f1109d803dbf5ada03aabb0075e36b" and "e7b63126d24f1558fbf77d2758ec4d9474e587c6" have entirely different histories.
82abe8b6d5
...
e7b63126d2
|
@ -14,16 +14,6 @@
|
|||
],
|
||||
"justMyCode": true
|
||||
},
|
||||
// {
|
||||
// "name": "Quick, Specific Debug",
|
||||
// "type": "python",
|
||||
// "request": "launch",
|
||||
// "module": "wyzely_detect",
|
||||
// "args": [
|
||||
// "--run-scale", "0.25", "--view-scale", "0.5", "--no-remove-representations", "--detect-object", "person", "--detect-object", "cell phone"
|
||||
// ],
|
||||
// "justMyCode": true
|
||||
// },
|
||||
{
|
||||
// "name": "Python: Module",
|
||||
"name": "Full Debug",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# import face_recognition
|
||||
from pathlib import Path
|
||||
import os
|
||||
import cv2
|
||||
|
||||
# import hjson as json
|
||||
|
|
|
@ -154,7 +154,7 @@ def set_argparse():
|
|||
object_detection = argparser.add_argument_group("Object Detection options")
|
||||
object_detection.add_argument(
|
||||
"--detect-object",
|
||||
action="append",
|
||||
nargs="*",
|
||||
default=[],
|
||||
type=str,
|
||||
help="The object(s) to detect. Must be something the model is trained to detect",
|
||||
|
|
|
@ -100,7 +100,7 @@ def process_footage(
|
|||
# Also, make sure that the objects to detect are in the list of objects_and_peoples
|
||||
# If it isn't, print a warning
|
||||
for obj in detect_object:
|
||||
if obj not in objects_and_peoples["objects"].keys():
|
||||
if obj not in objects_and_peoples:
|
||||
print(
|
||||
f"Warning: {obj} is not in the list of objects the model can detect!"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue