{"id":14977682,"url":"https://github.com/oaleeapp/swifteyes","last_synced_at":"2025-10-28T05:30:55.881Z","repository":{"id":62456506,"uuid":"80841978","full_name":"oaleeapp/SwiftEyes","owner":"oaleeapp","description":"An easy way to access OpenCV library from Swift.","archived":false,"fork":false,"pushed_at":"2017-03-24T19:15:38.000Z","size":806,"stargazers_count":8,"open_issues_count":10,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T12:04:08.339Z","etag":null,"topics":["ios-swift","opencv","swift"],"latest_commit_sha":null,"homepage":"https://oaleeapp.github.io/SwiftEyes/","language":"Objective-C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oaleeapp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-03T15:32:27.000Z","updated_at":"2020-07-25T14:00:20.000Z","dependencies_parsed_at":"2022-11-02T00:17:47.914Z","dependency_job_id":null,"html_url":"https://github.com/oaleeapp/SwiftEyes","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oaleeapp%2FSwiftEyes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oaleeapp%2FSwiftEyes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oaleeapp%2FSwiftEyes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oaleeapp%2FSwiftEyes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oaleeapp","download_url":"https://codeload.github.com/oaleeapp/SwiftEyes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238603665,"owners_count":19499488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ios-swift","opencv","swift"],"created_at":"2024-09-24T13:56:08.070Z","updated_at":"2025-10-28T05:30:55.546Z","avatar_url":"https://github.com/oaleeapp.png","language":"Objective-C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftEyes\n\n[![CI Status](http://img.shields.io/travis/oaleeapp/SwiftEyes.svg?style=flat)](https://travis-ci.org/oaleeapp/SwiftEyes)\n[![Version](https://img.shields.io/cocoapods/v/SwiftEyes.svg?style=flat)](http://cocoapods.org/pods/SwiftEyes)\n[![License](https://img.shields.io/cocoapods/l/SwiftEyes.svg?style=flat)](http://cocoapods.org/pods/SwiftEyes)\n[![Platform](https://img.shields.io/cocoapods/p/SwiftEyes.svg?style=flat)](http://cocoapods.org/pods/SwiftEyes)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n\u003e If this is first time you use [OpenCV-Dynamic](https://github.com/Legoless/OpenCV-Dynamic) as the dependency, it'll take time to install.\n\n\n## How to Use\n\nJust import the framework\n\n`import SwiftEyes`\n\nIn class `SEMotionTrackViewController`, you can see the example.\n\nSimply use the code below can identify the motion blob.\n\n```Swift\n\nfunc processImage(_ image: OCVMat!) {\n\n// Parameters\nlet blurSize = 10\nlet sensitivityValue = 20.0\nvar differenceMat = OCVMat(cgSize: CGSize(width: image.size.width, height: image.size.height), type: image.type, channels: image.channels)\n\n\n// from BGR to RGB\nOCVOperation.convertColor(fromSource: image, toDestination: image, with: .typeBGRA2RGBA)\n\n// set current mat\ncurrentMat = image.clone()\n\n// convert current mat from RGB to GrayScale\nOCVOperation.convertColor(fromSource: currentMat, toDestination: currentMat, with: .typeRGBA2GRAY)\n\nif previousMat != nil {\nOCVOperation.absoluteDifference(onFirstSource: currentMat, andSecondSource: previousMat, toDestination: differenceMat)\nOCVOperation.blur(onSource: differenceMat, toDestination: differenceMat, with: OCVSize(width: blurSize, height: blurSize))\nOCVOperation.threshold(onSource: differenceMat, toDestination: differenceMat, withThresh: sensitivityValue, withMaxValue: 255.0, with: .binary)\n}\n\nDispatchQueue.main.sync {\ncameraImageView.image = image.image()\ndisplayImageView.image = differenceMat.image()\n}\n\n// use previous mat(frame) to compare with next mat(frame)\npreviousMat = currentMat\n\n}\n\n```\n\n\n\n## Videos\n\n![motion tracking](http://i.giphy.com/kLL70o7Y9Y5Fe.gif)\n![color tracking](http://i.giphy.com/3o6YgbtjjTUor5YDyo.gif)\n\n[![motion tracking](https://img.youtube.com/vi/i3xDONms4u4/0.jpg)](https://youtu.be/i3xDONms4u4)\n[![color tracking](https://img.youtube.com/vi/EDMr6cGkV0Y/0.jpg)](https://youtu.be/EDMr6cGkV0Y)\n\n\n\n## Requirements\n\nIf you didn't install CocoaPods yet, you can install from [here](https://cocoapods.org/).\n\nAnd before you run `pod install`, please be sure that you have install `cmake` as well.\n\nTo download it, simply use [Homebrew](https://brew.sh/) to install:\n\n```ruby\nbrew install cmake\n```\n\n## Installation\n\nSwiftEyes is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"SwiftEyes\"\n```\n\n## Author\n\nVictor Lee, specialvict@gmail.com\n\n## License\n\nBSD license, respect OpenCV license as well.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foaleeapp%2Fswifteyes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foaleeapp%2Fswifteyes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foaleeapp%2Fswifteyes/lists"}