Examples and tutorials on using SOTA computer vision models and techniques. Learn everything from old-school ResNet, through YOLO and object-detection transformers like DETR, to the latest models like Grounding DINO and SAM.
[X] I have searched the Roboflow Notebooks issues and found no similar bug report.
Notebook name
how-to-track-and-count-vehicles-with-yolov8.ipynb
when camera is straight then we are able to count correctly but when camera is in side angle then we could not count accurately so what we have to change in that code with where if we change the code then the issue will be resolved and how to overcome this issue in future and how to modify this code for people counting in and out accurately for all video with different combination of camera angle,help me to resolve the probelm
and i have provided the output image in below link so check the output once
Bug
This is not but just not get count correctly
Environment
Google colab,python 3.10.0
Minimal Reproducible Example
dict maping class_id to class_name
CLASS_NAMES_DICT = model.model.names
class_ids of interest - person
CLASS_ID = [0]
from tqdm.notebook import tqdm
import numpy as np
from google.colab.patches import cv2_imshow
import cv2
import os
if not os.path.exists("output_frame"):
os.mkdir("output_frame")
Search before asking
Notebook name
how-to-track-and-count-vehicles-with-yolov8.ipynb
when camera is straight then we are able to count correctly but when camera is in side angle then we could not count accurately so what we have to change in that code with where if we change the code then the issue will be resolved and how to overcome this issue in future and how to modify this code for people counting in and out accurately for all video with different combination of camera angle,help me to resolve the probelm
and i have provided the output image in below link so check the output once
Bug
This is not but just not get count correctly
Environment
Google colab,python 3.10.0
Minimal Reproducible Example
dict maping class_id to class_name
CLASS_NAMES_DICT = model.model.names
class_ids of interest - person
CLASS_ID = [0]
from tqdm.notebook import tqdm import numpy as np from google.colab.patches import cv2_imshow import cv2 import os if not os.path.exists("output_frame"): os.mkdir("output_frame")
create BYTETracker instance
byte_tracker = BYTETracker(BYTETrackerArgs())
create VideoInfo instance
video_info = VideoInfo.from_video_path(SOURCE_VIDEO_PATH)
create frame generator
generator = get_video_frames_generator(SOURCE_VIDEO_PATH)
create LineCounter instance
line_counter = LineCounter(start=LINE_START, end=LINE_END)
create instance of BoxAnnotator and LineCounterAnnotator
box_annotator = BoxAnnotator(color=ColorPalette(), thickness=4, text_thickness=4, text_scale=2) line_annotator = LineCounterAnnotator(thickness=4, text_thickness=4, text_scale=2)
open target video file
with VideoSink(TARGET_VIDEO_PATH, video_info) as sink:
loop over video frames\
Additional
no
Are you willing to submit a PR?