Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backend/app/ner/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import cv2
import time


# Run the ner_onnx.py to create the onnx model in the models folder
def ner_marking(text1):
# change the path is required
Expand Down Expand Up @@ -167,7 +168,7 @@ def scanning(names):
gray, scaleFactor=1.1, minNeighbors=5, minSize=(30, 30)
)

for (x, y, w, h) in faces:
for x, y, w, h in faces:
cv2.rectangle(frame, (x, y), (x + w, y + h), (0, 0, 255), 2)
cv2.putText(
frame,
Expand Down
8 changes: 5 additions & 3 deletions backend/app/routes/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,11 @@ def get_class_ids(path: str = Query(...)):
class_ids = get_objects_db(path)
return ClassIDsResponse(
success=True,
message="Successfully retrieved class IDs"
if class_ids
else "No class IDs found for the image",
message=(
"Successfully retrieved class IDs"
if class_ids
else "No class IDs found for the image"
),
data=class_ids if class_ids else "None",
)

Expand Down
1 change: 1 addition & 0 deletions backend/app/schemas/facetagging.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from pydantic import BaseModel
from typing import List, Dict


# Response Model
class SimilarPair(BaseModel):
image1: str
Expand Down
131 changes: 0 additions & 131 deletions docs/Manual_Setup_Guide.md

This file was deleted.

80 changes: 0 additions & 80 deletions docs/Script_Setup_Guide.md

This file was deleted.

24 changes: 0 additions & 24 deletions docs/backend/backend_python/setup.md

This file was deleted.

51 changes: 0 additions & 51 deletions docs/backend/backend_rust/setup.md

This file was deleted.

Loading