CN104010111A - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
CN104010111A
CN104010111A CN201410269938.3A CN201410269938A CN104010111A CN 104010111 A CN104010111 A CN 104010111A CN 201410269938 A CN201410269938 A CN 201410269938A CN 104010111 A CN104010111 A CN 104010111A
Authority
CN
China
Prior art keywords
image
acquisition device
call
image acquisition
agreement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410269938.3A
Other languages
Chinese (zh)
Inventor
陈亮
王航
吴立
张海超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Beijing China Power Information Technology Co Ltd
Original Assignee
State Grid Corp of China SGCC
Beijing China Power Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Beijing China Power Information Technology Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201410269938.3A priority Critical patent/CN104010111A/en
Publication of CN104010111A publication Critical patent/CN104010111A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

The invention discloses an image processing method and device. The image processing method comprises the steps that a driving protocol which is matched with an image acquisition device is called, then an image acquired by the image acquisition device is obtained, the image is processed, and the processed image is uploaded to a background server through a localized client-side application. The image uploaded to the background server can be directly used through a browser. According to the image processing method and device, the problem of calling failures occurring when the image acquisition device is directly called by the browser is solved, and the finally obtained image can be directly used by the browser.

Description

A kind of image treatment method and device
Technical field
The application relates to image processing technique field, more particularly, relates to a kind of image treatment method and device.
Background technology
Along with popularizing rapidly of IT application in enterprises, enterprise's unstructured information total amount becomes geometric progression to increase.For bulk information being excavated, analyzing, provide aid decision, progressively realize that enterprise handles official business with no paper at all, automation processing, intelligent analysis advanced management pattern, the document that need to produce enterprise carry out electronic form collection, preservation circulation.
If browser can directly call image modalities, can greatly save the processing time of image.But, because image acquisition device adopts respectively different programming languages from browser, directly call image modalities and have obstacle.Existing method is manual operation scanner, the high image modalities such as instrument of clapping, and obtains after electron image, imports existing information system and carries out data analysis, preservation.Undoubtedly, this processing mode complex steps, and need manual operation collecting device, cannot accomplish automatically to carry out collection, the processing procedure of image.
Summary of the invention
In view of this, the application provides a kind of image treatment method and device, for solving existing image processing mode, needs the artificial problem that gathers image, complex steps.
To achieve these goals, the existing scheme proposing is as follows:
An image treatment method, comprising:
Call the driving agreement matching with image acquisition device;
Obtain the image that described image acquisition device gathers;
Described image is processed;
Image after processing is uploaded to background server.
Preferably, described image acquisition device is scanner, calls the driving agreement matching with image acquisition device to be:
Call the agreement without note name kit TWAIN, to call described scanner.
Preferably, described image acquisition device is the high instrument of clapping, and calls the driving agreement matching with image acquisition device and is:
Call and the described high SDK SDK that instrument is corresponding that claps, to call the described high instrument of clapping.
Preferably, described described image is processed, being comprised:
The position of described image, size and gradient are adjusted.
Preferably, described obtain the image that described image acquisition device gathers before, also comprise:
The type of described image acquisition device, parameter are arranged.
Preferably, when described scanner scanning be VAT invoice time, also comprise:
Described VAT invoice is carried out to optical character identification.
Preferably, described image after processing is uploaded to background server before, also comprise:
Image after described processing is encrypted, is compressed.
An image processor, comprising:
Agreement call unit, for calling the driving agreement matching with image acquisition device;
Image capturing unit, the image gathering for obtaining described image acquisition device;
Image process unit, for processing described image;
Image uploading unit, for uploading to background server by the image after processing.
Preferably,
When described image acquisition device is scanner, described agreement call unit is used for calling the agreement without note name kit TWAIN, to call described scanner;
When described image acquisition device is high bat instrument, described agreement call unit is for calling and the described high SDK SDK that instrument is corresponding that claps, to call described high bat instrument.
Preferably, also comprise:
Parameter set unit, for arranging the type of described image acquisition device, parameter.
From above-mentioned technical scheme, can find out, the disclosed image treatment method of the application, by calling the driving agreement matching with image acquisition device, and then obtains the image that described image acquisition device gathers, then described image is processed, the image after processing is uploaded to background server.The image that uploads to background server can directly be used by viewed device.The application's method, avoided browser directly to call image acquisition device and face call failure problems, the image that the application finally obtains can directly be used by browser.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiment of the application, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the disclosed a kind of image treatment method flow chart of the embodiment of the present application;
Fig. 2 is the disclosed a kind of image processor structural representation of the embodiment of the present application;
Fig. 3 is the disclosed another kind of image processor structural representation of the embodiment of the present application;
Fig. 4 is disclosed another the image processor structural representation of the embodiment of the present application;
Fig. 5 is disclosed another the image processor structural representation of the embodiment of the present application.
Embodiment
For quote and know for the purpose of, the technical term hereinafter using, write a Chinese character in simplified form or abridge to sum up and be explained as follows:
JavaScript: a kind of literal translation formula script is a kind of regime type, weak type, the language based on prototype, built-in support type.Its interpreter is called as JavaScript engine, is a part for browser, is widely used in the script of client, is to use on html web page the earliest, and being used for increases dynamic function to html web page.
TWAIN agreement: TWAIN agreement full name Toolkit Without An Interesting Name, without note name kit agreement.That application software is obtained the international standard of static image from computer peripheral equipment.TWAIN agreement, for operating system provides software support, makes the software that meets TWAIN agreement just can obtain static image from the peripheral hardware of compatible TWAIN agreement by calling TWAIN protocol interface, and needn't consider the function difference of peripheral hardware.
SDK: full name is Software Development Kit, SDK.General is all that some are used to specific software kit, software frame, hardware platform, operating system etc. to set up the set of the developing instrument of application software by software engineer.
OCR:Optical Character Recognition, optical character identification, refer to that electronic equipment (for example scanner or digital camera) checks the character of printing on paper, by detecting its shape of dark, bright mode decision, then with character identifying method, shape is translated into the process of computword.
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the application's part embodiment, rather than whole embodiment.Embodiment based in the application, those of ordinary skills are not paying all other embodiment that obtain under creative work prerequisite, all belong to the scope of the application's protection.
The application provides a kind of image treatment method, for calling the image acquisition device of network bottom layer, and passes to server after the image gathering is processed to processing, for browser directly.
Referring to Fig. 1, Fig. 1 is the disclosed a kind of image treatment method flow chart of the embodiment of the present application.
As shown in Figure 1, the method comprises:
Step 101: call the driving agreement matching with image acquisition device;
Calling of image acquisition device must have corresponding driving agreement, only calls and drives agreement can realize calling image acquisition device.
Step 102: obtain the image that described image acquisition device gathers;
Through the driving agreement invoked procedure of previous step, can realize calling image acquisition device.Thereby obtain the image information that image acquisition device gathers.
Step 103: described image is processed;
After having obtained image information, need to carry out part processing to image, for example, adjust position, the size of image, image is carried out to de-black limit processing etc.
Step 104: the image after processing is uploaded to background server.
Treated image can upload to the server on backstage.When browser need to use this image, can directly obtain from background server, avoided browser directly to call the failure problems that image acquisition device exists.
The disclosed image treatment method of the embodiment of the present application, by calling the driving agreement matching with image acquisition device, and then obtain the image that described image acquisition device gathers, and then described image is processed, the image after processing is uploaded to background server.The image that uploads to background server can directly be used by viewed device.The application's method, avoided browser directly to call image acquisition device and face call failure problems, the image that the application finally obtains can directly be used by browser.
Optionally, image acquisition device can be scanner.And existing scanner kind is a lot of on market, in order to call dissimilar scanner, we adopt unified TWAIN agreement, and this TWAIN agreement is applicable to the scanner of a variety of kinds.Like this, we can call TWAIN agreement, and then call scanner.
Optionally, image acquisition device can also be the high instrument of clapping, and now we can call with this height and clap the SDK SDK that instrument is corresponding, and SDK SDK is provided by developer, and we can obtain easily.
Optionally, all right fingerprint collecting device of image acquisition device, now we call the SDK SDK corresponding with this fingerprint collecting equipment, call fingerprint collecting equipment.
Certainly, it is only above-mentioned scanner, high instrument and the fingerprint collecting equipment clapped that the application does not limit image acquisition device, and it can also be any device that possesses image collection function.
When image acquisition device is scanner, its scanning can be VAT invoice, now, the application's method can also comprise carries out OCR optical character identification to VAT invoice.Through character recognition, can learn the information such as the amount of money, unit, invoice code of this invoice, these information are uploaded to server, browser can utilize list of these Information generations automatically so, the inconvenience of having avoided the manual input message of user to bring.
The above-mentioned process that image is processed, can comprise the display mode of image is set, for example former figure shows, thumbnail shows, to image position drag, image sorts out and to set, operation service event to image in browser is set, such as double-click, right button etc., can also comprise that position, size, gradient to image the operation such as adjust.
During image after treatment need to be uploaded onto the server, before this, we can compress image, the space taking to reduce it.Certainly, in maintaining secrecy, consider, can also be encrypted image.
When image is uploaded onto the server, can adopt and synchronously upload or the asynchronous mode of uploading.In upload procedure, can show uploading the form of progress with progress bar.
The image processor below the embodiment of the present application being provided is described, and image processor described below can mutual corresponding reference with above-described image treatment method.
Referring to Fig. 2, Fig. 2 is the disclosed a kind of image processor structural representation of the embodiment of the present application.
As shown in Figure 2, this image processor comprises:
Agreement call unit 21, for calling the driving agreement matching with image acquisition device;
Image capturing unit 22, the image gathering for obtaining described image acquisition device;
Image process unit 23, for processing described image;
Image processing can comprise to be set the display mode of image, for example former figure shows, thumbnail shows, to image position drag, image sorts out and to set, operation service event to image in browser is set, such as double-click, right button etc., can also comprise that position, size, gradient to image the operation such as adjust.
Image uploading unit 24, for uploading to background server by the image after processing.
While uploading, can adopt and synchronously upload or the asynchronous mode of uploading.In upload procedure, can show uploading the form of progress with progress bar.
The disclosed image processor of the embodiment of the present application, by calling the driving agreement matching with image acquisition device, and then obtain the image that described image acquisition device gathers, and then described image is processed, the image after processing is uploaded to background server.The image that uploads to background server can directly be used by viewed device.The application's method, avoided browser directly to call image acquisition device and face call failure problems, the image that the application finally obtains can directly be used by browser.
The image processor that the present embodiment provides, it can be the form design with ActiveX plug-in unit.
Optionally, when described image acquisition device is scanner, described agreement call unit 21 is for calling the agreement without note name kit TWAIN, to call described scanner.
When described image acquisition device is high bat instrument, described agreement call unit 21 is for calling and the described high SDK SDK that instrument is corresponding that claps, to call the described high instrument of clapping.
When image acquisition device is scanner, its scanning can be VAT invoice, now, the application's image processor can also comprise OCR recognition unit 31, as shown in Figure 3,31 pairs of VAT invoices of OCR recognition unit carry out OCR optical character identification.Through character recognition, can learn the information such as the amount of money, unit, invoice code of this invoice, these information are uploaded to server, browser can utilize list of these Information generations automatically so, the inconvenience of having avoided the manual input message of user to bring.
Further, shown in Figure 4, the application's scheme can also comprise parameter set unit 41, and before obtaining the image of image acquisition device collection, parameter set unit 41 is for arranging the type of described image acquisition device, parameter.
Preferably, the application's image processor can also exist with the form of Fig. 5.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.
Above-mentioned explanation to the disclosed embodiments, makes professional and technical personnel in the field can realize or use the application.To the multiple modification of these embodiment, will be apparent for those skilled in the art, General Principle as defined herein can be in the situation that do not depart from the application's spirit or scope, realization in other embodiments.Therefore, the application will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. an image treatment method, is characterized in that, comprising:
Call the driving agreement matching with image acquisition device;
Obtain the image that described image acquisition device gathers;
Described image is processed;
Image after processing is uploaded to background server.
2. image treatment method according to claim 1, is characterized in that, described image acquisition device is scanner, calls the driving agreement matching with image acquisition device to be:
Call the agreement without note name kit TWAIN, to call described scanner.
3. image treatment method according to claim 1, is characterized in that, described image acquisition device is the high instrument of clapping, and calls the driving agreement matching with image acquisition device and is:
Call and the described high SDK SDK that instrument is corresponding that claps, to call the described high instrument of clapping.
4. according to the image treatment method described in claim 2 or 3, it is characterized in that, described described image processed, comprising:
The position of described image, size and gradient are adjusted.
5. image treatment method according to claim 1, is characterized in that, described obtain the image that described image acquisition device gathers before, also comprise:
The type of described image acquisition device, parameter are arranged.
6. image treatment method according to claim 2, is characterized in that, when described scanner scanning be VAT invoice time, also comprise:
Described VAT invoice is carried out to optical character identification.
7. image treatment method according to claim 1, is characterized in that, described image after processing is uploaded to background server before, also comprise:
Image after described processing is encrypted, is compressed.
8. an image processor, is characterized in that, comprising:
Agreement call unit, for calling the driving agreement matching with image acquisition device;
Image capturing unit, the image gathering for obtaining described image acquisition device;
Image process unit, for processing described image;
Image uploading unit, for uploading to background server by the image after processing.
9. image processor according to claim 8, is characterized in that,
When described image acquisition device is scanner, described agreement call unit is used for calling the agreement without note name kit TWAIN, to call described scanner;
When described image acquisition device is high bat instrument, described agreement call unit is for calling and the described high SDK SDK that instrument is corresponding that claps, to call described high bat instrument.
10. image processor according to claim 8, is characterized in that, also comprises:
Parameter set unit, for arranging the type of described image acquisition device, parameter.
CN201410269938.3A 2014-06-17 2014-06-17 Image processing method and device Pending CN104010111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410269938.3A CN104010111A (en) 2014-06-17 2014-06-17 Image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410269938.3A CN104010111A (en) 2014-06-17 2014-06-17 Image processing method and device

Publications (1)

Publication Number Publication Date
CN104010111A true CN104010111A (en) 2014-08-27

Family

ID=51370597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410269938.3A Pending CN104010111A (en) 2014-06-17 2014-06-17 Image processing method and device

Country Status (1)

Country Link
CN (1) CN104010111A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107733947A (en) * 2016-08-11 2018-02-23 中国移动通信集团江苏有限公司 Image acquiring method, apparatus and system
CN108551573A (en) * 2018-06-12 2018-09-18 深圳中兴网信科技有限公司 Image collecting method, device, computer equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000315180A (en) * 1999-04-30 2000-11-14 Nec Software Kobe Ltd Image processing system on network
CN101106626A (en) * 2006-07-12 2008-01-16 株式会社理光 Network apparatus, terminal apparatus, program, and recording medium
CN101625684A (en) * 2008-07-07 2010-01-13 全国组织机构代码管理中心 Method and system for acquiring and compressing paper document image-text information
CN102299953A (en) * 2011-06-24 2011-12-28 浪潮齐鲁软件产业有限公司 Image acquisition cloud processing method for taxpayer data
CN102903171A (en) * 2012-09-21 2013-01-30 山东电力集团公司物资供应公司 Self-service type intelligent entering checking invoice processing system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000315180A (en) * 1999-04-30 2000-11-14 Nec Software Kobe Ltd Image processing system on network
CN101106626A (en) * 2006-07-12 2008-01-16 株式会社理光 Network apparatus, terminal apparatus, program, and recording medium
CN101625684A (en) * 2008-07-07 2010-01-13 全国组织机构代码管理中心 Method and system for acquiring and compressing paper document image-text information
CN102299953A (en) * 2011-06-24 2011-12-28 浪潮齐鲁软件产业有限公司 Image acquisition cloud processing method for taxpayer data
CN102903171A (en) * 2012-09-21 2013-01-30 山东电力集团公司物资供应公司 Self-service type intelligent entering checking invoice processing system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107733947A (en) * 2016-08-11 2018-02-23 中国移动通信集团江苏有限公司 Image acquiring method, apparatus and system
CN108551573A (en) * 2018-06-12 2018-09-18 深圳中兴网信科技有限公司 Image collecting method, device, computer equipment and medium

Similar Documents

Publication Publication Date Title
CA3017647C (en) Optical character recognition in structured documents
EP3692438B1 (en) Automatic generation of a graphic user interface (gui) based on a gui screen image
CN104268814A (en) Method and device for generating electronic medical record
CA3065062C (en) Simulating image capture
CN110276366A (en) Carry out test object using Weakly supervised model
US10990814B2 (en) Converting an image into a structured table
EP2639713B1 (en) Document management systems and methods
CA3026089A1 (en) Image quality assessment and improvement for performing optical character recognition
CN103975342A (en) Systems and methods for mobile image capture and processing
CA3018437C (en) Optical character recognition utilizing hashed templates
WO2023015935A1 (en) Method and apparatus for recommending physical examination item, device and medium
CN108304815B (en) Data acquisition method, device, server and storage medium
CN104537339A (en) Information identification method and information identification system
CN111709941A (en) Lightweight automatic deep learning system and method for pathological image
JP4859054B2 (en) Image processing apparatus, image processing method, program, and recording medium
CN104010111A (en) Image processing method and device
CN108764289B (en) Method and system for classifying UI (user interface) abnormal pictures based on convolutional neural network
US20160217112A1 (en) User-Initiated Data Recognition and Data Conversion Process
CN106682627A (en) Identifying method and device of palm print data
Dizaj et al. A new image dataset for document corner localization
Ahmed GPark: Vehicle parking management system using smart glass
US20220318992A1 (en) Image Processing Method and Apparatus, Screening System, Computer-Readable Storage Medium
IT202100031409A1 (en) INTELLIGENT SYSTEM AND OPERATIONAL METHOD FOR THE DIGITAL ACQUISITION OF DOCUMENTS WITH CALCULATION OF THE CONFIDENCE RATE AND INTERFACING ON AN INTERACTIVE PORTAL
Chaki An automatic system for extracting figure-caption pair from medical documents: a six-fold approach
CN113538413A (en) Image detection method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140827