A kind of eyeglass counting mobile terminal
Technical field
This utility model relates to number system field, is specifically related to a kind of eyeglass counting mobile terminal.
Background technology
Optical glass is widely used in many necks such as security protection, medical imaging, intelligent transportation, industrial detection
Territory, its demand and volume of production increase day by day.
In traditional optical manufacturing industry, for processing optical glass be processed several statistics of variables with
And production inventory is when making an inventory, it is all i.e. to be counted eyeglass one by one by employee by the way of artificial,
Add up its number, then manual record.
This artificial statistics the method recording optics number of lenses, its work efficiency is the lowest, causes
Produce into increase;And owing to there is anthropic factor, statistical error is bigger;Additionally, due to part light
Learning eyeglass bore the least, human eye is stared at for a long time and is regarded, and can cause eyestrain, ache, sheds tears,
Thus induce some ophthalmic diseasess.
Summary of the invention
Therefore, the technical problems to be solved in the utility model is to overcome in prior art the artificial system of employing
Count and record optics number of lenses and cause that work efficiency is poor, statistical error greatly, easily induces ophthalmic diseases
Defect, thus provide a kind of eyeglass counting mobile terminal, including:
Photographic head, is arranged on the fuselage of mobile terminal, gathers and passes sequentially through described photographic head front
The original image of eyeglass;
Image correction unit, according to described fuselage and level during original image described in described camera collection
Described original image is corrected by the angle in direction;
Eyeglass recognition unit, identifies the lens image in the image after correction;
Counting unit, adds up the number of described lens image.
Preferably, described eyeglass counting mobile terminal, also include:
Angular-rate sensor, rotates and the angular velocity of deflection for measuring described fuselage;
First acquiring unit, for the rotation obtained according to described angular-rate sensor and yaw rate,
Calculate described fuselage and the angle of horizontal direction during original image described in described camera collection.
Preferably, described image correction unit includes:
Angular transformation subelement, for according to described fuselage during original image described in described camera collection
With the angle of horizontal direction, described original image is carried out angle equation conversion.
Described eyeglass recognition unit, including:
Rim detection subelement, according to Sobel Sobel edge edge detection algorithm, after described correction
Image carries out rim detection;
Outline identification subelement, according to edge detection results, identifies circle by Hough Hough transform
Shape profile, described circular contour is as lens image.
Preferably, described eyeglass counting mobile terminal, also include second acquisition unit, be used for obtaining institute
Focal length when stating original image described in camera collection and/or image resolution ratio.
Preferably, described eyeglass counting mobile terminal, also include image acquisition start unit, described figure
Start button, or vice activation subelement is included as gathering start unit.
Preferably, described eyeglass counting mobile terminal, also include that display screen, described display screen can show
Show the number of the lens image of described counting unit statistics gained.
Preferably, the figure after described display screen can also show described original image and/or described correction
Picture.
Preferably, described eyeglass counting mobile terminal, also include transmission unit, for by described counting
The number transmission of the lens image of unit statistics gained is to eyeglass management system or server.
Preferably, described eyeglass counting mobile terminal is smart mobile phone.
This utility model additionally provides a kind of lensometer counting method using eyeglass counting mobile terminal, bag
Include following steps:
Control the photographic head being arranged on the fuselage of mobile terminal, gather before passing sequentially through described photographic head
The original image of the eyeglass of side;
According to described in described camera collection during original image the angle of described fuselage and horizontal direction to institute
State original image to be corrected;
Identify the lens image in the image after correction;
Add up the number of described lens image.
Preferably, measure described fuselage by the angular-rate sensor of described mobile terminal to rotate and deflection
Angular velocity;
The rotation obtained according to described angular-rate sensor and yaw rate, calculate described photographic head and adopt
Collect described fuselage and the angle of horizontal direction during described original image.
Preferably, described according to described fuselage and level side during original image described in described camera collection
To angle step that described original image is corrected, including:
According to the angle of described fuselage and horizontal direction during original image described in described camera collection, right
Described original image carries out angle equation conversion.
Preferably, described in identify the step of lens image in the image after correction, including:
According to Sobel Sobel edge edge detection algorithm, the image after described correction is carried out rim detection;
According to edge detection results, identify circular contour, described circle by Hough Hough transform
Profile is as lens image.
Preferably, described lensometer counting method, also include obtaining original graph described in described camera collection
Focal length during picture and/or image resolution ratio.
Preferably, described lensometer counting method, also include by start button, or opened by voice
Original image described in dynamic described camera collection.
Preferably, described lensometer counting method, also include being shown by the display screen of described mobile terminal
The number of the lens image of statistics gained.
Preferably, described lensometer counting method, also include showing described original graph by described display screen
Image after picture and/or described correction.
Preferably, described lensometer counting method, also include that the number of the lens image by statistics gained passes
Transport to eyeglass management system or server.
Preferably, described eyeglass counting mobile terminal is smart mobile phone.
Technical solutions of the utility model, have the advantage that
1, the eyeglass counting mobile terminal that this utility model provides, is gathered by taking the photograph successively by photographic head
Original image as the eyeglass in head front, it is not necessary to user's naked eyes stare at eyeglass for a long time, thus avoid
Consequent eyestrain, ache, the situation such as shed tears, it is to avoid the ophthalmic diseases thus induced;
By image correction unit, original image is corrected, original image is corrected to mobile terminal level
The image of shooting in the case of placement, makes lens image close to circular, thus reduces lens image identification
Difficulty, reduce operand;By in eyeglass recognition unit and counting unit programming count original image
The number of eyeglass, it is not necessary to the number of eyeglass in artificial statistics original image, Statistical Speed is fast, efficiency is high,
And accuracy rate is higher, further avoid the error caused by anthropic factor.
2, the eyeglass counting mobile terminal that this utility model provides, measures fuselage by angular-rate sensor
Rotate and deflection angular velocity, the rotation obtained according to angular-rate sensor by the first acquiring unit with
When yaw rate calculates camera collection original image, fuselage and the angle of horizontal direction, pass through angle
Change subelement carries out angle equation conversion, by the ellipse of eyeglass in original image to original image
Image rectification is circular, it is possible to reduce operand during lens image identification, reduces the difficulty identified.
3, the eyeglass counting mobile terminal that this utility model provides, rim detection sub-list crossed by the logical eyeglass that reduces
Unit, according to Sobel Sobel edge edge detection algorithm, carries out rim detection to the image after correction;Pass through
Outline identification subelement, according to edge detection results, identifies circular contour by Hough Hough transform,
Using this circular contour as lens image, by rim detection and outline identification technology, programming count is former
The number of eyeglass in beginning image, it is not necessary to the number of eyeglass in artificial statistics original image, Statistical Speed is fast,
Efficiency is high, and accuracy rate is higher, further avoid the error caused by anthropic factor.
4, the eyeglass counting mobile terminal that this utility model provides, obtains shooting by second acquisition unit
Focal length during head collection original image and/or image resolution ratio, in order to estimate the size of original image, point
The memory space joining enough sizes stores and processes original image, it is ensured that the smoothness of program of mobile terminal
Run.
5, the eyeglass counting mobile terminal that this utility model provides, by start button or vice activation
Unit starting camera collection lens image, to facilitate user to adopt after selecting suitable position and angle again
Collection original image, reduces the storage of unwanted picture, saves the internal memory of mobile terminal.
6, the eyeglass counting mobile terminal that this utility model provides, is united by display screen display counting unit
The number of the lens image of meter gained, makes user know the mode of eyeglass number much sooner, more just
Prompt.
7, this utility model provide eyeglass counting mobile terminal, by display screen display original image and
/ or correction after image so that user use mobile terminal gather eyeglass original image time can
Image after preview original image and/or correction, the image preserved, give up useless image, joint
The about internal memory of mobile terminal.
9, the eyeglass counting mobile terminal that this utility model provides, is united counting unit by transmission unit
The number transmission of the lens image of meter gained is to eyeglass management system or server, and mobile terminal is by passing
The eyeglass number of statistics gained is sent and inputs to management system by defeated unit automatically, it is not necessary to be manually entered,
On the one hand decrease human cost, on the other hand avoid owing to being manually entered the data that may bring wrong
By mistake.
Accompanying drawing explanation
In order to be illustrated more clearly that this utility model detailed description of the invention or technical side of the prior art
Case, will make simply the accompanying drawing used required in detailed description of the invention or description of the prior art below
Introduce, it should be apparent that, the accompanying drawing in describing below is embodiments more of the present utility model, right
From the point of view of those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to according to
These accompanying drawings obtain other accompanying drawing.
Figure 1A is a concrete example of eyeglass counting mobile terminal in this utility model embodiment 1
Theory diagram;
Figure 1B is that in this utility model embodiment 1, eyeglass counting mobile terminal relatively horizontal orientation has folder
The schematic block diagram of eyeglass original image is gathered when angle is placed;
Fig. 1 C is to correct rear lens counting mobile terminal in this utility model embodiment 1 to be parallel to level
The schematic block diagram of eyeglass original image is gathered during direction;
Fig. 1 D is another concrete example of eyeglass counting mobile terminal in this utility model embodiment 1
Theory diagram;
Fig. 2 is the flow process of a concrete example of lensometer counting method in this utility model embodiment 2
Figure.
Detailed description of the invention
Below in conjunction with accompanying drawing, the technical solution of the utility model is clearly and completely described, aobvious
So, described embodiment is a part of embodiment of this utility model rather than whole embodiments.
Based on the embodiment in this utility model, those of ordinary skill in the art are not making creative work
The every other embodiment obtained under premise, broadly falls into the scope of this utility model protection.
In description of the present utility model, it should be noted that term " " center ", " on ", D score,
Orientation or the position relationship of the instruction such as "left", "right", " vertically ", " level ", " interior ", " outward " are
Based on orientation shown in the drawings or position relationship, it is for only for ease of description this utility model and simplification is retouched
State rather than indicate or imply that the device of indication or element must have specific orientation, with specifically
Azimuth configuration and operation, therefore it is not intended that to restriction of the present utility model.Additionally, term " the
One ", " second ", " the 3rd " are only used for describing purpose, and it is not intended that instruction or imply relatively heavy
The property wanted.
In description of the present utility model, it should be noted that unless otherwise clearly defined and limited,
Term " is installed ", " being connected ", " connection " should be interpreted broadly, for example, it may be fixing even
Connect, it is also possible to be to removably connect, or be integrally connected;Can be to be mechanically connected, it is also possible to be electricity
Connect;Can be to be joined directly together, it is also possible to be indirectly connected to by intermediary, it is also possible to be two units
Connection within part, can be wireless connections, it is also possible to be wired connection.Common for this area
For technical staff, above-mentioned term concrete meaning in this utility model can be understood with concrete condition.
Additionally, technical characteristic involved in this utility model difference embodiment disclosed below is only
The conflict of not constituting each other just can be combined with each other.
Embodiment 1
The present embodiment provides a kind of eyeglass counting mobile terminal, as shown in Figure 1A, including photographic head 10,
Image correction unit 20, eyeglass recognition unit 30 and counting unit 40.
Photographic head 10, is arranged on the fuselage of mobile terminal, gathers the mirror passing sequentially through photographic head front
The original image of sheet.Preferably, eyeglass is fully deployed lay, and is to place and on horizontal plane.
User's hand-held mobile terminal in the surface of eyeglass or oblique upper, by user move mobile terminal or
Person makes to move the mode of the lens position of lay, makes the eyeglass generation relative displacement of mobile terminal and lay
Relation.The camera collection of mobile terminal passes sequentially through the original image of the eyeglass in photographic head front.
Use photographic head to obtain the original image of eyeglass, and it is processed thus obtain the number of eyeglass
Mesh, it is not necessary to user's naked eyes stare at eyeglass for a long time, thus avoid consequent eyestrain, acid
Bitterly, shed tears etc. situation, it is to avoid the ophthalmic diseases thus induced.
Image correction unit 20, according to the angle of fuselage during camera collection original image Yu horizontal direction
Original image is corrected.When taking pictures eyeglass, mobile terminal can be horizontal positioned,
Can also be that relatively horizontal orientation has angle.Angle is had to place in mobile terminal relatively horizontal orientation
In the case of, in the original image of the eyeglass that photographic head obtains, the original image of the most each eyeglass is
Circular.But when image recognition, identify that ellipse ratio identifies that orbicular algorithm is relative complex,
Operand is relatively big, and difficulty is relatively large.As shown in Figure 1B, image is gathered for mobile terminal on the left of arrow
Time position put schematic diagram, for the image schematic diagram got under this position on the right of arrow.Therefore,
Original image is corrected, original image is corrected to the mobile terminal level as shown on the left of Fig. 1 C
The image of shooting in the case of placement, makes the close circular as shown on the right side of Fig. 1 C of lens image, thus
Reduce the difficulty of lens image identification, reduce operand.
As a kind of preferred implementation of the present embodiment, as shown in figure ip, this eyeglass counting is mobile eventually
End, also includes angular-rate sensor 50 and the first acquiring unit 60.Angular-rate sensor 50, is used for
Measure fuselage to rotate and the angular velocity of deflection.First acquiring unit 60, for according to angular-rate sensor
The rotation obtained and yaw rate, by the angular velocity integration to the time, be calculated photographic head and adopt
Fuselage and the angle of horizontal direction during collection original image.Above-mentioned image correction unit 20, becomes including angle
Change subelement 21, for the angle according to fuselage during camera collection original image Yu horizontal direction, right
Original image carries out angle equation conversion.
Eyeglass recognition unit 30, identifies the lens image in the image after correction.
As a kind of preferred implementation of the present embodiment, this eyeglass recognition unit 30, examine including edge
Survey subelement 31 and outline identification subelement 32.Rim detection subelement 31, according to Sobel Sobel
Edge detection algorithm, carries out rim detection to the image after correction.Outline identification subelement 32, according to
Edge detection results, identifies circular contour by Hough Hough transform, and circular contour is as eyeglass
Image.
Counting unit 40, the number of statistics lens image.
By rim detection and outline identification technology, the number of eyeglass, nothing in programming count original image
Need to manually add up the number of eyeglass in original image, Statistical Speed is fast, efficiency is high, and accuracy rate is relatively
Height, further avoid the error caused by anthropic factor.
As a kind of preferred implementation of the present embodiment, as shown in Figure 1B, eyeglass counting mobile terminal
Also include second acquisition unit 70, focal length during for obtaining camera collection original image and/or image
Resolution, in order to estimate the size of original image, the memory space distributing enough sizes stores and locates
Reason original image, it is ensured that the smooth operation of program of mobile terminal.
Also include that image acquisition start unit 80, image acquisition start unit include start button, or language
Sound promoter unit, to facilitate user to gather original image again after selecting suitable position and angle, subtracts
The storage of few unwanted picture, saves the internal memory of mobile terminal.
Eyeglass counting mobile terminal also includes display screen 90, it is possible to the mirror of display counting unit statistics gained
The number of picture, make user know the mode of eyeglass number much sooner, more convenient.This display
Screen 90 can also show the image after original image and/or correction, so that user is mobile eventually in use
End gather eyeglass original image time can preview original image and/or correction after image, preserve use
Image, give up useless image, save the internal memory of mobile terminal.
Additionally, eyeglass counting mobile terminal, also include transmission unit 100, for counting unit being added up
The number transmission of the lens image of gained is to eyeglass management system or server.General factory or workshop meeting
It is equipped with the software eyeglass management system of automatization, it is also possible to be a station server main frame.Mobile terminal leads to
Cross transmission unit the eyeglass number of statistics gained is automatically sent and inputted to management system, it is not necessary to artificial
On the one hand input, decreases human cost, on the other hand avoids owing to being manually entered and may bring
Error in data.
Preferably, eyeglass counting mobile terminal is smart mobile phone.Utilize photographic head that smart mobile phone carries,
Angular-rate sensor, display screen, and wireless network transmission module, develop software system, this software
System include above-mentioned image correction unit, eyeglass recognition unit, counting unit, the first acquiring unit,
Second acquisition unit, image acquisition start unit, transmission unit etc..Existing smart mobile phone is utilized to open
Send out eyeglass counting mobile terminal, on the one hand reduce the hardware cost of eyeglass counting mobile terminal;Another
Aspect is due to the universality of smart mobile phone and portability so that the use of this eyeglass counting mobile terminal is more
For convenient.
The eyeglass counting mobile terminal that the present embodiment provides, is gathered successively by photographic head and passes through photographic head
The original image of the eyeglass in front, it is not necessary to user's naked eyes stare at eyeglass for a long time, thus thus avoid
Eyestrain of producing, ache, the situation such as shed tears, it is to avoid the ophthalmic diseases thus induced;Pass through
Original image is corrected by image correction unit, and original image is corrected to mobile terminal horizontal positioned
In the case of the image of shooting, make lens image close to circular, thus reduce the difficulty of lens image identification
Degree, reduces operand;By eyeglass in eyeglass recognition unit and counting unit programming count original image
Number, it is not necessary to the number of eyeglass in artificial statistics original image, Statistical Speed is fast, efficiency is high, and
And accuracy rate is higher, further avoid the error caused by anthropic factor.
Embodiment 2
The present embodiment provides a kind of lensometer counting method using eyeglass counting mobile terminal, such as Fig. 2 institute
Show, comprise the steps.
S1: control the photographic head being arranged on the fuselage of mobile terminal, gather before passing sequentially through photographic head
The original image of the eyeglass of side.
Preferably, lensometer counting method, also include by start button, or taken the photograph by vice activation
As head gathers original image.
S2: original image is entered according to the angle of fuselage during camera collection original image with horizontal direction
Row correction.
Preferably, measure fuselage by the angular-rate sensor of mobile terminal to rotate and the angular velocity of deflection;
The rotation obtained according to angular-rate sensor and yaw rate, calculate camera collection original graph
Fuselage and the angle of horizontal direction during picture.
As a kind of preferred implementation of the present embodiment, step S2 includes: former according to camera collection
During beginning image, fuselage and the angle of horizontal direction, carry out angle equation conversion to original image.
S3: identify the lens image in the image after correction;Step S3, comprises the steps S31
And S32.
S31: according to Sobel Sobel edge edge detection algorithm, the image after correction is carried out rim detection.
S32: according to edge detection results, identify circular contour by Hough Hough transform, circular
Profile is as lens image.
S4: the number of statistics lens image.
As a kind of preferred implementation of the present embodiment, lensometer counting method, also include by movement
The number of the lens image of the display screen display statistics gained of terminal.Also include the eyeglass of statistics gained
The number transmission of image is to eyeglass management system or server.
Lensometer counting method, the image after also including by display screen display original image and/or correction.
Additionally, lensometer counting method, focal length when also including obtaining camera collection original image and/or
Image resolution ratio.
Preferably, eyeglass counting mobile terminal is smart mobile phone.
The lensometer counting method that the present embodiment provides, is gathered by photographic head front successively by photographic head
The original image of eyeglass, it is not necessary to user's naked eyes stare at eyeglass for a long time, thus avoid and thus produce
Eyestrain, ache, the situation such as shed tears, it is to avoid the ophthalmic diseases thus induced;According to shooting
When head gathers original image, original image is corrected by fuselage with the angle of horizontal direction, thus reduces
The difficulty of lens image identification, reduces operand;Automatically identify the eyeglass figure in the image after correction
As and add up the number of lens image, it is not necessary to the number of eyeglass, statistics speed in artificial statistics original image
Degree is fast, efficiency is high, and accuracy rate is higher, further avoid the error caused by anthropic factor.
Obviously, above-described embodiment is only for clearly demonstrating example, and not to embodiment party
The restriction of formula.For those of ordinary skill in the field, the most also may be used
To make other changes in different forms.Here without also all of embodiment being given
With exhaustive.And the obvious change thus extended out or variation are created still in this utility model
Protection domain among.