前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >vehicleDectection with Haar Cascades

vehicleDectection with Haar Cascades

作者头像
MachineLP
发布2022-05-09 14:13:28
2510
发布2022-05-09 14:13:28
举报
文章被收录于专栏:小鹏的专栏小鹏的专栏

VehicleDetecton

CODE:VehicleDetection

Last version: 1.0.0 (see Release Notes for more info)

Hello everyone, An easy way to perform vehicle detection is by using Haar Cascades. Currently, I don't have a detailed tutorial about it, but you can get some extra information in the OpenCV homepage, see Cascade Classifier page. See also Cascade Classifier Training for training your own cascade classifier.

The haar-cascade cars.xml was trained using 526 images of cars from the rear (360 x 240 pixels, no scale). The images were extracted from the Car dataset proposed by Brad Philip and Paul Updike taken of the freeways of southern California.

For more information, please see:

For Windows users

  • Check if your OpenCV is installed at: C:\OpenCV2.4.10
  • There is a Visual Studio 2013 template project in the vs2013/ folder. Open it in the Visual Studio IDE and select [Release]-[Win32] or [Release]-[x64] mode. Next, click on run_vehicle_detection.bat and enjoy!

For Linux users

  • For Linux and Mac users, a Makefile is provided to compile the source code.
  • * Requirements: OpenCV 2.4.x (it only works with this version).
  • * Check out the latest project source code and compile it:
代码语言:javascript
复制
~/git clone https://github.com/andrewssobral/vehicle_detection_haarcascades.git
~/cd vehicle_detection_haarcascades
~/vehicle_detection_haarcascades/cd build
~/vehicle_detection_haarcascades/build/ cmake ..
~/vehicle_detection_haarcascades/build/ make
  • * Run demos:
代码语言:javascript
复制
~/vehicle_detection_haarcascades/run_vehicle_detection_video1.sh
~/vehicle_detection_haarcascades/run_vehicle_detection_video2.sh

Docker image

Release Notes:

  • Version 1.0.0: First version.
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2016-11-08,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • For Windows users
  • For Linux users
  • Docker image
相关产品与服务
容器镜像服务
容器镜像服务(Tencent Container Registry,TCR)为您提供安全独享、高性能的容器镜像托管分发服务。您可同时在全球多个地域创建独享实例,以实现容器镜像的就近拉取,降低拉取时间,节约带宽成本。TCR 提供细颗粒度的权限管理及访问控制,保障您的数据安全。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档