Skip to content

Commit

Permalink
add uri banner
Browse files Browse the repository at this point in the history
  • Loading branch information
neikboy committed Apr 1, 2023
1 parent 710a85a commit 9c1b172
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/app/main.py
Expand Up @@ -65,7 +65,8 @@ def checkSpaces(parkingSlotFilename):

x,y = rect[0]
cv2.putText(img, str(count), (int(x) + 6, int(y) + 15), cv2.FONT_HERSHEY_PLAIN, 1, color, 2)

uri = cv2.imread("source\\assets\\uri.jpg")
img[11: 111, img.shape[1]-130: img.shape[1]-30] = cv2.resize(uri, dsize=(100, 100))
cvzone.putTextRect(img, f'Frei: {spaces}/{len(posList)}', (50, 60), thickness=3, offset=20, colorR=(0, 200, 0))
return spaces, posList

Expand Down

0 comments on commit 9c1b172

Please sign in to comment.