CN114355627B - Method and device for adjusting length of glasses leg, electronic equipment and storage medium - Google Patents

Method and device for adjusting length of glasses leg, electronic equipment and storage medium Download PDF

Info

Publication number
CN114355627B
CN114355627B CN202210010063.XA CN202210010063A CN114355627B CN 114355627 B CN114355627 B CN 114355627B CN 202210010063 A CN202210010063 A CN 202210010063A CN 114355627 B CN114355627 B CN 114355627B
Authority
CN
China
Prior art keywords
glasses
volume
user
acquiring
determining
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.)
Active
Application number
CN202210010063.XA
Other languages
Chinese (zh)
Other versions
CN114355627A (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.)
Beijing Beehive Century Technology Co ltd
Original Assignee
Beijing Beehive Century 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 Beijing Beehive Century Technology Co ltd filed Critical Beijing Beehive Century Technology Co ltd
Priority to CN202210010063.XA priority Critical patent/CN114355627B/en
Publication of CN114355627A publication Critical patent/CN114355627A/en
Application granted granted Critical
Publication of CN114355627B publication Critical patent/CN114355627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Circuit For Audible Band Transducer (AREA)
  • Eyeglasses (AREA)

Abstract

The present application relates to the field of eyeglasses, and in particular, to a method and apparatus for adjusting a length of a leg, an electronic device, and a storage medium, where the method includes: acquiring a first position of a contact point of an eyeglass-hanging ear part and an ear part, and acquiring a second position of a contact point of an eyeglass nose frame part and a nose part corresponding to the eyeglass-hanging ear part; determining a distance between the first location and the second location; reading current user information, and acquiring preset volume at the ear hole of the user; determining a corresponding target distance range from the corresponding relation among the pre-stored user information, the pre-stored volume and the pre-stored distance range according to the current user information and the preset volume at the user ear hole; and sending an adjustment instruction to the telescopic part of the glasses leg according to the distance between the first position and the second position, wherein the adjustment instruction is used for controlling the telescopic part of the glasses leg to stretch and retract until the adjusted distance is in a target distance range. The method and the device can be used for conveniently and accurately adjusting the glasses legs to the position with better sound effect.

Description

Method and device for adjusting length of glasses leg, electronic equipment and storage medium
Technical Field
The present invention relates to the field of eyeglasses, and in particular, to a method and apparatus for adjusting a length of a leg, an electronic device, and a storage medium.
Background
With the rapid development of intelligent technology, the variety of intelligent devices is increasing. The wearer may wear intelligent glasses such as AR (Augmented Reality ) glasses and 3D (three dimensional, three-dimensional) glasses. In a scene with music playing such as a movie theater, the wearer can wear intelligent glasses with music functions. For intelligent glasses with music function, the sound outlet hole is too close to or too far from the ear, so that the experience of a wearer can be influenced. Therefore, it is important to properly adjust the distance between the sound outlet of the glasses and the ears.
In the related art, after wearing the glasses, the wearer adjusts the glasses to a more comfortable position according to his own sense and cognition, but the adjusted glasses position is not necessarily the position with the best sound effect, and the wearer needs to repeatedly adjust the positions of the glasses, so that the whole process is time-consuming and labor-consuming.
In the process of implementing the present application, the inventor believes that the position of the sound outlet of the glasses may not be accurately adjusted to the distance with better sound effect only through the sensory cognition of the wearer, so how to more accurately adjust the glasses to the position with better sound effect becomes a key problem.
Disclosure of Invention
In order to facilitate accurate adjustment of the temple to a position with better sound effect, the application provides a method and a device for adjusting the length of the temple, electronic equipment and a storage medium.
In a first aspect, the present application provides a method for adjusting a length of a leg, which adopts the following technical scheme:
a method of adjusting the length of a temple, comprising:
acquiring a first position of a contact point of an eyeglass-hanging ear part and an ear part, and acquiring a second position of a contact point of an eyeglass nose frame part and a nose part corresponding to the eyeglass-hanging ear part;
determining a distance between the first location and the second location;
reading current user information, and acquiring preset volume at the user ear hole, wherein the preset volume is the target volume at the user ear hole under the play audio;
determining a corresponding target distance range from the corresponding relation among the pre-stored user information, the pre-stored volume and the pre-stored distance range according to the current user information and the pre-set volume at the user ear hole;
and sending an adjustment instruction to the telescopic part of the glasses leg according to the distance between the first position and the second position, wherein the adjustment instruction is used for controlling the telescopic part of the glasses leg to stretch and retract until the adjusted distance is in a target distance range.
By adopting the scheme, the distance between the first position and the second position is determined, then the current user information is acquired, the preset volume of the ear hole of the user is determined, and the target distance range corresponding to the current user information and the set volume is obtained according to the corresponding relation among the user information, the volume and the distance range.
In another possible implementation manner, the acquiring the preset volume at the ear hole of the user includes:
acquiring the volume of the environmental sound of the glasses and/or the size of the space of the glasses;
determining a correction coefficient based on the volume of the environmental sound where the glasses are located and/or the size of the space where the glasses are located;
Acquiring a set volume selected by a user;
and correcting the set volume based on the correction coefficient to obtain the preset volume at the current user ear hole.
By adopting the technical scheme, because the environmental factors can lead to the effect of listening to the audio currently, the volume set by the user is revised according to the volume of the environmental sound of the glasses and/or the space size of the glasses, so that the target volume at the ear hole of the current user is determined, the gap between the volume heard by the user and the volume set by the user is reduced, the revised volume is close to the volume with better sound effect, and the hearing effect of the wearer is improved.
In another possible implementation manner, the acquiring the volume of the environmental sound where the glasses are located includes:
acquiring the environmental sound of the glasses, and extracting background sound from the environmental sound;
and inputting the background sound into a pre-trained model, and outputting the volume of the environmental sound.
Through adopting above-mentioned technical scheme, can confirm the ambient sound volume through the extraction to the background sound in the ambient sound that glasses are located to separate the audio frequency that glasses broadcast and the environmental noise of external world, and then can confirm accurate revision coefficient based on the ambient sound volume.
In another possible implementation, the acquiring the second position of the contact point of the nose bridge portion and the nose of the glasses corresponding to the glasses hanging portion includes:
acquiring a three-dimensional face image of a user, and extracting characteristic points of the three-dimensional face image;
determining a first contact point of the face, which is contacted with the nose frame part of the glasses, from the characteristic points of the three-dimensional face image;
judging whether the first contact point is in a setting range of the midpoint of the two eye feature points;
and if the first contact point is in the setting range of the midpoints of the two eye characteristic points, acquiring a second position of the contact point between the nose frame part and the nose of the glasses corresponding to the glasses hanging part.
By adopting the technical scheme, the first contact point can be determined, whether the first contact point is in the setting range of the middle point of the two eyes or not can be judged, and the second position is acquired only when the first contact point is in the setting range of the middle point of the characteristic points of the two eyes, so that the second position is not acquired when the glasses are not worn, and the electric energy loss is reduced.
In another possible implementation manner, the acquiring a three-dimensional face image of the user further includes:
acquiring reflection spectrum information of a target object wearing intelligent glasses;
Comparing the reflection spectrum information with target reflection spectrum information, and judging whether the reflection spectrum information corresponds to a real human face or not;
and if the reflection spectrum information corresponds to the real face, executing the step of acquiring the three-dimensional face image of the user.
By adopting the technical scheme, the spectrum information of the object wearing the intelligent glasses and the target spectrum information are compared to judge whether the current user is a real face, so that when the object wearing the glasses is the real face, a three-dimensional face image of the user is obtained, and the electric energy loss generated when the object wearing the glasses is the false body face is reduced.
In another possible implementation manner, the sending the adjustment instruction to the telescopic part of the glasses leg includes:
acquiring a wearing mode determined by a current user, wherein the wearing mode comprises any one of a music mode, a film mode and a common mode;
determining a distance range corresponding to the wearing mode determined by the current user, wherein the distance range is a subinterval of the target distance range;
and determining an adjustment instruction corresponding to the distance range, and sending the adjustment instruction to the telescopic part of the glasses leg, wherein the adjustment instruction is used for controlling the telescopic part of the glasses leg to stretch and retract until the adjusted distance is in the target distance range.
Through adopting above-mentioned technical scheme, according to the different modes of wearing of user selection, match the distance scope that different modes of wearing correspond for when the user is in different scenes, select different modes of wearing, based on the distance scope that the mode corresponds of wearing now, thereby confirm the adjustment instruction based on the distance scope, send the adjustment instruction to the telescopic part of glasses, and then make the telescopic part of mirror leg flexible, increase the comfort level of wearer.
In another possible implementation manner, the acquiring the wearing mode determined by the current user includes:
displaying a plurality of wearing modes to be selected on a display interface of the intelligent glasses, and determining the wearing mode corresponding to the preset direction pointed by the pupil of the current user; determining the residence time of the pupil of the current user in a preset direction;
judging whether the residence time is greater than a residence time threshold;
and when the stay time length is larger than the stay time length threshold, determining a mode corresponding to the preset direction, and determining a wearing mode for the current user.
By adopting the technical scheme, the residence time of the pupil of the current user in different preset directions can be different based on the residence time, and whether the residence time is larger than the residence time threshold is judged, so that the pupil direction of the user can be accurately corresponding to the wearing mode, the wearing mode of the current user is determined when the residence time is larger than the residence time threshold, and the comfort level of a wearer can be improved.
In a second aspect, the present application provides a device for a method for adjusting a length of a leg, which adopts the following technical scheme:
a method and device for adjusting the length of a lens leg comprise the following steps:
the first acquisition module is used for acquiring a first position of a contact point of the glasses hanging lug part and the lug part and acquiring a second position of a contact point of the glasses nose frame part and the nose part corresponding to the glasses hanging lug part;
a first determining module for determining a distance between the first location and the second location;
the second acquisition module is used for reading the current user information and acquiring the preset volume at the ear hole of the user;
the second determining module is used for determining a corresponding target distance range from the corresponding relation among the pre-stored user information, the volume and the distance range according to the current user information and the target volume at the user ear hole;
and the sending module is used for sending an adjustment instruction to the telescopic part of the glasses leg according to the distance between the first position and the second position, wherein the adjustment instruction is used for controlling the telescopic part of the glasses leg to stretch and retract until the adjusted distance is in a target distance range.
Through adopting above-mentioned technical scheme, first determining module confirms the distance between first position and the second position, then read current user information, second acquisition module obtains the preset volume of user's ear hole department, second determining module can be according to user information, the corresponding relation between volume and the distance scope, thereby obtain the target distance scope that corresponds based on current user information and set for volume, when the distance of first position and second position is within target distance scope, can have the better audio under this preset volume, guaranteed current user's hearing effect, the adjustment instruction that the telescopic part of control mirror leg stretches out and draws back is sent to the telescopic part of mirror leg, thereby can make the distance after adjusting be in target distance scope, the step of manual regulation mirror leg of the wearer is saved from this, and then accurately adjust out the sound hole to the position that the audio effect is preferred, guarantee the hearing effect of wearer.
In another possible implementation manner, the second obtaining module is specifically configured to, when obtaining a volume preset at an ear hole of a user:
acquiring the volume of the environmental sound of the glasses and/or the size of the space of the glasses;
determining a correction coefficient based on the volume of the environmental sound in which the glasses are positioned and/or the size of the space in which the glasses are positioned;
acquiring a set volume selected by a user;
and correcting the set volume based on the correction coefficient to obtain the preset volume at the ear hole of the user.
In another possible implementation manner, the second obtaining module is specifically configured to, when obtaining the volume of the environmental sound in which the glasses are located:
acquiring the environmental sound of the glasses, and extracting background sound from the environmental sound;
and inputting the background sound into a pre-trained model, and outputting the volume of the environmental sound.
In another possible implementation manner, the first obtaining module is specifically configured to, when obtaining the second position of the contact point between the nose bridge portion and the nose of the glasses corresponding to the eye-suspension loop portion:
acquiring a three-dimensional face image of a user, and extracting characteristic points of the three-dimensional face image;
determining a first contact point of the face, which is contacted with the nose frame part of the glasses, from the characteristic points of the three-dimensional face image;
Judging whether the first contact point is in a setting range of the midpoint of the two eye feature points;
and if the first contact point is in the setting range of the midpoints of the two eye characteristic points, acquiring a second position of the contact point between the nose frame part and the nose of the glasses corresponding to the glasses hanging part.
In another possible implementation, the apparatus further includes: a third acquisition module, a judgment module and an execution module, wherein,
the third acquisition module is used for acquiring reflection spectrum information of a target object wearing the intelligent glasses;
and the judging module is used for comparing the reflection spectrum information with the target reflection spectrum information and judging whether the reflection spectrum information corresponds to a real face or not.
And the execution module is used for executing the step of acquiring the three-dimensional face image of the user when the reflection spectrum information corresponds to the real face.
In another possible implementation manner, the sending module is specifically configured to, when sending the adjustment instruction to the telescopic portion of the temple:
acquiring a wearing mode determined by a current user, wherein the wearing mode comprises any one of a music mode, a film mode and a common mode;
determining a distance range corresponding to the wearing mode determined by the current user, wherein the distance range is a subinterval of the target distance range;
And determining an adjustment instruction corresponding to the distance range, and sending the adjustment instruction to the telescopic part of the glasses leg, wherein the adjustment instruction is used for controlling the telescopic part of the glasses leg to stretch and retract until the adjusted distance is in the target distance range.
In another possible implementation manner, the sending module is specifically configured to, when acquiring the wearing mode determined by the current user:
displaying a plurality of wearing modes to be selected on a display interface of the intelligent glasses, and determining the wearing mode corresponding to the preset direction pointed by the pupil of the current user; determining the residence time of the pupil of the current user in a preset direction;
judging whether the residence time is greater than a residence time threshold;
and when the stay time length is larger than the stay time length threshold, determining a mode corresponding to the preset direction, and determining a wearing mode for the current user.
In a third aspect, the present application provides an electronic device, which adopts the following technical scheme:
an electronic device, the electronic device comprising:
at least one processor;
a memory;
at least one application program, wherein the at least one application program is stored in the memory and configured to be executed by the at least one processor, the at least one application program configured to: a method of adjusting the length of the temple according to any one of the possible implementations of the first aspect is performed.
In a fourth aspect, the present application provides a computer readable storage medium, which adopts the following technical scheme:
a computer-readable storage medium, comprising: a computer program is stored that can be loaded and executed by a processor to implement a method of adjusting the length of a temple as shown in any one of the possible implementations of the first aspect.
In summary, the present application includes at least one of the following beneficial technical effects:
1. the method comprises the steps of determining the distance between a first position and a second position, then obtaining current user information, determining the preset volume at the position of an ear hole of a user, and obtaining a target distance range corresponding to the preset volume based on the current user information according to the corresponding relation among the user information, the volume and the distance range, wherein when the actual distance between the first position and the second position is within the target distance range, the current user can have better sound effect under the preset volume, and the hearing effect of the current user is ensured;
2. According to different wearing modes selected by a user, the distance ranges corresponding to the different wearing modes are matched, so that when the user selects the different wearing modes in different scenes, the distance ranges corresponding to the current wearing modes are based, and therefore an adjustment instruction is determined based on the distance ranges and is sent to the telescopic parts of the glasses, the telescopic parts of the glasses legs are telescopic, and the comfort level of the wearer is improved.
Drawings
Fig. 1 is a flowchart of a method for adjusting a length of a leg according to an embodiment of the present application.
Fig. 2 is a schematic structural view of a leg length adjusting device according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Description of the embodiments
Embodiments of the present application are described in further detail below in conjunction with figures 1-3 of the specification.
The present embodiment is merely illustrative of the present application and is not intended to be limiting, and those skilled in the art, after having read the present specification, may make modifications to the present embodiment without creative contribution as required, but is protected by patent laws within the scope of the claims of the present application.
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
In addition, the term "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In this context, unless otherwise specified, the term "/" generally indicates that the associated object is an "or" relationship.
Along with the rapid development of intelligent technology, the variety of intelligent glasses is gradually increased, and the application is gradually wide. When the wearer wears the intelligent glasses with audio playing, the intelligent glasses are provided with the sound outlet holes, and the sound outlet holes of the intelligent glasses are required to be not too close to or too far from the ear holes of the wearer when the hearing effect of the wearer is required to be guaranteed.
In the related art, after the wearer wears the glasses, the wearer adjusts the temples to the proper position according to the sensory recognition, but since it is difficult for the wearer to adjust the glasses to the proper position once, the repeated adjustment requires a lot of time and effort.
In order to solve the above technical problems, the embodiments of the present application provide a method for adjusting the length of a glasses leg, which can read current user information, determine the volume at the ear hole of the current user, determine the target distance range corresponding to the current user information and the volume at the ear hole of the current user based on the corresponding relationship among the user information, the volume and the distance range, and control the telescopic part of the glasses leg to stretch and retract based on an adjustment instruction, so that the adjusted distance is in the target distance range, thereby enabling the user to have better hearing experience.
In order to better implement the leg length adjustment method, the following description will be made with reference to specific embodiments and accompanying drawings.
The embodiment of the application provides a method for adjusting the length of a glasses leg, which is executed by electronic equipment, wherein the electronic equipment can be a smart phone, a tablet personal computer and smart glasses.
Further, the embodiment of the present application provides a method for adjusting the length of a leg, as shown in fig. 1, and an example is given to perform a method for adjusting the length of a leg, which is specifically shown as follows:
step S101, a first position of a contact point of the glasses hanging ear portion and the ear portion is acquired, and a second position of a contact point of the glasses nose frame portion and the nose portion corresponding to the glasses hanging ear portion is acquired.
For this application embodiment, glasses include picture frame and lens, and wherein, the picture frame includes mirror leg and glasses nose frame portion, and the mirror leg includes glasses string ear portion and can adjust the flexible portion of mirror leg length.
The glasses leg sensor used for acquiring the first position is arranged on the glasses hanging ear in advance, and the nose pad sensor used for acquiring the second position is arranged on the glasses nose frame part. The temple sensor and the nose pad sensor may be position sensors, and the position sensors include a contact position sensor and a proximity position sensor, which are not limited in the embodiment of the present application. It should be noted that, in order to be able to accurately acquire the first position and the second position, the position sensor is a multipoint sensor.
Specifically, when the sensor is a contact position sensor, and the contact of the contact position sensor is pressed by the glasses legs and the ears of the wearer together to generate pressure, the contact position sensor collects the positions of the contact points of the glasses legs and the ears of the wearer, and sends the positions of the contact points to the electronic equipment as a first position.
Step S102, determining a distance between the first position and the second position.
For the embodiment of the application, the first coordinate of the first position is (X1, Y1, Z1) acquired by the temple sensor, the second coordinate of the second position is (X2, Y2, Z2) acquired by the nose pad sensor, the distance between the first position and the second position is determined to be L1, and the distance L1 between the first position and the second position is calculated according to the formula that the distance is obtained by the first coordinate, the second coordinate and the two-point coordinates. The formula for obtaining the distance by the coordinates of two points can be as follows:
step S103, the current user information is read, and the preset volume at the ear hole of the user is obtained.
The preset volume is a target volume of the user in the ear hole under the playing audio.
For the present embodiment, the current user information includes a user identifier, which includes, but is not limited to, a user name, a user ID, a user identification card number, and a user fingerprint, as long as the user identifier is information uniquely representing the user identity. The preset volume is the target volume of the user in the ear hole under the play audio, and the hearing effect of the user is good under the target volume.
Step S104, according to the current user information and the preset volume at the ear hole of the user, determining a corresponding target distance range from the corresponding relation among the pre-stored user information, volume and distance range.
For the embodiment of the present application, the correspondence between the user information, the volume, and the distance range is stored in advance, where the correspondence may be text or a table, and the embodiment is not limited.
And determining a target distance range corresponding to the user information and the preset volume according to the corresponding relation among the user information, the volume and the distance range. The target distance range is a standard distance range of the first location and the second location.
For glasses capable of playing audio, a sound outlet hole is formed in a glasses leg close to the ear hole, and when the preset volume of the ear hole of the user is the target volume of the ear hole of the user under the playing audio, the glasses indicate that the glasses have better sound effect under the current situation, and at the moment, the distance range from the corresponding sound outlet hole to the ear hole is the sound effect preset range.
It can be understood that after playing the audio, the actual volume at the ear hole of the user is the preset volume, the distance between the first position and the second position is within the target distance range, and meanwhile, the distance range from the sound outlet to the ear hole is the sound effect preset range by adjusting the length of the glasses leg. It is understood that the specific relationship among the three is data obtained through multiple experiments according to multiple samples.
Specifically, there is a correspondence between user information, volume, and target distance. For example, if the current user information is "Zhang San", when the volume corresponding to Zhang Sanhe is volume 1, the volume 1 corresponds to the target distance LB1-LB2; when the volume corresponding to the user Zhang three is volume 2, the target distance corresponding to the volume 2 is LB3-LB4; if the current user information is "Li four", when the volume corresponding to Li four of the user is volume 3, the target distance corresponding to volume 3 may be LB1-LB2, LB3-LB4, or LB5-LB6; when the volume corresponding to the user Li four is the volume 4, the target distance corresponding to the volume 4 may be LB1-LB2, LB3-LB4, LB6-LB7.
When the adjusted distance is in LB1-LB2, the distance between the sound outlet hole and the ear hole is in LA1-LA2, which is the distance range with better sound effect.
Step S105, according to the distance between the first position and the second position, sending an adjusting instruction to the telescopic part of the glasses leg.
The adjusting instruction is used for controlling the telescopic part of the glasses leg to stretch and retract until the adjusted distance is in the target distance range.
In one possible implementation manner of this embodiment of the present application, step S101 of obtaining a second position of a contact point between a nose bridge portion and a nose of glasses corresponding to a hanging ear portion of glasses may specifically include: step S1011 (not shown), step S1012 (not shown), step S1013 (not shown), and step S1014 (not shown), wherein,
Step S1011, acquiring a three-dimensional face image of the user, and extracting feature points of the three-dimensional face image.
For the embodiment of the application, a plurality of cameras are installed on the nose frame part of the glasses in advance, and a three-dimensional face image is obtained according to user images shot by the cameras. The method for obtaining the three-dimensional face image according to the user images shot by the cameras comprises the following steps: and carrying out histogram equalization on the user image containing the human face, changing the gray value of the image point by point, carrying out median filtering on the image with the changed gray value, removing noise in the image, normalizing the filtered image, and normalizing the images of the same person shot under imaging conditions such as different directions, distances and the like to obtain the three-dimensional human face image.
Specifically, extracting feature points of a three-dimensional face image includes: after the three-dimensional face image shot by the camera is obtained, the three-dimensional face image is subjected to preliminary screening, the image which does not contain the face image is screened, and then the characteristic points of the image which contains the face are extracted.
The feature point detection is performed on the face, and the nose root, the nasal bone, the nostril, the auricle, the earlobe and the like of the face are positioned on the basis of extracting the face features.
In one implementation manner, extracting feature points of the three-dimensional face image includes: the three-dimensional face image is divided into small areas by the HOG (Histogram of Oriented Gridients, direction gradient histogram), then the gradient or edge direction histogram (the association of the histogram and the histogram equalization of the last section) of each pixel point in the small areas is collected, and the direction histograms are combined to form the feature points.
In another implementation manner, extracting feature points of the three-dimensional face image includes: and (3) carrying out convolution, activation, pooling and full-connection network on the three-dimensional face image by using CNN (Convolutional Neural Network) and finally outputting the characteristic points of the three-dimensional face image.
In another implementation manner, extracting feature points of the three-dimensional face image includes: and 5 characteristic points of nasal roots, nasal bones, nostrils, auricles and eardrops in the face are positioned by a Cascade Cascade regression CNN method, and the positions of the characteristic points are predicted in a face frame. Firstly, a network capable of predicting the relative positions of feature points in a face frame is trained, and then the coordinates of the feature points are predicted in the face frame.
In another implementation manner, extracting feature points of the three-dimensional face image includes: through Dlib face feature point detection, libfacedetect face feature point detection may be also performed, or a seefaface feature point detection method may be performed, which is not limited to the above feature point detection method in the embodiment of the present application.
Step S1012, determining a first contact point between the face and the glasses nose frame portion from the feature points of the three-dimensional face image.
It is an object of embodiments of the present application to determine the type of feature points of a three-dimensional face image, including glasses or nose, in order to determine a first contact point according to the type. Specifically, the detection may be performed on a plurality of feature points of the three-dimensional face image in a region, and the type corresponding to each region is determined, and the specific determination manner may be to determine the type corresponding to each feature point by identifying the skin texture feature of each feature point, which may, of course, also have other manners, and the embodiment is not limited any more.
In step S1013, it is determined whether the first contact point is within the setting range of the midpoint between the two eye feature points.
For the embodiment of the application, after the feature points corresponding to the glasses are determined, the midpoint coordinates between the two feature points can be determined according to the pixel points, a horizontal floating value is selected, and a setting range is determined according to the horizontal floating value; for example, the first eye has coordinates (Xa, Y), the second eye has coordinates (Xb, Y), and the horizontal float value is b, where Xa is greater than Xb, the set range is ((Xa-Xb)/2-b, Y) - ((Xa-Xb)/2+b, Y).
In step S1014, if the first contact point is within the set range of the two eye points, the second position of the contact point between the nose bridge portion and the nose corresponding to the eye suspension portion is obtained.
For the embodiment of the application, if the first contact point is in the setting range of the middle point of the two eyes, the current glasses are worn on the face, and the glasses are worn at the nose frame position, the second position of the contact point of the nose frame part and the nose of the glasses is obtained, so that the second position is not obtained when the nose frame part of the glasses is not positioned on the nose, and the electric energy loss caused by the fact that the wearer does not wear the glasses yet is reduced.
In one possible implementation manner of the embodiment of the present application, in step S1011, the capturing a three-dimensional face image of the user further includes:
and obtaining the reflection spectrum information of the object wearing the intelligent glasses.
For the embodiment of the application, the target object comprises a human face and a prosthetic human face, a color CCD (charge coupled device ) camera can be arranged on glasses in advance, the color CCD camera can acquire a color video with space information, then the hyperspectral imaging device synchronously acquires the sampled spectrum video, and the target detection and target tracking are carried out on the spectrum video to extract the spectrum information of a frame image. And comparing the reflection spectrum information with the target spectrum information, and judging whether the reflection spectrum information corresponds to a real human face. And if the reflection spectrum information corresponds to the real face, executing the step of acquiring the three-dimensional face image of the user.
For the embodiment of the application, the spectrum information of the frame image is compared with the target spectrum information in the database, the wavelength of the reflection spectrum information is determined, the wavelength of the reflection spectrum information is compared with the wavelength corresponding to the skin of the face, the face spectrum information is subjected to spectrum living body detection, whether the current spectrum information is the spectrum information of the natural skin or not is judged, if the current spectrum information is the spectrum information of the natural skin, the current spectrum information is determined to be a real face, the three-dimensional face image of the user is acquired, and therefore, when the glasses are worn on the face of the prosthesis, the electric energy loss caused by repeatedly adjusting the length of the legs of the glasses is reduced.
And if the reflection spectrum information corresponds to the real face, executing the step of acquiring the three-dimensional face image of the user.
In a possible implementation manner of the embodiment of the present application, determining the target volume at the current ear hole of the user in step S103 may specifically include: step S1031 (not shown), step S1032 (not shown), step S1033 (not shown), and step S1034 (not shown), wherein,
step S1031, obtaining the volume of the environmental sound where the glasses are located and/or the size of the space where the glasses are located.
For the embodiment of the application, the volume of the environmental sound where the glasses are located is obtained, the current environmental sound where the glasses are located can be obtained through the sound collecting sensor arranged in the glasses, the environmental sound comprises sound tone, tone color, volume and the like, the volume of the sound is extracted, and the volume of the environmental sound can be expressed in decibels (dB).
In one implementation, acquiring the volume of the environmental sound in which the glasses are located includes: the method comprises the steps of obtaining the volume of environmental sound collected by external equipment, wherein the external equipment comprises a mobile phone provided with a decibel meter, the mobile phone is connected with glasses through a close range transmission protocol, and the close range transmission protocol can comprise a Bluetooth protocol, an NFC protocol and the like.
In another implementation manner, obtaining the size of the space where the glasses are located includes: the space size of the glasses is collected through a laser range finder or an infrared range finder arranged in the glasses, specifically, the time of light return is measured through infrared range finding or laser range finding, the distance of each azimuth is calculated based on the time of light return, the light speed and the atmospheric refraction coefficient, and then the space size is calculated through a plurality of distances.
Step S1032, determining the correction coefficient based on the volume of the environmental sound where the glasses are located and/or the size of the space where the glasses are located.
For the embodiment of the application, the correction coefficient can be determined based on the environmental volume of the glasses, the correction coefficient can be determined based on the space of the glasses, and the correction coefficient can be determined based on the environmental volume of the glasses and the space of the glasses. Specifically, when the volume of the environment where the glasses are located is larger, that is, the surrounding environment is louder, and/or when the space where the glasses are located is larger, that is, the surrounding environment is more open, the corresponding correction coefficient is larger. For example, when the volume of the environment where the glasses are located is less than 60 db, that is, the environment where the glasses are located is quite, the current environment has little influence on the sound effect, and the correction coefficient is 1; when the volume of the environment is 60-100 dB, namely the environment of the glasses is noisy, the current environment has influence on the sound effect, and the correction coefficient is 1.2; when the environmental sound effect is 100-150 db, namely the environment where the glasses are located is noisy, the current environment has great influence on the sound effect, and the correction coefficient is 1.5.
Step S1033, acquiring the set volume selected by the user.
For the embodiment of the application, the set volume of the played audio selected by the user is obtained, the volume selected by the user key can be obtained, the volume selected by the user in a sliding manner can also be selected, and the set volume value selected by the user is determined. It should be noted that the set volume selected by the user is not equal to the volume actually heard by the user.
Step S1034, correcting the set volume based on the correction coefficient to obtain the preset volume at the current user ear hole.
For the embodiment of the application, the set volume is trimmed based on the correction coefficient determined by the environmental volume where the glasses are located and the space size where the glasses are located. When the volume of the environment where the glasses are positioned is smaller, namely the surrounding environment is quieter, and/or when the space where the glasses are positioned is smaller, namely the space where the glasses are positioned is more airtight, the volume at the ear hole of the user is closer to the set volume selected by the user, and the corresponding correction coefficient is a coefficient close to 1. The set volume is corrected based on the correction coefficient, so that the volume at the ear hole of the user is close to the set volume selected by the user, the possibility that the difference between the volume at the ear hole of the user and the set volume is overlarge due to noisy environment is reduced, and the hearing effect of the user is improved.
In a possible implementation manner of this embodiment of the present application, the acquiring, in step S1031, the volume of the environmental sound where the glasses are located may specifically include: step S10311 (not shown in the figure) and step S10312 (not shown in the figure), wherein,
in step S10311, the environmental sound in which the glasses are located is acquired, and the background sound is extracted from the environmental sound.
For the embodiments of the present application, the environmental sounds include audio sounds played by glasses and background sounds, including but not limited to outside crowd sounds, traffic sounds, and equipment operation sounds. Background sounds are extracted from the ambient sound, and the peak frequency of the ambient sound can be obtained by performing nonlinear variation on the audio signal of the ambient sound. The peak frequency of the environmental sound is compared with the threshold frequency, the environmental sound below the threshold frequency is used as background sound, and the background sound is extracted, so that the audio played by the glasses is distinguished from the background sound of the external environment.
In step S10312, the background sound is input into the pre-trained model, and the volume of the environmental sound is output.
For the embodiment of the application, the model corresponding to the sound and the volume can be trained in advance, the model can be a convolutional neural network, and training and learning are performed on the neural network model. A large number of sample values are input into the neural network model, the sample values are trained, and the sample values comprise a plurality of groups of matching relations between sound and sound volumes corresponding to the sound. And inputting the background sound into the trained convolutional neural network to obtain the volume corresponding to the background sound.
In a possible implementation manner of the embodiment of the present application, the sending, in step S105, an adjustment instruction to the telescopic portion of the temple may specifically include: step S1051 (not shown in the figure), step S1052 (not shown in the figure), and step S1051 (not shown in the figure), wherein,
step S1051, acquire the wearing mode determined by the current user.
The wearing mode comprises any one of a music mode, a film mode and a common mode.
For the embodiment of the application, the user can freely select the mode according to different requirements of different scenes on comfort and auditory effects.
In one implementation manner, a plurality of keys are installed on glasses in advance, the keys include a music mode key, a movie mode key and a common mode key, and the method for acquiring the wearing mode determined by the current user includes: and after the user triggers the target key, acquiring a corresponding wearing mode determined by the current user.
In another implementation manner, a key is pre-installed in the glasses, the number of times of the key indicates a corresponding wearing mode, and the current wearing mode determined by the user is obtained, including: reading the number of times the user presses, and determining a wearing mode according to the number of times, for example, when the user presses a key once, the corresponding mode is a music mode; when the user presses the key twice, the corresponding mode is a film mode; when the user presses the key three times, the corresponding mode is a common mode; when the user presses the four keys, the corresponding mode returns to the music mode.
Step S1052, a distance range corresponding to the wearing mode determined by the current user is determined.
Wherein the distance range is a sub-interval of the target distance range.
For the embodiment of the present application, the subinterval of the target distance range is a certain segment of interval within the entire target distance range. When the user does not select the wearing mode, the distance is only required to be within the target distance range, and when the user selects the wearing mode, the user experience sense and the hearing effect corresponding to different wearing modes are different, and meanwhile, the corresponding mode ranges are different, but are all within the target distance range.
Specifically, in order to ensure that a user obtains a better hearing effect, the sound outlet is closer to the ear hole of the user, and the target distance range corresponding to the music mode is smaller than the target distance range corresponding to the common mode. For example, the target distance is 13-15cm (cm), the mode range corresponding to the normal mode is 13.2-14.8cm, and the mode range corresponding to the music mode is 13-14cm.
In step S1053, an adjustment instruction corresponding to the mode range is determined according to the distance between the first position and the second position, and the temple is adjusted based on the adjustment instruction.
The adjusting instruction is used for controlling the telescopic part of the glasses leg to stretch and retract until the adjusted distance is in the distance range.
For the embodiment of the application, the matching relation between the wearing mode and the mode range corresponding to the wearing mode is stored in advance, and after the wearing mode determined by the user is obtained, the mode range corresponding to the wearing mode selected by the user is determined from the matching relation, and the glasses leg is adjusted based on the mode range corresponding to the wearing mode selected by the user, so that the comfort level of the user can be increased.
In a possible implementation manner of this embodiment of the present application, the obtaining, in step S1051, the wearing mode determined by the current user may specifically include: step S10511 (not shown), step S10512 (not shown), and step S10513 (not shown), wherein,
step S10511, displaying a plurality of wearing modes to be selected on a display interface of the intelligent glasses, determining a wearing mode corresponding to a preset direction pointed by the pupil of the current user, and determining the residence time of the pupil of the current user in the preset direction.
For the embodiment of the application, the preset directions of the pupils of the current user are different, the corresponding wearing modes are also different, and the preset directions of the pupils of the current user correspond to the area directions where the eyes of the current user stay.
Specifically, the pupil of the current user is positioned, the acquired face video information can be subjected to rough detection of human eyes through an adaboost algorithm, a human eye area is detected, the edge detection is performed on the human eye area through a canny algorithm, the edge of the pupil is obtained, and the center of the pupil is obtained through a Hough transformation circle center detection method.
In step S10512, it is determined whether the stay time period is greater than the stay time period threshold.
For the embodiment of the application, eye movement tracking is performed on an eye, a beam of light (near infrared light) and a camera are aligned to the eyes of a current user based on a non-invasive technology of VOG (Video OculoGraphic, eye video analysis), so that the stay time of the user in a preset direction is obtained through analysis, and whether the stay time is larger than a stay time threshold is judged.
Step S10513, when the stay time length is greater than the stay time length threshold, determining a mode corresponding to the preset direction, and determining the wearing mode for the current user.
For the embodiment of the application, the preset duration may be preset, and if the current pupil stays in the preset direction for longer than the preset duration, the mode selected by the current user is determined. For example, the residence time threshold is five minutes, and the current user's pupil stays in the screen of the movie theater for more than five minutes, then the current user's mode is determined to be movie mode.
The following embodiments describe a device for adjusting the length of a temple from the viewpoint of the device structure, which is suitable for the above-mentioned method embodiments, and specifically, the following embodiments are described below:
The embodiment of the present application provides a leg length adjustment device, as shown in fig. 2, the leg length adjustment device 20 may specifically include:
a first obtaining module 201, configured to obtain a first position of a contact point between an ear portion and an ear portion of the glasses, and obtain a second position of a contact point between a nose portion and a nose portion of the glasses corresponding to the ear portion of the glasses;
a first determining module 202 for determining a distance between the first location and the second location;
the second obtaining module 203 is configured to read current user information and obtain a preset volume at the ear hole of the user;
a second determining module 204, configured to determine a target distance range from a pre-stored relationship between the user information, the volume, and the set distance range according to the current user information and a preset volume at the user ear hole;
and the sending module 205 is configured to send an adjustment instruction to the telescopic portion of the temple, where the adjustment instruction is used to control the telescopic portion of the temple to stretch and retract until the adjusted distance is within the target distance range.
For the embodiment of the application, the first determining module determines the distance between the first position and the second position, then reads the current user information, the second obtaining module obtains the preset volume at the position of the user ear hole, and the second determining module can obtain the target distance range corresponding to the current user information and the set volume according to the corresponding relation among the user information, the volume and the distance range.
In another possible implementation manner of this embodiment of the present application, the second obtaining module 203 is specifically configured to, when determining the target volume at the current ear hole of the user:
acquiring the volume of the environmental sound of the glasses and/or the size of the space of the glasses;
determining a correction coefficient based on the environmental volume at which the glasses are positioned and/or the size of the space at which the glasses are positioned;
acquiring a set volume selected by a user;
and adjusting the set volume based on the correction coefficient to obtain the preset volume at the ear hole of the user.
In another possible implementation manner of this embodiment of the present application, when the second obtaining module 203 obtains the volume of the environmental sound where the glasses are located, the second obtaining module is specifically configured to:
acquiring the environmental sound of the glasses, and extracting background sound from the environmental sound;
inputting background sound into a pre-trained model, and outputting the volume of the environmental sound
In another possible implementation manner of this embodiment of the present application, when the first obtaining module 201 obtains the second position of the contact point between the nose bridge portion and the nose portion of the glasses corresponding to the eye-suspension loop portion, the first obtaining module is specifically configured to:
acquiring a three-dimensional face image of a user, and extracting characteristic points of the three-dimensional face image;
determining a first contact point of the face, which is contacted with the nose frame part of the glasses, from the characteristic points of the three-dimensional face image;
Judging whether the first contact point is in a setting range of the midpoints of the two eye feature points;
and if the first contact point is in the setting range of the midpoints of the two eye characteristic points, acquiring a second position of the contact point between the nose frame part and the nose of the glasses corresponding to the glasses hanging part.
Another possible implementation manner of the embodiment of the present application, the apparatus further includes: a third acquisition module, a judgment module and an execution module, wherein,
the third acquisition module is used for acquiring reflection spectrum information of a target object wearing the intelligent glasses;
and the judging module is used for comparing the reflection spectrum information with the target reflection spectrum information and judging whether the reflection spectrum information corresponds to a real human face or not.
And the execution module is used for executing the step of acquiring the three-dimensional face image of the user when the reflection spectrum information corresponds to the real face.
In another possible implementation, the sending module 205 is specifically configured to, when sending the adjustment instruction to the telescopic portion of the temple:
acquiring a mode determined by a current user, wherein the mode comprises any one of a music mode, a film mode and a common mode;
determining a distance range corresponding to the wearing mode determined by the current user, wherein the distance range is a subinterval of the target distance range;
And determining an adjustment instruction corresponding to the distance range, and sending the adjustment instruction to the telescopic part of the glasses leg, wherein the adjustment instruction is used for controlling the telescopic part of the glasses leg to stretch and retract until the adjusted distance is in the distance range.
In another possible implementation manner, the sending module 205 is specifically configured to, when acquiring the wearing mode determined by the current user:
displaying a plurality of wearing modes to be selected on a display interface of the intelligent glasses, determining a wearing mode corresponding to a preset direction pointed by the pupil of the current user, and determining the residence time of the pupil of the current user in the preset direction;
judging whether the stay time is greater than a stay time threshold;
when the stay time length is larger than the stay time length threshold value, determining a mode corresponding to the preset direction, and determining a wearing mode for the current user.
The embodiment of the application further provides an electronic device, as shown in fig. 3, where the electronic device 30 shown in fig. 3 includes: a processor 301 and a memory 303. Wherein the processor 301 is coupled to the memory 303, such as via a bus 302. Optionally, the electronic device 30 may also include a transceiver 304. It should be noted that, in practical applications, the transceiver 304 is not limited to one, and the structure of the electronic device 30 is not limited to the embodiment of the present application.
The processor 301 may be a CPU (Central Processing Unit ), general purpose processor, DSP (Digital Signal Processor, data signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. Processor 301 may also be a combination that implements computing functionality, e.g., comprising one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
Bus 302 may include a path to transfer information between the components. Bus 302 may be a PCI (Peripheral Component Interconnect, peripheral component interconnect Standard) bus or an EISA (Extended Industry Standard Architecture ) bus, or the like. Bus 302 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 3, but not only one bus or one type of bus.
The Memory 303 may be, but is not limited to, a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory ) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory ), a CD-ROM (Compact Disc Read Only Memory, compact disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 303 is used for storing application program codes for executing the present application and is controlled to be executed by the processor 301. The processor 301 is configured to execute the application code stored in the memory 303 to implement what is shown in the foregoing method embodiments.
Among them, electronic devices include, but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and stationary terminals such as digital TVs, desktop computers, and the like, and servers and the like. The electronic device shown in fig. 3 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments herein.
The embodiment of the application provides a computer readable storage medium, on which a computer program is stored, which when running on a computer, makes the computer execute the corresponding content in the method embodiment executed by the terminal device. Compared with the prior art, the method has the advantages that the distance between the first position and the second position is determined, then the current user information is acquired, the preset volume at the ear hole of the user is determined, the target distance range corresponding to the current user information and the set volume is obtained according to the corresponding relation among the user information, the volume and the distance range, when the actual distance between the first position and the second position is within the target distance range, the sound effect under the preset volume is better, the hearing effect of the current user is ensured, the adjusting instruction for controlling the telescopic part of the glasses leg to stretch is sent to the telescopic part of the glasses leg, and therefore the adjusted distance is in the target distance range, the step of manually adjusting the telescopic part of the glasses leg by a wearer is omitted, the sound outlet is accurately adjusted to the position with the better sound effect, and the hearing effect of the wearer is ensured.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The foregoing is only a partial embodiment of the present application and it should be noted that, for a person skilled in the art, several improvements and modifications can be made without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method for adjusting the length of a temple, comprising: acquiring a first position of a contact point of an eyeglass-hanging ear part and an ear part, and acquiring a second position of a contact point of an eyeglass nose frame part and a nose part corresponding to the eyeglass-hanging ear part; determining a distance between the first location and the second location; reading current user information, and acquiring preset volume at the user ear hole, wherein the preset volume is the target volume at the user ear hole under the play audio; determining a corresponding target distance range from the corresponding relation among the pre-stored user information, the pre-stored volume and the pre-stored distance range according to the current user information and the pre-set volume at the user ear hole; and sending an adjustment instruction to the telescopic part of the glasses leg according to the distance between the first position and the second position, wherein the adjustment instruction is used for controlling the telescopic part of the glasses leg to stretch and retract until the adjusted distance is in a target distance range.
2. The method for adjusting the length of a temple according to claim 1, wherein the obtaining a preset volume at an ear hole of a user comprises: acquiring the volume of the environmental sound of the glasses and/or the size of the space of the glasses; determining a correction coefficient based on the volume of the environmental sound where the glasses are located and/or the size of the space where the glasses are located; acquiring a set volume selected by a user; and correcting the set volume based on the correction coefficient to obtain the preset volume at the current user ear hole.
3. The method of claim 2, wherein obtaining the volume of the environmental sound in which the glasses are located comprises: acquiring the environmental sound of the glasses, and extracting background sound from the environmental sound; and inputting the background sound into a pre-trained model, and outputting the volume of the environmental sound.
4. The method of adjusting a length of a temple according to claim 1, wherein the acquiring a second position of a contact point of a nose portion and a nose portion of the glasses corresponding to the glasses hanging portion includes: acquiring a three-dimensional face image of a user, and extracting characteristic points of the three-dimensional face image; determining a first contact point of the face, which is contacted with the nose frame part of the glasses, from the characteristic points of the three-dimensional face image; judging whether the first contact point is in a setting range of the midpoint of the two eye feature points; and if the first contact point is in the setting range of the midpoints of the two eye characteristic points, acquiring a second position of the contact point between the nose frame part and the nose of the glasses corresponding to the glasses hanging part.
5. The method for adjusting the length of a temple according to claim 4, wherein the step of acquiring the three-dimensional face image of the user further comprises: acquiring reflection spectrum information of a target object wearing intelligent glasses; comparing the reflection spectrum information with target reflection spectrum information, and judging whether the reflection spectrum information corresponds to a real human face or not; and if the reflection spectrum information corresponds to the real face, executing the step of acquiring the three-dimensional face image of the user.
6. The method according to claim 1, wherein the step of sending the adjustment command to the telescopic portion of the temple includes: acquiring a wearing mode determined by a current user, wherein the wearing mode comprises any one of a music mode, a film mode and a common mode; determining a distance range corresponding to the wearing mode determined by the current user, wherein the distance range is a subinterval of the target distance range; and determining an adjustment instruction corresponding to the mode range, and sending the adjustment instruction to the telescopic part of the glasses leg, wherein the adjustment instruction is used for controlling the telescopic part of the glasses leg to stretch and retract until the adjusted distance is in the distance range.
7. The method of claim 6, wherein the obtaining the current user-determined wear pattern comprises: displaying a plurality of wearing modes to be selected on a display interface of the intelligent glasses, determining the wearing mode corresponding to the preset direction pointed by the pupil of the current user, and determining the residence time of the pupil of the current user in the preset direction; judging whether the residence time is greater than a residence time threshold; and when the stay time length is larger than the stay time length threshold, determining a wearing mode corresponding to the preset direction, and determining the wearing mode for the current user.
8. A leg length adjustment device, comprising: the first acquisition module is used for acquiring a first position of a contact point of the glasses hanging lug part and the lug part and acquiring a second position of a contact point of the glasses nose frame part and the nose part corresponding to the glasses hanging lug part; a first determining module for determining a distance between the first location and the second location; the second acquisition module is used for reading the current user information and reading the preset volume at the ear hole of the user; the second determining module is used for determining a corresponding target distance range from the corresponding relation among the pre-stored user information, the volume and the distance range according to the current user information and the preset volume at the user ear hole; and the sending module is used for sending an adjustment instruction to the telescopic part of the glasses leg, wherein the adjustment instruction is used for controlling the telescopic part of the glasses leg to stretch and retract until the adjusted distance is in the target distance range.
9. An electronic device, comprising: at least one processor; a memory; at least one application program, wherein the at least one application program is stored in the memory and configured to be executed by the at least one processor, the at least one application program configured to: a method of adjusting the length of a temple according to any one of claims 1 to 7 is performed.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements a method for adjusting the length of a temple according to any one of claims 1 to 7.
CN202210010063.XA 2022-01-05 2022-01-05 Method and device for adjusting length of glasses leg, electronic equipment and storage medium Active CN114355627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210010063.XA CN114355627B (en) 2022-01-05 2022-01-05 Method and device for adjusting length of glasses leg, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210010063.XA CN114355627B (en) 2022-01-05 2022-01-05 Method and device for adjusting length of glasses leg, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114355627A CN114355627A (en) 2022-04-15
CN114355627B true CN114355627B (en) 2023-06-30

Family

ID=81106679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210010063.XA Active CN114355627B (en) 2022-01-05 2022-01-05 Method and device for adjusting length of glasses leg, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114355627B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487657A (en) * 2015-11-24 2016-04-13 小米科技有限责任公司 Sound loudness determination method and apparatus
CN106226919A (en) * 2016-08-19 2016-12-14 赵矗 Intelligent health glasses
CN206074939U (en) * 2016-08-15 2017-04-05 丹阳蓝思信息技术有限公司 One kind takes headset style protection type spectacle-frame
CN107632400A (en) * 2017-10-30 2018-01-26 王才旺 A kind of 3D intelligent glasses based on wireless network
CN108181733A (en) * 2018-01-30 2018-06-19 北京小米移动软件有限公司 The auxiliary usual method and device of glasses
US10039445B1 (en) * 2004-04-01 2018-08-07 Google Llc Biosensors, communicators, and controllers monitoring eye movement and methods for using them
CN207867142U (en) * 2018-03-12 2018-09-14 天津市硕航光电技术有限公司 A kind of VR glasses
WO2019218621A1 (en) * 2018-05-18 2019-11-21 北京市商汤科技开发有限公司 Detection method for living being, device, electronic apparatus, and storage medium
CN111107214A (en) * 2019-12-09 2020-05-05 西安易朴通讯技术有限公司 Volume adjusting method and device
CN111308707A (en) * 2020-01-19 2020-06-19 惠州Tcl移动通信有限公司 Picture display adjusting method and device, storage medium and augmented reality display equipment
CN113014995A (en) * 2021-02-26 2021-06-22 北京蜂巢世纪科技有限公司 Video playback method, medium, glasses, and program product
CN113433541A (en) * 2020-03-23 2021-09-24 Oppo广东移动通信有限公司 Face detection method and device, electronic equipment and computer readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CH696297A5 (en) * 2002-01-04 2007-03-30 Dauber Holdings Inc of cold flame propulsion system.
US8175316B2 (en) * 2006-12-05 2012-05-08 Sony Corporation Ear speaker device
WO2010062479A1 (en) * 2008-11-02 2010-06-03 David Chaum System and apparatus for eyeglass appliance platform
DE102016106121A1 (en) * 2016-04-04 2017-10-05 Carl Zeiss Ag Method and device for determining parameters for spectacle fitting
KR102537784B1 (en) * 2018-08-17 2023-05-30 삼성전자주식회사 Electronic device and control method thereof
EP4106984A4 (en) * 2020-02-21 2024-03-20 Ditto Tech Inc Fitting of glasses frames including live fitting

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10039445B1 (en) * 2004-04-01 2018-08-07 Google Llc Biosensors, communicators, and controllers monitoring eye movement and methods for using them
CN105487657A (en) * 2015-11-24 2016-04-13 小米科技有限责任公司 Sound loudness determination method and apparatus
CN206074939U (en) * 2016-08-15 2017-04-05 丹阳蓝思信息技术有限公司 One kind takes headset style protection type spectacle-frame
CN106226919A (en) * 2016-08-19 2016-12-14 赵矗 Intelligent health glasses
CN107632400A (en) * 2017-10-30 2018-01-26 王才旺 A kind of 3D intelligent glasses based on wireless network
CN108181733A (en) * 2018-01-30 2018-06-19 北京小米移动软件有限公司 The auxiliary usual method and device of glasses
CN207867142U (en) * 2018-03-12 2018-09-14 天津市硕航光电技术有限公司 A kind of VR glasses
WO2019218621A1 (en) * 2018-05-18 2019-11-21 北京市商汤科技开发有限公司 Detection method for living being, device, electronic apparatus, and storage medium
CN111107214A (en) * 2019-12-09 2020-05-05 西安易朴通讯技术有限公司 Volume adjusting method and device
CN111308707A (en) * 2020-01-19 2020-06-19 惠州Tcl移动通信有限公司 Picture display adjusting method and device, storage medium and augmented reality display equipment
CN113433541A (en) * 2020-03-23 2021-09-24 Oppo广东移动通信有限公司 Face detection method and device, electronic equipment and computer readable storage medium
CN113014995A (en) * 2021-02-26 2021-06-22 北京蜂巢世纪科技有限公司 Video playback method, medium, glasses, and program product

Also Published As

Publication number Publication date
CN114355627A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
TWI751161B (en) Terminal equipment, smart phone, authentication method and system based on face recognition
WO2019105285A1 (en) Facial attribute recognition method, electronic device, and storage medium
CN112215802B (en) Skin detection method and electronic equipment
CN110647865A (en) Face gesture recognition method, device, equipment and storage medium
CN108280418A (en) The deception recognition methods of face image and device
CN105357425B (en) Image capturing method and device
CN103747346A (en) Multimedia video playing control method and multimedia video player
US10867527B2 (en) Process and wearable device equipped with stereoscopic vision for helping the user
CN104408402A (en) Face identification method and apparatus
CN112446322B (en) Eyeball characteristic detection method, device, equipment and computer readable storage medium
CN111242090A (en) Human face recognition method, device, equipment and medium based on artificial intelligence
CN112000221A (en) Method for automatically detecting skin, method for automatically guiding skin care and makeup and terminal
CN111161131A (en) Image processing method, terminal and computer storage medium
CN113038165B (en) Method, apparatus and storage medium for determining encoding parameter set
CN111442464B (en) Air conditioner and control method thereof
CN114355627B (en) Method and device for adjusting length of glasses leg, electronic equipment and storage medium
CN112104965B (en) Sound amplification method and sound amplification system
CN108921815A (en) It takes pictures exchange method, device, storage medium and terminal device
CN111966321A (en) Volume adjusting method, AR device and storage medium
CN108765321A (en) It takes pictures restorative procedure, device, storage medium and terminal device
CN113709353B (en) Image acquisition method and device
CN114996515A (en) Training method of video feature extraction model, text generation method and device
EP4154138A1 (en) Systems and methods for authenticating a user of a head-mounted display
CN114677620A (en) Focusing method, electronic device and computer readable medium
KR102078458B1 (en) A hand-free glasses type hearing aid, a method for controlling the same, and computer recordable medium storing program to perform the method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant