Skip to content

Fixed issues in docs #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Using an SDK (API client) is the quickest way for a developer to speed up the de
### **SDK Examples**
**Extract Localized Text from an Image**

{{< tabs tabTotal="4" tabID="4" tabName1="C#" tabName2="Java" tabName3="Python" tabName4="Android" >}}
{{< tabs tabTotal="4" tabID="4" tabName1="C#" tabName2="Java" tabName3="Android" tabName4="Python" >}}

{{< tab tabNum="1" >}}

Expand All @@ -69,14 +69,15 @@ Using an SDK (API client) is the quickest way for a developer to speed up the de

{{< tab tabNum="3" >}}

{{< gist "aspose-cloud" "806422f52a90ff15bbfcd268b91184a9" "Example-RecognizeFromStorageLanguage.py" >}}
{{< gist "aspose-cloud" "7a771d5fa2f6ac367708ab42b9740d71" "Example-RecognizeFromStorageLanguage.java" >}}

{{< /tab >}}

{{< tab tabNum="4" >}}

{{< gist "aspose-cloud" "7a771d5fa2f6ac367708ab42b9740d71" "Example-RecognizeFromStorageLanguage.java" >}}
{{< gist "aspose-cloud" "806422f52a90ff15bbfcd268b91184a9" "Example-RecognizeFromStorageLanguage.py" >}}

{{< /tab >}}


{{< /tabs >}}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Using an SDK (API client) is the quickest way for a developer to speed up the de
### **SDK Examples**
**Extract OCR or HOCR Text from Images**

{{< tabs tabTotal="4" tabID="4" tabName1="C#" tabName2="Java" tabName3="Python" tabName4="Android" >}}
{{< tabs tabTotal="4" tabID="4" tabName1="C#" tabName2="Java" tabName3="Android" tabName4="Python" >}}

{{< tab tabNum="1" >}}

Expand All @@ -68,16 +68,17 @@ Using an SDK (API client) is the quickest way for a developer to speed up the de

{{< tab tabNum="3" >}}

{{< gist "aspose-cloud" "806422f52a90ff15bbfcd268b91184a9" "RecognizeFromStorage.py" >}}
{{< gist "aspose-cloud" "7a771d5fa2f6ac367708ab42b9740d71" "Example-RecognizeFromStorage.java" >}}

{{< /tab >}}

{{< tab tabNum="4" >}}

{{< gist "aspose-cloud" "7a771d5fa2f6ac367708ab42b9740d71" "Example-RecognizeFromStorage.java" >}}
{{< gist "aspose-cloud" "806422f52a90ff15bbfcd268b91184a9" "RecognizeFromStorage.py" >}}

{{< /tab >}}


{{< /tabs >}}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Using an SDK (API client) is the quickest way for a developer to speed up the de

**Extract OCR or HOCR Text from Images without using Storage**

{{< tabs tabTotal="4" tabID="4" tabName1="C#" tabName2="Java" tabName3="Python" tabName4="Android" >}}
{{< tabs tabTotal="4" tabID="4" tabName1="C#" tabName2="Java" tabName3="Android" tabName4="Python" >}}

{{< tab tabNum="1" >}}

Expand All @@ -78,21 +78,22 @@ Using an SDK (API client) is the quickest way for a developer to speed up the de

{{< tab tabNum="3" >}}

{{< gist "aspose-cloud" "806422f52a90ff15bbfcd268b91184a9" "RecognizeFromContent.py" >}}
{{< gist "aspose-cloud" "7a771d5fa2f6ac367708ab42b9740d71" "Example-RecognizeFromContent.java" >}}

{{< /tab >}}

{{< tab tabNum="4" >}}

{{< gist "aspose-cloud" "7a771d5fa2f6ac367708ab42b9740d71" "Example-RecognizeFromContent.java" >}}
{{< gist "aspose-cloud" "806422f52a90ff15bbfcd268b91184a9" "RecognizeFromContent.py" >}}

{{< /tab >}}


{{< /tabs >}}

**Extract OCR or HOCR Text from Image URL**

{{< tabs tabTotal="4" tabID="5" tabName1="C#" tabName2="Java" tabName3="Python" tabName4="Android" >}}
{{< tabs tabTotal="4" tabID="5" tabName1="C#" tabName2="Java" tabName3="Android" tabName4="Python" >}}

{{< tab tabNum="1" >}}

Expand All @@ -108,14 +109,15 @@ Using an SDK (API client) is the quickest way for a developer to speed up the de

{{< tab tabNum="3" >}}

{{< gist "aspose-cloud" "806422f52a90ff15bbfcd268b91184a9" "RecognizeFromURL.py" >}}
{{< gist "aspose-cloud" "7a771d5fa2f6ac367708ab42b9740d71" "Example-RecognizeFromUrl.java" >}}

{{< /tab >}}

{{< tab tabNum="4" >}}

{{< gist "aspose-cloud" "7a771d5fa2f6ac367708ab42b9740d71" "Example-RecognizeFromUrl.java" >}}
{{< gist "aspose-cloud" "806422f52a90ff15bbfcd268b91184a9" "RecognizeFromURL.py" >}}

{{< /tab >}}


{{< /tabs >}}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ weight: 30
---

## **Introduction**
Aspose.OCR Cloud provides helper functions to work with files uploaded to Aspose.OCR Cloud Storage or any other Cloud Storage of your choice. If you need any help getting started with setting third party storage please refer to [Aspose Cloud UI Help Topics](https://docs.aspose.cloud/display/totalcloud/Aspose+Cloud+UI+Help+Topics).
Aspose.OCR Cloud provides helper functions to work with files uploaded to Aspose.OCR Cloud Storage or any other Cloud Storage of your choice. If you need any help getting started with setting third party storage please refer to [Aspose Cloud UI Help Topics](https://docs.aspose.cloud/total/getting-started/dashboard/how-to-configure-3rd-party-cloud-storages/).
### **Download a file from Cloud Storage**
#### **API Information**

Expand Down
26 changes: 21 additions & 5 deletions ocr/getting-started/available-sdks/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,36 @@ url: /available-sdks/
weight: 40
---

# **Aspose.OCR Cloud SDKs**
## **Aspose.OCR Cloud SDKs**
Aspose.OCR Cloud is a modern REST-oriented API, that allows easy integration into existing systems.
### **Why use an SDK?**
Using an SDK (API client) is the quickest way for a developer to speed up the development. An SDK takes care of a lot of low-level details of making requests and handling responses and lets you focus on writing code specific to your particular project.
### **SDK benefits**
Our supported SDKs are 100% tested and out of the box running. These SDKs are open source and have the MIT license. You can use them and even customize them for absolutely free of charge.
# **Supported SDKs**
{{< tabs tabTotal="1" tabID="1" tabName1=".NET" >}}
## **Supported SDKs**
{{< tabs tabTotal="4" tabID="4" tabName1="C#" tabName2="Java" tabName3="Android" tabName4="Python" >}}

{{< tab tabNum="1" >}}

**Aspose.OCR Cloud SDK for .NET** allows you to work with Aspose.OCR Cloud REST APIs in your .NET applications quickly and easily, with zero initial cost:
Completes source code of Aspose.OCR Cloud SDK for .NET is freely available on the [GitHub](https://github.com/aspose-ocr-cloud/aspose-ocr-cloud-dotnet).

- <https://github.com/aspose-ocr-cloud/aspose-ocr-cloud-dotnet>
{{< /tab >}}

{{< tab tabNum="2" >}}

Completes source code of Aspose.OCR Cloud SDK for Java is freely available on the [GitHub](https://github.com/aspose-ocr-cloud/aspose-ocr-cloud-java).

{{< /tab >}}

{{< tab tabNum="3" >}}

Completes source code of Aspose.OCR Cloud SDK for Android is freely available on the [GitHub](https://github.com/aspose-ocr-cloud/aspose-ocr-cloud-android).

{{< /tab >}}

{{< tab tabNum="4" >}}

Completes source code of Aspose.OCR Cloud SDK for Python is freely available on the [GitHub](https://github.com/aspose-ocr-cloud/aspose-ocr-cloud-python).

{{< /tab >}}

Expand Down
2 changes: 1 addition & 1 deletion ocr/getting-started/how-to-run-the-examples/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ weight: 50
---

## **Running Aspose.OCR Cloud Examples**
All examples of Aspose.OCR Cloud are hosted on [Github](https://github.com/aspose-ocr-cloud). Examples are located in the **Examples** folder.
All examples of Aspose.OCR Cloud are hosted on [Github](https://github.com/aspose-ocr-cloud).
## **Contribute**
If you like to add or improve an example, we encourage you to contribute to the project. All examples and showcase projects in this repository are open source and can be freely used in your own applications.

Expand Down
8 changes: 4 additions & 4 deletions ocr/getting-started/overview/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Aspose.OCR Cloud is a REST API for optical character recognition and documents s
The characters of different languages have different representations. If we combine the languages with the font types and styles - it makes a large set of characters to be recognized from an image. Aspose.OCR Cloud handles this task very precisely. It can recognise text in English, French and German languages at the moment.

{{% /alert %}}
### **Cloud SDKs**
## **Cloud SDKs**
Cloud SDKs are wrappers around REST APIs in various programming languages, allowing you to process documents in language of your choice quickly and easily, gaining all benefits of strong types and IDE highlights. Please check [Aspose.OCR GitHub repository](https://github.com/aspose-ocr-cloud/) for SDKs along with working examples, to get you started in no time.
### **API Explorer**
## **API Explorer**
[Aspose.OCR Cloud API Reference](https://apireference.aspose.cloud/ocr/) is the easiest way to try out our APIs right away in your browser! It allows you to effortlessly interact and try out every single operation our APIs exposes.
### **Security and Authentication**
The Aspose.OCR Cloud APIs are secured and requires authentication. Please [create your Aspose for Cloud account](https://docs.aspose.cloud/display/storagecloud/Creating+and+Managing+Account) (if not already created), [Create new app and Get your App Key and App SID](https://docs.aspose.cloud/display/storagecloud/Create+New+App+and+Get+App+Key+and+SID). Aspose Cloud REST APIs can be authenticated using either OAuth 2.0 or URL Signing. Please check [Authenticating API Requests](https://docs.aspose.cloud/display/storagecloud/Authenticating+API+Requests) article for more details.
## **Security and Authentication**
The Aspose.OCR Cloud APIs are secured and requires authentication. Please [create your Aspose for Cloud account](https://docs.aspose.cloud/storage/creating-and-managing-account/) (if not already created), [Create new app and Get your App Key and App SID](https://docs.aspose.cloud/storage/create-new-app-and-get-app-key-and-sid/). Aspose Cloud REST APIs can be authenticated using either OAuth 2.0 or URL Signing. Please check [Authenticating API Requests](https://docs.aspose.cloud/storage/authenticating-api-requests/) article for more details.
27 changes: 23 additions & 4 deletions ocr/getting-started/quickstart/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ weight: 30
---

## **Create an account**
For details on how to create a new account please check [Create a new Account](https://docs.aspose.cloud/display/storagecloud/Creating+and+Managing+Account).
For details on how to create a new account please check [Create a new Account](https://docs.aspose.cloud/storage/creating-and-managing-account/).
## **Create an API Client App**
Before you can make any requests to Aspose Cloud APIs you need to [create an API Client App](https://docs.aspose.cloud/display/storagecloud/Create+New+App+and+Get+App+Key+and+SID).
Before you can make any requests to Aspose Cloud APIs you need to [create an API Client App](https://docs.aspose.cloud/storage/create-new-app-and-get-app-key-and-sid/).

This will give you **App SID** and **App key (secret key)** which you can use to invoke Aspose Cloud APIs.
## **Install the SDK of your choice**
Expand All @@ -24,12 +24,31 @@ The GitHub repository for Aspose.OCR Cloud has a complete set of examples, demon

**Extract OCR or HOCR Text from Images**

{{< tabs tabTotal="1" tabID="1" tabName1="C#" >}}
{{< tabs tabTotal="4" tabID="4" tabName1="C#" tabName2="Java" tabName3="Python" tabName4="Android" >}}

{{< tab tabNum="1" >}}

{{< gist "" "57478ed06c916935a61af824d90b28e0" "Examples-DotNET-CSharp-ExtractingManagingOCR-CloudStorage-ExtractOCRorHOCRTextFromSpecificBlockImage-1.cs" >}}
{{< gist "aspose-cloud" "0f9e9de5290f0fcdfd93517225f2b66a" "Example-RecognizeFromStorage.cs" >}}

{{< /tab >}}

{{< tab tabNum="2" >}}

{{< gist "aspose-cloud" "723802ba0a961dac4b73a96f1932469c" "Example-RecognizeFromStorage.java" >}}

{{< /tab >}}

{{< tab tabNum="3" >}}

{{< gist "aspose-cloud" "806422f52a90ff15bbfcd268b91184a9" "RecognizeFromStorage.py" >}}

{{< /tab >}}

{{< tab tabNum="4" >}}

{{< gist "aspose-cloud" "7a771d5fa2f6ac367708ab42b9740d71" "Example-RecognizeFromStorage.java" >}}

{{< /tab >}}

{{< /tabs >}}

10 changes: 5 additions & 5 deletions ocr/getting-started/supported-file-formats/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ weight: 20
---

## **Input Image Formats**
- [JPEG](https://wiki.fileformat.com/Image/JPEG/)
- [PNG](https://wiki.fileformat.com/Image/PNG/)
- [GIF](https://wiki.fileformat.com/Image/GIF/)
- [BMP](https://wiki.fileformat.com/Image/BMP/)
- [TIFF](https://wiki.fileformat.com/Image/TIFF/)
- [JPEG](https://docs.fileformat.com/image/jpeg/)
- [PNG](https://docs.fileformat.com/image/png/)
- [GIF](https://docs.fileformat.com/image/gif/)
- [BMP](https://docs.fileformat.com/image/bmp/)
- [TIFF](https://docs.fileformat.com/image/tiff/)
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ Before you start:
1. Download, install and configure ADT on your computer.
1. Create and configure an Android Virtual Device or connect a real Android device with your computer for testing.
1. Set up a complete working and testing environment.
### **Create a project**
## **Create a project**
1. From the **File** menu, select **New**, then **Android Application Project**.
The **New Android Application** dialog is displayed.
1. Enter **Application Name**, **Project Name** and **Package Name**. Leave the other settings as default.
1. Click **Next**, **Next**, **Next** and **Next**.
1. Click **Finish**.
### **Application UI**
## **Application UI**
In **Project Explorer** double click *res/layout/activity_main.xml*. *activity_main.xml* is the UI of our application. Right-click it and select **Change Layout** option. Choose **LinearLayout (Vertical)** from the list and click **OK**. From the **Palette** drag a **Button** and a **TextView** to the white background area. Adjust their width, height and position using mouse as shown in the following screenshot:

![todo:image_alt_text](recognize-text-in-photos-on-android-device_1.png)
Expand Down Expand Up @@ -53,7 +53,7 @@ We want to access the *TextView* within our code, so we must add some identifier
```

Click the newly added button to select and go to the **Properties** window in the right side. Edit the **Text** property and change its value to *Take Photo*. Updating the property will change the label/caption of the button. Scroll down and find another property **On Click**. Change it's value to *captureImage*. We want to associate a Java method called captureImage with the *click* event of this button. We shall discuss the code of the method later below.
### **Application permissions**
## **Application permissions**
Our application will use some features provided by the system, that is the camera, storage and internet connection. We have to acquire permissions for these resources. Locate the file *AndroidManifest.xml* in **Project Explorer** window and double-click to open it. Add the following code under the <manifest> element.

**AndroidManifest.xml**
Expand Down Expand Up @@ -81,7 +81,7 @@ Our application will use some features provided by the system, that is the camer
</manifest>

```
### **Implementation**
## **Implementation**
Our code has four major parts.

1. captureImage Send request to camera to capture photo and save it on external device
Expand Down Expand Up @@ -436,5 +436,5 @@ public class MainActivity extends ActionBarActivity {
```

Putting all things together, we have captured an image using device camera, saved the image in a temporary file on external storage, used Aspose.OCR Cloud to recognize text in that image, used AsyncTask for REST API, displayed the results on the screen. User can copy the text and paste it in any other application.
### **Download**
## **Download**
Download the complete working project from [Github repository](https://github.com/AsposeSocialMedia/PhotoOCR_for_Android). You will need appSID and appKey to run this application. Sign up at <https://dashboard.aspose.cloud/> for free to get them.