Movatterモバイル変換


[0]ホーム

URL:


CN109559365A - File scanning method, device, mobile terminal and storage medium - Google Patents

File scanning method, device, mobile terminal and storage medium
Download PDF

Info

Publication number
CN109559365A
CN109559365ACN201811462224.9ACN201811462224ACN109559365ACN 109559365 ACN109559365 ACN 109559365ACN 201811462224 ACN201811462224 ACN 201811462224ACN 109559365 ACN109559365 ACN 109559365A
Authority
CN
China
Prior art keywords
picture
file
format
mobile terminal
scanning
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
CN201811462224.9A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co LtdfiledCriticalNubia Technology Co Ltd
Priority to CN201811462224.9ApriorityCriticalpatent/CN109559365A/en
Publication of CN109559365ApublicationCriticalpatent/CN109559365A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The present invention provides a kind of file scanning method, comprising: the scan instruction for receiving user obtains the file, picture that mobile terminal camera head shooting arrives according to the scan instruction, wherein the file, picture includes multiframe picture;The file, picture is scanned, and determines the scanning sequency of the multiframe picture in the file, picture;The multiframe picture in the file, picture is spliced based on the scanning sequency, to generate electronic document picture, and the electronics shelves picture is stored.The present invention also provides a kind of file scanning device, mobile terminal and storage mediums.The present invention, which is realized, to be scanned by mobile terminal into file, picture, so as to which certificate or file are presented completely.

Description

File scanning method, device, mobile terminal and storage medium
Technical field
The present invention relates to technical field of mobile terminals more particularly to a kind of file scanning method, device, mobile terminal and depositStorage media.
Background technique
It usually needs to handle many certificates or file in people's routine work, such as identity card, employee's card, student's identity card, educational backgroundCard, degree's diploma, academic title's card, technical ability card and various contracts, agreement, bidding documents and other documentary evidences etc..
Currently, people's habit is taken pictures by mobile phone, for larger-size certificate or file in wide-long shot,Obtained whole picture photo is limited to the quantity of mobile phone camera pixel, and then cannot be in completely by the details of original certificate or fileIt is existing, thus, how to be presented certificate or file completely is current problem to be solved.
Summary of the invention
The main purpose of the present invention is to provide a kind of file scanning method, device, equipment and readable storage medium storing program for executing, it is intended toSolve the problems, such as how to be presented certificate or file completely.
To achieve the above object, the present invention provides a kind of file scanning method, and the file scanning method includes following stepIt is rapid:
The scan instruction for receiving user obtains the file map that mobile terminal camera head shooting arrives according to the scan instructionPiece, wherein the file, picture includes multiframe picture;
The file, picture is scanned, and determines the scanning sequency of the multiframe picture in the file, picture;
The multiframe picture in the file, picture is spliced based on the scanning sequency, to generate electronic document figurePiece, and the electronics shelves picture is stored.
Optionally, described that the multiframe picture in the file, picture is spliced based on the scanning sequency, to generateThe step of electronic document picture includes:
The direction for obtaining each frame picture in the file, picture determines in each frame picture with the presence or absence of different with preset directionThe picture of cause;
If it exists, then the direction of the picture inconsistent with preset direction is adjusted to preset direction, to be adjusted directionFile, picture afterwards, and the multiframe picture exchanged in the file, picture of perfect square backward is spliced, to generate electronic document picture.
Optionally, the multiframe picture exchanged in the file, picture of perfect square backward is spliced, to generate electronic documentThe step of picture includes:
The picture format for obtaining file, picture adjusted determines whether the picture format is consistent with preset format;
If inconsistent, the picture format is adjusted to the preset format, to obtain the file map after Format adjustingPiece, and format file, picture adjusted is spliced, to obtain electronic document picture.
Optionally, described that the file, picture is scanned, and determine sweeping for multiframe picture in the file, pictureBefore the step of retouching sequence, the file scanning method further include:
Receive user selection instruction, scanning interface according to the selection instruction select file picture from photograph album;
Using the corresponding selecting sequence of the selection instruction as the scanning sequency.
Optionally, described that the multiframe picture in the file, picture is spliced based on the scanning sequency, to generateElectronic document picture, and after the step of electronics shelves picture is stored, the file scanning method further include:
The edit instruction for receiving user obtains user in the image parameters of editing interface editor according to the edit instruction;
It is modified based on the image parameters to the scanning document.
Optionally, described that the multiframe picture in the file, picture is spliced based on the scanning sequency, to generateElectronic document picture, and after the step of electronics shelves picture is stored, the file scanning method further include:
The electronic document picture is identified, the image data of the electronic document picture is obtained, lteral data, determinesPosition data and formatted data;
The image data, lteral data, location data and formatted data are sent to processor to handle, to obtainTreated pictorial information, text information, location information and format information;
The display information for obtaining mobile terminal generates display frame according to the display information and the format information, andThe text information and the pictorial information are shown in the display frame based on the location information.
Optionally, the display information for obtaining mobile terminal, generates according to the display information and the format informationDisplay frame, and the text information and the pictorial information are shown to based on the location information step in the display frameAfter rapid, the file scanning method further include:
The document format that user selects in document format selection interface is obtained, the corresponding electronics text of the document format is generatedShelves.
In addition, to achieve the above object, the present invention also provides a kind of file scanning device, the file scanning device packetIt includes:
Module is obtained, for receiving the scan instruction of user, mobile terminal camera is obtained according to the scan instruction and is clappedThe file, picture taken the photograph, wherein the file, picture includes multiframe picture;
Scan module, for being scanned to the file, picture, and the multiframe picture in the determining file, pictureScanning sequency;
Generation module, for being spliced based on the scanning sequency to the multiframe picture in the file, picture, with lifeIt is stored at electronic document picture, and by the electronics shelves picture.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal include: memory,Processor and it is stored in the File Scanner that can be run on the memory and on the processor, the file scan journeyThe step of any of the above-described file scanning method is realized when sequence is executed by the processor.
In addition, to achieve the above object, the present invention also provides a kind of storage medium, being stored with file on the storage mediumScanner program, when the File Scanner is executed by processor the step of realization any of the above-described file scanning method.
The present invention proposes a kind of file scanning method, device, mobile terminal and storage medium, passes through the scanning for receiving userInstruction obtains the file, picture that arrives of mobile terminal camera head shooting according to the scan instruction, wherein the file, picture includesThen multiframe picture is scanned the file, picture, and determine the scanning sequency of the multiframe picture in the file, picture,Finally the multiframe picture in the file, picture is spliced based on the scanning sequency, to generate electronic document picture, andThe electronics shelves picture is stored;It realizes and is scanned by mobile terminal into file, picture, so as to demonstrate,provePart or file are presented completely.
Detailed description of the invention
Fig. 1 is a kind of hardware structural diagram of mobile terminal;
Fig. 2 is a kind of communications network system architecture diagram;
Fig. 3 is the flow diagram of file scanning method first embodiment of the present invention;
Fig. 4 is the flow diagram of file scanning method fourth embodiment of the present invention;
Fig. 5 is the functional block diagram of file scanning device first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of elementBe conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mixGround uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plateComputer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portableMedia player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. moveThe fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to specialFor moving except purpose element, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shiftingDynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base stationDownlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetratingFrequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communicationStandard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunicationsSystem), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (CodeDivision Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code DivisionMultiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous CodeDivision Multiple Access, TD SDMA), FDD-LTE (Frequency DivisionDuplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time DivisionDuplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 showsGo out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to needIt to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received orThe audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappearsBreath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition modeOr the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries outReason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be depositedStorage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.MikeWind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data canTo be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographiesSensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environmentThe light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's earDisplay panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generalFor three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrapDisplay panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be usedForms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminalFamily setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 withAnd other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detectionTwo parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bandThe signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by itIt is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, canTo realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrapIt includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it orAfter neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thingThe type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it canThe function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specificallyIt limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothingLine data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) endMouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, numberIt is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be withFor transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program areaThe storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one functionSound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such asAudio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easyThe property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connectionA part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storageData in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.PlaceManaging device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediatedManage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainProcessing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, putThe functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below intoRow description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network systemSystem is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connectionFamily equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRANGround wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returningJourney (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy andCharging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 andThe control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registersSuch as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and useThe dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resourcePoint, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimediaSystem) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not onlySuitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA withAnd the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.OnIt is for illustration only to state serial number of the embodiment of the present invention, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment sideMethod can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many casesThe former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior artThe part contributed out can be embodied in the form of software products, which is stored in a storage mediumIn (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, serviceDevice, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specificEmbodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the artUnder the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very muchForm, all of these belong to the protection of the present invention.
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In terminal structure as shown in Figure 1, processor 110 can call the File Scanner stored in memory 109,File scanning method provided in an embodiment of the present invention is executed,
The present invention further provides a kind of file scanning methods.It is file scanning method first of the present invention referring to Fig. 3, Fig. 3The method schematic diagram of embodiment.
The present invention adds scanning function in the camera of mobile terminal, when user needs to scan file, can pass through shiftingDynamic camera shoots the photo of file to be scanned, is then scanned to photo, obtains electronic document picture, and protectedIt deposits.
In the present embodiment, this document scan method includes:
Step S10 receives the scan instruction of user, obtains what mobile terminal camera head shooting arrived according to the scan instructionFile, picture, wherein the file, picture includes multiframe picture;
In the present embodiment, using mobile terminal camera can be used according to horizontal direction from left to right, vertically in userThe sequence of direction from top to bottom is scanned paper document, and mobile terminal camera is by file, picture under continuous capturing camera lensMultiframe picture, wherein connection catch a good shot under multiframe picture can be setting prefixed time interval, with prefixed time interval intoRow is continuously shot, for example, prefixed time interval is 1 second, then it is primary to be spaced camera shooting in one second.Pre-determined distance can also be setInterval, is continuously shot with pre-determined distance interval, for example, be divided into 3cm between pre-determined distance, then detect mobile terminal it is mobile away fromFrom primary in the shooting of distance interval 3cm camera.It can also be when detecting that mobile terminal camera site occurs, detection movementWhether the movement speed of terminal is zero, when the speed for detecting mobile terminal is zero, camera catch a good shot under picture,In, the camera site of mobile terminal (or can be accelerated by gyroscope (or angular-rate sensor) or/and acceleration transducerDevice) it is detected.Gyroscope and accelerator are can to experience object of which movement using principle of inertia (balance of power) and measuring techniqueThe direction of motion, acceleration, position and posture device.Wherein the principle of gyroscope refers to when not by external force, oneThe direction of the rotary shaft meaning of rotating object will not change.Therefore a variety of methods can be used and read rotary shaft in three-dimensional system of coordinateDirection, parsing obtains the displacement that the Coriolis force that generates during the motion of rotating object occurs on three-dimensional, mostThe direction of motion of the rotating object is confirmed eventually.Accelerator measures the ratio that acceleration is inertia force and mass of object according to principle of inertiaValue, therefore need to only measure inertia force, generally use the piezoelectric effect of crystal to measure the inertia force and then measure acceleration,Other are also optional such as piezoresistive effect, capacity effect, thermal effect or light based on the method that acceleration is deformed objectEffect etc..It is to be improved to be made by gyroscope one is angular accelerometer, another kind is that line accelerates there are two types of accelerator is generalDegree meter.When mobile terminal is built-in with the motion sensors such as gyroscope or/and accelerator, the position of mobile terminal can be detectedWhether change.
S20 is captured, the file, picture is scanned, and the scanning of the multiframe picture in the determining file, picture is suitableSequence;
In the present embodiment, file, picture includes multiframe picture, and mobile terminal is successively scanned multiframe picture, scanningSequence includes shooting sequence.When mobile terminal camera shoots paper document, the records photographing time, and according to shooting whenBetween determine multiframe picture shooting sequence, to successively be scanned according to shooting sequence to multiframe picture.
Step S30 splices the multiframe picture in the file, picture based on the scanning sequency, to generate electronicsDocument picture, and the electronics shelves picture is stored.
In the present embodiment, mobile terminal camera head shooting to multiframe picture in image content may exist overlappingPart, to generate electronic document picture, specifically, for each picture, makes it is therefore desirable to splice to multiframe pictureConverted with each pixel of difference of Gaussian to image, see its whether than image area and scale domain consecutive pointsGreatly/small find its extreme point, all neighbor pixels by comparing the pixel and around it, if the pixel isOne extreme point then uses the pixel as a key point;Using centered on the pixel as key point, sampling 16x16 is bigSmall image block calculates the gradient of 256 pixels both horizontally and vertically in the image block, by 16x16 sizeImage block is divided into the sub-block of 16 non-overlapping 4x4, calculates the straight of one 8 dimension using the gradient of all pixels in each sub-blockThe histogram of all 16 sub-blocks is spliced into the feature vector of one 128 dimension by Fang Tu, and the feature as the pixel describesSon.In splicing multiframe picture when adjacent two width picture A and picture B, the Feature Descriptor of any key point in picture A is calculatedWith the Euclidean distance of the Feature Descriptor of key point all in picture B, will be used as apart from the smallest two key points successfullyMatch.On the basis of picture A, 8 key points are therefrom randomly choosed every time, randomly selected 8 are found out with picture A in picture B8 key points of key point pairing;A homography is calculated with 8 pairs of key points, key point remaining in picture A is pressedIt is projected in picture B according to homography transformation, counts the number of picture A and picture B match point.Repeat the above steps preset times(for example, 500 times, 1000 times) obtain accurately matching homography of the most homographies as adjacent two picture,And corresponded to all pixels point of the adjacent boundary of two pictures using the homography, thus after the completion of being splicedPicture;When being spliced, picture corresponding with documents location for several width to be spliced, according to from left to right, from upper pastLower sequence is successively spliced, and when starting splicing, is spliced between the shooting upper left two width picture of documents location, willPicture positioned at left is as splicing picture A, after conduct splicing picture B, picture A and picture B the splicing completion of rightContinue to be spliced with the picture B for being located at right as picture A, until the splicing of a line picture finishes, which is spliced and completes figurePiece continues to splice as picture A with the left location picture for being located at next line, recycles the splicing until completing multiframe picture.
Further, the picture inconsistent there are picture direction in possible multiframe picture when being spliced, so needingThe direction of picture is detected and corrected, it is described that the multiframe picture in the file, picture is carried out based on the scanning sequencySplice, includes: the step of electronic document picture to generate
Step S31 obtains the direction of each frame picture in the file, picture, and determining whether there is and preset in each frame pictureThe inconsistent picture in direction;
In the present embodiment, user using mobile terminal when being scanned, because mobile terminal shooting direction may be sent outRaw to change, each frame picture for causing mobile terminal camera to get also will be different, so, first have to the side for determining each frame pictureTo determining in each frame picture with the presence or absence of the picture inconsistent with preset direction.
Step S32, and if it exists, then adjust in the direction of the picture inconsistent with preset direction to preset direction, to obtainFile, picture after adjustment direction, and the multiframe picture exchanged in the file, picture of perfect square backward is spliced, to generate electronicsDocument picture.
It in the present embodiment, will be with preset direction not if there is the picture inconsistent with preset direction in file, pictureConsistent picture is adjusted to preset direction and is specifically detected and schemed using the Digital Image Processing algorithm such as Hough transformation, edge detectionThe rotation angle of picture, and rotational correction is carried out to input picture according to calculated result, a structural element is defined first, then is passed throughThe structural element carries out opening operation and closed operation (i.e. corrosion dilation operation) to the image.Then it callsFormer grayscale image is converted to binary map by Imgproc.threshold method, then detects side by Canny edge detection operatorSmall threshold value in boundary, the edge image that parameter exports for edges, threshold1 and threshold2 is used to control edge companyIt connects, then finds straight line in binary map using Hough transformation, then traverse all straight lines and call Math.atan to calculate directlyThe angle of line, filters out the excessively big straight line of some angles and illegal angle obtains the angle of the image rotation, then rotates thisMatrix.It is finally rotated using re-projection technology correcting image: OpenCV function being called to construct spin matrix, call functionImgproc.warpAffine constructs postrotational image, so that picture be corrected, and to the file, picture after correction intoRow splicing, generates electronic document picture.
Further, since the picture that mobile terminal camera captures may not be identical with preset format, so, rightAfter picture direction is adjusted, it is also necessary to the picture format of file, picture is converted, it is specifically, described to exchange perfect square backwardFile, picture in multiframe picture spliced, include: to generate electronic document picture
Step S321 obtains the picture format of file, picture adjusted, determine the picture format whether with default latticeFormula is consistent;
Step S322 adjusts the picture format to the preset format, after obtaining Format adjusting if inconsistentFile, picture, and format file, picture adjusted is spliced, to obtain electronic document picture.
In the present embodiment, the picture format that general mobile terminal takes includes the formats such as JPG, RWA, so, it is mobileTerminal obtains the picture format of file, picture adjusted first, determines whether the picture format is consistent with preset format, if oneIt causes, then directly the multiframe picture in file, picture can be spliced, if inconsistent, call format converter is by file mapMultiframe picture in piece is converted to preset format, then splices the file, picture after conversion.
Electronic document picture will be obtained after the completion of the splicing of multiframe picture, electronic document picture is stored to default storage positionIt sets, for example, storing to photograph album.Electronic document picture can also be identified, to obtain electronic document, user can will be electricSubdocument is uploaded, is stored.
The file scanning method that the present embodiment proposes is obtained by receiving the scan instruction of user according to the scan instructionTake the file, picture that mobile terminal camera head shooting arrives, wherein the file, picture includes multiframe picture, then to the filePicture is scanned, and determines the scanning sequency of the multiframe picture in the file, picture, is finally based on the scanning sequency pairMultiframe picture in the file, picture is spliced, and to generate electronic document picture, and the electronics shelves picture is depositedStorage;It realizes and is scanned by mobile terminal into file, picture, so as to which certificate or file are presented completely.
Based on first embodiment, the second embodiment of file scanning method of the present invention is proposed, before step S20, this documentScan method further include:
Step S40 receives the selection instruction of user, scanning interface according to the selection instruction select file from photograph albumPicture;
Step S50, using the corresponding selecting sequence of the selection instruction as the scanning sequency.
In the present embodiment, sometimes, user needs to be scanned photo acquisition scanned copy, so, user can also beSelection needs the photo scanned in photograph album, is then scanned by magazine scanning function to photo, specifically, Yong HukeTo be instructed by select button triggering selection, mobile terminal receives the selection instruction of user's triggering, is obtained according to selection instructionUser is selected the selecting sequence of picture as scanning sequency, according to the scanning by the picture of user's select file in photograph albumSequence is scanned the file, picture of selection.
Certainly, user can be taken pictures by mobile terminal, and mobile terminal stores the photo taken with bat to photograph album, thenThe photo for needing to scan is selected in photograph album by user.
The file scanning method that the present embodiment proposes, by receiving the selection instruction of user, at scanning interface according toSelection instruction select file picture from photograph album, it is then suitable using the corresponding selecting sequence of the selection instruction as the scanningSequence;It realizes the photo for directly selecting user in photograph album to be scanned, to improve user experience.
Based on second embodiment, the 3rd embodiment of file scanning method of the present invention is proposed, after step S30, this documentScan method further include:
Step S60 receives the edit instruction of user, obtains user in the figure of editing interface editor according to the edit instructionPiece parameter;
Step S70 modifies to the scanning document based on the image parameters.
In the present embodiment, the electronic document picture that user obtains scanning can carry out edit-modify, specifically, userEdit instruction is triggered by Edit button, can be adjusted in parameter of the editing interface to picture according to edit instruction user,The image parameters include clarity, picture size, dimension of picture, picture color element of picture etc., by image parametersAdjustment is adjusted picture, thus the electronic document picture after being adjusted.Certainly, user may call upon edit tool pairElectronic document picture is edited, including eliminate watermark, addition watermark, modification document title, addition annotation etc..
The file scanning method that the present embodiment proposes is obtained by receiving the edit instruction of user according to the edit instructionFamily is taken in the image parameters of editing interface editor, the image parameters is then based on and modifies to the scanning document;It is realShow and electronic document has been edited, to meet the needs of users, and then has improved user experience.
Based on 3rd embodiment, propose the fourth embodiment of file scanning method of the present invention, reference Fig. 4, step S30 itAfterwards, this document scan method further include:
Step S80 identifies the electronic document picture, obtains image data, the text of the electronic document pictureDigital data, location data and formatted data;
In the present embodiment, mobile terminal can also pass through OCR (Optical Character to electronic document pictureRecognition, optical character identification) technology is identified, so that electronic document is obtained, specifically, first by electronic documentText in picture is separated with picture, i.e., the image data of electronic document picture is divided into lteral data and image data,And obtain the location data and formatted data of electronic document picture.Wherein, location data refer to text in an electronic documentPosition data, formatted data include page layout and page properties in electronic document picture.
The image data, lteral data, location data and formatted data are sent at processor by step S90Reason, with obtain that treated pictorial information, text information, location information and format information;
In the present embodiment, image data can be sent to picture processor and carry out picture processing, lteral data is sent outIt send to word processor and carries out word processing, image data is sent to format handler and carries out format analysis processing, by image dataIt is sent to format handler and carries out localization process.To obtain that treated pictorial information, text information, location information and formatInformation.Wherein, text location information includes not going together it on the tandem between text, the same page on the same pageBetween tandem and the page between tandem;Location information includes that the front and back between picture on the same page is suitableTandem between sequence and the different pages;Location information between text and picture includes, locking particular picture surround orFront or rear text, and according to the circular or front or rear text of locking, determine the position of the picture.Text location information, figureLocation information between piece location information and text and picture, to guarantee the successive suitable of text in electronic document and pictureSequence, so that user preferably uses the electronic document.
Step S100 obtains the display information of mobile terminal, is generated according to the display information and the format information aobviousShow frame, and is shown the text information and the pictorial information in the display frame based on the location information.
In the present embodiment, the pre-stored display information of acquisition for mobile terminal, the display frame can pre-generate, andAccording to format information and display information is adjusted or dynamic generation.In adjustment or dynamic generation, format letter can be readBreath, for example, the screen size of display number of pages and the mobile terminal in the display information of mobile terminal, thus construction and screen rulerThe display frame that very little and display number of pages matches.For example, mobile terminal is 6 cun of screens, and format information Plays are having a size of 5 cunShow that number of pages is page 10, at this moment needing to construct a total page number is such as the frame of page 8, to accommodate text information less than page 10Display, and need further exist for considering the contents such as image information.According to the display frame of generation, solution can be added in display frameText information and pictorial information after analysis, to generate the electronic document.
The electronic document can not only add text information and pictorial information in display frame, can also be to the text of displayWord information and pictorial information carry out typesetting.Format information includes page layout and page properties, is specifically shown according to eachShow that terminal is adjusted format information, for showing all information in the electronic document.The page properties include: the pageThe use state of size, total page number, resolution ratio, margin away from, background and screen.The use state of screen includes, if full frame;Whether half screen;The selection of screen intensity;Whether transverse screen.In addition, text information can be adjusted according to format information;Image letterBreath can be adjusted according to format information.Under format information after the adjustment to font shown in electronic document, font size,The page properties such as color and background are configured.After being provided with, which can be displayed in the display box put upIn frame.
Further, after step S100, further includes:
Step S110 obtains the document format that user selects in document format selection interface, generates the document format pairThe electronic document answered.
In the present embodiment, the electronic document that electronic document the present embodiment ultimately generates can be PDF format, can also beWord format or the supported format of terminal, specific format can according to the needs of users and the supported format of mobile terminalIt is selected, user can select document format in selection interface.
The file scanning method that the present embodiment proposes obtains the electricity by identifying to the electronic document pictureImage data, lteral data, location data and the formatted data of subdocument picture, then by the image data, lteral data,Location data and formatted data are sent to processor and are handled, with obtain that treated pictorial information, text information, positioning letterBreath and format information finally obtain the display information of mobile terminal, are generated according to the display information and the format information aobviousShow frame, and is shown the text information and the pictorial information in the display frame based on the location information;It realizesIt is identified by spending electronic document picture, so that electronic document picture is accurately converted to electronic document, meets userA variety of demands.
Further, the embodiment of the present invention also provides a kind of recommendation apparatus based on lessee's credit appraisal.
It is the functional block diagram of file scanning device first embodiment of the present invention referring to Fig. 5, Fig. 5.
File scanning device of the present invention is virtual bench, is stored in the memory 1005 of figure mobile terminal, for realizingFile Scanner it is functional: receive the scan instruction of user, according to the scan instruction obtain mobile terminal cameraThe file, picture taken, wherein the file, picture includes multiframe picture;The file, picture is scanned, and is determinedThe scanning sequency of multiframe picture in the file, picture;Based on the scanning sequency to the multiframe picture in the file, pictureSpliced, to generate electronic document picture, and the electronics shelves picture is stored.
Specifically, in the present embodiment, the file scanning device includes:
Module 101 is obtained, for receiving the scan instruction of user, mobile terminal camera is obtained according to the scan instructionThe file, picture taken, wherein the file, picture includes multiframe picture;
Scan module 102 for being scanned to the file, picture, and determines the multiframe picture in the file, pictureScanning sequency;
Generation module 103, for being spliced based on the scanning sequency to the multiframe picture in the file, picture, withElectronic document picture is generated, and the electronics shelves picture is stored.
Further, generation module 103 is also used to:
The direction for obtaining each frame picture in the file, picture determines in each frame picture with the presence or absence of different with preset directionThe picture of cause;
If it exists, then the direction of the picture inconsistent with preset direction is adjusted to preset direction, to be adjusted directionFile, picture afterwards, and the multiframe picture exchanged in the file, picture of perfect square backward is spliced, to generate electronic document picture.
Further, generation module 103 is also used to:
The picture format for obtaining file, picture adjusted determines whether the picture format is consistent with preset format;
If inconsistent, the picture format is adjusted to the preset format, to obtain the file map after Format adjustingPiece, and format file, picture adjusted is spliced, to obtain electronic document picture.
Further, file scanning device further include:
Selecting module is selected from photograph album at scanning interface according to the selection instruction for receiving the selection instruction of userSelect file, picture;
Scan module, for using the corresponding selecting sequence of the selection instruction as the scanning sequency.
Further, file scanning device further include:
Editor module obtains user according to the edit instruction and compiles in editing interface for receiving the edit instruction of userThe image parameters collected;
Modified module, for being modified based on the image parameters to the scanning document.
Further, file scanning device further include:
Identification module obtains the picture number of the electronic document picture for identifying to the electronic document pictureAccording to, lteral data, location data and formatted data;
Processing module, for by the image data, lteral data, location data and formatted data be sent to processor intoRow processing, with obtain that treated pictorial information, text information, location information and format information;
Display module, it is raw according to the display information and the format information for obtaining the display information of mobile terminalThe text information and the pictorial information are shown in the display frame at display frame, and based on the location information.
Further, file scanning device further include:
Format selection module, the document format selected for obtaining user in document format selection interface, generates the textThe corresponding electronic document of shelves format.
Further, the present invention also provides a kind of mobile terminal, the mobile terminal includes memory, processor and storageOn the memory and the File Scanner that can run on the processor, the File Scanner is by the processingDevice, which is performed realized method when executing, can refer to each embodiment of file scanning method of the present invention, no longer superfluous hereinIt states.
Further, in addition, the embodiment of the present invention also proposes a kind of storage medium.
It is stored with File Scanner on storage medium of the present invention, is realized when the File Scanner executes as described aboveIdentity identifying method the step of.
Wherein, the File Scanner run on the processor, which is performed realized method, can refer to the present inventionThe each embodiment of file scanning method, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-rowHis property includes, so that the process, method, article or the system that include a series of elements not only include those elements, andAnd further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsicElement.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to doThere is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment sideMethod can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many casesThe former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior artThe part contributed out can be embodied in the form of software products, which is stored in one as described aboveIn storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hairEquivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skillsArt field, is included within the scope of the present invention.

Claims (10)

CN201811462224.9A2018-11-302018-11-30File scanning method, device, mobile terminal and storage mediumPendingCN109559365A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201811462224.9ACN109559365A (en)2018-11-302018-11-30File scanning method, device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201811462224.9ACN109559365A (en)2018-11-302018-11-30File scanning method, device, mobile terminal and storage medium

Publications (1)

Publication NumberPublication Date
CN109559365Atrue CN109559365A (en)2019-04-02

Family

ID=65868560

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201811462224.9APendingCN109559365A (en)2018-11-302018-11-30File scanning method, device, mobile terminal and storage medium

Country Status (1)

CountryLink
CN (1)CN109559365A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110658674A (en)*2019-09-162020-01-07忆备缩微科技(北京)有限公司Method and device for outputting electronic file to microfilm
CN110751113A (en)*2019-10-242020-02-04维沃移动通信有限公司Scanning method and electronic equipment
CN112001312A (en)*2020-08-212020-11-27深圳传音控股股份有限公司Document splicing method, device and storage medium
CN112396675A (en)*2019-08-122021-02-23北京小米移动软件有限公司Image processing method, device and storage medium
CN113810604A (en)*2021-08-122021-12-17荣耀终端有限公司 Document shooting method and device
CN115550517A (en)*2021-06-152022-12-30展讯半导体(南京)有限公司Scanning control method, system, electronic device and storage medium
CN118097701A (en)*2022-11-182024-05-28荣耀终端有限公司 Document scanning method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101046623A (en)*2006-03-292007-10-03三星电子株式会社Apparatus and method for taking panoramic photograph
CN101377615A (en)*2007-08-292009-03-04三星电子株式会社Method for photographing panoramic picture
WO2009114967A1 (en)*2008-03-192009-09-24东莞市步步高教育电子产品有限公司Motion scan-based image processing method and device
CN102831106A (en)*2012-08-272012-12-19腾讯科技(深圳)有限公司Electronic document generation method of mobile terminal and mobile terminal
CN104010135A (en)*2013-02-262014-08-27三星电子株式会社 Apparatus and method for capturing images
CN106303128A (en)*2015-06-292017-01-04上海卓易科技股份有限公司A kind of image processing method and image processing equipment
CN106780328A (en)*2016-12-062017-05-31烟台大学A kind of file scanning method that multiple photos automatic Mosaic is shot based on mobile phone camera
CN106874252A (en)*2017-02-172017-06-20张家口浩扬科技有限公司A kind of document identification and display methods and its mobile terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101046623A (en)*2006-03-292007-10-03三星电子株式会社Apparatus and method for taking panoramic photograph
CN101377615A (en)*2007-08-292009-03-04三星电子株式会社Method for photographing panoramic picture
WO2009114967A1 (en)*2008-03-192009-09-24东莞市步步高教育电子产品有限公司Motion scan-based image processing method and device
CN102831106A (en)*2012-08-272012-12-19腾讯科技(深圳)有限公司Electronic document generation method of mobile terminal and mobile terminal
CN104010135A (en)*2013-02-262014-08-27三星电子株式会社 Apparatus and method for capturing images
CN106303128A (en)*2015-06-292017-01-04上海卓易科技股份有限公司A kind of image processing method and image processing equipment
CN106780328A (en)*2016-12-062017-05-31烟台大学A kind of file scanning method that multiple photos automatic Mosaic is shot based on mobile phone camera
CN106874252A (en)*2017-02-172017-06-20张家口浩扬科技有限公司A kind of document identification and display methods and its mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
康夏艳: "复杂版面分析和病历编号识别", 《CNKI优秀硕士学位论文全文库-信息科技辑》*
田文利;: "基于霍夫直线检测与二维透视变换的图像校正恢复算法", 电子测量技术, no. 09*

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112396675A (en)*2019-08-122021-02-23北京小米移动软件有限公司Image processing method, device and storage medium
CN110658674A (en)*2019-09-162020-01-07忆备缩微科技(北京)有限公司Method and device for outputting electronic file to microfilm
CN110751113A (en)*2019-10-242020-02-04维沃移动通信有限公司Scanning method and electronic equipment
CN110751113B (en)*2019-10-242023-01-13维沃移动通信有限公司Scanning method and electronic equipment
CN112001312A (en)*2020-08-212020-11-27深圳传音控股股份有限公司Document splicing method, device and storage medium
CN115550517A (en)*2021-06-152022-12-30展讯半导体(南京)有限公司Scanning control method, system, electronic device and storage medium
CN113810604A (en)*2021-08-122021-12-17荣耀终端有限公司 Document shooting method and device
CN118097701A (en)*2022-11-182024-05-28荣耀终端有限公司 Document scanning method and device

Similar Documents

PublicationPublication DateTitle
CN109559365A (en)File scanning method, device, mobile terminal and storage medium
CN109167910A (en)focusing method, mobile terminal and computer readable storage medium
CN108322644A (en)A kind of image processing method, mobile terminal and computer readable storage medium
CN107094236A (en)Panorama shooting method, mobile terminal and computer-readable recording medium
CN108900790A (en)Method of video image processing, mobile terminal and computer readable storage medium
CN107944321A (en)A kind of image-recognizing method, terminal and computer-readable recording medium
CN107317963A (en)A kind of double-camera mobile terminal control method, mobile terminal and storage medium
CN110072061A (en)A kind of interactive mode image pickup method, mobile terminal and storage medium
CN107959795A (en)A kind of information collecting method, equipment and computer-readable recording medium
CN107730462A (en)A kind of image processing method, terminal and computer-readable recording medium
CN107493426A (en)A kind of information collecting method, equipment and computer-readable recording medium
CN107944022A (en)Picture classification method, mobile terminal and computer-readable recording medium
CN109711226A (en)Two-dimensional code identification method, device, mobile terminal and readable storage medium storing program for executing
CN107704828A (en)Methods of exhibiting, mobile terminal and the computer-readable recording medium of reading information
CN107357500A (en)A kind of picture-adjusting method, terminal and storage medium
CN109947248A (en)Vibration control method, mobile terminal and computer readable storage medium
CN109034317A (en)A kind of two-dimensional code scanning method, terminal and computer readable storage medium
CN108156374A (en)A kind of image processing method, terminal and readable storage medium storing program for executing
CN110086993A (en)Image processing method, device, mobile terminal and computer readable storage medium
CN109889695A (en)A kind of image-region determines method, terminal and computer readable storage medium
CN110189368A (en)Method for registering images, mobile terminal and computer readable storage medium
CN108965710A (en)Method, photo taking, device and computer readable storage medium
CN107239205A (en)A kind of photographic method, mobile terminal and storage medium
CN109300099A (en)A kind of image processing method, mobile terminal and computer readable storage medium
CN108200229A (en)Image pickup method, terminal and the computer readable storage medium of flexible screen terminal

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20190402


[8]ページ先頭

©2009-2025 Movatter.jp