Skip to content
/ AVOCV Public

An AVFoundation-based OpenCV experimentation environment (OSX)

Notifications You must be signed in to change notification settings

Buza/AVOCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AVOCV: An AVFoundation-based OpenCV experimentation environment.

AVOCV was built in order to create an extremely simple and lightweight OpenCV experimentation environment for OS X 10.13.x. This is a more modern update to CVOCV, a QTKit + OpenGL version written in 2008 for OSX 10.5.

Prerequisites

In contrast to CVOCV, which contained precompiled OpenCV binaries, to use AVOCV, you'll need to install OpenCV on your mac. See this tutorial as an example.

Usage

At the heart of AVOCV is the delegate method:

public func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection)

in CameraController.swift. This is a callback procedure that is invoked by AVFoundation to provide direct access to the pixels coming from a video input device. To experiment with the existing examples offered by AVOCV, simply uncomment one of the lines in the captureOutput method.

For example, the line

IplImage *resultImage = [OpenCVProcessor cannyTest:frameImage];

in captureOutput will create an OpenCV-processed image from the current input frame, and send the pixels to Metal to be rendered.

For users that would like to implement their own examples, simply look at OpenCVProcessor.m for examples.

Contributions

Contributions in the form of elegant, demonstrative examples are welcome and encouraged. Contact me if you have something you think would make a nice addition to this project.

2018 [email protected]

About

An AVFoundation-based OpenCV experimentation environment (OSX)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published