Latest 0.2
Homepage https://github.com/leverdeterre/JMImageScanning
License MIT
Platforms ios 5.0, requires ARC
Authors

My other works

[http://leverdeterre.github.io] (http://leverdeterre.github.io)

[![CI Status](http://img.shields.io/travis/Jerome Morissard/JMImageScanning.svg?style=flat)](https://travis-ci.org/Jerome Morissard/JMImageScanning)
Version
License
Platform

What is it for ?

Scanning image to find sub image, like a CIDetector but to detect targeted images.

Really? but what is it for ?

I’m working on a lot of Bank applications and in order to execute functional testing i fix the constraint of logging on real testing accounts (protected by secure keyboard) using this library.

The idea, i have a master image (here, a secure keyboard to analyse).

Image

I want to find a sub image (here, all the pieces of the keyboard).

Image
Image
Image
Image
Image
Image
Image
Image
Image
Image

I am running pixel scanning on the targeted keyboard for each pieces.

The result :)

Image

Installation

JMImageScanning is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "JMImageScanning"
UIImage *keyboardImage = [UIImage imageNamed:@"free.png"];
UIImage *image = [UIImage @"free-0.png"];
NSArray *points = [keyboardImage findPositionsOfSubImage:image];

NSError *error;
CGPoint p = [keyboardImage findFirstPositionOfSubImage:image treshold:0.70f error:&error];

TODO

  • [x] increase performance on device (V0.2 increase 42% of performance)
  • [x] increase performance on device (V0.3 increase 130% of performance)
  • [ ] support heterogeneous scales

Performances

iPhone 5 (iOS8.4), 100 run

Version search time (ms)
V0.1 620ms
V0.2 359ms
develop 156ms

Author

Jerome Morissard, [email protected]

License

JMImageScanning is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "JMImageScanning",
    "version": "0.2",
    "summary": "Basic ocr recognition to hack secure keyboards.",
    "description": "                       UIImage pixel analysis to find sub components of images.n",
    "homepage": "https://github.com/leverdeterre/JMImageScanning",
    "license": "MIT",
    "authors": {
        "Jerome Morissard": "[email protected]"
    },
    "source": {
        "git": "https://github.com/leverdeterre/JMImageScanning.git",
        "tag": "0.2"
    },
    "platforms": {
        "ios": "5.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "JMImageScanning": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This