Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of contents

...

Table of Contents
minLevel1
maxLevel4

...

Introduction

...

This explanation assumes that the i-PROカメラアプリケーション開発環境の構築が完成していることを前提に説明します。
開発環境の構築が準備できていない場合、こちらを参考に完成させてください。
また、このチュートリアルではSDKのインストールディレクトリをPRO camera application development environment has been completed.
If you are not ready to build the development environment, please refer to here to complete it.

Also, in this tutorial, the SDK installation directory is described as ${SDK_DIR}として記載します。.

...

Operation overview

...

docker_ocr_appはカメラが撮影した映像から文字を読み取り、読み取った文字を表示するサンプルアプリです。app is a sample application that reads characters from images taken by a camera and displays the read characters.

Note

docker_ocr_appはSDK app can only be built with Container Adamapp supported by SDK v.2.00以降で対応したContainer Adamappのみビルド可能です。SDK v2.00未満ではビルドできません。

動作に必要な外部ライブラリ

C/C++でビルドする場合は下記が必要です。

tesseract

サンプルアプリのディレクトリパス

.00 or later. Cannot be built with SDK below v2.00.

External libraries required for operation

...

To build with Python, need below:

tesseract

Directory path of the sample app

...

The C/C++ のソースコードは下記に格納されています。source code is stored below.

${SDK_DIR}/src/adamapp/docker_ocr_app

Pythonのソースコードはありません。

...

No python source code.

How to build the sample app (C/C++)

...

See here for building with C/C++でビルドする場合はこちらを参照してください。

サンプルアプリの使用方法

下記のように、アプリを起動した際にカメラが撮影した画像に文字が入るようにします。

...

文字認識に成功すると下記のように認識した文字が表示されます。.

How to use the sample app

...

As shown below, add text to the image taken by the camera when you start the app.

...

If character recognition is successful, the recognized characters will be displayed as shown below.

...

Info

文字認識の精度が低いため、環境に依存して文字を読み取れない場合があります。
文字のフォントやサイズを変更して試してください。

補足情報

・設定の変更

このアプリケーションには、ユーザーが変更できるいくつかの設定があります。
以下は、ユーザーが現在変更できる設定のリストです。

...

Due to the low accuracy of character recognition, characters may not be readable depending on the environment. Try changing the font and size of the text.

Appendix

...

How to change preferences

This application has several settings that users can change. Below is a list of settings that users can currently change.

Resoultion:
Resolution to get jpeg images.
"160x90", "320x180", "640x360", "1280x720", "1920x1080", "2560x1440", "3840x2160", "160x120", "320x240", "400x300", "640x480", "800x600", "1280x960", "1600x1200", "2048x1536", "2560x1920", "4000x3000", "320x320", "640x640", "1280x1280", "2192x2192", "2992x2992"
ただし、カメラの性能によっては指定した値で動作しない場合があります。However, by the ability of the camera, it may not work with the specified value.

Frame rate:
JPEG画像にエンコードされたYC(YUV)画像を取得するためのフレームレート。 1以上を指定してください。 ただし、カメラの性能によっては指定された値で動作しない場合があります。Frame rate to get YC(YUV) images which are encoded to jpeg images.
Specify 1 or more.
However, by the ability of the camera, it may not work with the specified value.