JP5974140B1 - Image processing apparatus, image processing method, and program - Google Patents

Image processing apparatus, image processing method, and program Download PDF

Info

Publication number
JP5974140B1
JP5974140B1 JP2015119790A JP2015119790A JP5974140B1 JP 5974140 B1 JP5974140 B1 JP 5974140B1 JP 2015119790 A JP2015119790 A JP 2015119790A JP 2015119790 A JP2015119790 A JP 2015119790A JP 5974140 B1 JP5974140 B1 JP 5974140B1
Authority
JP
Japan
Prior art keywords
image
predetermined
pattern
unit
pixels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2015119790A
Other languages
Japanese (ja)
Other versions
JP2017004394A (en
Inventor
田中 秀尚
秀尚 田中
忠 向井
忠 向井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tomy Co Ltd
Original Assignee
Tomy Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tomy Co Ltd filed Critical Tomy Co Ltd
Priority to JP2015119790A priority Critical patent/JP5974140B1/en
Application granted granted Critical
Publication of JP5974140B1 publication Critical patent/JP5974140B1/en
Publication of JP2017004394A publication Critical patent/JP2017004394A/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Picture Signal Circuits (AREA)

Abstract

【課題】画像処理装置が、処理対象の絵等が描かれる面を識別するための情報を新たに設ける必要無しに、処理対象の絵等が所定の面に描かれているか否かに応じて、画像処理を行うか否かを判定することができるようにする。【解決手段】画像処理装置が、画像を取得する画像取得部と、前記画像のエッジ検出を行うエッジ検出部と、前記エッジ検出にて検出されたエッジ部分に含まれる画素の前記画像における配置が所定のパタンを満たすか否かを判定するパタン判定部と、前記パタン判定部が前記所定のパタンを満たすと判定した場合、当該パタンに対応する所定の画素を消去するノイズ除去部と、前記パタン判定部が前記所定のパタンを満たすと判定した度合いを示す指標値が、前記度合いが所定の度合い以上に大きいことを示す場合、前記ノイズ除去部が画素を消去した画像に対してさらに画像処理を行う後段処理部と、を備える。【選択図】図5An image processing apparatus according to whether or not a picture or the like to be processed is drawn on a predetermined face without having to newly provide information for identifying the face on which the picture or the like to be processed is drawn. It is possible to determine whether or not to perform image processing. An image processing apparatus includes an image acquisition unit that acquires an image, an edge detection unit that detects an edge of the image, and an arrangement of pixels included in an edge portion detected by the edge detection in the image. A pattern determination unit that determines whether or not a predetermined pattern is satisfied, a noise removal unit that deletes a predetermined pixel corresponding to the pattern when the pattern determination unit determines that the predetermined pattern is satisfied, and the pattern When the index value indicating the degree that the determination unit determines that the predetermined pattern is satisfied indicates that the degree is greater than or equal to the predetermined degree, the noise removal unit further performs image processing on the image from which the pixels are deleted. A post-stage processing unit to be performed. [Selection] Figure 5

Description

本発明は、画像処理装置、画像処理方法及びプログラムに関する。   The present invention relates to an image processing apparatus, an image processing method, and a program.

絵や文字などを筆記可能な装置の1つに磁気ボードがある(特許文献1参照)。磁気ボードは、鉄粉が収納された小室を多数有している。磁石を備えたペンでユーザが磁気ボードの表面をなぞると、鉄粉が磁気ボードの表面内側(小室内側)に付着する。このように鉄粉が磁気ボードの表面内側に付着することで、ユーザが書いた絵や文字などが表示される。また、磁気ボードの表面内側に付着した鉄粉を磁石にて底面側(表面と反対側)へ移動させることで、絵や文字などが消去される。   One of the devices that can write pictures and characters is a magnetic board (see Patent Document 1). The magnetic board has many small chambers in which iron powder is stored. When the user traces the surface of the magnetic board with a pen equipped with a magnet, the iron powder adheres to the inner surface (small chamber side) of the magnetic board. In this way, the iron powder adheres to the inside of the surface of the magnetic board, so that pictures and characters written by the user are displayed. Moreover, a picture, a character, etc. are erase | eliminated by moving the iron powder adhering to the surface inner side of a magnetic board to a bottom face side (opposite surface) with a magnet.

実開平2−19590号公報Japanese Utility Model Publication No. 2-19590

画像処理を行う装置に、処理対象の絵等(絵でも、字でも、記号でも、これらの組み合わせでもよい)が所定の面に描かれている場合には画像処理を行わせ、他の面に描かれている場合には画像処理を抑制させたい場合がある。
例えば、画像処理を行うアプリケーション(アプリケーションプログラム)を磁気ボード用に提供する場合、処理対象の絵等が磁気ボードに描かれているときは、当該アプリケーションをインストールされた装置が画像処理を実行するようにする。一方、処理対象の絵等が磁気ボード以外に描かれているときは、当該装置が画像処理の実行を抑制するようにする。これにより、当該アプリケーションに画像処理を行わせたいユーザが磁気ボードを有していない場合、磁気ボードを購入する可能性がある。
If an image processing device has a picture or the like to be processed (drawings, letters, symbols, or a combination thereof) drawn on a predetermined surface, the image processing is performed on the other surface. In some cases, it may be desired to suppress image processing.
For example, when an application (application program) for performing image processing is provided for a magnetic board, when a picture to be processed is drawn on the magnetic board, the apparatus on which the application is installed executes image processing. To. On the other hand, when a picture or the like to be processed is drawn on something other than the magnetic board, the apparatus suppresses execution of image processing. Thereby, when the user who wants the application to perform image processing does not have the magnetic board, there is a possibility that the magnetic board is purchased.

画像処理を行う装置またはアプリケーション(アプリケーションプログラム)が画像処理を行うか否かの判定を、例えば処理対象の絵等が描かれる面に所定のマークを付すなど、絵等が描かれる面を識別するための情報を新たに設ける必要無しに行えれば、当該情報を新たに設ける負担を避けることができる。   For determining whether or not an image processing apparatus or application (application program) performs image processing, for example, by attaching a predetermined mark to the surface on which the picture or the like to be processed is drawn, the surface on which the picture or the like is drawn is identified. If it can be done without the need to newly provide information for this, the burden of newly providing the information can be avoided.

本発明は、処理対象の絵等が描かれる面を識別するための情報を新たに設ける必要無しに、処理対象の絵等が所定の面に描かれているか否かに応じて、画像処理を行うか否かを判定することができる画像処理装置、画像処理方法及びプログラムを提供する。   The present invention performs image processing according to whether or not a picture to be processed is drawn on a predetermined face without having to newly provide information for identifying the face on which the picture or the like to be processed is drawn. Provided are an image processing apparatus, an image processing method, and a program capable of determining whether or not to perform.

本発明の第1の態様によれば、画像処理装置は、画像を取得する画像取得部と、前記画像のエッジ検出を行うエッジ検出部と、前記エッジ検出にて検出されたエッジ部分に含まれる画素の前記画像における配置が所定のパタンを満たすか否かを判定するパタン判定部と、前記パタン判定部が前記所定のパタンを満たすと判定した場合、当該パタンに対応する所定の画素を消去するノイズ除去部と、画像全体で、前記パタン判定部が、前記エッジ部分に含まれる画素の配置が所定のパタンを満たすと判定した回数を示す指標値が、所定の度合い以上に大きいことを示す場合、前記ノイズ除去部が画素を消去した画像に対してさらに画像処理を行う後段処理部と、を備える。 According to the first aspect of the present invention, an image processing apparatus is included in an image acquisition unit that acquires an image, an edge detection unit that detects an edge of the image, and an edge portion detected by the edge detection. A pattern determination unit that determines whether or not an arrangement of pixels in the image satisfies a predetermined pattern, and if the pattern determination unit determines that the predetermined pattern is satisfied, erases a predetermined pixel corresponding to the pattern When the index value indicating the number of times that the pattern determination unit determines that the arrangement of the pixels included in the edge portion satisfies a predetermined pattern is larger than a predetermined degree in the noise removal unit and the entire image A post-processing unit that further performs image processing on the image from which the noise is removed by the noise removing unit.

本発明の第2の態様によれば、画像処理装置は、画像を取得する画像取得部と、前記画像のエッジ検出を行うエッジ検出部と、前記エッジ検出にて検出されたエッジ部分に含まれる画素の前記画像における配置が所定のパタンを満たすか否かを判定するパタン判定部と、画像全体で、前記パタン判定部が、前記エッジ部分に含まれる画素の配置が所定のパタンを満たすと判定した回数を示す指標値が、所定の度合い以上に大きいことを示す場合、前記画像取得部が取得した画像に対してさらに画像処理を行う後段処理部と、を備え、前記後段処理部は、前記パタン判定部が前記所定のパタンを満たすと判定した場合、当該パタンに対応する所定の画素を消去するノイズ除去部を備える。 According to the second aspect of the present invention, the image processing apparatus is included in an image acquisition unit that acquires an image, an edge detection unit that detects an edge of the image, and an edge portion detected by the edge detection. A pattern determination unit that determines whether the arrangement of pixels in the image satisfies a predetermined pattern, and the pattern determination unit determines that the arrangement of pixels included in the edge portion satisfies a predetermined pattern in the entire image And a post-processing unit that further performs image processing on the image acquired by the image acquisition unit when the index value indicating the number of times the image processing unit indicates that the index value is greater than or equal to a predetermined degree. When the pattern determination unit determines that the predetermined pattern is satisfied, the noise determination unit includes a noise removal unit that erases a predetermined pixel corresponding to the pattern.

前記後段処理部は、前記ノイズ除去部が画素を消去した画像のうち所定の画素値の画素を周囲の画素に広げる塗り広げ処理部を備えるようにしてもよい。   The post-processing unit may include a paint spreading processing unit that spreads pixels having a predetermined pixel value to surrounding pixels in the image from which the noise removing unit has erased pixels.

前記後段処理部は、画面に表示される背景画像上に前記画像処理にて得られた画像を表示させ、当該画像処理にて得られた画像を当該背景画像上で動作させる処理を行うようにしてもよい。   The latter stage processing unit displays an image obtained by the image processing on a background image displayed on the screen, and performs a process of operating the image obtained by the image processing on the background image. May be.

前記パタン判定部は、ハニカム状の所定の模様に基づいて決められた前記所定のパタンを満たすか否かを判定するようにしてもよい。   The pattern determination unit may determine whether or not the predetermined pattern determined based on the honeycomb-shaped predetermined pattern is satisfied.

前記画像処理装置は、画像取得部が取得した前記画像をスキャンして所定の色の画素が現れる間隔の平均を求めるスキャン処理部と、前記所定の色の画素が現れる間隔の平均に基づく所定の条件が成立するか否かを判定する条件判定部と、を備え、前記エッジ検出部は、前記所定の条件が成立すると前記条件判定部が判定した場合に、前記エッジ部分を検出するようにしてもよい。   The image processing apparatus scans the image acquired by the image acquisition unit and obtains an average of intervals at which pixels of a predetermined color appear, and a predetermined processing based on an average of intervals at which the pixels of the predetermined color appear A condition determination unit that determines whether or not a condition is satisfied, and the edge detection unit detects the edge portion when the condition determination unit determines that the predetermined condition is satisfied. Also good.

前記スキャン処理部は、前記所定の色の画素の出現回数をさらに求め、前記条件判定部は、前記所定の色の画素が現れる間隔の平均、及び、前記所定の色の画素の出現回数に基づく所定の条件が成立するか否かを判定するようにしてもよい。   The scan processing unit further determines the number of appearances of the pixels of the predetermined color, and the condition determination unit is based on an average of the intervals at which the pixels of the predetermined color appear and the number of appearances of the pixels of the predetermined color You may make it determine whether a predetermined condition is materialized.

前記条件判定部は、所定のハニカム状の模様に応じて設定された前記所定の条件が成立するか否かを判定するようにしてもよい。   The condition determination unit may determine whether or not the predetermined condition set according to a predetermined honeycomb pattern is satisfied.

本発明の第3の態様によれば、画像処理方法は、画像処理装置の画像処理方法であって、画像を取得する画像取得ステップと、前記画像のうち隣接する画素との画素値の差が所定の閾値以上であるエッジ部分を検出するエッジ検出ステップと、前記エッジ部分に含まれる画素の前記画像における配置が所定のパタンを満たすか否かを判定するパタン判定ステップと、前記パタン判定ステップにて前記所定のパタンを満たすと判定した画素を消去するノイズ除去ステップと、画像全体について、前記パタン判定ステップにて、前記エッジ部分に含まれる画素の配置が所定のパタンを満たすと判定した回数を示す指標値が、前記所定のパタンを満たすと判定した度合いが所定の度合い以上に大きいことを示す場合、前記ノイズ除去ステップにて画素を消去した画像に対してさらに画像処理を行う後段処理ステップと、を含む。 According to the third aspect of the present invention, an image processing method is an image processing method of an image processing device, wherein an image acquisition step of acquiring an image and a difference in pixel value between adjacent pixels of the image is determined. An edge detection step for detecting an edge portion that is equal to or greater than a predetermined threshold, a pattern determination step for determining whether or not an arrangement of pixels included in the edge portion satisfies a predetermined pattern, and the pattern determination step. The noise removal step of erasing the pixels determined to satisfy the predetermined pattern and the number of times that the arrangement of the pixels included in the edge portion is determined to satisfy the predetermined pattern in the pattern determination step for the entire image. When the index value to be shown indicates that the degree of determination that the predetermined pattern is satisfied is greater than or equal to the predetermined degree, an image is displayed in the noise removal step. Including a post-processing step for further image processing of erased image.

本発明の第4の態様によれば、画像処理方法は、画像処理装置の画像処理方法であって、画像を取得する画像取得ステップと、前記画像のうち隣接する画素との画素値の差が所定の閾値以上であるエッジ部分を検出するエッジ検出ステップと、前記エッジ部分に含まれる画素の前記画像における配置が所定のパタンを満たすか否かを判定するパタン判定ステップと、画像全体について、前記パタン判定ステップにて、前記エッジ部分に含まれる画素の配置が所定のパタンを満たすと判定した回数を示す指標値が、前記所定のパタンを満たすと判定した度合いが所定の度合い以上に大きいことを示す場合、前記画像取得ステップにて取得した画像に対してさらに画像処理を行う後段処理ステップと、を含み、前記後段処理ステップは、前記パタン判定ステップにて前記所定のパタンを満たすと判定した画素を消去するノイズ除去ステップを含む。 According to a fourth aspect of the present invention, an image processing method is an image processing method of an image processing apparatus, wherein an image acquisition step of acquiring an image and a difference in pixel value between adjacent pixels of the image is determined. An edge detection step for detecting an edge portion that is equal to or greater than a predetermined threshold, a pattern determination step for determining whether or not an arrangement of pixels included in the edge portion satisfies a predetermined pattern, and the entire image, In the pattern determination step , the index value indicating the number of times it is determined that the arrangement of the pixels included in the edge portion satisfies the predetermined pattern is greater than a predetermined degree when the index value is determined to satisfy the predetermined pattern. A post-processing step of performing further image processing on the image acquired in the image acquisition step, and the post-processing step includes: Including noise removal step of erasing the pixel determined to satisfy the predetermined pattern in the determination step.

本発明の第5の態様によれば、プログラムは、コンピュータに、画像を取得する画像取得ステップと、前記画像のうち隣接する画素との画素値の差が所定の閾値以上であるエッジ部分を検出するエッジ検出ステップと、前記エッジ部分に含まれる画素の前記画像における配置が所定のパタンを満たすか否かを判定するパタン判定ステップと、前記パタン判定ステップにて前記所定のパタンを満たすと判定した画素を消去するノイズ除去ステップと、画像全体について、前記パタン判定ステップにて、前記エッジ部分に含まれる画素の配置が所定のパタンを満たすと判定した回数を示す指標値が、前記所定のパタンを満たすと判定した度合いが所定の度合い以上に大きいことを示す場合、前記ノイズ除去ステップにて画素を消去した画像に対してさらに画像処理を行う後段処理ステップと、を実行させるためのプログラムである。 According to the fifth aspect of the present invention, the program causes the computer to detect an image acquisition step for acquiring an image and an edge portion in which a pixel value difference between adjacent pixels in the image is equal to or greater than a predetermined threshold. An edge detection step, a pattern determination step for determining whether or not an arrangement of pixels included in the edge portion satisfies a predetermined pattern, and the pattern determination step determines that the predetermined pattern is satisfied An index value indicating the number of times that it is determined that the arrangement of the pixels included in the edge portion satisfies a predetermined pattern in the pattern determination step for the noise removal step for erasing the pixels and the entire image is the predetermined pattern. When the degree of determination as satisfying is greater than a predetermined degree, for the image in which the pixels are erased in the noise removal step Is a program for further executing the a post-processing step of performing image processing.

本発明の第6の態様によれば、プログラムは、コンピュータに、画像を取得する画像取得ステップと、前記画像のうち隣接する画素との画素値の差が所定の閾値以上であるエッジ部分を検出するエッジ検出ステップと、前記エッジ部分に含まれる画素の前記画像における配置が所定のパタンを満たすか否かを判定するパタン判定ステップと、画像全体について、前記パタン判定ステップにて、前記エッジ部分に含まれる画素の配置が所定のパタンを満たすと判定した回数を示す指標値が、前記所定のパタンを満たすと判定した度合いが所定の度合い以上に大きいことを示す場合、前記画像取得ステップにて取得した画像に対してさらに画像処理を行う後段処理ステップと、を実行させ、前記後段処理ステップでは、前記パタン判定ステップにて前記所定のパタンを満たすと判定した画素を消去するノイズ除去ステップを実行させるためのプログラムである。 According to the sixth aspect of the present invention, the program causes the computer to detect an edge portion in which a difference in pixel value between an image acquisition step of acquiring an image and an adjacent pixel in the image is a predetermined threshold value or more. an edge detection step of, disposed in the image of pixels included in the edge portion and the determining pattern determination step of determining whether or not to satisfy a predetermined pattern, for the entire image, in the pattern determination step, the edge portion When the index value indicating the number of times it is determined that the arrangement of the included pixels satisfies the predetermined pattern indicates that the degree of determination that the predetermined pattern is determined to satisfy the predetermined pattern is greater than or equal to the predetermined level, the index value is acquired in the image acquisition step. A post-processing step for performing further image processing on the processed image, and in the post-processing step, the pattern determination step Is a program for executing the noise removal step of erasing the pixels determined to satisfy the predetermined pattern.

本発明によれば、処理対象の絵等が描かれる面を識別するための情報を新たに設ける必要無しに、画像処理を行う装置は、処理対象の絵等が所定の面に描かれているか否かに応じて、画像処理を行うか否かを判定することができる。   According to the present invention, an apparatus that performs image processing does not need to newly provide information for identifying a surface on which a picture or the like to be processed is drawn. Whether or not to perform image processing can be determined depending on whether or not.

本発明の第1の実施形態における画像処理システムの機能構成を示す概略ブロック図である。It is a schematic block diagram which shows the function structure of the image processing system in the 1st Embodiment of this invention. 同実施形態における磁気ボードを表面側から見た外形の例を示す概略外形図である。It is a schematic external view which shows the example of the external shape which looked at the magnetic board in the same embodiment from the surface side. 同実施形態における表示パネルの内部構造の概略を示す説明図である。3 is an explanatory diagram illustrating an outline of an internal structure of a display panel according to the embodiment. FIG. 同実施形態における表示パネルを表面シート側から見た外観の概略例を示す説明図である。It is explanatory drawing which shows the schematic example of the external appearance which looked at the display panel in the same embodiment from the surface sheet side. 同実施形態における画像処理装置の機能構成を示す概略ブロック図である。It is a schematic block diagram which shows the function structure of the image processing apparatus in the embodiment. 同実施形態のエッジ検出部が生成するエッジ画像における画素値の例を示す説明図である。It is explanatory drawing which shows the example of the pixel value in the edge image which the edge detection part of the embodiment produces | generates. 同実施形態における磁気ボードに書かれた絵に対して画像処理装置が行う処理の手順の例を示すフローチャートである。4 is a flowchart illustrating an example of a procedure of processing performed by the image processing apparatus on a picture written on a magnetic board in the embodiment. 同実施形態における画像処理装置が撮像部の撮像画像に対して画像処理を行う手順の例を示すフローチャートである。4 is a flowchart illustrating an example of a procedure in which the image processing apparatus according to the embodiment performs image processing on a captured image of an imaging unit. 本発明の第2の実施形態における画像処理装置の機能構成を示す概略ブロック図である。It is a schematic block diagram which shows the function structure of the image processing apparatus in the 2nd Embodiment of this invention. 同実施形態のスキャン処理部によるラスタスキャンにて所定の色の画素が現れるパタンの第1の例を示す説明図である。It is explanatory drawing which shows the 1st example of the pattern in which the pixel of a predetermined color appears by the raster scan by the scan process part of the embodiment. スキャン処理部によるラスタスキャンにて所定の色の画素が現れるパタンの第2の例を示す説明図である。It is explanatory drawing which shows the 2nd example of the pattern in which the pixel of a predetermined color appears by the raster scan by a scanning process part. 同実施形態における磁気ボードに書かれた絵に対して画像処理装置が行う処理の手順の例を示すフローチャートである。4 is a flowchart illustrating an example of a procedure of processing performed by the image processing apparatus on a picture written on a magnetic board in the embodiment. 同実施形態のスキャン処理部が、撮像画像にハニカム状の模様が含まれているか否かの判定用の情報を取得する処理手順の例を示すフローチャートである。5 is a flowchart illustrating an example of a processing procedure in which the scan processing unit of the embodiment acquires information for determining whether or not a captured image includes a honeycomb pattern.

以下、本発明の実施形態を説明するが、以下の実施形態は請求の範囲にかかる発明を限定するものではない。また、実施形態の中で説明されている特徴の組み合わせの全てが発明の解決手段に必須であるとは限らない。   Hereinafter, although embodiment of this invention is described, the following embodiment does not limit the invention concerning a claim. In addition, not all the combinations of features described in the embodiments are essential for the solving means of the invention.

<第1の実施形態>
図1は、本発明の第1の実施形態における画像処理システムの機能構成を示す概略ブロック図である。同図に示すように画像処理システム1は、磁気ボード2と、画像処理装置3とを備える。
<First Embodiment>
FIG. 1 is a schematic block diagram showing a functional configuration of an image processing system according to the first embodiment of the present invention. As shown in FIG. 1, the image processing system 1 includes a magnetic board 2 and an image processing device 3.

画像処理システム1は、ユーザが磁気ボード2に書いたもの(絵又は文字など任意のものでよい)を撮像して画像処理する装置である。具体的には、ユーザが磁気ボード2用のペンで絵又は文字などを書くと、磁気ボード2がその絵又は文字などを表示する。また、画像処理装置3は撮像部を備えており、絵又は文字などを表示している磁気ボード2を撮像し、撮像画像に対して画像処理を行う。
以下では、ユーザが磁気ボード2に書いたものを絵等と表記する。
画像処理装置3は、例えばスマートフォンなどカメラ付きの情報処理装置に画像処理装置3用のアプリケーションプログラムをインストールすることで実現されていてもよい。あるいは、画像処理装置3が画像処理装置3専用の装置として構成されていてもよい。
The image processing system 1 is an apparatus that captures an image of what the user has written on the magnetic board 2 (anything such as a picture or text) may be processed. Specifically, when the user writes a picture or a character with a pen for the magnetic board 2, the magnetic board 2 displays the picture or the character. The image processing apparatus 3 includes an imaging unit, images the magnetic board 2 displaying a picture or characters, and performs image processing on the captured image.
Hereinafter, what the user writes on the magnetic board 2 is referred to as a picture or the like.
The image processing apparatus 3 may be realized by installing an application program for the image processing apparatus 3 in an information processing apparatus with a camera such as a smartphone. Alternatively, the image processing device 3 may be configured as a device dedicated to the image processing device 3.

図2は、磁気ボード2を表面側から見た外形の例を示す概略外形図である。同図に示すように磁気ボード2は、磁気ボード本体210と、黒ペン221と、赤ペン222と、スタンプ223とを備える。磁気ボード本体210は、表示パネル211と、消去用スライダー212とを備える。
表示パネル211は、磁気ボード2用のペンでユーザが書いた絵等を表示する。
FIG. 2 is a schematic external view showing an example of the external shape of the magnetic board 2 as viewed from the front side. As shown in the figure, the magnetic board 2 includes a magnetic board main body 210, a black pen 221, a red pen 222, and a stamp 223. The magnetic board main body 210 includes a display panel 211 and an erasing slider 212.
The display panel 211 displays a picture or the like written by the user with a pen for the magnetic board 2.

図3は、表示パネル211の内部構造の概略を示す説明図である。同図に示すように、表示パネル211は、表面シート231と底面シート232とを仕切り233で仕切って構成されたセル(小室)234を複数備えている。セル234の各々には白色の液体(例えば、白色の二酸化チタンが混入されたオイル)とマイクロマグネット(小さい磁石)241とが封入されている。   FIG. 3 is an explanatory diagram showing an outline of the internal structure of the display panel 211. As shown in the figure, the display panel 211 includes a plurality of cells (small chambers) 234 configured by partitioning a top sheet 231 and a bottom sheet 232 by a partition 233. Each cell 234 contains a white liquid (for example, oil mixed with white titanium dioxide) and a micro magnet (small magnet) 241.

セル234cのようにマイクロマグネット241が表面シート231から離れている状態では、ユーザが表示パネル211を表面シート231側から見ると、液体の色により白く見える。一方、セル234a及びセル234bのようにマイクロマグネット241が表面シート231に付着している状態では、ユーザが表示パネル211を表面シート231側から見ると、マイクロマグネット241の色が見える。なお、ここでいう色は、灰色または黒のように無彩色であってもよい。   In a state where the micro magnet 241 is away from the top sheet 231 as in the cell 234c, when the user views the display panel 211 from the top sheet 231 side, it looks white due to the color of the liquid. On the other hand, in the state where the micro magnet 241 is attached to the top sheet 231 as in the cell 234a and the cell 234b, when the user views the display panel 211 from the top sheet 231 side, the color of the micro magnet 241 is visible. The color referred to here may be an achromatic color such as gray or black.

マイクロマグネット241は、N極側242を黒く塗られ、S極側243を赤く塗られている。このため、セル234aのマイクロマグネット241aのように、N極側242が表面シート231に付着している状態では、ユーザが表示パネル211を表面シート231側から見ると、N極側242の色により黒く見える。一方、セル234bのマイクロマグネット241bのように、S極側243が表面シート231に付着している状態では、ユーザが表示パネル211を表面シート231側から見ると、S極側243の色により赤く見える。   The micro magnet 241 has the N pole side 242 painted black and the S pole side 243 painted red. Therefore, in a state where the N pole side 242 is attached to the top sheet 231 like the micro magnet 241a of the cell 234a, when the user views the display panel 211 from the top sheet 231 side, the color of the N pole side 242 Looks black. On the other hand, when the S pole side 243 is attached to the top sheet 231 as in the case of the micro magnet 241b of the cell 234b, when the user views the display panel 211 from the top sheet 231 side, the color is red due to the color of the S pole side 243. appear.

但し、マイクロマグネット241の色は上述した黒及び赤に限らず、いろいろな色とすることができる。例えば、マイクロマグネット241が、黒1色で塗られていてもよいし、青及び赤など黒及び赤以外の色で塗られていてもよい。
あるいは、マイクロマグネット241がセル234毎に異なる色で塗られていてもよい。例えば、複数のセル234を纏めたセル群毎に、マイクロマグネット241が異なる色で塗られていてもよい。
However, the color of the micro magnet 241 is not limited to the above-described black and red, and can be various colors. For example, the micro magnet 241 may be painted with one black color, or may be painted with a color other than black and red, such as blue and red.
Alternatively, the micro magnet 241 may be painted in a different color for each cell 234. For example, the micro magnet 241 may be painted in a different color for each cell group in which the plurality of cells 234 are collected.

図4は、表示パネル211を表面シート231側から見た外観の概略例を示す説明図である。同図に示すように、仕切り233はハニカム状になっている。すなわち、正六角形で同じ大きさの複数のセル234が並んでいる。
但し、仕切り233の形状はハニカム状に限らない。同様の形状かつ同様の大きさの複数のセルが並んでいればよい。
FIG. 4 is an explanatory diagram illustrating a schematic example of an external appearance of the display panel 211 viewed from the top sheet 231 side. As shown in the figure, the partition 233 has a honeycomb shape. That is, a plurality of cells 234 having a regular hexagon and the same size are arranged.
However, the shape of the partition 233 is not limited to the honeycomb shape. It is sufficient that a plurality of cells having the same shape and the same size are arranged.

図3を参照して説明したように、セル234のうち、N極側242が表面シート231に付着しているセル234aは、黒く見える。一方、セル234のうち、S極側243が表面シート231に付着しているセル234bは、赤く見える。また、セル234のうち、マイクロマグネット241が表面シート231から離れて位置しているセル234cは、白く見える。
一方、仕切り233は、例えば緑に見えるなど、セル234aの黒、セル234bの赤、セル234cの白のいずれとも異なる色に見える。
As described with reference to FIG. 3, among the cells 234, the cell 234 a in which the N pole side 242 is attached to the top sheet 231 looks black. On the other hand, among the cells 234, the cell 234b in which the south pole side 243 is attached to the top sheet 231 looks red. Of the cells 234, the cell 234c in which the micro magnet 241 is located away from the top sheet 231 looks white.
On the other hand, the partition 233 looks a color different from any of the black of the cell 234a, the red of the cell 234b, and the white of the cell 234c, for example, looks green.

なお、1つのセル234の一部分でのみ、マイクロマグネット241のN極側242が表面シート231に付着することがあり得る。この場合、1つのセル234の一部分が黒く見え、当該セルの残りの部分は白く見える。同様に、1つのセル234の一部分でのみ、マイクロマグネット241のS極側243が表面シート231に付着することがあり得る。この場合、1つのセル234の一部分が赤く見え、当該セルの残りの部分は白く見える。   Note that the N pole side 242 of the micro magnet 241 may adhere to the top sheet 231 only in a part of one cell 234. In this case, a part of one cell 234 looks black and the rest of the cell appears white. Similarly, the S pole side 243 of the micro magnet 241 may adhere to the top sheet 231 only in a part of one cell 234. In this case, a part of one cell 234 looks red and the rest of the cell appears white.

消去用スライダー212は、表示パネル211の表示を消すのに用いられる。具体的には、消去用スライダー212は、底面シート232の外側(底面シート232から見て表面シート231と反対側)に、図2の上下方向に設けられた棒と、当該棒に付された消去用磁石と、当該棒の端部に設けられたつまみとを備える。ユーザが、つまみを図2の左右方向に移動させることで、消去用磁石も左右方向に移動する。消去用磁石は、マイクロマグネット241を底面シート232に付着させる。これによって、ユーザが表示パネル211を表面シート231側から見た場合、セル234が白く見える。
消去用磁石は、表示パネル211の上端から下端までにわたって棒に付されており、ユーザが、つまみを可動領域の左端から右端まで移動させることで、消去用磁石が表示パネル211の全てのセル234でマイクロマグネット241を底面シートに付着させる。これにより、ユーザが表示パネル211に書いた絵等が消去される。
The erasing slider 212 is used to erase the display on the display panel 211. Specifically, the erasing slider 212 is attached to the outside of the bottom sheet 232 (on the side opposite to the top sheet 231 when viewed from the bottom sheet 232) in the vertical direction in FIG. An erasing magnet and a knob provided at the end of the rod are provided. When the user moves the knob in the left-right direction in FIG. 2, the erasing magnet also moves in the left-right direction. The erasing magnet attaches the micro magnet 241 to the bottom sheet 232. Thus, when the user views the display panel 211 from the top sheet 231 side, the cell 234 appears white.
The erasing magnet is attached to the bar from the upper end to the lower end of the display panel 211, and the user moves the knob from the left end to the right end of the movable region, so that the erasing magnet becomes all the cells 234 of the display panel 211. Then, the micro magnet 241 is attached to the bottom sheet. Thereby, the picture etc. which the user wrote on the display panel 211 are erased.

黒ペン221、赤ペン222は、いずれも磁気ボード2用のペンである。
黒ペン221には、S極側を黒ペン221の先端側にして磁石が設けられている。ユーザが、黒ペン221にて表示パネル211をなぞると、マイクロマグネット241のN極側242が表面シート231に付着する。これにより、図3を参照して説明したように、ユーザが表示パネル211を表面シート231側から見た場合、セル233が黒く見える。
The black pen 221 and the red pen 222 are both pens for the magnetic board 2.
The black pen 221 is provided with a magnet with the south pole side being the tip side of the black pen 221. When the user traces the display panel 211 with the black pen 221, the N pole side 242 of the micro magnet 241 adheres to the top sheet 231. Thereby, as described with reference to FIG. 3, when the user views the display panel 211 from the top sheet 231 side, the cell 233 looks black.

また、赤ペン222には、N極側を黒ペン221の先端側にして磁石が設けられている。ユーザが、赤ペン222にて表示パネル211をなぞると、マイクロマグネット241のS極側242が表面シート231に付着する。これにより、図3を参照して説明したように、ユーザが表示パネル211を表面シート231側から見た場合、セル233が赤く見える。   Further, the red pen 222 is provided with a magnet with the N-pole side being the tip side of the black pen 221. When the user traces the display panel 211 with the red pen 222, the south pole side 242 of the micro magnet 241 adheres to the top sheet 231. Thereby, as described with reference to FIG. 3, when the user views the display panel 211 from the top sheet 231 side, the cell 233 looks red.

スタンプ223は、黒ペン221及び赤ペン222と同様、ユーザが表示パネル211に絵などを書くのに用いられる。黒ペン221及び赤ペン222と同様、スタンプ223にも磁石が設けられており、ユーザがスタンプ223を表示パネル211に近付けると、マイクロマグネット241が表面シート231に付着する。これにより、ユーザが表示パネル211を表面シート231側から見た場合、極性に応じてセル233が黒く又は赤く見える。   The stamp 223 is used by the user to write a picture or the like on the display panel 211, similarly to the black pen 221 and the red pen 222. Like the black pen 221 and the red pen 222, the stamp 223 is also provided with a magnet. When the user brings the stamp 223 closer to the display panel 211, the micro magnet 241 adheres to the top sheet 231. Thereby, when the user views the display panel 211 from the top sheet 231 side, the cell 233 looks black or red depending on the polarity.

図5は、画像処理装置3の機能構成を示す概略ブロック図である。同図に示すように画像処理装置3は、撮像部310と、表示部320と、操作入力部330と、記憶部360と、制御部370とを備える。制御部370は、画像処理部371を備える。画像処理部371は、前段処理部380と、後段処理部390とを備える。前段処理部380は、エッジ検出部381と、パタン判定部382と、ノイズ除去部383とを備える。後段処理部390は、塗り広げ処理部391と、余白透明化処理部392と、閉領域白塗り処理部393とを備える。   FIG. 5 is a schematic block diagram illustrating a functional configuration of the image processing apparatus 3. As shown in the figure, the image processing apparatus 3 includes an imaging unit 310, a display unit 320, an operation input unit 330, a storage unit 360, and a control unit 370. The control unit 370 includes an image processing unit 371. The image processing unit 371 includes a pre-processing unit 380 and a post-processing unit 390. The pre-stage processing unit 380 includes an edge detection unit 381, a pattern determination unit 382, and a noise removal unit 383. The post-processing unit 390 includes a paint spreading processing unit 391, a margin transparency processing unit 392, and a closed region white painting processing unit 393.

撮像部310は、カメラを備えて撮像を行う。特に、撮像部310は、カメラを磁気ボード2に向けられた状態で磁気ボード2を撮像する。撮像部310は画像取得部の例に該当し、撮像により画像を取得する。なお、以下では撮像部310が動画像を撮像する場合を例に説明するが、撮像部310がユーザ操作(シャッター操作)に従って静止画像を撮像するようにしてもよい。   The imaging unit 310 includes a camera and performs imaging. In particular, the imaging unit 310 images the magnetic board 2 with the camera facing the magnetic board 2. The imaging unit 310 corresponds to an example of an image acquisition unit, and acquires an image by imaging. Hereinafter, a case where the imaging unit 310 captures a moving image will be described as an example. However, the imaging unit 310 may capture a still image according to a user operation (shutter operation).

表示部320は、例えば液晶パネル等の表示画面を有し、各種画像を表示する。特に、表示部320は、撮像部310が撮像した画像に対して画像処理部371が画像処理を行って得られた画像を表示する。
操作入力部330は、例えば、表示部320の表示画面に設けられてタッチパネルを構成するタッチセンサ、又は、テンキー及び方向ボタンなどの入力デバイスを備え、ユーザ操作を受け付ける。
The display unit 320 has a display screen such as a liquid crystal panel, and displays various images. In particular, the display unit 320 displays an image obtained by the image processing unit 371 performing image processing on the image captured by the imaging unit 310.
The operation input unit 330 includes, for example, a touch sensor that is provided on the display screen of the display unit 320 and forms a touch panel, or input devices such as a numeric keypad and direction buttons, and receives a user operation.

記憶部360は、画像処理装置3が備える記憶デバイスを含んで構成され、各種データを記憶する。
制御部370は、画像処理装置3の各部を制御して各種処理を行う。制御部370は、例えば画像処理装置3が備えるCPU(Central Processing Unit、中央処理装置)が記憶部360からプログラムを読み出して実行することで実現される。
The storage unit 360 includes a storage device included in the image processing apparatus 3 and stores various data.
The control unit 370 performs various processes by controlling each unit of the image processing apparatus 3. The control unit 370 is realized by, for example, a CPU (Central Processing Unit) provided in the image processing apparatus 3 reading out a program from the storage unit 360 and executing the program.

画像処理部371は、撮像部310が磁気ボード2を撮像した撮像画像に対して画像処理を行い、画像処理後の画像を表示部320の表示画面に表示させる。例えば、画像処理部371は、背景画像として水槽内の画像を表示部320の表示画面に表示させ、画像処理にて得られた画像を魚のように泳がせる画像を表示部320の表示画面に表示させる。これにより、画像処理装置3は、ユーザが磁気ボード2に書いた絵等画像を水槽内で泳がせる画像を表示する機能を提供する。   The image processing unit 371 performs image processing on the captured image obtained by imaging the magnetic board 2 by the imaging unit 310 and displays the image after image processing on the display screen of the display unit 320. For example, the image processing unit 371 displays an image in the aquarium as a background image on the display screen of the display unit 320, and displays an image for swimming the image obtained by the image processing like a fish on the display screen of the display unit 320. . Thereby, the image processing apparatus 3 provides a function of displaying an image of swimming an image such as a picture written on the magnetic board 2 by the user in the aquarium.

前段処理部380は、撮像部310の撮像画像から、磁気ボード2のハニカム状の模様の像を構成する画素を検出して消去し、画素の消去状況に基づいて、撮像部310の撮像画像が磁気ボード2を撮像した画像か否かを判定する。
エッジ検出部381は、撮像部310の撮像画像のうちエッジ部分を検出してエッジ画像を生成する。ここでいうエッジ部分は、当該部分の画素の画素値が隣接する画素の画素値と所定の条件以上に大きく変化している部分である。
The pre-processing unit 380 detects and erases pixels constituting the honeycomb-shaped pattern image of the magnetic board 2 from the captured image of the imaging unit 310, and the captured image of the imaging unit 310 is detected based on the erasure status of the pixels. It is determined whether the image is an image of the magnetic board 2 taken.
The edge detection unit 381 detects an edge portion of the captured image of the imaging unit 310 and generates an edge image. The edge portion referred to here is a portion where the pixel value of the pixel in the portion changes greatly from the pixel value of the adjacent pixel over a predetermined condition.

エッジ検出部381が画像のエッジ部分を検出する方法は、特定の方法に限定されない。例えば、エッジ検出部381が、ソーベルフィルタ(Sobel Filter)、ラプラシアンフィルタ(Laplacian Filter)、又は、キャニーフィルタ(Canny Filter)など、既存のエッジ検出フィルタを備えて画像のエッジ部分を検出するようにしてもよい。
また、ここでいうエッジ画像とは、元の画像の各画素を「エッジ」又は「エッジ以外」のいずれかを示す画素に置き換えた画像である。従って、エッジ画像の画素と元の画像の画素とは1対1に対応する。以下では、「エッジ」を示す画素を画素値「1」で示し、「エッジ以外」を示す画素を画素値「0」で示す。
The method by which the edge detection unit 381 detects the edge portion of the image is not limited to a specific method. For example, the edge detection unit 381 includes an existing edge detection filter such as a Sobel filter, a Laplacian filter, or a Canny filter, and detects an edge portion of the image. May be.
The edge image here is an image in which each pixel of the original image is replaced with a pixel indicating either “edge” or “other than edge”. Therefore, there is a one-to-one correspondence between the pixels of the edge image and the pixels of the original image. Hereinafter, a pixel indicating “edge” is indicated by a pixel value “1”, and a pixel indicating “other than an edge” is indicated by a pixel value “0”.

パタン判定部382は、撮像部310の撮像画像におけるエッジ部分に含まれる画素の配置が、ハニカム状の所定の模様に基づいて決められた所定のパタンを満たすか否かを判定する。ここでいうハニカム状の所定の模様に基づいて決められた所定のパタンとは、撮像部310の撮像画像における仕切り233の像によるハニカム状の模様を想定して予め決められているパタンである。以下では、ハニカム状の所定の模様に基づいて決められた所定のパタンを、ハニカム判定パタンと称する。   The pattern determination unit 382 determines whether or not the arrangement of pixels included in the edge portion in the captured image of the imaging unit 310 satisfies a predetermined pattern determined based on a predetermined honeycomb pattern. The predetermined pattern determined based on the honeycomb-shaped predetermined pattern here is a pattern determined in advance assuming a honeycomb-shaped pattern based on the image of the partition 233 in the captured image of the imaging unit 310. Hereinafter, a predetermined pattern determined based on the predetermined honeycomb pattern is referred to as a honeycomb determination pattern.

ここで、図4の例のように磁気ボード2の表示パネル211の仕切り233の太さは、セル234の幅に対して十分細い。このため、撮像部310の撮像画像が磁気ボード2を撮像した画像である場合、エッジ検出部381は、仕切り233の像全体をエッジ部分として検出する。
一方、セル234の色は、典型的には図4に示されるように1つのセル234全体で同じ色になる。図4の例では、セル234a全体が黒く見える。また、セル234b全体が赤く見え、セル234c全体が白く見える。従って、エッジ検出部381は、セル234の輪郭部分がエッジ部分として検出するが、セル234の内側についてはエッジ以外の部分と判定する。
Here, as in the example of FIG. 4, the thickness of the partition 233 of the display panel 211 of the magnetic board 2 is sufficiently narrower than the width of the cell 234. For this reason, when the captured image of the imaging unit 310 is an image of the magnetic board 2, the edge detection unit 381 detects the entire image of the partition 233 as an edge portion.
On the other hand, the color of the cell 234 typically becomes the same color in one cell 234 as shown in FIG. In the example of FIG. 4, the entire cell 234a appears black. Also, the entire cell 234b appears red and the entire cell 234c appears white. Therefore, the edge detection unit 381 detects the contour portion of the cell 234 as the edge portion, but determines that the inside of the cell 234 is a portion other than the edge.

図6は、エッジ検出部381が生成するエッジ画像における画素値の例を示す説明図である。同図では、エッジ検出部381が生成したエッジ画像の一部の画素の画素値を、撮像部310が磁気ボード2を撮像した画像の対応部分上に示している。画素P101〜P114のうち、P101、P105、P110及びP114の画素値は、エッジ部分を示す「1」になっている。それ以外の画素(P102、P103、P104、P106、P107、P108、P109、P111、P112及びP113)の画素値は、エッジ以外の部分を示す「0」になっている。   FIG. 6 is an explanatory diagram illustrating an example of pixel values in the edge image generated by the edge detection unit 381. In the figure, the pixel values of some pixels of the edge image generated by the edge detection unit 381 are shown on the corresponding part of the image obtained by the imaging unit 310 imaging the magnetic board 2. Among the pixels P101 to P114, the pixel values of P101, P105, P110, and P114 are “1” indicating an edge portion. The pixel values of the other pixels (P102, P103, P104, P106, P107, P108, P109, P111, P112, and P113) are “0” indicating portions other than the edges.

図6の例のようなエッジ部分の画素の配置に基づいて、ハニカム判定パタンの1つは、例えば「10001」のように、エッジ部分の画素とエッジ部分の画素との間に複数のエッジ以外の部分の画素が連続して出現するパタンとして設定されている。以下、このハニカム判定パタンをハニカム判定パタンAと称する。
ハニカム判定パタンAに出現するエッジ以外の部分の画素の数の上限が設定されていてもよいし、上限は任意となっていてもよい。
Based on the arrangement of the edge portion pixels as in the example of FIG. 6, one of the honeycomb determination patterns is other than a plurality of edges between the edge portion pixels and the edge portion pixels, for example, “10001”. This is set as a pattern in which the pixels in this part appear continuously. Hereinafter, this honeycomb determination pattern is referred to as a honeycomb determination pattern A.
An upper limit of the number of pixels other than the edges appearing in the honeycomb determination pattern A may be set, or the upper limit may be arbitrary.

一方、撮像部310に対する磁気ボード2を撮像する向きによっては、「001111000」のように複数のエッジ部分以外の画素と複数のエッジ部分以外の画素との間に所定数以上のエッジ部分の画素が連続して出現する。そこで、ハニカム判定パタンの1つは、複数のエッジ部分以外の画素と複数のエッジ部分以外の画素との間に所定数以上のエッジ部分の画素が連続して出現するパタンとして設定されている。以下、このハニカム判定パタンをハニカム判定パタンBと称する。   On the other hand, depending on the direction of imaging the magnetic board 2 with respect to the imaging unit 310, a predetermined number or more of edge portion pixels exist between pixels other than the plurality of edge portions and pixels other than the plurality of edge portions, such as “001111000”. Appears continuously. Accordingly, one of the honeycomb determination patterns is set as a pattern in which a predetermined number or more of edge portion pixels continuously appear between pixels other than the plurality of edge portions and pixels other than the plurality of edge portions. Hereinafter, this honeycomb determination pattern is referred to as a honeycomb determination pattern B.

パタン判定部382は、エッジ検出部381が生成したエッジ画像をラスタスキャンしてハニカム判定パタンを検出する。パタン判定部382は、設定されているハニカム判定パタンの少なくともいずれか1つを満たす(マッチする)と判定すると、ハニカム判定パタンを満たすと判定する。
ここで、エッジ画像におけるエッジ部分の画素の配置は元の画像(撮像部310の撮像画像)におけるエッジ部分の配置と同一である。従って、パタン判定部382は、撮像部310の撮像画像におけるエッジ部分に含まれる画素の配置が、ハニカム判定パタンを満たすか否かを判定しているといえる。
The pattern determination unit 382 detects the honeycomb determination pattern by raster scanning the edge image generated by the edge detection unit 381. When determining that at least one of the set honeycomb determination patterns is satisfied (matched), the pattern determination unit 382 determines that the honeycomb determination pattern is satisfied.
Here, the arrangement of the pixels in the edge portion in the edge image is the same as the arrangement of the edge portion in the original image (the captured image of the imaging unit 310). Therefore, it can be said that the pattern determination unit 382 determines whether or not the arrangement of pixels included in the edge portion in the captured image of the imaging unit 310 satisfies the honeycomb determination pattern.

ノイズ除去部383は、パタン判定部382が所定のパタンを満たすと判定した場合、当該パタンに対応する所定の画素を消去する。具体的には、ノイズ除去部383は、撮像部310の撮像画像の画素のうち、ハニカム判定パタンで画素値が1になっている画素に対応する画素を消去する。
なお、ここでいう画素の消去とは、当該画素の画素値を余白部分の画素値(例えば、白を示す画素値または透明を示す画素値)に書き換えることである。図4の例の場合、セル234cの色である白が余白部分の色に該当し、ノイズ除去部383は、消去する画素の画素値を、白を示す画素値に書き換える。
When the pattern determination unit 382 determines that the predetermined pattern is satisfied, the noise removal unit 383 erases the predetermined pixel corresponding to the pattern. Specifically, the noise removing unit 383 erases pixels corresponding to pixels having a pixel value of 1 in the honeycomb determination pattern from the pixels of the captured image of the imaging unit 310.
Note that the term “erasing a pixel” as used herein refers to rewriting the pixel value of the pixel to a pixel value of a blank portion (for example, a pixel value indicating white or a pixel value indicating transparency). In the case of the example in FIG. 4, white, which is the color of the cell 234c, corresponds to the blank portion color, and the noise removal unit 383 rewrites the pixel value of the pixel to be erased to a pixel value indicating white.

後段処理部390は、パタン判定部382がハニカム判定パタンを満たすと判定した度合いを示す指標値が、所定の度合い以上に大きいことを示す場合、ノイズ除去部383が画素を消去した画像に対してさらに画像処理を行う。当該判定は、撮像部310の撮像画像が磁気ボード2を撮像した画像か否かの判定の例に該当し、後段処理部390は、撮像部310の撮像画像が磁気ボード2を撮像した画像であると判定した場合に、当該画像に対してさらに画像処理を行う。
ここで、パタン判定部382がハニカム判定パタンを満たすと判定した度合いを示す指標値は、例えば、パタン判定部382は、エッジ画像全体でハニカム判定パタンを検出した回数であってもよいし、ノイズ除去部383が消去した画素の数であってもよい。
When the index value indicating the degree that the pattern determination unit 382 determines that the honeycomb determination pattern is satisfied is greater than a predetermined level, the post-processing unit 390 performs processing on the image from which the noise removal unit 383 has erased the pixels. Further image processing is performed. The determination corresponds to an example of determining whether the captured image of the imaging unit 310 is an image of the magnetic board 2, and the post-processing unit 390 is an image of the magnetic board 2 captured by the imaging unit 310. If it is determined that there is, image processing is further performed on the image.
Here, the index value indicating the degree of determination that the pattern determination unit 382 satisfies the honeycomb determination pattern may be, for example, the number of times the pattern determination unit 382 detects the honeycomb determination pattern in the entire edge image, or noise. The number of pixels erased by the removal unit 383 may be used.

塗り広げ処理部391は、ノイズ除去部383が画素を消去した画像のうち所定の画素値の画素の色を周囲の画素に広げる。具体的には、塗り広げ処理部391は、広げる元の画素の画素値を広げる先の画素に書き込む。以下では、塗り広げ処理部391が行う当該処理を塗り広げ処理と称する。塗り広げ処理によって塗り広げ処理部391は、撮像部310の撮像画像からノイズ除去部383が画素を消去して生じた隙間を埋める。   The paint spreading processing unit 391 spreads the color of a pixel having a predetermined pixel value in the image from which the noise removing unit 383 has erased the pixel to surrounding pixels. Specifically, the paint spread processing unit 391 writes the pixel value of the original pixel to be spread to the destination pixel. Hereinafter, the process performed by the paint spreading process unit 391 is referred to as a paint spreading process. By the paint spreading process, the paint spreading processing unit 391 fills a gap generated when the noise removing unit 383 erases pixels from the captured image of the imaging unit 310.

ノイズ除去部383がエッジ部分の画素を消去した画像では、消去されたエッジ部分が隙間となっている。これに対して、塗り広げ処理部391が塗り広げ処理を行うことで、隙間を埋めることができる。特に、ユーザが磁気ボード2に書いた線が仕切り233の部分では途切れて隙間が生じていたのに対し、塗り広げ処理部391が塗り広げ処理を行うことで、隙間のない線の像を得られる。これにより、ユーザが線で囲った閉領域を検出し易くなり、例えば、画像処理部371が、当該閉領域を塗りつぶす処理を行うことができる。   In the image in which the noise removal unit 383 erases the pixels of the edge portion, the erased edge portion is a gap. On the other hand, the paint spread processing unit 391 performs the paint spread process, so that the gap can be filled. In particular, the line written by the user on the magnetic board 2 is interrupted at the partition 233 and a gap is generated. On the other hand, the spreading process unit 391 performs a spreading process to obtain an image of a line without a gap. It is done. This makes it easy for the user to detect a closed region surrounded by a line, and for example, the image processing unit 371 can perform a process of filling the closed region.

余白透明化処理部392は、塗り広げ処理部391が塗り広げ処理を行った画像に対して余白を透明化する処理を行う。具体的には、余白透明化処理部392は、塗り広げ処理部391が塗り広げ処理を行った画像のうち、閉領域の部分及び塗り潰されている部分を除いた部分を余白部分として、当該余白部分の色を透明に設定する(すなわち、余白部分の画素値を、透明を示す画素値に書き換える)。   The margin transparency processing unit 392 performs processing for transparentizing the margin on the image that has been subjected to the spreading process by the spreading process unit 391. Specifically, the margin transparency processing unit 392 uses, as a margin part, a portion excluding the closed region portion and the filled portion in the image subjected to the spreading processing by the spreading processing unit 391. The color of the part is set to be transparent (that is, the pixel value of the margin part is rewritten to a pixel value indicating transparency).

閉領域白塗り処理部393は、余白透明化処理部392が余白を透明化した画像に対して閉領域の部分を白塗りする処理を行う。具体的には、閉領域白塗り処理部393は、閉領域の部分を検出し、検出した閉領域の部分のうち黒の部分と赤の部分とを除いた部分の色を白にする。
以上の処理により、後段処理部390は、撮像部310の撮像画像から余白部分を消去して、ユーザが磁気ボード2に描いた絵の像の部分を抽出する。例えば、ユーザが磁気ボード2に魚の絵を描いた場合、後段処理部390は、撮像部310の撮像画像から余白部分を消去して、魚の絵の部分を抽出する。
The closed region whitening processing unit 393 performs a process of whitening a portion of the closed region on the image in which the margin transparency processing unit 392 has made the margins transparent. Specifically, the closed region whitening processing unit 393 detects the portion of the closed region, and sets the color of the portion of the detected closed region portion excluding the black portion and the red portion to white.
Through the above processing, the post-processing unit 390 erases the blank portion from the captured image of the imaging unit 310 and extracts the portion of the picture drawn on the magnetic board 2 by the user. For example, when the user draws a fish picture on the magnetic board 2, the post-processing unit 390 erases the blank part from the captured image of the imaging unit 310 and extracts the fish picture part.

なお、後段処理部390が、ノイズ除去部383を含んで構成されていてもよい。従って、後段処理部390が行う画像処理に、ノイズ除去部383が行う処理が含まれていてもよい。   Note that the post-processing unit 390 may include the noise removing unit 383. Therefore, the image processing performed by the post-processing unit 390 may include processing performed by the noise removing unit 383.

次に、図7〜図8を参照して画像処理装置3の動作について説明する。
図7は、磁気ボード2に書かれた絵に対して画像処理装置3が行う処理の手順の例を示すフローチャートである。画像処理装置3は、例えば処理開始を指示するユーザ操作に従って図7の処理を開始する。
図7の処理にて、画像処理装置3は、撮像部310の撮像画像に対して画像処理を行う(ステップS101)。
Next, the operation of the image processing apparatus 3 will be described with reference to FIGS.
FIG. 7 is a flowchart illustrating an example of a procedure of processing performed by the image processing apparatus 3 on a picture written on the magnetic board 2. For example, the image processing apparatus 3 starts the process of FIG.
In the process of FIG. 7, the image processing apparatus 3 performs image processing on the captured image of the imaging unit 310 (step S101).

図8は、画像処理装置3が撮像部310の撮像画像に対して画像処理を行う手順の例を示すフローチャートである。画像処理装置3は、図7のステップS101にて図8の処理を行う。
図8の処理にて撮像部310は撮像画像を取得する(ステップS201)。例えば撮像部310は動画像を撮像しており、動画像の1フレームとしての撮像画像を取得する。
FIG. 8 is a flowchart illustrating an example of a procedure in which the image processing device 3 performs image processing on a captured image of the imaging unit 310. The image processing apparatus 3 performs the process of FIG. 8 in step S101 of FIG.
In the process of FIG. 8, the imaging unit 310 acquires a captured image (step S201). For example, the imaging unit 310 captures a moving image and acquires a captured image as one frame of the moving image.

次に、画像処理部371は、撮像部310の撮像画像に、表示パネル211の表面シート231による反射光が写り込んでいるか否かを判定する(ステップS202)。撮像画像に反射光が写り込んでいる場合、得られる画像の質が低下してしまうからである。画像処理部371は、例えば、撮像画像全体で輝度の平均値を求め、得られた平均値が所定の閾値よりも大きい場合に、反射光が写り込んでいると判定する。   Next, the image processing unit 371 determines whether or not the reflected light from the surface sheet 231 of the display panel 211 is reflected in the captured image of the imaging unit 310 (step S202). This is because when the reflected light is reflected in the captured image, the quality of the obtained image is deteriorated. For example, the image processing unit 371 calculates an average luminance value for the entire captured image, and determines that reflected light is reflected when the obtained average value is larger than a predetermined threshold value.

反射光が写り込んでいると判定した場合(ステップS202:YES)、ステップS201へ戻る。
一方、反射光が写り込んでいないと判定した場合(ステップS202:NO)、エッジ検出部381は、撮像部310の撮像画像のうちエッジ部分を検出してエッジ画像を生成する(ステップS211)。エッジ検出部381が生成したエッジ画像は、仕切り233の像によるハニカム状の模様の検出に用いられる。一方、当該エッジ画像の元の画像である撮像部310の撮像画像は、画像処理部371が画像処理を行う対象の画像となる。
When it is determined that the reflected light is reflected (step S202: YES), the process returns to step S201.
On the other hand, when it is determined that the reflected light is not reflected (step S202: NO), the edge detection unit 381 detects an edge portion of the captured image of the imaging unit 310 and generates an edge image (step S211). The edge image generated by the edge detection unit 381 is used for detection of a honeycomb-like pattern from the image of the partition 233. On the other hand, the captured image of the imaging unit 310 that is the original image of the edge image is an image to be processed by the image processing unit 371.

次に、パタン判定部382は、ハニカム判定パタンの検出回数を数えるカウンタの値をゼロ(0)に設定(リセット)する(ステップS212)。
そして、パタン判定部382は、エッジ検出部381が生成したエッジ画像をラスタスキャンするループL11の処理を開始する(ステップS221)。
ループL11の処理では、パタン判定部382は、ラスタスキャンで直近にスキャンした1つ以上の画素で構成される画素列がハニカム判定パタンのいずれかを満たす(マッチする)か否かを判定する(ステップS222)。具体的には、ハニカム判定パタンに含まれる画素の数がn個(nは正整数)である場合、パタン判定部382は、ラスタスキャンで直近にスキャンしたn個の画素を時間順に並べた画素列が、当該ハニカム判定パタンを満たすか否かを判定する。
Next, the pattern determination unit 382 sets (resets) the value of the counter that counts the number of detections of the honeycomb determination pattern to zero (0) (step S212).
Then, the pattern determination unit 382 starts a loop L11 process for raster scanning the edge image generated by the edge detection unit 381 (step S221).
In the processing of the loop L11, the pattern determination unit 382 determines whether or not a pixel row composed of one or more pixels most recently scanned by raster scanning satisfies (matches) any of the honeycomb determination patterns ( Step S222). Specifically, when the number of pixels included in the honeycomb determination pattern is n (n is a positive integer), the pattern determination unit 382 is a pixel in which n pixels most recently scanned by raster scanning are arranged in time order. It is determined whether the row satisfies the honeycomb determination pattern.

いずれかのハニカム判定パタンが満たされる(すなわち、上記の画素列のうちいずれかのハニカム判定パタンを満たすものが存在する)と判定した場合(ステップS222:YES)、ノイズ除去部383は、撮像部310の撮像画像から画素を消去する(ステップS231)。
具体的には、ノイズ除去部383は、ステップS222でハニカム判定パタンを満たすと判定された画素列をエッジ画像上で検出し、当該画素列のうち、ハニカム判定パタンの「1」の画素に対応する画素(従って、エッジ部分と判定された画素)を検出する。そして、ノイズ除去部383は、エッジ画像上で検出した画素に対応する撮像画像上の画素を特定し、特定した画素を消去する。
When it is determined that any one of the honeycomb determination patterns is satisfied (that is, there is a pixel determination pattern satisfying any of the above-described pixel determination patterns) (step S222: YES), the noise removing unit 383 includes the imaging unit. Pixels are erased from the captured image 310 (step S231).
Specifically, the noise removing unit 383 detects, on the edge image, the pixel row determined to satisfy the honeycomb determination pattern in step S222, and corresponds to the pixel “1” of the honeycomb determination pattern in the pixel row. Pixels to be detected (thus, pixels determined to be edge portions) are detected. Then, the noise removing unit 383 specifies a pixel on the captured image corresponding to the pixel detected on the edge image, and erases the specified pixel.

また、パタン判定部382は、ハニカム判定パタンの検出回数をカウントアップする(ステップS232)。具体的には、パタン判定部382は、ハニカム判定パタンに検出回数を数えるカウンタの値に1を加算する。
次に、パタン判定部382は、ループL11の終端処理を行う(ステップS233)。具体的には、パタン判定部382は、エッジ検出部381が生成したエッジ画像の全ての画素についてループL11の処理を行ったか否かを判定する。未処理の画素があると判定した場合、ステップS221へ戻り、ラスタスキャンしていない画素について引き続きループL11の処理を行う。一方、全ての画素についてループL11の処理を行ったと判定した場合は、ループL11を終了する。
In addition, the pattern determination unit 382 counts up the number of times the honeycomb determination pattern is detected (step S232). Specifically, the pattern determination unit 382 adds 1 to the value of the counter that counts the number of times of detection in the honeycomb determination pattern.
Next, the pattern determination unit 382 performs a termination process of the loop L11 (step S233). Specifically, the pattern determination unit 382 determines whether or not the processing of the loop L11 has been performed for all the pixels of the edge image generated by the edge detection unit 381. If it is determined that there is an unprocessed pixel, the process returns to step S221, and the process of loop L11 is continued for the pixel that has not been raster scanned. On the other hand, when it is determined that the processing of the loop L11 has been performed for all the pixels, the loop L11 is terminated.

ステップS233でループL11を終了した場合、パタン判定部382は、ハニカム判定パタンの検出回数が所定の閾値以上か否かを判定する(ステップS241)。具体的には、パタン判定部382は、ハニカム判定パタンの検出回数を数えるカウンタの値が閾値以上か否かを判定する。
当該判定は、撮像部310の撮像画像が磁気ボード2を撮像した画像であるか否かの判定の例に該当する。なお、ステップS241における閾値は、例えば、画像処理装置3の設計者が実験にて予め定めておく。
When the loop L11 is terminated in step S233, the pattern determination unit 382 determines whether or not the number of detections of the honeycomb determination pattern is equal to or greater than a predetermined threshold (step S241). Specifically, the pattern determination unit 382 determines whether or not the value of the counter that counts the number of times the honeycomb determination pattern is detected is greater than or equal to a threshold value.
This determination corresponds to an example of determining whether or not the captured image of the imaging unit 310 is an image obtained by capturing the magnetic board 2. Note that the threshold value in step S241 is set in advance by an experiment by the designer of the image processing apparatus 3, for example.

ハニカム判定パタンの検出回数が所定の閾値未満であったと判定した場合(ステップS241:NO)、ステップS201へ戻る。この場合、撮像部310の撮像画像が磁気ボード2を撮像した画像ではない可能性が高いため、画像処理装置3は図8の処理をやり直す。
一方、ハニカム判定パタンの検出回数が所定の閾値以上であったと判定した場合(ステップS241:YES)、撮像部310の撮像画像からノイズ除去部383が画素を消去した画像に対して後段処理部390が更に画像処理を行う。
When it is determined that the number of detections of the honeycomb determination pattern is less than the predetermined threshold (step S241: NO), the process returns to step S201. In this case, there is a high possibility that the image picked up by the image pickup unit 310 is not an image obtained by picking up the magnetic board 2, so the image processing device 3 redoes the process of FIG.
On the other hand, when it is determined that the number of detections of the honeycomb determination pattern is equal to or greater than a predetermined threshold (step S241: YES), a post-processing unit 390 is performed on an image obtained by erasing pixels from the captured image of the imaging unit 310. Performs further image processing.

具体的には、塗り広げ処理部391が、ノイズ除去部383が画素を消去した画像に対して塗り広げ処理を行う(ステップS251)。すなわち、塗り広げ処理部391は、ノイズ除去部383が画素を消去した画像のうち所定の画素値の画素を検出し、検出した画素の画素値を所定の範囲で周囲の画素に書き込む。塗り広げ処理部391が仕切り233の幅以上に色を塗り広げる処理を行うことで、ノイズ除去部383が行った画素の消去にて生じた隙間を埋めることができる。特に、ユーザが磁気ボード2に書いた線が仕切り233の部分では途切れて隙間が生じていたのに対し、塗り広げ処理部391が塗り広げ処理を行うことで、隙間のない線の像を得られる。   Specifically, the paint spreading process unit 391 performs a paint spreading process on the image from which the noise removing unit 383 has erased pixels (step S251). That is, the paint spreading processing unit 391 detects a pixel having a predetermined pixel value in the image from which the noise removing unit 383 has erased the pixel, and writes the pixel value of the detected pixel to surrounding pixels within a predetermined range. By performing the process of spreading the color beyond the width of the partition 233 by the paint spreading processing unit 391, the gap generated by the pixel erasing performed by the noise removing unit 383 can be filled. In particular, the line written by the user on the magnetic board 2 is interrupted at the partition 233 and a gap is generated. On the other hand, the spreading process unit 391 performs a spreading process to obtain an image of a line without a gap. It is done.

次に、余白透明化処理部392は、塗り広げ処理部391が塗り広げ処理を行った画像に対して余白を透明化する処理を行う(ステップS252)。具体的には、余白透明化処理部392は、塗り広げ処理部391が塗り広げ処理を行った画像のうち、閉領域の部分及び塗り潰されている部分を除いた部分を余白部分として検出し、検出した余白部分の色を透明に設定する。
また、閉領域白塗り処理部393は、余白透明化処理部392が余白を透明化した画像に対して閉領域の部分を白塗りする処理を行う(ステップS253)。具体的には、閉領域白塗り処理部393は、閉領域の部分を検出し、検出した閉領域の部分のうち黒の部分と赤の部分とを除いた部分の色を白にする。
ステップS253の後、図8の処理を終了して図7の処理へ戻る。
一方、ステップS222で全てのハニカム判定パタンが満たされないと判定した場合(ステップS222:NO)、ステップS233へ遷移する。
Next, the margin transparency processing unit 392 performs processing for transparentizing the margin on the image that has been subjected to the spreading process by the spreading process unit 391 (step S252). Specifically, the margin transparency processing unit 392 detects, as a margin part, a portion excluding the closed region part and the filled part from the image subjected to the paint spreading process by the paint spreading process unit 391. Set the detected margin color to transparent.
In addition, the closed region whitening processing unit 393 performs a process of whitening the portion of the closed region on the image in which the margin transparency processing unit 392 has made the margins transparent (step S253). Specifically, the closed region whitening processing unit 393 detects the portion of the closed region, and sets the color of the portion of the detected closed region portion excluding the black portion and the red portion to white.
After step S253, the process of FIG. 8 is terminated and the process returns to the process of FIG.
On the other hand, when it is determined in step S222 that all the honeycomb determination patterns are not satisfied (step S222: NO), the process proceeds to step S233.

図8のステップS101の後、制御部370は、ステップS101で得られた画像を表示部320の表示画面に表示させる(ステップS102)。
そして、制御部370は、表示部320が表示している画像を選択するユーザ操作が行われたか否かを判定する(ステップS103)。
表示部320が表示している画像を選択するユーザ操作が行われていないと判定した場合(ステップS103:NO)、ステップS101へ戻る。
After step S101 in FIG. 8, the control unit 370 displays the image obtained in step S101 on the display screen of the display unit 320 (step S102).
Then, the control unit 370 determines whether or not a user operation for selecting an image displayed on the display unit 320 has been performed (step S103).
When it is determined that the user operation for selecting the image displayed on the display unit 320 has not been performed (step S103: NO), the process returns to step S101.

一方、表示部320が表示している画像を選択するユーザ操作が行われたと判定した場合(ステップS103:YES)、制御部370は、操作入力部330が受け付けるユーザ操作に応じた分岐を行う(ステップS111)。
操作入力部330が画像取得のやり直しを指示するユーザ操作を受けた場合(ステップS111:やり直し)、ステップS101へ戻る。
一方、操作入力部330が画像の保存を指示するユーザ操作を受けた場合(ステップS111:保存)、制御部370は、得られた画像を記憶部360に記憶させる(ステップS121)。
On the other hand, when it is determined that a user operation for selecting an image displayed on the display unit 320 has been performed (step S103: YES), the control unit 370 performs a branch according to the user operation received by the operation input unit 330 ( Step S111).
When the operation input unit 330 receives a user operation for instructing redo of image acquisition (step S111: redo), the process returns to step S101.
On the other hand, when the operation input unit 330 receives a user operation for instructing saving of an image (step S111: save), the control unit 370 stores the obtained image in the storage unit 360 (step S121).

そして、後段処理部390は、所定のアプリケーションプログラムを実行し、ステップS101で得られた画像を当該アプリケーションプログラムに適用する(ステップS122)。例えば、後段処理部390は、入力画像を水槽内で魚のように泳がせるアプリケーションプログラムを実行し、ステップS101で得られた画像を当該アプリケーションプログラムに適用する。これにより、画像処理装置3は、ユーザが磁気ボード2に描いた絵等にノイズ除去等の画像処理を行って水槽内で泳がせる画像を表示する機能を提供する。   Then, the post-processing unit 390 executes a predetermined application program and applies the image obtained in step S101 to the application program (step S122). For example, the post-processing unit 390 executes an application program that causes the input image to swim like a fish in the aquarium, and applies the image obtained in step S101 to the application program. Thereby, the image processing apparatus 3 provides a function of displaying an image for swimming in the water tank by performing image processing such as noise removal on a picture or the like drawn on the magnetic board 2 by the user.

この、ユーザが磁気ボード2に描いた絵等を水槽内で泳がせる処理は、画面に表示される背景画像上に画像処理にて得られた画像を表示させ、当該画像処理にて得られた画像を当該背景画像上で動作させる処理の例に該当する。水槽の画像は、背景画像の例に該当する。また、ユーザが磁気ボード2に描いた絵等にノイズ処理等の画像処理を行った画像は、画像処理にて得られた画像の例に該当する。
ステップS122の後、図7の処理を終了する。
一方、操作入力部330が、アプリケーションプログラムへの画像の適用を指示するユーザ操作を受けた場合(ステップS111:アプリ適用)、ステップS122へ遷移する。
The process of swimming a picture or the like drawn on the magnetic board 2 by the user in the aquarium is to display the image obtained by the image processing on the background image displayed on the screen, and to obtain the image obtained by the image processing. Corresponds to an example of a process of operating on the background image. The aquarium image corresponds to an example of a background image. An image obtained by performing image processing such as noise processing on a picture or the like drawn on the magnetic board 2 by the user corresponds to an example of an image obtained by image processing.
After step S122, the process of FIG. 7 ends.
On the other hand, when the operation input unit 330 receives a user operation instructing application of an image to an application program (step S111: application application), the process proceeds to step S122.

なお、後段処理部390が、ノイズ除去部383を含んで構成されている場合、ノイズ除去部383は、パタン判定部382がステップS233でループL11の処理を終了した後に、ステップS231の処理を行う。例えば、ノイズ除去部383がループL11と同様のループを実行し、当該ループ内でステップS231の処理を行うようにしてもよい。あるいは、ノイズ除去部383が、消去すべき画素をループL11の実行時に記憶しておき、ループL11の終了後に画素の消去を実行するようにしてもよい。   When the post-processing unit 390 includes the noise removing unit 383, the noise removing unit 383 performs the process of step S231 after the pattern determining unit 382 finishes the process of the loop L11 in step S233. . For example, the noise removing unit 383 may execute a loop similar to the loop L11 and perform the process of step S231 in the loop. Alternatively, the noise removing unit 383 may store the pixel to be erased at the time of executing the loop L11 and execute the erase of the pixel after the loop L11 is completed.

以上のように、パタン判定部382は、撮像部310の撮像画像からエッジ検出部381が検出したエッジ部分に含まれる画素の当該撮像画像における配置が所定のパタン(ハニカム判定パタン)を満たすか否かを判定する。また、ノイズ除去部383は、パタン判定部382が所定のパタンを満たすと判定した場合、撮像部310の撮像画像のうち当該パタンに対応する所定の画素を消去する。
また、パタン判定部382は、所定のパタンを満たすと判定した度合いを示す指標値が、所定の度合い以上に大きいことを示しているか否かを判定する。パタン判定部382が、所定のパタンを満たすと判定した度合いを示す指標値が、所定の度合い以上に大きいことを示していると判定した場合、後段処理部390は、ノイズ除去部383が画素を消去した画像に対してさらに画像処理を行う。
As described above, the pattern determination unit 382 determines whether or not the arrangement of the pixels included in the edge portion detected by the edge detection unit 381 from the captured image of the imaging unit 310 in the captured image satisfies a predetermined pattern (honeycomb determination pattern). Determine whether. In addition, when the pattern determination unit 382 determines that the predetermined pattern is satisfied, the noise removal unit 383 erases a predetermined pixel corresponding to the pattern from the captured image of the imaging unit 310.
Further, the pattern determination unit 382 determines whether or not the index value indicating the degree of determination that the predetermined pattern is satisfied is greater than or equal to the predetermined degree. When it is determined that the index value indicating the degree that the pattern determination unit 382 determines that the predetermined pattern is satisfied indicates that the index value is greater than or equal to the predetermined level, the post-processing unit 390 causes the noise removal unit 383 to detect the pixel. Further image processing is performed on the erased image.

このように、パタン判定部382は、磁気ボードのハニカム状の模様のように、ノイズ除去部383が消去対象としている模様の出現を示すパタンを検出する。そして、後段処理部390は、パタン判定部382による当該パタンの検出状況に応じて、画像処理を行うか否かを判定する。
従って、絵等が描かれる面にノイズとして消去される模様がある場合、後段処理部390は、画像処理を行うか否かの判定を、パタン判定部382による当該模様の検出度合いに基づいて行うことができる。従って、処理対象の絵等が描かれる面を識別するための情報を新たに設ける必要がない。
As described above, the pattern determination unit 382 detects a pattern indicating the appearance of a pattern to be erased by the noise removing unit 383, such as a honeycomb pattern on the magnetic board. Then, the post-processing unit 390 determines whether or not to perform image processing according to the detection status of the pattern by the pattern determination unit 382.
Therefore, when there is a pattern to be erased as noise on the surface on which a picture or the like is drawn, the post-processing unit 390 determines whether or not to perform image processing based on the degree of detection of the pattern by the pattern determination unit 382. be able to. Therefore, it is not necessary to newly provide information for identifying the surface on which the picture to be processed is drawn.

また、後段処理部390の塗り広げ処理部391は、ノイズ除去部383が画素を消去した画像のうち所定の画素値の画素を周囲の画素に広げる。これにより、塗り広げ処理部391は、ノイズ除去部383が行った画素の消去にて生じた隙間を埋めることができる。
また、後段処理部390は、表示部320画面に表示される背景画像上に、後段処理部390の画像処理にて得られた画像を表示させ、当該画像処理にて得られた画像を当該背景画像上で動作させる。これにより、画像処理装置3は、ユーザが描いた絵等を水槽内で泳がせる機能など、ユーザが描いた絵等を動作させる娯楽機能を提供することができる。
In addition, the spread processing unit 391 of the post-processing unit 390 expands pixels having a predetermined pixel value to surrounding pixels in the image from which the noise removing unit 383 has erased the pixels. As a result, the paint spreading processing unit 391 can fill a gap generated by erasing pixels performed by the noise removing unit 383.
Further, the post-processing unit 390 displays an image obtained by the image processing of the post-processing unit 390 on the background image displayed on the display unit 320 screen, and displays the image obtained by the image processing as the background image. Operate on the image. Thereby, the image processing apparatus 3 can provide an entertainment function for operating the picture drawn by the user, such as a function of swimming the picture drawn by the user in the aquarium.

また、パタン判定部382は、ハニカム状の所定の模様に基づいて決められた所定のパタンを満たすか否かを判定する。これにより、パタン判定部382は、これにより、パタン判定部382は、撮像部310の撮像画像にて当該パタンを満たす画素(画素の並び)を検出するという簡単な処理で、当該ハニカム状の所定の模様が撮像画像に含まれているか否かを判定することができる。   The pattern determination unit 382 determines whether or not a predetermined pattern determined based on the honeycomb-shaped predetermined pattern is satisfied. As a result, the pattern determination unit 382 allows the pattern determination unit 382 to detect the pixels (array of pixels) satisfying the pattern in the captured image of the imaging unit 310 with a predetermined process of the honeycomb shape. It can be determined whether or not the pattern is included in the captured image.

<第2の実施形態>
図9は、本発明の第2の実施形態における画像処理装置の機能構成を示す概略ブロック図である。同図に示すように画像処理装置4は、撮像部310と、表示部320と、操作入力部330と、記憶部360と、制御部470とを備える。制御部470は、スキャン処理部471と条件判定部472と画像処理部371を備える。画像処理部371は、前段処理部380と、後段処理部390とを備える。前段処理部380は、エッジ検出部381と、パタン判定部382と、ノイズ除去部383とを備える。後段処理部390は、塗り広げ処理部391と、余白透明化処理部392と、閉領域白塗り処理部393とを備える。
<Second Embodiment>
FIG. 9 is a schematic block diagram showing a functional configuration of the image processing apparatus according to the second embodiment of the present invention. As shown in the figure, the image processing apparatus 4 includes an imaging unit 310, a display unit 320, an operation input unit 330, a storage unit 360, and a control unit 470. The control unit 470 includes a scan processing unit 471, a condition determination unit 472, and an image processing unit 371. The image processing unit 371 includes a pre-processing unit 380 and a post-processing unit 390. The pre-stage processing unit 380 includes an edge detection unit 381, a pattern determination unit 382, and a noise removal unit 383. The post-processing unit 390 includes a paint spreading processing unit 391, a margin transparency processing unit 392, and a closed region white painting processing unit 393.

図9の各部のうち図5の各部に対応して同様の機能を示す部分には同一の符号(310、320、330、360、371、380〜383、390〜393)を付して説明を省略する。
画像処理装置4は、スキャン処理部471と条件判定部472とを備えて撮像部310の撮像画像が磁気ボード2を撮像した画像か否かをさらに判定する点で、画像処理装置3(図5)と異なる。それ以外は、第1の実施形態の場合と同様である。
9, the same reference numerals (310, 320, 330, 360, 371, 380 to 383, 390 to 393) are attached to the portions showing the same functions corresponding to the respective portions in FIG. Omitted.
The image processing apparatus 4 includes a scan processing unit 471 and a condition determination unit 472, and further determines whether or not the image captured by the image capturing unit 310 is an image obtained by capturing the magnetic board 2 (see FIG. 5). ) Is different. The rest is the same as in the case of the first embodiment.

スキャン処理部471は、撮像部310が撮像した画像をラスタスキャンして、所定の色の画素が現れる間隔の平均、及び、当該所定の色の画素の出現回数を求める。スキャン処理部471が求めた情報は、撮像部310の撮像画像が磁気ボード2を撮像した画像か否かを条件判定部472が判定するのに用いられる。
条件判定部472は、スキャン処理部471が求めた情報が所定の条件を満たすか否かを判定する。これにより、条件判定部472は、撮像部310の撮像画像が磁気ボード2を撮像した画像か否かを判定する。
The scan processing unit 471 raster scans the image captured by the image capturing unit 310, and obtains the average interval at which pixels of a predetermined color appear and the number of appearances of the pixel of the predetermined color. The information obtained by the scan processing unit 471 is used by the condition determining unit 472 to determine whether the image captured by the image capturing unit 310 is an image captured from the magnetic board 2.
The condition determination unit 472 determines whether the information obtained by the scan processing unit 471 satisfies a predetermined condition. Accordingly, the condition determination unit 472 determines whether or not the captured image of the imaging unit 310 is an image obtained by capturing the magnetic board 2.

ここで、図10及び図11を参照してスキャン処理部471及び条件判定部472が行う処理について説明する。
図10は、スキャン処理部471によるラスタスキャンにて所定の色の画素が現れるパタンの第1の例を示す説明図である。同図では、撮像部310が撮像した画像の画素毎に、仕切り233の色の画素を「1」で示し、それ以外の色の画素を「0」で示している。以下では、図10に例示される、スキャン処理部471によるラスタスキャンにて所定の色の画素が現れるパタンを示すデータを、スキャン結果データと称する。仕切り233の色の画素は、所定の色の画素に例に該当する。
Here, processing performed by the scan processing unit 471 and the condition determining unit 472 will be described with reference to FIGS. 10 and 11.
FIG. 10 is an explanatory diagram illustrating a first example of a pattern in which pixels of a predetermined color appear in a raster scan by the scan processing unit 471. In the figure, for each pixel of the image captured by the imaging unit 310, the color pixel of the partition 233 is indicated by “1”, and the other color pixels are indicated by “0”. Hereinafter, data indicating a pattern in which a pixel of a predetermined color appears in a raster scan by the scan processing unit 471 illustrated in FIG. 10 is referred to as scan result data. The pixel of the color of the partition 233 corresponds to an example of a pixel of a predetermined color.

図10は、撮像部310が磁気ボード2を撮像した画像の画素うち1つの走査線の一部に対応するスキャン結果データを、撮像画像の対応部分上に示している。スキャン結果データD101〜D114のうち、D101、D105、D109、D110及びD114の値は、仕切り233の色の画素を示す「1」になっている。それ以外のスキャン結果データ(D102、D103、D104、D106、D107、D108、D111、D112及びD113)の値は、仕切り233以外の色の画素を示す「0」になっている。黒いセル234a、赤いセル234b、白いセル234cのいずれに対応する画素でも、スキャン結果データの値は「0」になっている。   FIG. 10 shows scan result data corresponding to a part of one scanning line among pixels of an image captured by the imaging unit 310 on the magnetic board 2 on a corresponding part of the captured image. Among the scan result data D101 to D114, the values of D101, D105, D109, D110, and D114 are “1” indicating the color pixel of the partition 233. The values of the other scan result data (D102, D103, D104, D106, D107, D108, D111, D112, and D113) are “0” indicating pixels of colors other than the partition 233. In the pixels corresponding to any of the black cell 234a, the red cell 234b, and the white cell 234c, the value of the scan result data is “0”.

スキャン処理部471は、仕切り233の色の画素の数として、値が「1」のスキャン結果データの数を計数する。具体的には、スキャン処理部471は当該計数用のカウンタを備え、スキャン結果データD101、D105、D109、D110及びD114に対応してカウンタ値を1増加(インクリメント)させる。スキャン処理部471は、当該計数を、スキャンデータ全体について行う。   The scan processing unit 471 counts the number of scan result data having a value “1” as the number of pixels of the color of the partition 233. Specifically, the scan processing unit 471 includes a counter for counting, and increments the counter value by 1 corresponding to the scan result data D101, D105, D109, D110, and D114. The scan processing unit 471 performs the count for the entire scan data.

なお、スキャン結果データD109及びD110のように、値が「1」のスキャン結果データが連続している場合、スキャン処理部471はいずれか一方のみを計数対象とするようにしてもよい。例えば、スキャン処理部471は時間的に先に出現するスキャン結果データD109についてのみ計数を行うようにしてもよい。   When scan result data having a value of “1” is continuous as in the scan result data D109 and D110, the scan processing unit 471 may set only one of them as a count target. For example, the scan processing unit 471 may count only the scan result data D109 that appears first in time.

また、スキャン処理部471は、仕切り233の色の画素が現れる間隔の平均として、値が「1」のスキャン結果データの出現間隔の平均を算出する。例えば、スキャン処理部471は、スキャン結果データD101とD105との間隔を、これらの間にある値「0」のスキャン結果データの個数を用いて「3」と算出する。スキャン結果データD105とD109との間隔、及び、スキャン結果データD110とD114との間隔についても同様に、スキャン処理部471は「3」と算出する。一方、スキャン結果データD109とD110との間には、値「0」のスキャン結果データはない。従って、スキャン処理部471は、スキャン結果データD109とD110との間隔を「0」と算出する。
スキャン処理部471は、当該間隔の算出をスキャンデータ全体について行い、間隔の平均値を算出する。
Further, the scan processing unit 471 calculates the average of the appearance intervals of the scan result data having the value “1” as the average of the intervals at which the pixels of the color of the partition 233 appear. For example, the scan processing unit 471 calculates the interval between the scan result data D101 and D105 as “3” using the number of scan result data having a value “0” therebetween. Similarly, the scan processing unit 471 calculates “3” for the interval between the scan result data D105 and D109 and the interval between the scan result data D110 and D114. On the other hand, there is no scan result data with the value “0” between the scan result data D109 and D110. Accordingly, the scan processing unit 471 calculates the interval between the scan result data D109 and D110 as “0”.
The scan processing unit 471 calculates the interval for the entire scan data, and calculates the average value of the interval.

図11は、スキャン処理部471によるラスタスキャンにて所定の色の画素が現れるパタンの第2の例を示す説明図である。同図では、撮像部310が撮像した画像の画素毎に、仕切り233の色の画素を「1」で示し、それ以外の色の画素を「0」で示している。
スキャン処理部471は、値が「1」のスキャン結果データの間隔が所定の閾値よりも大きい場合、図10を参照して説明した処理の対象から除外する。
FIG. 11 is an explanatory diagram illustrating a second example of a pattern in which pixels of a predetermined color appear in a raster scan by the scan processing unit 471. In the figure, for each pixel of the image captured by the imaging unit 310, the color pixel of the partition 233 is indicated by “1”, and the other color pixels are indicated by “0”.
When the interval between scan result data having a value of “1” is larger than a predetermined threshold, the scan processing unit 471 excludes the scan processing data from the processing target described with reference to FIG.

図11の例では、スキャン結果データD201とD213との値が「1」になっている。それ以外のスキャン結果データ(D202〜D212、D214)の値は「0」になっている。図10を参照して説明したのと同様に、スキャン処理部471は、値が「1」のスキャン結果データD201とD213との間隔を「11」と算出する。
ここで、例えば、磁気ボード2全体の撮像画像が表示部320の表示画面いっぱいに映るようにするなど、撮像部310による磁気ボード2の撮像に、ある条件(以下、撮像条件と称する)を設定しておく。ユーザが画像処理装置4を用いて磁気ボード2を撮像する際に、当該撮像条件を満たすように撮像することが求められる。
In the example of FIG. 11, the values of the scan result data D201 and D213 are “1”. The values of the other scan result data (D202 to D212, D214) are “0”. As described with reference to FIG. 10, the scan processing unit 471 calculates the interval between the scan result data D201 and D213 having the value “1” as “11”.
Here, for example, a certain condition (hereinafter referred to as an imaging condition) is set for the imaging of the magnetic board 2 by the imaging unit 310 such that the entire captured image of the magnetic board 2 is displayed on the display screen of the display unit 320. Keep it. When the user images the magnetic board 2 using the image processing device 4, it is required to perform imaging so as to satisfy the imaging condition.

このように、撮像部310による磁気ボード2の撮像に撮像条件を設定しておくことで、撮像部310が当該撮像条件を満たして磁気ボード2を撮像した場合にスキャン結果データが示すパタンとしてあり得ないパタンを想定することができる。
例えば、図10の例のように2つの仕切り233の間隔(すなわち、セル234の幅)がおおよそ画素3つ分になる場合、例えば画素6つ分以上の間隔となるパタンをあり得ないパタンと想定することができる。
In this way, by setting the imaging conditions for imaging of the magnetic board 2 by the imaging unit 310, there is a pattern indicated by the scan result data when the imaging unit 310 satisfies the imaging conditions and images the magnetic board 2. Unacceptable patterns can be assumed.
For example, when the interval between the two partitions 233 (that is, the width of the cell 234) is approximately three pixels as in the example of FIG. 10, for example, there is a pattern that cannot have a pattern with an interval of six pixels or more. Can be assumed.

スキャン処理部471は、このようなあり得ないパタンの設定を予め記憶しておき、該当するスキャン結果データを、仕切り233の色の画素の数の計数対象、及び、仕切り233の色の画素が現れる間隔の平均の算出対象から除外する。図11の例の場合スキャン処理部471は、スキャン結果データD213を、仕切り233の色の画素の数の計数対象に含めない(従って、カウンタ値のインクリメントを行わない)。また、スキャン処理部471は、スキャン結果データD201とD213との間隔「11」を、仕切り233の色の画素が現れる間隔の平均を求める母集団に加えない。
このように、スキャン処理部471があり得ないパタンを除外することで、撮像部310の撮像画像に仕切り233の色と同じ色の物がたまたま映っていた場合でも、仕切り233の色の画素の数、及び、仕切り233の色の画素が現れる間隔の平均を高精度に得られる。
The scan processing unit 471 stores such an impossible pattern setting in advance, and the corresponding scan result data is counted by the number of pixels of the color of the partition 233 and the pixels of the color of the partition 233. It excludes from the calculation target of the average of the appearance interval. In the case of the example in FIG. 11, the scan processing unit 471 does not include the scan result data D213 in the count target of the number of pixels of the color of the partition 233 (thus, the counter value is not incremented). Further, the scan processing unit 471 does not add the interval “11” between the scan result data D201 and D213 to the population for obtaining the average of the intervals at which the pixels of the color of the partition 233 appear.
In this way, by excluding patterns that the scan processing unit 471 cannot have, even if an object of the same color as the color of the partition 233 appears in the captured image of the image capturing unit 310, the pixel of the color of the partition 233 is changed. The average of the number and the interval at which the pixels of the color of the partition 233 appear can be obtained with high accuracy.

条件判定部472は、スキャン処理部471が求めた情報(仕切り233の色の画素の数、及び、仕切り233の色の画素が現れる間隔の平均)に基づいて、撮像部310の撮像画像が、磁気ボード2を撮像条件に従って撮像して得られた画像か否かを判定する。
具体的には、条件判定部472は、スキャン処理部471が求めた仕切り233の色の画素の数が、所定の上限閾値及び下限閾値の範囲内か否かを判定する。また、条件判定部472は、スキャン処理部471が求めた仕切り233の色の画素が現れる間隔が所定の上限閾値以下か否かを判定する。
Based on the information obtained by the scan processing unit 471 (the number of pixels of the color of the partition 233 and the average of the intervals at which the pixels of the color of the partition 233 appear), the condition determination unit 472 It is determined whether the image is obtained by imaging the magnetic board 2 according to the imaging conditions.
Specifically, the condition determination unit 472 determines whether the number of pixels of the color of the partition 233 obtained by the scan processing unit 471 is within a predetermined upper limit threshold and lower limit threshold. In addition, the condition determination unit 472 determines whether or not the interval at which the pixel of the color of the partition 233 obtained by the scan processing unit 471 appears is equal to or less than a predetermined upper limit threshold value.

これらの閾値(仕切り233の色の画素の数の上限閾値及び下限閾値、及び、仕切り233の色の画素が現れる間隔の平均の上限閾値)は、所定のハニカム状の模様に応じて設定された所定の条件の例に該当する。
画像処理装置4を調整する者(例えば、スマートフォンを画像処理装置4として動作させるアプリケーションプログラムの提供者)が、撮像部310を用いて磁気ボード2を撮像した画像データからこれらの閾値の値を決定し、記憶部360に予め記憶させておく。
These threshold values (the upper and lower thresholds for the number of pixels of the color of the partition 233 and the upper limit threshold of the average interval at which the pixels of the color of the partition 233 appear) were set according to a predetermined honeycomb pattern. It corresponds to an example of a predetermined condition.
A person who adjusts the image processing apparatus 4 (for example, a provider of an application program that causes a smartphone to operate as the image processing apparatus 4) determines these threshold values from image data obtained by imaging the magnetic board 2 using the imaging unit 310. And stored in the storage unit 360 in advance.

ここで、上述したように、画像処理を行う装置に、処理対象の絵等が所定の面に描かれている場合には画像処理を行わせ、他の面に描かれている場合には画像処理を抑制させたい場合がある。
そこで、画像処理部371が画像処理を行う条件を、予め設定しておく。そして、撮像部310が磁気ボード2を撮像した場合、当該条件が満たされて画像処理部371が画像処理を行うようにする。一方、当該条件が満たされない場合、画像処理部371が画像処理を行わない(画像処理部371による画像処理を抑制する)ようにする。
これにより、画像処理部371による画像処理機能を磁気ボード2専用の機能とすることができる。
Here, as described above, the apparatus that performs image processing causes image processing to be performed when a picture or the like to be processed is drawn on a predetermined surface, and an image when the image is drawn on another surface. There is a case where processing is desired to be suppressed.
Therefore, conditions for image processing by the image processing unit 371 are set in advance. When the imaging unit 310 images the magnetic board 2, the condition is satisfied and the image processing unit 371 performs image processing. On the other hand, when the condition is not satisfied, the image processing unit 371 does not perform image processing (suppresses image processing by the image processing unit 371).
Thereby, the image processing function by the image processing unit 371 can be made a function dedicated to the magnetic board 2.

特に、スキャン処理部471および条件判定部472によれば、撮像部310の撮像画像をスキャンして、所定の色の画素の数を計数して閾値と比較する処理、及び、所定色の画素が出現する間隔の平均を求めて閾値と比較する処理といった簡単な処理で、画像処理部371が画像処理を行うか否かを決定することができる。この点で、画像処理装置3の負荷を抑制することができ、また、画像処理装置3の処理能力が高くなくてもよい。   In particular, according to the scan processing unit 471 and the condition determination unit 472, the image captured by the imaging unit 310 is scanned, the number of pixels of a predetermined color is counted and compared with a threshold value, and the pixels of the predetermined color are It is possible to determine whether or not the image processing unit 371 performs image processing by a simple process such as a process of obtaining an average of appearing intervals and comparing it with a threshold value. In this respect, the load on the image processing apparatus 3 can be suppressed, and the processing capability of the image processing apparatus 3 may not be high.

次に、図12〜図13を参照して画像処理装置4の動作について説明する。
図12は、磁気ボード2に書かれた絵に対して画像処理装置4が行う処理の手順の例を示すフローチャートである。画像処理装置3は、例えば処理開始を指示するユーザ操作に従って図12の処理を開始する。
図12の処理にて撮像部310は撮像画像を取得する(ステップS301)。例えば撮像部310は動画像を撮像しており、動画像の1フレームとしての撮像画像を取得する。
次に、スキャン処理部471は、撮像画像に仕切り233のハニカム状の模様が含まれているか否かの判定用の情報を取得する(ステップS302)。具体的には、スキャン処理部471は、図10及び図11を参照して説明したように、仕切り233の色の画素の数、及び、仕切り233の色の画素が現れる間隔の平均を求める。
Next, the operation of the image processing apparatus 4 will be described with reference to FIGS.
FIG. 12 is a flowchart illustrating an example of a procedure of processing performed by the image processing apparatus 4 on a picture written on the magnetic board 2. For example, the image processing apparatus 3 starts the process of FIG. 12 according to a user operation instructing the start of the process.
In the process of FIG. 12, the imaging unit 310 acquires a captured image (step S301). For example, the imaging unit 310 captures a moving image and acquires a captured image as one frame of the moving image.
Next, the scan processing unit 471 acquires information for determining whether or not the captured image includes the honeycomb pattern of the partition 233 (step S302). Specifically, as described with reference to FIGS. 10 and 11, the scan processing unit 471 obtains the average number of pixels of the color of the partition 233 and the interval at which the pixels of the color of the partition 233 appear.

図13は、スキャン処理部471が、撮像画像にハニカム状の模様が含まれているか否かの判定用の情報を取得する処理手順の例を示すフローチャートである。スキャン処理部471は、図12のステップS302にて図13の処理を行う。
図13の処理にて、スキャン処理部471は、仕切り233の色の画素の数を計数するカウンタの値を0にリセットする(ステップS401)。また、スキャン処理部471は、仕切り233の色の画素の間隔の合計を0に初期設定する(ステップS402)。
FIG. 13 is a flowchart illustrating an example of a processing procedure in which the scan processing unit 471 acquires information for determining whether or not a captured image includes a honeycomb pattern. The scan processing unit 471 performs the process of FIG. 13 in step S302 of FIG.
In the process of FIG. 13, the scan processing unit 471 resets the value of the counter that counts the number of pixels of the color of the partition 233 to 0 (step S401). Further, the scan processing unit 471 initializes the sum of the intervals of the color pixels of the partition 233 to 0 (step S402).

次に、スキャン処理部471は、撮像部310の撮像画像をラスタスキャンして画素毎に処理を行うループL21を開始する(ステップS411)。以下では、ループL21で処理対象になっている画素を対象画素と称する。
スキャン処理部471は、対象画素の色が仕切り233の色か否かを判定する(ステップS412)。
Next, the scan processing unit 471 starts a loop L21 in which the captured image of the imaging unit 310 is raster-scanned and processed for each pixel (step S411). Hereinafter, the pixel to be processed in the loop L21 is referred to as a target pixel.
The scan processing unit 471 determines whether the color of the target pixel is the color of the partition 233 (step S412).

対象画素の色が仕切り233の色であると判定した場合(ステップS412:YES)、スキャン処理部471は、直近過去に仕切り233の色であると判定した画素の位置を読み出す(ステップS421)。
なお、対象画素の色が仕切り233の色であると最初に判定した場合(初回判定時)は、ステップS421を飛ばしてステップS422へ進む。
When it is determined that the color of the target pixel is the color of the partition 233 (step S412: YES), the scan processing unit 471 reads the position of the pixel that has been determined to be the color of the partition 233 in the latest past (step S421).
If it is first determined that the color of the target pixel is the color of the partition 233 (at the time of the first determination), step S421 is skipped and the process proceeds to step S422.

次に、スキャン処理部471は、現在の対象画素の位置と、ステップS421で読み出した画素の位置との間隔を算出する(ステップS422)。例えば、図10及び図11を参照して説明したように、スキャン処理部471は、現在の対象画素の位置と、ステップS221で読み出した画素の間に位置する画素の数を当該間隔として算出する。
なお、対象画素の色が仕切り233の色であると最初に判定した場合(初回判定時)は、間隔を0に設定する。
Next, the scan processing unit 471 calculates an interval between the current target pixel position and the pixel position read in step S421 (step S422). For example, as described with reference to FIGS. 10 and 11, the scan processing unit 471 calculates the number of pixels located between the current position of the target pixel and the pixel read in step S <b> 221 as the interval. .
When it is first determined that the color of the target pixel is the color of the partition 233 (at the first determination), the interval is set to 0.

次に、スキャン処理部471は、ステップS422で得られた間隔が所定の閾値以下か否かを判定する(ステップS423)。図11を参照して説明したように、仕切り233の色の画素の間隔としてあり得ない間隔を処理対象から除外するためである。
閾値以下であると判定した場合(ステップS423:YES)、スキャン処理部471は、仕切り233の色の画素の数を更新する(ステップS431)。具体的には、スキャン処理部471は、仕切り233の色の画素の数を計数するカウンタの値を1増加させる。
Next, the scan processing unit 471 determines whether or not the interval obtained in step S422 is equal to or smaller than a predetermined threshold (step S423). This is because, as described with reference to FIG. 11, an interval that is not possible as an interval between pixels of the color of the partition 233 is excluded from the processing target.
When it is determined that the value is equal to or less than the threshold (step S423: YES), the scan processing unit 471 updates the number of pixels of the color of the partition 233 (step S431). Specifically, the scan processing unit 471 increments the value of the counter that counts the number of pixels of the color of the partition 233 by one.

また、スキャン処理部471は、仕切り233の色の画素の間隔の合計を更新する(ステップS432)。具体的には、スキャン処理部471は、仕切り233の色の画素の間隔の合計の値に、ステップS422で得られた間隔を加算する。
また、スキャン処理部471は、対象画素の位置を記憶する(ステップS433)。当該位置は、ステップS421で、直近過去に仕切り233の色であると判定した画素の位置として読み出される。
In addition, the scan processing unit 471 updates the sum of the intervals between the pixels of the color of the partition 233 (step S432). Specifically, the scan processing unit 471 adds the interval obtained in step S422 to the total value of the intervals between the pixels of the color of the partition 233.
In addition, the scan processing unit 471 stores the position of the target pixel (step S433). The position is read out as the position of the pixel that has been determined to be the color of the partition 233 in the past in step S421.

次に、スキャン処理部471は、ループL21の終端処理を行う(ステップS434)。具体的には、スキャン処理部471は、撮像部310の撮像画像に含まれる全ての画素に対してループL21の処理を行ったか否かを判定する。全ての画素に対してループL21の処理を行ったと判定した場合、スキャン処理部471は、ループL21を終了する。一方、未処理の画素があると判定した場合、スキャン処理部471は、ステップS411に戻り引き続きループL21の処理を行う。   Next, the scan processing unit 471 performs termination processing of the loop L21 (step S434). Specifically, the scan processing unit 471 determines whether or not the processing of the loop L21 has been performed on all the pixels included in the captured image of the imaging unit 310. When it is determined that the processing of the loop L21 has been performed on all the pixels, the scan processing unit 471 ends the loop L21. On the other hand, if it is determined that there is an unprocessed pixel, the scan processing unit 471 returns to step S411 and continues the processing of the loop L21.

ループL21を終了した後、スキャン処理部471は、仕切り233の色の画素の間隔の平均を算出する(ステップS441)。具体的には、スキャン処理部471は、仕切り233の色の画素の間隔の合計を(仕切り233の色の画素の計数値−1)で除算する。
ステップS441の後、図13の処理を終了して図12の処理へ戻る。
After completing the loop L21, the scan processing unit 471 calculates the average of the intervals between the pixels of the color of the partition 233 (step S441). Specifically, the scan processing unit 471 divides the total interval of the pixels of the color of the partition 233 by (the count value-1 of the pixels of the color of the partition 233).
After step S441, the process of FIG. 13 is terminated and the process returns to the process of FIG.

一方、ステップS412で対象画素の色が仕切り233の色ではないと判定した場合(ステップS412:NO)、ステップS434へ遷移する。
また、ステップS423で、間隔が所定の閾値より大きいと判定した場合(ステップS423:NO)、ステップS434へ遷移する。
On the other hand, if it is determined in step S412 that the color of the target pixel is not the color of the partition 233 (step S412: NO), the process proceeds to step S434.
If it is determined in step S423 that the interval is larger than the predetermined threshold (step S423: NO), the process proceeds to step S434.

図12のステップS302の処理の後、条件判定部472は、ステップS302でスキャン処理部471が取得した情報に基づいて、撮像画像に仕切り233のハニカム状の模様が含まれているか否かを判定する(ステップS303)。具体的には、条件判定部472は、図10及び図11を参照して説明したように、仕切り233の色の画素の数が所定の範囲内にあり、かつ、仕切り233の色の画素が現れる間隔の平均が所定の間隔以下か否かを判定する。   After the process of step S302 in FIG. 12, the condition determination unit 472 determines whether or not the captured image includes the honeycomb pattern of the partition 233 based on the information acquired by the scan processing unit 471 in step S302. (Step S303). Specifically, as described with reference to FIGS. 10 and 11, the condition determination unit 472 has the number of pixels of the color of the partition 233 within a predetermined range and the pixels of the color of the partition 233 It is determined whether or not the average of the appearing intervals is equal to or less than a predetermined interval.

撮像画像に仕切り233のハニカム状の模様が含まれていないと判定した場合(ステップS303:NO)、ステップS301へ戻る。この場合、画像処理装置3はステップS311での画像処理を開始しない。
一方、撮像画像に仕切り233のハニカム状の模様が含まれていると判定した場合(ステップS303:YES)、ステップS311へ遷移する。
ステップS311〜S332は、図7のステップS101〜S122と同様である。
ステップS332の後、図12の処理を終了する。
When it is determined that the captured image does not include the honeycomb pattern of the partition 233 (step S303: NO), the process returns to step S301. In this case, the image processing device 3 does not start the image processing in step S311.
On the other hand, when it is determined that the honeycomb image of the partition 233 is included in the captured image (step S303: YES), the process proceeds to step S311.
Steps S311 to S332 are the same as steps S101 to S122 in FIG.
After step S332, the process of FIG.

以上のように、スキャン処理部471は、撮像部310の撮像画像をラスタスキャンして、仕切り233の色の画素が現れる間隔の平均を求める。そして、条件判定部472は、仕切り233の色の画素が現れる間隔の平均に基づく所定の条件が成立するか否か(例えば、仕切り233の色の画素が現れる平均が所定の閾値以下か否か)を判定する。画像処理部371は、所定の条件が成立すると条件判定部472が判定すると、撮像部310の撮像画像に対して画像処理を行う。
画像処理装置4によれば、条件が満たされない場合には画像処理部371による画像処理を抑制する点で、画像処理部371が処理対象とする画像を限定することができる。撮像部310が磁気ボード2を撮像した画像に対してはが画像処理部371が画像処理を行うことで、画像処理装置4に画像処理を行わせたいユーザが磁気ボードを有していない場合、磁気ボードを購入する可能性がある。
また、画像処理装置4は、撮像部310の撮像画像をスキャンして、所定色の画素が出現する間隔の平均を求めて閾値と比較する処理といった簡単な処理で、画像処理部371が画像処理を行うか否かを決定することができる。この点で、画像処理装置3の負荷を抑制することができ、また、画像処理装置3の処理能力が高くなくてもよい。
As described above, the scan processing unit 471 raster-scans the captured image of the imaging unit 310, and obtains the average of the intervals at which the pixels of the color of the partition 233 appear. Then, the condition determination unit 472 determines whether or not a predetermined condition based on an average of intervals at which the pixels of the color of the partition 233 appear (for example, whether or not the average of the pixels of the color of the partition 233 appears below a predetermined threshold). ). When the condition determination unit 472 determines that a predetermined condition is satisfied, the image processing unit 371 performs image processing on the captured image of the imaging unit 310.
According to the image processing device 4, it is possible to limit images to be processed by the image processing unit 371 in that the image processing by the image processing unit 371 is suppressed when the condition is not satisfied. When the image processing unit 371 performs image processing on the image captured by the imaging unit 310 on the magnetic board 2 and the user who wants the image processing apparatus 4 to perform image processing does not have the magnetic board, May purchase a magnetic board.
The image processing apparatus 4 scans the captured image of the imaging unit 310, calculates an average of intervals at which pixels of a predetermined color appear, and compares the average with a threshold. The image processing unit 371 performs image processing. Can be determined. In this respect, the load on the image processing apparatus 3 can be suppressed, and the processing capability of the image processing apparatus 3 may not be high.

また、スキャン処理部471は、仕切り233の色の画素の出現回数をさらに求める。そして、条件判定部472は、仕切り233の色の画素が現れる間隔の平均、及び、仕切り233の色の画素の出現回数に基づく所定の条件が成立するか否かを判定する。
画像処理装置3によれば、条件が満たされない場合には画像処理部371による画像処理を抑制する点で、画像処理部371が処理対象とする画像を限定することができる。撮像部310が磁気ボード2を撮像した画像に対してはが画像処理部371が画像処理を行うことで、画像処理装置4に画像処理を行わせたいユーザが磁気ボードを有していない場合、磁気ボードを購入する可能性がある。
また、画像処理装置4は、撮像部310の撮像画像をスキャンして、所定の色の画素の数を計数して閾値と比較する処理、及び、所定色の画素が出現する間隔の平均を求めて閾値と比較する処理といった簡単な処理で、画像処理部371が画像処理を行うか否かを決定することができる。この点で、画像処理装置4の負荷を抑制することができ、また、画像処理装置4の処理能力が高くなくてもよい。
In addition, the scan processing unit 471 further obtains the number of appearances of the color pixel of the partition 233. Then, the condition determination unit 472 determines whether or not a predetermined condition is established based on the average of the intervals at which the pixels of the color of the partition 233 appear and the number of appearances of the pixels of the color of the partition 233.
According to the image processing device 3, the image to be processed by the image processing unit 371 can be limited in that the image processing by the image processing unit 371 is suppressed when the condition is not satisfied. When the image processing unit 371 performs image processing on the image captured by the imaging unit 310 on the magnetic board 2 and the user who wants the image processing apparatus 4 to perform image processing does not have the magnetic board, May purchase a magnetic board.
In addition, the image processing device 4 scans the captured image of the imaging unit 310, counts the number of pixels of a predetermined color and compares it with a threshold value, and obtains an average of intervals at which the pixels of the predetermined color appear. Whether or not the image processing unit 371 performs image processing can be determined by simple processing such as processing for comparison with a threshold value. In this respect, the load on the image processing apparatus 4 can be suppressed, and the processing capability of the image processing apparatus 4 may not be high.

また、条件判定部472は、仕切り233によるハニカム状の模様に応じて設定された所定の条件が成立するか否かを判定する。これにより、画像処理装置4では、撮像部310の撮像画像をスキャンして、所定色の画素が出現する間隔の平均を求めて閾値と比較する処理といった簡単な処理で、仕切り233によるハニカム状の模様が撮像画像に含まれているか否かを判定することができる。   Further, the condition determination unit 472 determines whether or not a predetermined condition set according to the honeycomb pattern formed by the partition 233 is satisfied. As a result, the image processing apparatus 4 scans the captured image of the imaging unit 310, calculates an average of intervals at which pixels of a predetermined color appear, and compares the average with the threshold value. It can be determined whether or not the pattern is included in the captured image.

なお、以上では、画像処理装置3又は3が、磁気ボード2に書かれた絵等を撮像して画像処理を行う場合を例に説明したが、画像処理装置3又は4の処理対象は磁気ボード2の画像に限らない。例えば、画像処理装置3又は4が、所定の模様の繰り返しを含む壁紙に書かれた絵を撮像した画像を処理するなど、磁気ボード2の画像以外の画像を処理対象とするようにしてもよい。   In the above description, the case where the image processing device 3 or 3 captures a picture or the like written on the magnetic board 2 and performs image processing has been described as an example. However, the processing target of the image processing device 3 or 4 is the magnetic board. It is not limited to the second image. For example, the image processing device 3 or 4 may process an image other than the image of the magnetic board 2 such as processing an image obtained by capturing a picture written on a wallpaper including a predetermined pattern repetition. .

なお、制御部370又は470の全部または一部の機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより各部の処理を行ってもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。
また、「コンピュータシステム」は、WWWシステムを利用している場合であれば、ホームページ提供環境(あるいは表示環境)も含むものとする。
また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。また上記プログラムは、前述した機能の一部を実現するためのものであっても良く、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであっても良い。
A program for realizing all or part of the functions of the control unit 370 or 470 is recorded on a computer-readable recording medium, and the program recorded on the recording medium is read into a computer system and executed. You may process each part by. Here, the “computer system” includes an OS and hardware such as peripheral devices.
Further, the “computer system” includes a homepage providing environment (or display environment) if a WWW system is used.
The “computer-readable recording medium” refers to a storage device such as a flexible medium, a magneto-optical disk, a portable medium such as a ROM and a CD-ROM, and a hard disk incorporated in a computer system. The program may be a program for realizing a part of the functions described above, and may be a program capable of realizing the functions described above in combination with a program already recorded in a computer system.

以上、本発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計変更等も含まれる。   The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes design changes and the like without departing from the gist of the present invention.

1 画像処理システム
2 磁気ボード
3、4 画像処理装置
310 撮像部
320 表示部
330 操作入力部
360 記憶部
370、470 制御部
371 画像処理部
380 前段処理部
381 エッジ検出部
382 パタン判定部
383 ノイズ除去部
390 後段処理部
391 塗り広げ処理部
392 余白透明化処理部
393 閉領域白塗り処理部
471 スキャン処理部
472 条件判定部
DESCRIPTION OF SYMBOLS 1 Image processing system 2 Magnetic board 3, 4 Image processing apparatus 310 Imaging part 320 Display part 330 Operation input part 360 Storage part 370, 470 Control part 371 Image processing part 380 Pre-processing part 381 Edge detection part 382 Pattern determination part 383 Noise removal Section 390 Subsequent processing section 391 Spreading processing section 392 Blank transparency processing section 393 Closed area whitening processing section 471 Scan processing section 472 Condition determination section

Claims (12)

画像を取得する画像取得部と、
前記画像のエッジ検出を行うエッジ検出部と、
前記エッジ検出にて検出されたエッジ部分に含まれる画素の前記画像における配置が所定のパタンを満たすか否かを判定するパタン判定部と、
前記パタン判定部が前記所定のパタンを満たすと判定した場合、当該パタンに対応する所定の画素を消去するノイズ除去部と、
画像全体で、前記パタン判定部が、前記エッジ部分に含まれる画素の配置が所定のパタンを満たすと判定した回数を示す指標値が、所定の度合い以上に大きいことを示す場合、前記ノイズ除去部が画素を消去した画像に対してさらに画像処理を行う後段処理部と、
を備える画像処理装置。
An image acquisition unit for acquiring images;
An edge detection unit for detecting an edge of the image;
A pattern determination unit that determines whether or not an arrangement of pixels included in the edge portion detected by the edge detection satisfies a predetermined pattern;
A noise removal unit that erases a predetermined pixel corresponding to the pattern when the pattern determination unit determines that the predetermined pattern is satisfied;
When the index value indicating the number of times that the pattern determination unit determines that the arrangement of pixels included in the edge portion satisfies a predetermined pattern in the entire image indicates that the index value is greater than a predetermined degree, the noise removal unit A post-processing unit that performs further image processing on an image from which pixels have been deleted,
An image processing apparatus comprising:
画像を取得する画像取得部と、
前記画像のエッジ検出を行うエッジ検出部と、
前記エッジ検出にて検出されたエッジ部分に含まれる画素の前記画像における配置が所定のパタンを満たすか否かを判定するパタン判定部と、
画像全体で、前記パタン判定部が、前記エッジ部分に含まれる画素の配置が所定のパタンを満たすと判定した回数を示す指標値が、所定の度合い以上に大きいことを示す場合、前記画像取得部が取得した画像に対してさらに画像処理を行う後段処理部と、
を備え、
前記後段処理部は、前記パタン判定部が前記所定のパタンを満たすと判定した場合、当該パタンに対応する所定の画素を消去するノイズ除去部を備える
画像処理装置。
An image acquisition unit for acquiring images;
An edge detection unit for detecting an edge of the image;
A pattern determination unit that determines whether or not an arrangement of pixels included in the edge portion detected by the edge detection satisfies a predetermined pattern;
When the index value indicating the number of times that the pattern determination unit determines that the arrangement of pixels included in the edge portion satisfies a predetermined pattern in the entire image indicates that the index value is greater than a predetermined degree, the image acquisition unit A post-processing unit that performs further image processing on the acquired image;
With
The post-processing unit includes a noise removing unit that erases a predetermined pixel corresponding to the pattern when the pattern determination unit determines that the predetermined pattern is satisfied.
前記後段処理部は、前記ノイズ除去部が画素を消去した画像のうち所定の画素値の画素を周囲の画素に広げる塗り広げ処理部を備える、請求項1または請求項2に記載の画像処理装置。   3. The image processing apparatus according to claim 1, wherein the subsequent processing unit includes a paint spreading processing unit that spreads pixels having a predetermined pixel value to surrounding pixels in the image from which the noise removing unit has erased pixels. 4. . 前記後段処理部は、画面に表示される背景画像上に前記画像処理にて得られた画像を表示させ、当該画像処理にて得られた画像を当該背景画像上で動作させる処理を行う、請求項1から3のいずれか一項に記載の画像処理装置。   The post-processing unit performs processing for displaying an image obtained by the image processing on a background image displayed on a screen and operating the image obtained by the image processing on the background image. Item 4. The image processing device according to any one of Items 1 to 3. 前記パタン判定部は、ハニカム状の所定の模様に基づいて決められた前記所定のパタンを満たすか否かを判定する、請求項1から4のいずれか一項に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the pattern determination unit determines whether or not the predetermined pattern determined based on a honeycomb-shaped predetermined pattern is satisfied. 画像取得部が取得した前記画像をスキャンして所定の色の画素が現れる間隔の平均を求めるスキャン処理部と、
前記所定の色の画素が現れる間隔の平均に基づく所定の条件が成立するか否かを判定する条件判定部と、
を備え、
前記エッジ検出部は、前記所定の条件が成立すると前記条件判定部が判定した場合に、前記エッジ部分を検出する、
請求項1から5のいずれか一項に記載の画像処理装置。
A scan processing unit that scans the image acquired by the image acquisition unit to obtain an average of intervals at which pixels of a predetermined color appear; and
A condition determination unit that determines whether a predetermined condition based on an average of intervals at which the pixels of the predetermined color appear is satisfied;
With
The edge detection unit detects the edge portion when the condition determination unit determines that the predetermined condition is satisfied,
The image processing apparatus according to claim 1.
前記スキャン処理部は、前記所定の色の画素の出現回数をさらに求め、
前記条件判定部は、前記所定の色の画素が現れる間隔の平均、及び、前記所定の色の画素の出現回数に基づく所定の条件が成立するか否かを判定する、
請求項6に記載の画像処理装置。
The scan processing unit further determines the number of appearances of the pixel of the predetermined color,
The condition determination unit determines whether or not a predetermined condition based on an average of intervals at which the pixels of the predetermined color appear and the number of appearances of the pixels of the predetermined color is satisfied.
The image processing apparatus according to claim 6.
前記条件判定部は、所定のハニカム状の模様に応じて設定された前記所定の条件が成立するか否かを判定する、
請求項6または請求項7に記載の画像処理装置。
The condition determination unit determines whether or not the predetermined condition set according to a predetermined honeycomb pattern is satisfied;
The image processing apparatus according to claim 6 or 7.
画像処理装置の画像処理方法であって、
画像を取得する画像取得ステップと、
前記画像のうち隣接する画素との画素値の差が所定の閾値以上であるエッジ部分を検出するエッジ検出ステップと、
前記エッジ部分に含まれる画素の前記画像における配置が所定のパタンを満たすか否かを判定するパタン判定ステップと、
前記パタン判定ステップにて前記所定のパタンを満たすと判定した画素を消去するノイズ除去ステップと、
画像全体について、前記パタン判定ステップにて、前記エッジ部分に含まれる画素の配置が所定のパタンを満たすと判定した回数を示す指標値が、前記所定のパタンを満たすと判定した度合いが所定の度合い以上に大きいことを示す場合、前記ノイズ除去ステップにて画素を消去した画像に対してさらに画像処理を行う後段処理ステップと、
を含む画像処理方法。
An image processing method of an image processing apparatus,
An image acquisition step of acquiring an image;
An edge detection step of detecting an edge portion in which a difference in pixel value between adjacent pixels in the image is a predetermined threshold value or more;
A pattern determining step for determining whether or not an arrangement of pixels included in the edge portion in the image satisfies a predetermined pattern;
A noise removal step of erasing pixels determined to satisfy the predetermined pattern in the pattern determination step;
The degree to which the index value indicating the number of times it is determined that the arrangement of pixels included in the edge portion satisfies the predetermined pattern in the pattern determination step for the entire image is a predetermined degree If it indicates greater than the above, a subsequent processing step for further performing image processing on the image from which pixels have been deleted in the noise removal step;
An image processing method including:
画像処理装置の画像処理方法であって、
画像を取得する画像取得ステップと、
前記画像のうち隣接する画素との画素値の差が所定の閾値以上であるエッジ部分を検出するエッジ検出ステップと、
前記エッジ部分に含まれる画素の前記画像における配置が所定のパタンを満たすか否かを判定するパタン判定ステップと、
画像全体について、前記パタン判定ステップにて、前記エッジ部分に含まれる画素の配置が所定のパタンを満たすと判定した回数を示す指標値が、前記所定のパタンを満たすと判定した度合いが所定の度合い以上に大きいことを示す場合、前記画像取得ステップにて取得した画像に対してさらに画像処理を行う後段処理ステップと、
を含み、
前記後段処理ステップは、前記パタン判定ステップにて前記所定のパタンを満たすと判定した画素を消去するノイズ除去ステップを含む、
画像処理方法。
An image processing method of an image processing apparatus,
An image acquisition step of acquiring an image;
An edge detection step of detecting an edge portion in which a difference in pixel value between adjacent pixels in the image is a predetermined threshold value or more;
A pattern determining step for determining whether or not an arrangement of pixels included in the edge portion in the image satisfies a predetermined pattern;
The degree to which the index value indicating the number of times it is determined that the arrangement of pixels included in the edge portion satisfies the predetermined pattern in the pattern determination step for the entire image is a predetermined degree If it indicates greater than the above, a subsequent processing step of further performing image processing on the image acquired in the image acquisition step;
Including
The post-stage processing step includes a noise removing step of erasing pixels determined to satisfy the predetermined pattern in the pattern determination step.
Image processing method.
コンピュータに、
画像を取得する画像取得ステップと、
前記画像のうち隣接する画素との画素値の差が所定の閾値以上であるエッジ部分を検出するエッジ検出ステップと、
前記エッジ部分に含まれる画素の前記画像における配置が所定のパタンを満たすか否かを判定するパタン判定ステップと、
前記パタン判定ステップにて前記所定のパタンを満たすと判定した画素を消去するノイズ除去ステップと、
画像全体について、前記パタン判定ステップにて、前記エッジ部分に含まれる画素の配置が所定のパタンを満たすと判定した回数を示す指標値が、前記所定のパタンを満たすと判定した度合いが所定の度合い以上に大きいことを示す場合、前記ノイズ除去ステップにて画素を消去した画像に対してさらに画像処理を行う後段処理ステップと、
を実行させるためのプログラム。
On the computer,
An image acquisition step of acquiring an image;
An edge detection step of detecting an edge portion in which a difference in pixel value between adjacent pixels in the image is a predetermined threshold value or more;
A pattern determining step for determining whether or not an arrangement of pixels included in the edge portion in the image satisfies a predetermined pattern;
A noise removal step of erasing pixels determined to satisfy the predetermined pattern in the pattern determination step;
The degree to which the index value indicating the number of times it is determined that the arrangement of pixels included in the edge portion satisfies the predetermined pattern in the pattern determination step for the entire image is a predetermined degree If it indicates greater than the above, a subsequent processing step for further performing image processing on the image from which pixels have been deleted in the noise removal step;
A program for running
コンピュータに、
画像を取得する画像取得ステップと、
前記画像のうち隣接する画素との画素値の差が所定の閾値以上であるエッジ部分を検出するエッジ検出ステップと、
前記エッジ部分に含まれる画素の前記画像における配置が所定のパタンを満たすか否かを判定するパタン判定ステップと、
画像全体について、前記パタン判定ステップにて、前記エッジ部分に含まれる画素の配置が所定のパタンを満たすと判定した回数を示す指標値が、前記所定のパタンを満たすと判定した度合いが所定の度合い以上に大きいことを示す場合、前記画像取得ステップにて取得した画像に対してさらに画像処理を行う後段処理ステップと、
を実行させ、
前記後段処理ステップでは、前記パタン判定ステップにて前記所定のパタンを満たすと判定した画素を消去するノイズ除去ステップを実行させるためのプログラム。
On the computer,
An image acquisition step of acquiring an image;
An edge detection step of detecting an edge portion in which a difference in pixel value between adjacent pixels in the image is a predetermined threshold value or more;
A pattern determining step for determining whether or not an arrangement of pixels included in the edge portion in the image satisfies a predetermined pattern;
The degree to which the index value indicating the number of times it is determined that the arrangement of pixels included in the edge portion satisfies the predetermined pattern in the pattern determination step for the entire image is a predetermined degree If it indicates greater than the above, a subsequent processing step of further performing image processing on the image acquired in the image acquisition step;
And execute
In the subsequent processing step, a program for executing a noise removal step of erasing pixels determined to satisfy the predetermined pattern in the pattern determination step.
JP2015119790A 2015-06-12 2015-06-12 Image processing apparatus, image processing method, and program Expired - Fee Related JP5974140B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015119790A JP5974140B1 (en) 2015-06-12 2015-06-12 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015119790A JP5974140B1 (en) 2015-06-12 2015-06-12 Image processing apparatus, image processing method, and program

Publications (2)

Publication Number Publication Date
JP5974140B1 true JP5974140B1 (en) 2016-08-23
JP2017004394A JP2017004394A (en) 2017-01-05

Family

ID=56708087

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015119790A Expired - Fee Related JP5974140B1 (en) 2015-06-12 2015-06-12 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP5974140B1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11250114A (en) * 1998-03-02 1999-09-17 Ricoh Co Ltd Method and device for recognizing construction drawing and computer-readable recording medium recorded with construction drawing recognizing program
JP2004274517A (en) * 2003-03-10 2004-09-30 Kokuyo Co Ltd Drawing apparatus
JP2006514344A (en) * 2002-05-27 2006-04-27 リアルアイズスリーディー Digital capture, storage, and transmission method of information by camera equipped in communication terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11250114A (en) * 1998-03-02 1999-09-17 Ricoh Co Ltd Method and device for recognizing construction drawing and computer-readable recording medium recorded with construction drawing recognizing program
JP2006514344A (en) * 2002-05-27 2006-04-27 リアルアイズスリーディー Digital capture, storage, and transmission method of information by camera equipped in communication terminal
JP2004274517A (en) * 2003-03-10 2004-09-30 Kokuyo Co Ltd Drawing apparatus

Also Published As

Publication number Publication date
JP2017004394A (en) 2017-01-05

Similar Documents

Publication Publication Date Title
US11114130B2 (en) Method and device for processing video
US9792676B2 (en) System for background subtraction with 3D camera
EP2174293B1 (en) Computing a depth map
KR102162419B1 (en) System and method for perceiving images with multimodal feedback
US20030053692A1 (en) Method of and apparatus for segmenting a pixellated image
CN106713696B (en) Image processing method and device
TWI526982B (en) Area segmentation method, computer program product and inspection device
JP5368585B2 (en) Information processing apparatus, method thereof, and display apparatus
JP2008225838A (en) Apparatus, method, and program for face feature point detection
CN109214999A (en) A kind of removing method and device of video caption
KR102084343B1 (en) Background removal
CN112135041B (en) Method and device for processing special effect of human face and storage medium
AU2013273722A1 (en) Method, system and apparatus for removing a marker projected in a scene
CN106251348A (en) A kind of self adaptation multi thread towards depth camera merges background subtraction method
JP5974140B1 (en) Image processing apparatus, image processing method, and program
US20160267356A1 (en) Image processing apparatus and image processing method of performing image segmentation
TW201543445A (en) Display apparatus and display method
JP6479220B2 (en) Content projection control device, content projection control method, and program
KR101539038B1 (en) Hole-filling method for depth map obtained from multiple depth camera
JP4764177B2 (en) Projection display device, written image extraction method and program, and computer-readable information recording medium on which the program is recorded
CN107277354B (en) Virtual photographing method, virtual photographing terminal and computer readable storage medium
JP4831344B2 (en) Eye position detection method
US20130329001A1 (en) Motion Adaptive Image Slice Selection
JP4436101B2 (en) robot
EP2287805A1 (en) Image processing device, image processing method, and information storage medium

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160628

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160715

R150 Certificate of patent or registration of utility model

Ref document number: 5974140

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees