Giter Site home page Giter Site logo

microsoft / cognitive-vision-python Goto Github PK

View Code? Open in Web Editor NEW
163.0 62.0 111.0 8.75 MB

Jupyter Notebook with Python samples for the Cognitive Services Computer Vision API

Home Page: https://www.microsoft.com/cognitive-services/en-us/computer-vision-api

License: Other

Jupyter Notebook 100.00%

cognitive-vision-python's Introduction

Azure Computer Vision API: Jupyter Notebook

This Jupyter Notebook demonstrates how to use Python with the Azure Computer Vision API, a service within Azure Cognitive Services.

If you have the Jupyter Notebook application, clone this repository to your machine and open the .ipynb notebook files located in the Jupyter Notebook folder. If you want to try the notebooks on the web, you can use Binder by following these links:

Next steps

Contributing

We welcome contributions. Feel free to file issues and pull requests on the repo and we'll address them as we can. Learn more about how you can help on our Contribution Rules & Guidelines.

You can reach out to us anytime with questions and suggestions using our communities below:

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

License

All Microsoft Cognitive Services SDKs and samples are licensed with the MIT License. For more details, see LICENSE.

Sample images are licensed separately, please refer to LICENSE-IMAGE.

Developer Code of Conduct

Developers using Cognitive Services, including this sample, are expected to follow the "Developer Code of Conduct for Microsoft Cognitive Services", found at http://go.microsoft.com/fwlink/?LinkId=698895.

cognitive-vision-python's People

Contributors

areddish avatar chsienki avatar cthrash avatar julianik avatar lightfrenzy avatar microsoft-github-policy-service[bot] avatar miparnisari avatar msftgits avatar patrickfarley avatar yaxliu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cognitive-vision-python's Issues

Error code: 404

I followed your tutorial but when I tried to insert in my own image it come out as follow

image

below are my codes:
image

and here is my variables:
image
I took my URL and key from cognitive services

Notebooks corrupt?

I'm having trouble viewing these notebooks on Github. Downloading the repository and trying to open the notebooks locally is returning the following error:

Unreadable Notebook: Y:\pdata\174741\Project Info\Python_Scripts\misc\Cognitive-Vision-Python-master\Cognitive-Vision-Python-master\Jupyter Notebook\Computer Vision API Example.ipynb NotJSONError('Notebook does not appear to be JSON: '{\n "cells": [\n {\n "cell_type": "m...')

jupyter notebook files are corrupt

Hi Team ,
can you please upload fresh jupyter notebook files as existing files are not opening . it would be great help . thanks in advance

Error Code 200

I got an Error Code 200 and I don't know how to fix it
Screenshot 2022-02-16 211919
Screenshot 2022-02-16 212254
Screenshot 2022-02-16 212004
Screenshot 2022-02-16 211954
Screenshot 2022-02-16 211940

TypeError: post() takes from 1 to 3 positional arguments but 5 were given

Description

Hi, a colleague and I have been working on a script that extracts text from image files (.png)

For that he (colleague) has been using the method computervision_client.recognize_printed_text_in_stream().

Since last Thursday, Feb-25-2021, this method stopped working properly.

When called, it generates the following error:

TypeError Traceback (most recent call last)
in
----> 1 ocr_result_local = computervision_client.recognize_printed_text_in_stream(image=open(contrato, "rb" ))

/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azure/cognitiveservices/vision/computervision/operations/_computer_vision_client_operations.py in recognize_printed_text_in_stream(self, image, detect_orientation, language, custom_headers, raw, callback, **operation_config)
1406
1407 # Construct and send request
-> 1408 request = self._client.post(url, query_parameters, header_parameters, body_content)
1409 response = self._client.send(request, stream=False, **operation_config)
1410

TypeError: post() takes from 1 to 3 positional arguments but 5 were given

In which platform does it happen?

Azure Machine Learning Studio

How do we replicate the issue?

Just try to use the module: computervision_client.recognize_printed_text_in_stream()

Expected behavior (i.e. solution)

It should extract text from an image file.

Other Comments

I saw that something similar occurred here: microsoft/botbuilder-python#93

Error code: 400

Last cell: Analysis of an image retrieved via URL
Error code: 400
Message: {u'error': {u'message': u'Failed to download image.', u'code': u'FailedToDownloadImage'}}

Error Code 401

Hi,
I changed the Api URL and prediction key but still getting this issue after resolving bugs.

image

Thanks in advance

Printed vs Handwritten detection

I have successfully used the code here to recognise Handwritten text. However, how do I use it to detect Printed text? The goals is to separate printed and handwritten text in an image where both printed and handwritten texts are present.

Either params = {'mode' : 'Printed'} or params = {'mode' : 'Handwritten'} detects both printed and handwritten text.

Complete Client Library in Python?

I was wondering whether we could have a client library in Python that is more in sync with the windows client for the service.

I could contribute something I wrote while working on a project recently.

Repo description incorrectly states this is "Python SDK for MS Computer Vision SDK"

The description for this repository incorrectly states that it is the Python SDK for the Computer Vision API, when in fact it is a Jupyter notebook containing samples for the Python SDK.

image

The incorrect description causes SEO to rank it higher than the real GitHub repository containing the SDK:

image

Please update the description for this repository to more accurately reflect its contents, such that it doesn't compete with the SDK repository. Something like:

Sample Jupyter notebook for Azure Cognitive Services Computer Vision

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.