Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mxabc/swiftscan
A barcode and qr code scanner( 二维码 各种码识别,生成,界面效果)
https://github.com/mxabc/swiftscan
avfoundation barcode qrcode scan
Last synced: about 18 hours ago
JSON representation
A barcode and qr code scanner( 二维码 各种码识别,生成,界面效果)
- Host: GitHub
- URL: https://github.com/mxabc/swiftscan
- Owner: MxABC
- License: mit
- Created: 2015-12-09T14:34:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-10-25T08:23:52.000Z (about 1 year ago)
- Last Synced: 2024-10-24T17:50:36.547Z (21 days ago)
- Topics: avfoundation, barcode, qrcode, scan
- Language: Swift
- Homepage:
- Size: 480 KB
- Stars: 1,592
- Watchers: 32
- Forks: 326
- Open Issues: 85
-
Metadata Files:
- Readme: README-Chinese.md
- License: LICENSE
Awesome Lists containing this project
README
# iOS 二维码、条形码 Swift 版本
### Objective-c版本: **[LBXScan](https://github.com/MxABC/LBXScan)**
## 介绍
**swift封装系统自带扫码及识别图片功能**
- 扫码界面效果封装
- 二维码和条形码识别及生成
- 相册获取图片后识别(测试效果不好...)**模仿其他app**
- 模仿QQ扫码界面
- 支付宝扫码框效果
- 微信扫码框效果**其他设置参数自定义效果**
- 扫码框周围区域背景色可设置
- 扫码框颜色可也设置
- 扫码框4个角的颜色可设置、大小可设置
- 可设置只识别扫码框内的图像区域
- 可设置扫码成功后,获取当前图片
- 根据扫码结果,截取码的部分图像(在模仿qq扫码界面,扫码成功后可看到)
- 动画效果选择: 线条上下移动、网格形式移动、中间线条不移动(一般扫码条形码的效果).### CocoaPods安装
```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'swiftScan', '~> 1.1.2'
```### 手动安装
下载后将Source文件夹copy到工程即可### 版本
#### v1.0.9
swift3.0
#### v1.0.8
修改适应cocoapods安装后,编译报错bug## 界面效果
(加载速度慢,可刷新网页)
![image](https://github.com/MxABC/swiftScan/blob/master/ScreenShots/page1.jpg)
![image](https://github.com/MxABC/swiftScan/blob/master/ScreenShots/page2.jpg)
![image](https://github.com/MxABC/swiftScan/blob/master/ScreenShots/page3.jpg)
![image](https://github.com/MxABC/swiftScan/blob/master/ScreenShots/page4.jpg)
![image](https://github.com/MxABC/swiftScan/blob/master/ScreenShots/page5.jpg)
![image](https://github.com/MxABC/swiftScan/blob/master/ScreenShots/page6.jpg)
![image](https://github.com/MxABC/swiftScan/blob/master/ScreenShots/page7.jpg)
![image](https://github.com/MxABC/swiftScan/blob/master/ScreenShots/page8.jpg)
![image](https://github.com/MxABC/swiftScan/blob/master/ScreenShots/page9.jpg)
![image](https://github.com/MxABC/swiftScan/blob/master/ScreenShots/page10.jpg)
![image](https://github.com/MxABC/swiftScan/blob/master/ScreenShots/page11.jpg)