CN105444678A - Handset size measurement method and system - Google Patents

Handset size measurement method and system Download PDF

Info

Publication number
CN105444678A
CN105444678A CN201510760102.8A CN201510760102A CN105444678A CN 105444678 A CN105444678 A CN 105444678A CN 201510760102 A CN201510760102 A CN 201510760102A CN 105444678 A CN105444678 A CN 105444678A
Authority
CN
China
Prior art keywords
length
mobile phone
width
pixel value
reference body
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
Application number
CN201510760102.8A
Other languages
Chinese (zh)
Other versions
CN105444678B (en
Inventor
余卫宇
廖伟权
孙宇飞
钱少惠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUANGZHOU EPBOX INFORMATION TECHNOLOGY Co.,Ltd.
Original Assignee
Foshan Lyuyi Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Foshan Lyuyi Information Technology Co Ltd filed Critical Foshan Lyuyi Information Technology Co Ltd
Priority to CN201510760102.8A priority Critical patent/CN105444678B/en
Publication of CN105444678A publication Critical patent/CN105444678A/en
Application granted granted Critical
Publication of CN105444678B publication Critical patent/CN105444678B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • G01B11/028Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness by measuring lateral position of a boundary of the object

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Image Analysis (AREA)

Abstract

The invention relates to a handset size measurement method and system. The method comprises the steps of acquiring the image of a reference object, acquiring the length pixel value and the width pixel value of the reference object according to the image of the reference object, measuring the length and the width of the reference object, acquiring the length ratio coefficient according to the length pixel value of the reference object and the length of the reference object, acquiring the width ratio coefficient according to the width pixel value of the reference object and the width of the reference object, acquiring the image of a to-be-measured handset in the image shooting environment of the reference object, acquiring the length pixel value and the width pixel value of the to-be-measured handset according to the image of the to-be-measured handset, acquiring the length of the to-be-measured handset according to the length pixel value of the to-be-measured handset and the length ratio coefficient, and acquiring the width of the to-be-measured handset according to the width pixel value of the to-be-measured handset and the width ratio coefficient. According to the technical scheme of the invention, the size of the to-be-measured handset can be measured through the scaling operation. Therefore, the method and the system are low in cost and high in measurement precision.

Description

Handset size measuring method and system
Technical field
The present invention relates to mobile device technical field, particularly relate to a kind of handset size measuring method and system.
Background technology
For the measurement of the full-size(d) of object, traditional method is normally: adopt camera recognition object image, measure the size of the object image identified, measure distance between object and camera, and utilize the characteristic (such as focal length) of the size of object image, the distance between object and camera and camera, calculate the full-size(d) of object.
Traditional this employing similar rule method is generally applicable to the full-size(d) measuring relatively large object, for fined object such as mobile phones, easily there is measuring error, causes measuring accuracy low; And traditional dimension measurement method needs to use distance measuring sensor, increases cost.
Summary of the invention
Based on this, be necessary for the problems referred to above, provide a kind of measuring accuracy high and the handset size measuring method reduced costs and system.
A kind of handset size measuring method, comprises the steps:
Obtain the image of reference body, the length pixel value of reference body and the width pixel value of described reference body according to the Image Acquisition of described reference body;
Measure the length of described reference body and the width of described reference body, obtain length ratio coefficient according to the length pixel value of described reference body and the length of described reference body, obtain width ratio coefficient according to the width pixel value of described reference body and the width of described reference body;
Obtain described reference body image shooting environmental under, obtain the image of tested mobile phone, and according to the Image Acquisition of described tested mobile phone the length pixel value of tested mobile phone and the width pixel value of described tested mobile phone;
Obtain the length of described tested mobile phone according to the length pixel value of described tested mobile phone and described length ratio coefficient, obtain the width of described tested mobile phone according to the width pixel value of described tested mobile phone and described width ratio coefficient.
A kind of handset size measuring system, comprising:
First pixel value acquisition module, for obtaining the image of reference body, the length pixel value of reference body and the width pixel value of described reference body according to the Image Acquisition of described reference body;
Scale-up factor computing module, for the width of the length and described reference body of measuring described reference body, obtain length ratio coefficient according to the length pixel value of described reference body and the length of described reference body, obtain width ratio coefficient according to the width pixel value of described reference body and the width of described reference body;
Second pixel value acquisition module, for obtain described reference body image shooting environmental under, obtain the image of tested mobile phone, and according to the Image Acquisition of described tested mobile phone the length pixel value of tested mobile phone and the width pixel value of described tested mobile phone;
Size computing module, for obtaining the length of described tested mobile phone according to the length pixel value of described tested mobile phone and described length ratio coefficient, obtain the width of described tested mobile phone according to the width pixel value of described tested mobile phone and described width ratio coefficient.
Above-mentioned handset size measuring method and system, according to length pixel value and the width pixel value of the Image Acquisition reference body of the reference body obtained, length ratio coefficient and width ratio coefficient is obtained respectively according to the length of reference body measured and the length pixel value of width and reference body and width pixel value, according to the length pixel value of the tested mobile phone of Image Acquisition and the width pixel value of tested mobile phone of the tested mobile phone obtained, then in conjunction with length ratio coefficient, width ratio coefficient, the length pixel value of tested mobile phone and the width pixel value of tested mobile phone, obtain length and the width of tested mobile phone respectively.Do not need to use by adoption rate computing the size that range sensor can measure tested mobile phone, cost is low and measuring accuracy is higher.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of handset size measuring method in one embodiment of the invention;
Fig. 2 is the process flow diagram according to the length pixel value of the tested mobile phone of the Image Acquisition of tested mobile phone and the width pixel value of tested mobile phone in an embodiment;
Fig. 3 is the process flow diagram obtaining the first length line on first direction in an embodiment according to mobile phone profile;
Fig. 4 is the module map of handset size measuring system in one embodiment of the invention;
Fig. 5 is the concrete unit figure of the second pixel value acquisition module in an embodiment;
Fig. 6 is the subelement figure of edge line detection unit in an embodiment.
Embodiment
With reference to figure 1, the handset size measuring method in one embodiment of the invention, comprises the following steps.
S110: the image obtaining reference body, according to the length pixel value of the Image Acquisition reference body of reference body and the width pixel value of reference body.
Reference body is used for as reference measurement, and the image of reference body can be obtained by image taking instrument, such as camera.The length pixel value of reference body and width pixel value refer to the length direction straight line of the image of reference body and the pixel value of Width line correspondences respectively.
S130: the length of measuring basis object and the width of reference body, obtains length ratio coefficient according to the length pixel value of reference body and the length of reference body, obtains width ratio coefficient according to the width pixel value of reference body and the width of reference body.
Wherein in an embodiment, reference body is reference handset, and the length of reference body and the width of reference body are the button of removing reference handset and the length measured by antenna and width.Therefore, according to the length ratio coefficient that the length pixel value of reference handset and the length of reference handset obtain, and according to the width ratio coefficient that the width pixel value of reference handset and the width of reference handset obtain, be the scale-up factor beyond removing button and size, so that follow-up length for calculating the tested mobile phone taken out beyond button and antenna and width.
Particularly, in the present embodiment, vernier caliper measurement can be adopted to remove length and the width of the reference handset beyond button and antenna.
S150: under the shooting environmental of image obtaining reference body, obtain the image of tested mobile phone, and according to the length pixel value of the tested mobile phone of the Image Acquisition of tested mobile phone and the width pixel value of tested mobile phone.
Shooting environmental refers to the photoenvironment etc. when adopting video camera shooting reference body.Under the same shooting environmental obtaining reference body, obtain the image of tested mobile phone, thus the length ratio coefficient obtained according to the related data of reference body and width ratio coefficient are equally applicable to tested mobile phone, and accuracy is higher.
S170: the length obtaining tested mobile phone according to the length pixel value of tested mobile phone and length ratio coefficient, obtains the width of tested mobile phone according to the width pixel value of tested mobile phone and width ratio coefficient.After the width pixel value of the length pixel value and tested mobile phone that obtain tested mobile phone, directly can calculate length and the width of tested mobile phone according to the length ratio coefficient obtained in step S130 and width ratio coefficient.
Above-mentioned handset size measuring method, according to length pixel value and the width pixel value of the Image Acquisition reference body of the reference body obtained, length ratio coefficient and width ratio coefficient is obtained respectively according to the length of reference body measured and the length pixel value of width and reference body and width pixel value, according to the length pixel value of the tested mobile phone of Image Acquisition and the width pixel value of tested mobile phone of the tested mobile phone obtained, then combine, length ratio coefficient, width ratio coefficient, the length pixel value of tested mobile phone and the width pixel value of tested mobile phone, obtain length and the width of tested mobile phone respectively.This handset size measuring method adoption rate computing and do not need to use the size that range sensor can measure tested mobile phone, cost is low and measuring accuracy is higher.
Wherein in an embodiment, according to the length pixel value of the Image Acquisition reference body of reference body and the width pixel value of reference body in step S110, can be specifically choose a maximum rectangle according to the image of reference body, obtain the longest straight line of the length direction of maximum rectangle and the straight line of Width, and detect the length pixel value of the longest straight line of length direction and the width pixel value of the longest straight line of Width respectively.
Wherein in an embodiment, in step S130, obtain length ratio coefficient according to the length pixel value of reference body and the length of reference body, obtain width ratio coefficient according to the width pixel value of reference body and the width of reference body, be specially:
k 1 = N 1 L 1 ;
k 2 = N 2 L 2 ;
Wherein, k 1for length ratio coefficient, k 2for width ratio coefficient, N 1for the length pixel value of reference body, L 1for the length of reference body, N 2for the width pixel value of reference body, L 2for the width of reference body.
Wherein in an embodiment, with reference to figure 2, according to the length pixel value of the tested mobile phone of the Image Acquisition of tested mobile phone and the width pixel value of tested mobile phone in step S150, comprise step S151 to step S155.
S151: the image rotating tested mobile phone, makes the image of tested mobile phone mate default rectangular coordinate system in a first direction and a second direction, and searches mobile phone profile.
The rectangular coordinate system that coupling is preset, the image referring to rotate tested mobile phone makes a lateral edges of tested mobile phone parallel with first direction, and opposite side edge is parallel with second direction.Such as, in the present embodiment, the rectangular coordinate preset to be inclination angle be zero rectangular coordinate system, first direction is horizontal direction, and second direction is vertical direction, therefore, is also the placement of horizontal vertical direction after the image rotation of tested mobile phone.Be appreciated that in other embodiments, the rectangular coordinate system of the rectangular coordinate system preset also can be inclination angle be other numerical value.
On the image that mobile phone profile refers to tested mobile phone, the image of corresponding mobile phone position part, can be the background parts getting rid of edge after carrying out binary conversion treatment to the image of tested mobile phone, search mobile phone profile.
S153: obtain the first length line on first direction according to mobile phone profile, obtains the second length line in second direction according to mobile phone profile.
First length line refers to mobile phone profile the longest straight line in a first direction, may be used for the length representing first direction; Second length line refers to mobile phone profile the longest straight line in a second direction, may be used for the length representing second direction.
S155: obtain the length pixel value of tested mobile phone and the width pixel value of tested mobile phone according to the first length line and the second length line.
In the present embodiment, step S155 is specially: choose straight line that in the first length line and the second length line, length the is longer length line as tested mobile phone, then another straight line is as the wide line of tested mobile phone.
Length line and the wide line of tested mobile phone is obtained according to the first length line and the second length line, first length line and the second length line choose the button, antenna etc. that can remove tested mobile phone, therefore the length pixel value that the length line finally obtained is corresponding and width pixel value corresponding to wide line are removes button, antenna, and result of calculation is more accurate.
Wherein in an embodiment, with reference to figure 3, obtain the first length line on first direction according to mobile phone profile in step S153, specifically can comprise step S1531 to step S1537.
S1531: the outer most edge straight line searching the first direction side of mobile phone profile.
Such as, first direction is horizontal direction, and with the left side of the horizontal direction of mobile phone profile for starting point, the outer most edge straight line of mobile phone profile is searched in movement to the right.
S1533: judge whether outer most edge straight line meets programmable button length range.If so, then can think that the outer most edge straight line found is button, perform step S1535.
Programmable button length range refers to meet the condition by key length, specifically can arrange according to actual conditions.
S1535: search the consult straight line the shortest with the spacing of outer most edge straight line.
Consult straight line is straight line the most adjacent with outer most edge straight line in a first direction.
S1537: judge whether consult straight line meets and preset length and width scope.If so, then step S1538 is performed.
Preset length and width scope and refer to the condition meeting mobile phone length and width, specifically can arrange according to the large probable value of handset size.
S1538: judge whether the distance between outer most edge straight line and consult straight line meets predeterminable range scope.If so, step S1539 is performed.
Predeterminable range scope is the distance between the button of definition and the first length line, can arrange according to actual conditions.
S1539: choosing consult straight line is the first length line.
Search the first length line by the judgement of multiple condition, choosing of straight line can be avoided to be subject to noise effect, improve the accuracy that line segment is searched.Particularly, in the present embodiment, the specific procedure obtaining the first length line on first direction according to mobile phone profile is as follows:
Analyze from outermost straight line, perform first and judge operation: judge whether outer most edge straight line L1 meets programmable button length range T1, if so, then perform second and judge operation; If not, search from secondary outside straight line, until find the outer most edge straight line meeting programmable button length range T1, if the straight line having traveled through side does not find the straight line meeting programmable button length range T1, then perform second and judge operation.
Second judges operation: judge whether the consult straight line L2 length the most adjacent with outer most edge straight line meets and preset length and width scope T2, if, then perform the 3rd and judge operation, if not, then judge that whether the length of consult straight line L2 is too small or excessive, judge that whether the length of consult straight line L2 is similar to the length of outer most edge straight line L1.If consult straight line L2 is too small or excessive, then thinks consult straight line L2 noise, give up consult straight line L2, return the second judgement operation, search the secondary adjacent straight line with outer most edge straight line.If whether the length of consult straight line L2 is similar to the length of outer most edge straight line L1, then think that consult straight line L2 is button, give up outer most edge straight line L1, and return the first judgement operation.
3rd judges operation: judge that the distance of outer most edge straight line L1 and consult straight line L2 meets predeterminable range scope T3.If so, then Output rusults: consult straight line L2 is the first length line; If not, then judge that outer most edge straight line L1 is as noise, record consult straight line L2, performs the 4th and judges operation.
Perform the 4th to judge to operate: judge whether consult straight line L2 side has straight line L3 that length is with it similar and distance T4 ten points is close.If so, Output rusults: a new position is found according to the weight of 2:1 in the position of consult straight line L2 and straight line L3.If not, then the straight line L4 whether meeting default length and width scope T2 in the scope T5 inside consult straight line L2 is in addition detected.If meet the straight line L4 of default length and width scope T2 in the scope T5 inside consult straight line L2 in addition, then output error: cannot determine which bar is mobile phone edge on earth, recording the position of consult straight line L2 and straight line L4, by judging that the close call of opposite side makes a decision, performing additional step again; If do not meet the straight line L4 of default length and width scope T2 in the scope T5 inside consult straight line L2, then Output rusults: consult straight line L2 is the first length line.
Additional step: the position of searching the outer most edge straight line L5 of opposite side, compares the distance of L5 and consult straight line L2, straight line L4, if one of them is excessive, beyond the scope of length and width, then give up, if two all in scope, then exporting consult straight line L2 and straight line L4 is the first length line.
Obtain the concrete steps of the second length line in second direction according to mobile phone profile in step S153, similar to the step obtaining the first length line on first direction according to mobile phone profile, do not repeat at this.
Be in the embodiment of reference handset at reference body, according to similar according to the concrete steps S151-step S155 of the length pixel value of the tested mobile phone of the Image Acquisition of tested mobile phone and the width pixel value of tested mobile phone in the concrete steps of the length pixel value of the Image Acquisition reference body of reference body and the width pixel value of reference body and step S150 in step S110, do not repeat at this.
Wherein in an embodiment, step S170 is specially:
l e n g t h = N _ l e n g t h k 1 ;
w i d t h = N _ w i d t h k 2 ;
Wherein, length is the length of tested mobile phone, and width is the width of tested mobile phone, and N_length is the length pixel value of tested mobile phone, and N_width is the width pixel value of tested mobile phone, k 1for length ratio coefficient, k 2for width ratio coefficient.
Be benchmark by the scale-up factor obtained with reference body measurement, calculate length and the width of tested mobile phone, do not need the size can measuring mobile phone by other external units, reduce and measure cost and measuring accuracy is higher.
With reference to figure 4, the handset size measuring system in one embodiment of the invention, comprises the first pixel value acquisition module 110, scale-up factor computing module 130, second pixel value acquisition module 150 and size computing module 170.
First pixel value acquisition module 110 for obtaining the image of reference body, according to the length pixel value of the Image Acquisition reference body of reference body and the width pixel value of reference body.
Reference body is used for as reference measurement, and the image of reference body can be obtained by image taking instrument, such as camera.The length pixel value of reference body and width pixel value refer to the length direction straight line of the image of reference body and the pixel value of Width line correspondences respectively.
The length of scale-up factor computing module 130 for measuring basis object and the width of reference body, obtain length ratio coefficient according to the length pixel value of reference body and the length of reference body, obtain width ratio coefficient according to the width pixel value of reference body and the width of reference body.
Wherein in an embodiment, reference body is reference handset, and the length of reference body and the width of reference body are the button of removing reference handset and the length measured by antenna and width.Therefore, according to the length ratio coefficient that the length pixel value of reference handset and the length of reference handset obtain, and according to the width ratio coefficient that the width pixel value of reference handset and the width of reference handset obtain, be the scale-up factor beyond removing button and size, so that follow-up length for calculating the tested mobile phone taken out beyond button and antenna and width.
Particularly, in the present embodiment, vernier caliper measurement can be adopted to remove length and the width of the reference handset beyond button and antenna.
Second pixel value acquisition module 150, under the shooting environmental of image obtaining reference body, obtains the image of tested mobile phone, and according to the length pixel value of the tested mobile phone of the Image Acquisition of tested mobile phone and the width pixel value of tested mobile phone.
Shooting environmental refers to the photoenvironment etc. when adopting video camera shooting reference body.Under the same shooting environmental obtaining reference body, obtain the image of tested mobile phone, thus the length ratio coefficient obtained according to the related data of reference body and width ratio coefficient are equally applicable to tested mobile phone, and accuracy is higher.
Size computing module 170, for obtaining the length of tested mobile phone according to the length pixel value of tested mobile phone and length ratio coefficient, obtains the width of tested mobile phone according to the width pixel value of tested mobile phone and width ratio coefficient.After the width pixel value of the length pixel value and tested mobile phone that obtain tested mobile phone, directly can calculate length and the width of tested mobile phone according to the length ratio coefficient obtained in scale-up factor computing module 130 and width ratio coefficient.
Above-mentioned handset size measuring system, first pixel value acquisition module 110 is according to the length pixel value of the Image Acquisition reference body of the reference body obtained and width pixel value, scale-up factor computing module 130 obtains length ratio coefficient and width ratio coefficient respectively according to the length of reference body measured and the length pixel value of width and reference body and width pixel value, second pixel value acquisition module 150 is according to the length pixel value of the tested mobile phone of Image Acquisition of the tested mobile phone obtained and the width pixel value of tested mobile phone, size computing module 170 is in conjunction with length ratio coefficient, the length pixel value of the tested mobile phone of width ratio coefficient and the width pixel value of tested mobile phone, obtain length and the width of tested mobile phone respectively.Do not need to use by adoption rate computing the size that range sensor can measure tested mobile phone, cost is low and measuring accuracy is higher.
Wherein in an embodiment, according to the length pixel value of the Image Acquisition reference body of reference body and the width pixel value of reference body in first pixel value acquisition module 110, can be specifically choose a maximum rectangle according to the image of reference body, obtain the longest straight line of the length direction of maximum rectangle and the straight line of Width, and detect the length pixel value of the longest straight line of length direction and the width pixel value of the longest straight line of Width respectively.
Wherein in an embodiment, scale-up factor computing module 130 basis:
k 1 = N 1 L 1 ;
k 2 = N 2 L 2 ;
Obtain length ratio coefficient and width ratio coefficient, wherein, k 1for length ratio coefficient, k 2for width ratio coefficient, N 1for the length pixel value of reference body, L 1for the length of reference body, N 2for the width pixel value of reference body, L 2for the width of reference body.
Wherein in an embodiment, with reference to figure 5, the second pixel value acquisition module 150 comprises image acquisition unit 151, image rotation unit 153, edge line detection unit 155 and pixel value acquiring unit 157.
Image acquisition unit 151, under the shooting environmental of image obtaining reference body, obtains the image of reference handset.
Image rotation unit 153, for rotating the image of tested mobile phone, making the image of tested mobile phone mate default rectangular coordinate system in a first direction and a second direction, and searching mobile phone profile.
The rectangular coordinate system that coupling is preset, the image referring to rotate tested mobile phone makes a lateral edges of tested mobile phone parallel with first direction, and opposite side edge is parallel with second direction.Such as, in the present embodiment, the rectangular coordinate preset to be inclination angle be zero rectangular coordinate system, first direction is horizontal direction, and second direction is vertical direction, therefore, is also the placement of horizontal vertical direction after the image rotation of tested mobile phone.Be appreciated that in other embodiments, the rectangular coordinate system of the rectangular coordinate system preset also can be inclination angle be other numerical value.
On the image that mobile phone profile refers to tested mobile phone, the image of corresponding mobile phone position part, can be the background parts getting rid of edge after carrying out binary conversion treatment to the image of tested mobile phone, search mobile phone profile.
Edge line detection unit 155, for obtaining the first length line on first direction according to mobile phone profile, obtains the second length line in second direction according to mobile phone profile.
First length line refers to mobile phone profile the longest outermost straight line in a first direction, may be used for the length representing first direction; Second length line refers to mobile phone profile the longest outermost straight line in a second direction, may be used for the length representing second direction.
Pixel value acquiring unit 157 is for obtaining the length pixel value of tested mobile phone and the width pixel value of tested mobile phone according to the first length line and the second length line.
In the present embodiment, pixel value acquiring unit 157 specifically chooses straight line that in the first length line and the second length line, length the is longer length line as tested mobile phone, then another straight line is as the wide line of tested mobile phone.
Length line and the wide line of tested mobile phone is obtained according to the first length line and the second length line, first length line and the second length line choose the button, antenna etc. that can remove tested mobile phone, therefore the length pixel value that the length line finally obtained is corresponding and width pixel value corresponding to wide line are removes button, antenna, and result of calculation is more accurate.
Wherein in an embodiment, with reference to figure 6, edge line detection unit 155 comprises that outer most edge straight line searches subelement 1551, first scope judgment sub-unit 1552, consult straight line searches subelement 1553, second scope judgment sub-unit 1554, the 3rd scope judgment sub-unit 1555, first length line chooses subelement 1556 and the second length line detection sub-unit 1557.
Outer most edge straight line searches subelement 1551, for searching the outer most edge straight line of the first direction side of mobile phone profile.Such as, first direction is horizontal direction, and with the left side of the horizontal direction of mobile phone profile for starting point, the outer most edge straight line of mobile phone profile is searched in movement to the right.
First scope judgment sub-unit 1552 is for judging whether outer most edge straight line meets programmable button length range.Programmable button length range refers to meet the condition by key length, specifically can arrange according to actual conditions.
Consult straight line searches subelement 1553 for when outer most edge straight line meets programmable button length range, searches the consult straight line the shortest with the spacing of outer most edge straight line.Consult straight line is the straight line the most adjacent with outer most edge straight line.
Second scope judgment sub-unit 1554 presets length and width scope for judging whether consult straight line meets.Preset length and width scope and refer to the condition meeting mobile phone length and width, specifically can arrange according to the large probable value of handset size.
When 3rd scope judgment sub-unit 1555 presets length and width scope for meeting at consult straight line, judge whether the distance between outer most edge straight line and consult straight line meets predeterminable range scope.Predeterminable range scope is the distance between the button of definition and the first length line, can arrange according to actual conditions.
It is the first length line that first length line chooses subelement 1556 for choosing consult straight line.
Search the first length line by the judgement of multiple condition, choosing of straight line can be avoided to be subject to noise effect, improve the accuracy that line segment is searched.Particularly, in the present embodiment, the specific procedure obtaining the first length line on first direction according to mobile phone profile is as follows:
Analyze from outermost straight line, perform first and judge operation: judge whether outer most edge straight line L1 meets programmable button length range T1, if so, then perform second and judge operation; If not, search from secondary outside straight line, until find the outer most edge straight line meeting programmable button length range T1, if the straight line having traveled through side does not find the straight line meeting programmable button length range T1, then perform second and judge operation.
Second judges operation: judge whether the consult straight line L2 length the most adjacent with outer most edge straight line meets and preset length and width scope T2, if, then perform the 3rd and judge operation, if not, then judge that whether the length of consult straight line L2 is too small or excessive, judge that whether the length of consult straight line L2 is similar to the length of outer most edge straight line L1.If consult straight line L2 is too small or excessive, then thinks consult straight line L2 noise, give up consult straight line L2, return the second judgement operation, search the secondary adjacent straight line with outer most edge straight line.If whether the length of consult straight line L2 is similar to the length of outer most edge straight line L1, then think that consult straight line L2 is button, give up outer most edge straight line L1, and return the first judgement operation.
3rd judges operation: judge that the distance of outer most edge straight line L1 and consult straight line L2 meets predeterminable range scope T3.If so, then Output rusults: consult straight line L2 is the first length line; If not, then judge that outer most edge straight line L1 is as noise, record consult straight line L2, performs the 4th and judges operation.
Perform the 4th to judge to operate: judge whether consult straight line L2 side has straight line L3 that length is with it similar and distance T4 ten points is close.If so, Output rusults: a new position is found according to the weight of 2:1 in the position of consult straight line L2 and straight line L3.If not, then the straight line L4 whether meeting default length and width scope T2 in the scope T5 inside consult straight line L2 is in addition detected.If meet the straight line L4 of default length and width scope T2 in the scope T5 inside consult straight line L2 in addition, then output error: cannot determine which bar is mobile phone edge on earth, recording the position of consult straight line L2 and straight line L4, by judging that the close call of opposite side makes a decision, performing additional step again; If do not meet the straight line L4 of default length and width scope T2 in the scope T5 inside consult straight line L2, then Output rusults: consult straight line L2 is the first length line.
Additional step: the position of searching the outer most edge straight line L5 of opposite side, compares the distance of L5 and consult straight line L2, straight line L4, if one of them is excessive, beyond the scope of length and width, then give up, if two all in scope, then exporting consult straight line L2 and straight line L4 is the first length line.
Second length line detection sub-unit 1557 is for obtaining the second length line in second direction according to mobile phone profile.Particularly, in the present embodiment, the concrete steps that second length line detection sub-unit 1557 obtains the second length line, to by performing, outer most edge straight line searches subelement 1551, first scope judgment sub-unit 1552, consult straight line is searched function that subelement 1553, second scope judgment sub-unit 1554, the 3rd scope judgment sub-unit 1555 and the first length line choose subelement 1556 to obtain the step of the first length line on first direction similar, do not repeat at this.
Be in the embodiment of reference handset at reference body, to obtain the length pixel value of tested mobile phone similar with the method for the width pixel value of tested mobile phone by performing image rotation unit 153, edge line detection unit 155 and the function of pixel value acquiring unit 157 for the method that first pixel value acquisition module 110 adopts according to the length pixel value of the Image Acquisition reference body of reference body and the width pixel value of reference body and the second pixel value acquisition module 150, do not repeat at this.
Wherein in an embodiment, size computing module 170 basis:
l e n g t h = N _ l e n g t h k 1 ;
w i d t h = N _ w i d t h k 2 ;
Obtain the length of tested mobile phone and the width of tested mobile phone, wherein, length is the length of tested mobile phone, and width is the width of tested mobile phone, and N_length is the length pixel value of tested mobile phone, and N_width is the width pixel value of tested mobile phone, k 1for length ratio coefficient, k 2for width ratio coefficient.
Be benchmark by the scale-up factor obtained with reference body measurement, calculate length and the width of tested mobile phone, do not need the size can measuring mobile phone by other external units, reduce and measure cost and measuring accuracy is higher.
Each technical characteristic of the above embodiment can combine arbitrarily, for making description succinct, the all possible combination of each technical characteristic in above-described embodiment is not all described, but, as long as the combination of these technical characteristics does not exist contradiction, be all considered to be the scope that this instructions is recorded.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be construed as limiting the scope of the patent.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (10)

1. a handset size measuring method, is characterized in that, comprises the steps:
Obtain the image of reference body, the length pixel value of reference body and the width pixel value of described reference body according to the Image Acquisition of described reference body;
Measure the length of described reference body and the width of described reference body, obtain length ratio coefficient according to the length pixel value of described reference body and the length of described reference body, obtain width ratio coefficient according to the width pixel value of described reference body and the width of described reference body;
Obtain described reference body image shooting environmental under, obtain the image of tested mobile phone, and according to the Image Acquisition of described tested mobile phone the length pixel value of tested mobile phone and the width pixel value of described tested mobile phone;
Obtain the length of described tested mobile phone according to the length pixel value of described tested mobile phone and described length ratio coefficient, obtain the width of described tested mobile phone according to the width pixel value of described tested mobile phone and described width ratio coefficient.
2. handset size measuring method according to claim 1, is characterized in that, described according to the Image Acquisition of described tested mobile phone the length pixel value of tested mobile phone and the width pixel value of described tested mobile phone, comprising:
Rotate the image of described tested mobile phone, make the image of described tested mobile phone mate default rectangular coordinate system in a first direction and a second direction, and search mobile phone profile;
Obtain the first length line on described first direction according to described mobile phone profile, obtain the second length line in described second direction according to described mobile phone profile;
The length pixel value of described tested mobile phone and the width pixel value of described tested mobile phone is obtained according to described first length line and described second length line.
3. handset size measuring method according to claim 2, is characterized in that, described the first length line obtained according to described mobile phone profile on described first direction, comprising:
Search the outer most edge straight line of the described first direction side of described mobile phone profile;
Judge whether described outer most edge straight line meets programmable button length range;
If so, the consult straight line the shortest with the spacing of described outer most edge straight line is searched;
Judge whether described consult straight line meets and preset length and width scope;
If described consult straight line meets described default length and width scope, judge whether the distance between described outer most edge straight line and described consult straight line meets predeterminable range scope;
If so, choosing described consult straight line is described first length line.
4. handset size measuring method according to claim 1, it is characterized in that, described reference body is reference handset, and the length of described reference body and the width of described reference body are the button of the described reference handset of removing and the length measured by antenna and width.
5. handset size measuring method according to claim 1, it is characterized in that, describedly obtain length ratio coefficient according to the length pixel value of described reference body and the length of described reference body, obtain width ratio coefficient according to the width pixel value of described reference body and the width of described reference body, be specially:
k 1 = N 1 L 1 ;
k 2 = N 2 L 2 ;
Wherein, k 1for described length ratio coefficient, k 2for described width ratio coefficient, N 1for the length pixel value of described reference body, L 1for the length of described reference body, N 2for the width pixel value of described reference body, L 2for the width of described reference body.
6. handset size measuring method according to claim 1, it is characterized in that, the described length pixel value according to described tested mobile phone and described length ratio coefficient obtain the length of described tested mobile phone, obtain the width of described tested mobile phone according to the width pixel value of described tested mobile phone and described width ratio coefficient, be specially:
l e n g t h = N _ l e n g t h k 1 ;
w i d t h = N _ w i d t h k 2 ;
Wherein, length is the length of described tested mobile phone, and width is the width of described tested mobile phone, and N_length is the length pixel value of described tested mobile phone, and N_width is the width pixel value of described tested mobile phone, k 1for described length ratio coefficient, k 2for described width ratio coefficient.
7. a handset size measuring system, is characterized in that, comprising:
First pixel value acquisition module, for obtaining the image of reference body, the length pixel value of reference body and the width pixel value of described reference body according to the Image Acquisition of described reference body;
Scale-up factor computing module, for the width of the length and described reference body of measuring described reference body, obtain length ratio coefficient according to the length pixel value of described reference body and the length of described reference body, obtain width ratio coefficient according to the width pixel value of described reference body and the width of described reference body;
Second pixel value acquisition module, for obtain described reference body image shooting environmental under, obtain the image of tested mobile phone, and according to the Image Acquisition of described tested mobile phone the length pixel value of tested mobile phone and the width pixel value of described tested mobile phone;
Size computing module, for obtaining the length of described tested mobile phone according to the length pixel value of described tested mobile phone and described length ratio coefficient, obtain the width of described tested mobile phone according to the width pixel value of described tested mobile phone and described width ratio coefficient.
8. handset size measuring system according to claim 7, is characterized in that, described second pixel value acquisition module comprises:
Image acquisition unit, under the shooting environmental of image obtaining described reference body, obtains the image of tested mobile phone;
Image rotation unit, for rotating the image of described tested mobile phone, making the image of described tested mobile phone mate default rectangular coordinate system in a first direction and a second direction, and searching mobile phone profile;
Edge line detection unit, for obtaining the first length line on described first direction according to described mobile phone profile, obtains the second length line in described second direction according to described mobile phone profile;
Pixel value acquiring unit, for obtaining the length pixel value of described tested mobile phone and the width pixel value of described tested mobile phone according to described first length line and described second length line.
9. handset size measuring system according to claim 8, is characterized in that, described edge line detection unit comprises:
Outer most edge straight line searches subelement, for searching the outer most edge straight line of the described first direction side of described mobile phone profile;
First scope judgment sub-unit, for judging whether described outer most edge straight line meets programmable button length range;
Consult straight line searches subelement, for when whether described outer most edge straight line meets programmable button length range, searches the consult straight line the shortest with the spacing of described outer most edge straight line;
Second scope judgment sub-unit, presets length and width scope for judging whether described consult straight line meets;
3rd range judging unit, for when described consult straight line meets described default length and width scope, judges whether the distance between described outer most edge straight line and described consult straight line meets predeterminable range scope;
First length line chooses subelement, and when meeting predeterminable range scope for the distance between described outer most edge straight line and described consult straight line, choosing described consult straight line is described first length line;
Second length line detection sub-unit, for obtaining described second length line according to described mobile phone profile.
10. handset size measuring system according to claim 7, is characterized in that, described scale-up factor computing module according to:
k 1 = N 1 L 1 ;
k 2 = N 2 L 2 ;
Obtain described length ratio coefficient and described width ratio coefficient, wherein, k 1for described length ratio coefficient, k 2for described width ratio coefficient, N 1for the length pixel value of described reference body, L 1for the length of described reference body, N 2for the width pixel value of described reference body, L 2for the width of described reference body.
CN201510760102.8A 2015-11-09 2015-11-09 Handset size measuring method and system Active CN105444678B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510760102.8A CN105444678B (en) 2015-11-09 2015-11-09 Handset size measuring method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510760102.8A CN105444678B (en) 2015-11-09 2015-11-09 Handset size measuring method and system

Publications (2)

Publication Number Publication Date
CN105444678A true CN105444678A (en) 2016-03-30
CN105444678B CN105444678B (en) 2018-03-27

Family

ID=55555157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510760102.8A Active CN105444678B (en) 2015-11-09 2015-11-09 Handset size measuring method and system

Country Status (1)

Country Link
CN (1) CN105444678B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017201816A1 (en) * 2016-05-25 2017-11-30 中兴通讯股份有限公司 Method for length measurement and terminal
CN107478187A (en) * 2017-08-15 2017-12-15 王承砚 The method and apparatus for measuring ring hand cun
CN107734159A (en) * 2017-09-29 2018-02-23 努比亚技术有限公司 Graphic processing method, mobile terminal and computer-readable recording medium
CN108253895A (en) * 2018-02-23 2018-07-06 广州飞机维修工程有限公司 A kind of material surface crackle straight length measuring method based on image procossing
CN109489557A (en) * 2017-09-09 2019-03-19 深圳市赛亿科技开发有限公司 A kind of method and device for microspur measurement
CN109855543A (en) * 2019-03-20 2019-06-07 红云红河烟草(集团)有限责任公司 Tow opening method for measuring width
WO2019144604A1 (en) * 2018-01-25 2019-08-01 北京威远图易数字科技有限公司 Method and device for measuring vehicle damage
CN110608685A (en) * 2019-09-18 2019-12-24 天津工业大学 Object size rapid measurement method based on raspberry pie
US11436570B2 (en) 2014-10-31 2022-09-06 Ecoatm, Llc Systems and methods for recycling consumer electronic devices
US11462868B2 (en) 2019-02-12 2022-10-04 Ecoatm, Llc Connector carrier for electronic device kiosk
US11482067B2 (en) 2019-02-12 2022-10-25 Ecoatm, Llc Kiosk for evaluating and purchasing used electronic devices
US11922467B2 (en) 2020-08-17 2024-03-05 ecoATM, Inc. Evaluating an electronic device using optical character recognition
US11989701B2 (en) 2014-10-03 2024-05-21 Ecoatm, Llc System for electrically testing mobile devices at a consumer-operated kiosk, and associated devices and methods
US11989710B2 (en) 2018-12-19 2024-05-21 Ecoatm, Llc Systems and methods for vending and/or purchasing mobile phones and other electronic devices

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11080672B2 (en) 2014-12-12 2021-08-03 Ecoatm, Llc Systems and methods for recycling consumer electronic devices
US10269110B2 (en) 2016-06-28 2019-04-23 Ecoatm, Llc Methods and systems for detecting cracks in illuminated electronic device screens
KR20210127199A (en) 2019-02-18 2021-10-21 에코에이티엠, 엘엘씨 Neural network-based physical state evaluation of electronic devices, and related systems and methods
USD1010271S1 (en) 2020-02-12 2024-01-02 Ecoatm, Llc Kiosk for processing electronic devices

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005181034A (en) * 2003-12-18 2005-07-07 Casio Comput Co Ltd Size measurement device and program
CN102102978A (en) * 2009-12-16 2011-06-22 Tcl集团股份有限公司 Handheld terminal, and method and device for measuring object by using same
JP2011227692A (en) * 2010-04-20 2011-11-10 Sanyo Electric Co Ltd Size measurement device
CN102494616A (en) * 2011-11-22 2012-06-13 捷开通讯科技(上海)有限公司 Length measuring device based on mobile terminal and method thereof
CN103063143A (en) * 2012-12-03 2013-04-24 苏州佳世达电通有限公司 Measuring method and system based on image identification
CN104665836A (en) * 2013-11-29 2015-06-03 纬创资通股份有限公司 length measuring method and length measuring device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005181034A (en) * 2003-12-18 2005-07-07 Casio Comput Co Ltd Size measurement device and program
CN102102978A (en) * 2009-12-16 2011-06-22 Tcl集团股份有限公司 Handheld terminal, and method and device for measuring object by using same
JP2011227692A (en) * 2010-04-20 2011-11-10 Sanyo Electric Co Ltd Size measurement device
CN102494616A (en) * 2011-11-22 2012-06-13 捷开通讯科技(上海)有限公司 Length measuring device based on mobile terminal and method thereof
CN103063143A (en) * 2012-12-03 2013-04-24 苏州佳世达电通有限公司 Measuring method and system based on image identification
CN104665836A (en) * 2013-11-29 2015-06-03 纬创资通股份有限公司 length measuring method and length measuring device

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11989701B2 (en) 2014-10-03 2024-05-21 Ecoatm, Llc System for electrically testing mobile devices at a consumer-operated kiosk, and associated devices and methods
US11436570B2 (en) 2014-10-31 2022-09-06 Ecoatm, Llc Systems and methods for recycling consumer electronic devices
WO2017201816A1 (en) * 2016-05-25 2017-11-30 中兴通讯股份有限公司 Method for length measurement and terminal
CN107478187A (en) * 2017-08-15 2017-12-15 王承砚 The method and apparatus for measuring ring hand cun
CN107478187B (en) * 2017-08-15 2019-11-15 王承砚 The method and apparatus for measuring ring hand cun
CN109489557A (en) * 2017-09-09 2019-03-19 深圳市赛亿科技开发有限公司 A kind of method and device for microspur measurement
CN107734159A (en) * 2017-09-29 2018-02-23 努比亚技术有限公司 Graphic processing method, mobile terminal and computer-readable recording medium
CN107734159B (en) * 2017-09-29 2021-01-01 努比亚技术有限公司 Graphic processing method, mobile terminal and computer readable storage medium
WO2019144604A1 (en) * 2018-01-25 2019-08-01 北京威远图易数字科技有限公司 Method and device for measuring vehicle damage
CN108253895A (en) * 2018-02-23 2018-07-06 广州飞机维修工程有限公司 A kind of material surface crackle straight length measuring method based on image procossing
US11989710B2 (en) 2018-12-19 2024-05-21 Ecoatm, Llc Systems and methods for vending and/or purchasing mobile phones and other electronic devices
US11462868B2 (en) 2019-02-12 2022-10-04 Ecoatm, Llc Connector carrier for electronic device kiosk
US11482067B2 (en) 2019-02-12 2022-10-25 Ecoatm, Llc Kiosk for evaluating and purchasing used electronic devices
CN109855543B (en) * 2019-03-20 2021-07-20 红云红河烟草(集团)有限责任公司 Method for measuring opening width of tows
CN109855543A (en) * 2019-03-20 2019-06-07 红云红河烟草(集团)有限责任公司 Tow opening method for measuring width
CN110608685A (en) * 2019-09-18 2019-12-24 天津工业大学 Object size rapid measurement method based on raspberry pie
US11922467B2 (en) 2020-08-17 2024-03-05 ecoATM, Inc. Evaluating an electronic device using optical character recognition

Also Published As

Publication number Publication date
CN105444678B (en) 2018-03-27

Similar Documents

Publication Publication Date Title
CN105444678A (en) Handset size measurement method and system
US9485628B2 (en) User-location-in-building estimating apparatus and method thereof
US9904841B2 (en) Method and system for estimating finger movement
CN104468916A (en) Test method based on cell phone response time
US20160069666A1 (en) Height measure method and electronic device using same
US20180180459A1 (en) Distance calculation method, flow volume measuring method, distance calculation apparatus, and flow volume measuring apparatus
CN102740106B (en) Method and device for detecting movement type of camera in video
CN103743435A (en) Multi-sensor data fusion method
CN103279950B (en) A kind of remote sensing images signal to noise ratio (S/N ratio) appraisal procedure based on ranks noise criteria difference
CN111383246B (en) Scroll detection method, device and equipment
CN103994840B (en) A kind of method and device of the maximum temperature value obtaining battery of mobile terminal
CN110443275A (en) Remove method, equipment and the storage medium of noise
CN104305991A (en) Method and device for detecting noise from electrocardio signal
US9971434B2 (en) Method and system for estimating finger movement with selection of navigation subareas
CN105488331B (en) Data processing method and device
CN110631618B (en) Fiber breakage positioning method for phi-OTDR distributed optical fiber sensing system
CN107135483B (en) Method for determining relative distance change trend, indoor positioning method and device thereof
CN104457911A (en) Liquid level detecting system and method
JP2016045063A (en) Road surface property measurement device and road surface property measurement method
CN106123784B (en) A kind of method and device measuring length
EP3370074B1 (en) Method for detecting background noise of sensor, and device thereof
US10719707B2 (en) Pedestrian detection method and related monitoring camera
RU2018110302A (en) SYSTEM AND METHOD FOR MEASURING USING A POCKET ELECTRONIC DEVICE
US20140315569A1 (en) Positioning System in a Wireless Communication Network
CN108693164B (en) Temperature demodulation method, device and system based on optical fiber Raman scattering signal

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
TR01 Transfer of patent right

Effective date of registration: 20200428

Address after: 510000 unit 01, floor 15, xingguangyingjing, No. 117, Shuiyin Road, Yuexiu District, Guangzhou, Guangdong Province (office only)

Patentee after: GUANGZHOU EPBOX INFORMATION TECHNOLOGY Co.,Ltd.

Address before: Nanhai District of Guangdong town water road 528000 city of Foshan province in 2 five storey block A Room 501

Patentee before: FOSHAN LYUYI INFORMATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Mobile phone size measurement method and system

Effective date of registration: 20210923

Granted publication date: 20180327

Pledgee: Bank of China Limited by Share Ltd. Guangzhou Panyu branch

Pledgor: GUANGZHOU EPBOX INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2021440000297

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20231012

Granted publication date: 20180327

Pledgee: Bank of China Limited by Share Ltd. Guangzhou Panyu branch

Pledgor: GUANGZHOU EPBOX INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2021440000297

PC01 Cancellation of the registration of the contract for pledge of patent right