{"_id":"@augusdogus/bun-opencv","_rev":"7-7fdcd4cb087da3802068efe3424f010e","name":"@augusdogus/bun-opencv","dist-tags":{"latest":"0.2.6"},"versions":{"0.1.0":{"name":"@augusdogus/bun-opencv","version":"0.1.0","keywords":["opencv","template-matching","computer-vision","image-processing","bun"],"author":{"name":"AugusDogus"},"license":"MIT","_id":"@augusdogus/bun-opencv@0.1.0","maintainers":[{"name":"augusdogus","email":"npm@augie.gg"}],"dist":{"shasum":"965005eb42d41735f836f1a0feb730cffb8c6242","tarball":"https://registry.npmjs.org/@augusdogus/bun-opencv/-/bun-opencv-0.1.0.tgz","fileCount":10,"integrity":"sha512-kYbwI4ANVuiK/ivNmRwnbZAXy2RlrSqwq5UW2C5My508XjmDMTXRVwtDWkLSy51f0z1N+91nOwvezOw221wZ+w==","signatures":[{"sig":"MEUCIQD0bTsGxsiGXBQYkfsAH55K36V9fbtVSrrpw1Nl26pbbAIgDXZLs7PFnvyuW5qJ9eBtyQEuIeFWd6UVdN4KrmlAPRc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24752},"type":"module","types":"src/ts/index.ts","module":"src/ts/index.ts","engines":{"bun":">=1.1.42"},"gitHead":"8527463b8c5e37beaa1d6670924fdfd79e60f24d","scripts":{"test":"bun test","build":"cmake --build build --config Release","publish":"bun scripts/publish.ts","build:test":"bun run build && bun test"},"_npmUser":{"name":"augusdogus","email":"npm@augie.gg"},"_npmVersion":"10.9.0","description":"OpenCV bindings for Bun","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest"},"peerDependencies":{"bun":"^1.1.42"},"_npmOperationalInternal":{"tmp":"tmp/bun-opencv_0.1.0_1736018955092_0.999234708050249","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@augusdogus/bun-opencv","version":"0.2.0","keywords":["opencv","template-matching","computer-vision","image-processing","bun"],"author":{"name":"AugusDogus"},"license":"MIT","_id":"@augusdogus/bun-opencv@0.2.0","maintainers":[{"name":"augusdogus","email":"npm@augie.gg"}],"dist":{"shasum":"5b3092f64d95ad055f6e2f699beba57194a6edad","tarball":"https://registry.npmjs.org/@augusdogus/bun-opencv/-/bun-opencv-0.2.0.tgz","fileCount":9,"integrity":"sha512-Aua4JR9AbLa2wryrm0oTrWroDmGkpbk/TDfNiEcCQnzlCQB6ks0xODWoMxhK5Pzb9z8he34EPe9NOHBG4Tg5cQ==","signatures":[{"sig":"MEUCIHAj5ddH3NK/H74B0hVFVZqXaUrLiyacDj8rUB0x/AYoAiEA/JB8ZxuWlTuDEXtmZRnBph9nPbMTuf26gI1J07WdpZw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11427},"type":"module","types":"src/ts/index.ts","module":"src/ts/index.ts","engines":{"bun":">=1.1.42"},"gitHead":"713472b043b28fdfe97ea1ef0335b9a6784463f9","scripts":{"test":"bun test","build":"cmake --build build --config Release","publish":"bun scripts/publish.ts","build:test":"bun run build && bun test"},"_npmUser":{"name":"augusdogus","email":"npm@augie.gg"},"_npmVersion":"10.8.2","description":"OpenCV bindings for Bun","directories":{},"_nodeVersion":"18.20.5","_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest"},"peerDependencies":{"bun":"^1.1.42"},"_npmOperationalInternal":{"tmp":"tmp/bun-opencv_0.2.0_1736136099435_0.9177639691596264","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@augusdogus/bun-opencv","version":"0.2.1","keywords":["opencv","template-matching","computer-vision","image-processing","bun"],"author":{"name":"AugusDogus"},"license":"MIT","_id":"@augusdogus/bun-opencv@0.2.1","maintainers":[{"name":"augusdogus","email":"npm@augie.gg"}],"dist":{"shasum":"71b2eccad17be4f6f8b0275943596f6b1cfad613","tarball":"https://registry.npmjs.org/@augusdogus/bun-opencv/-/bun-opencv-0.2.1.tgz","fileCount":9,"integrity":"sha512-fReQBTAhFMXXnYo/RQXo2Cmo0MJRs2KGYe1C0xO3QEFGq/vQMnFrQ+t01IVtLSffftuGy2brQI3GNi6CyN4izw==","signatures":[{"sig":"MEYCIQDEDtjiy9x4Mhm+Nvv+wzUmv/vpR4ZIVtx2xsseCULFqAIhAKoIKE2GqcN5t8ZX1jKj1u4VSEf8y1mNGa0IYE2MDKNa","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11233},"type":"module","types":"src/ts/index.ts","module":"src/ts/index.ts","engines":{"bun":">=1.1.42"},"gitHead":"5f859400450e0fe7594fc33271b67367d7f9791c","scripts":{"test":"bun test","build":"cmake --build build --config Release","build:test":"bun run build && bun test"},"_npmUser":{"name":"augusdogus","email":"npm@augie.gg"},"_npmVersion":"10.8.2","description":"OpenCV bindings for Bun","directories":{},"_nodeVersion":"18.20.5","_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest"},"peerDependencies":{"bun":"^1.1.42"},"_npmOperationalInternal":{"tmp":"tmp/bun-opencv_0.2.1_1736137906836_0.7577408573699544","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@augusdogus/bun-opencv","version":"0.2.2","keywords":["opencv","template-matching","computer-vision","image-processing","bun"],"author":{"name":"AugusDogus"},"license":"MIT","_id":"@augusdogus/bun-opencv@0.2.2","maintainers":[{"name":"augusdogus","email":"npm@augie.gg"}],"dist":{"shasum":"8e7bb7638161a146a8da8d569a7cc2c4432513c1","tarball":"https://registry.npmjs.org/@augusdogus/bun-opencv/-/bun-opencv-0.2.2.tgz","fileCount":9,"integrity":"sha512-BjLdHvAwxeggl7kMFOpDkkrCKa7xiWxynB8ibBX5+pSzfUSizt519VzBqXM7sLSKy4nyQkz5drugjeWQPj+Pow==","signatures":[{"sig":"MEYCIQCN+Hzp5eBnBYpoJ63/Xjivr9lyygSG1uBHj2ZpIRqXcAIhANxOEwbyslLCeKtWmjSrtrUBF6n5282gujSbEK8AZhZc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11233},"type":"module","types":"src/ts/index.ts","module":"src/ts/index.ts","engines":{"bun":">=1.1.42"},"gitHead":"c855ef9ae167c4cfef543c266538e2f6c70ca1f3","scripts":{"test":"bun test","build":"cmake --build build --config Release","build:test":"bun run build && bun test"},"_npmUser":{"name":"augusdogus","email":"npm@augie.gg"},"_npmVersion":"10.8.2","description":"OpenCV bindings for Bun","directories":{},"_nodeVersion":"18.20.5","_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest"},"peerDependencies":{"bun":"^1.1.42"},"_npmOperationalInternal":{"tmp":"tmp/bun-opencv_0.2.2_1736138327407_0.294485004285824","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@augusdogus/bun-opencv","version":"0.2.3","keywords":["opencv","template-matching","computer-vision","image-processing","bun"],"author":{"name":"AugusDogus"},"license":"MIT","_id":"@augusdogus/bun-opencv@0.2.3","maintainers":[{"name":"augusdogus","email":"npm@augie.gg"}],"dist":{"shasum":"e31c3eb5ada4422e286920553d32417455ad1667","tarball":"https://registry.npmjs.org/@augusdogus/bun-opencv/-/bun-opencv-0.2.3.tgz","fileCount":9,"integrity":"sha512-hkmABwobYKFKZpGGZxP7ezVWmMoC+W950A/r45YZucOFq2qajZUkYnQt+0v/twsVTgrbTH/DHsH2gBvdNQ2AsA==","signatures":[{"sig":"MEUCIAMg/PaEid84c+wP33cjs+hrw+SojubJ3FFs12UOzJRIAiEAjl2VVBLnpumiy4VX7gqElM5gv2ZkMnSdMKsG3a5zV88=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11233},"type":"module","types":"src/ts/index.ts","module":"src/ts/index.ts","engines":{"bun":">=1.1.42"},"gitHead":"9679f9a7370ee98e1c0a72c46026481de77e29ae","scripts":{"test":"bun test","build":"cmake --build build --config Release","build:test":"bun run build && bun test"},"_npmUser":{"name":"augusdogus","email":"npm@augie.gg"},"_npmVersion":"10.8.2","description":"OpenCV bindings for Bun","directories":{},"_nodeVersion":"18.20.5","_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest"},"peerDependencies":{"bun":"^1.1.42"},"_npmOperationalInternal":{"tmp":"tmp/bun-opencv_0.2.3_1736138673590_0.7201850456963981","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@augusdogus/bun-opencv","version":"0.2.4","keywords":["opencv","template-matching","computer-vision","image-processing","bun"],"author":{"name":"AugusDogus"},"license":"MIT","_id":"@augusdogus/bun-opencv@0.2.4","maintainers":[{"name":"augusdogus","email":"npm@augie.gg"}],"dist":{"shasum":"94325cdf6f3efe90690fa076cf06f004a396c2f0","tarball":"https://registry.npmjs.org/@augusdogus/bun-opencv/-/bun-opencv-0.2.4.tgz","fileCount":12,"integrity":"sha512-Tcca5TJaRBoeEd2aTGJR39/qaSBTxQSmwZ+xvrcvkD19kyqo/yiIp0a9rlbDaWBYYVCt+Uxk3p+RMRveyiOWuw==","signatures":[{"sig":"MEQCIFrg8kecqzhDrM/HWGqQm2O3n/XEpRmFP9so1G4Ap0UNAiAQC2WpStnS89eSM4XePd6DxE6UtH/ZYscEDqlg2ohKFQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":63409},"type":"module","types":"src/ts/index.ts","module":"src/ts/index.ts","engines":{"bun":">=1.1.42"},"gitHead":"2f99ca6bd9fa80cf36f18993403a688e597bc9c7","scripts":{"test":"bun test","build":"cmake --build build --config Release","build:test":"bun run build && bun test"},"_npmUser":{"name":"augusdogus","email":"npm@augie.gg"},"_npmVersion":"10.8.2","description":"OpenCV bindings for Bun","directories":{},"_nodeVersion":"18.20.5","_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest"},"peerDependencies":{"bun":"^1.1.42"},"_npmOperationalInternal":{"tmp":"tmp/bun-opencv_0.2.4_1736140843999_0.6121809550477013","host":"s3://npm-registry-packages-npm-production"}},"0.2.5":{"name":"@augusdogus/bun-opencv","version":"0.2.5","keywords":["opencv","template-matching","computer-vision","image-processing","bun"],"author":{"name":"AugusDogus"},"license":"MIT","_id":"@augusdogus/bun-opencv@0.2.5","maintainers":[{"name":"augusdogus","email":"npm@augie.gg"}],"dist":{"shasum":"235094d75534a0c22b90404755cd3f3d31b25d6e","tarball":"https://registry.npmjs.org/@augusdogus/bun-opencv/-/bun-opencv-0.2.5.tgz","fileCount":12,"integrity":"sha512-2oRBrK6U4oRbUTZVf3RTO2YvaAJFgoPjqnWA+1rhQP7l4cz7lPKbxNHzoZgK+m3VprF79Nq3OV5SABlv3WRyNA==","signatures":[{"sig":"MEUCIC7Rssyey8eVJPTkPP9NdwoIXHqPau6NF2Ug59c+XAFcAiEA0SmXpkt/hPRKth1vPfVaObDJIFGHXzSdcO/pVI6UOng=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":63333},"type":"module","types":"src/ts/index.ts","module":"src/ts/index.ts","engines":{"bun":">=1.1.42"},"gitHead":"421f887bb7a3ec1977ef1e9165d6585a0b409be1","scripts":{"test":"bun test","build":"cmake --build build --config Release","build:test":"bun run build && bun test"},"_npmUser":{"name":"augusdogus","email":"npm@augie.gg"},"_npmVersion":"10.8.2","description":"OpenCV bindings for Bun","directories":{},"_nodeVersion":"18.20.5","_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest"},"peerDependencies":{"bun":"^1.1.42"},"_npmOperationalInternal":{"tmp":"tmp/bun-opencv_0.2.5_1736141891523_0.9796574630712858","host":"s3://npm-registry-packages-npm-production"}},"0.2.6":{"name":"@augusdogus/bun-opencv","version":"0.2.6","description":"OpenCV bindings for Bun","module":"src/ts/index.ts","types":"src/ts/index.ts","type":"module","scripts":{"test":"bun test","build":"cmake --build build --config Release","build:test":"bun run build && bun test"},"keywords":["opencv","template-matching","computer-vision","image-processing","bun"],"author":{"name":"AugusDogus"},"license":"MIT","devDependencies":{"bun-types":"latest"},"peerDependencies":{"bun":"^1.1.42"},"engines":{"bun":">=1.1.42"},"_id":"@augusdogus/bun-opencv@0.2.6","gitHead":"5ba97f49fbb2378cfb80ee6c7887444396095a37","_nodeVersion":"18.20.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-NyJiQXB3LT03sKelrzaQfiCVkMqiTgSw37FFDNq7bumkRt1fxj6QSuEOI6q1btygQO1LesYVWMnX4uOVm7AaGQ==","shasum":"ae6004ee7279e8635f6ff4d22d741e469cab92c4","tarball":"https://registry.npmjs.org/@augusdogus/bun-opencv/-/bun-opencv-0.2.6.tgz","fileCount":12,"unpackedSize":63518,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBQKJWDBFn+7yVHqLE+4nxwGrjgol/mdvr+5K8z60JmQIhAOBVeeNUkrJh/eK5wbyMla/Jg69oSEIQxycmQQUp6viY"}]},"_npmUser":{"name":"augusdogus","email":"npm@augie.gg"},"directories":{},"maintainers":[{"name":"augusdogus","email":"npm@augie.gg"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bun-opencv_0.2.6_1736142649427_0.9993452000323222"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-04T19:29:14.998Z","modified":"2025-01-06T05:50:49.857Z","0.1.0":"2025-01-04T19:29:15.323Z","0.2.0":"2025-01-06T04:01:39.603Z","0.2.1":"2025-01-06T04:31:46.999Z","0.2.2":"2025-01-06T04:38:47.575Z","0.2.3":"2025-01-06T04:44:33.752Z","0.2.4":"2025-01-06T05:20:44.158Z","0.2.5":"2025-01-06T05:38:11.691Z","0.2.6":"2025-01-06T05:50:49.701Z"},"author":{"name":"AugusDogus"},"license":"MIT","keywords":["opencv","template-matching","computer-vision","image-processing","bun"],"description":"OpenCV bindings for Bun","maintainers":[{"name":"augusdogus","email":"npm@augie.gg"}],"readme":"# Bun OpenCV\n\nOpenCV bindings for Bun. Access the power of OpenCV through a native TypeScript interface.\n\n## Installation\n\n```bash\nbun add @augusdogus/bun-opencv\n```\n\n## System Requirements\n\nThis package requires OpenCV to be installed on your system as it dynamically links against OpenCV libraries. Install OpenCV using your system's package manager:\n\n- Windows: `choco install opencv`\n- Ubuntu/Debian: `sudo apt-get install libopencv-dev`\n- macOS: `brew install opencv`\n\n## Usage\n\n### Template Matching Example\n\n```typescript\nimport {\n  imreadAsync,\n  matchTemplate,\n  findMatches,\n  LoadImageFlags,\n  TemplateMatchModes,\n} from '@augusdogus/bun-opencv';\n\n// Load image and template\nconst image = await imreadAsync('path/to/image.png', LoadImageFlags.COLOR);\nconst templ = await imreadAsync('path/to/template.png', LoadImageFlags.COLOR);\n\n// Find all instances of template in image\nconst result = await matchTemplate(\n  image,\n  templ,\n  TemplateMatchModes.TM_CCOEFF_NORMED\n);\n\n// Get matches above 80% confidence\nconst matches = await findMatches(result, 0.8);\nconsole.log('Found matches:', matches);\n\n// Clean up\nimage.release();\ntempl.release();\nresult.release();\n```\n\n### Features\n\n- [x] Template Matching\n\n  - [x] Load images from disk\n  - [x] Find patterns in images\n  - [x] Get match locations with confidence scores\n\n- [ ] Image Processing\n\n  - [ ] Filters and transformations\n  - [ ] Color space conversions\n\n- [ ] Computer Vision\n\n  - [ ] Feature detection\n  - [ ] Object tracking\n  - [ ] Image segmentation\n\n- [ ] Video Processing\n  - [ ] Video capture\n  - [ ] Frame analysis\n  - [ ] Video writing\n\n## Development\n\n### Prerequisites\n\n- Bun runtime (>= 1.1.42)\n\nIf you want to build from source:\n\n- OpenCV 4.x\n  - Windows: `choco install opencv`\n  - Ubuntu/Debian: `apt-get install libopencv-dev`\n  - macOS: `brew install opencv`\n- CMake\n- C++ compiler:\n  - Windows: MSVC (Visual Studio 2019 or newer)\n  - Linux: GCC\n  - macOS: Clang\n\n### Commands\n\n- `bun run build` - Build the native module\n- `bun run build:test` - Build and run tests\n- `bun test` - Run tests\n\n## License\n\nMIT\n","readmeFilename":"README.md"}