Find Jobs
Hire Freelancers

opencv , Ptython detect two objects at the same time

$30-250 USD

Në vazhdim
Postuar about 5 years ago

$30-250 USD

Paguhet në dorëzim
THIS PROJECT MUST WITHOUT EXCEPTION USE OPENCV & PYTHON...I am trying to track a player and object in the same frame/video/camera...ultimately camera only ... using KCF for now to track the player, but will not track ball import cv2 import sys import imutils if __name__ == '__main__' : tracker_types = ['KSF '] tracker_type = tracker_types[0] tracker = cv2.TrackerKCF_create() # Read video video = [login to view URL]("[login to view URL]") # Exit if video not opened. if not [login to view URL](): print ("Could not open video") [login to view URL]() # Read first frame. ok, frame = [login to view URL]() frame = [login to view URL](frame, width= 720) #frame = [login to view URL](frame, height= 720) if not ok: print ('Cannot read video file') [login to view URL]() # Define an initial bounding box bbox = (320, 230, 230, 320) # Uncomment the line below to select a different bounding box #bbox = [login to view URL](frame, False) # Initialize tracker with first frame and bounding box ok = [login to view URL](frame, bbox) while True: # Read a new frame ok, frame = [login to view URL]() if not ok: break # Start timer timer = [login to view URL]() # Update tracker ok, bbox = [login to view URL](frame) # Calculate Frames per second (FPS) fps = [login to view URL]() / ([login to view URL]() - timer); # Draw bounding box if ok: # Tracking success p1 = (int(bbox[0]), int(bbox[1])) p2 = (int(bbox[0] + bbox[2]), int(bbox[1] + bbox[3])) [login to view URL](frame, p1, p2, (255,0,0), 2, 1) else : # Tracking failure [login to view URL](frame, "Tracking failure detected", (100,80), cv2.FONT_HERSHEY_SIMPLEX, 0.75,(0,0,255),2) # Display tracker type on frame [login to view URL](frame, tracker_type + " Tracker", (100,20), cv2.FONT_HERSHEY_SIMPLEX, 0.75, (50,170,50),2); # Display FPS on frame [login to view URL](frame, "FPS : " + str(int(fps)), (100,50), cv2.FONT_HERSHEY_SIMPLEX, 0.75, (50,170,50), 2); # Display result [login to view URL]("Tracking", frame) colorLower = (91,45,58) colorUpper = (90,33,93) # Start with LED off # loop over the frames from the video stream while True: # grab the next frame from the video stream, Invert 180o, resize the # frame, and convert it to the HSV color space frame = [login to view URL]() frame = [login to view URL](frame, width=500) frame = [login to view URL](frame, height=700) hsv = [login to view URL](frame, cv2.COLOR_BGR2HSV) # construct a mask for the object color, then perform # a series of dilations and erosions to remove any small # blobs left in the mask mask = [login to view URL](hsv, colorLower, colorUpper) mask = [login to view URL](mask, None, iterations=2) mask = [login to view URL](mask, None, iterations=2) # find contours in the mask and initialize the current # (x, y) center of the object cnts = [login to view URL]([login to view URL](), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)[-2] #cnts = cnts[0] if imutils.is_cv2() else cnts[1] center = None # only proceed if at least one contour was found if len(cnts) > 0: # find the largest contour in the mask, then use # it to compute the minimum enclosing circle and # centroid c = max(cnts, key=[login to view URL]) ((x, y), radius) = [login to view URL](c) M = [login to view URL](c) center = (int(M["m10"] / M["m00"]), int(M["m01"] / M["m00"])) # only proceed if the radius meets a minimum size if radius > 10: # draw the circle and centroid on the frame, # then update the list of tracked points [login to view URL](frame, (int(x), int(y)), int(radius), (0, 255, 255), 2) [login to view URL](frame, center, 5, (0, 0, 255), -1) # show the frame to our screen [login to view URL]("Frame", frame) print("\n [INFO] Exiting [embed=file 1415770][embed=file 1415771]Program and cleanup stuff \n") [login to view URL]() [login to view URL]()
ID e Projektit: 19026758

Rreth projektit

3 propozime
Projekt në distancë
Aktive 5 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
3 freelancers are bidding on average $189 USD for this job
Avatari i Përdoruesit
~~~ Welcome to your visit to my profile! ~~~ Hi, nice to meet you. I am very interested in your project. I have extensive experiences in Image processing and computer vision such as object detection, image recognition, image classification, pattern recognition and matching, real time object tracking and counting, ALPR and OCR, handwritten text recognition, OMR and MRZ sheet recognition, ID card recognition, business card recognition, game character recognition, pdf recognition using Python/Matlab, OpenCV. I can provide best results in your deadline. Please feel free to contact me for these kinds of projects. Let's discuss in more detail via chatting box, please. I am waiting for your message... Thanks!
$300 USD në 3 ditë
5,0 (7 përshtypje)
4,1
4,1
Avatari i Përdoruesit
First:- Chatbot --> This can be integrated by any Facebook page, Slack etc. Its main aim is to reduce the human effort. For example, if this Chatbot is integrated with company page so it can easily answer you some basic questions about the company. Second:- Word Predictor --> This will be integrated with my Chatbot and it's an algorithm is such that it will learn according to previous input given and then It will suggest the next question and next word accordingly. Third:- Comment Checker --> This has a huge set of words inbuilt with its degree and level and it will analyze each comment and according to that it can give the report or if any inappropriate comment is taken it can forward to the authority. Speech Recognisation Train the database using deep learning, doing language model and lexical model for Arabic , adding functions to increase different types of noise at different levels as the picture shows. Then we notice the results.
$155 USD në 3 ditë
4,1 (2 përshtypje)
4,7
4,7
Avatari i Përdoruesit
Hello I am professional developer..I can develop this for you. let me discuss right now.I am ready to do that for you
$111 USD në 3 ditë
0,0 (0 përshtypje)
0,0
0,0

Rreth klientit

Flamuri i UNITED STATES
baltimore, United States
5,0
21
Mënyra e pagesës u verifikua
Anëtar që nga tet 5, 2010

Verifikimi i klientit

Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.