TRACKING OBJECT AND DETECT X,Y COORDINATE USING OPENCV WITH PYTHON
This code you can get it. Any problem please contact to me : (VN) 0327085425 by zalo app.
wish you success with your project.
import numpy as np
def drawBox(img, bbox):
x,y,w,h = int(bbox[0]),int(bbox[1]),int(bbox[2]),int(bbox[3])
(img,(x,y),((x w),(y h)),(0,0,255),3,1)
(img,“Tracking“, (50,80),,0.7,(0,255,0),1)
# show x,y coordinate:
(img,“X =“, (0,30),,0.7,(0,255,0),1)
(img,str(int(x)), (40,30),,0.7,(0,255,0),1)
(img,“Y =“, (100,30),,0.7,(0,255,0),1)
(img,str(int(y)), (140,30),,0.7,(0,255,0),1)
1 view
596
253
3 months ago 00:35:54 1
How to crochet | No Sew Dog Husky Amigurumi | Step by Step
4 months ago 00:03:30 1
Dj Ramezz & Andrey Bo “ It’s On You “ 2024
4 months ago 00:03:41 1
Si je pouvais faire n’importe quoi
4 months ago 00:03:43 1
Andrey Bo & Jazzilka - It’s a rainy day (Ice Mc Cover)
4 months ago 00:08:17 3
Mastering Workflows: Scene Extension using Reference Geometry Created in PFTrack
4 months ago 00:05:23 1
[Touhou Vocal] [Shibayan Records] fuwafuwa*pocapoca (spanish & english subtitles)