CN110913074B - Sight distance adjusting method and device, mobile equipment and storage medium - Google Patents
Sight distance adjusting method and device, mobile equipment and storage medium Download PDFInfo
- Publication number
- CN110913074B CN110913074B CN201911195279.2A CN201911195279A CN110913074B CN 110913074 B CN110913074 B CN 110913074B CN 201911195279 A CN201911195279 A CN 201911195279A CN 110913074 B CN110913074 B CN 110913074B
- Authority
- CN
- China
- Prior art keywords
- distance
- eyes
- user
- acquiring
- actual
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000000007 visual effect Effects 0.000 claims abstract description 41
- 238000012937 correction Methods 0.000 claims description 10
- 230000004438 eyesight Effects 0.000 claims description 6
- 238000000926 separation method Methods 0.000 claims description 2
- 230000006399 behavior Effects 0.000 claims 6
- 238000004891 communication Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 6
- 230000005236 sound signal Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000003542 behavioural effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013527 convolutional neural network Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 231100000040 eye damage Toxicity 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B11/00—Measuring arrangements characterised by the use of optical techniques
- G01B11/02—Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
- G01B11/026—Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness by measuring distance between sensor and object
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/52—Details of telephonic subscriber devices including functional features of a camera
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The disclosure relates to a line-of-sight adjusting method and device, mobile equipment and a storage medium. A method of adjusting a viewing distance, comprising: acquiring a preview image containing two eyes of a user under the condition that a child mode is started, wherein the preview image is obtained by shooting the user by a front camera in a background working mode; acquiring actual distances from the two eyes to the front camera; and determining whether to remind a user to adjust the sight distance according to the actual distance and a preset distance threshold. In this embodiment, by obtaining the user's visual distance, the user can be reminded when the visual distance is less than or equal to the distance threshold, so that the user can keep a proper visual distance, and the damage of the display screen to the eyes when the visual distance is too close is reduced.
Description
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to a method and an apparatus for adjusting a viewing distance, a mobile device, and a storage medium.
Background
At present, with the development of the internet, children are getting younger and younger to touch electronic products. Because children's self-control power is relatively poor, use electronic product more frequently and when being nearer apart from the screen, can cause serious influence to its eyesight, damage even.
Disclosure of Invention
The present disclosure provides a method and an apparatus for adjusting a viewing distance, a mobile device, and a storage medium to solve the deficiencies of the related art.
According to a first aspect of the embodiments of the present disclosure, there is provided a line-of-sight adjustment method applied to a mobile device provided with a front camera, the method including:
acquiring a preview image containing two eyes of a user under the condition that a child mode is started, wherein the preview image is obtained by shooting the user by a front camera in a background working mode;
acquiring actual distances from the two eyes to the front camera;
and determining whether to remind a user to adjust the sight distance according to the actual distance and a preset distance threshold.
Optionally, the obtaining of the actual distance between the two eyes and the front camera comprises:
acquiring the distance between two eyes in the preview image;
and acquiring the actual distance from the eyes of the user to the front camera according to the distance.
Optionally, obtaining the distance between the two eyes in the preview image comprises:
obtaining inner canthi of the two eyes;
and obtaining the distance between the two inner canthi to obtain the distance between the two eyes.
Optionally, obtaining the actual distance from the eyes of the user to the front camera according to the distance includes:
acquiring a preset corresponding relation between the distance and the sight distance;
and acquiring the actual distance according to the distance based on the corresponding relation.
Optionally, the obtaining of the actual distance between the two eyes and the front camera comprises:
acquiring a pre-trained sight distance model; the visual distance model is used for acquiring the actual distance from two eyes to the camera in the input image;
and inputting the preview image into the visual distance model, and acquiring the visual distance of two eyes by the visual distance model.
Optionally, determining whether to remind the user to adjust the viewing distance according to the actual distance and a preset distance threshold includes:
comparing the actual distance with a preset distance threshold;
and when the actual distance is smaller than or equal to the distance threshold value, reminding a user to adjust the sight distance.
Optionally, prompting the user to adjust the viewing distance comprises:
playing a video containing the reminding information; or,
playing the audio frequency containing the reminding information; or,
and disconnecting the power supply of the display screen in the mobile equipment.
According to a second aspect of the embodiments of the present disclosure, there is provided a line-of-sight adjusting apparatus applied to a mobile device provided with a front camera, the apparatus including:
the preview image acquisition module is used for acquiring a preview image containing two eyes of a user under the condition that the child mode is started, wherein the preview image is obtained by shooting the user by the front camera in a background working mode;
the real distance acquisition module is used for acquiring the actual distance from the two eyes to the front camera;
and the sight distance adjusting module is used for determining whether to remind a user to adjust the sight distance according to the actual distance and a preset distance threshold.
Optionally, the real-distance obtaining module includes:
the distance acquisition unit is used for acquiring the distance between the two eyes in the preview image;
and the real distance acquisition unit is used for acquiring the actual distance from the eyes of the user to the front camera according to the distance.
Optionally, the distance obtaining unit includes:
an internal angle obtaining subunit configured to obtain internal canthi of the two eyes;
and the distance acquisition subunit is used for acquiring the distance between the two inner canthi to obtain the distance between the two eyes.
Optionally, the real distance obtaining unit includes:
the system comprises a relation acquisition unit, a distance acquisition unit and a vision distance acquisition unit, wherein the relation acquisition unit is used for acquiring the corresponding relation between preset distance and preset vision distance;
and the real distance acquisition unit is used for acquiring the actual distance according to the distance based on the corresponding relation.
Optionally, the real-distance obtaining module includes:
the model acquisition unit is used for acquiring a pre-trained sight distance model; the visual distance model is used for acquiring the actual distance from two eyes to the camera in the input image;
and the visual distance acquisition unit is used for inputting the preview image into the visual distance model, and the visual distance of the two eyes is acquired by the visual distance model.
Optionally, the stadia adjusting module comprises:
the distance comparison unit is used for comparing the actual distance with a preset distance threshold;
and the sight distance adjusting unit is used for reminding a user to adjust the sight distance when the actual distance is less than or equal to the distance threshold.
Optionally, the viewing distance adjusting unit includes:
the video reminding subunit is used for playing a video containing reminding information; or,
the audio reminding subunit is used for playing the audio containing the reminding information; or,
and the power-off reminding subunit is used for disconnecting the power supply of the display screen in the mobile equipment.
According to a third aspect of embodiments of the present disclosure, there is provided a mobile device comprising:
a processor;
a memory for storing executable instructions;
the processor is configured to execute executable instructions in the memory to implement the steps of any of the methods described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a readable storage medium having stored thereon executable instructions that, when executed by a processor, implement the steps of any one of the methods described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
as can be seen from the above embodiments, in the embodiment of the present disclosure, when the mobile device is in the child mode, the front camera may obtain the preview image including the two eyes of the user in the background working mode; then, under the condition that the preview image contains two eyes of the user, acquiring the actual distance from the two eyes to the camera; and then, determining whether to remind the user to adjust the sight distance according to the actual distance and a preset distance threshold. It can be seen that, in this embodiment, by acquiring the user's visual range, the user can be reminded when the visual range is less than or equal to the distance threshold, so that the user can keep a proper visual range, and the damage of the display screen to the eyes when the visual range is too close is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a method of adjusting a line of sight according to an exemplary embodiment.
FIG. 2 is a diagram illustrating an application scenario in accordance with an exemplary embodiment.
FIG. 3 is a flow chart illustrating obtaining an actual distance according to an exemplary embodiment.
FIG. 4 is a flow chart illustrating obtaining a separation between two eyes according to an exemplary embodiment.
FIG. 5 is a schematic diagram illustrating an acquisition pitch according to an exemplary embodiment.
FIG. 6 is a schematic diagram illustrating another acquisition pitch in accordance with an exemplary embodiment.
FIG. 7 is a schematic diagram illustrating another acquisition pitch in accordance with an exemplary embodiment.
FIG. 8 is a flow chart illustrating obtaining an actual distance according to an exemplary embodiment.
FIG. 9 is a flow chart illustrating adjusting line of sight according to an exemplary embodiment.
FIG. 10 is an illustration showing an effect of displaying reminder information, according to an example embodiment.
Fig. 11 to 16 are block diagrams illustrating a visual distance adjusting apparatus according to an exemplary embodiment.
FIG. 17 is a block diagram illustrating a mobile device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of devices consistent with certain aspects of the present disclosure as recited in the claims below.
At present, with the development of the internet, children are getting younger and younger to touch electronic products. Because children's self-control power is relatively poor, use electronic product more frequently and when being nearer apart from the screen, can cause serious influence to its eyesight, damage even.
In order to solve the technical problem, an embodiment of the present disclosure provides a method for adjusting a viewing distance, which includes that when a mobile device starts a child mode, a front-facing camera in the mobile device may be in a background working mode to obtain a preview image, and a viewing distance is obtained through the preview image, and when the viewing distance is small, a user is prompted to adjust the viewing distance, so that the user maintains a proper viewing distance, and damage to eyes by a display screen when the viewing distance is too close is reduced.
Fig. 1 is a flow chart illustrating a method of adjusting a line of sight according to an exemplary embodiment. Referring to fig. 1, a method for adjusting a viewing distance, which is suitable for mobile devices such as smartphones and flat panels, includes steps 101 to 103, where:
in step 101, when the child mode is enabled, a preview image including two eyes of a user is obtained, and the preview image is obtained by shooting the user by the front camera in the background working mode.
Referring to fig. 2, the distance between the eyes of the user 10 and the mobile device 20 is in the range of 20cm to 50cm during the use of the mobile device 20, which is comfortable and causes less eye damage. Where the distance L represents the actual distance of the two distances to the mobile device.
In this embodiment, a child mode may be pre-configured in the mobile device 20. The child mode may be actively enabled when the guardian allows the child to use the mobile device. Of course, the mobile device 20 may also automatically enable the child mode when certain conditions are triggered. For example, the mobile device 20 detects that a gaming application is launched, an animation is viewed, etc., at which point the mobile device may automatically enable the child mode. For another example, in combination with some behavioral habits, such as step size, holding the terminal with both hands, using for a long time, and the like, it is determined whether the user is an adult or a child, and when it is determined that the user is a child, the mobile device automatically enables the child mode. Of course, the technician may set a reasonable manner of enabling the child mode according to a specific scenario, and the corresponding scheme falls within the protection scope of the present disclosure.
In this embodiment, the mobile device may start the front-facing camera when the child mode is enabled, and the front-facing camera may work in the background working mode, and may capture the user image in real time or periodically without affecting the use of the mobile device, so as to obtain the preview image. It will be appreciated that the mobile device does not store the preview image in view of its practical role, thereby reducing the storage space occupied.
In practical applications, the front camera may be configured to capture an image when the face of the user is detected, and then select to capture an image including two eyes of the user as a preview image. Or shooting the image when detecting the two eyes of the user, and directly obtaining the preview image. Alternatively, the front-facing camera may only take images, and the mobile device may invoke a pre-stored image recognition algorithm that selects an image containing both eyes of the user as the preview image. Technical personnel can carry out configuration according to specific scenes, and under the condition that two eyes of a user can be obtained, the corresponding scheme falls into the protection scope of the disclosure.
In step 102, the actual distances from the two eyes to the front camera are obtained.
In this embodiment, the mobile device may obtain actual distances from the two eyes to the front camera in the preview image. Considering that the front camera captures the user image, the distance between the eyes and the front camera is equivalent to the distance between the eyes and the mobile device in the embodiments of the present disclosure.
It should be noted that, in an equivalent process, since the front-facing camera is usually disposed on the top of the mobile device, there may be a certain error between the vertical distance from the eyes to the display screen and the linear distance from the eyes to the front-facing camera. Considering that the distance between the display screen and the eyes is in the range of 20cm-50cm during the use of the mobile device by the user and the size of the mobile device is about 10 cm-20 cm, the error is relatively small (usually less than 1cm), and can be ignored. Of course, the error can be obtained through a large number of experiments, and the actual distance can be compensated by the error. In consideration of the fact that the embodiment of the present disclosure only uses the actual distance to perform the comparison determination, and neglecting the error has little influence on the subsequent determination result, the scheme of each embodiment is described in each subsequent embodiment by neglecting the error.
In this embodiment, referring to fig. 3, the mobile device may preview the distance between the two eyes in the image (corresponding to step 301). The method for acquiring the distance between the two eyes may include:
in an example, referring to fig. 4, the mobile device may obtain the inner canthus of the two eyes, which is shown as inner canthus a and inner canthus b in fig. 5, so that the number n of pixels between inner canthus a and inner canthus b may be obtained, and since the width w of each pixel is fixed, the distance X between the two eyes is w X n.
In another example, referring to fig. 6, typically, the spacing between the two eyes is the same as the width of one eye. At this time, the mobile device may obtain an average value of the widths of both eyes (the product of the number of pixels and the width of each pixel), which is taken as the pitch X of both eyes.
It should be noted that, when the distance between the two eyes is obtained, in order to obtain the inner canthus of the eyes or the width of each eye, the position of the eyes may be determined first by using an image recognition algorithm, or the inner canthus and the outer canthus may be determined by using a key point algorithm, and in the case that the distance can be determined, the corresponding scheme falls within the protection scope of the present disclosure.
In yet another example, a pre-trained line-of-sight model may be pre-stored within the mobile device, which may include at least one of: convolutional neural networks, fast feature point extraction and description algorithms (ORBs), scale invariant feature transform algorithms (SIFTs), and Speeded Up Robust Features (SURFs). The sight distance model is trained through a large number of images containing eyes, and after training, the sight distance model can acquire the sight distance corresponding to the input image, namely the actual distance between the front camera and the two eyes when the input image is shot. Referring to fig. 7, after the preview image is obtained, a pre-trained stadia model may be obtained in the mobile device; the apparent distance model is used to obtain the actual distances from the two eyes to the camera in the input image (corresponding to step 701). The mobile device may then input the preview image to a line-of-sight model, which obtains the line-of-sight for both eyes (corresponding to step 702).
It can be understood that a skilled person can select a selected distance calculation mode according to a specific scenario, and in the case that the distance is obtained, the corresponding scheme falls into the protection scope of the present disclosure.
In this embodiment, with continued reference to fig. 3, the mobile device may obtain the actual distances from the two eyes of the user to the front camera according to the distance (corresponding to step 302).
In this embodiment, the mobile device may store a corresponding relationship between the distance X and the line of sight L in advance, and the corresponding relationship may be obtained based on a large number of experimental measurements.
Referring to fig. 8, after acquiring the distance, the mobile device may acquire a correspondence between the distance and the line of sight (corresponding to step 801). Then, based on the correspondence, the mobile device may obtain a viewing distance, i.e., an actual distance from the two eyes to the front camera, according to the distance (corresponding to step 802).
In general, the face of a user is opposite to the display screen during the use of the mobile device, so that the distance between two eyes in a preview image and a front camera is the same. In practical application, the distance between the two eyes is reduced by considering that a user may face the display screen obliquely, the eyes far away from the front camera are corrected based on the eyes closer to the front camera, and the distance between the two eyes is obtained when the two eyes have the same size. Or directly calculating the distance between the two eyes, and multiplying the distance by a correction coefficient (larger than 1) according to the size proportion of the two eyes when the sizes of the two eyes are different, thereby achieving the effect of adjusting the distance. Thus, a corresponding relation table of the proportion and the correction coefficient can be stored in the mobile equipment in advance. The skilled person can select a suitable manner according to a specific scenario, and in the case that the distance can be obtained, the corresponding scheme falls within the scope of the present disclosure.
In step 103, it is determined whether to remind the user to adjust the viewing distance according to the actual distance and a preset distance threshold.
In this embodiment, a preset distance threshold (e.g., 20cm, adjustable) may be pre-stored in the mobile device. Referring to fig. 9, when the actual distance is obtained, the mobile device may compare the actual distance with a distance threshold (corresponding to step 901). When the actual distance is less than or equal to the distance threshold, the mobile device may prompt the user to adjust the line of sight (corresponding to step 902). When the actual distance is greater than the distance threshold, the mobile device may return to step 101.
In this embodiment, the reminding manner may include:
in one example, the mobile device may play a video containing reminder information with the effect shown in fig. 10. In practical applications, the video may be implemented as a mini-game, a use instruction video, or a pop-up box. The user is guided to be far away from the display screen in an entertainment mode, so that the effect of adjusting the visual range is achieved.
In another example, the mobile device may play audio containing reminder information. The user is reminded to keep away from the display screen through the audio frequency, and therefore the effect of adjusting the sight distance is achieved.
In yet another example, the mobile device may power off the display screen. The user can be forced to be far away from the display screen by making the display screen black, so that the effect of adjusting the sight distance is achieved.
To this end. In the embodiment of the disclosure, in the use process of the mobile device, the front camera can acquire a preview image containing two eyes of a user in a background working mode; then, under the condition that the preview image contains two eyes of the user, acquiring the actual distance from the two eyes to the camera; and then, determining whether to remind the user to adjust the sight distance according to the actual distance and a preset distance threshold. It can be seen that, in this embodiment, by acquiring the user's visual range, the user can be reminded when the visual range is less than or equal to the distance threshold, so that the user can keep a proper visual range, and the damage of the display screen to the eyes when the visual range is too close is reduced.
Fig. 11 is a block diagram illustrating a viewing distance adjustment apparatus according to an exemplary embodiment. Referring to fig. 11, a viewing distance adjusting apparatus applied to a mobile device provided with a front camera includes:
the preview image acquiring module 1101 is configured to acquire a preview image including two eyes of a user when the child mode is enabled, where the preview image is obtained by shooting the user with the front-facing camera in a background working mode;
a real distance obtaining module 1102, configured to obtain actual distances from the two eyes to the front camera;
and a line-of-sight adjusting module 1103, configured to determine whether to remind a user to adjust the line-of-sight according to the actual distance and a preset distance threshold.
In one embodiment, referring to fig. 12, the real distance obtaining module 1102 includes:
a distance obtaining unit 1201, configured to obtain a distance between two eyes in the preview image;
a real-distance obtaining unit 1202, configured to obtain an actual distance from the user's eye to the front camera according to the distance.
In an embodiment, referring to fig. 13, the space obtaining unit 1201 includes:
an interior angle obtaining subunit 1301, configured to obtain an interior corner of the two eyes;
the distance obtaining subunit 1302 is configured to obtain a distance between two inner canthi, and obtain a distance between two eyes.
In an embodiment, referring to fig. 14, the distance obtaining unit 1201 includes:
a relationship acquisition unit 1401 for acquiring a correspondence relationship between a preset pitch and a viewing distance;
a real distance obtaining unit 1402, configured to obtain the actual distance according to the distance based on the corresponding relationship.
In one embodiment, referring to fig. 15, the real distance obtaining module 1102 includes:
a model acquisition unit 1501, configured to acquire a pre-trained stadia model; the visual distance model is used for acquiring the actual distance from two eyes to the camera in the input image;
a visual distance obtaining unit 1502 is configured to input the preview image to the visual distance model, and obtain a visual distance between the two eyes from the visual distance model.
In an embodiment, referring to fig. 16, the stadia adjusting module 1103 includes:
a distance comparison unit 1601, configured to compare the actual distance with a preset distance threshold;
a line-of-sight adjusting unit 1602, configured to remind the user to adjust the line-of-sight when the actual distance is less than or equal to the distance threshold.
In an embodiment, the stadia adjusting unit 1602 includes:
the video reminding subunit is used for playing a video containing reminding information; or,
the audio reminding subunit is used for playing the audio containing the reminding information; or,
a power-off reminding subunit for disconnecting the power supply of the display screen in the mobile device
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Therefore, in the embodiment of the disclosure, when the mobile device is in the child mode, the front camera can obtain a preview image including two eyes of the user in the background working mode; then, under the condition that the preview image contains two eyes of the user, acquiring the actual distance from the two eyes to the camera; and then, determining whether to remind the user to adjust the sight distance according to the actual distance and a preset distance threshold. It can be seen that, in this embodiment, by acquiring the user's visual range, the user can be reminded when the visual range is less than or equal to the distance threshold, so that the user can keep a proper visual range, and the damage of the display screen to the eyes when the visual range is too close is reduced.
FIG. 17 is a block diagram illustrating a mobile device in accordance with an example embodiment. For example, the mobile device 1700 may be a smartphone, computer, digital broadcast terminal, tablet device, medical device, fitness device, personal digital assistant, and the like.
Referring to fig. 17, mobile device 1700 may include one or more of the following components: processing component 1702, memory 1704, power component 1706, multimedia component 1708, audio component 1710, input/output (I/O) interface 1712, sensor component 1714, communication component 1716, and image capture component 1718.
The processing component 1702 generally moves the overall operation of the device 1700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 1702 may include one or more processors 1720 to execute instructions. Further, processing component 1702 may include one or more modules that facilitate interaction between processing component 1702 and other components. For example, processing component 1702 may include a multimedia module to facilitate interaction between multimedia component 1708 and processing component 1702.
The power component 1706 provides power to various components of the mobile device 1700. The power components 1706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the mobile device 1700.
The multimedia component 1708 includes a screen providing an output interface between the mobile device 1700 and a target object. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a target object. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
Audio component 1710 is configured to output and/or input audio signals. For example, audio component 1710 includes a Microphone (MIC) configured to receive external audio signals when mobile device 1700 is in an operating mode, such as a call mode, a record mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1704 or transmitted via the communication component 1716. In some embodiments, audio component 1710 also includes a speaker for outputting audio signals.
The I/O interface 1712 provides an interface between the processing component 1702 and peripheral interface modules, such as a keyboard, click wheel, buttons, and the like.
The communication component 1716 is configured to facilitate communications between the mobile device 1700 and other devices in a wired or wireless manner. The mobile device 1700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the mobile device 1700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components.
In an exemplary embodiment, a non-transitory readable storage medium including instructions, such as the memory 1704 including instructions, executable by the processor 1720 of the mobile device 1700 is also provided. For example, the non-transitory readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (16)
1. A sight distance adjusting method is applied to a mobile device provided with a front camera, and comprises the following steps:
acquiring a behavior habit of a user using the mobile device; the behavior habits include: step size, holding the terminal with both hands or using time length;
determining whether the user is an adult or a child according to the behavior habit, and starting a child mode when the user is a child;
acquiring a preview image containing two eyes of a user under the condition that a child mode is started, wherein the preview image is obtained by shooting the user by a front camera in a background working mode;
acquiring actual distances from the two eyes to the front camera;
determining whether to remind a user to adjust the sight distance according to the actual distance and a preset distance threshold;
acquiring a preview image containing both eyes of a user, comprising: shooting an image when the face of the user is detected, and selecting and obtaining the image containing two eyes of the user as a preview image; or shooting the image when two eyes of the user are detected, and directly obtaining a preview image;
acquiring the actual distance from the two eyes to the front camera, including:
when the two eyes are different in size, correcting the eyes far away from the front camera based on the eyes close to the front camera to enable the two eyes to be the same in size; acquiring the corrected distance between the two eyes, and acquiring the actual distance by using the distance;
or,
when the two eyes are different in size, calculating the distance between the two eyes; determining a correction coefficient according to the size proportion of the two eyes and a corresponding relation table of the prestored proportion and the correction coefficient, wherein the correction coefficient is more than 1; and multiplying the distance by the correction coefficient to obtain a final distance, and acquiring the actual distance by using the final distance.
2. The apparent distance adjustment method according to claim 1, wherein obtaining the actual distance between the two eyes and the front camera comprises:
acquiring the distance between two eyes in the preview image;
and acquiring the actual distance from the eyes of the user to the front camera according to the distance.
3. The apparent distance adjustment method according to claim 2, wherein obtaining the distance between the two eyes in the preview image comprises:
obtaining inner canthi of the two eyes;
and obtaining the distance between the two inner canthi to obtain the distance between the two eyes.
4. The method of claim 2, wherein obtaining the actual distance from the user's eye to the front camera from the separation distance comprises:
acquiring a preset corresponding relation between the distance and the sight distance;
and acquiring the actual distance according to the distance based on the corresponding relation.
5. The method of claim 1, wherein obtaining the actual distances of the two eyes to the front facing camera comprises:
acquiring a pre-trained sight distance model; the visual distance model is used for acquiring the actual distance from two eyes to the camera in the input image;
and inputting the preview image into the visual distance model, and acquiring the visual distance of two eyes by the visual distance model.
6. The method of claim 1, wherein determining whether to prompt a user to adjust the line of sight based on the actual distance and a preset distance threshold comprises:
comparing the actual distance with a preset distance threshold;
and when the actual distance is smaller than or equal to the distance threshold value, reminding a user to adjust the sight distance.
7. The method of claim 6, wherein alerting the user to adjust the line of sight comprises:
playing a video containing the reminding information; or,
playing the audio frequency containing the reminding information; or,
and disconnecting the power supply of the display screen in the mobile equipment.
8. A stadia adjusting device, characterized in that is applied to the mobile device that is provided with leading camera, the device includes:
the preview image acquisition module is used for acquiring the behavior habit of a user using the mobile equipment; the behavior habits include: step size, holding the terminal with both hands or using time length; determining whether the user is an adult or a child according to the behavior habit, and starting a child mode when the user is a child; acquiring a preview image containing two eyes of a user under the condition that the child mode is started, wherein the preview image is obtained by shooting the user by the front camera in a background working mode;
the real distance acquisition module is used for acquiring the actual distance from the two eyes to the front camera;
the sight distance adjusting module is used for determining whether to remind a user to adjust the sight distance according to the actual distance and a preset distance threshold;
the preview image acquisition module is used for acquiring a preview image containing two eyes of a user, and comprises: shooting an image when the face of the user is detected, and selecting and obtaining the image containing two eyes of the user as a preview image; or shooting the image when two eyes of the user are detected, and directly obtaining a preview image;
the real distance obtaining module is configured to obtain actual distances from the two eyes to the front camera, and includes:
when the two eyes are different in size, correcting the eyes far away from the front camera based on the eyes close to the front camera to enable the two eyes to be the same in size; acquiring the corrected distance between the two eyes, and acquiring the actual distance by using the distance;
or,
when the two eyes are different in size, calculating the distance between the two eyes; determining a correction coefficient according to the size proportion of the two eyes and a corresponding relation table of the prestored proportion and the correction coefficient, wherein the correction coefficient is more than 1; and multiplying the distance by the correction coefficient (larger than 1) to obtain a final distance, and acquiring the actual distance by using the final distance.
9. The line-of-sight adjustment apparatus according to claim 8, wherein the real distance acquisition module comprises:
the distance acquisition unit is used for acquiring the distance between the two eyes in the preview image;
and the real distance acquisition unit is used for acquiring the actual distance from the eyes of the user to the front camera according to the distance.
10. The apparent distance adjustment apparatus according to claim 9, wherein the distance acquisition unit includes:
an internal angle obtaining subunit configured to obtain internal canthi of the two eyes;
and the distance acquisition subunit is used for acquiring the distance between the two inner canthi to obtain the distance between the two eyes.
11. The apparatus of claim 9, wherein the real distance obtaining unit comprises:
the system comprises a relation acquisition unit, a distance acquisition unit and a vision distance acquisition unit, wherein the relation acquisition unit is used for acquiring the corresponding relation between preset distance and preset vision distance;
and the real distance acquisition unit is used for acquiring the actual distance according to the distance based on the corresponding relation.
12. The apparatus of claim 8, wherein the real distance obtaining module comprises:
the model acquisition unit is used for acquiring a pre-trained sight distance model; the visual distance model is used for acquiring the actual distance from two eyes to the camera in the input image;
and the visual distance acquisition unit is used for inputting the preview image into the visual distance model, and the visual distance of the two eyes is acquired by the visual distance model.
13. The apparatus of claim 8, wherein the line-of-sight adjustment module comprises:
the distance comparison unit is used for comparing the actual distance with a preset distance threshold;
and the sight distance adjusting unit is used for reminding a user to adjust the sight distance when the actual distance is less than or equal to the distance threshold.
14. The apparatus of claim 13, wherein the line-of-sight adjustment unit comprises:
the video reminding subunit is used for playing a video containing reminding information; or,
the audio reminding subunit is used for playing the audio containing the reminding information; or,
and the power-off reminding subunit is used for disconnecting the power supply of the display screen in the mobile equipment.
15. A mobile device, comprising:
a processor;
a memory for storing executable instructions;
the processor is configured to execute executable instructions in the memory to implement the steps of the method of any of claims 1 to 7.
16. A readable storage medium having stored thereon executable instructions, wherein the executable instructions when executed by a processor implement the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911195279.2A CN110913074B (en) | 2019-11-28 | 2019-11-28 | Sight distance adjusting method and device, mobile equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911195279.2A CN110913074B (en) | 2019-11-28 | 2019-11-28 | Sight distance adjusting method and device, mobile equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110913074A CN110913074A (en) | 2020-03-24 |
CN110913074B true CN110913074B (en) | 2022-04-08 |
Family
ID=69820363
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911195279.2A Active CN110913074B (en) | 2019-11-28 | 2019-11-28 | Sight distance adjusting method and device, mobile equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110913074B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113029018A (en) * | 2021-02-03 | 2021-06-25 | 深圳市优必选科技股份有限公司 | Eye protection prompting method and device, terminal equipment and computer readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104076925A (en) * | 2014-06-30 | 2014-10-01 | 天马微电子股份有限公司 | Method for reminding user of distance between eyes and screen |
CN105678146A (en) * | 2016-01-05 | 2016-06-15 | 上海斐讯数据通信技术有限公司 | Terminal and operation method thereof |
CN109977727A (en) * | 2017-12-27 | 2019-07-05 | 广东欧珀移动通信有限公司 | Sight protectio method, apparatus, storage medium and mobile terminal |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012154683A1 (en) * | 2011-05-08 | 2012-11-15 | Ming Jiang | Apparatus and method for limiting the use of an electronic display |
CN104618705B (en) * | 2014-11-28 | 2017-04-05 | 深圳市魔眼科技有限公司 | Different distance self adaptation holography display methods and equipment based on eyeball tracking |
CN105487782B (en) * | 2015-11-27 | 2019-07-09 | 惠州Tcl移动通信有限公司 | A kind of method and system of the adjust automatically roll screen speed based on eye recognition |
CN106792177A (en) * | 2016-12-28 | 2017-05-31 | 海尔优家智能科技(北京)有限公司 | A kind of TV control method and system |
CN108161933A (en) * | 2017-12-07 | 2018-06-15 | 北京康力优蓝机器人科技有限公司 | Interactive mode selection method, system and reception robot |
CN109344723A (en) * | 2018-09-04 | 2019-02-15 | 四川文轩教育科技有限公司 | A kind of student's monitoring method based on sighting distance algorithm |
-
2019
- 2019-11-28 CN CN201911195279.2A patent/CN110913074B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104076925A (en) * | 2014-06-30 | 2014-10-01 | 天马微电子股份有限公司 | Method for reminding user of distance between eyes and screen |
CN105678146A (en) * | 2016-01-05 | 2016-06-15 | 上海斐讯数据通信技术有限公司 | Terminal and operation method thereof |
CN109977727A (en) * | 2017-12-27 | 2019-07-05 | 广东欧珀移动通信有限公司 | Sight protectio method, apparatus, storage medium and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN110913074A (en) | 2020-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105430262B (en) | Filming control method and device | |
US10026381B2 (en) | Method and device for adjusting and displaying image | |
US9674395B2 (en) | Methods and apparatuses for generating photograph | |
EP3032821B1 (en) | Method and device for shooting a picture | |
CN106408603B (en) | Shooting method and device | |
US20170034409A1 (en) | Method, device, and computer-readable medium for image photographing | |
US20160027191A1 (en) | Method and device for adjusting skin color | |
CN107945133B (en) | Image processing method and device | |
CN108470322B (en) | Method and device for processing face image and readable storage medium | |
CN107888984B (en) | Short video playing method and device | |
CN108668080B (en) | Method and device for prompting degree of dirt of lens and electronic equipment | |
CN107944367B (en) | Face key point detection method and device | |
US9924090B2 (en) | Method and device for acquiring iris image | |
EP3258414B1 (en) | Prompting method and apparatus for photographing | |
KR101727061B1 (en) | Method and device for folding pictures | |
EP3796317A1 (en) | Video processing method, video playing method, devices and storage medium | |
CN105678296B (en) | Method and device for determining character inclination angle | |
CN104503657B (en) | Image processing method and device | |
US9665925B2 (en) | Method and terminal device for retargeting images | |
EP3211879A1 (en) | Method and device for automatically capturing photograph, electronic device | |
CN108635800B (en) | Swimming posture correction method and device | |
CN110913074B (en) | Sight distance adjusting method and device, mobile equipment and storage medium | |
WO2021189927A1 (en) | Image processing method and apparatus, electronic device, and storage medium | |
CN107239758B (en) | Method and device for positioning key points of human face | |
CN112004020A (en) | Image processing method, image processing device, electronic equipment and storage medium |
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 |