{"id":17068970,"url":"https://github.com/kgn/shapecatcherkit","last_synced_at":"2025-05-07T07:43:25.800Z","repository":{"id":2295705,"uuid":"3254060","full_name":"kgn/ShapecatcherKit","owner":"kgn","description":"An Objective-CFramework for the shapecatcher.com api","archived":false,"fork":false,"pushed_at":"2012-04-02T23:27:59.000Z","size":409,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T07:42:06.493Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://shapecatcher.com","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/kgn.png","metadata":{"files":{"readme":"readme.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}},"created_at":"2012-01-24T07:40:50.000Z","updated_at":"2024-09-12T06:32:36.000Z","dependencies_parsed_at":"2022-08-26T21:40:50.299Z","dependency_job_id":null,"html_url":"https://github.com/kgn/ShapecatcherKit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FShapecatcherKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FShapecatcherKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FShapecatcherKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FShapecatcherKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kgn","download_url":"https://codeload.github.com/kgn/ShapecatcherKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252837334,"owners_count":21811872,"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":[],"created_at":"2024-10-14T11:15:45.305Z","updated_at":"2025-05-07T07:43:25.775Z","avatar_url":"https://github.com/kgn.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"**ShapecatcherKit** is an Objective-C framework for [shapecatcher.com](http://shapecatcher.com) that provides full support for the API to recognize unicode shapes from drawings and rate the results.\n\n![](https://github.com/kgn/ShapecatcherKit/raw/master/Screenshot.png)\n\n*Please note the sample app does not include drawing code, it's purpose is only to demonstrate how to use the api.*\n\n*Also `ShapecatcherKitTestApiKey.h` is referenced from the sample app but missing from the project because it \ncontains my private api key, you will need to request your own :)*\n\n# How to…\n\nThe sample application included with this project demonstrates how to fully use the API but here are some code snippets.\n\nFirst set your api key on the `sharedKit`:\n\n``` obj-c\n[[ShapecatcherKit sharedKit] setApiKey:@\"\u003cyour private api key\u003e\"];\n```\n\nThen you can recognize `NSImage`s asynchronously:\n\n``` obj-c\n[[ShapecatcherKit sharedKit] recognizeFromImage:image withSuccess:^(NSArray *shapes){\n    NSLog(@\"%@\", shapes);\n} andFailure:nil];\n```\n\nThe `shapes` array contains `SKShape` objects with all the data from the api. This object also allows you to asynchronously request an image of the shape and rate how well the shape matches the drawing:\n\n``` obj-c\n[shape requestCharacterImageWithSuccess:^(NSImage *image){\n    NSLog(@\"%@\", image);\n} andFailure:nil];\n```\n\n``` obj-c\n[shape setRating:SKShapeGoodRating withSuccess:^(){\n    NSLog(@\"%@\", image);\n} andFailure:nil];\n```\n\nShapes can be rated *good*(`SKShapeGoodRating`) *bad*(`SKShapeBadRating`) or the previous rating can be undone with *undo*(`SKShapeUndoRating`).\n\n---\n\n**ShapecatcherKit** is available under the MIT license. See the LICENSE file for more info.\n\n**ShapecatcherKit** is built on top of [AFNetworking](https://github.com/AFNetworking/AFNetworking) and [JSONKit](https://github.com/johnezang/JSONKit).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkgn%2Fshapecatcherkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkgn%2Fshapecatcherkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkgn%2Fshapecatcherkit/lists"}