# Help in dataset for object detection in videos

**URL:** <https://discuss.roboflow.com/t/help-in-dataset-for-object-detection-in-videos/561>\
**Category:** 🤝  Community Help\
**Created:** [June 12, 2022, 8:46am UTC](https://discuss.roboflow.com/t/help-in-dataset-for-object-detection-in-videos/561 "2022-06-12T08:46:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mo\_t1](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mo_t1/32/382_2.png) [@mo\_t1](https://discuss.roboflow.com/u/mo_t1)\
**Post date:** [June 12, 2022, 8:46am UTC](https://discuss.roboflow.com/t/help-in-dataset-for-object-detection-in-videos/561/1 "2022-06-12T08:46:48Z")

</div>

Hi all I am a student , and I have this Object Detection Project on video, i really need help I am so depressed I almost never sleep for last week , i am trying to solve the problem with my Weapon Dataset Its Dataset for detecting weapons in videos, i did everything i can , annotating with bound box almost 4000 images and still, when i train in colab, the detection is very very bad whether in images or in video its disastor, if you have any ideas i really appreciate it  
 ![2-image-21](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/b2f2dc92b90d9e97ff496cebbcfd44173392816e.jpeg)  
like this image it either give me very low confince or doesnt even detect it or give me in the bound box another object class,

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [June 14, 2022, 6:52pm UTC](https://discuss.roboflow.com/t/help-in-dataset-for-object-detection-in-videos/561/2 "2022-06-14T18:52:08Z")

</div>

Hi @mo_t1 - you will want to include more images within your project that resemble the images or video you would like to run inference (tests) on with a deployed model.

Gun detection is difficult as guns come in many shapes, sizes, and even colors. Don’t feel depressed. You’re on the right track!

_More resources to help with improving your dataset and run inference with video_:

- [https://help.roboflow.com/dataset-health-check-improving-your-dataset-](https://help.roboflow.com/dataset-health-check-improving-your-dataset-)

- [https://help.roboflow.com/health-check-filter-by-class](https://help.roboflow.com/health-check-filter-by-class)

- Video inference (custom YOLOv5 model): [https://help.roboflow.com/run-yolov5-on-your-webcam](https://help.roboflow.com/run-yolov5-on-your-webcam)  

- Video inference (Roboflow): [GitHub - roboflow/video-inference: Example showing how to do inference on a video file with Roboflow Infer](https://github.com/roboflow-ai/video-inference)

Here’s more context on the process to implement active learning to improve your dataset:

> [@2 bound boxes for same object](https://discuss.roboflow.com/t/2-bound-boxes-for-same-object/545/2):
>
> Hi @mo_t1, it looks like your model has two classes it has trouble differentiating between. I recommend [implementing Active Learning](https://help.roboflow.com/guides/implementing-active-learning) and taking more examples of the PKS and RPG classes, as well as this example image, and from there: [upload them to Roboflow](https://help.roboflow.com/dataset-upload-roboflow-data-types)[Annotate the images](https://help.roboflow.com/labeling-guide-object-detection) Generate a new version of your dataset Retrain your model Retest your model on a similar image, and more images, and repeat the process to root out errors and raise the confidence level on all detections
