Track & Count Objects using YOLOv8 ByteTrack & Supervision

  Рет қаралды 142,475

Roboflow

Roboflow

Күн бұрын

Пікірлер: 366
@omoyeyeemmanuel4238
@omoyeyeemmanuel4238 6 ай бұрын
your code comes with the error of numpy between float, int and double
@Roboflow
@Roboflow 6 ай бұрын
I recommend using updated version of the notebook: colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/how-to-track-and-count-vehicles-with-yolov8-and-supervison.ipynb
@MOG_Emmanuel
@MOG_Emmanuel 6 ай бұрын
thanks @@Roboflow
@mariacaleropereira2967
@mariacaleropereira2967 5 ай бұрын
@@Roboflow Does that notebook solve the error? Thank you!
@sportsyard
@sportsyard 5 ай бұрын
Is there any other updated notebook because this one is also throwing some error
@Nasarae
@Nasarae 4 ай бұрын
​@@mariacaleropereira2967 The notebook works perfectly :)
@akhileshsharma5067
@akhileshsharma5067 7 ай бұрын
Hello Piotr @roboflow, thank you for the video. I have trained my model on 3 different classes.Would it be possible to have the line zone annotator display the count of each class separately rather than the sum of detections of all classes? Can you please help with this?
@Teleportcamera
@Teleportcamera Жыл бұрын
Thank you for the amazing video! Is it possible to invoke yolo8 on every 4th frame (for example), instead of every single frame? And have some kind of other system follow the object in the other 3 frames (to save on resources).
@Roboflow
@Roboflow Жыл бұрын
Not to my knowledge. You skip the frame completely or not. All of those trackers depend on boxes being generated by the model. That being said you can try to pass detections to tracker every 4th frame. It all depends on input video but could still work.
@OmarHisham1
@OmarHisham1 Жыл бұрын
Fun Fact: Tqdm is an arabic word pronounced "Ta-qa-dom", which means progress
@SkalskiP
@SkalskiP Жыл бұрын
Hi it's Peter from the video! Wow! I didn't know that. Now you made me look and here is what I found: tqdm derives from the Arabic word taqaddum (تقدّم) which can mean “progress,” and is an abbreviation for “I love you so much” in Spanish (te quiero demasiado).
@OmarHisham1
@OmarHisham1 Жыл бұрын
@@SkalskiP didn't know about the Spanish abbreviation, Nice informative tutorial btw
@jorgehenriquesoares7880
@jorgehenriquesoares7880 Жыл бұрын
This is, in fact, fun. Thank you.
@vm5954
@vm5954 7 ай бұрын
Difficult to install though no module ultralytics🙄
@cristianespana4253
@cristianespana4253 7 ай бұрын
Hola tengo el error en la parte del código : tracks = byte_tracker.update( output_results=detections2boxes(detections=detections), img_info=frame.shape, img_size=frame.shape ) ;sale este error: AttributeError: module 'numpy' has no attribute 'float' ;pueden ayudar porfavor
@manuelnavarrete4509
@manuelnavarrete4509 6 ай бұрын
Tengo el mismo error, pudiste solucionarlo?
@cristianespana4253
@cristianespana4253 6 ай бұрын
@@manuelnavarrete4509 si ..antes de ejecutar el código agrega esta línea : !pip install -U numpy==1.23.5 ;después te pedirá reiniciar la sesión ,vuelves a ejecutar el código ya sin volver a instalar el numpy y listo
@aaron1uk
@aaron1uk Жыл бұрын
Fantastic tutorial, playing around with plenty of the options here, thanks for the upload.
@SkalskiP
@SkalskiP Жыл бұрын
Hi it is Peter from the video 👋Thanks a lot! Let us know what other feature could be useful ;)
@Jordufi
@Jordufi Жыл бұрын
I really need help for one thing. How can you show the specific number of cars and trucks that have gone in and out. For example: 3 cars and 1 truck in and 5 cars and 1 truck out
@Roboflow
@Roboflow Жыл бұрын
We don't have a dedicated feature yet, but you can build a workaround solution. Create two separate line counters. Filter detections by class, to get car and truck detections and trigger one line counter with car detections and the other with truck detections.
@Jordufi
@Jordufi Жыл бұрын
@@Roboflow I will try that, thank you very much!!!
@neeraj.kumar.1
@neeraj.kumar.1 Жыл бұрын
Bro I'm getting problem whenever I'm installation supervision in g-drive Please let me know how to solve this problem
@ibal6875
@ibal6875 Жыл бұрын
How about showing an example of how we can measure dimensions of objects ? Probably needs to use a reference object of known dimensions ?
@SkalskiP
@SkalskiP Жыл бұрын
Hi! This is Piotr from the video. This is something that is on my mind for a long time. And yes, having some reference object at least to calibrate measurements would be mandatory.
@leenaltwayan4004
@leenaltwayan4004 Жыл бұрын
Great video! However I tried implementing it with more than one counter (one for each lane) but it seems that LineCounter is a global variable shared across all other lanes. is there a way to overcome this? Thank you!
@Reallove555
@Reallove555 Жыл бұрын
I don't understand how you added numbers to the labels before class name. now i see: tracker_id = match_detections_with_tracks(detections=detections, tracks=tracks) labels = [ f"#{tracker_id} {CLASS_NAMES_DICT[class_id]} {confidence:0.2f}" for _, confidence, class_id, tracker_id in detections ]
@Roboflow
@Roboflow Жыл бұрын
Hi! 👋Could you elaborate on the question? Which part is not clear?
@kozaTG
@kozaTG 7 ай бұрын
nice and simple explanation. i am a beginner and i am trying to start with something simpler like object detection and counting i a picture how would i go about this?
@Roboflow
@Roboflow 6 ай бұрын
I think this video will be much more useful for you: kzbin.info/www/bejne/opDOl2x5m7-Sbq8
@vishnum7985
@vishnum7985 Жыл бұрын
Thanks. Can you tell me which tracking algorithm works better - ByteTrack or DeepSort
@SkalskiP
@SkalskiP Жыл бұрын
Hi it's Peter from the video. I like ByteTrack a lot more.
@matteocarlone6503
@matteocarlone6503 Жыл бұрын
Could you please do a tutorial about using yolo v8 real time on a webcam, even the pc webcam
@Roboflow
@Roboflow Жыл бұрын
Hi! Could you please add that idea here: github.com/roboflow/notebooks/discussions/categories/video-ideas?
@neeraj.kumar.1
@neeraj.kumar.1 Жыл бұрын
YOLOv8 detection + tracking + counting on webcam?
@SkalskiP
@SkalskiP Жыл бұрын
@@neeraj.kumar.1 hi I'll think about it. Next video comming soon :)
@VNNA-forfun
@VNNA-forfun 7 ай бұрын
I need 101% concentration to watch your videos, sometimes you copy and paste too fast. However, this is still a great video! p/s: I code follow you in my own file
@aliraxavlogs1156
@aliraxavlogs1156 Жыл бұрын
What do I do if I only want to detect and track the trucks in the video
@Roboflow
@Roboflow Жыл бұрын
Hi! 👋You would need to filter out detections by class_id. First, you need to check what is the class_id that represents the truck. I checked that and looks like it is 7. Now you can do something like that: detections = detections[detections.class_id == 7]. :)
@guillermovc
@guillermovc Жыл бұрын
Very Nice explanation bro, is there any possibility to colaborate in supervision development?
@DanielParker047
@DanielParker047 Жыл бұрын
Brother, I watched your Object detection for a custom dataset video, it's awesome. I trained with my own dataset and it works like magic. Now, if I want to calculate the time , an object appears in a video, how can I do that? Then, is it possible to do the same for different objects and plot them as graph with Time in y-axis and the type of object in x-axis?
@Roboflow
@Roboflow Жыл бұрын
Hi. Thanks a lot. We are actually thinking about making video like that. I hope we will be able to record it soon.
@DanielParker047
@DanielParker047 Жыл бұрын
@@Roboflow 😍 Thanks brother! Waiting for that video... ⏳
@danushkabandara
@danushkabandara Жыл бұрын
thanks for the video. I noticed that even with a clear view of all the vehicles, you still lose track of the truck and it gets a new id. Is there a way to limit the number of ids that the objects get so that this doesnt happen? for example you only have 4 possible labels during the video and the algorithm has to select the most likely label when tracking.
@SkalskiP
@SkalskiP Жыл бұрын
Is is possible to solve those issues. Or to at least make them less frequent. But potential solutions are usually strictly tied to use-case that you are trying to solve. In our case you can notice that those id changes are happening only when cars are still far away or when they are partially ocluded by this large metal object hanging over the left lane. Thats why I would propose to discard objects that are in top half of image and only take into account those that are in bottom half - closer.
@tolgaisk8539
@tolgaisk8539 Жыл бұрын
How do we count for each class
@pedrofonte9531
@pedrofonte9531 Жыл бұрын
I have one question: Since we are trying to count the objects and since the Object's id given by the tracker are unique, why can't we just count the last Id or count the different number of ids?
@Roboflow
@Roboflow Жыл бұрын
How do you know how many of them traveled up and how many down?
@sowmiyar6505
@sowmiyar6505 Жыл бұрын
Thankyou so much. The explanation was in-depth.
@Roboflow
@Roboflow Жыл бұрын
My pleasure!
@sowmiyar6505
@sowmiyar6505 Жыл бұрын
@@Roboflow by adjusting some resolution and having perfect line counter position,your code is doing great in real-time. 👍
@AsadAli-b9u
@AsadAli-b9u Жыл бұрын
The best and complete tutorial for implementing YOLOV8 based object detection, tracking and counting system. Love it brother
@Roboflow
@Roboflow Жыл бұрын
That’s what I strived for! Great to hear you liked it so much 🔥
@ashishreddy2634
@ashishreddy2634 9 ай бұрын
How can I count the bounding boxes for a set of images ( not a video) in this case ( using a pre trained yolov8 model with only 1 class)
@AsadAli-b9u
@AsadAli-b9u 4 ай бұрын
​@@ashishreddy2634 Are you trying to detect specific class?
@silakanveli
@silakanveli Жыл бұрын
Excellent! Just something I was looking! Thanks Roboflow. What was the fps?
@Roboflow
@Roboflow Жыл бұрын
We hope you will build something cool using supervision pip package ;)
@leonyap27
@leonyap27 Ай бұрын
@Roboflow may I know why I can't download or play the video? manage to full the code without error sv version 0.18.0
@Roboflow
@Roboflow Ай бұрын
Hi you mean you can’t download video form Colab? Could you be a bit more specific?
@m.shokarim9617
@m.shokarim9617 Жыл бұрын
Thanks for the video, it has been quite useful! I want to export the Tracking data as a CSV file. Specifically, I want to run the MOT evaluation toolset in order to evaluate my own dataset. Thus, I was wondering how I could correctly export each objects detection, its bounding boxes, confidence and so on for each frame. Any help would be greatly appreciated :))
@Roboflow
@Roboflow Жыл бұрын
We will actually release a new video this week. It will be about detections time analysts. But in this video we will show you how to save detections as csv. Stay tuned.
@m.shokarim9617
@m.shokarim9617 Жыл бұрын
Thank you very much) You guys are really being helpful with your videos.@@Roboflow
@m.shokarim9617
@m.shokarim9617 11 ай бұрын
Any news on the new video so far? I am really struggling to make sense of analyzing the ByteTrack on the MOT toolset. The codebase that ByteTrack provides is just so faulty and has zero guidance@@Roboflow
@lofihavensongs
@lofihavensongs Жыл бұрын
Hey there, thanks for the amazing YOLO 8 videos, I run the code for object detection and it was work fine. then I tried to run for instance segmentation. all steps are fine but in the final step when I run the code for Inference with Custom Model, code run without any issue but this message did not appear: Results saved to runs/segment/predict2. do you know what is the problem?
@Roboflow
@Roboflow Жыл бұрын
Could you create issue here: github.com/roboflow/notebooks/issues ?
@lofihavensongs
@lofihavensongs Жыл бұрын
@@Roboflow Hi I found the error , in the code should write : save=true but you forgot it I guess . Thanks
@Roboflow
@Roboflow Жыл бұрын
@@lofihavensongs thanks a lot! Let me try to update that
@shukkkursabzaliev1730
@shukkkursabzaliev1730 Жыл бұрын
@SkalskiP As always amazing job! One problem I am facing inside *match_detections_with_tracks* function, when the object is not in frame and model return _emtpy list_ this line gives error *iou = box_iou_batch(tracks_boxes, detection_boxes)* How can I solve it?
@SkalskiP
@SkalskiP Жыл бұрын
Hi it's Peter from the video. I just fixed that problem. Could you try the tutorial once again?
@ditya3548
@ditya3548 11 ай бұрын
26 minutes for this is not long at all. Thank you for what you do and please don't hesitate to make longer videos, however you see fit.
@Roboflow
@Roboflow 11 ай бұрын
My pleasure!
@katanshin
@katanshin 11 ай бұрын
It goes to show how streamlined this stuff has become. Try doing a PhD in this ten years ago and having to write your own code for everything AND the novel parts you're working on. Takes months and hours to explain. Now anyone can git clone and run complex models. What a world :)
@ditya3548
@ditya3548 11 ай бұрын
@@katanshin Truly!
@mvcko5296
@mvcko5296 Жыл бұрын
Is there any easy way to count objects on pre predicted images? And print results in termina. I have a problem with find solution in internet.
@alexandrelc4361
@alexandrelc4361 Жыл бұрын
Hello, how are you? I'm developing a project with Yolov8 to identify 3 items on a production line through images generated by a camera facing the product conveyor belt, the model has a good accuracy of around 95%, in separate frames it's very good, which what has happened is that in videos, in the item (screw) that in relation to the other items is small and the tracking does not follow well with a single identifier and in the same image there are one or more trackings for the same object generating false results in terms of quantity identified because I do the sum of different trackings, I put the same video at different speeds both for more or less and this item, because it has a small bounding box, has given error in the quantitative, for this reason I ran the model yolov8n and yolov8s ... I thought the 8n would be faster and with that would increase the precision in the counting but it didn't happen, I checked changing the fps of the video from 30 to 40 but it didn't help much, that is, the tracking can't keep up well and it changes identification as if If it were another screw, the others have reasonable accuracy and they are bigger... does anyone have any tips to help improve tracking in this case and avoid wrong counts? I'm using ByteTracker. Thanks !
@s4ifbn
@s4ifbn Жыл бұрын
thank you, nicley done, I was wondering if we use the segmentation model, how can we annotate the segments with supervision ?
@Roboflow
@Roboflow Жыл бұрын
Great question. We have support for segmentation on our road map, but it will take us a bit more time to put it on production.
@nehabhadu4977
@nehabhadu4977 9 ай бұрын
For classification into car, bus, truck and motorcycle which one is used ByteTrack or Supervision? Additionally, is Bytetrack also used for counting along with tracking? Because supervision is used for annotations.
@SunEside
@SunEside Жыл бұрын
How can I count cars with two diagonal lines not horizontal lines?? please teach my how to do this
@Roboflow
@Roboflow Жыл бұрын
You just need to create two lines and change coordinates of start and end :)
@djaadiabdellah9081
@djaadiabdellah9081 7 ай бұрын
Just wow! Thank you for this great content.
@yemibidemi-o5t
@yemibidemi-o5t Жыл бұрын
Thank you for this video, it's very explanatory. However, the supervision library has been updated, so these codes don't work anymore. I tried to get all those supervision utils from the documentation with little success after a couple of hours. Could you please , make a video dedicated to supervision library alone and where to find those functions and classes and what each one is used for. That will be very helpful. Thank you once again.
@Roboflow
@Roboflow Жыл бұрын
Take a look here: github.com/roboflow/notebooks/pull/190 it is a PR that updates our vehicle counting notebook to supervision 0.13.0.
@FatemehZaremehrjardi
@FatemehZaremehrjardi Жыл бұрын
Thank you so much for the video. what's the difference between this notebook and using "yolo track model=path/to/best.pt tracker="bytetrack.yaml"" ?
@Roboflow
@Roboflow Жыл бұрын
Hi! That video was actually recorded before YOLOv8 team added tracking capability. But in short, you can use ByteTrack with any object detection model, and if you will use Ultralytics implementation then you are bound to use only YOLOv8.
@NetoFreitass
@NetoFreitass 10 ай бұрын
Great video! How do I customize the counter? For example, position it in the corner of the screen, count cars, trucks, and motorcycles with their own counters? Thank you!
@chihebnouri5541
@chihebnouri5541 6 ай бұрын
did you find a fix?
@evanshlom1
@evanshlom1 Жыл бұрын
This is an important tutorial but the colab notebook is severely out of date with the supervision library
@Roboflow
@Roboflow Жыл бұрын
You think we should update the notebook and update tutorial?
@Roboflow
@Roboflow Жыл бұрын
I also noticed that in your previous comment, you mentioned broken imports. We specifically have pip install supervision==0.1.0 in the notebook to guarantee smooth execution.
@ChristoforosAristeidou
@ChristoforosAristeidou Жыл бұрын
What if i want to count objects of a specific class only? how can this be implemented? Let's say that we want to count only "car" class and not "truck" also? Can this be done?
@Roboflow
@Roboflow Жыл бұрын
sure! you just need to filter detections before passing them through the line counter. You would need to add this line before triggering: detections = detections[detections.class_id == YOUR_CLASS]
@ChristoforosAristeidou
@ChristoforosAristeidou Жыл бұрын
@@Roboflow well i get error: TypeError: 'Detections' object is not subscriptable Maybe if i use this filtering before the line counter?? #class to filter mask = np.array([class_id in CLASS_ID for class_id in detections.class_id], dtype=bool) detections.filter(mask=mask, inplace=True) Let's say instead of CLASS_ID to use [1] so i can keep only class 1
@hankling8963
@hankling8963 Жыл бұрын
Nice job ! love from china❤
@Roboflow
@Roboflow Жыл бұрын
Hi, it is Peter from the video! Thanks a looot! Love from Poland.
@baharuddindiassaputra6966
@baharuddindiassaputra6966 8 ай бұрын
Great video, i have a question in this video the linecounter from supervision will increase when all line from prediction box is through the line. Can you change it so just from bottom line / top line??
@Roboflow
@Roboflow 8 ай бұрын
Ask this question here: github.com/roboflow/supervision Describe what you want to do. We will do our best to help you.
@YMuhammadyusuf
@YMuhammadyusuf Жыл бұрын
0: 640x384 1 person, 1 airplane, 33.0ms Speed: 1.3ms preprocess, 33.0ms inference, 1.7ms postprocess per image at shape (1, 3, 640, 640) HI, it is saying so but returning the same video without updating it, no any boundix boxes are drawn just the same video
@Roboflow
@Roboflow Жыл бұрын
I believe we are filtering by specific classes in that code. You would need to remove that filtering to see those detections annotated on the video.
@jordanlee2839
@jordanlee2839 7 ай бұрын
very helpful video, but my code kept on having error due to the line [ tracks = byte_tracker.update( ] saying "AttributeError: module 'numpy' has no attribute 'float'. " plus when I use the google colab link in the description, i ran the byetrack and it encounters the same error, eventhough i didnt change any code i left it be and it kept on having the same error, so is it an update issue? can you please try and run your code in google colab in the description you gave? Because its seriously not working when i didnt even change any code
@Roboflow
@Roboflow 7 ай бұрын
I recommend using this updated version of the notebook: colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/how-to-track-and-count-vehicles-with-yolov8-and-supervison.ipynb
@jordanlee2839
@jordanlee2839 7 ай бұрын
@Roboflow thx a lot, I'll be sure to try this tomorrow
@atomix_2402
@atomix_2402 7 ай бұрын
@@Roboflow is there a lot of difference in two methods ?
@luisdavidviverosescamilla201
@luisdavidviverosescamilla201 Жыл бұрын
Hi I have question in this case you don't use deepsort technique for tracking the cars do I?
@Roboflow
@Roboflow Жыл бұрын
I use BytetTack. DeepSort is just another tracker that you can use.
@yoshirobulbasaur
@yoshirobulbasaur Жыл бұрын
Great video as always. But the ByteTRACK installation cell is throwing some error. It is unable to install YOLOX. Can anyone please help me debug it.
@Roboflow
@Roboflow Жыл бұрын
I uploaded an updated version of that notebook this morning. Should work now :)
@minhonvungoc117
@minhonvungoc117 Жыл бұрын
Thanks for your interesting video. Could you make a video to compare YOLOv8, YOLOv7, YOLOv6 for object detection and object tracking? That would be great!!!
@Roboflow
@Roboflow Жыл бұрын
Interesting idea! Do you think it is worth comparing them they are all super close regarding accuracy and speed. What sort of benchmark are you mostly interested in?
@heetshah5718
@heetshah5718 Жыл бұрын
Great work helps in understanding topics better. I have one question can I use the same code for image dataset.
@Roboflow
@Roboflow Жыл бұрын
Thanks a lot 🙏🏻 Could you explain a bit more?
@heetshah5718
@heetshah5718 Жыл бұрын
@@Roboflow I am working on Water Pollution Detection Project and I have a dataset of images of different types of pollution, my goal of this project is that I need to train Yolov8 model on that dataset and model should be able to classify the type of pollution.
@Roboflow
@Roboflow Жыл бұрын
@@heetshah5718 YOLOv8 have support for classification but it is most likely not the best model you could use.
@heetshah5718
@heetshah5718 Жыл бұрын
@@Roboflow Can you suggest which models should I use and Can I use this same code for image dataset as well?
@_Fangirling
@_Fangirling Жыл бұрын
Can you please tell me how to calculate the overall accuracy(SHOWING mAP score) of the particular trained yolov7 model in Google colab?
@anadianBaconator
@anadianBaconator Жыл бұрын
fantastic!! Would really like to know if this will work for live rtsp url (multiple different camera's) in real-time
@Roboflow
@Roboflow Жыл бұрын
We would need to try out, but I think it will :)
@anadianBaconator
@anadianBaconator Жыл бұрын
@@Roboflow let us know if you guys try it out. Enjoying the videos
@Roboflow
@Roboflow Жыл бұрын
@@anadianBaconator maybe we will manage to include it in one of our upcoming videos
@anadianBaconator
@anadianBaconator Жыл бұрын
@@Roboflow really appreciate it
@LubnaObaid
@LubnaObaid Жыл бұрын
Thank you very much for this useful video, Quick question: can we draw multiple lines for counting in and out traffic over an intersection ?
@Roboflow
@Roboflow Жыл бұрын
Yes! You can have multiple lines counting moving objects in different areas of the frame ;)
@LubnaObaid
@LubnaObaid Жыл бұрын
Also i want to ask if it is possible to export vehicles tracks ( position on each frame) on a separate excel/ csv file
@Roboflow
@Roboflow Жыл бұрын
@@LubnaObaid yes it is possible to di it in python, but we do not have any tutorial showing how to do it.
@LubnaObaid
@LubnaObaid Жыл бұрын
@@Roboflow Is there any specific library or command that you recommend to look for?
@Roboflow
@Roboflow Жыл бұрын
@@LubnaObaid last time when I did that I used a regular Python CSV package
@hossainalmahdi1248
@hossainalmahdi1248 6 ай бұрын
what to do if i want to show the vehicle counts based on their class. like car in: 1, bus in: 2, car out : 5, bus out: 6
@UltimatedKevin
@UltimatedKevin 2 ай бұрын
Hello! I have a question, how does the model interpret the "out" variable in the candy example? Can it make the difference between if the object is moving to the right or left? Because of how the bounding box is approaching the line? And thank you so much for creating this content!
@shaunjohnson4484
@shaunjohnson4484 Жыл бұрын
Thank you for the video! What is the specs of your computer? I want to calculate how long it would take to execute this computer vision method on a jetson Nano
@Roboflow
@Roboflow Жыл бұрын
I was doing this experiment on google colab. You are pretty much bound to performance of YOLOv8 on Nano. With small model it should be close to real time.
@ahmedattyah6410
@ahmedattyah6410 Жыл бұрын
hi bro thanks for your effort that tutorial is awsome , I need to do the same thing but real-time by using my webcam or an ip camera
@Roboflow
@Roboflow Жыл бұрын
Hi! Thanks a lot! We have tutorials about using webcam with supervision.
@MrCantyousea
@MrCantyousea Жыл бұрын
Always best contexts with very clear explanations... You are perfect bro !
@SkalskiP
@SkalskiP Жыл бұрын
haha! cv bro!
@Jkfyr99
@Jkfyr99 Жыл бұрын
I have been working with ByteTrack for a bit now, but I have struggled on evaluating its tracking performance do you know if it is possible to check tracking performance of the individual objects using something live MOT metrics?
@Roboflow
@Roboflow Жыл бұрын
Yes, it is possible but you would need to have annotated data.
@christopherstaples6758
@christopherstaples6758 Жыл бұрын
looking for something to count fish in murky water , well I can see them just fine but camera recording is crap
@Roboflow
@Roboflow Жыл бұрын
Are they visible at all on the recording? It will be pretty hard if they are not. :)
@a1mae
@a1mae 4 күн бұрын
our project is to detect and count the object on the captured photo. can we follow this tutorial? or is there other more applicable tutorial we can follow
@johnton96
@johnton96 9 күн бұрын
super nice video, but probably an update would be amazing since a lot has changed in the repository, right?
@MinEite-fb4wz
@MinEite-fb4wz 6 ай бұрын
I'm sorry to have kept you busy, but I would like to hear from you. I would like to know the source code that can count the number of different types of candy, such as white chocolate and strawberry chocolate.
@Bhai-zf1xi
@Bhai-zf1xi 6 ай бұрын
Hiw can i get the count of in and out vehicles in one var only . I just want the whole count . Is it possible??
@RamuCharpota-l4c
@RamuCharpota-l4c 8 ай бұрын
Thank you. This is nice. I have a requirement to create vehicle detection model with good accuracy. Is it possible to create for me and work for this
@user-firebender
@user-firebender 8 ай бұрын
how can i edit the in and out line (name/label), i want ti only detect in and how i adjust the script to immedietely ipdate the count when the object enter the scanning line and so it wonr't recount the object that already ?
@ChirawatNg
@ChirawatNg Жыл бұрын
Thank you for a very good explanation. I found that YOLOv8 has their own tracking command both CLI and python mode. I tried on CLI mode, it works well. but unfortunatly in python mode, ID always reset to id 1. Now I am thinking of using ByteTrack as you did or do you have any idea of using straight forward way to use YOLOv8 to tracking object. Thanks, Nott
@Roboflow
@Roboflow Жыл бұрын
Yeah we have video on YOLOv8 native tracking. Take a look here: kzbin.info/www/bejne/g5qcmnt8mZWSeNE
@ChirawatNg
@ChirawatNg Жыл бұрын
@@Roboflow thank you
@alielbahi4614
@alielbahi4614 Жыл бұрын
can you make a full raspberry pi project utilizing a model trained on roboflow
@SkalskiP
@SkalskiP Жыл бұрын
Hi it's Peter from the video! Perfect timing! I ordered my Raspberry pi yesterday. So stay tuned because that video is coming soon!
@alielbahi4614
@alielbahi4614 Жыл бұрын
@@SkalskiP Great, please include as much details as possible
@SkalskiP
@SkalskiP Жыл бұрын
@@alielbahi4614 I deployed models like that on NVidia Jetsons, but never on Raspberry, so that tutorial will be most likely zero to hero tutorial :)
@alielbahi4614
@alielbahi4614 Жыл бұрын
@@SkalskiP still waiting :)
@SkalskiP
@SkalskiP Жыл бұрын
@@alielbahi4614 I'm sure it is comming. We have done blogpost about Raspberry pi deployment. So we will most likely add video. Taht's what we usually do. Stay tuned. Sorry it takes so long.
@rafael.gildin
@rafael.gildin 11 ай бұрын
Does the same code works for crowd videos ? I’ve been failing to do it. Thanks.
@Roboflow
@Roboflow 11 ай бұрын
It should. But I’d need to see specific result to understand what’s failing.
@NeuralNetwork-go5zn
@NeuralNetwork-go5zn Жыл бұрын
hello, first of all congratulations for the clarity in the explanations and the passion you put into it! I'm a beginner but these things you showed in the video fascinate me a lot, I kindly wanted to ask you how can I recreate the code on a local IDE so that I can try it with my pc and not on colab and if there is a way to run it in real time. I tried but it gives me a series of errors especially when I try to install ByteTrack on anaconda and I don't know how to fix it.. any help and explanation is greatly appreciated, thank you very much for your time.
@Roboflow
@Roboflow Жыл бұрын
Please create a new discussion thread here: github.com/roboflow/notebooks/discussions describe what is the problem and I'll try to help you :)
@NeuralNetwork-go5zn
@NeuralNetwork-go5zn Жыл бұрын
@@Roboflow I did, now I wait, thanks again!
@caterinafabbri9212
@caterinafabbri9212 Жыл бұрын
Hi Peter, thank you very very much for your video and explanation! It was incredibly helpful. I have a question: for the counting why do we need the line? Since we have the tracking and each object has an id, should not be enough to count the unique id? Thank you
@malotabi5949
@malotabi5949 Жыл бұрын
Can we have the car speed and the postion (x,y,z)
@atomix_2402
@atomix_2402 7 ай бұрын
Hello Piotr @roboflow , I'm so very thankful for this insightful video i just wanted to know how do you consider the coordinates for the custom dataset like is there a method or just intiution
@Roboflow
@Roboflow 7 ай бұрын
Not really sure what you mean. Could you elaborate on your question?
@atomix_2402
@atomix_2402 7 ай бұрын
@@Roboflow What I meant is you draw out polygons for the polygon zone or line zone. How do you do that like the exact numbers in the numpy array.. You also showed a project for candy counting and tracking on conveyor belt. I couldnt find your video so i found similar in youtube made a dataset trained it but after that i couldn't make coordinates for the "line" based on which if the candy crosses the line its in and count increases.. So basically to sum it up How do one calculate the numpy array for the polygon zone?
@김과장-i4k
@김과장-i4k 8 ай бұрын
Thanks for information. By the way, I could not understand about the BYTETracks classes. In particular, I've tried adjusting the parameters aspect_ratio_thresh and min_box_area, but there wasn't a significant change. I would appreciate it if you could explain the specific meanings of these parameters. I hope to receive a prompt response. Thank you!
@MaríaRobertaDevesa
@MaríaRobertaDevesa 9 ай бұрын
hi! thanks ! its v useful. Can it be applied on cellphones ? like an android or IOS app?
@Benny_SupremeMaster
@Benny_SupremeMaster 4 ай бұрын
Hello do you have video how to count people on the street? Guys if you see my comment please tell me how can I see video about people counting ❤
@MayHtikeSwe
@MayHtikeSwe 8 ай бұрын
What camera did you use to see the chocolates going?
@Roboflow
@Roboflow 8 ай бұрын
This is stock footage I downloaded from internet :)
@kevj1605
@kevj1605 Жыл бұрын
Is the code just related to one or two test cases/videos? Is it possible to do it for any video in general?
@Roboflow
@Roboflow Жыл бұрын
Oh! It should work for any video you want. I already seen so many projects build on top of that code demo. Let me know if that works for your case too!
@arpitapujapanda8415
@arpitapujapanda8415 3 ай бұрын
Can you make a video on person re identification.
@santoshyadav-w7x9b
@santoshyadav-w7x9b 8 ай бұрын
it is possible to perform object tracking using YOLOv8 with a focus on two specific objects out of the 10 that the model detects. The code can be modified to track only those two predefined objects, providing you with the ability to monitor their movements and positions across frames. If you could provide additional details about the two objects you wish to track, I can assist you in adapting the code accordingly.
@hearthank8833
@hearthank8833 Жыл бұрын
I cannot import lapjv. It show ImportError: cannot import name 'LARGE_' from 'lapjv' (C:\()\lapjv.cp38-win_amd64.pyd). I tried to solve this problem but cannot.
@TarasHoloyad
@TarasHoloyad Жыл бұрын
Dear friend, Thank you for presenting that great stuff. Is there a way to count the separate types of vehicles crossing the line? Unfortunately, I am not able to handle that, even after creating a separately updated line_counter for each vehicle type inside the for loop. I appreciate any help you can provide.
@Roboflow
@Roboflow Жыл бұрын
Hi, could you create a discussion thread here: github.com/roboflow/notebooks/discussions I have a lot of work, but I'll try to help you out.
@TarasHoloyad
@TarasHoloyad Жыл бұрын
@@Roboflow Thank you for suggesting that - nevertheless, I figured it out. Everything works well after adding the following code for each class I want to detect: ## Recognition of class 2 (cars) detections = Detections( xyxy=results[0].boxes.xyxy.cpu().numpy(), confidence=results[0].boxes.conf.cpu().numpy(), class_id=results[0].boxes.cls.cpu().numpy().astype(int) ) # Masking of undesired classes mask = np.array([class_id in CLASS_ID for class_id in detections.class_id], dtype=bool) detections.filter(mask=mask, inplace=True) #Tracking of Objects tracks = byte_tracker.update( output_results=ostrukt(detections=detections), img_info=frame.shape, img_size=frame.shape ) tracker_id = match_detections_with_tracks(detections=detections, tracks=tracks) detections.tracker_id = np.array(tracker_id) # Extraction of not tracked but recognised objects mask = np.array([tracker_id is not None for tracker_id in detections.tracker_id], dtype=bool) detections.filter(mask=mask, inplace=True) # Labeling of object characteristics labels = [ f"#{tracker_id} {oklassen[class_id]} {confidence:0.2f}" for _, confidence, class_id, tracker_id in detections ] # Increasement mask = np.array([class_id in [2] for class_id in detections.class_id], dtype=bool) detections.filter(mask=mask, inplace=True) line_counter_car.update(detections=detections)
@kevinakd9308
@kevinakd9308 7 ай бұрын
Help me please! I has a error in the next code. the problem is here: tracks = byte_tracker.update( output_results=detections2boxes(detections=detections), img_info=frame.shape, img_size=frame.shape ) I dont know how i can fix it
@g.s.3389
@g.s.3389 Жыл бұрын
which version of Python3 did you use?
@Roboflow
@Roboflow Жыл бұрын
Google Colab is currently at Python 3.8.10
@situ1984
@situ1984 Жыл бұрын
show_frame_in_notebook is not working in google colab so i am unable to see the frame
@Roboflow
@Roboflow Жыл бұрын
Could you create issue here: github.com/roboflow/notebooks ? I will try to fix that as soon as possible.
@alexandrelc4361
@alexandrelc4361 Жыл бұрын
Thanks for your video , help a lot , bu t a have a trouble with the custom model line code : " model = YOLO(f'{HOME}/runs/detect/train5/weights/best.pt') results = model.predict(source = '/content/drive/MyDrive/Yolo_V8/test/images', conf = 0.25) ' the following error occurs " AttributeError: Can't get attribute 'IterableSimpleNamespace' on " someone can help i´ve tried some solutions but dont work until now. Tks !!!
@alexandrelc4361
@alexandrelc4361 Жыл бұрын
Thank you, I managed to solve the problem...wrong way.
@blessingagyeikyem9849
@blessingagyeikyem9849 Жыл бұрын
How do I get the specific time stamp for which the object was early detected in the video
@Roboflow
@Roboflow Жыл бұрын
We don’t have time analysis support yet in supervision :/
@AIEasySolutions
@AIEasySolutions 4 ай бұрын
Thank you very much, really appreciate! I applied to my custom video, it does not count correctly. I saw in your video it also does not count correctly, how we can improve it?
@nhanduong5917
@nhanduong5917 11 ай бұрын
from 7:49, the notebook from the link in the description doesn't have those lines, so where can I copy them to paste? Thank you!
@Roboflow
@Roboflow 11 ай бұрын
I just checked. The line definition is there.
@nhanduong5917
@nhanduong5917 11 ай бұрын
@@Roboflow I'm sorry but I don't understand! Could you please reply me with the link?
@himanshubhende3407
@himanshubhende3407 Жыл бұрын
The information is very simple and explained very clearly. Can you please provide the colab link of Candy detection.
@Roboflow
@Roboflow Жыл бұрын
Thanks a lot! It is exactly the same Colab. Only difference is difference model and different video. Code wise it is the same.
@AdarshSingh-rm6er
@AdarshSingh-rm6er 4 ай бұрын
I want to use supervision for face detection and tracking with Detectron2 model
@777sukumar
@777sukumar Жыл бұрын
Thank you for the video. It's really helpful. Is there any way to detect time stamp in the video to capture at what time Vehicle crosses the count line. It will be a great help.
@Roboflow
@Roboflow Жыл бұрын
Thanks a lot. Is that static file or stream?
@777sukumar
@777sukumar Жыл бұрын
@@Roboflow Thank you for your reply. Stream. Recorded footage of traffic with timestamp in it when it is recorded. It's similar to the Video used in your explanation.
@mohammadhaadiakhter2869
@mohammadhaadiakhter2869 Жыл бұрын
Is there any change that I can make to detect the speed of the vehicles. I used two lines, and took a random value for the distance between those two lines. Now the problem is I am not able to understand how to use 'time' library to extract the time for the vehicles going up the lane and down the lane between the two lines. Can please anyone help me with that?
@aerogrampur
@aerogrampur 4 ай бұрын
appreciate the elaborate explanation. Can we tag each of those objects with unique id? like car1, car2 ...etc
@luisdavidviverosescamilla201
@luisdavidviverosescamilla201 4 ай бұрын
Is there any other updated notebook because this one is also throwing some error ?
@Jkfyr99
@Jkfyr99 Жыл бұрын
amazing, I learned so much and it help me aswell! do you know if it is possible to use detections from detectron2 instead of yolov8?
@SkalskiP
@SkalskiP Жыл бұрын
Hi it Peter from video 👋Tomorrow we will release second video, showing new Supervision features. I have Detectron2 example for you.
@Jkfyr99
@Jkfyr99 Жыл бұрын
@@SkalskiP Really looking forward to it! Your content is amazing!
@SkalskiP
@SkalskiP Жыл бұрын
@@Jkfyr99 I'm recording right now ;)
@maalimaali9902
@maalimaali9902 10 ай бұрын
i have this problem ''AttributeError: type object 'Detections' has no attribute 'from_ultralytics'''
@MrAJGamer95
@MrAJGamer95 9 ай бұрын
Sir can i do the same process for people counting, if yes how can i ? Please help me out
@AmusedAtom-hh4pt
@AmusedAtom-hh4pt 8 ай бұрын
did you find anything useful regarding people counting
@bossarts2435
@bossarts2435 6 ай бұрын
i am new to this and collab so maybe thats why i am facing a small issue! the code runs succefuly but output video is not showing..where did i go wrong? the commands and all are exicuting with no issues and it even show its detecting cars in the final tab but no video
@Roboflow
@Roboflow 6 ай бұрын
You need to download the result after processing.
@beachbotdxb
@beachbotdxb Жыл бұрын
Hello how would I be able to print the values from the counter to a txt. file. I tried the following code but I am unable to obtain the count from the line_counter: with open("output.txt", "w") as file: # Print the variable into the file print(line_counter, file=file)
@walterr.t5032
@walterr.t5032 7 ай бұрын
Hello Piotr @roboflow , I want to be able to activate my previously trained intelligence so that it detects and counts in real time, very similar to the video, but without a video itself, how could I do it? :c
@Roboflow
@Roboflow 7 ай бұрын
I’m afraid I don’t understand the question :/ could you help me out and give me more details?
@justin_richie
@justin_richie Жыл бұрын
Is there a way to get rid or the OUT or IN so its just on label on the video?
@Roboflow
@Roboflow Жыл бұрын
So only show counters?
@justin_richie
@justin_richie Жыл бұрын
@@Roboflow only to so "Out" or just counters
@Roboflow
@Roboflow Жыл бұрын
@@justin_richie it is not possible now but feel free to create feature request in supervision repo: github.com/roboflow/supervision/issues/new?assignees=&labels=enhancement&template=feature-request.yml
@sowmiyar-r4g
@sowmiyar-r4g Жыл бұрын
Hi the explanation is great. But the ID is multiplied each time and the counting is also multiplying. despite using the nms still the problem occurs. is there any solution ,where am i going wrong? The counting of entering and leaving is working fine but how to count two classes of same direction. example the objects are moving on the conveyor belt and two items are present . how can i count both the items. I am new to yolo and python . if you provide solution that would be helpful. Thanks for this wonderful video.. 🙂
Football AI Tutorial: From Basics to Advanced Stats with Python
1:30:19
YOLOv8: How to Train for Object Detection on a Custom Dataset
20:31
БЕЛКА СЬЕЛА КОТЕНКА?#cat
00:13
Лайки Like
Рет қаралды 2,8 МЛН
An Unknown Ending💪
00:49
ISSEI / いっせい
Рет қаралды 57 МЛН
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 11 МЛН
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 11 МЛН
Object Detection with YOLOv8 on Google Colab | Easy Tutorial
5:00
How to do Object Detection using ESP32-CAM and Edge Impulse YOLO Model
16:50
Autodistill: Train YOLOv8 with ZERO Annotations
10:26
Roboflow
Рет қаралды 38 М.
Object Tracking and counting  using YOLOv8 and DeepSORT | Counting Persons
10:44
БЕЛКА СЬЕЛА КОТЕНКА?#cat
00:13
Лайки Like
Рет қаралды 2,8 МЛН