{"id":13992670,"url":"https://github.com/yeahdongcn/RSBarcodes","last_synced_at":"2025-07-22T16:31:05.609Z","repository":{"id":12755063,"uuid":"15428313","full_name":"yeahdongcn/RSBarcodes","owner":"yeahdongcn","description":"1D and 2D barcodes scanner and generators for iOS7 with delightful controls.","archived":false,"fork":false,"pushed_at":"2019-04-05T04:05:20.000Z","size":1295,"stargazers_count":382,"open_issues_count":11,"forks_count":58,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-07-02T03:06:27.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/yeahdongcn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-25T02:36:56.000Z","updated_at":"2025-05-09T05:33:33.000Z","dependencies_parsed_at":"2022-09-10T16:23:24.211Z","dependency_job_id":null,"html_url":"https://github.com/yeahdongcn/RSBarcodes","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/yeahdongcn/RSBarcodes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdongcn%2FRSBarcodes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdongcn%2FRSBarcodes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdongcn%2FRSBarcodes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdongcn%2FRSBarcodes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yeahdongcn","download_url":"https://codeload.github.com/yeahdongcn/RSBarcodes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdongcn%2FRSBarcodes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266530886,"owners_count":23944002,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08-09T14:02:05.097Z","updated_at":"2025-07-22T16:31:04.685Z","avatar_url":"https://github.com/yeahdongcn.png","language":"Objective-C","funding_links":[],"categories":["Objective-C"],"sub_categories":[],"readme":"RSBarcodes [![Build Status](https://travis-ci.org/yeahdongcn/RSBarcodes.png)](https://travis-ci.org/yeahdongcn/RSBarcodes)\n==========\n[![Total views](https://sourcegraph.com/api/repos/github.com/yeahdongcn/RSBarcodes/counters/views.png)](https://sourcegraph.com/github.com/yeahdongcn/RSBarcodes)\n[![Views in the last 24 hours](https://sourcegraph.com/api/repos/github.com/yeahdongcn/RSBarcodes/counters/views-24h.png)](https://sourcegraph.com/github.com/yeahdongcn/RSBarcodes)\n\n* Now Swift. [RSBarcodes_Swift](https://github.com/yeahdongcn/RSBarcodes_Swift)\n\nRSBarcodes allows you to scan 1D and 2D barcodes using metadata scanning capabilities introduced with iOS7 and generate the same set of barcode images for displaying and sharing. PR from \u003ca href=\"https://github.com/MacMannes\" target=\"_blank\"\u003eMacMannes\u003c/a\u003e has been merged to make a part of code generators working on iOS5.1 above.\n\nCurrent Status\n------------\n###Barcode Scanner:\n    Multiple corners and border rectangles display view -- Done\n    Manually changing focus point -- Done\n    Focus mark drawing -- Done\n\n###Barcode Generators:\n    \"org.gs1.UPC-E\", -- Done\n    \"org.iso.Code39\", -- Done\n    \"org.iso.Code39Mod43\", -- Done\n    \"org.gs1.EAN-13\", -- Done by 张玺 (http://zhangxi.me)\n    \"org.gs1.EAN-8\", -- Done by 张玺 (http://zhangxi.me)\n    \"com.intermec.Code93\", -- Done\n    \"org.iso.Code128\", -- Done\n    \"org.iso.PDF417\", -- Done\n    \"org.iso.QRCode\", -- Done\n    \"org.iso.Aztec\", -- Done\n    \"org.ansi.Interleaved2of5\", -- Done\n    \"org.gs1.ITF14\", -- Done\n    // --------------------\n    Extended Code 39, -- Done\n    ISBN13, -- Done\n    ISSN13, -- Done\n    ITF14, -- Done\n    \n    Code display view -- Done\n    \nInstallation\n------------\n\u003ca href=\"http://cocoapods.org/\" target=\"_blank\"\u003eCocoaPods\u003c/a\u003e is the recommended method of installing RSBarcodes.\n\nSimply add the following line to your `Podfile`:\n\n    pod 'RSBarcodes', '~\u003e 0.1.5'\n\nOr you can use the **RSBarcodes framework** without import all headers files.\n\nJust imports these frameworks:\n\nRSBarcodes.framework (it's under the product folder of this project) :)  \nAVFoundation.framework  \nCoreImage.framework  \nCoreGraphics.framework\n\nWhen you use the framework you must import the headers like below:\n\n    #import \u003cRSBarcodes/aHeader.h\u003e\n\n`RSCodeView.h` and `RSCodeGen.h` are already imported into the `RSBarcodes.h` so you can use directly\n\n    #import \u003cRSBarcodes/RSBarcodes.h\u003e\n\nThanks to g8production [www.g8production.com](http://www.g8production.com) [github](https://github.com/gali8) for providing this.\n\nUsage\n------------\n###Barcode Scanner:\n\n####Option 1:\n\nCreate `RSScannerViewController` from code an present it. Use the callback block to process the barcode.\n\n\t(id)initWithCornerView:(BOOL)showCornerView controlView:(BOOL)showControlsView barcodesHandler:(RSBarcodesHandler)barcodesHandler;\n\t(id)initWithCornerView:(BOOL)showCornerView controlView:(BOOL)showControlsView barcodesHandler:(RSBarcodesHandler)barcodesHandler preferredCameraPosition:(AVCaptureDevicePosition)cameraDevicePosition;\n\t\nYou can add borders to the button with: `[scanner setIsButtonBordersVisible:YES];`\nYou can automatically stop the processing after the first vaild barcode with `[scanner setStopOnFirst:YES];`\nAfter that you can either dismiss it, or restart it with `[scanner __startRunning]`;\n\t\npossible Device Positions: \tAVCaptureDevicePositionBack, AVCaptureDevicePositionFront\n\n\tRSScannerViewController *scanner = [[RSScannerViewController alloc] initWithCornerView:YES\n                                                                           \t   controlView:YES\n                                                                       \t       barcodesHandler:^(NSArray *barcodeObjects) {\n                                                                           }\n                                                                   preferredCameraPosition:AVCaptureDevicePositionBack];\n    \nThe ViewController can be presented modally:\n        `[self presentViewController:scanner animated:true completion:nil];`\nor pushed onto a NavigationController Stack:\n        `[self.navigationController pushViewController:scanner animated:YES];`\n####Option 2:\n\nPlace a `UIViewController` in storyboard and set `RSScannerViewController` based class as its custom class. If you want to use the corners view (for barcode corners and borders displaying), you can put a `UIView` onto the view controller’s view and set `RSCornersView` as its custom class then link the `highlightView` to it, make sure the view’s size is as large as the view controller’s view.\n\nIn `RSScannerViewController` based class implements your own handler.\n\n    - (id)initWithCoder:(NSCoder *)aDecoder\n    {\n        self = [super initWithCoder:aDecoder];\n        if (self) {\n            __weak typeof(self) weakSelf = self;\n            self.barcodesHandler = ^(NSArray *barcodeObjects) {\n            };\n            self.tapGestureHandler = ^(CGPoint tapPoint) {\n            });\n        }\n        return self;\n    }\n\n###Barcode Generators:\n\nImport `RSCodeGen.h` into your source file and using `CodeGen` to generate barcode image. RSBarcodes provides 2 ways.\n\n    @protocol RSCodeGenerator \u003cNSObject\u003e\n\n    - (UIImage *)genCodeWithMachineReadableCodeObject:(AVMetadataMachineReadableCodeObject *)machineReadableCodeObject;\n\n    - (UIImage *)genCodeWithContents:(NSString *)contents machineReadableCodeObjectType:(NSString *)type;\n\n    @end\n\nHere are examples, the generated image could be used along with `RSCodeView` or `UIImageView`.\n\n    [CodeGen genCodeWithContents:\u003c#(NSString *)#\u003e machineReadableCodeObjectType:\u003c#(NSString *)#\u003e] // Types are coming from AVMetadataObject.h and RSCodeGen.h\n\nor\n\n    [CodeGen genCodeWithMachineReadableCodeObject:\u003c#(AVMetadataMachineReadableCodeObject *)#\u003e]\n\nLicense\n------------\n    The MIT License (MIT)\n\n    Copyright (c) 2012-2014 P.D.Q.\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy of\n    this software and associated documentation files (the \"Software\"), to deal in\n    the Software without restriction, including without limitation the rights to\n    use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n    the Software, and to permit persons to whom the Software is furnished to do so,\n    subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n    FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n    COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n    IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n    CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n------------  \n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/yeahdongcn/rsbarcodes/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeahdongcn%2FRSBarcodes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyeahdongcn%2FRSBarcodes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeahdongcn%2FRSBarcodes/lists"}