CN104688177A - Terminal-based pupil distance measuring method, pupil distance measuring device, server and pupil distance measuring system - Google Patents
Terminal-based pupil distance measuring method, pupil distance measuring device, server and pupil distance measuring system Download PDFInfo
- Publication number
- CN104688177A CN104688177A CN201410844299.9A CN201410844299A CN104688177A CN 104688177 A CN104688177 A CN 104688177A CN 201410844299 A CN201410844299 A CN 201410844299A CN 104688177 A CN104688177 A CN 104688177A
- Authority
- CN
- China
- Prior art keywords
- interpupillary distance
- face
- image
- distance measuring
- server
- 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
Links
Landscapes
- Image Analysis (AREA)
- Eye Examination Apparatus (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a terminal-based pupil distance measuring method, a pupil distance measuring device, a server and a pupil distance measuring system. The terminal-based pupil distance measuring method comprises steps as follows: a face image is acquired and sent to the server; the server performs pupil distance measuring calculation on the face image and acquires a pupil distance calculation result; the pupil distance calculation result sent by the server is received and displayed. According to the terminal-based pupil distance measuring method, the pupil distance measuring device, the server and the pupil distance measuring system, a user can perform pupil distance measurement by himself through the intelligent terminal, the method is simple to operate and free of cost, the device is convenient to carry, the user can detect the eyesight and measure pupil distances by himself whenever and wherever, and the method and the device have interestingness and participation property in the aspect of user experience and can be accepted easily.
Description
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of interpupillary distance measuring method based on terminal, interpupillary distance measuring device, server and system thereof.
Background technology
Sight protectio is the important component part of personal health, for the user needing to get the right lensses for one's eyeglasses, needs the parameters necessary carrying out interpupillary distance measurement to determine being correlated with, as the reference of joining mirror.Usually the conventional interpupillary distance measurement carried out needs to go to the mechanism of the specialty such as hospital, optician's shop to use the equipment of interpupillary distance tester specialty to measure in person.In addition, the distance between ruler and mirror rough measure two pupils can also oneself be used.Existing interpupillary distance measuring method cost is high, not easy to operate, needs spended time cost and distance costs, and can not detect whenever and wherever possible.
Summary of the invention
The invention provides a kind of interpupillary distance measuring method based on terminal, interpupillary distance measuring device, server and system thereof, high, not easy to operate for solving interpupillary distance measuring method cost of the prior art, need spended time cost and distance costs, and the problem that detects can not be carried out whenever and wherever possible.
A kind of interpupillary distance measuring method based on terminal provided by the invention, comprising:
Obtain face-image and be sent to server;
Described server carries out interpupillary distance survey calculation to described face-image and obtains interpupillary distance result of calculation;
Receive the described interpupillary distance result of calculation of described server transmission and represent.
Further, the step of described acquisition face-image specifically comprises:
Photographic head is utilized to take the face-image of user, or, read the face-image that user stores.
Further, describedly interpupillary distance survey calculation is carried out to described face-image and the step obtaining interpupillary distance result of calculation specifically comprises:
Facial recognition api interface is utilized to obtain left eye coordinates and the right eye coordinate of described face-image;
Mathematic interpolation according to described left eye coordinates and described right eye coordinate obtains described interpupillary distance result of calculation.
Further, described utilize facial recognition api interface to obtain described face-image left eye coordinates and the step of right eye coordinate specifically comprise:
Facial recognition api interface is utilized to obtain the face analysis result character string of described face-image;
Described face analysis result character string is resolved and the described left eye coordinates obtained wherein and described right eye coordinate.
A kind of interpupillary distance measuring device provided by the invention, comprising:
Sending module, for obtaining face-image and being sent to server; Described server carries out interpupillary distance survey calculation to described face-image and obtains interpupillary distance result of calculation;
Receiver module, for receiving the described interpupillary distance result of calculation of described server transmission and representing.
Further, interpupillary distance measuring device of the present invention also comprises:
Photographing module, for taking the face-image of user;
Read module, for reading the face-image that user stores.
A kind of server provided by the invention, comprising:
Computing module, for carrying out interpupillary distance survey calculation to face-image and obtaining interpupillary distance result of calculation.
Further, described computing module comprises:
Api interface module, for the left eye coordinates and the right eye coordinate that utilize facial recognition api interface to obtain described face-image;
Difference calculating module, for obtaining described interpupillary distance result of calculation according to the mathematic interpolation of described left eye coordinates and described right eye coordinate.
Further, described api interface module comprises:
Analysis result character string acquisition module, for the face analysis result character string utilizing facial recognition api interface to obtain described face-image;
Analysis result character string parsing module, for resolving and the described left eye coordinates obtained wherein and described right eye coordinate described face analysis result character string.
A kind of interpupillary distance measuring system provided by the invention, comprising: interpupillary distance measuring device of the present invention and server of the present invention.
Interpupillary distance measuring method based on terminal provided by the invention, interpupillary distance measuring device, server and system thereof, intelligent terminal is utilized to carry out self-interpupillary distance measurement, simple to operate, cost free, easy to carry, but all oneself carries out interpupillary distance measurement whenever and wherever possible, and Consumer's Experience have interest, property of participation, easily by recognition and acceptance.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings;
Fig. 1 is the schematic flow sheet of the interpupillary distance measuring method based on terminal of the embodiment of the present invention one;
Fig. 2 is the schematic flow sheet of the interpupillary distance measuring method based on terminal of the embodiment of the present invention two;
Fig. 3 is the schematic flow sheet of the interpupillary distance measuring method based on terminal of the embodiment of the present invention three;
Fig. 4 is the structural representation of the interpupillary distance measuring device of the embodiment of the present invention four;
Fig. 5 is the structural representation of the server of the embodiment of the present invention five;
Fig. 6 is the structural representation of the interpupillary distance measuring system of the embodiment of the present invention six.
Detailed description of the invention:
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.
Fig. 1 is the schematic flow sheet of the interpupillary distance measuring method based on terminal of the embodiment of the present invention one, and as shown in Figure 1, the interpupillary distance measuring method based on terminal of the embodiment of the present invention one, comprising:
Step S101, obtains face-image and is sent to server.
Particularly, terminal obtains the face-image in user front and is sent to server.
Step S102, described server carries out interpupillary distance survey calculation to described face-image and obtains interpupillary distance result of calculation.
Particularly, at server side, face analysis is carried out to user's shooting or the face-image uploaded.Face analysis can adopt FACE++, and the api interface (application programming interface, Application Programming Interface) utilizing it to provide carries out facial recognition, to obtain interpupillary distance.
Step S103, receives the described interpupillary distance result of calculation of described server transmission and represents.
Particularly, directly can show the interpupillary distance numerical value of standard at terminal screen, provide convenient for user joins mirror.
Fig. 2 is the schematic flow sheet of the interpupillary distance measuring method based on terminal of the embodiment of the present invention two, and as shown in Figure 2, the interpupillary distance measuring method based on terminal of the embodiment of the present invention two, comprising:
Step S201, utilizes photographic head to take the face-image of user, or, read the face-image that user stores, and be sent to server.
Alternatively, when utilizing photographic head to take the face-image of user, at terminal screen display box line, require that the face of oneself is positioned in frame line by user in shooting process, ensure the size conforms standard of face in shooting image.When reading the face-image of user's storage, the photo in mobile terminal photograph album can be read.
Step S202, utilizes facial recognition api interface to obtain left eye coordinates and the right eye coordinate of described face-image.
Step S203, the mathematic interpolation according to described left eye coordinates and described right eye coordinate obtains described interpupillary distance result of calculation.
Particularly, the coordinate difference of pupil of left eye and pupil of right eye can be used to obtain interpupillary distance.
Step S204, receives the described interpupillary distance result of calculation of described server transmission and represents.
Fig. 3 is the schematic flow sheet of the interpupillary distance measuring method based on terminal of the embodiment of the present invention three, and as shown in Figure 3, the interpupillary distance measuring method based on terminal of the embodiment of the present invention three, comprising:
Step S301, utilizes photographic head to take the face-image of user, or, read the face-image that user stores, and be sent to server;
Step S302, utilizes facial recognition api interface to obtain the face analysis result character string of described face-image;
Step S303, resolves and the described left eye coordinates obtained wherein and described right eye coordinate described face analysis result character string.
Particularly, the SDK of face++ (http://www.faceplusplus.com) is utilized to carry out, utilize the api interface that it provides, eye_left and the face analysis result character string with eye_right is obtained in class object, the left eye coordinates of the corresponding face of eye_left face analysis result string representation, x & y coordinate is illustrated respectively in the percentage ratio (real number between 0 ~ 100) of width in picture and height; The right eye coordinate of the corresponding face of eye_right face analysis result string representation, x & y coordinate is illustrated respectively in the percentage ratio (real number between 0 ~ 100) of width in picture and height, resolves face analysis result character string and can obtain corresponding content.
Step S304, the mathematic interpolation according to described left eye coordinates and described right eye coordinate obtains described interpupillary distance result of calculation;
Step S305, receives the described interpupillary distance result of calculation of described server transmission and represents.
Fig. 4 is the structural representation of the interpupillary distance measuring device of the embodiment of the present invention four, and as shown in Figure 4, the interpupillary distance measuring device 400 of the embodiment of the present invention four comprises:
Sending module 401, for obtaining face-image and being sent to server; Described server carries out interpupillary distance survey calculation to described face-image and obtains interpupillary distance result of calculation;
Receiver module 402, for receiving the described interpupillary distance result of calculation of described server transmission and representing.
Photographing module 403, for taking the face-image of user;
Read module 404, for reading the face-image that user stores.
Fig. 5 is the structural representation of the server of the embodiment of the present invention five, and as shown in Figure 5, the server 500 of the embodiment of the present invention five comprises:
Computing module 501, for carrying out interpupillary distance survey calculation to face-image and obtaining interpupillary distance result of calculation.
Described computing module 501 comprises:
Api interface module 5011, for the left eye coordinates and the right eye coordinate that utilize facial recognition api interface to obtain described face-image;
Difference calculating module 5012, for obtaining described interpupillary distance result of calculation according to the mathematic interpolation of described left eye coordinates and described right eye coordinate.
Described api interface module 5011 comprises:
Analysis result character string acquisition module 50111, for the face analysis result character string utilizing facial recognition api interface to obtain described face-image;
Analysis result character string parsing module 50112, for resolving and the described left eye coordinates obtained wherein and described right eye coordinate described face analysis result character string.
Fig. 6 is the structural representation of the interpupillary distance measuring system of the embodiment of the present invention six, and as shown in Figure 6, the interpupillary distance measuring system of the embodiment of the present invention six comprises: the interpupillary distance measuring device 400 shown in Fig. 4 of the present invention and the server shown in Fig. 5 of the present invention 500.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.
Claims (10)
1., based on an interpupillary distance measuring method for terminal, it is characterized in that, comprising:
Obtain face-image and be sent to server;
Described server carries out interpupillary distance survey calculation to described face-image and obtains interpupillary distance result of calculation;
Receive the described interpupillary distance result of calculation of described server transmission and represent.
2. interpupillary distance measuring method according to claim 1, is characterized in that, the step of described acquisition face-image specifically comprises:
Photographic head is utilized to take the face-image of user, or, read the face-image that user stores.
3. interpupillary distance measuring method according to claim 1, is characterized in that, describedly carries out interpupillary distance survey calculation to described face-image and the step obtaining interpupillary distance result of calculation specifically comprises:
Facial recognition api interface is utilized to obtain left eye coordinates and the right eye coordinate of described face-image;
Mathematic interpolation according to described left eye coordinates and described right eye coordinate obtains described interpupillary distance result of calculation.
4. interpupillary distance measuring method according to claim 3, is characterized in that, described utilize facial recognition api interface to obtain described face-image left eye coordinates and the step of right eye coordinate specifically comprise:
Facial recognition api interface is utilized to obtain the face analysis result character string of described face-image;
Described face analysis result character string is resolved and the described left eye coordinates obtained wherein and described right eye coordinate.
5. an interpupillary distance measuring device, is characterized in that, comprising:
Sending module, for obtaining face-image and being sent to server; Described server carries out interpupillary distance survey calculation to described face-image and obtains interpupillary distance result of calculation;
Receiver module, for receiving the described interpupillary distance result of calculation of described server transmission and representing.
6. interpupillary distance measuring device according to claim 5, is characterized in that, also comprise:
Photographing module, for taking the face-image of user;
Read module, for reading the face-image that user stores.
7. a server, is characterized in that, comprising:
Computing module, for carrying out interpupillary distance survey calculation to face-image and obtaining interpupillary distance result of calculation.
8. server according to claim 7, is characterized in that, described computing module comprises:
Api interface module, for the left eye coordinates and the right eye coordinate that utilize facial recognition api interface to obtain described face-image;
Difference calculating module, for obtaining described interpupillary distance result of calculation according to the mathematic interpolation of described left eye coordinates and described right eye coordinate.
9. server according to claim 8, is characterized in that, described api interface module comprises:
Analysis result character string acquisition module, for the face analysis result character string utilizing facial recognition api interface to obtain described face-image;
Analysis result character string parsing module, for resolving and the described left eye coordinates obtained wherein and described right eye coordinate described face analysis result character string.
10. an interpupillary distance measuring system, is characterized in that, comprising: the interpupillary distance measuring device described in claim 5 or 6 and the server described in claim 7-9 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410844299.9A CN104688177A (en) | 2014-12-26 | 2014-12-26 | Terminal-based pupil distance measuring method, pupil distance measuring device, server and pupil distance measuring system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410844299.9A CN104688177A (en) | 2014-12-26 | 2014-12-26 | Terminal-based pupil distance measuring method, pupil distance measuring device, server and pupil distance measuring system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104688177A true CN104688177A (en) | 2015-06-10 |
Family
ID=53336053
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410844299.9A Pending CN104688177A (en) | 2014-12-26 | 2014-12-26 | Terminal-based pupil distance measuring method, pupil distance measuring device, server and pupil distance measuring system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104688177A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105266756A (en) * | 2015-11-12 | 2016-01-27 | 小米科技有限责任公司 | Pupil distance measuring method, device and terminal |
CN109497925A (en) * | 2018-12-29 | 2019-03-22 | 上海理工大学 | Eye visual function evaluating apparatus and eye Evaluation of visual function |
CN109674443A (en) * | 2017-10-19 | 2019-04-26 | 华为终端(东莞)有限公司 | A kind of interpupillary distance measurement method and terminal |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2449855A (en) * | 2007-06-05 | 2008-12-10 | Steven Harbutt | System and method for measuring pupillary distance |
CN101474060A (en) * | 2008-10-14 | 2009-07-08 | 朱家亮 | System and method for measuring pupillary distance and papillary height of eye spots for far and near uses |
CN201689488U (en) * | 2010-06-03 | 2010-12-29 | 陈艳阳 | Self-service computerized network spectacle retailing machine |
EP2336964A1 (en) * | 2009-11-17 | 2011-06-22 | Nova Resources s.a.r.l. | Method and system for selecting eyeglass frames |
CN103793719A (en) * | 2014-01-26 | 2014-05-14 | 深圳大学 | Monocular distance-measuring method and system based on human eye positioning |
JP2014089304A (en) * | 2012-10-30 | 2014-05-15 | Xacti Corp | Viewpoint measuring device, and electronic equipment |
CN104068827A (en) * | 2014-06-25 | 2014-10-01 | 深圳市斯尔顿科技有限公司 | Self-service eye comprehensive detection method and detection equipment |
-
2014
- 2014-12-26 CN CN201410844299.9A patent/CN104688177A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2449855A (en) * | 2007-06-05 | 2008-12-10 | Steven Harbutt | System and method for measuring pupillary distance |
CN101474060A (en) * | 2008-10-14 | 2009-07-08 | 朱家亮 | System and method for measuring pupillary distance and papillary height of eye spots for far and near uses |
EP2336964A1 (en) * | 2009-11-17 | 2011-06-22 | Nova Resources s.a.r.l. | Method and system for selecting eyeglass frames |
CN201689488U (en) * | 2010-06-03 | 2010-12-29 | 陈艳阳 | Self-service computerized network spectacle retailing machine |
JP2014089304A (en) * | 2012-10-30 | 2014-05-15 | Xacti Corp | Viewpoint measuring device, and electronic equipment |
CN103793719A (en) * | 2014-01-26 | 2014-05-14 | 深圳大学 | Monocular distance-measuring method and system based on human eye positioning |
CN104068827A (en) * | 2014-06-25 | 2014-10-01 | 深圳市斯尔顿科技有限公司 | Self-service eye comprehensive detection method and detection equipment |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105266756A (en) * | 2015-11-12 | 2016-01-27 | 小米科技有限责任公司 | Pupil distance measuring method, device and terminal |
CN109674443A (en) * | 2017-10-19 | 2019-04-26 | 华为终端(东莞)有限公司 | A kind of interpupillary distance measurement method and terminal |
CN109674443B (en) * | 2017-10-19 | 2022-04-26 | 华为终端有限公司 | Pupil distance measuring method and terminal |
CN109497925A (en) * | 2018-12-29 | 2019-03-22 | 上海理工大学 | Eye visual function evaluating apparatus and eye Evaluation of visual function |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9236024B2 (en) | Systems and methods for obtaining a pupillary distance measurement using a mobile computing device | |
CN105718869B (en) | The method and apparatus of face face value in a kind of assessment picture | |
EP3128362B1 (en) | Method for determining a parameter of an optical equipment | |
US11534063B2 (en) | Interpupillary distance measuring method, wearable ophthalmic device and storage medium | |
CN104036169B (en) | Biological authentication method and biological authentication apparatus | |
CN108478184A (en) | Eyesight measurement method and device, VR equipment based on VR | |
KR101455200B1 (en) | Learning monitering device and method for monitering of learning | |
CN111010560B (en) | Anti-distortion adjusting method and device for head-mounted display equipment and virtual reality system | |
CN104765156B (en) | A kind of three-dimensional display apparatus and 3 D displaying method | |
KR20170128779A (en) | Measurement method and terminal | |
US20180031868A1 (en) | Spectacle wearing parameter measurement system, measurement program, measurement method thereof, and manufacturing method of spectacle lens | |
JP2015522189A5 (en) | ||
CN111512217B (en) | Method for determining an optical parameter of an ophthalmic lens | |
US9619707B2 (en) | Gaze position estimation system, control method for gaze position estimation system, gaze position estimation device, control method for gaze position estimation device, program, and information storage medium | |
CN104688177A (en) | Terminal-based pupil distance measuring method, pupil distance measuring device, server and pupil distance measuring system | |
KR20120005631U (en) | Cosmetics expiry date indication and A makeup coordination function for Mobile communications terminal | |
CN109615360A (en) | A kind of encoding of graphs methods of exhibiting and device | |
CN114910052A (en) | Camera-based distance measurement method, control method and device and electronic equipment | |
TWI603225B (en) | Viewing angle adjusting method and apparatus of liquid crystal display | |
JP2015015031A (en) | Advertising effect measurement server, advertising effect measurement system, and program | |
Maneli et al. | A multifactor comparative assessment of augmented reality frameworks in diverse computing settings | |
KR101331055B1 (en) | Visual aid system based on the analysis of visual attention and visual aiding method for using the analysis of visual attention | |
CN104932101A (en) | Head-mounted display device | |
KR20150069739A (en) | Method measuring fish number based on stereovision and pattern recognition system adopting the same | |
JP2020135737A (en) | Gaze action search system, and control program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150610 |
|
RJ01 | Rejection of invention patent application after publication |