{"id":27,"date":"2026-06-24T23:22:28","date_gmt":"2026-06-24T15:22:28","guid":{"rendered":"http:\/\/49.233.219.48\/?p=27"},"modified":"2026-07-04T18:29:03","modified_gmt":"2026-07-04T10:29:03","slug":"livablehub-video-traffic-flow-analysis-tool-vehicle-detection-speed-estimation-and-flow-statistics-for-road-surveillance-videos-v0-3-0-download","status":"publish","type":"post","link":"https:\/\/www.livablehub.com\/?p=27","title":{"rendered":"TrafficInsight: Video-based traffic analysis tool v0.3.0(win+mac)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In smart highway projects, a common need is to quickly conduct a preliminary assessment of traffic flow conditions on a road segment, such as traffic volume and average speed. Another common scenario is to evaluate, at an early stage before project bidding, whether the accuracy of traffic sensing devices meets the required standards.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Traditional methods often rely on manually reviewing video footage as a baseline, recording vehicle passing times by hand, or using heavy professional platforms. For small teams and engineering consulting scenarios, these workflows are often costly, inflexible, and inefficient.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To address this need, LivableHub is developing a desktop tool for highway video-based traffic flow analysis:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>TrafficInsight<\/strong> v0.3.0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This version is mainly designed to run locally on Windows and Apple Mac computers. It supports video import, mouse-based line drawing, vehicle detection, vehicle tracking, speed estimation, traffic volume statistics, Excel export, and annotated video output.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"684\" src=\"https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_163502_484-1024x684.png\" alt=\"\" class=\"wp-image-68\" srcset=\"https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_163502_484-1024x684.png 1024w, https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_163502_484-300x200.png 300w, https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_163502_484-768x513.png 768w, https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_163502_484-440x294.png 440w, https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_163502_484-680x454.png 680w, https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_163502_484-600x401.png 600w, https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_163502_484.png 1180w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_162714_316_under2MB-1024x576.jpg\" alt=\"\" class=\"wp-image-66\" srcset=\"https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_162714_316_under2MB-1024x576.jpg 1024w, https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_162714_316_under2MB-300x169.jpg 300w, https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_162714_316_under2MB-768x432.jpg 768w, https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_162714_316_under2MB-1536x864.jpg 1536w, https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_162714_316_under2MB-440x247.jpg 440w, https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_162714_316_under2MB-680x382.jpg 680w, https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_162714_316_under2MB-1320x742.jpg 1320w, https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_162714_316_under2MB-600x337.jpg 600w, https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_162714_316_under2MB.jpg 1707w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Software Positioning<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The core goal of this tool is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>To convert ordinary road surveillance videos into verifiable and exportable traffic flow parameter results.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The current version focuses on the following scenarios:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Highway surveillance video analysis<\/li>\n\n\n\n<li>Urban road traffic volume statistics<\/li>\n\n\n\n<li>Vehicle speed estimation<\/li>\n\n\n\n<li>Passenger car \/ truck classification statistics<\/li>\n\n\n\n<li>Video analysis result review<\/li>\n\n\n\n<li>Traffic engineering research and scheme evaluation<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This software is not simply a video player, nor is it just an object detection demo. It is designed around the actual workflow of traffic analysis.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Current Version Features<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The current version already supports the following major features.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1. Video Import and Line-Based Analysis<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Users can open a local video file and directly draw two speed measurement lines on the video frame with the mouse.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After a vehicle passes through the two lines in sequence, the software estimates its speed based on the real-world distance entered by the user.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Compared with manually entering coordinates, mouse-based line drawing is more intuitive and better suited to real road video scenarios.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. Preview Analysis<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Before running a full analysis, users can first run a short preview analysis.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The preview analysis generates a video file with detection boxes, tracking trajectories, speed measurement lines, and statistical information, making it easier to check:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Whether vehicles are correctly detected<\/li>\n\n\n\n<li>Whether the speed measurement lines are placed reasonably<\/li>\n\n\n\n<li>Whether missed detections or false detections occur<\/li>\n\n\n\n<li>Whether valid line-crossing records can be generated<\/li>\n\n\n\n<li>Whether the output video matches expectations<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This step is very important in real-world use, because the line placement directly affects speed estimation and traffic volume statistics.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3. Full Video Analysis<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">After confirming the line placement and detection performance, users can run a full video analysis.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The software outputs:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Excel statistical results<\/li>\n\n\n\n<li>Annotated video file<\/li>\n\n\n\n<li>Vehicle count statistics<\/li>\n\n\n\n<li>Passenger car \/ truck classification statistics<\/li>\n\n\n\n<li>Speed statistics<\/li>\n\n\n\n<li>Traffic flow parameters for each statistical interval<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The current statistical interval is user-configurable, for example, one summary every 60 seconds.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">4. Multi-Model Selection<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The current version supports selecting different detection models.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The interface currently includes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>YOLOv5s General Version<\/li>\n\n\n\n<li>YOLO11s General Version<\/li>\n\n\n\n<li>Reserved slot for a Highway-Specific Model<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">YOLOv5 is used as the default model, while YOLO11 is provided as a newer-generation model option. Future versions will further improve plug-and-play model capability, allowing the software to select more suitable detection models for different scenarios.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">5. Apple Silicon Acceleration Support<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">On macOS devices, the current version already supports the PyTorch MPS backend, allowing inference acceleration with Apple Silicon chips.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Users can select the inference device in the interface:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>auto<\/li>\n\n\n\n<li>mps<\/li>\n\n\n\n<li>cpu<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>auto<\/code> option automatically selects the best available device.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">6. Professional Qt Interface<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The new version has migrated from the early PySimpleGUI interface to Qt \/ PySide6.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The current interface includes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>File menu<\/li>\n\n\n\n<li>Analysis menu<\/li>\n\n\n\n<li>Model menu<\/li>\n\n\n\n<li>Tools menu<\/li>\n\n\n\n<li>Help menu<\/li>\n\n\n\n<li>Bottom status bar<\/li>\n\n\n\n<li>Model status display<\/li>\n\n\n\n<li>Output directory display<\/li>\n\n\n\n<li>Runtime status display<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Compared with the early test version, the new interface is closer to a formal desktop application and is more suitable for future productization and commercial iteration.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Output Results<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The current version mainly outputs two types of results.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Excel Result File<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The Excel file is used to save statistical results, including vehicle counts and speed information within each statistical interval.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The software also writes analysis metadata, such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Video file used<\/li>\n\n\n\n<li>Model used<\/li>\n\n\n\n<li>Inference device<\/li>\n\n\n\n<li>Speed measurement line coordinates<\/li>\n\n\n\n<li>Real-world distance<\/li>\n\n\n\n<li>Statistical interval<\/li>\n\n\n\n<li>Video frame rate<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This makes it possible to review the conditions under which the results were generated later.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Annotated Video File<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The annotated video preserves key visualization information during the analysis process, including:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Detection boxes<\/li>\n\n\n\n<li>Tracking IDs<\/li>\n\n\n\n<li>Speed measurement lines<\/li>\n\n\n\n<li>Vehicle types<\/li>\n\n\n\n<li>Speed results<\/li>\n\n\n\n<li>Current model information<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This is very important for judging whether the analysis results are credible.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the Excel results look abnormal, the annotated video can be reviewed to determine whether the issue comes from line placement, camera angle, vehicle occlusion, or the detection model itself.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Current Version Information<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>Product Name: Video Traffic Flow Analysis Tool\nBrand: LivableHub\nCurrent Version: 0.3.0\nInterface Framework: Qt \/ PySide6\nDetection Models: YOLOv5 \/ YOLO11\nTracking Algorithm: ByteTrack\nOutput Formats: Excel \/ MP4\nCurrent Platform: macOS\/windows<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Future Plans<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">LivableHub plans to continue working on the following directions:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>More professional model management<\/li>\n\n\n\n<li>Highway-specific detection model<\/li>\n\n\n\n<li>Licensing and version upgrade mechanism<\/li>\n\n\n\n<li>Web-based SaaS version<\/li>\n\n\n\n<li>Cloud video analysis service<\/li>\n\n\n\n<li>Mobile-assisted upload and result viewing<\/li>\n\n\n\n<li>More complete traffic flow parameter reports<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Our goal is not to build a one-off script, but to gradually develop a lightweight professional tool for road video analysis.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Download Link<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.livablehub.com\/?product=livablehub-%e4%ba%a4%e9%80%9a%e6%b4%9e%e5%af%9f-trafficinsight\">https:\/\/www.livablehub.com\/?product=livablehub-%e4%ba%a4%e9%80%9a%e6%b4%9e%e5%af%9f-trafficinsight<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">About LivableHub<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">LivableHub is an independent brand focused on transportation, automobiles, livable lifestyle aesthetics, career development, and AI.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We aim to use computer vision, data analysis, and engineering-oriented software tools to transform hidden information in road videos into more intuitive, verifiable, and usable data results.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This project is still under active development. Please stay tuned for future version updates.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In smart highway projects, a common need is to quickly  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":68,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[4,5],"class_list":["post-27","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-3","tag-smart-highway","tag-5"],"jetpack_featured_media_url":"https:\/\/www.livablehub.com\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-04_163502_484.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.livablehub.com\/index.php?rest_route=\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.livablehub.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.livablehub.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.livablehub.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.livablehub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27"}],"version-history":[{"count":6,"href":"https:\/\/www.livablehub.com\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":86,"href":"https:\/\/www.livablehub.com\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions\/86"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.livablehub.com\/index.php?rest_route=\/wp\/v2\/media\/68"}],"wp:attachment":[{"href":"https:\/\/www.livablehub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.livablehub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.livablehub.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}