!!! THIS PROJECT IS STILL WORKING IN PROGRESS !!!
This project is an implementation of CDD Model on iOS Platform. We used OpenCV library to handle the image processing work. Since OpenCV is mostly a C++ library, the part of image processing in this project is written in Objective-C++. The interfaces are implemented in Swift, and a bridging file was created to compile the project.
If you want to clone the code and deploy the project on your own computer and cell phones, certain steps have to be followed.
- The OpenCV library file is not included in the repository due to its large size, and it was added into
.gitignore
. In order to compile the project, you have to download the iOS distribution of OpenCV, and add it to the project (or you can just simply place it in the root directory of the project, and Xcode will recognize that). - If problems are encountered when compiling the project, check the directory of bridging file in the build settings of the project.
- This project uses CocoaPods. If you don't know what it is, click here
- The floaty menu will not start initially, and you have to scroll about in the tableview to make it appear. This problem is mainly caused by floaty library itself.
- As you can see, we only implemented the core features of the model. More features would be added in further development.
The implementation of the model is initially coded in Jupyter Notebook, and the following table shows the migration progress.
Jupyter Notebook | iOS Version | |
---|---|---|
CDD: Semi-automatic Model | β | β |
CDD: Segmentation | β | β |
CDD: Dewarp-v1 | β | β |
CDD: Dewarp-v2 | β | β (β ) |
CDD: Dewarp-v3 | β | |
CDD: Page Optimization | β | |
RCF Network | β |
β : There is no free transformation methods in OpenCV library. The implementation here would either be too time-consuming or produce white lines. This would be fixed in further updates, through interpolation methods.
- Email: 1247006353@qq.com
- QQ, Wechat: 1247006353
- Personal Blog: https://gyrojeff.top/
If you have any problems or advices, feel free to contact me.