{"id":24758839,"url":"https://github.com/wesleych3n/trt-opencv","last_synced_at":"2026-05-04T10:32:52.145Z","repository":{"id":200450729,"uuid":"704320149","full_name":"WesleyCh3n/trt-opencv","owner":"WesleyCh3n","description":"An example showing pipeline between OpenCV and TensorRT inference, and some pre/post-process utilities.","archived":false,"fork":false,"pushed_at":"2024-03-24T04:06:32.000Z","size":86,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T10:16:44.451Z","etag":null,"topics":["image-processing","opencv","resnet","tensorrt","yolov8"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WesleyCh3n.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-13T02:30:41.000Z","updated_at":"2024-10-23T09:36:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"624b7e7c-e971-429f-85b3-5f85a26b8445","html_url":"https://github.com/WesleyCh3n/trt-opencv","commit_stats":null,"previous_names":["wesleych3n/trt","wesleych3n/trt-opencv"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WesleyCh3n/trt-opencv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesleyCh3n%2Ftrt-opencv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesleyCh3n%2Ftrt-opencv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesleyCh3n%2Ftrt-opencv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesleyCh3n%2Ftrt-opencv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WesleyCh3n","download_url":"https://codeload.github.com/WesleyCh3n/trt-opencv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesleyCh3n%2Ftrt-opencv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32604090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image-processing","opencv","resnet","tensorrt","yolov8"],"created_at":"2025-01-28T16:39:25.042Z","updated_at":"2026-05-04T10:32:52.128Z","avatar_url":"https://github.com/WesleyCh3n.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [**T**]ensor[**RT**] with OpenCV\n\n`libtrt`: A example wrapper for inferencing using TensorRT with OpenCV GpuMat as input.\n\n`libdnn`: Class Yolov8 and Resnet with dynamic batch size model based on `libtrt`\nto predict  OpenCV GpuMat(s).\n\n## Tested Environment\n\n- Ubuntu 22.04\n- [CUDA 12.3](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html)\n- [Cudnn 8.9.4.25](https://developer.nvidia.com/cudnn)\n- [TensorRT 8.6.1.6](https://developer.nvidia.com/nvidia-tensorrt-8x-download)\n- OpenCV 4.8.0 with CUDA enable\n\n## Quick start\n\n### Building Library\n\n```sh\ncmake -B build .\ncmake --build build --parallel\n```\n\n### Install Library\n\n```sh\nsudo cmake --install build --prefix /opt/trt # use prefix to install where you want\n```\n\n### Example\n\n```sh\nbuild/yolov8_single model/yolov8.trt 20231212-161000.740_00_126.jpg output.jpg\nbuild/resnet_single model/512-model-fp16.trt 20240114-041024.091_00_126_6_0.jpg output.jpg\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesleych3n%2Ftrt-opencv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesleych3n%2Ftrt-opencv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesleych3n%2Ftrt-opencv/lists"}