Compare commits

..

No commits in common. "88180d035c369a14b07cf12f19f3fdb6cf708fb2" and "ff2088c1d0bc24ad1930355df841e0dd0b1383d1" have entirely different histories.

3 changed files with 4 additions and 10 deletions

View File

@ -1,8 +1,7 @@
from .get_bounding_boxes import select_bounding_boxes from .get_bounding_boxes import select_bounding_boxes
from .pixelation_process import pixelate
def cli(): def cli():
print(f"Running secure_pixelation") print(f"Running secure_pixelation")
pixelate("assets/human_detection/test.png") select_bounding_boxes("assets/human_detection/test.png")

View File

@ -1,6 +1,6 @@
from __future__ import annotations from __future__ import annotations
from typing import Union, List, Tuple from typing import Union, List
from pathlib import Path from pathlib import Path
import json import json
@ -24,11 +24,6 @@ class RawImage:
else: else:
return self.file.with_name(self.file.stem + "_" + ending) return self.file.with_name(self.file.stem + "_" + ending)
def get_dir(self, name: str) -> Path:
p = self._get_path(ending=name, original_suffix=False)
p.mkdir(exist_ok=True, parents=True)
return p
def read_meta(self) -> dict: def read_meta(self) -> dict:
if not self.meta_file.exists(): if not self.meta_file.exists():
return {} return {}

View File

@ -18,5 +18,5 @@ def select_bounding_boxes(to_detect: str):
fromCenter=False fromCenter=False
) )
raw_image.bounding_boxes.extend(bounding_boxes.tolist()) raw_image.bounding_boxes.extend(bounding_boxes)
raw_image.write_meta() raw_image.write_meta()