https://github.com/davecom/dkphotocapture
A camera capture class like UIImagePickerController that allows for scribbles and overlayed text.
https://github.com/davecom/dkphotocapture
Last synced: about 1 year ago
JSON representation
A camera capture class like UIImagePickerController that allows for scribbles and overlayed text.
- Host: GitHub
- URL: https://github.com/davecom/dkphotocapture
- Owner: davecom
- License: other
- Created: 2015-01-13T07:42:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-12T10:00:21.000Z (over 11 years ago)
- Last Synced: 2025-04-05T03:22:53.178Z (about 1 year ago)
- Language: Objective-C
- Homepage:
- Size: 1010 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DKPhotoCapture
A camera capture class like UIImagePickerController that also allows for scribbles and overlayed text. DKPhotoCapture is a replacement for using UIImagePickerController to capture photos with an iOS device's built-in cameras. The interface is presented as two views: the first for capturing with controls for flash & front vs rear camera; and the second for scribbling (in any color) on the image and adding text to it in a vein similar to SnapChat.


## To Do
* This is an initial open sourcing and still lacks some polish
* Documentation
* Better Commenting
* Clean-up code
* Better modularize
## Features
* Uses the same delegate (`UIImagePickerControllerDelegate`) as `UIImagePickerController`
* Scribbling on captured images and picking colors similar to SnapChat
* Adding SnapChat like text to captured images
## Installation
No Cocoapod yet. Your project will need the following files:
* `DKEditorView.h` & `DKEditorView.m`
* `DKPhotoCapture.h` & `DKPhotoCapture.m`
* `DKVerticalColorPicker.h` & `DKVerticalColorPicker.m` from https://github.com/davecom/DKVerticalColorPicker
* `ForwardingTextField.h` & `ForwardingTextField.m`
* `UIImage+Scale.h` & `UIImage+Scale.m`
* `DKImageEdit.xib`
* `DKImagePickerOverlay.xib`
## Usage
Import `DKPhotoCapture.h`. Create a new `DKPhotoCapture` using `initWithDelegate:` passing an object that conforms to `UIImagePIckerControllerDelegate`. Call `showPickerOnViewController:` to actually display DKPhotoCapture. Get the resulting image with the key `UIImagePickerControllerOriginalImage` from the info NSDictionary in the delegate method `imagePIckerController: didFinishPickingMediaWithInfo:`.
## License and Authorship
Released under the MIT License. Copyright 2015 David Kopec. Please open issues on GitHub.