{ "info": { "author": "IUTU Inc.", "author_email": "contact@silversalts.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries" ], "description": "SilverSalts project\n=======================\n\nThis project aims to offer python api to access SilverSalts online services.\n\n----\n\n***************\nUpdates since last version\n***************\n10/22/2017 - multi-language(eng, deu, fra, spa, jpn, chi_tra, chi_sim, ita, por, nld, hin) support, and new option: oem.\n10/09/2017 - added a new option: use_cache, default True. If it's True and cache exists, customer will be free of charge.\n\n***************\nAPI\n***************\n\n===================================================================================\nocr(spec, user, secret, host, protocol)\n===================================================================================\n\nspec: A dictionary specifying the options for the OCR process. Supported:\n\n - data: Actual input data, usually the buffer from file read.\n\n - input_scheme: A string representing the scheme of input data. Supported: raw\n\n - output_scheme: A string representing the scheme of output data. Supported: hocr, pdf\n\n - use_cache: A boolean indicating whether to use cached results. Default: True. If cache is used, no charge\n\n - psm: an integer indicating tesseract psm value, e.g. 12\n\n - oem: an integer indicating tesseract oem value, e.g. 3\n\n - lang: an array of strings indicating languages, e.g. ['eng']\n\n (the following are considered only when the output_scheme is pdf)\n\n - text_visible: a boolean value indicating if the recognized text is visible\n\n - orig_visible: a boolean value indicating if the original pdf is visible\n\n - text_color: an array of 3 floats, range from 0 to 1, indicating the rgb of desired text color, e.g. [1, 0, 0], which means red\n\n - text_color_reflects_cl: an integer value of 1 or -1, indicating if the text (if visible) color correlates to the recognition confidence level. If -1, higher confidence means brighter color; If 1, higher confidence means darker color.\n\nuser: email of the registered user\n\nsecret: secret of the registered user (available on dashboard page after registration)\n\nhost: server url, default: api.silversalts.com\n\nprotocol: http or https, default: https\n\n\n============\nExamples\n============\n\nfrom silversalts.api import ocr\n\nwith open('input.pdf', 'rb') as i:\n with open('output.pdf', 'wb') as o:\n spec = {\n 'data': i.read(),\n # currently only supported value for input_scheme\n 'input_scheme': 'raw',\n # output in pdf, or alternatively hocr\n 'output_scheme': 'pdf',\n # use cached results (if cache is used, no charge)\n 'use_cache': True,\n # tesseract psm value\n 'psm': 12,\n # tesseract oem value\n 'oem': 3,\n # language, array of language strings\n 'lang': ['eng'],\n # the following are considered only when the output_scheme is pdf\n # hide the original content so it's easier to examine the newly ocr-ed content\n 'orig_visible': False,\n # display the ocr-ed text so we can examine the results\n 'text_visible': True,\n # r, g, b, each ranging 0 to 1\n 'text_color': (1, 0.5, 1),\n # 1 : the more confident, the darker\n # -1 : the more confident, the brighter\n 'text_color_reflects_cl': 1,\n }\n o.write(ocr(\n spec,\n 'you@email.com',\n 'your_secret_string',\n # optional\n 'api.silversalts.com',\n # optional\n 'https'\n ))", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://api.silversalts.com", "keywords": "image recognition,ocr", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "silversalts", "package_url": "https://pypi.org/project/silversalts/", "platform": "", "project_url": "https://pypi.org/project/silversalts/", "project_urls": { "Homepage": "https://api.silversalts.com" }, "release_url": "https://pypi.org/project/silversalts/0.1.4/", "requires_dist": null, "requires_python": "", "summary": "A SilverSalts Python Project", "version": "0.1.4" }, "last_serial": 3271104, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8d06a36054d0733292a7819df05a2192", "sha256": "7dc395603bb0d46600be007ef39e0290faa06488d4cbac9973208874f7847b7f" }, "downloads": -1, "filename": "silversalts-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8d06a36054d0733292a7819df05a2192", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5349, "upload_time": "2017-10-09T01:56:45", "url": "https://files.pythonhosted.org/packages/5c/6d/24371d5892a0fc00baf1a6342835929295efd84e18ffa7892f465680c251/silversalts-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e06964306d2689a4b313318691aa9060", "sha256": "96862b19fe65d2420a7b22b5f35caeb476263bbd80163fb689c713fb0b2a2010" }, "downloads": -1, "filename": "silversalts-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e06964306d2689a4b313318691aa9060", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5515, "upload_time": "2017-10-10T01:53:36", "url": "https://files.pythonhosted.org/packages/6e/b9/48a4e6a4c414b479230d93270baddd9ba2f68d7de3779e56613bd3a8b3b7/silversalts-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "75b0bcb3866b2e9a5f968a5f2b5c645f", "sha256": "f00a3f15b8bf4e409b728ac956be16b893292c81793686383318181a7b93b8c8" }, "downloads": -1, "filename": "silversalts-0.1.2.tar.gz", "has_sig": false, "md5_digest": "75b0bcb3866b2e9a5f968a5f2b5c645f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5561, "upload_time": "2017-10-15T19:47:43", "url": "https://files.pythonhosted.org/packages/1f/cd/11cf6c1c18ded95a36ba19b11924e7845501b0ef2b5d768a168ee7658de3/silversalts-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "338b3d10f0dde33e5c7652880c766960", "sha256": "b33eb8db6740ce0e51f07ad17686b4f8cb19d316bea0221cddc9e175ce80f257" }, "downloads": -1, "filename": "silversalts-0.1.3.tar.gz", "has_sig": false, "md5_digest": "338b3d10f0dde33e5c7652880c766960", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5684, "upload_time": "2017-10-22T05:46:53", "url": "https://files.pythonhosted.org/packages/73/d1/1656744198aca316cefa8b143b5b8b8372f839da5b9235f8cbf8a9917d2b/silversalts-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "0d8de3d4ff623499dca8a792519b0e1a", "sha256": "64591f5550be5f7d394db548ad87409c448c0f9e629a862244c505004bbb3e37" }, "downloads": -1, "filename": "silversalts-0.1.4.tar.gz", "has_sig": false, "md5_digest": "0d8de3d4ff623499dca8a792519b0e1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5696, "upload_time": "2017-10-23T05:17:41", "url": "https://files.pythonhosted.org/packages/3d/1d/05c9dd31a2c29c864a807acaaf482f7434978e96a18565a9b460be2b4f26/silversalts-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0d8de3d4ff623499dca8a792519b0e1a", "sha256": "64591f5550be5f7d394db548ad87409c448c0f9e629a862244c505004bbb3e37" }, "downloads": -1, "filename": "silversalts-0.1.4.tar.gz", "has_sig": false, "md5_digest": "0d8de3d4ff623499dca8a792519b0e1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5696, "upload_time": "2017-10-23T05:17:41", "url": "https://files.pythonhosted.org/packages/3d/1d/05c9dd31a2c29c864a807acaaf482f7434978e96a18565a9b460be2b4f26/silversalts-0.1.4.tar.gz" } ] }