{"id":19805603,"url":"https://github.com/remirobert/rrcamera","last_synced_at":"2025-05-01T06:31:16.696Z","repository":{"id":19373805,"uuid":"22614179","full_name":"remirobert/RRCamera","owner":"remirobert","description":"RRCamera is a camera handler for iOS with crop feature.","archived":false,"fork":false,"pushed_at":"2014-08-09T06:53:36.000Z","size":184,"stargazers_count":27,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-20T17:38:23.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remirobert.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":"2014-08-04T17:58:19.000Z","updated_at":"2024-11-07T05:29:00.000Z","dependencies_parsed_at":"2022-09-05T17:00:57.923Z","dependency_job_id":null,"html_url":"https://github.com/remirobert/RRCamera","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remirobert%2FRRCamera","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remirobert%2FRRCamera/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remirobert%2FRRCamera/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remirobert%2FRRCamera/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remirobert","download_url":"https://codeload.github.com/remirobert/RRCamera/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251835591,"owners_count":21651678,"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":[],"created_at":"2024-11-12T09:04:38.125Z","updated_at":"2025-05-01T06:31:16.475Z","avatar_url":"https://github.com/remirobert.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"RRCamera\n==================\n\n[![CI Status](http://img.shields.io/travis/remirobert/RRCustomPageController.svg?style=flat)](https://travis-ci.org/remirobert/RRCamera)\n[![Version](https://img.shields.io/cocoapods/v/RRCustomPageController.svg?style=flat)](http://cocoadocs.org/docsets/RRCamera)\n[![License](https://img.shields.io/cocoapods/l/RRCustomPageController.svg?style=flat)](http://cocoadocs.org/docsets/RRColorAverageBanner)\n[![Platform](https://img.shields.io/cocoapods/p/RRCustomPageController.svg?style=flat)](http://cocoadocs.org/docsets/RRCamera)\n\nRRCamera Controler is to manage the camera device. you can crop the picture. it uses AVFoundation framework.\n\nOverview Delegates\n==================\n\nRRCamera provides you powerfull delegates to manage functionnality from the main Controller.\n\n``` Objective-C\n\n@protocol RRCameraDelegate\n\n@optional\n- (void) cameraCanceled;\n- (void) switchCamera:(AVCaptureDevicePosition)cameraPosition;\n\n@required\n- (void) takePictureDone:(UIImage *)image;\n\n@end\n\n```\n\nOverview configuration\n======================\n\n**You are free to change some parameters:**\n\n``` Objective-C\n@property (nonatomic, assign) BOOL allowSwitchDevice;\n```\nEnables or desables change between front and back camera.\n\n``` Objective-C\n@property (nonatomic, assign) AVCaptureDevicePosition defaultDevice;\n```\nSet the camera position by default (by **AVCaptureDevicePositionBack** or **AVCaptureDevicePositionFront**), it will display when launching the controller.\n\n``` Objective-C\n@property (nonatomic, strong) UIView *customView;\n```\nYou can put your own interfarce, depending on your design. You must set the customView for displaying you custom interface. For controls Bouttons (take picture, cancel controller, or switch camera), you must specify a **tag** for each button:\n\n| tag | button function  |\n|-----|-------------------\n|  1  | Take picture     |\n|  2  | Cancel controller|\n|  3  | switch camera    |\n\n\nIf you don't specify the tag, the functionnality will not be implemented.\nIf you don't provide custom interface, a default interface will be displayed.\n\n``` Objective-C\n@property (nonatomic, assign) CGSize sizeCropPicture;\n```\nAllows you to specify the size of your output picture. The display preview will be of this size and the UIImage on the delegate takePictureDone as well.\n\nUsage\n=====\n\n``` Objective-c\n- (void) takePictureDone:(UIImage *)image {\n    [viewImage setImage:image];\n    [camera dismissViewControllerAnimated:YES completion:nil];\n}\n\n- (void) takePicture {\n    camera = [[RRCamera alloc] init];\n    \n    UIView *customUI = [[RRCustomView alloc] initWithFrame:self.view.frame];\n    camera.customView = customUI;\n    camera.delegate = self;\n    camera.sizeCropPicture = CGSizeMake(320, [UIScreen mainScreen].bounds.size.height);\n    [self presentViewController:camera animated:YES completion:nil];\n}\n    \n```\n**For more details and examples, refer to the example project.**\n\n## Installation\n\nRRCamera is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n    pod \"RRCamera\"\n\n## Author\n\nremirobert, remi.robert@epitech.eu\n\n## License\n\nRRCamera is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremirobert%2Frrcamera","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremirobert%2Frrcamera","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremirobert%2Frrcamera/lists"}