# WeScan
<p align="center">
<img width="900px" src="Assets/WeScan-Banner.jpg">
</p>
<p align="center">
<img src="https://app.bitrise.io/app/df00af454f27891d.svg?token=spjxNvzjnRqug6GfGM3_Lg"/>
<img src="https://img.shields.io/cocoapods/v/WeScan.svg?style=flat"/>
<img src="https://img.shields.io/cocoapods/l/WeScan.svg?style=flat"/>
<img src="https://img.shields.io/cocoapods/p/WeScan.svg?style=flat"/>
<img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat"/>
<img src="https://img.shields.io/badge/License-MIT-yellow.svg?style=flat"/>
</p>
**WeScan** makes it easy to add scanning functionalities to your iOS app!
It's modelled after `UIImagePickerController`, which makes it a breeze to use.
- [Features](#features)
- [Demo](#demo)
- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)
## Features
- [x] Fast and lightweight
- [x] Live scanning of documents
- [x] Edit detected rectangle
- [x] Auto scan and flash support
- [x] Support for both PDF and UIImage
- [x] Translated to English, Chinese, Italian, Portuguese, and French
- [ ] Batch scanning
## Demo
<p align="left">
<img width="350px" src="Assets/WeScan.gif">
</p>
## Requirements
- Swift 5.0
- iOS 10.0+
<br>
## Installation
### Swift Package Manager
The [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler. It is in early development, but WeScan does support its use on supported platforms.
Once you have your Swift package set up, adding WeScan as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
```swift
dependencies: [
.package(url: "https://github.com/WeTransfer/WeScan.git", .upToNextMajor(from: "1.7.0"))
]
```
### Cocoapods
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects.
To integrate **WeScan** into your Xcode project using CocoaPods, specify it in your `Podfile`:
```rubygi
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target '<Your Target Name>' do
pod 'WeScan', '>= 0.9'
end
```
Then, run the following command:
```bash
$ pod install
```
### Carthage
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
To integrate **WeScan** into your Xcode project using Carthage, specify it in your `Cartfile`:
```ogdl
github "WeTransfer/WeScan" >= 0.9
```
Run `carthage update` to build the framework and drag the built `WeScan.framework` into your Xcode project.
### Manually
Just download the project, and drag and drop the "WeScan" folder in your project.
<p align="center">
<img width="900px" src="Assets/project.png">
</p>
Simply add the WeScan framework in the project's Embedded Binaries and Linked Frameworks and Libraries.
<p align="center">
<img width="900px" src="Assets/LinkedFrameworks.png">
</p>
## Usage
### Swift
1. In order to make the framework available, add `import WeScan` at the top of the Swift source file
2. In the Info.plist, add the `NSCameraUsageDescription` key and set the appropriate value in which you have to inform the user of the reason to allow the camera permission
3. Make sure that your view controller conforms to the `ImageScannerControllerDelegate` protocol:
```swift
class YourViewController: UIViewController, ImageScannerControllerDelegate {
// YourViewController code here
}
```
4. Implement the delegate functions inside your view controller:
```swift
func imageScannerController(_ scanner: ImageScannerController, didFailWithError error: Error) {
// You are responsible for carefully handling the error
print(error)
}
func imageScannerController(_ scanner: ImageScannerController, didFinishScanningWithResults results: ImageScannerResults) {
// The user successfully scanned an image, which is available in the ImageScannerResults
// You are responsible for dismissing the ImageScannerController
scanner.dismiss(animated: true)
}
func imageScannerControllerDidCancel(_ scanner: ImageScannerController) {
// The user tapped 'Cancel' on the scanner
// You are responsible for dismissing the ImageScannerController
scanner.dismiss(animated: true)
}
```
5. Finally, create and present a `ImageScannerController` instance somewhere within your view controller:
```swift
let scannerViewController = ImageScannerController()
scannerViewController.imageScannerDelegate = self
present(scannerViewController, animated: true)
```
### Objective-C
1. Create a dummy swift class in your project. When Xcode asks if you'd like to create a bridging header, press 'Create Bridging Header'
2. In the new header, add the Objective-C class (`#import myClass.h`) where you want to use WeScan
3. In your class, import the header (`import <yourProjectName.swift.h>`)
4. Drag and drop the WeScan folder to add it to your project
5. In your class, add `@Class ImageScannerController;`
#### Example Implementation
```objc
ImageScannerController *scannerViewController = [[ImageScannerController alloc] init];
[self presentViewController:scannerViewController animated:YES completion:nil];
```
<br>
## Contributing
As the creators, and maintainers of this project, we're glad to invite contributors to help us stay up to date. Please take a moment to review [the contributing document](CONTRIBUTING.md) in order to make the contribution process easy and effective for everyone involved.
- If you **found a bug**, open an [issue](https://github.com/WeTransfer/WeScan/issues).
- If you **have a feature request**, open an [issue](https://github.com/WeTransfer/WeScan/issues).
- If you **want to contribute**, submit a [pull request](https://github.com/WeTransfer/WeScan/pulls).
<br>
## License
**WeScan** is available under the MIT license. See the [LICENSE](https://github.com/WeTransfer/WeScan/blob/develop/LICENSE) file for more info.
没有合适的资源?快使用搜索试试~ 我知道了~
IOS 人脸检测 自动对焦 功能强大的相机应用
共492个文件
png:124个
swift:107个
strings:42个
需积分: 1 0 下载量 179 浏览量
2023-06-21
16:00:11
上传
评论
收藏 29.54MB ZIP 举报
温馨提示
使用CameraKit,您可以轻松实现以下功能: 能够扩展和创建自定义会话。 图像和视频捕捉无缝地与相同的预览会话配合使用。 自动处理系统权限。 自动预览缩放。 自动处理预览、图像和视频的输出方向。 能够设置自定义的照片捕捉分辨率。 能够设置视频捕捉的分辨率和帧率。 内置人脸检测功能。 内置叠加网格功能。 内置点击对焦功能。 内置捏合缩放功能。 内置切换闪光灯(用于照片和视频)。 内置切换摄像头位置。 兼容Objective-C。
资源推荐
资源详情
资源评论
收起资源包目录
IOS 人脸检测 自动对焦 功能强大的相机应用 (492个子文件)
019dcdc0111e4d32e42828eb57a4803bbf58fd 164B
02abee780b5a48f7a6d22aae0cd0165942beb4 960B
06c9892ae39254b0829db7d07bce209f19f8be 307B
07fd9dd7d0af3071eced72a45c88fea7665976 388B
0fe3c0fbece04cf27546ebc6bee389a9267354 3KB
1b2762a49a7f0f3b12661dba5ca6c4183c9eb0 1KB
1d3672d56bfee96e28bce6dfac57f86dec41c1 351B
204fb2bc3816f0d72fb278892d3d2d03f1722b 415B
214aba530e827255f25580af9504c388442b75 326B
21bba43c8bea1ec11f150f3a5a00f054f2bb9d 575B
2387c86c413630cfdc0949f2f969b2a1938fab 653B
2adf96cd577ea1f17a15d7f9f364496e341558 1KB
2c6cbb436975a3b5a205f2841ea34f48fd58a3 3KB
3309a329ec2b33ca64219850957ce4be91e3e9 4KB
332f290972d045e8363eaf7bd508bc4ad01d3d 920B
36a22c2b4e8edc36d11e4ff612dc438b8d1979 352B
37cb6cc2afc3388d8124d268139e7fb02d5cdc 475B
3d3ffc80aafcdd68168fba5ea8d48b97a45918 384B
451f6ad9d184370862e3b9bc61ad7743c210be 488B
47e78ce5809e391ac9317f632a3b378616e800 3KB
48abfb501515e455f73b90979d53c6ef522460 561B
4b1867e5144b235af4f926d9625929eb4a09ae 325B
4bbb7d4c00b79eaf4e86ec4a4322a017129c04 797B
4c14841dc442be542cd1f4a6f6cf736b591029 663B
4e04b99d07d16491343964854e12a24fea08a8 335B
508f039f13961d84f0449152a760abb9543093 362B
5713beadb08fb86385ef16bb889ed0a96b2d07 323B
58b69fc417df613963a7b15f4ccdd473c58a6f 1KB
5bed6ef3577d193f444e76475598cfc8ff4e36 689B
5f258eac508c3b29ff2a16abf6e2b55dc5b033 327B
60c2f89d9b6f52c50d488cc5337a54fe9ab385 352B
645987447f59bb264e5c7cda8af4348a54cb42 310B
65a84254fcb1c4471ebed9cd8c384a622c4570 4KB
669a35b47407beff2a6ce09d6e2584b9a7bfa9 364B
68a8d2c3ac3cde48dc9077a28c19c8f302fb2c 2KB
690714567846a7c931d201d18f282db5cf16c4 2KB
70a857bfb860b7d31864db72db62c4beb55829 165B
7469708d34ac05ec7fbdf110bb97152c2bf93e 3KB
7fc945f9919c1632d925e557da7adb81f883b4 531B
82b59e394f50565ba03217685bb00f37811419 453B
865b2b072f96daa3020a3ea3c2ad8ecd4acd49 370B
89f9d17d4efc282aa175d1a495a21c2cf24890 332B
8caef78aa9c1bf494aaf2e0d6c4f2d0987b382 841B
8d7369ec3027e40e88abae74c52079caeaab27 581B
8d9ce7d55caee7c04dd7786d4f42983658bcb8 3KB
99af1f0c85b0930f29e09c0e7c42db7fefe9b0 496B
9b88df388b6015287de71d29fc56311124f73a 1KB
a0cce7ddd41f027aad4d51442d80625f7a66ba 600B
a6ffcbd3ca4707a09d6572431915e299390a95 899B
ac15944e63c13d0021a967274323797ed42093 1KB
ada0fdd9a79a054b94efbfceaba40e1884678c 3KB
ae8b959cf215693c8e0b8128b4c6c60dda3e5f 818B
b455336cf18064c3a907f9f368f064faed8e3c 486B
b892c84cf1840cb947798ce409c1739d961de2 773B
ba0a577a4634220663600abbebaf8112407122 163B
bb37ed4da080fc04baac38d8d8a71fc9df78c3 506B
bb80f88007044e603e193da02abcd71688e1c5 954B
bfe69427dbf896711a158f03ce9458b7ddd98e 325B
c00596a7fca3f3d4bdd64053b69d86745f9e10 66B
c1722a2fed35e9f3b5a9c3828c84f41ff9f347 3KB
c74461cfcecaaa234b8d33f1e677373cb68591 4KB
c87e6dd9dcc1c0c5f2facab740ae98c2adda18 2KB
ced6dc5a9088315a0864052d498f0852151d16 156B
CODEOWNERS 253B
config 316B
config 310B
d04da92286ec2808d63f2977d0e4a881b9a4f4 353B
d140721757bcddc50eea6fa76c33f5389b6980 332B
d47fb9d2f7a10590fc6e3203c8021aa93cc610 332B
d83182e7bc0e10fa6bd9dbc76f582b8a76f232 638B
d8ed50b3a7236d90fdfa16516372686ba22611 170B
da26d1632171cb429b1237bdc85991e1e72ed9 324B
daee3772862ba9e4485c502f9bfde76925394a 4KB
de7c4124fbc891931b09076af8710bfecbd119 332B
description 73B
description 73B
.DS_Store 6KB
e2634d0a10b87b250c58b3bce2699c86680829 348B
e9dfb6d529c817a6211281a0f707f7ceb28d3f 333B
eca81b3e7a2337c8a30547602530a3c0265272 330B
exclude 250B
exclude 250B
f9259f6a654d33d7ed3bb38eccd29750cbcdb6 572B
Fastfile 282B
FETCH_HEAD 361B
FETCH_HEAD 230B
ffb26df0452a3b9e2013f12850f788cf0c006e 1KB
Gemfile 176B
WeScan.gif 9.97MB
.gitignore 2KB
.gitignore 1KB
.gitmodules 304B
CameraKit.h 502B
WeScan.h 478B
WeScan.h 478B
AppDelegate.h 295B
ViewController.h 233B
WeScanTests-Bridging-Header.h 104B
HEAD 184B
HEAD 184B
共 492 条
- 1
- 2
- 3
- 4
- 5
资源评论
小菜的OnePiece
- 粉丝: 106
- 资源: 25
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功