# Patent

## Title
Systems and methods for improving video captured using mobile devices

## Abstract

Systems, methods, and computer program products for capturing and analyzing image data, preferably video data, are disclosed. The inventive concepts include using multiple frames of image data to generate a composite image, where the composite image may be characterized by a higher resolution than one or more of the individual frames used to generate the composite image, and/or absence of a blurred region present in one or more of the individual frames. Inventive techniques also include determining a minimum capture resolution appropriate for capturing images of particular objects for downstream processing, and optionally triggering generation of a composite image having sufficient resolution to facilitate the downstream processing in response to detecting one or more frames of image data are characterized by a resolution, and/or a region having a resolution, less than the minimum capture resolution appropriate for capturing images of those particular objects.

## Background
PRIORITY CLAIM
This application is a continuation of U.S. patent application Ser. No. 14/473,950, filed Aug. 29, 2014, which is a continuation of U.S. patent application Ser. No. 14/268,876, filed May 2, 2014, now U.S. Pat. No. 8,885,229, which claims priority to U.S. Provisional Patent Application No. 61/819,463, filed May 3, 2013, each of which are herein incorporated by reference.


RELATED APPLICATIONS
This application is related to U.S. Pat. No. 6,370,277, granted Apr. 9, 2002 (U.S. patent application Ser. No. 09/206,753, filed Dec. 7, 1998) as well as copending U.S. patent application Ser. No. 13/740,123, filed Jan. 11, 2013; Ser. No. 13/802,226, filed Mar. 13, 2013; Ser. No. 14/209,825, filed Mar. 13, 2014; Ser. No. 14/259,866, filed Apr. 23, 2014; Ser. No. 14/177,136, filed Feb. 10, 2014; Ser. No. 14/175,999, filed Feb. 7, 2014; Ser. No. 14/220,016, filed Mar. 19, 2014; Ser. No. 14/220,023, filed Mar. 19, 2014 and Ser. No. 14/220,029, filed Mar. 19, 2014; and Provisional U.S. Patent Application No. 61/883,865, filed Sep. 27, 2013, and 61/905,063, filed Nov. 15, 2013, each of which are herein incorporated by reference.
FIELD OF INVENTION
The present invention relates to digital video capture and digital video data processing, and more particularly to capturing and processing digital video data using a mobile device.
BACKGROUND OF THE INVENTION
Modern mobile devices are well adapted to capturing images of a variety of objects, including documents, persons, automobiles, etc. Improvements to the mobile device camera capabilities and/or processing power make applications for capturing and/or processing digital image data using a mobile device increasingly attractive in an increasingly mobile-device-driven economy.
However, limitations of the mobile device hardware and practical limitations of capturing images using a mobile device present major challenges to efficient and effective digital image processing. For example, digital images captured using a mobile device are often of insufficient quality for subsequent processing due to one or more artifacts such as blur, uneven illumination, insufficient illumination, oversaturated illumination, insufficient resolution, projective effects, etc. Attempts to process digital images including such artifacts may fail completely or produce inadequate quality results for the desired application. At best, the user may be required to repeat the capture operation and attempt to improve the quality of the image, but in some cases recapturing the image may be impossible, resulting in lost opportunity for acquiring images of important but transient circumstances, such as the location or condition of a person or vehicle before, during, and/or after an automobile accident.
Accordingly, it would be beneficial to provide systems, methods, and/or computer program products capable of capturing and/or processing data other than still digital images in a manner that overcomes the challenges presented above and improve users' ability to capture and process data, especially using mobile devices.
SUMMARY OF THE INVENTION
In one embodiment, a method includes: invoking an image capture interface via a mobile device, the capture interface comprising a viewfinder represented on a display of the mobile device; analyzing a plurality of frames of video data captured via the capture interface, wherein the analyzing comprises determining: whether an object exhibiting one or more defining characteristics is depicted within the viewfinder; and whether the object depicted within the viewfinder satisfies one or more predetermined quality control criteria; and in response to determining a frame fails one or more of the predetermined quality control criteria, displaying an indication of the failure on the mobile device display; and in response to determining the object depicted within the viewfinder satisfies the one or more predetermined quality control criteria, one or more of: displaying an indication that the object depicted in the viewfinder exhibits the one or more defining characteristics; automatically capturing an image of the object, wherein the image is characterized by a resolution higher than a resolution of the video data; and automatically storing to a memory one or more of the frames in which the object satisfying the predetermined quality control criteria is depicted in the viewfinder.
In another embodiment, a system includes: a processor; and logic in and/or executable by the processor to cause the processor to: invoke an image capture interface via a mobile device, the capture interface comprising a viewfinder represented on a display of the mobile device; analyze a plurality of frames of video data captured via the capture interface, wherein the analysis comprises: determining whether an object exhibiting one or more defining characteristics is depicted within the viewfinder; and determining whether the object depicted within the viewfinder satisfies one or more predetermined quality control criteria; and in response to determining a frame fails one or more of the predetermined quality control criteria, display an indication of the failure on the mobile device display; and in response to determining the object depicted within the viewfinder satisfies the one or more predetermined quality control criteria, one or more of: display an indication that the object depicted in the viewfinder exhibits the one or more defining characteristics; automatically capture an image of the object, wherein the image is characterized by a resolution higher than a resolution of the video data; and automatically store to a memory one or more of the frames in which the object satisfying the predetermined quality control criteria is depicted in the viewfinder.
In still another embodiment, a computer program product includes: a computer readable storage medium having program code embodied therewith, the program code readable/executable by a processor to cause the processor to: invoke an image capture interface via a mobile device, the capture interface comprising a viewfinder represented on a display of the mobile device; analyze a plurality of frames of video data captured via the capture interface, wherein the analysis comprises: determining whether an object exhibiting one or more defining characteristics is depicted within the viewfinder; and determining whether the object depicted within the viewfinder satisfies one or more predetermined quality control criteria; and in response to determining a frame fails one or more of the predetermined quality control criteria, display an indication of the failure on the mobile device display; and, in response to determining the object depicted within the viewfinder satisfies the one or more predetermined quality control criteria, one or more of: display an indication that the object depicted in the viewfinder exhibits the one or more defining characteristics; automatically capture an image of the object, wherein the image is characterized by a resolution higher than a resolution of the video data; and automatically store to a memory one or more of the frames in which the object satisfying the predetermined quality control criteria is depicted in the viewfinder.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 illustrates a network architecture, in accordance with one embodiment.
FIG. 2 shows a representative hardware environment that may be associated with the servers and/or clients of FIG. 1, in accordance with one embodiment.
FIGS. 3-5 each depict a flowchart of a method, according to one embodiment.



DETAILED DESCRIPTION
The following description is made for the purpose of illustrating the general principles of the present invention and is not meant to limit the inventive concepts claimed herein. Further, particular features described herein can be used in combination with other described features in each of the various possible combinations and permutations.
Unless otherwise specifically defined herein, all terms are to be given their broadest possible interpretation including meanings implied from the specification as well as meanings understood by those skilled in the art and/or as defined in dictionaries, treatises, etc.
It must also be noted that, as used in the specification and the appended claims, the singular forms “a,” “an” and “the” include plural referents unless otherwise specified.
The present application refers to image processing. In particular, the present application discloses systems, methods, and computer program products designed to augment current still-photo based methods and systems for capturing a digital image to leverage streaming video data to capture and process various types of information. As digital imaging technology continues to improve, video stream resolution usually lags available photo resolutions. As such, leveraging video streaming for document capture has been previously limited to smaller size objects because the available resolution did not always provide sufficient detail regarding larger objects to effectively process digital images depicting such objects. As video stream resolutions increase, this limitation has decreasingly impacted processing capabilities and suitability such that processing data from a video stream has become a viable alternative or even a preferred replacement to still-photo capture in various applications and/or implementations.
At a high level, an exemplary user experience for video stream capture may be loosely based on the following scenario.
A user invokes a video-stream capture interface from a native mobile application, via a software development kit (SDK) used to develop or modify anew or existing mobile application, via a built-in mobile operating system (OS) functionality, etc. Once invoked, the user is presented with an option to select video-based capture and perform a video-based capture operation. The capture application exposes a video capture interface that guides the user to ensure the physical object remains within the bounds of a bounding box superimposed on the mobile capture user interface. Once within the bounding box, the user clicks on the ‘Capture’ button to initiate the capture process. Once initiated, a mobile interface begins checking for stability of the mobile device using one or more hardware components of the mobile device such as an accelerometer, gyroscope, etc. Once stability has been achieved, an autofocus operation may be forced and the process of analyzing each of the (n) frames of the video stream begins.
The goal of frame analysis is to detect the existence of a target object within the vantage point provided by the video stream. Entities include but are not limited to page(s), barcode(s), buildings, motor vehicles, boats, persons, etc. The actual implementation of the real-time methodology and algorithms used to detect the existence of the target entity within the video frame will be discussed separately from this document.
Once the existence of the target object has been detected in one or more frames of the stream, either the frame is identified and processed by image perfection techniques, such as embodied in one exemplary scenario via electronic virtual rescan (EVRS) or for devices that support the necessary capability, the full resolution (photo) corresponding to the target video frame is identified and processed by EVRS. Alternatively, multiple low-resolution video frames could be combined to a single higher-resolution image.
From there, the mobile application may facilitate providing as much relevant entity metadata as possible with the lowest possible latency. Relevant metadata could include but not be limited to object type, object characteristics, field metadata. GPS information, page size, barcode value(s), car type, person height, boat length, etc.).
This capability would allow the user to capture multiple objects and object types simultaneously. Moreover, objects may be associated with a particular downstream process (e.g. a business process such as a loan application, insurance claim, financial transaction, etc.) quickly and easily with minimal user input other than simple click, point and capture functionality.
From one perspective, the overall capture and processing may generally follow a logical order similar to the flow diagram shown below.
It will be appreciated upon reading the present descriptions that the overall flow diagram shown below is a coarse conceptual example that should not be considered limiting in any way. The presently described capture and processing may, in various embodiments, include any number of additional and/or different operations, perform such operations in a different order, and/or omit certain operations depicted in the flow diagram.
Images (e.g. pictures, figures, graphical schematics, single frames of movies, videos, films, clips, etc.) are preferably digital images captured by cameras, especially cameras of mobile devices. As understood herein, a mobile device is any device capable of receiving data without having power supplied via a physical connection (e.g. wire, cord, cable, etc.) and capable of receiving data without a physical data connection e.g. wire, cord, cable, etc.). Mobile devices within the scope of the present disclosures include exemplary devices such as a mobile telephone, smartphone, tablet, personal digital assistant, iPod®, iPad®, BLACKBERRY® device, etc.
However, as it will become apparent from the descriptions of various functionalities, the presently disclosed mobile image processing algorithms can be applied, sometimes with certain modifications, to images coining from scanners and multifunction peripherals (MFPs). Similarly, images processed using the presently disclosed processing algorithms may be further processed using conventional scanner processing algorithms, in some approaches.
Of course, the various embodiments set forth herein may be implemented utilizing hardware, software, or any desired combination thereof. For that matter, any type of logic may be utilized which is capable of implementing the various functionality set forth herein.
One benefit of using a mobile device is that with a data plan, image processing and information processing based on captured images can be done in a much more convenient, streamlined and integrated way than previous methods that relied on presence of a scanner. However, the use of mobile devices as document(s) capture and/or processing devices has heretofore been considered unfeasible for a variety of reasons.
In one approach, an image may be captured by a camera of a mobile device. The term “camera” should be broadly interpreted to include any type of device capable of capturing an image of a physical object external to the device, such as a piece of paper. The term “camera” does not encompass a peripheral scanner or multifunction device. Any type of camera may be used. Preferred embodiments may use cameras having a higher resolution, e.g. 8 MP or more, ideally 12 MP or more. The image may be captured in color, grayscale, black and white, or with any other known optical effect. The term “image” as referred to herein is meant to encompass any type of data corresponding to the output of the camera, including raw data, processed data, etc.
The description herein is presented to enable any person skilled in the art to make and use the invention and is provided in the context of particular applications of the invention and their requirements. Various modifications to the disclosed embodiments will be readily apparent to those skilled in the art and the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the present invention. Thus, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
In particular, various embodiments of the invention discussed herein are implemented using the Internet as a means of communicating among a plurality of computer systems. One skilled in the art will recognize that the present invention is not limited to the use of the Internet as a communication medium and that alternative methods of the invention may accommodate the use of a private intranet, a Local Area Network (LAN), a Wide Area Network (WAN) or other means of communication. In addition, various combinations of wired, wireless e.g., radio frequency) and optical communication links may be utilized.
The program environment in which one embodiment of the invention may be executed illustratively incorporates one or more general-purpose computers or special-purpose devices such hand-held computers. Details of such devices (e.g., processor, memory, data storage, input and output devices) are well known and are omitted for the sake of clarity.
It should also be understood that the techniques of the present invention might be implemented using a variety of technologies. For example, the methods described herein may be implemented in software running on a computer system, or implemented in hardware utilizing one or more processors and logic (hardware and/or software) for performing operations of the method, application specific integrated circuits, programmable logic devices such as Field Programmable Gate Arrays (FPGAs), and/or various combinations thereof. In one illustrative approach, methods described herein may be implemented by a series of computer-executable instructions residing on a storage medium such as a physical (e.g., non-transitory) computer-readable medium. In addition, although specific embodiments of the invention may employ object-oriented software programming concepts, the invention is not so limited and is easily adapted to employ other forms of directing the operation of a computer.
The invention can also be provided in the form of a computer program product comprising a computer readable storage or signal medium having computer code thereon, which may be executed by a computing device (e.g., a processor) and/or system. A computer readable storage medium can include any medium capable of storing computer code thereon for use by a computing device or system, including optical media such as read only and writeable CD and DVD, magnetic memory or medium (e.g., hard disk drive, tape), semiconductor memory (e.g., FLASH memory and other portable memory cards, etc.), firmware encoded in a chip, etc.
A computer readable signal medium is one that does not fit within the aforementioned storage medium class. For example, illustrative computer readable signal media communicate or otherwise transfer transitory signals within a system, between systems e.g., via a physical or virtual network, etc.
FIG. 1 illustrates an architecture 100, in accordance with one embodiment. As shown in FIG. 1, a plurality of remote networks 102 are provided including a first remote network 104 and a second remote network 106. A gateway 101 may be coupled between the remote networks 102 and a proximate network 108. In the context of the present network architecture 100, the networks 104, 106 may each take any form including, but not limited to a LAN, a WAN such as the Internet, public switched telephone network (PSTN), internal telephone network, etc.
In use, the gateway 101 serves as an entrance point from the remote networks 102 to the proximate network 108. As such, the gateway 101 may function as a router, which is capable of directing a given packet of data that arrives at the gateway 101, and a switch, which furnishes the actual path in and out of the gateway 101 for a given packet.
Further included is at least one data server 114 coupled to the proximate network 108, and which is accessible from the remote networks 102 via the gateway 101. It should be noted that the data server(s) 114 may include any type of computing device/groupware. Coupled to each data server 114 is a plurality of user devices 116. Such user devices 116 may include a desktop computer, laptop computer, hand-held computer, printer or any other type of logic. It should be noted that a user device 111 may also be directly coupled to any of the networks, in one embodiment.
A peripheral 120 or series of peripherals 120, e.g. facsimile machines, printers, networked storage units, etc., may be coupled to one or more of the networks 104, 106, 108. It should be noted that databases, servers, and/or additional components may be utilized with, or integrated into, any type of network element coupled to the networks 104, 106, 108. In the context of the present description, a network element may refer to any component of a network.
According to some approaches, methods and systems described herein may be implemented with and/or on virtual systems and/or systems which emulate one or more other systems, such as a UNIX system which emulates a MAC OS environment, a UNIX system which virtually hosts a MICROSOFT WINDOWS environment, a MICROSOFT WINDOWS system which emulates a MAC OS environment, etc. This virtualization and/or emulation may be enhanced through the use of VMWARE software, in some embodiments.
In more approaches, one or more networks 104, 106, 1.08, may represent a cluster of systems commonly referred to as a “cloud.” In cloud computing, shared resources, such as processing power, peripherals, software, data processing and/or storage, servers, etc., are provided to any system in the cloud, preferably in an on-demand relationship, thereby allowing access and distribution of services across many computing systems. Cloud computing typically involves an Internet or other high speed connection (e.g., 4G LTE, fiber optic, etc.) between the systems operating in the cloud, but other techniques of connecting the systems may also be used.
FIG. 1 illustrates an architecture 100, in accordance with one embodiment. As shown in FIG. 1, a plurality of remote networks 102 are provided including a first remote network 104 and a second remote network 106. A gateway 101 may be coupled between the remote networks 102 and a proximate network 108. In the context of the present architecture 100, the networks 104, 106 may each take any form including, but not limited to a LAN, a WAN such as the Internet, public switched telephone network (PSTN), internal telephone network, etc.
In use, the gateway 101 serves as an entrance point from the remote networks 102 to the proximate network 108. As such, the gateway 101 may function as a router, which is capable of directing a given packet of data that arrives at the gateway 101, and a switch, which furnishes the actual path in and out of the gateway 101 for a given packet.
Further included is at least one data server 114 coupled to the proximate network 108, and which is accessible from the remote networks 102 via the gateway 101. It should be noted that the data server(s) 114 may include any type of computing device/groupware. Coupled to each data server 114 is a plurality of user devices 116. Such user devices 116 may include a desktop computer, lap-top computer, hand-held computer, printer or any other type of logic. It should be noted that a user device 111 may also be directly coupled to any of the networks, in one embodiment.
A peripheral 120 or series of peripherals 120, e.g., facsimile machines, printers, networked and/or local storage units or systems, etc., may be coupled to one or more of the networks 104, 106, 108. It should be noted that databases and/or additional components may be utilized with, or integrated into, any type of network element coupled to the networks 104, 106, 108. In the context of the present description, a network element may refer to any component of a network.
According to some approaches, methods and systems described herein may be implemented with and/or on virtual systems and/or systems which emulate one or more other systems, such as a UNIX system which emulates a MAC OS environment, a UNIX system which virtually hosts a MICROSOFT WINDOWS environment, a MICROSOFT WINDOWS system which emulates a MAC OS environment, etc. This virtualization and/or mutation may be enhanced through the use of VMWARE software, in some embodiments.
In more approaches, one or more networks 104, 106, 108, may represent a cluster of systems commonly referred to as a “cloud,” In cloud computing, shared resources, such as processing power, peripherals, software, data processing and/or storage, servers, etc., are provided to any system in the cloud, preferably in an on-demand relationship, thereby allowing access and distribution of services across many computing systems. Cloud computing typically involves an Internet or other high speed connection (e.g., 4G LTE, fiber optic, etc.) between the systems operating in the cloud, but other techniques of connecting the systems may also be used.
FIG. 2 shows a representative hardware environment associated with a user device 116 and/or server 114 of FIG. 1, in accordance with one embodiment. Such figure illustrates a typical hardware configuration of a workstation having a central processing unit 210, such as a microprocessor, and a number of other units interconnected via a system bus 212.
The workstation shown in FIG. 2 includes a Random Access Memory (RAM) 214, Read Only Memory (ROM) 216, an I/O adapter 218 for connecting peripheral devices such as disk storage units 220 to the bus 212, a user interface adapter 222 for connecting a keyboard 224, a mouse 226, a speaker 228, a microphone 232, and/or other user interface devices such as a touch screen and a digital camera (not shown) to the bus 212, communication adapter 234 for connecting the workstation to a communication network 235 e.g., a data processing network) and a display adapter 236 for connecting the bus 212 to a display device 238.
The workstation may have resident thereon an operating system such as the Microsoft Windows® Operating System (OS), a MAC OS, a UNIX OS, etc. It will be appreciated that a preferred embodiment may also be implemented on platforms and operating systems other than those mentioned. A preferred embodiment may be written using JAVA, XML, C, and/or C++ language, or other programming languages, along with an object oriented programming methodology. Object oriented programming (OOP), which has become increasingly used to develop complex applications, may be used.
An application may be installed on the mobile device, e.g., stored in a nonvolatile memory of the device. In one approach, the application includes instructions to perform processing of an image on the mobile device. In another approach, the application includes instructions to send the image to a remote server such as a network server. In yet another approach, the application may include instructions to decide whether to perform some or all processing on the mobile device and/or send the image to the remote site.
In various embodiments, the presently disclosed methods, systems and/or computer program products may utilize and/or include any of the functionalities disclosed in related U.S. patent application Ser. No. 13/740,123, filed Jan. 11, 2013. For example, digital images suitable for processing in whole or in part using the presently disclosed methodologies, systems, etc. may be subjected to any image processing operations disclosed in the aforementioned Patent Application, such as page detection, rectangularization, detection of uneven illumination, illumination normalization, resolution estimation, blur detection, etc.
In various embodiments, the presently disclosed methods, systems and/or computer program products may utilize and/or include any of the functionalities disclosed in related U.S. patent application Ser. No. 13/802,226, filed Mar. 13, 2013 and Provisional U.S. Patent Application No. 61/780,747, filed Mar. 13, 2013. For example, digital images suitable for processing in whole or in part using the presently disclosed methodologies, systems, etc. may be subjected to any classification and/or data extraction operations disclosed in the aforementioned Patent Applications, including for instance classifying objects depicted in a digital image according to type based at least in part on characteristics of the object, performing custom-tailored image processing using information about the object characteristics and/or object class, building and/or using feature vectors to perform classification, building and/or using feature vectors to develop a data extraction model for the object and/or object class(es), using data extraction models to extract data from digital images, etc.
In some embodiments, and entirely separate from the “extraction” operations and techniques disclosed herein, it may be useful to perform the image capture, analysis and processing as described, and subsequently analyze the resulting image with a targeted optical character recognition (OCR) operation. For example, a user may define a portion of a processed image upon which to perform the OCR, and may hover a window over that portion of the processed image. Then, the user may receive OCR results either pursuant to a request submitted by the user e.g. to OCR the windowed region of the image) or automatically in near- or real-time in response to the window position e.g. a constantly-active OCR process is performed on the image portion(s) falling within the OCR window, and any recognized characters may be displayed in real-time on the mobile device.
Preferably, the windowed OCR approach may be utilized to determine, verify (e.g. confirm an observed value obtained via OCR by comparing to a reference value), and/or validate (e.g. as mentioned above and further described in related U.S. Pat. No. 8,345,981 and/or U.S. patent application Ser. No. 14/175,999 (filed Feb. 7, 2014); Ser. No. 14/176,606 (filed Feb. 7, 2014) and/or Ser. No. 14/078,402 (filed Nov. 12, 2013)) text characters depicted in the depicted object. Even more preferably, the windowed OCR approach may be utilized to specifically determine “identifying information,” e.g. as defined and described in related U.S. patent application Ser. No. 14/220,016 (filed Mar. 19, 2014).
For example, in one approach classification may include determining whether a depicted object belongs to one or more predetermined classes, and if not, requesting user input defining a new class. This approach may be augmented in some embodiments by automatically determining defining characteristics for the new class based on the user input, the object depicted in the image(s), a combination thereof, and/or any other relevant descriptive information as would be appreciated by skilled artisans. In this manner, it is possible for the present systems to be extended to unknown object types based on minimal input from the user and defining characteristics determined based on user input, image data, and/or a combination thereof.
In more approaches, the presently disclosed methods, systems, and/or computer program products may be utilized with, implemented in, and/or include one or more user interfaces configured to facilitate performing any functionality disclosed herein and/or in the aforementioned related Patent Application, such as an image processing mobile application, a case management application, and/or a classification application, in multiple embodiments.
In still more approaches, the presently disclosed systems, methods and/or computer program products may be advantageously applied to one or more of the use methodologies and/or scenarios disclosed in the aforementioned related Patent Application, among others that would be appreciated by one having ordinary skill in the art upon reading these descriptions.
It will further be appreciated that embodiments presented herein may be provided in the form of a service deployed on behalf of a customer to offer service on demand.
Video Capture and Discovery
In some embodiments, via a mobile application a user may capture video, analyze video and then store a full still photo resolution frame or frames. To facilitate computational efficiency, it is possible to use video data with a lower resolution than the full still photo resolution frame(s) for discovering objects depicted in the frame(s). Upon discovering a target object, various embodiments may use one or more high resolution photo frame for further processing.
For example, low-resolution video capture and processing of small documents like drivers licenses or business cards or checks is possible at least in part because some embodiments of capture may zoom in so close that even the low resolution video feed produces sufficient resolution for discovering the small document in the object.
In one approach, a capture component of a mobile application within the scope of the present disclosure may facilitate a user invoking a mobile device camera in a video capture mode. The user may provide input instructing the capture component to initiate capturing video data. The application, in response to receiving the “begin capture” instruction, in response to displaying a prompt to the user instructing the user to prepare for capturing data, etc. may query an on-device hardware such as an accelerometer and/or gyroscope for stability information. Upon detecting conditions from the on-device hardware that correspond to a stability condition, the application may force an autofocus, capture frames, and then spawn a background process to invoke and/or conduct image processing.
Moreover, the captured frames may be characterized by a resolution higher than a resolution of the video stream (and corresponding data) displayed to the user while performing the stability determination, focus, object discovery, etc. In some embodiments, a user reviewing a video stream may be simultaneously presented with a corresponding high-resolution frame of image data to review and/or provide feedback and user input relating to capture and/or processing using the mobile device/application.
In more embodiments, the capture component may be further improved to classify objects by type and selectively invoke the capture operation. For example, capture may be invoked only upon determining the capture field encompasses an object of interest, such as a document, an animal, a vehicle, a person, a particular type of document, animal, vehicle, etc.
In still more embodiments, the capture component may be further improved to determine classification of objects and/or detect characteristics of objects, and selectively invoke the capture operation in response to detecting an expected type of characteristic in the object. For example, a video stream of a capture field encompassing a document may be utilized to classify the type of document, and based on the document classification, the video stream may be utilized to determine whether the document contains particular characteristics, such as particular content (e.g. particular text such as a name, address, account number, a particular symbol such as a barcode, logo, a photograph, etc. as would be understood by one having ordinary skill in the art upon reading the present descriptions).
By providing additional classification capability in this vein, the mobile application may avoid undesirably capturing video data upon receiving information indicative of a stability condition, but where the capture field is focused on an object of no interest for subsequent processing (e.g. the mobile application would be capable of selectively avoiding capturing video of a dog as part of an overall document-processing workflow). Preferably, the classifying operation comprises a high-speed initial analysis to detect the existence of the object of interest in the video frame. However, classification may include any functionality discussed in related U.S. patent application Ser. No. 13/802,226.
In various approaches, upon determining a stability exists, achieving focus, and determining the capture field encompasses a desired capture target, the mobile application may invoke one or more processing operations. As input to the processing operations, the mobile application may provide either the video stream, frames from the video stream, and/or high resolution equivalents thereof.
Additional embodiments may include providing functionality to determine a minimum resolution necessary to perform object discovery, image processing, or any of a variety of downstream processing operations so that a mobile application may facilitate a user capturing the requisite data for subsequent processing in the most computationally efficient manner possible. For example, a user may invoke a training component of the mobile application, and directed to capture video data corresponding to a particular object or object type; the user may be directed to perform the capture operation for a plurality of repetitions, and with or without the user's knowledge, each repetition may capture video data at a different resolution so as to provide a diverse array of video data representing the object in a range of resolutions.
The mobile application may transparently perform object discovery, image processing, etc. using one or more of the plurality of different-resolution video data samples. Some of the samples may produce acceptable results, while others may not. The application may utilize information regarding the results achieved using various input samples to determine a resolution for subsequent use when capturing and/or performing various processing operations for objects corresponding to the particular object or object type for which training was performed.
In one approach, a resolution sufficient for object discovery is any resolution that enables detection of contrast between the foreground of the image, e.g. regions of the image corresponding to the object, and the background of the image, e.g. regions of the image not corresponding to the object. Detecting contrast includes detecting the existence of a subregion of the image containing a potential or “candidate” object boundary. For certain objects, a resolution in a range from about 25 dots per inch (DPI) to about 50 DPI may be sufficient to detect contrast and therefore object boundaries. Initial processing such as object discovery may be performed using these relatively low-resolution images to process data in a highly efficient manner. Additional processing may be performed utilizing the low-resolution image or a corresponding high-resolution image according to the requirements and/or desired result of the process.
In some approaches, upon detecting an object from the video stream data, a corresponding high resolution image may be captured and cropped to remove some or all background from the image.
In further embodiments, user feedback may be requested, obtained, and/or used to facilitate capturing and/or processing of video data as described herein. For example, upon performing object discovery on video data, various frames of the video data in which an object was reportedly discovered may be presented to the user. The user may confirm, modify or negate the discovery result determination. Based on the user input, the discovery algorithm may be modified. In another example, based on the user input a minimum capture resolution may be determined, where the various frames correspond to different capture resolutions, as discussed above in regard to training the capture component.
Super-Resolution
In further approaches, it may be advantageous to utilize data from multiple frames of image and/or video data to generate a single, superior composite image for processing. For example, a higher resolution image may be composed from multiple relatively low-resolution frames of video data. Alternatively, multiple high-resolution images may be synthesized into an even higher-resolution image. Further still, a relatively low-resolution region of an otherwise high-resolution image, or a blurred region (for example as may be caused by unstable capture conditions) of an otherwise clear image may be improved by synthesizing data from multiple image and/or video frames to resample the low-resolution or blurred region and generate a high-quality (i.e. high resolution/clarity) composite image. In some embodiments, the frames may represent binary image data (i.e. corresponding to two-tone or “bitonal” images), which may be compared, merged, and/or utilized to extract data from the image, such as text characters on a document.
Metadata
Retrieving, receiving, and providing metadata, as well as associating metadata with digital image data is another advantageous functionality within the scope of the presently described mobile application. Preferably, the mobile application facilitates obtaining and associating all available metadata with the corresponding image data. For example, in one scenario a user captures a video stream and/or image data corresponding to a document. The document may be detected within the image data and classified as a particular document type. Based on the classification, metadata may be retrieved from a knowledge base comprising a plurality of document classes and associated metadata. The retrieved metadata may then be associated with the document image data and/or video data in any suitable manner.
Metadata may include any information that is relevant to an object, an image of an object, etc. With continuing reference to the exemplary scenario involving a document as the object, illustrative metadata may include the document type, text content in the document, context of the text (e.g. positional location, font type, color, size, etc.) page size, page resolution, color bit depth, etc. In other embodiments, the metadata may correspond to instructions for subsequent processing of the data, such as particular parameters for manipulating image size, color profile, etc., particular parameters for extracting data from the image, etc. as would be understood by one having ordinary skill in the art upon reading the present descriptions.
Image Authentication
In some embodiments, various types of data, including raw and/or processed image data, metadata associated with image data, etc. as would be understood by one having ordinary skill in the art reading the present descriptions can include and/or be associated with authentication data. Authentication data may be utilized to very quickly and efficiently determine a status of data, such as whether a particular file has been altered from a previous state (e.g. by adding or removing metadata to an image file, by editing metadata associated with an image file, by processing or re-processing image data with different parameters, etc.).
In one embodiment, image authentication may include creating one or more authentication strings from a buffer in memory. The string may be any length, but is preferably a 127-byte string in at least some approaches. More particularly, authentication may involve compressing an image (which may include image data and/or associated metadata) to a memory buffer and creating the authentication string or strings for/from one or more portions of the buffer. Creating the authentication string(s) may include encoding data in the portions of the buffer into the authentication string, in one embodiment. Any form of encoding may be employed.
For example, authentication may generate an authentication string for only the image, for only the metadata, for the image and the associated metadata, etc. The authentication strings may be inserted into, appended to, or associated with the buffer in various approaches, and are preferably added to the buffer as one or more tags, at which point the buffer is dumped to physical memory (e.g. to disk) as a file. Notably, these authentication approaches may be equally applied to any format of image and/or metadata, including any compression format allowing metadata tags, such as JPEG or TIFF formats.
Additionally and/or alternatively, the authentication string may be embedded into the image itself, for example using a steganographic approach.
Data having authentication strings as described above can be subsequently authenticated to determine whether the data has been altered since the authentication strings were created. In particular, the file having the authentication tags may be read from physical memory into a memory buffer, and the encoded authentication strings may be extracted from the corresponding tags. These strings may be decoded and compared to the corresponding portion(s) of the buffer from which the encoded authentication string was generated. If the decoded authentication string and the portion of the buffer used to generate the authentication string match, the portion of the buffer used to generate the authentication string has not been altered, indicating that the entire file is unlikely to have been altered either. By utilizing multiple authentication strings (multiple portions of the buffer), determining whether a file has been altered may be performed with higher confidence, albeit at the cost of computational efficiency.
In one exemplary approach, video capture and processing may be performed in a manner substantially similar to the flow diagram shown below. As noted with regard to other flow diagrams presented above, this illustrative example is in no way limiting, but rather provided to facilitate better understanding of the inventive concepts presented herein.
Video Capture User Interface
In still more embodiments, the presently described systems, methods, and computer program products may be implemented via one or more user interfaces configured to facilitate capturing and processing information using video data.
The user interfaces may further enable a user to easily perform capture and processing operations using video data, as well as review the results of such capture and/or processing operations in real-time or near real-time. For example, each time that image and/or video data is captured and/or processed, a thumbnail corresponding to the image and/or video data may be produced and presented to a user. Generating the thumbnail may be a process that is performed asynchronously in the background, in some approaches. Via the thumbnail, a user may review the results of what was captured and/or processed. If the user is dissatisfied with the result, or the result is otherwise determined to be unacceptable, e.g. according to one or more predefined quality assurance metrics, a user interface may facilitate re-capturing and/or augmenting the originally captured data.
In addition, user interfaces may be provided to enable and/or facilitate user review of capture and/or processing results, for example at the end of a capture-and-process session. For instance, in one approach a user, upon completion of a capture and/or processing workflow (e.g. video and/or image data have been captured and at least one processing operation performed on the data), the user may be presented with an opportunity to review the result of the workflow.
In another approach, user review may be enabled during the video capture operation. For example, a user initiates the video capture functionality of a mobile application, and begins capturing video data. As described above, the capture operation includes preprocessing such as stability determination and/or object discovery. In the course of capturing the video data, an object in the capture field is detected and an indication of the discovery is presented to the user (for example the appearance of a bounding box within the capture field changing color from red to green). A high-resolution image, thumbnail, etc. is optionally captured upon discovering the object and determining the existence of a stability condition, and the image may be presented to the user for immediate review within the video capture user interface. Upon reviewing the image, thumbnail, etc., the user may indicate the acceptability of the captured image, generated thumbnail, etc. If the user indicates the image, thumbnail, etc. is acceptable, then the video capture user interface may automatically terminate the capture operation, or optionally may direct the user to terminate the capture operation. In this manner, user review may be utilized to minimize the occurrence of unnecessary capture and/or processing operations, such as may be caused by a user continuing to perform a capture operation after a suitable high-resolution image has been captured and/or processed in a manner that satisfies requirements for downstream processing, such as image quality, image format, etc.
Tracking
In various approaches, the presently disclosed techniques benefit from the advantage of real-time (or near-real time) latency. In other words, as a user interacting with a mobile device conducts a capture operation, an analysis, etc. as disclosed herein, the underlying processes conducted to accomplish each operation may be performed in parallel, i.e. for multiple objects simultaneously, and in a near-real time manner. The computational cost has been reduced to an extent necessary to provide real-time information regarding object(s) depicted in a mobile device viewfinder, and represents a major advantage to the user when compared to existing techniques that require discrete capture, analysis, and submission techniques.
As a result, one of the advantageous embodiments of real-time capture, processing, analysis, and etc. is the ability to “track” objects throughout the course of performing the presently disclosed techniques. By “tracking” it should be understood that an object within a mobile device field of view may be identified and/or analyzed, and the identification/analysis may remain valid and/or present in a series of discrete frames of image and/or video data because the methodology is capable of monitoring the position of objects upon detecting those objects, and continuously analyzing the detected objects to provide useful information.
From the user perspective, tracking typically is embodied in the form of a bounding border (e.g. box, as described herein) being maintained with respect to a detected object, even as the mobile device is moved in three-dimensional space during the capture operation (causing the detected object to apparently move from the perspective of the mobile device's reference point), and/or even as multiple objects are present in the field of view. Indeed, tracking is capable of monitoring any number of objects that may be defined according to characteristics such as set forth herein.
As will be appreciated by a skilled artisan upon reading the present disclosures, any of the raw and/or processed data, such as image data, video data, etc., may be associated with various metadata, may be associated with other raw or processed data, etc. Moreover, any of the presently disclosed functionalities may be applied to image capture and processing, video capture and processing, etc.
In a preferred approach, for example, tracking comprises one or more of: repositioning or redefining the bounding border to surround the periphery of the object in each of the frames where the tracked object is depicted within the viewfinder; and repositioning or redisplaying the indication that the object depicted in the viewfinder exhibits the one or more defining characteristics.
Optionally, the tracking further comprises receiving real-time feedback from the mobile device. The real-time feedback is based at least in part, and ideally based entirely, on one or more measurements performed using mobile device hardware components, for example any one or more of: a camera, an accelerometer, a gyroscope, and a clock.
According to some techniques, the real-time feedback may include stability feedback including an angle of orientation of the mobile device being within a predetermined orientation range; and a motion vector of the mobile device having a magnitude less than a predetermined threshold.
In another approach, the motion vector of the mobile device is determined based on real-time feedback received from the camera, and not determined based on feedback from the mobile device accelerometer. In short, the tracking techniques are capable of calculating a magnitude and direction of a velocity with which a camera is being moved through three-dimensional space independent of any change in acceleration. As a result, the device is freed from reliance on an accelerometer to determine motion vectors (such as would be the case with a constant velocity).
Yet another advantage conferred by use of video data with the present inventive techniques is the capacity to generate composite images from a plurality of frames. In one context, this advantage is leveraged as discussed below with respect to super-resolution, which may be used to clarify blurred or grainy regions of an otherwise high-quality image, for example.
In the additionally advantageous technique, composite image synthesis may be leveraged to effectively image an object that is otherwise too large to capture with sufficient detail for the desired application using image data alone. For example, consider the case of a long document such as a receipt or legal form. The document depicts a plethora of informative text, albeit in a relatively small size. In order to capture the entire document in a single image, a user would have to distance the document so far from the camera that the quality of the informative text would be so degraded that subsequent extraction and use of the information would be impractical or impossible.
Accordingly, it is an additional aspect of the presently disclosed inventive techniques that along document may be captured using video data, and the various frames of the video data may be “stitched” together to form a composite image depicting the entire object that was too large to fit in a single shot with sufficient clarity. Particularly preferred are embodiments where the composite image retains the high level of specificity and detail otherwise achievable only by zooming in on the object to an extent that capturing the entire object in a single image is impossible.
Put another way, in one approach the composite image is characterized by a height and a width. The composite image height is greater than or equal to a height of any single frame of the video data, and the composite image width is greater than or equal to a width of any single frame of the video data. Each of the synthesized frames of the video data depicts a portion of the object, and the composite image depicts the entire object.
Moreover still, synthesizing the composite image includes detecting a first feature (e.g. top border of a page) of the object depicted in the viewfinder; automatically initiating a capture operation in response to detecting the first border of the object capturing one or more of high-resolution image data and low-resolution video data via the automatically initiated capture operation; detecting a second feature e.g. bottom border of a page) of the object depicted in the viewfinder; capturing one or more of high-resolution image data and low-resolution video data via the automatically initiated capture operation; and automatically terminating the capture operation in response to detecting the second feature of the object.
According to the foregoing approach, for example, a user may initiate the stitching operation by capturing along document using a slow pan from top to bottom. As discussed in further detail above, windowed OCR may be particularly advantageous to utilize in combination with a stitching-based approach to capture, determine, analyze, etc. textual information depicted in a long document or other large object incapable of being captured with a desired level of detail or resolution in a single image or video frame. For example, in some approaches since a user will capture various partial images from which to form the composite image, and this capture process generally (but not necessarily) involves a relatively smooth, slow panning of the mobile device camera with respect to the object being imaged, it will be possible for the user to simultaneously capture the large object and perform some real-time (or near-real-time) windowed OCR in unison. The windowed OCR results may be utilized independently or in conjunction with any other defining characteristics of the object to determine characteristics of the object. For example, in one approach an object classification or pertinent information from the object may be determined contemporaneous to capturing the video and/or image data for subsequent use in generating the composite image.
In various approaches, a suspected object classification could be determined based on the defining characteristics of the object, and validated using windowed OCR results, e.g. presence of a feature, value or string known to be present in objects belonging to a particular classification. Similarly, an object classification could be determined solely based on windowed OCR results rather than using defining characteristics from the object as described above. Moreover still, in some embodiments both the defining characteristics of the object and the windowed OCR results may be taken into consideration when determining a classification of the object.
For example, in one approach an object classification may be determined independently based on (1) windowed OCR results and (2) the defining characteristics of the object. The independently determined results may be assigned a relative weight, confidence value, etc., and analyzed further in order to make an overall determination with respect to the object classification.
For instance, various object types may be more readily classified according to either textual information depicted on the object, or from defining characteristics of the object itself. Documents may, for example, be more readily or accurately classified based on textual information that may be determined using a windowed OCR approach, while objects depicting an identifying mark such as a logo, emblem, barcode, seal, etc. may be more readily or accurately classified based on defining characteristics such as object shape, contour, dimensions, color profile, etc. as would be understood by one having ordinary skill in the art upon reading the present descriptions.
Nonetheless, it may be useful to utilize multiple types of information in determining a classification of a particular object, even if it is known a priori that the object is more readily or accurately classified based on one specific type of information. In such cases, the form or forms of information that are known to produce facile, accurate, reliable classification of a particular object may be utilized to predict an object classification, and assigned a relative weight (e.g. defining characteristics as defined herein may be utilized and assigned a weight of 0.75 on a 0-to-1 scale).
Similarly, other form s) of information helpful in determining object classifications, but perhaps to a lesser degree than the preferred information type, may be utilized to predict the object classification, and assigned relatively low weights compared to the preferred information type (e.g. textual information determined by windowed OCR may be used to predict the object classification, and the prediction assigned a weight of 0.25 on a 0-to-1 scale).
Returning now to the concept of composite image synthesis, in order to determine whether and precisely how two images should be stitched to form the composite image, in one approach the synthesizing comprises: performing at least one homography transformation on two or more of the frames of the video data, and aligning at least portions of the two or more frames of the video data based at least in part on the homography transformations.
Several exemplary methods commensurate in scope with the present disclosures will now be discussed with particular reference to FIGS. 3 and 4. The exemplary embodiments presented below are not to be considered limiting on the scope of the instant disclosure, but rather are provided to illustrate possible implementations of the subject matter discussed herein.
Referring now to FIG. 3, a flowchart of a method 300 is shown, according to one embodiment. The method 300 may be performed in any suitable environment, such as those depicted above in FIGS. 1-2, among others. Moreover, the method 300 may include any number of additional and/or alternative operations aside from those specifically depicted in FIG. 3, in several approaches. The operations of method 300 may be performed in any suitable order that would be comprehended by one having ordinary skill in the art upon reading this disclosure.
In operation 302, digital video data captured by a mobile device is received.
Operations 304-308 may be performed using a processor, which in various embodiments may be a processor of the mobile device, a processor of a remote device such as a server or another mobile device, a processor of one or more resources of a cloud computing environment, etc. Operations 304-308 may be performed using any combination of such device(s) and/or processors thereof, in various embodiments.
In operation 304 a plurality of frames of the digital video data are analyzed.
In operation 306, one or more frames are identified based on the analysis, the identified frames satisfying one or more predefined quality control criteria.
In operation 308, at least one frame satisfying one or more of the predefined quality control criteria is processed.
In some approaches, predefined quality control criteria may include a minimum illumination level, e.g. an average illumination above a certain threshold; a maximum illumination level, e.g. an average illumination below a certain threshold; a minimum illumination evenness, e.g. an illumination deviation from some predefined value, from an average illumination, etc. being below a certain threshold; a minimum resolution; a minimum sharpness, e.g. an amount of blur below a certain threshold; and a minimum projection, i.e. the impact of projective effects such as angle of camera orientation, fish-bowling, etc. is below a certain threshold, which may be determined based on metadata collected during the capture operation or characteristics of the image.
Quality control criteria may further include, for example, a threshold visibility criterion or any other suitable indication of whether the document is wholly or partially visible), as may be embodied in a threshold number of expected edges, corners, or other defining features are discernable within the viewfinder region and/or are sufficiently within the viewfinder region (e.g. first embodiment is a binary yes/no, second embodiment is a further test to see if there is sufficient space around each edge of the object, etc. Further still, quality control criteria may in various approaches include a presence of glare; and an object classification.
For example, as a representation of a truly rectangular document may be analyzed to determine the rectangular “character” of the depicted document, which may appear trapezoidal due to imperfect capture angle. Images depicting a document whose appearance deviates too much from “rectangular” may be ignored. Determining whether a shape is substantially rectangular, such as a shape whose sides correspond to edges of a document, may be accomplished using any known means in the art, and in one embodiment may involve performing one or more transformations.
In more approaches, the method may additionally and/or alternatively include: determining whether the one or more frames satisfying the one or more predefined control criteria correspond to a high-resolution image stored on the mobile device; processing the high-resolution image upon determining the one or more frames satisfying the one or more predefined control criteria correspond to the high-resolution image. In other words, if a mobile device has a high resolution image of a document stored in memory, and a video stream captures a relatively low-resolution but otherwise acceptable frame or frames of the document, it may be preferable to utilize the high-resolution image in subsequent processing, but more computationally efficient to capture, analyze and/or pre-process the relatively low-resolution frame(s) corresponding to the high resolution image.
In various embodiments particularly directed to document processing, the digital video data comprises a digital representation of a document. In this scenario, the method may also include capturing the digital video data using a camera of the mobile device and detecting the digital representation of the document.
Some approaches including super-resolution capabilities as described herein may involve synthesizing at least a portion of two or more frames of the digital video data; and generating a composite image based on the synthesizing. At least a portion of the composite image is preferably characterized by a relatively higher resolution than a resolution of any of the two or more frames of the digital video data from which the composite image was synthesized. The composite image may be utilized to perform document detection (or object discovery in the case of objects other than documents).
Selective Auto-Capture
Also within the scope of the present disclosure is selective auto-capture functionality, which in one embodiment may be implemented in whole or in part as a method, such as method 400, shown in FIG. 4. The method 400 may be performed in any suitable environment, such as those depicted above in FIGS. 1-2, among others. Moreover, the method 400 may include any number of additional and/or alternative operations aside from those specifically depicted in FIG. 4, in several approaches. The operations of method 400 may be performed in any suitable order that would be comprehended by one having ordinary skill in the art upon reading this disclosure.
In operation 402, a mobile application is invoked using a processor of a mobile device. The mobile application may be invoked in any suitable manner, such as by interacting with a user interface of the mobile device, issuing a voice command, pressing a button, etc.
In operation 404, a video capture interface of the mobile application is invoked. The video capture interface may be invoked expressly by a user, for example by interacting with a button or user interface displayed on the mobile device screen. Alternatively, the video capture interface may be invoked automatically, either as part of a predetermined routine, in response to a precondition being satisfied (such as a prior process completing execution), etc., in various approaches.
In operation 406, user input is received via the capture interface. The user input may preferably direct the mobile application to invoke a capture operation, for example using a capture component of a mobile device.
In operation 408, real-time feedback is requested via the mobile device. The real-time feedback may relate to any relevant portion of video capture and/or processing, and in one preferred embodiment real-time feedback relates to invoking the capture operation, such as one or more characteristics of data captured via the capture operation, parameters for performing the capture operation, characteristics of a capture component to be used in performing a capture operation, such as an orientation and/or acceleration of a mobile device (which may be determined using integrated hardware components such as a gyroscope, an accelerometer, etc.), information regarding the result of a capture operation, suitability of captured data for subsequent processing, etc.
In one particular embodiment, operation 408 includes requesting stability information from one or more hardware components integrated into the mobile device. The capture interface transparently requests mobile device acceleration data from an integrated accelerometer in response to receiving the user input directing the capture interface to invoke the capture operation. The capture interface may also transparently request mobile device orientation data from an integrated gyroscope in response to receiving the user input directing the capture interface to invoke the capture operation. Upon receiving the requested acceleration data and orientation data, the data are compared to predefined stability-threshold criteria previously determined to correspond to notability condition, i.e. conditions that typically result in capturing image and/or video data of sufficient quality for downstream processing. The comparison result may be utilized to determine whether the stability condition exists, and data may be captured only upon determining the stability condition exists to maximize the probability that any image captured via the capture interface is suitable for the desired downstream processing.
In operation 410, real-time feedback is received. As described in further detail below, the real-time feedback may be utilized to facilitate capturing video and/or image data under conditions likely to result in the video and/or image data being of sufficient quality for downstream processing. For example, real-time feedback may be utilized to ensure adequate illumination during capture, to minimize blur, glare, streaking, etc. to ensure the video and/or image data captures an appropriate object or object type, etc.
In operation 412, a capture operation is invoked via the capture interface upon determining the real-time feedback meets one or more predetermined criteria.
Real-time feedback is preferably based at least in part on one or more measurements performed using one or more integrated hardware components of the mobile device. Exemplary integrated hardware components include one or more of a camera, an accelerometer, a gyroscope, and a clock, but may include any hardware component integrated into a mobile device. Moreover, the real-time feedback may be in whole or in part an indication that a document is in a field of view of the camera integrated into the mobile device.
In a particularly preferred approach, the real-time feedback comprises stability feedback, such as an angle of orientation of the mobile device; an acceleration vector of the mobile device (e.g. a magnitude and a direction of acceleration per unit time of the mobile device), illumination of a field of view of the camera, illumination of a target object in the field of view of the camera, presence of glare in a field of view of the camera, etc. as would be understood by one having ordinary skill in the art upon reading the present descriptions. In one embodiment, illumination may be indicated by and/or derived from a minimum, maximum, average, or other statistical information regarding video stream and/or image intensity, brightness, etc., which may be obtained from the camera directly and/or with minimal preprocessing during the video stream capture, in various approaches. Similarly, glare may be indicated by one or more regions of the field of view being oversaturated. Oversaturation may be determined substantially as disclosed in related U.S. patent application Ser. No. 13/740,123.
Various implementations may utilize predetermined criteria such as the angle of orientation of the mobile device being within a predetermined orientation range; and the acceleration vector of the mobile device having a magnitude less than a predetermined threshold.
In one approach, invoking the capture operation includes invoking an autofocus operation using a camera of the mobile device; invoking an autoflash operation using the camera; and invoking a data acquisition operation using the camera.
In further approaches, data acquisition may include capturing data comprising one or more of a still image and digital video. The data may be or comprise a digital representation of a document, or a digital representation of a plurality of documents.
Still more embodiments within the scope of this disclosure may additionally and/or alternatively include determining whether the one or more predefined criteria are satisfied; and determining whether the capture operation captured data corresponding to the one or more predefined criteria being satisfied in response to determining the one or more predefined criteria are satisfied. For example, one embodiment may include determining that the mobile device captured data under conditions where the predefined criteria were satisfied, such as a minimum stability, proper angle of orientation, minimum movement in a particular direction, etc. as would be understood by one having ordinary skill in the art upon reading the present descriptions.
Exemplary methods within the scope of the instant descriptions may further encompass outputting an indication to the user via a display of the mobile device in response to determining the capture operation captured data corresponding to the one or more predefined criteria being satisfied. The indication preferably indicates the capture operation captured data corresponding to the one or more predefined criteria being satisfied. In one embodiment, the mobile device may display a bounding border, box or other overlaying shape around an object depicted in the mobile device camera's field of view.
The bounding box may change color upon determining that the capture operation has completed and captured data under conditions where the predefined criteria were satisfied. In one approach, the mobile device displays a white bounding box before detecting the object in the camera's field of view, a yellow bounding box upon detecting the object but before completing the capture operation under the desired conditions, and a green bounding box upon completing the capture operation under the desired conditions or a red bounding box upon failing to complete the capture operation under the desired conditions.
In this manner the user may be advantageously informed when to cease attempting to capture data via the capture interface of the mobile application and/or whether it will be necessary to repeat the capture operation for any object in the camera's field of view. Of course, in other embodiments where multiple documents are within the camera's field of view, the display may display several bounding boxes.
In another embodiment, the one or more bounding boxes may change in color in response to determining whether one or more of multiple documents within the camera's field of view have been recently captured and/or processed. For example, in one approach where a camera's field of view encompasses several objects such as documents, desirable capture conditions for each object may be achieved at a different point in time or several different points in time. Accordingly, it may be advantageous to determine when an object in the field of view has been captured according to desirable capture conditions, and cease attempting to capture that object while continuing to attempt capturing other object not yet captured under the desired capture conditions. Similarly, once all objects have been captured under the desired capture conditions, it may be useful to provide feedback indicating that all objects depicted in the field of view have been captured according to the desired capture conditions and the capture operation may be ceased.
In still another embodiment, where a camera's field of view encompasses several objects such as documents it may be advantageous to exclude or ignore objects in the course of the capture operation, for example if the object has been previously captured under suitable conditions or if the object has been previously processed by and/or according to processing intended to be performed using the data currently being captured.
An exemplary use case scenario will now be described, according to several embodiments. Those having ordinary skill in the art will appreciate upon reading these descriptions that the exemplary use case is provided for illustrative purposes, and is not intended to be limiting in any way. Other use cases are fully within the scope of the present descriptions, and may include utilizing any combination of features disclosed herein in any manner.
According to the exemplary use case scenario, the presently disclosed inventive concepts are embodied in a methodology substantially as represented by method 500 as shown in FIG. 5. The method 500 may be performed in any suitable environment disclosed herein or as would be appreciated by one having ordinary skill in the art upon reading the present descriptions.
As shown in FIG. 5, method 500 includes operation 502, where a capture interface is invoked via a mobile device. The capture interface includes a viewfinder, preferably a rectangular viewfinder defined by a targeting reticle displayed via the mobile device.
Method 500 also includes operation 504, where a plurality of captured video data frames are analyzed to determine (1) whether an object exhibiting predetermined defining characteristics is wholly or partially depicted in the viewfinder region, and (2) whether the object satisfies quality control criteria. Defining characteristics and quality control criteria may include any feature as described herein, preferably those characteristics discussed above and in the related applications incorporated by reference with respect to image or object classification. Feature vectors represent data particularly suitable for use as “defining characteristics.”
According to method 500, and depending on whether the object exhibits the defining Characteristics and satisfies quality control criteria, one or more responsive actions are taken in operation 506.
If the aforementioned criteria are met (object detected, quality acceptable), then an indication of this detection and/or quality status may be displayed to the user, e.g. via the device display. Preferably, these indications are displayed in real- or near-real time as the image analysis and/or processing are conducted.
On the other hand, if an object is not detected, or does not satisfy the quality control criteria, an indication of the failure(s) may similarly be displayed via the mobile device.
Further still, one or more images may be captured at a resolution higher than the resolution of the video data frames (to provide more and/or better raw data) and processed or stored. Similarly, those frames of video in which the object was depicted in the viewfinder and satisfies the quality control criteria may be archived, flagged, preserved stored to memory, etc. as would be understood by one having ordinary skill in the art upon reading the present descriptions.
The method 500 may also feature one or more additional and/or alternative operations, in several approaches. For example, in one approach the captured image(s) and/or video frame(s) may be further processed. For example, processing may include classifying object(s) depicted in the image(s) and/or frame(s), extracting data from those object(s), tracking objects depicted in a video stream in real-time, displaying pertinent information to a user, etc.
Moreover, in particularly preferred embodiments, the presently disclosed techniques are fully capable of simultaneously performing any of the disclosed processing operations in near-real time as a video stream is captured, and furthermore capable of simultaneously performing the capture, analysis, and/or processing techniques disclosed herein in real-time or near-real time for multiple objects depicted within a single video stream (or image). This parallel, real-time functionality should be understood to apply equally to the operations discussed above with reference to FIG. 5, in various approaches.
In another use case illustration, a user starts a mobile application on their mobile device. The user is presented the option to invoke an optional module such as an “auto-assist” module or a “Mobile Capture Wizard” to assist the user in capturing high quality image data for subsequent processing. The user may interact with a button displayed on the mobile device display to invoke the optional “auto-assist” module or “Mobile Capture Wizard,” for example. Alternatively, the module may be programmatically invoked or preset by the user, for example in a “settings” interface of the mobile capture application. In this use case, the user invokes the Mobile Capture Wizard.
Upon invoking the Mobile Capture Wizard, the user is presented with an interface via the mobile device display, the interface including several buttons which permit the user to selectively capture either in a “Photo” mode or a “Video” mode. The user interacts with the “Video” button indicating to the mobile application that the user wishes to capture a video stream. Alternatively, the capture mode may be programmatically invoked or preset by the user, for example in a “settings” interface of the mobile capture application.
After indicating the desire to capture a video stream, the user may interact with a camera button. In response, the Mobile Capture Wizard queries the device accelerometer and/or gyroscope to determine device orientation, and if the device is not oriented substantially as desired, (e.g. parallel to a flat, horizontal surface such as a desk, the ground, etc. for a document, or parallel to a vertical surface such as a poster, automobile surface depicting a Vehicle Identification Number, etc.), user feedback may be presented to the user via the mobile device display, e.g. in the form of a transparent screen, the feedback indicating improper device orientation. The user feedback may overlay the capture interface viewport so that the user cannot capture an image until proper device orientation is achieved. Proper device orientation may be programmatically determined and/or preset by a user to include any device orientation (e.g. as an angle) in a settings interface.
As the user moves the orientation of the device to a “desired orientation,” the mobile application periodically queries the device accelerometer and/or gyroscope to determine the actual orientation of the device. During this operation an on-screen user feedback is displayed indicating to the user how the orientation of the device should be adjusted for optimal capture orientation.
Once the orientation falls within a predetermined tolerance range for aspect ratio correction and normalization, the transparent overlay screen disappears and the mobile application begins analyzing, in real-time, video data gathered from the mobile device camera to detect page boundaries.
Upon detecting page boundaries, the mobile device optionally again periodically checks for device stability, and upon determining that the device is sufficiently stable according to predetermined tolerance thresholds, additional user feedback is provided indicating suitable conditions exist for capturing the detected page. For example, user feedback may be provided in the form of a yellow bounding box displayed around the detected page boundaries.
Whether or not the optional second orientation and/or stability detection operation is performed, upon determining that the device is stable, properly oriented, and a page has been detected, user feedback is displayed via the mobile device display to indicate conditions suitable for capturing high-quality image data exist. The mobile application then proceeds automatically to capturing the image of the document depicted in the capture interface viewport.
The mobile application capture then forces an auto-focus operation using the device camera, and captures the video frame containing the detected page, which may be a high resolution version, if available, of the original video frame containing the detected page. Alternatively, one or more video frames, including the relatively low-resolution original video frame in which the page was detected may be captured. The mobile application displays the captured image in real-time, either directly in the capture interface or in another interface displayed on the mobile device display after completing the high-resolution capture operation.
Full image processing which may include any or all of the image processing operations disclosed in the related U.S. patent applications referenced above) is initiated by the mobile application as a background, asynchronous thread. In addition, a quality control process module is simultaneously initiated and an on screen indication is given as feedback regarding document illumination and/or blur. Once the asynchronous background processing is complete, the displayed image is refreshed (e.g. top to bottom on the mobile device display) with the processed image. Notably, the image processing may be performed using a processor of the mobile device, a processor of a remote device such as a server, or any combination thereof.
The mobile application may either automatically save the original and processed image, or prompt a user for instructions regarding whether to save the original and/or processed image, and save the images indicated by the user accordingly. The data may be synchronized with a host cloud or on-premises system for storage, further processing and/or subsequent re-use.
In various embodiments, saving the image, whether the original image, processed image, or any variations thereof, may include saving a file combined with any image-related metadata, such as classification results, extraction results, or any environmental metadata such as geo-position tagging, date/time stamping, etc. all within one single file (e.g. a printable document format (PDF) e-form). This type of save operation may be optionally invoked by the user in real-time or in a settings interface. Alternatively, the image data may be saved as-is without being associated with metadata.
Various embodiments may additionally and/or alternatively include displaying a capture result preview via a display of the mobile device and receiving user input in response to the capture preview. Moreover, in at least one embodiment the preview depicts at least one object captured via the capture operation.
The inventive concepts disclosed herein have been presented by way of example to illustrate the myriad features thereof in a plurality of illustrative scenarios, embodiments, and/or implementations. It should be appreciated that the concepts generally disclosed are to be considered as modular, and may be implemented in any combination, permutation, or synthesis thereof. In addition, any modification, alteration, or equivalent of the presently disclosed features, functions, and concepts that would be appreciated by a person having ordinary skill in the art upon reading the instant descriptions should also be considered within the scope of this disclosure.
For example, in myriad illustrative approaches, a method, a system configured to execute logic and perform a method, and/or a computer program product comprising computer readable instructions configured to cause a processor to perform a method may include any one or more of the following features. Similarly, various embodiments may exclude some or all of the features set forth below. In general, the following features may be combined in any suitable manner that would be appreciated by one having ordinary skill in the art upon reading the present descriptions.
Again, a method, system, and/or computer program product may include any combination of: invoking an image capture interface via a mobile device, the capture interface comprising a viewfinder represented on a display of the mobile device; and analyzing a plurality of frames of video data captured via the capture interface. The analyzing may include determining: Whether an object exhibiting one or more defining characteristics is depicted within the viewfinder; and if so, whether the object depicted within the viewfinder satisfies one or more predetermined quality control criteria. In response to determining a frame fails one or more of the predetermined quality control criteria, the method/system/computer program may include displaying an indication of the failure on the mobile device display. The failure indication preferably identifies the one or more quality control criteria not satisfied by the frame(s), and optionally includes abounding border substantially surrounding a periphery of the object within the viewfinder. In response to determining the object depicted within the viewfinder satisfies the one or more predetermined quality control criteria, the method/system/computer program may include one or more of displaying an indication that the object depicted in the viewfinder exhibits the one or more defining characteristics; automatically capturing an image of the object, wherein the image is characterized by a resolution higher than a resolution of the video data; and automatically storing to a memory one or more of the frames in which the object satisfying the predetermined quality control criteria is depicted in the viewfinder. Preferably, the success indicator specifically identifies object classification, and optionally includes a bounding border substantially surrounding a periphery of the object within the viewfinder. In some approaches, the object comprises a document having one or more pages, or multiple documents each having one or more pages. The method/system/computer program may include processing at least one of the automatically captured image and the automatically stored frame(s) at least in part using a processor of the mobile device. The processing includes tracking the object depicted within the viewfinder in real-time or near-real-time; classifying the object depicted within the viewfinder; and/or extracting data from the object depicted in the viewfinder. Processing is optionally performed with respect to at least two of the multiple documents or multiple pages, when present; e.g. tracking, classifying and/or extracting may be performed simultaneously with respect to one another and/or multiple documents or pages of a single document. The simultaneous processing may preferably be conducted across multiple frames of the video data: Classifying may more specifically include: determining one or more defining characteristics of the object depicted within the viewfinder; and comparing the one or more determined defining characteristics to defining characteristics of each of a plurality of object classifications. In some situations, the method/system/computer program includes either: determining an object classification based at least in part on the comparison; or determining the object does not correspond to any of the plurality of object classifications based at least in part on the comparison. In response to determining the object does not correspond to any of the plurality of object classifications the method/system/computer program includes: requesting user input relating to the object receiving the user input; defining a new object classification based at least in part on the user input; and assigning the object to the new object classification. Similarly, tracking may include one or more of: repositioning or redefining the bounding border to surround the periphery of the object in each of the frames where the object is depicted within the viewfinder; repositioning or redisplaying the indication that the object depicted in the viewfinder exhibits the one or more defining characteristics; and receiving real-time feedback from the mobile device, the real-time feedback being based at least in part on one or more measurements performed using one or more mobile device components selected from: a camera, an accelerometer, a gyroscope, and a clock. Preferably, the real-time feedback includes stability feedback including an angle of orientation of the mobile device being within a predetermined orientation range; and a motion vector of the mobile device having a magnitude less than a predetermined threshold. The motion vector, in some approaches is determined based on real-time feedback received from the camera, and is not determined based on feedback from an accelerometer. In some approaches, particularly those involving tracking or processing of long/large objects, the method/system/computer program also includes synthesizing at least a portion of two or more frames of the video data; and generating a composite image based on the synthesis. The composite image is optionally characterized by a height and a width, and the composite image height is greater than or equal to a height of any single frame of the video data, and/or the composite image width is similarly greater than or equal to a width of any single frame of the video data. Each of the synthesized frames of the video data ideally depicts a portion of the object, while the composite image depicts an entirety of the object. Synthesizing the composite image from the various video data frames preferably includes: detecting a first feature of the object depicted in the viewfinder; automatically initiating a capture operation in response to detecting the first border of the object; capturing one or more of high-resolution image data and low-resolution video data via the automatically initialed capture operation; detecting a second feature of the object depicted in the viewfinder; capturing one or more of high-resolution image data and low-resolution video data via the automatically initiated capture operation; and automatically terminating the capture operation in response to detecting the second feature of the object. Synthesizing may also, or instead, include performing at least one homography transformation on two or more of the frames of the video data, and aligning at least portions of the two or more frames of the video data based at least in part on the homography transformations. The object imaged using the aforementioned synthesizing techniques to form a composite is preferably a document characterized by at least one dimension thereof being too large to encompass the entire document within the viewfinder, and simultaneously preserve a desired minimum resolution of the document, e.g. a resolution sufficient to resolve textual information depicted in the document. Moreover still, at least a portion of the composite image may be characterized by a higher resolution than a resolution of any of the two or more frames of the digital video data. This result may be accomplished, in some embodiments, using a “super-resolution” technique as described herein, and may further include detecting the object in the composite image based at least in part on the portion of the composite image characterized by the higher resolution. Determining whether the one or more frames satisfying the one or more predefined control criteria correspond to a high-resolution image stored on the mobile device is another useful feature; and may be used to retrieve previously captured and stored high-resolution images, as well as process the stored high-resolution image(s). It may be useful in some scenarios to associate metadata with stored image and/or video data. In preferred approaches, predetermined quality control criteria may include any one or more of: a minimum illumination level; a maximum illumination level; a minimum illumination evenness; a minimum resolution; a minimum sharpness; a minimum projection angle; a maximum projection angle; a threshold visibility criterion; a presence of glare; and an object classification.
While various embodiments have been described above, it should be understood that they have been presented by way of example only, and not limitation. Thus, the breadth and scope of an embodiment of the present invention should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.

## Claims

1. A computer-implemented method, comprising:
receiving image data via a mobile device, the image data comprising a plurality of frames; and
generating a composite image based on at least two of the plurality of frames;
determining whether one or more of the frames depict an object exhibiting one or more defining characteristics; and
in response to determining one or more of the frames depict the object, setting a minimum capture resolution for capturing other objects exhibiting the one or more defining characteristics.

2. The method as recited in claim 1, wherein the at least two of the plurality of frames are each characterized by a reduced resolution; and wherein the composite image is characterized by a higher resolution.

3. The method as recited in claim 2,
wherein the higher resolution is at least about 1000 pixels by about 1000 pixels.

4. The method as recited in claim 1, wherein the at least two of the plurality of frames are each characterized by a blurred region; and
wherein the composite image is characterized by an absence of the blurred region.

5. The method as recited in claim 4, wherein a location of the blurred region in each of the at least two of the plurality of frames is the same; and
wherein a location of the absence of the blurred region in the composite image is the same as the location of the blurred region in each of the at least two of the plurality of frames.

6. The method as recited in claim 1, wherein each of the at least two of the plurality of frames comprises binary image data, and the method comprising one or more of comparing and extracting data from one or more of the composite image and the at least two of the plurality of frames.

7. The method as recited in claim 6, wherein the data comprises text characters.

8. The method as recited in claim 1, comprising capturing the image data, wherein the image data comprise video data.

9. The method as recited in claim 1, wherein each of the plurality of frames is characterized by a different resolution ranging from about 25 pixels by about 25 pixels to about 256 pixels by about 256 pixels.

10. The method as recited in claim 9, comprising determining whether one or more of the frame(s) determined to depict the object satisfy one or more predetermined quality control criteria.

11. The method as recited in claim 10, wherein the predetermined quality control criteria are selected from a group consisting of: a minimum illumination level; a maximum illumination level; a minimum illumination evenness; a minimum resolution; a minimum sharpness; a minimum projection; a glare presence; and a classification of the object.

12. The method as recited in claim 10, comprising determining whether the one or more frames satisfying the one or more predefined control criteria correspond to a high-resolution image stored on the mobile device; and
processing the high-resolution image upon determining the one or more frames satisfying the one or more predefined control criteria correspond to the high-resolution image.

13. The method as recited in claim 1, comprising receiving user feedback confirming or negating whether the one or more frames depict the object, wherein the minimum capture resolution is set in further response to determining the user feedback confirms the one or more frames depict the object.

14. The method as recited in claim 1, wherein the minimum capture resolution is at least as high as a lowest resolution of the one or more frames determined to depict the object.

15. A computer program product comprising: a non-transitory computer readable storage medium having program code embodied therewith, the program code readable/executable by a processor to:
receive image data via a mobile device, the image data comprising a plurality of frames;
generate a composite image based on at least two of the plurality of frames;
determine whether one or more of the frames depict an object exhibiting one or more defining characteristics; and
in response to determining one or more of the frames depict the object, set a minimum capture resolution for capturing other objects exhibiting the one or more defining characteristics.

16. The computer program product as recited in claim 15, wherein the at least two of the plurality of frames are each characterized by a reduced resolution; and
wherein the composite image is characterized by a higher resolution.

17. The computer program product as recited in claim 15, wherein the at least two of the plurality of frames are each characterized by a blurred region; and
wherein the composite image is characterized by an absence of the blurred region.

18. The computer program product as recited in claim 15, wherein the minimum capture resolution is at least as high as a lowest resolution of the one or more frames determined to depict the object.

19. The computer program product as recited in claim 15, wherein the at least two of the plurality of frames are each characterized by a blurred region;
wherein the composite image is characterized by an absence of the blurred region
wherein a location of the blurred region in each of the at least two of the plurality of frames is the same; and
wherein a location of the absence of the blurred region in the composite image is the same as the location of the blurred region in each of the at least two of the plurality of frames.

20. A computer-implemented method, comprising:
receiving image data via a mobile device, the image data comprising a plurality of frames; and
generating a composite image based on at least two of the plurality of frames;
wherein the at least two of the plurality of frames are each characterized by a blurred region;
wherein the composite image is characterized by an absence of the blurred region;
wherein a location of the blurred region in each of the at least two of the plurality of frames is the same; and
wherein a location of the absence of the blurred region in the composite image is the same as the location of the blurred region in each of the at least two of the plurality of frames.