WO2018003090A1 - 画像処理装置、画像処理方法、および、プログラム - Google Patents

画像処理装置、画像処理方法、および、プログラム Download PDF

Info

Publication number
WO2018003090A1
WO2018003090A1 PCT/JP2016/069528 JP2016069528W WO2018003090A1 WO 2018003090 A1 WO2018003090 A1 WO 2018003090A1 JP 2016069528 W JP2016069528 W JP 2016069528W WO 2018003090 A1 WO2018003090 A1 WO 2018003090A1
Authority
WO
WIPO (PCT)
Prior art keywords
shine
area
image data
necessary information
information area
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.)
Ceased
Application number
PCT/JP2016/069528
Other languages
English (en)
French (fr)
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to PCT/JP2016/069528 priority Critical patent/WO2018003090A1/ja
Publication of WO2018003090A1 publication Critical patent/WO2018003090A1/ja
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Definitions

  • the present invention relates to an image processing apparatus, an image processing method, and a program.
  • Patent Document 1 a technique for correcting luminance unevenness in an image using an average value in a window of color information such as luminance in the image as a background is disclosed (see Patent Document 1).
  • a whiteout area in the photographed image is detected, and the whiteout area is used as a correction target area, and an area in another image corresponding to the correction target area is extracted and combined to generate an image without a whiteout area.
  • a technique is disclosed (see Patent Document 2).
  • Patent Document 1 Even when a plurality of images are combined, an area not including characters can be selected as a joint for combining images, that is, a boundary between images. However, there is a case where a joint that crosses the character portion is selected, and an image with an image quality inappropriate for OCR (Optical Character Recognition) due to blurring of the character may be acquired. Had.
  • OCR Optical Character Recognition
  • the present invention has been made in view of the above-described problems.
  • An image processing apparatus and an image processing apparatus that can acquire image data suitable for OCR or the like even under a situation where a subject is damaged by illumination such as a fluorescent lamp. It is an object to provide a method and a program.
  • an image processing apparatus includes a frame acquisition unit that acquires a captured frame, a subject region acquisition unit that acquires subject region image data of a subject region from the frame, Necessary information area acquisition means for detecting a necessary information area in the subject area and acquiring necessary information area image data of the necessary information area; Detecting means for detecting shine on the necessary information area image data; and And non-shiny area obtaining means for obtaining non-shiny area image data that is the necessary information area image data in which the shine has not been detected by the detecting means.
  • the image processing method includes a frame acquisition step of acquiring a captured frame, a subject region acquisition step of acquiring subject region image data of a subject region from the frame, and a necessary information region in the subject region.
  • the necessary information area acquisition step for detecting and acquiring necessary information area image data of the necessary information area
  • a shine detection step for detecting shine on the necessary information area image data
  • the shine detection in the shine detection step is a non-shiny area obtaining step of obtaining non-shiny area image data that is the necessary information area image data that has not been detected.
  • the program according to the present invention detects a frame acquisition step for acquiring a captured frame, a subject region acquisition step for acquiring subject region image data of a subject region from the frame, and a necessary information region in the subject region.
  • the necessary information area acquisition step for acquiring the necessary information area image data of the necessary information area the shine detection step for detecting shine on the necessary information area image data, and the shine detection in the shine detection step.
  • a non-shine area acquisition step of acquiring non-shine area image data that is the necessary information area image data that has not been included is executed by a computer.
  • a boundary that does not include a necessary area such as a character portion can be selected in advance as a joint for image composition, there is no factor that leads to image quality degradation of the character portion due to composition, and high OCR accuracy is realized. be able to.
  • OCR can be carried out even in an environment that could not be used conventionally, and the usage applications are expanded.
  • FIG. 1 is a block diagram illustrating an example of the configuration of the image processing apparatus according to the present embodiment.
  • FIG. 2 is a flowchart illustrating an example of processing in the image processing apparatus according to the present embodiment.
  • FIG. 3 is a diagram illustrating an example of a necessary information area in the present embodiment.
  • FIG. 4 is a diagram showing an example of necessary information area division in the present embodiment.
  • FIG. 5 is a diagram showing an example of necessary information area division in the present embodiment.
  • FIG. 6 is a diagram illustrating an example of necessary information area division in the present embodiment.
  • FIG. 7 is a diagram showing an example of necessary information area division in the present embodiment.
  • FIG. 8 is a diagram showing an example of necessary information area division in the present embodiment.
  • FIG. 9 is a diagram illustrating an example of image composition in the present embodiment.
  • FIG. 10 is a diagram illustrating an example of an OCR processing result in the present embodiment.
  • FIG. 1 is a block diagram illustrating an example of the configuration of the image processing apparatus 100 according to the present embodiment.
  • the embodiment described below exemplifies the image processing apparatus 100 for embodying the technical idea of the present invention, and is not intended to specify the present invention to the image processing apparatus 100.
  • the present invention is equally applicable to the image processing apparatus 100 of other embodiments included in the scope of claims.
  • the form of function distribution in the image processing apparatus 100 exemplified in the present embodiment is not limited to the following, and may be configured to be functionally or physically distributed / integrated in arbitrary units within a range where similar effects and functions can be achieved. can do.
  • the image processing apparatus 100 is, for example, portable information such as a tablet terminal, a mobile phone, a smartphone, a PHS, a PDA, a notebook personal computer, or a wearable computer such as a glasses type or a watch type. It may be a processing device (mobile terminal).
  • the image processing apparatus 100 is generally configured to include a control unit 102, a storage unit 106, a photographing unit 110, an input / output unit 112, a sensor unit 114, and a communication unit 116. .
  • the image processing apparatus 100 is illustrated as a mobile terminal including a photographing unit 110 in a housing. However, the image processing apparatus 100 does not include the photographing unit 110 in a housing, and captures captured image data from an external photographing device. It may be configured to receive (for example, a desktop personal computer).
  • an input / output interface unit (not shown) for connecting the input / output unit 112 and the control unit 102 may be further provided.
  • Each unit of the image processing apparatus 100 is connected to be communicable via an arbitrary communication path.
  • the communication unit 116 is a network interface (NIC (Network Interface Controller), etc.), Bluetooth (registered trademark), infrared communication, etc. for transmitting and receiving IP data by wired communication and / or wireless communication (WiFi, etc.) May be an interface for performing wireless communication.
  • NIC Network Interface Controller
  • Bluetooth registered trademark
  • WiFi wireless communication
  • the image processing apparatus 100 may be communicably connected to an external apparatus via a network using the communication unit 116.
  • the sensor unit 114 detects a physical quantity and converts it into a signal (digital signal) of another medium.
  • the sensor unit 114 includes a proximity sensor, a direction sensor, a magnetic field sensor, a linear acceleration sensor, a luminance sensor, a gyro sensor, a pressure sensor, a gravity sensor, an acceleration sensor, an atmospheric pressure sensor, and / or a temperature sensor. Also good.
  • the input / output unit 112 performs data input / output (I / O).
  • the input / output unit 112 may be, for example, a key input unit, a touch panel, a control pad (for example, a touch pad and a game pad), a mouse, a keyboard, and / or a microphone.
  • the input / output unit 112 may be a display unit that displays a display screen of an application or the like (for example, a display, a monitor, a touch panel, or the like configured by liquid crystal or organic EL).
  • a display screen of an application or the like for example, a display, a monitor, a touch panel, or the like configured by liquid crystal or organic EL.
  • the input / output unit 112 may be an audio output unit (for example, a speaker or the like) that outputs audio information as audio.
  • the input / output unit (touch panel) 112 may include a sensor unit 114 that detects physical contact and converts it into a signal (digital signal).
  • the image capturing unit 110 acquires still image data by capturing a still image of a subject (for example, a form or the like).
  • the imaging unit 110 may acquire captured image data.
  • the photographing unit 110 may acquire continuous (moving image) image data (frames) by continuously capturing images (moving image capturing) of the subject.
  • the imaging unit 110 may acquire video data.
  • the imaging unit 110 may acquire ancillary data.
  • the frame may be non-compressed image data.
  • the frame may be high-resolution image data.
  • the high resolution may be full high vision, 4K resolution, super high vision (8K resolution), or the like.
  • the photographing unit 110 may shoot moving images at 24 fps or 30 fps.
  • the image capturing unit 110 may be a camera including an image sensor such as a CCD (Charge Coupled Device) and / or a CMOS (Complementary Metal Oxide Semiconductor).
  • the storage unit 106 is storage means, for example, a memory such as RAM / ROM, a fixed disk device such as a hard disk, an SSD (Solid State Drive), and / or a tangible storage device such as an optical disk, or a storage circuit. Can be used.
  • a memory such as RAM / ROM
  • a fixed disk device such as a hard disk, an SSD (Solid State Drive)
  • a tangible storage device such as an optical disk, or a storage circuit. Can be used.
  • the storage unit 106 stores various databases, tables, buffers, and / or files (necessary information area file 106a, image data file 106b, etc.).
  • the storage unit 106 may store a computer program or the like for giving a command to a CPU (Central Processing Unit) and performing various processes.
  • CPU Central Processing Unit
  • the necessary information area file 106a stores boundary data of the necessary information area in the subject area.
  • the necessary information area may be an image corresponding to the whiteboard (entire).
  • the necessary information area may be an area where necessary information can be visually recognized in the subject area.
  • the area where necessary information can be visually recognized may be an area including letters, numbers, symbols, figures, photographs, and / or seals.
  • the subject area may be a document image of a document (form) included in a read image based on a frame.
  • the form may be a prescribed form such as various licenses including a driver's license, various identification cards, or a health insurance card.
  • the necessary information area file 106a stores boundary data of boundaries that are joints of necessary information areas in advance for a known document that is a subject.
  • the image data file 106b stores image data (such as a frame).
  • the image data file 106b includes subject area image data, necessary information area image data, non-shiny area image data, composite image data, divided area image data, non-shiny divided area image data, captured image data, and / or Document image data may be stored.
  • the control unit 102 is a CPU, GPU (Graphics Processing Unit), DSP (Digital Signal Processor), LSI (Large Scale Integration / Integration Specified and ASIC), which controls the image processing apparatus 100 in an integrated manner.
  • it may be composed of a tangible controller including a FPGA (Field-Programming Gate Array) or a control circuit.
  • control unit 102 has an internal memory for storing a control program, a program defining various processing procedures, and necessary data, and performs information processing for executing various processes based on these programs. Do.
  • control unit 102 functionally conceptually includes a frame acquisition unit 102a, a subject region acquisition unit 102b, a necessary information region acquisition unit 102c, a shine detection unit 102d, a non-shine region acquisition unit 102e, a divided region acquisition unit 102f, and an image.
  • a synthesis unit 102g, a division synthesis unit 102h, and an OCR unit 102i are provided.
  • the frame acquisition unit 102a acquires a frame (captured image data of a captured image).
  • the frame acquisition unit 102a may acquire a frame imaged by the imaging unit 110 or an external imaging device.
  • the frame acquisition unit 102a may acquire captured image data of a captured image including a subject area.
  • the frame acquisition unit 102a may acquire still image data by controlling still image shooting by the shooting unit 110.
  • the frame acquisition unit 102a may acquire a frame corresponding to one frame by controlling continuous image shooting or moving image shooting by the shooting unit 110.
  • the subject area acquisition unit 102b acquires subject area image data of the subject area from the frame.
  • the subject area acquisition unit 102b may acquire document image data of a document image from a frame.
  • the necessary information area acquisition unit 102c detects a necessary information area in the subject area and acquires necessary information area image data of the necessary information area.
  • the necessary information area acquisition unit 102c may detect the necessary information area based on the boundary data of the necessary information area stored in the necessary information area file 106a and acquire the necessary information area image data.
  • the shine detection unit 102d detects shine on the necessary information area image data.
  • the shine detection unit 102d may detect shine on each divided region image data.
  • the shine detection unit 102d may detect the shine based on a comparison between the luminance of the necessary information area image data and a predetermined threshold value.
  • the non-shine area acquisition unit 102e acquires non-shine area image data that is necessary information area image data in which no shine is detected by the shine detection section 102d.
  • the non-shine area acquisition unit 102e may acquire non-shine division area image data that is division area image data in which no shine has been detected by the shine detection section 102d.
  • the divided area acquisition unit 102f detects a non-character area by character detection processing on the necessary information area image data in which the shine is detected by the shine detection unit 102d, and divides the necessary information area into the non-character areas. Get the data.
  • the divided region acquisition unit 102f detects the non-character region by the edge detection method for the necessary information region image data in which the shine is detected by the shine detection unit 102d, and acquires the divided region image data of the divided region. Also good.
  • the image composition unit 102g acquires composite image data obtained by combining a plurality of non-shine area image data acquired by the non-shine area acquisition unit 102e.
  • the image composition unit 102g may acquire composite image data obtained by combining the non-shiny region image data and the region external image data of the subject region excluding the necessary information region.
  • the image composition unit 102g may acquire composite image data obtained by combining a plurality of non-shine area image data.
  • the division synthesis unit 102h acquires non-shine area image data by synthesizing the non-shine division area image data acquired by the non-shine area acquisition unit 102e.
  • the OCR unit 102i performs OCR processing on the image data and acquires character data.
  • the OCR unit 102i may perform the OCR process on the non-shine area image data to acquire character data.
  • the OCR unit 102i may perform character image data by performing OCR processing on the composite image data.
  • FIG. 2 is a flowchart illustrating an example of processing in the image processing apparatus 100 according to the present embodiment.
  • the frame acquisition unit 102a initializes the setting of the imaging unit 110 according to the subject, controls the start of moving image shooting by the imaging unit 110, and acquires a frame (step SA-1). .
  • moving image shooting of the subject by the camera device is started.
  • the subject area acquisition unit 102b detects a subject area in the captured image based on the frame, acquires subject area image data of the subject area, and stores (records) it in the image data file 106b (step SA-2).
  • the subject area in the captured image is detected during moving image shooting.
  • the detection of the subject region in the captured image may be performed using processing such as edge detection and / or feature point detection.
  • the necessary information area acquisition unit 102c detects the necessary information area in the subject area and acquires the necessary information area image data of the necessary information area (step SA-3).
  • FIG. 3 is a diagram illustrating an example of a necessary information area in the present embodiment.
  • area 1 name
  • area 2 date of birth
  • area 3 address
  • area 4 delivery date
  • area 5 expiration date
  • the area 6 license number
  • the area 7 face photograph
  • the dotted line portion may be a joint (boundary).
  • a region that is not covered by the necessary information region in the subject image may be outside the region.
  • the outside of the area may be specified from the subject image acquired last before the image composition.
  • the shine detection unit 102d detects the shine for each necessary information area image data based on the comparison between the luminance of the necessary information area image data and a predetermined threshold (step SA-4).
  • the necessary information area without the shine in the subject is specified by detecting the shine in the subject area.
  • the detection of the shine in the subject area it may be determined that the shine has been detected when the average value in the window> 200 is established as the threshold value determination of the background estimation value.
  • the non-shine area acquisition unit 102e acquires non-shine area image data, which is necessary information area image data in which no shine has been detected by the shine detection section 102d, and records it in the image data file 106b (step SA-5). .
  • image data of a necessary information area without shine is recorded.
  • FIG. 4 and FIG. 5 are diagrams showing an example of necessary information area division in the present embodiment.
  • the necessary information area when only a part of the necessary information area is detected when the shine is detected, the necessary information area may be divided to acquire the non-shine area image data.
  • the necessary information area A that is the date of driver license is divided into a divided area B and a divided area C as shown in FIG. 5. .
  • the boundary between the divided region B and the divided region C becomes a new joint, but character detection is performed so that the joint does not include a character, and it is determined that the character is not a character.
  • a non-character area may be set as a joint for division.
  • an edge detection method or the like may be used as a character detection method.
  • the non-shiny divided region image data is obtained for each of the divided region B and the divided region C, and the non-shiny region image data of the necessary information region A is obtained by recombining. May be.
  • FIGS. 6 to 8 are diagrams showing an example of necessary information area division in the present embodiment.
  • an image captured using a whiteboard as a subject may be detected as the necessary information area D.
  • the division method of the necessary information area D is used.
  • the boundary between the divided area E and the divided area F may be set as a joint under the character string “> Agenda” where no edge is detected.
  • the gloss of the whiteboard reflects the office lighting well, and there is a problem that it is greatly affected by the shine, but by utilizing this embodiment, the whiteboard that avoids the influence of the shine is a problem.
  • the acquisition of non-shine area image data by scanning is realized.
  • the whiteboard on which the contents of the proceedings are recorded is taken with a mobile camera and OCR is performed. Since it can be converted into text data, efficiency in office work such as meeting minutes is promoted.
  • the non-shine area acquisition unit 102e determines whether non-shine area image data of all necessary information areas included in the subject area has been acquired (step SA-6).
  • step SA-2 to step SA-5 is repeated to determine whether image data of the necessary information area without the shine of the entire subject has been acquired.
  • step SA-6 determines that non-shine area image data of all necessary information areas included in the subject area has not been acquired. If the non-shine area acquisition unit 102e determines that non-shine area image data of all necessary information areas included in the subject area has not been acquired (step SA-6: No), the process proceeds to step SA-2. To migrate.
  • step SA-6 determines that non-shine area image data of all necessary information areas included in the subject area has been acquired.
  • the image composition unit 102g obtains composite image data obtained by combining the non-shiny region image data of all necessary information regions included in the subject region and the region external image data of the subject region excluding the necessary information region ( Step SA-7).
  • the images are combined to create a subject image without shine.
  • FIG. 9 is a diagram illustrating an example of image composition in the present embodiment.
  • the necessary information area image data in which the shine of both image data is not detected may be recorded as the non-shine area image data.
  • the OCR unit 102i performs OCR processing on the composite image data to acquire character data, and records the character data in the image data file 106b in association with the subject area image data (step SA-8). ), The process is terminated.
  • a highly accurate OCR success rate can be achieved by performing the OCR process on the acquired composite image data.
  • FIG. 10 is a diagram illustrating an example of an OCR processing result in the present embodiment.
  • the OCR process is performed on the synthesized image data synthesized in FIG. 9, so that the OCR process is performed on the shining image data itself.
  • high OCR accuracy is realized.
  • the personal information (name, date of birth, address, delivery) described in the driver's license is obtained by scanning the driver's license with a mobile camera and performing OCR processing. Date and license number, etc.).
  • processing such as personal authentication by comparing character data acquired by OCR processing with a personal information database can be easily performed.
  • an information area for example, a text field or a face photograph
  • a known document type such as various licenses or invoices.
  • the boundary of the necessary information area is used as a joint for a document type known in advance.
  • noise components may be mixed into the text portion, which may cause deterioration in OCR accuracy.
  • the text portion is used as a synthesis joint. By not doing so, high OCR accuracy is achieved.
  • the OCR process can be performed on the synthetic image data without the shine using the shine detection, the OCR process avoiding the adverse effect due to the shine is realized, and the character recognition has a high accuracy. Can be achieved.
  • image data without shine can be quickly synthesized by combining shine detection and moving image processing technology.
  • the shine detection is executed for each necessary information area in the subject area in the photographed image, it is not necessary to repeat photographing until the entire subject area is not shining.
  • the number of retries during moving image shooting can be reduced, and quick OCR processing can be performed.
  • document media such as various licenses or health insurance cards can be easily taken and applied to OCR, it can be used as a means of personal authentication, so that contract procedures at commercial counters or stores can be simplified. It is becoming.
  • a technique for dealing with shine a technique for dealing with shine using the characteristics of a mobile camera that allows a mobile camera to shoot a movie while moving the shooting position is disclosed.
  • a partial image that does not have shine is extracted and synthesized by including a necessary content, so that an image of a subject image without shine is obtained.
  • Data generation is realized.
  • OCR processing is performed on the composite image data to achieve high accuracy of OCR.
  • retry processing is practically performed by detecting shine before OCR processing, so that, in the case of an image that has been lost, OCR execution is rejected, and until an image without shine is obtained, photographing is requested again. It was.
  • the OCR when performing OCR quickly, even if shine occurs in a part of the image, the OCR is performed on a portion that is not shining, so that photographing is performed as much as possible.
  • the number of retries can be reduced.
  • the image processing apparatus 100 may perform processing in a stand-alone form, performs processing in response to a request from a client terminal (which is a separate housing from the image processing apparatus 100), and the processing result is You may make it return to a client terminal.
  • a client terminal which is a separate housing from the image processing apparatus 100
  • all or a part of the processes described as being automatically performed can be manually performed, or all of the processes described as being manually performed can be performed.
  • a part can be automatically performed by a known method.
  • processing procedure, control procedure, specific name, information including parameters such as registration data or search conditions for each processing, screen examples, or database configuration shown in the description and drawings are specially noted. It can be changed arbitrarily except for.
  • the illustrated components are functionally conceptual, and need not be physically configured as illustrated.
  • each device of the image processing apparatus 100 particularly the processing functions performed by the control unit 102, are executed by the CPU and a program interpreted and executed by the CPU. You may implement
  • the program is recorded on a non-transitory computer-readable recording medium including a programmed instruction for causing a computer to execute the method according to the present invention, which will be described later, and an image processing apparatus as necessary.
  • 100 mechanically read. That is, in the storage unit 106 such as a ROM or an HDD, computer programs for performing various processes by giving instructions to the CPU in cooperation with an OS (Operating System) are recorded. This computer program is executed by being loaded into the RAM, and constitutes a control unit in cooperation with the CPU.
  • OS Operating System
  • the computer program may be stored in an application program server connected to the image processing apparatus 100 via an arbitrary network, and may be downloaded in whole or in part as necessary. is there.
  • the program according to the present invention may be stored in a computer-readable recording medium, or may be configured as a program product.
  • the “recording medium” includes a memory card, USB memory, SD card, flexible disk, magneto-optical disk, ROM, EPROM, EEPROM, CD-ROM, MO, DVD, and Blu-ray (registered trademark). It includes any “portable physical medium” such as Disc.
  • program is a data processing method described in an arbitrary language or description method, and may be in any form such as source code or binary code. Note that the “program” is not necessarily limited to a single configuration, and functions are achieved in cooperation with a separate configuration such as a plurality of modules and libraries or a separate program represented by the OS. Including things. In addition, a well-known structure and procedure can be used about the specific structure for reading a recording medium in each apparatus shown in embodiment, a reading procedure, or the installation procedure after reading.
  • Various databases and the like stored in the storage unit 106 are storage means such as a memory device such as a RAM or a ROM, a fixed disk device such as a hard disk, a flexible disk, and / or an optical disk.
  • Various programs, tables, databases, and / or web page files used may be stored.
  • the image processing apparatus 100 may be configured as an information processing apparatus such as a known personal computer, or may be configured by connecting an arbitrary peripheral device to the information processing apparatus.
  • the image processing apparatus 100 may be realized by installing software (including programs, data, and the like) that causes the information processing apparatus to realize the method of the present invention.
  • the specific form of distribution / integration of the devices is not limited to that shown in the figure, and all or a part of them may be functional or physical in arbitrary units according to various additions or according to functional loads. Can be distributed and integrated. That is, the above-described embodiments may be arbitrarily combined and may be selectively implemented.
  • the image processing apparatus, the image processing method, and the program can be implemented in many industrial fields, particularly in the image processing field that handles images read by a camera, and are extremely useful.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

撮影されたフレームを取得し、フレームから被写体領域の被写体領域画像データを取得し、被写体領域における必要情報領域を検出し、必要情報領域の必要情報領域画像データを取得し、必要情報領域画像データに対してテカリを検出し、テカリが検出されなかった必要情報領域画像データである非テカリ領域画像データを取得する。

Description

画像処理装置、画像処理方法、および、プログラム
 本発明は、画像処理装置、画像処理方法、および、プログラムに関する。
 従来から、画像データのテカリを補正する技術が開示されている。
 ここで、画像内の輝度等の色情報の窓内平均値を背景とし、画像内の輝度ムラを補正する技術が開示されている(特許文献1を参照)。
 また、撮影画像内の白飛び領域を検出し、白飛び領域を修正対象領域として、修正対象領域に相当する他の画像における領域を抽出し、合成することで白飛び領域の無い画像を生成する技術が開示されている(特許文献2を参照)。
特表2015-503813号公報 特開2013-229698号公報
 しかしながら、従来の画像処理装置(特許文献1等)においては、複数の画像を画像合成する場合であっても、文字を含まない領域を画像合成の繋ぎ目、すなわち、画像間の境界として選択できるものではないため、文字部分を横切るような繋ぎ目が選択されることがあり、文字のボケ等によるOCR(Optical Character Recognition)に不適切な画質の画像が取得されてしまうことがあるという問題点を有していた。
 本発明は、上記問題点に鑑みてなされたもので、蛍光灯などの照明により被写体がテカってしまう状況下でも、OCR等に適した画像データを取得することができる画像処理装置、画像処理方法、および、プログラムを提供することを目的とする。
 このような目的を達成するため、本発明に係る画像処理装置は、撮影されたフレームを取得するフレーム取得手段と、前記フレームから被写体領域の被写体領域画像データを取得する被写体領域取得手段と、前記被写体領域における必要情報領域を検出し、前記必要情報領域の必要情報領域画像データを取得する必要情報領域取得手段と、前記必要情報領域画像データに対してテカリを検出するテカリ検出手段と、前記テカリ検出手段により前記テカリが検出されなかった前記必要情報領域画像データである非テカリ領域画像データを取得する非テカリ領域取得手段と、を備えたことを特徴とする。
 また、本発明に係る画像処理方法は、撮影されたフレームを取得するフレーム取得ステップと、前記フレームから被写体領域の被写体領域画像データを取得する被写体領域取得ステップと、前記被写体領域における必要情報領域を検出し、前記必要情報領域の必要情報領域画像データを取得する必要情報領域取得ステップと、前記必要情報領域画像データに対してテカリを検出するテカリ検出ステップと、前記テカリ検出ステップにて前記テカリが検出されなかった前記必要情報領域画像データである非テカリ領域画像データを取得する非テカリ領域取得ステップと、を含むことを特徴とする。
 また、本発明に係るプログラムは、撮影されたフレームを取得するフレーム取得ステップと、前記フレームから被写体領域の被写体領域画像データを取得する被写体領域取得ステップと、前記被写体領域における必要情報領域を検出し、前記必要情報領域の必要情報領域画像データを取得する必要情報領域取得ステップと、前記必要情報領域画像データに対してテカリを検出するテカリ検出ステップと、前記テカリ検出ステップにて前記テカリが検出されなかった前記必要情報領域画像データである非テカリ領域画像データを取得する非テカリ領域取得ステップと、をコンピュータに実行させることを特徴とする。
 この発明によれば、画像合成の繋ぎ目として予め文字部分等の必要な領域が含まれない境界を選択できるため、合成による文字部分等の画質劣化に繋がる要因がなく、高いOCR精度を実現することができる。
 また、この発明によれば、オフィス内の蛍光灯などの照明により、被写体がテカってしまう状況下でも、OCR実施向けの画像データの取得が可能となる。
 このため、この発明によれば、従来使用できなかった環境下においてもOCRが実施することができるようになり、利用用途が拡大する。
 また、この発明によれば、被写体がテカってしまう状況で、テカリの無い画像データの取得ができるまで動画像撮影を繰り返す必要性がなくなるため、処理が完了するまでの時間を短縮することができる。
 また、この発明によれば、取得された部分画像に対して必ずしも合成処理を施さなくても、ユーザが必要とする被写体に記載された情報を取得することができる。
図1は、本実施形態に係る画像処理装置の構成の一例を示すブロック図である。 図2は、本実施形態の画像処理装置における処理の一例を示すフローチャートである。 図3は、本実施形態における必要情報領域の一例を示す図である。 図4は、本実施形態における必要情報領域分割の一例を示す図である。 図5は、本実施形態における必要情報領域分割の一例を示す図である。 図6は、本実施形態における必要情報領域分割の一例を示す図である。 図7は、本実施形態における必要情報領域分割の一例を示す図である。 図8は、本実施形態における必要情報領域分割の一例を示す図である。 図9は、本実施形態における画像合成の一例を示す図である。 図10は、本実施形態におけるOCR処理結果の一例を示す図である。
 以下に、本発明に係る画像処理装置、画像処理方法、および、プログラムの実施形態を図面に基づいて詳細に説明する。なお、この実施形態により本発明が限定されるものではない。
[本実施形態の構成]
 以下、本発明の実施形態に係る画像処理装置100の構成の一例について図1を参照して説明し、その後、本実施形態の処理等について詳細に説明する。図1は、本実施形態に係る画像処理装置100の構成の一例を示すブロック図である。
 但し、以下に示す実施形態は、本発明の技術思想を具体化するための画像処理装置100を例示するものであって、本発明をこの画像処理装置100に特定することを意図するものではなく、請求の範囲に含まれるその他の実施形態の画像処理装置100にも等しく適用し得るものである。
 また、本実施形態で例示する画像処理装置100における機能分散の形態は以下に限られず、同様の効果や機能を奏し得る範囲において、任意の単位で機能的または物理的に分散・統合して構成することができる。
 ここで、画像処理装置100は、例えば、タブレット端末、携帯電話、スマートフォン、PHS、PDA、ノート型のパーソナルコンピュータ、または、メガネ型もしくは時計型などのウェアラブルコンピュータ等の可搬性を有する携帯型の情報処理装置(モバイル端末)であってもよい。
 まず、図1に示すように、画像処理装置100は、概略的に、制御部102と記憶部106と撮影部110と入出力部112とセンサ部114と通信部116とを備えて構成される。
 なお、図1において、画像処理装置100は、筐体内に撮影部110を備えたモバイル端末として示しているが、筐体内に撮影部110を備えておらず、外部の撮影装置から撮影画像データを受信する構成(例えば、デスクトップ型のパーソナルコンピュータ等)であってもよい。
 ここで、図1では省略しているが、本実施形態において、更に、入出力部112と制御部102とを接続する入出力インターフェース部(図示せず)を備えていてもよい。これら画像処理装置100の各部は任意の通信路を介して通信可能に接続されている。
 ここで、通信部116は、有線通信および/または無線通信(WiFi等)によりIPデータを送受信するためのネットワークインターフェース(NIC(Network Interface Controller)等)、Bluetooth(登録商標)、または、赤外線通信等によって無線通信を行うインターフェースであってもよい。
 ここで、画像処理装置100は、通信部116を用いて、ネットワークを介して外部装置と通信可能に接続されていてもよい。
 また、センサ部114は、物理量を検出して別媒体の信号(デジタル信号)に変換する。ここで、センサ部114は、近接センサ、方角センサ、磁場センサ、直線加速センサ、輝度センサ、ジャイロセンサ、圧力センサ、重力センサ、加速度センサ、気圧センサ、および/または、温度センサ等を含んでいてもよい。
 また、入出力部112は、データの入出力(I/O)を行う。ここで、入出力部112は、例えば、キー入力部、タッチパネル、コントロールパッド(例えば、タッチパッド、および、ゲームパッド等)、マウス、キーボード、および/または、マイク等であってもよい。
 また、入出力部112は、アプリケーション等の表示画面を表示する表示部(例えば、液晶または有機EL等から構成されるディスプレイ、モニタ、または、タッチパネル等)であってもよい。
 また、入出力部112は、音声情報を音声として出力する音声出力部(例えば、スピーカ等)であってもよい。また、入出力部(タッチパネル)112は、物理的接触を検出し、信号(デジタル信号)に変換するセンサ部114を含んでいてもよい。
 また、撮影部110は、被写体(例えば、帳票等)を静止画撮影することで、静止画の画像データを取得する。例えば、撮影部110は、撮影画像データを取得してもよい。
 また、撮影部110は、被写体を連続画像撮影(動画撮影)することで、連続(動画)の画像データ(フレーム)を取得してもよい。例えば、撮影部110は、映像データを取得してもよい。また、撮影部110は、アンシラリデータを取得してもよい。
 ここで、フレームは、非圧縮の画像データであってもよい。また、フレームは、高解像度の画像データであってもよい。ここで、高解像度とは、フルハイビジョン、4K解像度、または、スーパーハイビジョン(8K解像度)等であってもよい。
 また、撮影部110は、24fpsまたは30fps等で動画撮影してもよい。ここで、撮影部110は、CCD(Charge Coupled Device)、および/または、CMOS(Complementary Metal Oxide Semiconductor)等の撮像素子を備えたカメラ等であってもよい。
 記憶部106は、ストレージ手段であり、例えばRAM・ROM等のメモリ、ハードディスクのような固定ディスク装置、SSD(Solid State Drive)、および/または、光ディスク等の有形の記憶装置、または、記憶回路を用いることができる。
 また、記憶部106は、各種のデータベース、テーブル、バッファ、および/または、ファイル(必要情報領域ファイル106a、および、画像データファイル106b等)を格納する。ここで、記憶部106には、CPU(Central Processing Unit)に命令を与え各種処理を行うためのコンピュータプログラム等が記録されていてもよい。
 これら記憶部106の各構成要素のうち、必要情報領域ファイル106aは、被写体領域における必要情報領域の境界データを記憶する。ここで、必要情報領域は、ホワイトボード(全体)に相当する画像であってもよい。
 また、必要情報領域は、被写体領域において必要な情報が視認可能な領域であってもよい。ここで、必要な情報が視認可能な領域とは、文字、数字、記号、図形、写真、および/または、印影等を含む領域であってもよい。
 また、被写体領域は、フレームに基づく読取画像に含まれる原稿(帳票)の原稿画像であってもよい。また、帳票は、運転免許証を含む各種免許証、各種身分証明書、または、健康保険証等の規定帳票であってもよい。
 このように、必要情報領域ファイル106aは、被写体となる既知の原稿について、必要情報領域の繋ぎ目となる境界の境界データを事前に記憶している。
 また、画像データファイル106bは、画像データ(フレーム等)を記憶する。ここで、画像データファイル106bは、被写体領域画像データ、必要情報領域画像データ、非テカリ領域画像データ、合成画像データ、分割領域画像データ、非テカリ分割領域画像データ、撮影画像データ、および/または、原稿画像データを記憶していてもよい。
 また、制御部102は、画像処理装置100を統括的に制御するCPU、GPU(Graphics Processing Unit)、DSP(Digital Signal Processor)、LSI(Large Scale Integration)、ASIC(Application Specific Integrated Circuit)、および/または、FPGA(Field-Programming Gate Array)等を含む有形のコントローラ、または、制御回路から構成されてもよい。
 また、制御部102は、制御プログラムと各種の処理手順等を規定したプログラムと所要データとを格納するための内部メモリを有し、これらプログラムに基づいて種々の処理を実行するための情報処理を行う。
 ここで、制御部102は、機能概念的に、フレーム取得部102a、被写体領域取得部102b、必要情報領域取得部102c、テカリ検出部102d、非テカリ領域取得部102e、分割領域取得部102f、画像合成部102g、分割合成部102h、および、OCR部102iを備える。
 フレーム取得部102aは、フレーム(撮影画像の撮影画像データ)を取得する。ここで、フレーム取得部102aは、撮影部110または外部の撮影装置にて撮影されたフレームを取得してもよい。
 また、フレーム取得部102aは、被写体領域を含む撮影画像の撮影画像データを取得してもよい。また、フレーム取得部102aは、撮影部110による静止画撮影を制御して、撮影画像データを取得してもよい。
 また、フレーム取得部102aは、撮影部110による連続画像撮影または動画撮影を制御して、1コマに相当するフレームを取得してもよい。
 被写体領域取得部102bは、フレームから被写体領域の被写体領域画像データを取得する。例えば、被写体領域取得部102bは、フレームから原稿画像の原稿画像データを取得してもよい。
 必要情報領域取得部102cは、被写体領域における必要情報領域を検出し、必要情報領域の必要情報領域画像データを取得する。
 ここで、必要情報領域取得部102cは、必要情報領域ファイル106aに記憶された必要情報領域の境界データに基づいて、必要情報領域を検出し、必要情報領域画像データを取得してもよい。
 テカリ検出部102dは、必要情報領域画像データに対してテカリを検出する。ここで、テカリ検出部102dは、各分割領域画像データに対してテカリを検出してもよい。
 また、テカリ検出部102dは、必要情報領域画像データの輝度と所定の閾値との比較に基づいて、テカリを検出してもよい。
 非テカリ領域取得部102eは、テカリ検出部102dによりテカリが検出されなかった必要情報領域画像データである非テカリ領域画像データを取得する。
 ここで、非テカリ領域取得部102eは、テカリ検出部102dによりテカリが検出されなかった分割領域画像データである非テカリ分割領域画像データを取得してもよい。
 分割領域取得部102fは、テカリ検出部102dによりテカリが検出された必要情報領域画像データに対する文字検出処理により非文字領域を検出し、必要情報領域を非文字領域で分割した分割領域の分割領域画像データを取得する。
 ここで、分割領域取得部102fは、テカリ検出部102dによりテカリが検出された必要情報領域画像データに対してエッジ検出法により非文字領域を検出し、分割領域の分割領域画像データを取得してもよい。
 画像合成部102gは、非テカリ領域取得部102eにより取得された複数の非テカリ領域画像データを合成した合成画像データを取得する。
 ここで、画像合成部102gは、非テカリ領域画像データと、必要情報領域を除く被写体領域の領域外部画像データと、を合成した合成画像データを取得してもよい。
 また、画像合成部102gは、被写体領域に含まれる全ての必要情報領域の非テカリ領域画像データが取得された場合、複数の非テカリ領域画像データを合成した合成画像データを取得してもよい。
 分割合成部102hは、非テカリ領域取得部102eにより取得された非テカリ分割領域画像データを合成することで、非テカリ領域画像データを取得する。
 OCR部102iは、画像データに対してOCR処理を行い、文字データを取得する。ここで、OCR部102iは、非テカリ領域画像データに対してOCR処理を行い、文字データを取得してもよい。
 また、OCR部102iは、合成画像データに対してOCR処理を行い、文字データを取得してもよい。
[本実施形態の処理]
 上述した構成の画像処理装置100(モバイル端末)で実行される処理の一例について、図2から図10を参照して、本実施形態におけるOCR処理の一例について説明する。図2は、本実施形態の画像処理装置100における処理の一例を示すフローチャートである。
 図2に示すように、まず、フレーム取得部102aは、被写体に応じて撮影部110の設定を初期化し、撮影部110による動画撮影開始を制御して、フレームを取得する(ステップSA-1)。
 すなわち、本実施形態においては、カメラデバイスによる被写体の動画撮影を開始する。
 そして、被写体領域取得部102bは、フレームに基づく撮影画像内の被写体領域を検出し、被写体領域の被写体領域画像データを取得し、画像データファイル106bに格納(記録)する(ステップSA-2)。
 すなわち、本実施形態においては、動画撮影の間、撮影画像内の被写体領域を検出する。ここで、撮影画像内の被写体領域の検出は、エッジ検出、および/または、特徴点検出等の処理を用いて行ってもよい。
 そして、必要情報領域取得部102cは、被写体領域における必要情報領域を検出し、必要情報領域の必要情報領域画像データを取得する(ステップSA-3)。
 ここで、図3を参照して、既知の原稿種における必要情報領域、および、繋ぎ目の一例について説明する。図3は、本実施形態における必要情報領域の一例を示す図である。
 図3に示す運転免許証においては、点線で囲まれた領域1(氏名)、領域2(生年月日)、領域3(住所)、領域4(交付日)、領域5(有効期限日)、領域6(免許証番号)および領域7(顔写真)が、必要情報領域であり、点線部が、繋ぎ目(境界)であってもよい。
 ここで、本実施形態においては、被写体画像において、必要情報領域が被覆しない領域を、領域外部としてもよい。なお、本実施形態において、領域外部は、画像合成前の最後に取得された被写体画像から特定してもよい。
 また、本実施形態においては、必要情報領域が被写体画像全域を被覆する場合、領域外部は存在しない。
 図2に戻り、テカリ検出部102dは、必要情報領域画像データの輝度と所定の閾値との比較に基づいて、必要情報領域画像データ毎にテカリを検出する(ステップSA-4)。
 すなわち、本実施形態においては、被写体領域内にてテカリ検出を実施することで、被写体内のテカリの無い必要情報領域を特定する。
 ここで、本実施形態において、被写体領域内のテカリ検出としては、輝度の閾値判定として、画像データのRGBについて、(0.299*R+0.587*G+0.114*B)>250が成立する場合、テカリが検出されたと判定してもよい。
 また、本実施形態において、被写体領域内のテカリ検出としては、背景推定値の閾値判定として、窓内平均値>200が成立する場合、テカリが検出されたと判定してもよい。
 そして、非テカリ領域取得部102eは、テカリ検出部102dによりテカリが検出されなかった必要情報領域画像データである非テカリ領域画像データを取得し、画像データファイル106bに記録する(ステップSA-5)。
 すなわち、本実施形態においては、テカリ無しの必要情報領域の画像データを記録する。
 ここで、図4および図5を参照して、本実施形態における必要情報領域分割による非テカリ領域画像データ取得処理の一例について説明する。図4および図5は、本実施形態における必要情報領域分割の一例を示す図である。
 本実施形態においては、テカリが検出された際に、必要情報領域内部の一部のみがテカっている場合、必要情報領域を分割することで、非テカリ領域画像データを取得してもよい。
 すなわち、図4に示すように、本実施形態においては、運転免許証の交付日欄である必要情報領域Aを、図5に示すように、分割領域Bおよび分割領域Cへ分割してもよい。
 ここで、本実施形態においては、分割領域Bと分割領域Cとの境界が新たな繋ぎ目となるが、当該繋ぎ目が文字を含まないように文字検出を実施し、文字でないと判断された非文字領域を、分割のための繋ぎ目として設定してもよい。
 ここで、文字検出手法としては、エッジ検出法等を用いてもよい。
 そして、本実施形態においては、分割領域Bと分割領域Cとのそれぞれについて、非テカリ分割領域画像データを取得して、再合成することで、必要情報領域Aの非テカリ領域画像データを取得してもよい。
 また、図6から図8を参照して、本実施形態におけるホワイトボードにおける必要情報領域分割の一例について説明する。図6から図8は、本実施形態における必要情報領域分割の一例を示す図である。
 図6に示すように、本実施形態においては、ホワイトボードを被写体として撮影された画像を必要情報領域Dとして検出してもよい。
 そして、図7に示すように、本実施形態においては、動画撮影を開始の後、ホワイトボードに相当する画像の一部にテカリGが生じた場合、必要情報領域Dの分割手法を使用して、エッジが検出されていない「>議題」の文字列の下に分割領域Eと分割領域Fとの境界を繋ぎ目として設定してもよい。
 そして、図8に示すように、本実施形態においては、カメラ撮影位置の変更により、室内照明によるテカリが生じる箇所をテカリJに変動させている。
 そして、図7で全体的にテカリGが生じていた分割領域Fに対して、更に、エッジが検出されていない「2.工程」の文字列の下に分割領域Hと分割領域Iとの境界を繋ぎ目として設定してもよい。
 このように、ホワイトボードの光沢は、オフィスの照明を良く反射してしまい、テカリの影響を大きく受けるという課題があったが、本実施形態を活用することで、テカリの影響を回避したホワイトボードスキャニングによる非テカリ領域画像データの取得を実現している。
 更に、本実施形態においては、テカリが無い分割領域画像データを収集することが可能であるため、最終的には、テカリのないホワイトボード全体の画像データを合成することができる。
 これにより、本実施形態においては、オフィスでの会議でホワイトボードを使用し打ち合わせ内容を記載する場合等に、議事内容が記載されたホワイトボードをモバイルカメラにて撮影し、OCRを実施することでテキストデータ化できるため、会議の議事録化等のオフィスワーク上の効率化が促進される。
 図2に戻り、非テカリ領域取得部102eは、被写体領域に含まれる全ての必要情報領域の非テカリ領域画像データが取得されたか否かを判定する(ステップSA-6)。
 すなわち、本実施形態においては、ステップSA-2からステップSA-5までの処理を繰り返し、被写体全域のテカリ無しの必要情報領域の画像データを取得されたかを判定する。
 そして、非テカリ領域取得部102eは、被写体領域に含まれる全ての必要情報領域の非テカリ領域画像データが取得されていないと判定した場合(ステップSA-6:No)、処理をステップSA-2に移行させる。
 一方、非テカリ領域取得部102eは、被写体領域に含まれる全ての必要情報領域の非テカリ領域画像データが取得されたと判定した場合(ステップSA-6:Yes)、処理をステップSA-7に移行させる。
 そして、画像合成部102gは、被写体領域に含まれる全ての必要情報領域の非テカリ領域画像データと、必要情報領域を除く被写体領域の領域外部画像データと、を合成した合成画像データを取得する(ステップSA-7)。
 すなわち、本実施形態においては、全領域が取得された場合、画像同士を合成し、テカリの無い被写体画像を作成する。
 ここで、図9を参照して、本実施形態における画像合成の一例について説明する。図9は、本実施形態における画像合成の一例を示す図である。
 図9に示すように、本実施形態においては、運転免許証の住所欄と交付日欄との間を境界(図9の点線)として、上部と下部とをそれぞれ必要情報領域として設定してもよい。
 そして、図9に示すように、本実施形態においては、動画撮影中に被写体(運転免許証)画像内の上部の生年月日欄Kおよび住所欄LにテカリMが発生した画像と、下部の免許証番号欄NにテカリPが発生した画像との画像データを取得してもよい。
 そして、両画像データのテカリが検出されない方の必要情報領域画像データを非テカリ領域画像データとして記録してもよい。
 そして、図9に示すように、非テカリ領域画像データ同士を合成し、合成画像データを取得してもよい。
 図2に戻り、OCR部102iは、合成画像データに対してOCR処理を実施して文字データを取得し、文字データを被写体領域画像データに対応付け画像データファイル106bに記録し(ステップSA-8)、処理を終了する。
 このように、本実施形態においては、取得された合成画像データにOCR処理を実施することで、高精度なOCR成功率を達成することができる。
 ここで、図10を参照して、本実施形態におけるOCR処理結果の一例について説明する。図10は、本実施形態におけるOCR処理結果の一例を示す図である。
 図10に示すように、図9におけるテカリMのある生年月日欄Kおよび住所欄Lに対してOCR処理をしようとした場合、適切に認識できないことがある。
 また、図10に示すように、図9におけるテカリPのある免許証番号欄Nに対してOCR処理しようとした場合も、適切に認識できないことがある。
 そこで、図10に示すように、本実施形態においては、図9にて合成された合成画像データに対しOCR処理を実施することで、テカリのある画像データ自体にOCR処理を実施する場合と比較して、高いOCR精度を実現している。
 ここで、店舗窓口等の実際の利用場面においては、照明が一様でなく、運転免許証の撮影画像がテカってしまうことで、精度高い文字認識が阻害されるような場合がある。
 そのような場合であっても、本実施形態においては、運転免許証をモバイルカメラによりスキャニングしてOCR処理を実施することで、運転免許証記載の個人情報(名前、生年月日、住所、交付日および免許証番号等)を精度よく取得することができる。
 これにより、本実施形態においては、OCR処理により取得された文字データを個人情報データベースと比較することによる個人認証等の処理を容易に実施することができる。
 このように、本実施形態においては、ドキュメント媒体にテカリが生じている状況でも、迅速かつ高精度なOCRを実施することができる。
 特に、本実施形態においては、既知の原稿種(各種免許証、または、請求書等)において、取得される必要のある情報領域(例えば、テキスト欄、または、顔写真等)を予め記憶して、画像合成の繋ぎ目となる箇所を特定することができる。
 すなわち、本実施形態においては、精度の高いOCRを実施するために、テキストが存在する箇所では、画像合成を実施せず、テキストが無い繋ぎ目を合成の対象とすることで、高いOCR精度を実現することができる。
 このように、本実施形態においては、事前に知られている原稿種について、必要情報領域の境界を繋ぎ目として使用している。
 もし、テキスト部分を横切る繋ぎ目にて画像合成を行った場合、テキスト部分にノイズ成分が混じる等、OCR精度劣化の原因となるため、本実施形態においては、テキスト部分を合成の繋ぎ目として使用しないことで、高いOCR精度を実現している。
 これにより、本実施形態においては、テカリ検出を利用して、テカリが無い合成画像データに対するOCR処理を実行することができるため、テカリによる悪影響を回避したOCR処理が実現され、文字認識の高精度化を図ることができる。
 また、本実施形態においては、テカリ検出と動画処理技術との組み合わせによる、テカリの無い画像データを迅速に合成することができる。
 また、本実施形態においては、撮影画像中の被写体領域における必要情報領域毎にテカリ検出を実行するため、被写体領域全域がテカっていない状況になるまで撮影を繰り返す必要がない。
 このため、本実施形態においては、動画撮影中のリトライ回数を低減することができ、迅速なOCR処理を実施することができる。
 近年、スマートフォン等に組み込まれたカメラデバイスの解像度向上により、モバイルカメラ撮影画像を用いOCRを実施することができるようになってきている。
 特に、各種免許証または健康保険証といったドキュメント媒体を手軽に撮影し、OCRにかけることにより、個人認証の手段として使用できるため、商業窓口または店舗での契約手続き等を簡素化することができるようになってきている。
 しかしながら、これらドキュメント媒体の多くは照明下にて光を反射し、撮影画像内にテカリ箇所が生じてしまうため、OCR認識性能を低下させてしまっている。
 また、顔写真といった個人認証に必要とされるコンテンツを含む画像部分にテカリが生じてしまうと、証明書としての役割を果たさなくなる。
 このため、テカリが生じてしまうシーンでも精度高くOCRを実施可能とし、必要となる部分画像を取得するためには、テカリの影響を除去、もしくは、回避する手法が必要であった。
 そこで、本実施形態においては、テカリへの対処技術として、モバイルカメラが撮影位置を移動させながら動画撮影が可能なモバイルカメラの特性を利用した、テカリへの対処技術を開示している。
 具体的には、本実施形態においては、リアルタイム撮影時にテカリ位置検出を実施することで、必要なコンテンツを含む、テカリのない部分画像を抽出し、合成することで、テカリの無い被写体画像の画像データの生成を実現している。
 そして、本実施形態においては、この合成画像データに対してOCR処理を実施することで、OCRの高精度化を実現している。
 また、従来から、撮影画像内の輝度分布の平均化手法等によりテカリ輝度分布を推定し、撮影画像からテカリ成分を差し引くことで、テカリの影響を取り除く手法はあった。
 しかしながら、テカリ分布を正確に推定することが困難なことから、テカリ成分が差し引かれた画像内に推定誤差起因のノイズが生じてしまい、OCR実行時の誤認識要因となっていた。
 また、従来から、画像内の色情報を元にテカリ位置を検出する手法があり、主に、画像全体の輝度値ヒストグラムに基づく大域的な手法と、画像内の局所的な輝度値に基づく局所的な手法と、があった。
 しかしながら、いずれの手法も、撮影画像がテカっているか否かを判定するためだけに用いられていた。
 特に、OCR処理の前にテカリ検出を行うことで、テカっている画像の場合、OCR実行を拒否し、テカリが無い画像が得られるまで、撮影を再度要求するような、リトライ処理が実用されていた。
 すなわち、いずれの手法においても、画像中の極一部にテカリが生じていれば、撮影を再要求するため、OCRが実施されるまでに、多くの撮影を繰り返す必要性があった。
 そこで、本実施形態においては、OCR実行前に、画像全面にテカリが無いと判定されるまで試行を繰り返す必要がないようにしている。
 そのため、本実施形態においては、迅速にOCRを実施する上で、画像中の一部にテカリが生じていたとしても、テカっていない箇所に対してOCRを実施することで、可能な限り撮影のリトライ回数を少なくすることができている。
 また、本実施形態においては、従来行われていたテカリ除去の画像処理を被写体領域に実行する必要が無いため、OCRの誤認識を減らすことができ、高精度のOCRを実現している。
[他の実施形態]
 さて、これまで本発明の実施形態について説明したが、本発明は、上述した実施形態以外にも、請求の範囲に記載した技術的思想の範囲内において種々の異なる実施形態にて実施されてよいものである。
 例えば、画像処理装置100は、スタンドアローンの形態で処理を行ってもよく、クライアント端末(画像処理装置100とは別筐体である)からの要求に応じて処理を行い、その処理結果を当該クライアント端末に返却するようにしてもよい。
 また、実施形態において説明した各処理のうち、自動的に行われるものとして説明した処理の全部または一部を手動的に行うこともでき、あるいは、手動的に行われるものとして説明した処理の全部または一部を公知の方法で自動的に行うこともできる。
 このほか、明細書中および図面中で示した処理手順、制御手順、具体的名称、各処理の登録データもしくは検索条件等のパラメータを含む情報、画面例、または、データベース構成については、特記する場合を除いて任意に変更することができる。
 また、画像処理装置100に関して、図示の各構成要素は機能概念的なものであり、必ずしも物理的に図示の如く構成されていることを要しない。
 例えば、画像処理装置100の各装置が備える処理機能、特に制御部102にて行われる各処理機能については、その全部または任意の一部を、CPUおよび当該CPUにて解釈実行されるプログラムにて実現してもよく、また、ワイヤードロジックによるハードウェアとして実現してもよい。
 なお、プログラムは、後述する、コンピュータに本発明に係る方法を実行させるためのプログラム化された命令を含む、一時的でないコンピュータ読み取り可能な記録媒体に記録されており、必要に応じて画像処理装置100に機械的に読み取られる。すなわち、ROMまたはHDDなどの記憶部106などには、OS(Operating System)と協働してCPUに命令を与え、各種処理を行うためのコンピュータプログラムが記録されている。このコンピュータプログラムは、RAMにロードされることによって実行され、CPUと協働して制御部を構成する。
 また、このコンピュータプログラムは、画像処理装置100に対して任意のネットワークを介して接続されたアプリケーションプログラムサーバに記憶されていてもよく、必要に応じてその全部または一部をダウンロードすることも可能である。
 また、本発明に係るプログラムを、コンピュータに読み取り可能な記録媒体に格納してもよく、また、プログラム製品として構成することもできる。ここで、この「記録媒体」とは、メモリーカード、USBメモリ、SDカード、フレキシブルディスク、光磁気ディスク、ROM、EPROM、EEPROM、CD-ROM、MO、DVD、および、Blu-ray(登録商標)Disc等の任意の「可搬用の物理媒体」を含むものとする。
 また、「プログラム」とは、任意の言語や記述方法にて記述されたデータ処理方法であり、ソースコードやバイナリコード等の形式を問わない。なお、「プログラム」は必ずしも単一的に構成されるものに限られず、複数のモジュールやライブラリとして分散構成されるものや、OSに代表される別個のプログラムと協働してその機能を達成するものも含む。なお、実施形態に示した各装置において記録媒体を読み取るための具体的な構成、読み取り手順、あるいは、読み取り後のインストール手順等については、周知の構成や手順を用いることができる。
 記憶部106に格納される各種のデータベース等は、RAMもしくはROM等のメモリ装置、ハードディスク等の固定ディスク装置、フレキシブルディスク、および/または、光ディスク等のストレージ手段であり、各種処理やウェブサイト提供に用いる各種のプログラム、テーブル、データベース、および/または、ウェブページ用ファイル等を格納してもよい。
 また、画像処理装置100は、既知のパーソナルコンピュータ等の情報処理装置として構成してもよく、また、該情報処理装置に任意の周辺装置を接続して構成してもよい。また、画像処理装置100は、該情報処理装置に本発明の方法を実現させるソフトウェア(プログラム、データ等を含む)を実装することにより実現してもよい。
 更に、装置の分散・統合の具体的形態は図示するものに限られず、その全部または一部を、各種の付加等に応じて、または、機能負荷に応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。すなわち、上述した実施形態を任意に組み合わせて実施してもよく、実施形態を選択的に実施してもよい。
 以上のように、画像処理装置、画像処理方法、および、プログラムは、産業上の多くの分野、特にカメラで読み込んだ画像を扱う画像処理分野で実施することができ、極めて有用である。
 100 画像処理装置
 102 制御部
 102a フレーム取得部
 102b 被写体領域取得部
 102c 必要情報領域取得部
 102d テカリ検出部
 102e 非テカリ領域取得部
 102f 分割領域取得部
 102g 画像合成部
 102h 分割合成部
 102i OCR部
 106 記憶部
 106a 必要情報領域ファイル
 106b 画像データファイル
 110 撮影部
 112 入出力部
 114 センサ部
 116 通信部

Claims (19)

  1.  撮影されたフレームを取得するフレーム取得手段と、
     前記フレームから被写体領域の被写体領域画像データを取得する被写体領域取得手段と、
     前記被写体領域における必要情報領域を検出し、前記必要情報領域の必要情報領域画像データを取得する必要情報領域取得手段と、
     前記必要情報領域画像データに対してテカリを検出するテカリ検出手段と、
     前記テカリ検出手段により前記テカリが検出されなかった前記必要情報領域画像データである非テカリ領域画像データを取得する非テカリ領域取得手段と、
     を備えたことを特徴とする、画像処理装置。
  2.  前記非テカリ領域取得手段により取得された複数の前記非テカリ領域画像データを合成した合成画像データを取得する画像合成手段、
     を更に備えた、請求項1に記載の画像処理装置。
  3.  前記テカリ検出手段により前記テカリが検出された前記必要情報領域画像データに対する文字検出処理により非文字領域を検出し、前記必要情報領域を前記非文字領域で分割した分割領域の分割領域画像データを取得する分割領域取得手段、
     を更に備え、
     前記テカリ検出手段は、
     前記各分割領域画像データに対してテカリを検出し、
     前記非テカリ領域取得手段は、
     前記テカリ検出手段により前記テカリが検出されなかった前記分割領域画像データである非テカリ分割領域画像データを取得し、
     前記非テカリ領域取得手段により取得された前記非テカリ分割領域画像データを合成することで、前記非テカリ領域画像データを取得する分割合成手段、
     を更に備えた、請求項1または2に記載の画像処理装置。
  4.  前記必要情報領域の境界データを記憶する必要情報領域記憶手段、
     を更に備え、
     前記必要情報領域取得手段は、
     前記境界データに基づいて、前記必要情報領域を検出し、前記必要情報領域画像データを取得する、請求項1から3のいずれか一つに記載の画像処理装置。
  5.  前記テカリ検出手段は、
     前記必要情報領域画像データの輝度と所定の閾値との比較に基づいて、前記テカリを検出する、請求項1から4のいずれか一つに記載の画像処理装置。
  6.  前記分割領域取得手段は、
     前記テカリ検出手段により前記テカリが検出された前記必要情報領域画像データに対してエッジ検出法により前記非文字領域を検出し、前記分割領域の前記分割領域画像データを取得する、請求項3に記載の画像処理装置。
  7.  前記非テカリ領域画像データに対してOCR処理を行い、文字データを取得するOCR手段、
     を更に備えた、請求項1から6のいずれか一つに記載の画像処理装置。
  8.  前記必要情報領域は、
     ホワイトボードに相当する画像である、請求項1から7のいずれか一つに記載の画像処理装置。
  9.  前記必要情報領域は、
     前記被写体領域において必要な情報が視認可能な領域である、請求項1から8のいずれか一つに記載の画像処理装置。
  10.  撮影されたフレームを取得するフレーム取得ステップと、
     前記フレームから被写体領域の被写体領域画像データを取得する被写体領域取得ステップと、
     前記被写体領域における必要情報領域を検出し、前記必要情報領域の必要情報領域画像データを取得する必要情報領域取得ステップと、
     前記必要情報領域画像データに対してテカリを検出するテカリ検出ステップと、
     前記テカリ検出ステップにて前記テカリが検出されなかった前記必要情報領域画像データである非テカリ領域画像データを取得する非テカリ領域取得ステップと、
     を含むことを特徴とする、画像処理方法。
  11.  前記非テカリ領域取得ステップにて取得された複数の前記非テカリ領域画像データを合成した合成画像データを取得する画像合成ステップ、
     を更に含む、請求項10に記載の画像処理方法。
  12.  前記テカリ検出ステップにて前記テカリが検出された前記必要情報領域画像データに対する文字検出処理により非文字領域を検出し、前記必要情報領域を前記非文字領域で分割した分割領域の分割領域画像データを取得する分割領域取得ステップ、
     を更に含み、
     前記テカリ検出ステップにて、
     前記各分割領域画像データに対してテカリを検出し、
     前記非テカリ領域取得ステップにて、
     前記テカリ検出ステップにて前記テカリが検出されなかった前記分割領域画像データである非テカリ分割領域画像データを取得し、
     前記非テカリ領域取得ステップにて取得された前記非テカリ分割領域画像データを合成することで、前記非テカリ領域画像データを取得する分割合成ステップ、
     を更に含む、請求項10または11に記載の画像処理方法。
  13.  前記必要情報領域取得ステップにて、
     記憶された前記必要情報領域の境界データに基づいて、前記必要情報領域を検出し、前記必要情報領域画像データを取得する、請求項10から12のいずれか一つに記載の画像処理方法。
  14.  前記テカリ検出ステップにて、
     前記必要情報領域画像データの輝度と所定の閾値との比較に基づいて、前記テカリを検出する、請求項10から13のいずれか一つに記載の画像処理方法。
  15.  前記分割領域取得ステップにて、
     前記テカリ検出ステップにて前記テカリが検出された前記必要情報領域画像データに対してエッジ検出法により前記非文字領域を検出し、前記分割領域の前記分割領域画像データを取得する、請求項12に記載の画像処理方法。
  16.  前記非テカリ領域画像データに対してOCR処理を行い、文字データを取得するOCRステップ、
     を更に含む、請求項10から15のいずれか一つに記載の画像処理方法。
  17.  前記必要情報領域は、
     ホワイトボードに相当する画像である、請求項10から16のいずれか一つに記載の画像処理方法。
  18.  前記必要情報領域は、
     前記被写体領域において必要な情報が視認可能な領域である、請求項10から17のいずれか一つに記載の画像処理方法。
  19.  撮影されたフレームを取得するフレーム取得ステップと、
     前記フレームから被写体領域の被写体領域画像データを取得する被写体領域取得ステップと、
     前記被写体領域における必要情報領域を検出し、前記必要情報領域の必要情報領域画像データを取得する必要情報領域取得ステップと、
     前記必要情報領域画像データに対してテカリを検出するテカリ検出ステップと、
     前記テカリ検出ステップにて前記テカリが検出されなかった前記必要情報領域画像データである非テカリ領域画像データを取得する非テカリ領域取得ステップと、
     をコンピュータに実行させるためのプログラム。
PCT/JP2016/069528 2016-06-30 2016-06-30 画像処理装置、画像処理方法、および、プログラム Ceased WO2018003090A1 (ja)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/JP2016/069528 WO2018003090A1 (ja) 2016-06-30 2016-06-30 画像処理装置、画像処理方法、および、プログラム

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2016/069528 WO2018003090A1 (ja) 2016-06-30 2016-06-30 画像処理装置、画像処理方法、および、プログラム

Publications (1)

Publication Number Publication Date
WO2018003090A1 true WO2018003090A1 (ja) 2018-01-04

Family

ID=60785183

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2016/069528 Ceased WO2018003090A1 (ja) 2016-06-30 2016-06-30 画像処理装置、画像処理方法、および、プログラム

Country Status (1)

Country Link
WO (1) WO2018003090A1 (ja)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194253A (zh) * 2021-04-28 2021-07-30 维沃移动通信有限公司 去除图像反光的拍摄方法、装置和电子设备
CN114638785A (zh) * 2022-02-17 2022-06-17 中国科学院上海技术物理研究所 图像中的强光区域检测方法、系统、介质、设备及终端

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0757045A (ja) * 1993-08-17 1995-03-03 Matsushita Electric Ind Co Ltd 運転免許証認識装置
JPH07210628A (ja) * 1994-01-20 1995-08-11 Matsushita Electric Ind Co Ltd 免許証読み取り装置
JP2005130326A (ja) * 2003-10-27 2005-05-19 Konica Minolta Photo Imaging Inc デジタルカメラ
JP2008071076A (ja) * 2006-09-13 2008-03-27 Oki Electric Ind Co Ltd 画像抽出装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0757045A (ja) * 1993-08-17 1995-03-03 Matsushita Electric Ind Co Ltd 運転免許証認識装置
JPH07210628A (ja) * 1994-01-20 1995-08-11 Matsushita Electric Ind Co Ltd 免許証読み取り装置
JP2005130326A (ja) * 2003-10-27 2005-05-19 Konica Minolta Photo Imaging Inc デジタルカメラ
JP2008071076A (ja) * 2006-09-13 2008-03-27 Oki Electric Ind Co Ltd 画像抽出装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194253A (zh) * 2021-04-28 2021-07-30 维沃移动通信有限公司 去除图像反光的拍摄方法、装置和电子设备
CN114638785A (zh) * 2022-02-17 2022-06-17 中国科学院上海技术物理研究所 图像中的强光区域检测方法、系统、介质、设备及终端

Similar Documents

Publication Publication Date Title
US9609221B2 (en) Image stabilization method and electronic device therefor
US11736792B2 (en) Electronic device including plurality of cameras, and operation method therefor
WO2016112704A1 (zh) 调节投影仪焦距的方法和装置、计算机存储介质
JP7546369B2 (ja) 画像処理装置、画像処理方法
JP2015012480A (ja) 画像処理装置及び画像処理方法
JP2010211255A (ja) 撮像装置、画像処理方法及びプログラム
US10810743B2 (en) Image processing device, image processing method, and computer program product
US7450756B2 (en) Method and apparatus for incorporating iris color in red-eye correction
JP5510287B2 (ja) 被写体検出装置、被写体検出方法及びプログラム
WO2018003090A1 (ja) 画像処理装置、画像処理方法、および、プログラム
JP6503478B2 (ja) モバイル端末、画像処理方法、および、プログラム
JP6581288B2 (ja) モバイル端末、画像処理方法、および、プログラム
JP6600090B2 (ja) 画像処理装置、画像処理方法、および、プログラム
JP6785930B2 (ja) モバイル端末、画像処理方法、および、プログラム
WO2017109998A1 (ja) モバイル端末、画像処理方法、および、プログラム
JP5807695B2 (ja) 被写体検出装置、被写体検出方法及びプログラム
JP6613378B2 (ja) モバイル端末、画像処理方法、および、プログラム
JP5740934B2 (ja) 被写体検出装置、被写体検出方法及びプログラム
JP6697829B2 (ja) モバイル端末、画像処理方法、および、プログラム
JP6335064B2 (ja) 撮像装置、撮像装置の制御方法およびコンピュータプログラム
JP6668646B2 (ja) 画像処理装置、画像処理方法及びプログラム
JP5310361B2 (ja) 撮像装置、画像処理方法及びプログラム
WO2017158814A1 (ja) モバイル端末、画像処理方法、および、プログラム
WO2019225255A1 (ja) 画像補正装置、画像補正方法、及び画像補正プログラム
JP2017092909A (ja) 撮像装置、画像処理装置およびプログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16907323

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16907323

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP