{"id":15029130,"url":"https://github.com/mxabc/lbxscan","last_synced_at":"2025-05-14T13:09:16.193Z","repository":{"id":42352592,"uuid":"46345159","full_name":"MxABC/LBXScan","owner":"MxABC","description":"A barcode and qr code scanner (二维码、扫码、扫一扫、ZXing、ZBar、iOS系统AVFoundation扫码封装，扫码界面效果封装)","archived":false,"fork":false,"pushed_at":"2024-02-05T07:21:13.000Z","size":2714,"stargazers_count":3248,"open_issues_count":171,"forks_count":686,"subscribers_count":74,"default_branch":"master","last_synced_at":"2025-05-11T00:01:48.547Z","etag":null,"topics":["avfoundation","qrcode-generator","qrcode-scanner","scan","zbar","zxing"],"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/MxABC.png","metadata":{"files":{"readme":"README-English.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-17T12:18:14.000Z","updated_at":"2025-05-08T08:05:03.000Z","dependencies_parsed_at":"2024-06-18T12:15:23.500Z","dependency_job_id":"4bb2bad8-3ca2-4dab-b17e-ce4f3116a78a","html_url":"https://github.com/MxABC/LBXScan","commit_stats":{"total_commits":190,"total_committers":10,"mean_commits":19.0,"dds":"0.25263157894736843","last_synced_commit":"7bd526dad7e1d8afb025b0f046d7ccc47075fc45"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MxABC%2FLBXScan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MxABC%2FLBXScan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MxABC%2FLBXScan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MxABC%2FLBXScan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MxABC","download_url":"https://codeload.github.com/MxABC/LBXScan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149975,"owners_count":22022852,"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":["avfoundation","qrcode-generator","qrcode-scanner","scan","zbar","zxing"],"created_at":"2024-09-24T20:09:47.224Z","updated_at":"2025-05-14T13:09:11.169Z","avatar_url":"https://github.com/MxABC.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# iOS barcode and qr code objective-c version\n### iOS scanner wrapper\n- scanner wrapper with: AVFoundation、ZXing、ZBar\n- scan view wrapper\n- recognize image\n\n### 设置参数自定义效果\n- 扫码框周围区域背景色可设置\n- 扫码框颜色可也设置\n- 扫码框4个角的颜色可设置、大小可设置\n- 可设置只识别扫码框内的图像区域\n- 可设置扫码成功后，获取当前图片\n- 动画效果选择:  线条上下移动、网格形式移动、中间线条不移动(一般扫码条形码的效果)\n\n\n\n### install with cocoapods\n\u003e 可独立安装某一功能,ZXing已经下载到本工程，解决之前版本下载速度慢的问题\n\n#### install with cocoapods by git tag\n***\n- 安装所有库包括UI  (最低系统iOS7)\n\n```ruby\npod 'LBXScan/All',git:'https://github.com/MxABC/LBXScan.git', tag: '2.0'\n```\n\n- 只安装系统原生API封装库  (最低系统iOS7)\n\n```ruby\npod 'LBXScan/LBXNative',git:'https://github.com/MxABC/LBXScan.git', tag: '2.0'\n```\n\n- 只安装ZXing封装库  (最低系统iOS6)\n\n```ruby\npod 'LBXScan/LBXZXing',git:'https://github.com/MxABC/LBXScan.git', tag: '2.0'\n```\n\n- 只安装ZBar封装库 \n\n```ruby\npod 'LBXScan/LBXZBar',git:'https://github.com/MxABC/LBXScan.git', tag: '2.0'\n```\n\n- 只安装UI\n\n```ruby\npod 'LBXScan/UI',git:'https://github.com/MxABC/LBXScan.git', tag: '2.0'\n```\n- 安装任意组合\n\n\u003e 你可以通过上面的安装方式，安装任意组合\n\n\n### Demo测试\n- xcode版本:xcode8.3\n- 将工程下载下来，打开DemoTests中 LBXScanDemo.xcworkspace\n- Demo提供了选择对应库进行扫码识别、相册选择图片识别、生成条码等测试\n\n### 使用\n#### 自定义参数部分介绍\n```obj-c\n- (void)custom\n{\n//设置扫码区域参数\nLBXScanViewStyle *style = [[LBXScanViewStyle alloc]init];\nstyle.centerUpOffset = 44;\n\n//扫码框周围4个角的类型设置为在框的上面\nstyle.photoframeAngleStyle = LBXScanViewPhotoframeAngleStyle_On;\n//扫码框周围4个角绘制线宽度\nstyle.photoframeLineW = 6;\n\n//扫码框周围4个角的宽度\nstyle.photoframeAngleW = 24;\n\n//扫码框周围4个角的高度\nstyle.photoframeAngleH = 24;\n\n//显示矩形框\nstyle.isNeedShowRetangle = YES;\n\n//动画类型：网格形式，模仿支付宝\nstyle.anmiationStyle = LBXScanViewAnimationStyle_NetGrid;\n\n//网格图片\nstyle.animationImage = [UIImage imageNamed:@\"CodeScan.bundle/qrcode_scan_part_net\"];;\n\n//码框周围4个角的颜色\nstyle.colorAngle = [UIColor colorWithRed:65./255. green:174./255. blue:57./255. alpha:1.0];\n\n//矩形框颜色\nstyle.colorRetangleLine = [UIColor colorWithRed:247/255. green:202./255. blue:15./255. alpha:1.0];\n\n//非矩形框区域颜色\nstyle.notRecoginitonArea = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.6];\n\n}\n```\n\n\n# 界面效果\n![image](https://github.com/MxABC/Resource/blob/master/scan12.gif)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxabc%2Flbxscan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmxabc%2Flbxscan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxabc%2Flbxscan/lists"}