CN105100616A - Image processing method and electronic equipment - Google Patents
Image processing method and electronic equipment Download PDFInfo
- Publication number
- CN105100616A CN105100616A CN201510446459.9A CN201510446459A CN105100616A CN 105100616 A CN105100616 A CN 105100616A CN 201510446459 A CN201510446459 A CN 201510446459A CN 105100616 A CN105100616 A CN 105100616A
- Authority
- CN
- China
- Prior art keywords
- scanned
- image
- subgraph
- normal direction
- original size
- 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.)
- Granted
Links
Landscapes
- Image Analysis (AREA)
- Editing Of Facsimile Originals (AREA)
- Image Processing (AREA)
Abstract
An embodiment of the invention provides an image processing method and electronic equipment and aims at solving a problem that a printed and displayed size of an image of the electronic equipment is not real. The method comprises the following steps of collecting a first image through an image acquisition unit of the electronic equipment; extracting a subimage corresponding to an object to be scanned in the first image and determining original size data corresponding to the object to be scanned; according to the original size data, processing the subimage according to a preset rule and acquiring a second image, wherein corresponding size data of the object to be scanned in the second image is the same with the original size data.
Description
Technical field
The present invention relates to electronic technology field, particularly a kind of image processing method and electronic equipment.
Background technology
Along with the development of science and technology, electronic technology have also been obtained development at full speed, and the performance of electronic equipment and outward appearance are obtained for and promote energetically.The thing that user utilizes electronic equipment to do also gets more and more, as: the image gathered or scan can be sent to other user by the electronic equipment of networking by user.
At present, people often need the size and the original scan image of the same size that are obtained sweep object by scanning in life, and then scan image can be carried out printing, preserve or sending etc.
But when not having scanner, if user needs the image of object, be then often adopt the camera function of electronic equipment (as mobile phone) to take pictures to object, then will take pictures prints.But because the size of the image of camera collection is fixed usually, the size of the reference object shown in therefore printed image is untrue.
Summary of the invention
The embodiment of the present invention provides a kind of image processing method and electronic equipment, for solve the image of electronic equipment print the false problem of size of display.
A kind of image processing method, comprises the following steps:
The first image is gathered by the image acquisition units of electronic equipment;
Extract the subgraph that object to be scanned in described first image is corresponding, and determine the original size data that described object to be scanned is corresponding;
According to described original size data, described subgraph is processed according to preset rules, obtain the second image; Wherein, the sized data that described object to be scanned is corresponding in described second image is identical with described original size data.
Optionally, extract the subgraph that object to be scanned in described first image is corresponding, and determine the original size data that described object to be scanned is corresponding, comprising:
Described first image is converted into normal direction multi-view image;
The described subgraph corresponding with described object to be scanned is captured in described normal direction multi-view image;
Determine the described original size data that described object to be scanned is corresponding.
Optionally, in described normal direction multi-view image, capture the described subgraph corresponding with described object to be scanned, comprising:
The marginal information that described object to be scanned is corresponding is determined in described normal direction multi-view image;
According to described marginal information, Iamge Segmentation is carried out to described normal direction multi-view image, obtain described subgraph.
Optionally, capture the described subgraph corresponding with described object to be scanned in described normal direction multi-view image before, also comprise:
Determine the angle between the axis of described object to be scanned and the axis of described normal direction multi-view image; Wherein, the axis of described normal direction multi-view image is center line vertical with the horizontal edge of described normal direction multi-view image in described normal direction multi-view image, and the axis of described object to be scanned is the center line perpendicular to reference line in object to be scanned;
Based on the central point of described object to be scanned, in described normal direction multi-view image, forward described object to be scanned to target location according to described angle; Wherein, in described target location, the axis of described object to be scanned and the axis parallel of described normal direction multi-view image, and the display direction of described object to be scanned is positive direction.
Optionally, according to described original size data, obtain second image corresponding with described subgraph, comprising:
Obtain the ratio between the sized data of described subgraph and described original size data;
According to the ratio determined, convergent-divergent is carried out to described subgraph, to make the sized data of the subgraph after convergent-divergent identical with described original size data;
Using the subgraph after convergent-divergent as described second image.
A kind of electronic equipment, comprising:
Image acquisition device, for gathering the first image comprising object to be scanned;
Processor, be connected with described image acquisition device, for extracting subgraph corresponding to described object to be scanned in described first image, determine the original size data that described object to be scanned is corresponding, and according to described original size data, described subgraph is processed according to preset rules, obtains the second image; Wherein, the sized data that described object to be scanned is corresponding in described second image is identical with described original size data.
Optionally, described processor is used for:
Described first image is converted into normal direction multi-view image;
The described subgraph corresponding with described object to be scanned is captured in described normal direction multi-view image;
Determine the described original size data that described object to be scanned is corresponding.
Optionally, described processor is used for:
The marginal information that described object to be scanned is corresponding is determined in described normal direction multi-view image;
According to described marginal information, Iamge Segmentation is carried out to described normal direction multi-view image, obtain described subgraph.
Optionally, described processor also for:
Capture the described subgraph corresponding with described object to be scanned in described normal direction multi-view image before, determine the angle between the axis of described object to be scanned and the axis of described normal direction multi-view image; Wherein, the axis of described normal direction multi-view image is center line vertical with the horizontal edge of described normal direction multi-view image in described normal direction multi-view image, and the axis of described object to be scanned is the center line perpendicular to reference line in object to be scanned;
Based on the central point of described object to be scanned, in described normal direction multi-view image, forward described object to be scanned to target location according to described angle; Wherein, in described target location, the axis of described object to be scanned and the axis parallel of described normal direction multi-view image, and the display direction of described object to be scanned is positive direction.
Optionally, described processor is used for:
Obtain the ratio between the sized data of described subgraph and described original size data;
According to the ratio determined, convergent-divergent is carried out to described subgraph, to make the sized data of the subgraph after convergent-divergent identical with described original size data;
Using the subgraph after convergent-divergent as described second image.
A kind of electronic equipment, comprising:
Acquisition module, for gathering the first image by the image acquisition units of electronic equipment;
Extraction module, for extracting subgraph corresponding to object to be scanned in described first image, and determines the original size data that described object to be scanned is corresponding;
Processing module, for according to described original size data, processes described subgraph according to preset rules, obtains the second image; Wherein, the sized data that described object to be scanned is corresponding in described second image is identical with described original size data.
In the embodiment of the present invention, because the first image of the image acquisition units collection by electronic equipment comprises object to be scanned, therefore the subgraph corresponding with object to be scanned can be obtained, with according to subgraph determination object to be scanned, thus determine the original size data that object to be scanned is corresponding further, wherein, the original size data that object to be scanned is corresponding, the full-size(d) data of object to be scanned can be referred to (such as, object to be scanned is a book, the then original size data of object to be scanned, refer to the sized data of this this book), as the original size data etc. of object to be scanned can be determined in the sized data prestored, and then, second image corresponding with subgraph can be obtained according to preset rules (as carried out convergent-divergent process etc. in proportion) according to original size data, and make the sized data that in the second image, object to be scanned is corresponding identical with original size data, like this, can using the second image as the scan image corresponding with object to be scanned.Thus, when not having scanner, also can obtain the image obtained after being equivalent to scan object to be scanned, the image obtained can be tried one's best the object to be scanned of rediscover dimensionally, improve the image-capable of electronic equipment, also enhance Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the flow chart of image processing method in the embodiment of the present invention;
Fig. 2 is the schematic diagram of the first image in the embodiment of the present invention;
Fig. 3 A is the flow chart extracting subgraph in the embodiment of the present invention;
Fig. 3 B is the schematic diagram of object to be scanned in the embodiment of the present invention;
Fig. 3 C is the schematic diagram of the normal direction multi-view image of the first image in the embodiment of the present invention;
Fig. 4 is the main flow figure in the embodiment of the present invention, the display direction of object to be scanned being adjusted to positive direction;
Fig. 5 A is the schematic diagram of the axis of object to be scanned and normal direction multi-view image in the embodiment of the present invention;
Fig. 5 B is the schematic diagram that in the embodiment of the present invention, object to be scanned is in positive direction;
Fig. 6 is the flow chart obtaining the second image in the embodiment of the present invention;
Fig. 7 is the schematic diagram obtaining the second image in the embodiment of the present invention;
Fig. 8 is the structural representation of electronic equipment in the embodiment of the present invention;
Fig. 9 is the structured flowchart of electronic equipment in the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of image processing method and electronic equipment, and the method comprises: gather the first image by the image acquisition units of electronic equipment; Extract the subgraph that object to be scanned in described first image is corresponding, and determine the original size data that described object to be scanned is corresponding; According to described original size data, described subgraph is processed according to preset rules, obtain the second image; Wherein, the sized data that described object to be scanned is corresponding in described second image is identical with described original size data.
In the embodiment of the present invention, because the first image of the image acquisition units collection by electronic equipment comprises object to be scanned, therefore the subgraph corresponding with object to be scanned can be obtained, with according to subgraph determination object to be scanned, thus determine the original size data that object to be scanned is corresponding further, wherein, the original size data that object to be scanned is corresponding, the full-size(d) data of object to be scanned can be referred to (such as, object to be scanned is a book, the then original size data of object to be scanned, refer to the sized data of this this book), as the original size data etc. of object to be scanned can be determined in the sized data prestored, and then, second image corresponding with subgraph can be obtained according to preset rules (as carried out convergent-divergent process etc. in proportion) according to original size data, and make the sized data that in the second image, object to be scanned is corresponding identical with original size data, like this, can using the second image as the scan image corresponding with object to be scanned.Thus, when not having scanner, also can obtain the image obtained after being equivalent to scan object to be scanned, the image obtained can be tried one's best the object to be scanned of rediscover dimensionally, improve the image-capable of electronic equipment, also enhance Consumer's Experience.
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In the embodiment of the present invention, electronic equipment can be the different equipment such as PC (personal computer), notebook, PAD (panel computer), mobile phone, and the present invention is not restricted this.
Optionally, in the embodiment of the present invention, image acquisition units can refer to the harvester for gathering image arranged in electronic equipment, as camera, or also can be the harvester be connected with electronic equipment, as being arranged on the network monitoring camera head etc. of indoor or outdoors.
Specifically, in the embodiment of the present invention, if image acquisition units is camera, can be specifically depth camera.
In addition, term "and/or" herein, being only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
Below in conjunction with accompanying drawing, the preferred embodiment of the present invention is described in detail.
As shown in Figure 1, the invention provides a kind of image processing method, the method comprises:
S11: gather the first image by the image acquisition units of electronic equipment.
In the embodiment of the present invention, the first image be in electronic equipment by image acquisition units gather containing the image of object to be scanned.As a rule, can be had a certain size size by the image of image acquisition units collection in electronic equipment, the size as the photo of the camera collection by mobile phone can be 1280*960,240*320 etc.
Optionally, in the embodiment of the present invention, subgraph corresponding to one or more object to be scanned in the first image, can be included.As when a contract documents of user's shooting at close range, the area that then this contract documents takies in the picture may be more, the subgraph of this contract documents may be only included in the picture, namely the subgraph that an object to be scanned is corresponding is only included, or, when this contract documents of user's wide-long shot, except comprising the subgraph of contract documents in the image then obtained, also may can comprise subgraph corresponding to other object, such as also comprise the subgraph of the desktop placing contract documents, near the subgraph of the pen of this contract documents, namely the subgraph that multiple object to be scanned is corresponding is comprised, etc..
In the embodiment of the present invention, the part that an object to be scanned is corresponding is in the picture called the subgraph of this object.
Optionally, in the embodiment of the present invention, the first image can be electronic equipment when receiving the acquisition operations of user, control the image that gathers of image acquisition units.Such as, user can control mobile phone camera by clicking shooting push button is taken, and obtains photo.
S12: extract the subgraph that object to be scanned in the first image is corresponding, and determine the original size data that object to be scanned is corresponding.
In the embodiment of the present invention, object to be scanned can refer to the object corresponding to a subgraph in the first image, and such as, object to be scanned may be resident identification card, contract documents etc.
If only include a subgraph in image, so can extracting directly when extracting subgraph; If image comprises multiple subgraph, so when extracting subgraph, can extract subgraph that in image, area occupied is maximum as image corresponding to object to be scanned, or subgraph corresponding to the focal position can extracting image is as image corresponding to object to be scanned, does not limit to.
In actual applications, when user gathers image by the image acquisition units of electronic equipment, because acquisition condition is limited, in the image of collection, may may comprise the subgraph of multiple object.Such as, when the resident identification card be placed on the dapple desktop of tool is taken, apart from outside the subgraph of resident identification card in the image of shooting, can also comprise the subgraph of the dapple desktop of tool, then the subgraph of the dapple desktop of tool can regard the background image of the subgraph of object to be scanned (i.e. resident identification card) as.The first image as shown in Figure 2, numeral 101 represents the subgraph corresponding to object to be scanned, and numeral 102 represents background image.
Optionally, in the embodiment of the present invention, the original size data of object to be scanned can be the actual size data of the material object of this object to be scanned, as general standard specification.The sized data of multiple dimension can be comprised, as length, radian etc. in the original size data of an object to be scanned.Such as, the original size data of resident identification card can be identical with general standard specification, can comprise: long * is wide, corner arc etc.Such as, the original size data of resident identification card are: long * is wide=and 85.6mm*54mm, the radius of corner arc is 3.18mm.
In actual applications, when determining the original size data of object to be scanned, following two kinds of modes can be included but are not limited to.
Mode one:
N number of original size data that N number of object to be scanned is corresponding can be prestored in electronic equipment, the first object matched with object to be scanned so can be determined from N number of object to be scanned, using the original size data of the first original size data corresponding with the first object as object to be scanned, N is positive integer.
Specifically, the N number of original size data prestored can correspond to relatively more conventional sweep object, as resident identification card, A4 paper/B4 paper file, motor vehicle driving license, etc.Such as, the original size data that the resident identification card prestored is corresponding are: long * is wide=85.6mm*54mm, corner arc radius be 3.18mm, the original size data that A4 paper is corresponding are: long * is wide=and 210mm*297mm, the original size data that B4 paper is corresponding are: long * is wide=and 25mm*35.4mm, etc.
Such as, if determine the first object matching in object to be scanned and N number of object to be scanned, the first object is resident identification card, then can determine that the original size data of object to be scanned are the sized data of resident identification card.
In addition, if from the object determining to determine N number of object to be scanned to match with object to be scanned, then can cannot be selected by the size of user to object to be scanned or be arranged.
Such as, if the object to be scanned of shooting is the A4 paper comprising word, because shooting distance is nearer, the subregion of this A4 paper is only comprised in first image, and by identifying, only can determine that object to be scanned is paper document, but the concrete corresponding size of paper cannot be determined, namely cannot determine that object to be scanned is A4 paper.Now, electronic equipment can export the original size data of information prompting user to this object to be scanned and arrange, such as electronic equipment can provide the sized data of one or more paper for user, therefrom select for user, or user can input corresponding sized data voluntarily, electronic equipment user is selected or the sized data of input as the original size data of object to be scanned.
Mode two:
If image acquisition units is depth camera, then can obtain the depth map of the first image, and, the original size data of object to be scanned can be obtained according to the sized data of the first image and shooting distance.Concrete computational process is identical according to the process of the sized data of the object reality in depth map computed image with prior art, and the present invention does not do concrete introduction at this.
Optionally, in the embodiment of the present invention, as shown in Figure 3A, S12 can comprise the following steps:
S201: the first image is converted into normal direction multi-view image.
S202: capture the subgraph corresponding with object to be scanned in normal direction multi-view image.
S203: according to subgraph, determines the original size data that object to be scanned is corresponding.
Wherein, the process of S201 can by the image translation type of installing in electronic equipment should be used for realize, namely utilize the application of image translation type, the first image launched on the direction of the normal vector of its correspondence, to obtain corresponding normal direction multi-view image.
Such as, the first image shown in Fig. 3 B, numeral 10 is the subgraph of object to be scanned (this sentences contract documents is example, i.e. A4 paper), and the arrow in figure is the normal vector direction of the first image.After the first image launches according to normal vector direction, as shown in Figure 3 C, numeral 10 represents the subgraph corresponding to object to be scanned.
By the first image is converted into normal direction multi-view image, the visual angle deviation because of the subgraph corresponding to the object to be scanned that causes of shooting visual angle can be corrected, make the subgraph corresponding to object to be scanned have normal display mode.
Optionally, in the embodiment of the present invention, after S201, as shown in Figure 4, following process can also be comprised:
S2011: determine the angle between the axis of object to be scanned and the axis of normal direction multi-view image; Wherein, the axis of normal direction multi-view image is center line vertical with the horizontal edge of normal direction multi-view image in normal direction multi-view image, and the axis of object to be scanned is perpendicular to horizontal center line corresponding to object to be scanned;
S2012: based on the central point of object to be scanned, forwards object to be scanned to target location according to angle in normal direction multi-view image; Wherein, in target location, the axis of object to be scanned and the axis parallel of normal direction multi-view image, and the display direction of object to be scanned is positive direction.
Specifically, when determining the axis of object to be scanned, this axis specifically can be perpendicular to the reference line in object to be scanned, and this reference line can be a reference edge in the regular shape that object to be scanned is corresponding.Such as, can determine the regular shape corresponding to object to be scanned in normal direction multi-view image, as being square, rectangle etc., then reference line can be the nearest edge of regular shape middle distance horizontal plane.
Such as, if object to be scanned is A4 paper, then corresponding regular shape is rectangle, then can using in two in A4 comparatively minor face (rule of correspondence shape wide) arbitrary one as reference line, do not limit to.Such as, if object to be scanned is resident identification card, in the normal direction multi-view image of conversion, the subgraph of resident identification card may be inclined relative to normal direction multi-view image, then its direction, reference line place is different from the horizontal direction of normal direction multi-view image, may be at an angle.
Certainly, determine in the process of reference line above-mentioned, if object to be scanned is object in irregular shape, then can determine corresponding regular shape according to the original size data of object to be scanned.Such as, if object to be scanned be shape not rule microphone, the width that the physical length of microphone can be 21cm, microphone is maximum is 4.7cm, segmenting edge corresponding to the marginal information then determined can be long * wide=edge of the regular shape of 21cm*4.7cm, wherein, can using the comparatively minor face in regular shape as reference line.
Optionally, in the embodiment of the present invention, when object to be scanned is stood in the horizontal plane, can using the direction perpendicular to horizontal plane as positive direction corresponding to object to be scanned.As a rule, when the display direction of object to be scanned is positive direction, comparatively meet the viewing custom of user.
Such as, normal direction multi-view image as shown in Figure 5A, the subgraph of numeral 10 corresponding to object to be scanned, dotted line a method of representatives is to the axis of multi-view image, dotted line b represents the axis of object to be scanned, the reference line of object to be scanned is the comparatively minor face in the regular shape that contract documents is corresponding, and this axis is vertical with the reference line direction (double-head arrow in figure) of object to be scanned, and θ is the angle between the axis of the object to be scanned determined and the axis of normal direction multi-view image.
And then object to be scanned can be rotated according to angle theta, as being rotated in a clockwise direction 30 °, 45 ° etc., as shown in Figure 5 B, the subgraph corresponding to postrotational object to be scanned can show with positive direction.
In the embodiment of the present invention, S202 specifically can comprise: in normal direction multi-view image, determine the marginal information that object to be scanned is corresponding, carry out Iamge Segmentation according to marginal information to normal direction multi-view image, obtains subgraph.
Wherein, marginal information can be used in showing segmenting edge when splitting normal direction multi-view image, so that electronic equipment carries out cutting according to this segmenting edge to normal direction multi-view image.
In actual applications, marginal information is obtained by a variety of mode.Such as, the marginal information corresponding with object to be scanned can be determined according to the gray level image of normal direction multi-view image, as region violent for grey scale change in gray level image being defined as edge corresponding to object to be scanned, or, also by carrying out the method for rim detection to determine the segmenting edge of object to be scanned in normal direction multi-view image, and then generate corresponding marginal information according to the segmenting edge determined, etc., the present invention is not restricted for the mode obtaining marginal information.Usually, the segmenting edge of the object to be scanned determined can be identical with the edge of himself.
Such as, still with reference to figure 5B, if show in carve information, the segmenting edge of object to be scanned (i.e. contract documents) is the edge of himself, can carry out Iamge Segmentation process to this normal direction multi-view image, to obtain subgraph corresponding to contract documents.
S13: according to original size data, processed by subgraph according to preset rules, obtains the second image; Wherein, the sized data that object to be scanned is corresponding in the second image is identical with original size data.
Because the second image comprises the subgraph corresponding to object to be scanned, and the sized data corresponding to subgraph corresponding to object to be scanned is identical with original size data, therefore can using the second image as scan image corresponding to object to be scanned, thus without the need to using scanner, the scan image of object to be scanned can be obtained, make cost lower.
Preferably, a subgraph can being only included in the second image, the subgraph namely corresponding to object to be scanned, the second image can being made like this closer to object to be scanned being scanned to the image obtained.
Optionally, as shown in Figure 6, S13 can comprise following process:
S131: obtain the ratio between the sized data of subgraph and original size data;
S132: carry out convergent-divergent to subgraph according to the ratio determined, to make the sized data of the subgraph after convergent-divergent identical with original size data;
S133: using the subgraph after convergent-divergent as the second image.
Wherein, the sized data of subgraph can refer to the sized data of the subgraph correspondence in normal direction multi-view image corresponding to object to be scanned.Such as, if the sized data of normal direction multi-view image is 17cm*13cm, and the sized data of subgraph in the figure of normal direction visual angle of object to be scanned (as A4 paper) can be 4.2cm*5.94cm.And then, the ratio between the sized data of subgraph and the original size data of object to be scanned can be determined.Such as, if the original size data of the A4 paper determined are 210mm*297mm, ratio between the sized data of the subgraph of the A4 paper calculated and the original size data of A4 paper is such as 1:5, thus can carry out convergent-divergent according to this ratio to subgraph, obtains corresponding second image.
In the embodiment of the present invention, according to preset rules, subgraph is processed, that is: subgraph is carried out convergent-divergent process according to the ratio determined, its detailed process can be that the proportionate relationship of the sized data of subgraph and original size data is converted to 1:1, sized data by the subgraph corresponding to object to be scanned is adjusted to original size data, makes to have the image of subgraph closer to real scan of original size data.Fig. 7 carries out convergent-divergent process according to the ratio determined to subgraph, and obtains the schematic diagram of the second image, and the sized data of object to be scanned in the second image is original size data.
In actual applications, if the size of subgraph is less than the original size of object to be scanned, namely ratio is between the two less than 1, then subgraph can be amplified.Such as, the ratio determined is 1:5, then subgraph can be amplified 5 times, with the original size data making the subgraph amplified have object to be scanned.
Or, if the size of subgraph is greater than the original size of object to be scanned, then according to the ratio determined, subgraph can be reduced.Such as, if object to be scanned is resident identification card, the ratio of the sized data of the subgraph of its correspondence and the original size data of resident identification card is 2:1, then the sized data of subgraph can be reduced into original 0.5 times, obtain the second image that sized data is identical with the original size data of resident identification card.
Further, in the embodiment of the present invention, after acquisition second image, the second image can also be stored according to predetermined manner:
If determine, the sized data of the second image does not exceed the pre-set dimension data of electronic equipment, directly according to the sized data of the second image, the second image can be stored, otherwise, can compress the second image, and the second image after compression is stored, to avoid taking the too much storage resources of electronic equipment.
Like this, if user needs the scanned copy of object to be scanned, then can be obtained by printing second image, implementation procedure is comparatively quick, and efficiency is higher.
As shown in Figure 8, based on same inventive concept, the present invention also discloses a kind of electronic equipment, and this electronic equipment comprises image acquisition device 11 and processor 12.
Wherein, image acquisition device 11 comprises the first image of object to be scanned for gathering,
Specifically, image acquisition device 11 can be the camera in electronic equipment, as depth camera is first-class.Processor 12 is connected with image acquisition device 11, processor 12 may be used for: in described first image, extract subgraph corresponding to described object to be scanned, determine the original size data that described object to be scanned is corresponding, and according to described original size data, described subgraph is processed according to preset rules, obtains the second image; Wherein, the sized data that described object to be scanned is corresponding in described second image is identical with described original size data.
In actual applications, processor 12 is specifically for being converted into normal direction multi-view image by described first image; The described subgraph corresponding with described object to be scanned is captured in described normal direction multi-view image; And determine the described original size data that described object to be scanned is corresponding.
Optionally, in the embodiment of the present invention, processor 12 for: in described normal direction multi-view image, determine the marginal information that described object to be scanned is corresponding; According to described marginal information, Iamge Segmentation is carried out to described normal direction multi-view image, obtain described subgraph.
Optionally, in the embodiment of the present invention, processor 12 also for:
Capture the described subgraph corresponding with described object to be scanned in described normal direction multi-view image before, determine the angle between the axis of described object to be scanned and the axis of described normal direction multi-view image; Wherein, the axis of described normal direction multi-view image is center line vertical with the horizontal edge of described normal direction multi-view image in described normal direction multi-view image, and the axis of described object to be scanned is perpendicular to horizontal center line corresponding to object to be scanned;
Based on the central point of described object to be scanned, in described normal direction multi-view image, forward described object to be scanned to target location according to described angle; Wherein, in described target location, the axis of described object to be scanned and the axis parallel of described normal direction multi-view image, and the display direction of described object to be scanned is positive direction.
Optionally, in the embodiment of the present invention, processor 12 for: obtain the ratio between the sized data of described subgraph and described original size data; And according to the ratio determined, convergent-divergent is carried out to described subgraph, to make the sized data of the subgraph after convergent-divergent identical with described original size data, using by the subgraph after convergent-divergent as described second image.
As shown in Figure 9, based on same inventive concept, the present invention also provides a kind of electronic equipment, and this electronic equipment comprises acquisition module 301, extraction module 302 and processing module 303.
Acquisition module 301 is for gathering the first image by the image acquisition units of electronic equipment;
Extraction module 302 for extracting subgraph corresponding to object to be scanned in described first image, and determines the original size data that described object to be scanned is corresponding;
Described subgraph, for according to described original size data, processes according to preset rules by processing module 303, obtains the second image; Wherein, the sized data that described object to be scanned is corresponding in described second image is identical with described original size data.
Optionally, in the embodiment of the present invention, extraction module 302 specifically for:
Described first image is converted into normal direction multi-view image;
The described subgraph corresponding with described object to be scanned is captured in described normal direction multi-view image;
Determine the described original size data that described object to be scanned is corresponding.
Optionally, in the embodiment of the present invention, extraction module 302 specifically for:
The marginal information that described object to be scanned is corresponding is determined in described normal direction multi-view image;
According to described marginal information, Iamge Segmentation is carried out to described normal direction multi-view image, obtain described subgraph.
Optionally, in the embodiment of the present invention, electronic equipment can also comprise determination module, for:
Capture the described subgraph corresponding with described object to be scanned in described normal direction multi-view image before, determine the angle between the axis of described object to be scanned and the axis of described normal direction multi-view image; Wherein, the axis of described normal direction multi-view image is center line vertical with the horizontal edge of described normal direction multi-view image in described normal direction multi-view image, and the axis of described object to be scanned is the center line perpendicular to reference line in object to be scanned; And
Based on the central point of described object to be scanned, in described normal direction multi-view image, forward described object to be scanned to target location according to described angle; Wherein, in described target location, the axis of described object to be scanned and the axis parallel of described normal direction multi-view image, and the display direction of described object to be scanned is positive direction.
Optionally, in the embodiment of the present invention, processing module 303 specifically may be used for:
Obtain the ratio between the sized data of described subgraph and described original size data;
According to the ratio determined, convergent-divergent is carried out to described subgraph, to make the sized data of the subgraph after convergent-divergent identical with described original size data;
Using the subgraph after convergent-divergent as described second image.
Specifically, the computer program instructions that image processing method in the embodiment of the present application is corresponding can be stored in CD, hard disk, on the storage mediums such as USB flash disk, read by an electronic equipment when the computer program instructions corresponding with image processing method in storage medium or when being performed, comprise the steps:
The first image is gathered by the image acquisition units of electronic equipment;
Extract the subgraph that object to be scanned in described first image is corresponding, and determine the original size data that described object to be scanned is corresponding;
According to described original size data, described subgraph is processed according to preset rules, obtain the second image; Wherein, the sized data that described object to be scanned is corresponding in described second image is identical with described original size data.
Optionally, store in described storage medium with step: extract the subgraph that object to be scanned in described first image is corresponding, and determine the original size data that described object to be scanned is corresponding, corresponding computer instruction, being specifically performed in process, comprises the steps:
Described first image is converted into normal direction multi-view image;
The described subgraph corresponding with described object to be scanned is captured in described normal direction multi-view image;
Determine the described original size data that described object to be scanned is corresponding.
Optionally, store in described storage medium with step: in described normal direction multi-view image, capture the described subgraph corresponding with described object to be scanned, corresponding computer instruction, being specifically performed in process, comprises the steps:
The marginal information that described object to be scanned is corresponding is determined in described normal direction multi-view image;
According to described marginal information, Iamge Segmentation is carried out to described normal direction multi-view image, obtain described subgraph.
Optionally, other computer instruction is also stored in described storage medium, these computer instructions with step: capturing in described normal direction multi-view image before instruction corresponding to the described subgraph corresponding with described object to be scanned performs and be performed, comprising the steps: when being performed
Determine the angle between the axis of described object to be scanned and the axis of described normal direction multi-view image; Wherein, the axis of described normal direction multi-view image is center line vertical with the horizontal edge of described normal direction multi-view image in described normal direction multi-view image, and the axis of described object to be scanned is the center line perpendicular to reference line in object to be scanned;
Based on the central point of described object to be scanned, in described normal direction multi-view image, forward described object to be scanned to target location according to described angle; Wherein, in described target location, the axis of described object to be scanned and the axis parallel of described normal direction multi-view image, and the display direction of described object to be scanned is positive direction.
Optionally, that store in described storage medium and step: according to described original size data, processed by described subgraph according to preset rules, obtain the second image, corresponding computer instruction, being specifically performed in process, comprises the steps:
Obtain the ratio between the sized data of described subgraph and described original size data;
According to the ratio determined, convergent-divergent is carried out to described subgraph, to make the sized data of the subgraph after convergent-divergent identical with described original size data;
Using the subgraph after convergent-divergent as described second image.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
Claims (11)
1. an image processing method, described method comprises:
The first image is gathered by the image acquisition units of electronic equipment;
Extract the subgraph that object to be scanned in described first image is corresponding, and determine the original size data that described object to be scanned is corresponding;
According to described original size data, described subgraph is processed according to preset rules, obtain the second image; Wherein, the sized data that described object to be scanned is corresponding in described second image is identical with described original size data.
2. the method for claim 1, is characterized in that, extracts the subgraph that object to be scanned in described first image is corresponding, and determines the original size data that described object to be scanned is corresponding, comprising:
Described first image is converted into normal direction multi-view image;
The described subgraph corresponding with described object to be scanned is captured in described normal direction multi-view image;
Determine the described original size data that described object to be scanned is corresponding.
3. method as claimed in claim 2, is characterized in that, captures the described subgraph corresponding with described object to be scanned, comprising in described normal direction multi-view image:
The marginal information that described object to be scanned is corresponding is determined in described normal direction multi-view image;
According to described marginal information, Iamge Segmentation is carried out to described normal direction multi-view image, obtain described subgraph.
4. method as claimed in claim 2 or claim 3, is characterized in that, before capturing the described subgraph corresponding with described object to be scanned, also comprises in described normal direction multi-view image:
Determine the angle between the axis of described object to be scanned and the axis of described normal direction multi-view image; Wherein, the axis of described normal direction multi-view image is center line vertical with the horizontal edge of described normal direction multi-view image in described normal direction multi-view image, and the axis of described object to be scanned is the center line perpendicular to reference line in object to be scanned;
Based on the central point of described object to be scanned, in described normal direction multi-view image, forward described object to be scanned to target location according to described angle; Wherein, in described target location, the axis of described object to be scanned and the axis parallel of described normal direction multi-view image, and the display direction of described object to be scanned is positive direction.
5. method as claimed in claim 4, is characterized in that, according to described original size data, processed by described subgraph according to preset rules, obtain the second image, comprising:
Obtain the ratio between the sized data of described subgraph and described original size data;
According to the ratio determined, convergent-divergent is carried out to described subgraph, to make the sized data of the subgraph after convergent-divergent identical with described original size data;
Using the subgraph after convergent-divergent as described second image.
6. an electronic equipment, comprising:
Image acquisition device, for gathering the first image comprising object to be scanned;
Processor, be connected with described image acquisition device, for extracting subgraph corresponding to described object to be scanned in described first image, determine the original size data that described object to be scanned is corresponding, and according to described original size data, described subgraph is processed according to preset rules, obtains the second image; Wherein, the sized data that described object to be scanned is corresponding in described second image is identical with described original size data.
7. electronic equipment as claimed in claim 6, it is characterized in that, described processor is used for:
Described first image is converted into normal direction multi-view image;
The described subgraph corresponding with described object to be scanned is captured in described normal direction multi-view image;
Determine the described original size data that described object to be scanned is corresponding.
8. electronic equipment as claimed in claim 7, it is characterized in that, described processor is used for:
The marginal information that described object to be scanned is corresponding is determined in described normal direction multi-view image;
According to described marginal information, Iamge Segmentation is carried out to described normal direction multi-view image, obtain described subgraph.
9. as claimed in claim 7 or 8 electronic equipment, is characterized in that, described processor also for:
Capture the described subgraph corresponding with described object to be scanned in described normal direction multi-view image before, determine the angle between the axis of described object to be scanned and the axis of described normal direction multi-view image; Wherein, the axis of described normal direction multi-view image is center line vertical with the horizontal edge of described normal direction multi-view image in described normal direction multi-view image, and the axis of described object to be scanned is perpendicular to horizontal center line corresponding to object to be scanned;
Based on the central point of described object to be scanned, in described normal direction multi-view image, forward described object to be scanned to target location according to described angle; Wherein, in described target location, the axis of described object to be scanned and the axis parallel of described normal direction multi-view image, and the display direction of described object to be scanned is positive direction.
10. electronic equipment as claimed in claim 9, it is characterized in that, described processor is used for:
Obtain the ratio between the sized data of described subgraph and described original size data;
According to the ratio determined, convergent-divergent is carried out to described subgraph, to make the sized data of the subgraph after convergent-divergent identical with described original size data;
Using the subgraph after convergent-divergent as described second image.
11. 1 kinds of electronic equipments, comprising:
Acquisition module, for gathering the first image by the image acquisition units of electronic equipment;
Extraction module, for extracting subgraph corresponding to object to be scanned in described first image, and determines the original size data that described object to be scanned is corresponding;
Processing module, for according to described original size data, processes described subgraph according to preset rules, obtains the second image; Wherein, the sized data that described object to be scanned is corresponding in described second image is identical with described original size data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510446459.9A CN105100616B (en) | 2015-07-27 | 2015-07-27 | Image processing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510446459.9A CN105100616B (en) | 2015-07-27 | 2015-07-27 | Image processing method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105100616A true CN105100616A (en) | 2015-11-25 |
CN105100616B CN105100616B (en) | 2021-02-19 |
Family
ID=54580057
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510446459.9A Active CN105100616B (en) | 2015-07-27 | 2015-07-27 | Image processing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105100616B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106126133A (en) * | 2016-06-23 | 2016-11-16 | 联想(北京)有限公司 | A kind of Method of printing, printing device and electronic installation |
CN106997579A (en) * | 2016-01-26 | 2017-08-01 | 华为技术有限公司 | The method and apparatus of image mosaic |
CN109035266A (en) * | 2017-06-08 | 2018-12-18 | 吴海霞 | A kind of algorithm for completing identity card Portable scanning using common camera shooting |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1835578A (en) * | 2005-03-16 | 2006-09-20 | Lg电子株式会社 | Method and apparatus for composing images during video communications |
CN101262548A (en) * | 2007-03-09 | 2008-09-10 | 株式会社尼康 | Image processing method |
US20100277604A1 (en) * | 2009-04-30 | 2010-11-04 | Hoya Corporation | Flexible wiring board mounting structure of an image shake correcting apparatus |
JP2010268441A (en) * | 2009-04-16 | 2010-11-25 | Sanyo Electric Co Ltd | Image processor, imaging device, and image reproducing device |
US20110013015A1 (en) * | 2008-02-18 | 2011-01-20 | Snu Precision Co., Ltd | Vision inspection system and inspection method using the same |
US20120293703A1 (en) * | 2008-09-16 | 2012-11-22 | Canon Kabushiki Kaisha | Image pickup apparatus |
CN102970481A (en) * | 2011-09-01 | 2013-03-13 | 索尼公司 | Electronic unit controlled by a photographing system including a pattern detection system |
CN103685877A (en) * | 2012-09-05 | 2014-03-26 | 卡西欧计算机株式会社 | Print target data processing apparatus, and print target data processing method |
CN104007811A (en) * | 2013-02-27 | 2014-08-27 | 纬创资通股份有限公司 | Electronic device and image adjusting method |
CN104378620A (en) * | 2014-11-24 | 2015-02-25 | 联想(北京)有限公司 | Image processing method and electronic device |
CN104717425A (en) * | 2014-12-30 | 2015-06-17 | 上海孩子国科教设备有限公司 | Data adjustment method, client side and system |
-
2015
- 2015-07-27 CN CN201510446459.9A patent/CN105100616B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1835578A (en) * | 2005-03-16 | 2006-09-20 | Lg电子株式会社 | Method and apparatus for composing images during video communications |
CN101262548A (en) * | 2007-03-09 | 2008-09-10 | 株式会社尼康 | Image processing method |
US20110013015A1 (en) * | 2008-02-18 | 2011-01-20 | Snu Precision Co., Ltd | Vision inspection system and inspection method using the same |
US20120293703A1 (en) * | 2008-09-16 | 2012-11-22 | Canon Kabushiki Kaisha | Image pickup apparatus |
JP2010268441A (en) * | 2009-04-16 | 2010-11-25 | Sanyo Electric Co Ltd | Image processor, imaging device, and image reproducing device |
US20100277604A1 (en) * | 2009-04-30 | 2010-11-04 | Hoya Corporation | Flexible wiring board mounting structure of an image shake correcting apparatus |
CN102970481A (en) * | 2011-09-01 | 2013-03-13 | 索尼公司 | Electronic unit controlled by a photographing system including a pattern detection system |
CN103685877A (en) * | 2012-09-05 | 2014-03-26 | 卡西欧计算机株式会社 | Print target data processing apparatus, and print target data processing method |
CN104007811A (en) * | 2013-02-27 | 2014-08-27 | 纬创资通股份有限公司 | Electronic device and image adjusting method |
CN104378620A (en) * | 2014-11-24 | 2015-02-25 | 联想(北京)有限公司 | Image processing method and electronic device |
CN104717425A (en) * | 2014-12-30 | 2015-06-17 | 上海孩子国科教设备有限公司 | Data adjustment method, client side and system |
Non-Patent Citations (1)
Title |
---|
邢文元: "虹膜图像采集技术及应用", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106997579A (en) * | 2016-01-26 | 2017-08-01 | 华为技术有限公司 | The method and apparatus of image mosaic |
CN106997579B (en) * | 2016-01-26 | 2020-01-03 | 华为技术有限公司 | Image splicing method and device |
CN106126133A (en) * | 2016-06-23 | 2016-11-16 | 联想(北京)有限公司 | A kind of Method of printing, printing device and electronic installation |
CN109035266A (en) * | 2017-06-08 | 2018-12-18 | 吴海霞 | A kind of algorithm for completing identity card Portable scanning using common camera shooting |
Also Published As
Publication number | Publication date |
---|---|
CN105100616B (en) | 2021-02-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7102170B2 (en) | Image processing device and control method and program of image processing device | |
US9754164B2 (en) | Systems and methods for classifying objects in digital images captured using mobile devices | |
JP6547873B2 (en) | Ten-finger fingerprint card input device, ten-finger fingerprint card input method, and storage medium | |
EP2650821B1 (en) | Text image trimming method | |
EP1473641A2 (en) | Information processing apparatus, method, storage medium and program | |
US10452953B2 (en) | Image processing device, image processing method, program, and information recording medium | |
US10303969B2 (en) | Pose detection using depth camera | |
JPWO2007004519A1 (en) | Search system and search method | |
CN101789122A (en) | Method and system for correcting distorted document image | |
US20150169992A1 (en) | Image similarity determination | |
CN112232260A (en) | Subtitle region identification method, device, equipment and storage medium | |
JP6739937B2 (en) | Information processing apparatus, control method of information processing apparatus, and program | |
CN108304840B (en) | Image data processing method and device | |
CN105100616A (en) | Image processing method and electronic equipment | |
CN108650431B (en) | Shooting control method and device and electronic equipment | |
JP5278093B2 (en) | Article related information providing method, apparatus, program, and recording medium | |
CN101867715B (en) | Automatic image shooting system | |
EP3884431A1 (en) | Document detections from video images | |
JP2007011762A (en) | Area extraction apparatus and area extraction method | |
CN113255629A (en) | Document processing method and device, electronic equipment and computer readable storage medium | |
US8502873B2 (en) | Method for determining clear image using an image pickup device | |
KR20150130253A (en) | Method of extracting adaptive unstructured personal information in image for data loss prevention and apparatus for performing the method | |
KR101625751B1 (en) | AR marker having boundary code, and system, and method for providing augmented reality using the same | |
CN116521702A (en) | Text processing method, device and equipment | |
WO2022173415A1 (en) | Edge identification of documents within captured image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |