WO2023279777A1 - Method and apparatus for providing eye protection mode, storage medium, and mobile device - Google Patents
Method and apparatus for providing eye protection mode, storage medium, and mobile device Download PDFInfo
- Publication number
- WO2023279777A1 WO2023279777A1 PCT/CN2022/082595 CN2022082595W WO2023279777A1 WO 2023279777 A1 WO2023279777 A1 WO 2023279777A1 CN 2022082595 W CN2022082595 W CN 2022082595W WO 2023279777 A1 WO2023279777 A1 WO 2023279777A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- facial
- mobile device
- user
- bounding box
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 230000004044 response Effects 0.000 claims abstract description 18
- 230000001815 facial effect Effects 0.000 claims description 149
- 230000033001 locomotion Effects 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 16
- 238000001514 detection method Methods 0.000 claims description 16
- 230000003247 decreasing effect Effects 0.000 claims description 4
- 238000012545 processing Methods 0.000 abstract description 17
- 238000005516 engineering process Methods 0.000 abstract description 11
- 238000010586 diagram Methods 0.000 description 10
- 238000004364 calculation method Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000036541 health Effects 0.000 description 5
- 238000005259 measurement Methods 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 5
- 238000004422 calculation algorithm Methods 0.000 description 4
- 238000013459 approach Methods 0.000 description 3
- 230000004438 eyesight Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000005802 health problem Effects 0.000 description 2
- 230000004379 myopia Effects 0.000 description 2
- 208000001491 myopia Diseases 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000010267 cellular communication Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000035515 penetration Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/62—Analysis of geometric attributes of area, perimeter, diameter or volume
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30196—Human being; Person
- G06T2207/30201—Face
Definitions
- the present disclosure relates to the field of image processing technology, in particular to the application of image processing technology in mobile devices, and in particular to a method, device, computer readable storage medium, computer program product and a mobile device for providing an eye protection mode. equipment.
- the present disclosure provides a method, a device, a computer-readable storage medium, a computer program product and a mobile device for providing an eye protection mode for a mobile device.
- a method for providing an eye protection mode for a mobile device including: acquiring a user's facial image at a reference distance between the user and the mobile device as a reference image, the reference image corresponding to The first facial area; during the user's use of the mobile device, acquiring the user's facial image as an image to be compared, the image to be compared corresponds to the second facial area; and in response to determining that the second facial area exceeds the first facial area by an amount of Predetermined threshold, send out a prompt message to enter the eye protection mode.
- an apparatus for providing an eye protection mode for a mobile device including: a first image acquisition module configured to acquire a facial image of a user at a reference distance between the user and the mobile device As a reference image, the reference image corresponds to the first facial area; the second image acquisition module is configured to acquire the user's facial image as an image to be compared during the user's use of the mobile device, and the image to be compared corresponds to the first facial area two facial areas; and a comparison module configured to send a prompt message to enter the eye protection mode in response to determining that the second facial area exceeds the first facial area by a predetermined threshold.
- a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the above method.
- a computer program product comprising a computer program, wherein the computer program implements the method as described above when executed by a processor.
- a mobile device including: at least one processor; and a memory communicatively connected to the at least one processor, wherein the memory stores information that can be read by the at least one processor Executable instructions that, when executed by the at least one processor, cause the at least one processor to perform the method as described above.
- the judgment of the distance between the user and the mobile device can be realized in a simple manner by comparing the difference between the size of the face image acquired in real time and the size of the reference image.
- Fig. 1 shows a flowchart of a method for providing an eye protection mode for a mobile device according to an embodiment of the present disclosure.
- Fig. 2 shows a flowchart of a method for acquiring a reference image or an image to be compared according to an embodiment of the present disclosure.
- Fig. 3 shows a schematic diagram of generating a bounding box for a facial contour according to an embodiment of the present disclosure.
- Fig. 4 shows a block diagram of an apparatus for providing an eye protection mode for a mobile device according to an embodiment of the present disclosure.
- Fig. 5 shows a block diagram of an apparatus for providing an eye protection mode for a mobile device according to another embodiment of the present disclosure.
- Fig. 6 shows a structural block diagram of a mobile device according to an embodiment of the present disclosure.
- first, second, etc. to describe various elements is not intended to limit the positional relationship, temporal relationship or importance relationship of these elements, and such terms are only used for Distinguishes one element from another.
- first element and the second element may refer to the same instance of the element, and in some cases, they may also refer to different instances based on contextual description.
- mobile devices such as mobile phones or tablet computers lack targeted optimization for certain groups of people (such as children and teenagers). For example, when such people watch videos played on mobile phones for a long time and are too close to the mobile phone, it is easy to cause health problems such as myopia. Therefore, it is necessary to remind when the distance between the user and the mobile device is too short.
- Traditional solutions often rely on setting up hardware devices dedicated to distance measurement (such as infrared distance measuring equipment) on mobile devices or using complex distance calculation algorithms to determine the distance by directly calculating the distance value between the user and the mobile device near and far.
- such a solution may be complicated and impractical, especially when many factors such as portability, miniaturization, economy, and computing performance need to be considered.
- a method for providing an eye protection mode for a mobile device is provided. Embodiments of the disclosed method will be described in detail below with reference to the accompanying drawings.
- Fig. 1 shows a flow chart of a method 100 for providing an eye protection mode for a mobile device according to an embodiment of the present disclosure.
- the flow chart of a method 100 according to an embodiment of the present disclosure may include the following steps:
- the method for providing an eye protection mode for a mobile device by using the principle that when taking an image, the size of the facial image that can represent the appropriate distance between the user and the mobile device is first acquired, and then by It is compared with the size of the facial image acquired in real time during use to determine whether the distance between the user and the mobile device is too close.
- the distance can be realized by comparing the size of the face image acquired in real time with the reference image in a simple way. Judgment from near and far.
- the method is simple to implement, and is especially convenient to be applied to mobile devices.
- the reference distance may refer to an appropriate distance between the user and the mobile device in terms of eye health.
- the mobile device may include a portable smart mobile device with a camera, such as a mobile phone, a tablet computer, and a notebook computer.
- a portable smart mobile device with a camera such as a mobile phone, a tablet computer, and a notebook computer.
- the reference distance may be determined based on various factors. Taking watching videos on mobile phones as an example, it is generally believed that the distance between an ordinary adult and a mobile device is greater than 30cm for eye health. In the case that the user is a child or a teenager, the above-mentioned appropriate distance may be appropriately increased. In addition, for different types of mobile devices, the above-mentioned appropriate distance may also vary. For example, for a tablet computer, the above-mentioned distance will be correspondingly farther, because the display screen of the tablet computer will be larger. In addition, the above-mentioned appropriate distance can also be determined in combination with the user's own experience. For example, users with normal vision or nearsightedness may have different clear vision distances. Therefore, the reference distance can be determined by different users considering their own vision. The appropriate distance determined under the circumstances.
- the present disclosure utilizes the principle that when taking an image, the near image is larger and the far image is smaller. Therefore, the face image that can represent the above-mentioned appropriate distance between the user and the mobile device is first obtained, and set as a subsequent comparison
- the standard that is, the reference image.
- the facial image since the facial image is the original image captured, it may contain a lot of image information that is not conducive to or irrelevant to the implementation of the method of the present disclosure, which may cause interference in subsequent calculations. For example, when shooting indoors, in addition to the user's face, indoor furniture, electrical appliances and other objects may also be photographed in it, and the image information corresponding to these objects is irrelevant to subsequent calculations.
- the reference image may be an original facial image subjected to specific image processing. This is described in detail below in conjunction with FIG. 2 .
- Fig. 2 shows a flowchart of a method 200 for acquiring a reference image according to an embodiment of the present disclosure. As shown in FIG. 2 , the flowchart of a method 200 according to an embodiment of the present disclosure may include the following processes.
- step S202 the front-facing camera installed on the mobile device may be called to capture the facial image of the user at a reference distance.
- the method according to the embodiment of the present disclosure may be applied to an application installed in an operating system of a mobile device (or an applet embedded in some application).
- the application program as a video playing application program as an example, it can provide the user with an entry (or function module, item, option, etc.) for shooting a reference image, so that the user can start shooting the reference image through the entry.
- the application program can call the front-facing camera installed on the mobile device, such as the front-facing camera of the mobile phone, to capture the facial image of the user at the reference distance.
- the reference distance may be determined according to various factors, which will not be repeated here.
- the facial contour in the facial image may be detected.
- the step S204 of detecting facial contours in the facial image may further include a step of judging the quality of the facial image. Considering that sometimes the acquired facial image is inclined to the side instead of facing the user's face due to the shooting angle, an additional step for judging the quality of the facial image can be set to ensure the accuracy of subsequent calculations.
- step S204 may include sub-steps S2040 and S2042. In sub-step S2040, it may be determined whether the face image is taken for the user's front face.
- step S202 If it is determined that the facial image is not taken from the front of the user (as indicated by "N"), it means that the quality of the acquired facial image is not good, which may affect the accuracy of calculating the facial area, thereby affecting the subsequent comparison process, so the process can be Return to step S202, and take another facial image. Or alternatively, the face image can also be corrected by common image processing techniques (such as deformation, stretching, etc.) to obtain a relatively frontal image with high quality. If it is determined that the facial image is taken for the user's front face (as shown by "Y"), the facial contour is extracted in step S2042, and the process proceeds to step S206.
- common image processing techniques such as deformation, stretching, etc.
- the technology of determining whether the face is frontal and the technology of extracting the facial contour also belong to the commonly used face recognition technology known to those skilled in the art, and will not be repeated here.
- the user's front face image can be obtained, thereby ensuring the accuracy of the calculation of the facial area and the accuracy of the subsequent comparison process.
- a bounding box containing the facial contour may be generated, and the bounding box may correspond to the boundary of the reference image. This is described in detail below in conjunction with FIG. 3 .
- FIG. 3 shows a schematic diagram of generating a bounding box 304 for a facial contour 302 according to an embodiment of the disclosure.
- the facial contour 302 shown in FIG. 3 may be the facial contour detected after step S204 is performed.
- a bounding box 304 containing the facial contour 302 therein may be generated.
- the bounding box 304 may correspond to the border of the reference image 300.
- a reference image suitable for subsequent comparison is intentionally created based on the facial image, in which irrelevant image information contained in the original facial image is eliminated.
- the reference image can be understood as the original facial image subjected to specific image processing.
- bounding box 304 may be a rectangle that encloses facial contour 302 in a tangent manner to facial contour 302 .
- the bounding box 304 defines the face area of the reference image 300 .
- the facial area can be calculated by projecting the reference image 300 in a coordinate system, and obtaining the corresponding coordinates of its four corners A, B, C, D to calculate the area of the rectangle. Constructing a bounding box tangent to the face contour as a rectangle simplifies the creation of the reference image, as well as the calculation of the area and subsequent comparison.
- the user's facial image may be acquired in real time during the user's use of the mobile device and used as the image to be compared.
- using the mobile device may include watching a video played on the mobile device, etc., which require the user to watch continuously.
- step S104 of acquiring the user's facial image as the image to be compared may be performed in a manner similar to the step S102 of acquiring the user's facial image as the reference image. That is, step S104 may also include the following sub-steps: i) calling the front-facing camera installed on the mobile device to take a facial image of the user; ii) detecting the facial contour in the facial image; and iii) in response to detecting the facial contour, A bounding box is generated enclosing the contour of the face, the bounding box corresponding to the boundaries of the images to be compared. Sub-step i) in step S104 may be automatically executed by an application such as the aforementioned one after step S102.
- the facial contour 302 shown in FIG. 3 at this time may represent the detected facial contour after performing the above sub-step ii). Based on the facial contour 302, a bounding box 304 containing the facial contour 302 therein may be generated.
- reference numeral 300 may represent an image to be compared, the boundary of which is defined by a bounding box 304 .
- a to-be-compared image suitable for subsequent comparison is intentionally created based on the facial image, and irrelevant image information contained in the original facial image is removed from the to-be-compared image.
- the image to be compared can also be understood as subjecting the original facial image (in terms of the facial image acquired in real time during the user's use of the mobile device) to specific image processing.
- the aforementioned bounding box may also be a rectangle, and the rectangle includes the facial contour in a manner of being tangent to the facial contour. Meanwhile, the bounding box defines the face area of the images to be compared. Constructing a bounding box tangent to the facial contour with a rectangle can simplify the creation of the images to be compared, as well as the calculation of the area and the subsequent comparison.
- step S102 may further include: acquiring a user's facial image at a preset time point as an image to be compared, wherein the preset time point includes a plurality of sub-time points with gradually decreasing time intervals. For example, from the start time when the user starts to use the mobile phone to watch the video, monitoring can be performed every 15 minutes and executed twice, that is, the time interval between the first sub-time point and the start time point, the time interval between the first sub-time point and the second sub-time point. The time interval between time points is 15 minutes. Thereafter, the frequency of monitoring can be doubled, for example at approximately 8 minute intervals and performed twice, i.e.
- the time intervals between the second sub-time point and the third sub-time point, and the time interval between the third sub-time point and the fourth sub-time point Both are 8 minutes.
- the second facial area obtained in step S104 may be compared with the first facial area obtained in step S102.
- the first facial area can represent the appropriate distance between the user and the mobile device in terms of eye health, using the principle that when taking images, the size of the near side is larger than that of the far side, when the area of the second face is larger than the area of the first face, it means The distance between the user and the mobile device is shorter than the suitable distance, that is, the user is closer to the mobile device. And when the area of the second face is larger than the area of the first face to a certain extent, it may be considered that the distance between the user and the mobile device is too short.
- step S104 involves the entire time period during which the user uses the mobile device, whenever the second facial area is obtained according to a certain preset time point for monitoring, it is compared with the first facial area. area for comparison.
- the predetermined threshold exceeded may have a default setting or be set by the user.
- the predetermined threshold may represent a ratio of the area of the second face exceeding the area of the first face, such as 5%. The smaller the value, the stricter the monitoring of the distance, and the more times the user may be prompted.
- step S104 there may be various ways of issuing a prompt message to enter the eye protection mode.
- a pop-up box with a reminder sentence may pop up on the screen of the mobile device, such as the reminder sentence "You are too close to the mobile phone, please pay attention to the health of your eyes". If the user is watching a video, you can pause video playback on the mobile device, or black out the mobile device's screen. In this way, it is possible to intervene in the user's use of the mobile device if the user becomes too close to the mobile device.
- it may further include calling a motion detection device installed on the mobile device to detect whether the mobile device is in a motion state during the user's use of the mobile device. If it is determined that the mobile device is in a motion state, a prompt message may also be issued to enter the eye protection mode.
- the motion detection device may be a gyroscope. Whether a certain motion state of the mobile device is accumulated over a certain period of time can be detected by the gyroscope. If the exercise state is accumulated, it means that it is not conducive for the user to use the mobile device at this time, such as watching videos. Such a situation may occur, for example, when a user takes a bus or a subway or other means of transportation. At this point, there can be various ways to send out the prompt message to enter the eye protection mode, which will not be repeated here. In this way, the judgment of eye health is additionally provided, and when the mobile device is in a motion state that is not suitable for viewing, the user is reminded.
- the size of the facial image that can represent the appropriate distance between the user and the mobile device is first obtained by using the principle that when the image is taken, the size of the facial image can represent the appropriate distance between the user and the mobile device, and then by combining it with the use process Compare the size of the face image acquired in real time in the mobile device to determine whether the distance between the user and the mobile device is too close.
- the distance can be realized by comparing the size of the face image acquired in real time with the reference image in a simple way. Judgment from near and far. The method is simple to implement, and is especially convenient to be applied to mobile devices.
- FIG. 4 shows a block diagram of an apparatus 400 for providing an eye protection mode for a mobile device according to an embodiment of the present disclosure.
- an apparatus 400 may include: a first image acquisition module 402 configured to acquire a user's facial image at a reference distance between the user and the mobile device as a reference image, the reference The image corresponds to the first facial area; the second image acquisition module 404 is configured to acquire the user's facial image as an image to be compared during the user's use of the mobile device, and the image to be compared corresponds to the second facial area; and compare Module 406, configured to issue a prompt message to enter the eye protection mode in response to determining that the area of the second face exceeds the area of the first face by a predetermined threshold.
- Fig. 5 shows a block diagram of an apparatus 500 for providing an eye protection mode for a mobile device according to another embodiment of the present disclosure.
- the modules 502 , 504 and 506 shown in FIG. 5 may respectively correspond to the first image acquisition module 402 , the second image acquisition module 404 and the comparison module 406 shown in FIG. 4 .
- the above-mentioned modules 502, 504 and 506 may also include the following further sub-function modules.
- the first image acquisition module 502 may include: an image capture module 5020 configured to invoke a front-facing camera installed on the mobile device to capture a facial image of the user at a reference distance; a contour detection module 5022 , configured to detect a facial contour in the facial image; and a boundary generation module 5024 configured, in response to detecting the facial contour, to generate a bounding box containing the facial contour therein, the bounding box corresponding to a boundary of the reference image.
- the bounding box may be a rectangle enclosing the contour of the face in a tangential manner to the contour of the face, and the area of the face is defined by the bounding box.
- the contour detection module 5022 may include: a judging module 5022-1 configured to determine whether the facial image is taken for the front of the user; and a feedback module 5022-2 configured to respond to the determined facial image The face image is corrected or the face image is re-taken if it is not taken for the user's front face.
- the second image acquisition module 504 may share its sub-function modules with the first image acquisition module 502 . That is, the second image acquisition module 504 may also include the above-mentioned image capture module 5020 , contour detection module 5022 and boundary generation module 5024 . The difference is that the processing objects involved in the second image acquisition module 504 are different, because the second image acquisition module 504 corresponds to the image to be compared. In FIG. 5 , for ease of illustration, the first and second image acquisition modules 502 and 504 are labeled together.
- the second image acquisition module 504 may also be configured to: acquire the facial image of the user at a preset time point as the image to be compared, wherein the preset time point includes gradually decreasing time intervals between each other multiple sub-time points.
- the apparatus 500 may further include a motion detection module 508, which includes: a calling module 5080 configured to call a motion detection device installed on the mobile device to detect movement during the user's use of the mobile device Whether the device is in motion; and a determination module 5082 configured to, in response to determining that the mobile device is in motion, send a prompt message to enter the eye protection mode.
- a motion detection module 508 includes: a calling module 5080 configured to call a motion detection device installed on the mobile device to detect movement during the user's use of the mobile device Whether the device is in motion; and a determination module 5082 configured to, in response to determining that the mobile device is in motion, send a prompt message to enter the eye protection mode.
- each of the determination module 5082 in the comparison module 506 and the motion detection module 508 may include a prompt module configured to perform one of the following: pop up a reminder statement on the screen of the mobile device pop-up box, pause video playback on the mobile device, or blacken the screen of the mobile device.
- Operations performed by each module described in conjunction with FIG. 5 may correspond to each method step described with reference to FIG. 2 and FIG. 3 , and therefore details thereof will not be repeated.
- a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the above method.
- a computer program product including a computer program, wherein the computer program implements the above method when executed by a processor.
- a mobile device including at least one processor; and a memory communicatively connected to the at least one processor, wherein the memory stores information that can be used by the at least one processor Executable instructions that, when executed by the at least one processor, cause the at least one processor to perform the method as described above.
- FIG. 6 shows a structural block diagram of a mobile device 600 according to an embodiment of the present disclosure.
- Mobile device 600 may represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices.
- the components shown herein, their connections and relationships, and their functions, are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
- the mobile device 600 includes a computing unit 601, which can perform calculations according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. Various appropriate actions and processes are performed. In the RAM 603, various programs and data required for the operation of the mobile device 600 can also be stored.
- the computing unit 601, ROM 602, and RAM 603 are connected to each other through a bus 604.
- An input/output (I/O) interface 605 is also connected to the bus 604 .
- the input unit 606 can be any type of equipment capable of inputting information to the mobile device 600, the input unit 606 can receive input digital or character information, and generate key signal input related to user settings and/or function control of the mobile device, and Can include touch screen, joystick, microphone and/or remote control.
- the output unit 607 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video/audio output terminal, and/or a vibrator.
- the communication unit 609 allows the mobile device 600 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks, and may include, but is not limited to, infrared communication devices, wireless communication transceivers and/or chipsets, such as Bluetooth TM devices, 802.11 devices, WiFi devices, WiMax devices, cellular communication devices, and/or the like.
- the computing unit 601 may be various general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of computing units 601 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc.
- the calculation unit 601 executes the various methods and processes described above.
- the method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 608 .
- part or all of the computer program can be loaded and/or installed on the mobile device 600 via the ROM 602 and/or the communication unit 609.
- computing unit 601 When a computer program is loaded into RAM 603 and executed by computing unit 601, one or more steps of the methods described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to execute the method in any other suitable manner (for example, by means of firmware).
- programmable processor can be special-purpose or general-purpose programmable processor, can receive data and instruction from storage system, at least one input device, and at least one output device, and transmit data and instruction to this storage system, this at least one input device, and this at least one output device an output device.
- Program codes for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special purpose computer, or other programmable data processing devices, so that the program codes, when executed by the processor or controller, make the functions/functions specified in the flow diagrams and/or block diagrams Action is implemented.
- the program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
- a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device.
- a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
- a machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing.
- machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
- RAM random access memory
- ROM read only memory
- EPROM or flash memory erasable programmable read only memory
- CD-ROM compact disk read only memory
- magnetic storage or any suitable combination of the foregoing.
- the systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., as a a user computer having a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system.
- the components of the system can be interconnected by any form or medium of digital data communication, eg, a communication network. Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN) and the Internet.
- steps may be reordered, added or deleted using the various forms of flow shown above.
- each step described in the present disclosure may be executed in parallel, sequentially or in a different order, as long as the desired result of the technical solution disclosed in the present disclosure can be achieved, no limitation is imposed herein.
- the acquisition, storage and application of the user's personal information involved are in compliance with relevant laws and regulations, and do not violate public order and good customs. It is the intent of this disclosure that personal information data should be managed and processed in such a way that the risk of unintentional or unauthorized access to use is minimized. Minimize risk by limiting data collection and deleting data when it is no longer needed. It should be noted that all information related to personnel in this application is collected with the knowledge and consent of the personnel.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Geometry (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Telephone Function (AREA)
- Studio Devices (AREA)
Abstract
The present disclosure relates to the technical field of image processing, in particular to an application of an image processing technology in mobile devices, and provides a method and apparatus for providing an eye protection mode, a storage medium, and a mobile device. An implementation solution is a method for providing an eye protection mode on a mobile device, comprising: acquiring, at a reference distance between a user and the mobile device, a face image of the user as a reference image, the reference image corresponding to a first face area; during use of the mobile device by the user, acquiring a face image of the user as an image to be compared, the image to be compared corresponding to a second face area; and in response to determining that the second face area exceeds the first face area by a predetermined threshold, issuing prompt information to enter an eye protection mode.
Description
相关申请的交叉引用Cross References to Related Applications
本申请要求于2021年7月7日提交的中国专利申请202110767545.5的优先权,其全部内容通过引用整体结合在本申请中。This application claims the priority of Chinese patent application 202110767545.5 filed on July 7, 2021, the entire contents of which are incorporated in this application by reference.
本公开涉及图像处理技术领域,尤其涉及图像处理技术在移动设备中的应用,具体涉及一种用于移动设备提供护眼模式的方法、装置、计算机可读存储介质、计算机程序产品以及一种移动设备。The present disclosure relates to the field of image processing technology, in particular to the application of image processing technology in mobile devices, and in particular to a method, device, computer readable storage medium, computer program product and a mobile device for providing an eye protection mode. equipment.
近年来,随着移动通信技术的发展,诸如手机或平板电脑的移动设备普及率越来越高。尤其是随着互联网在线教育的逐渐兴起,儿童或者青少年使用移动设备的频率也越来越高。与成年人相比,这类人群长时间使用移动设备所引发的用眼健康问题,显得尤为突出和明显。In recent years, with the development of mobile communication technology, the penetration rate of mobile devices such as mobile phones or tablet computers is getting higher and higher. Especially with the gradual rise of Internet online education, the frequency of children or teenagers using mobile devices is also increasing. Compared with adults, the eye health problems caused by long-term use of mobile devices by this group of people are more prominent and obvious.
在此部分中描述的方法不一定是之前已经设想到或采用的方法。除非另有指明,否则不应假定此部分中描述的任何方法仅因其包括在此部分中就被认为是现有技术。类似地,除非另有指明,否则此部分中提及的问题不应认为在任何现有技术中已被公认。The approaches described in this section are not necessarily approaches that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any approaches described in this section are admitted to be prior art solely by virtue of their inclusion in this section. Similarly, issues mentioned in this section should not be considered to have been recognized in any prior art unless otherwise indicated.
发明内容Contents of the invention
本公开提供了一种用于移动设备提供护眼模式的方法、装置、计算机可读存储介质、计算机程序产品以及一种移动设备。The present disclosure provides a method, a device, a computer-readable storage medium, a computer program product and a mobile device for providing an eye protection mode for a mobile device.
根据本公开的一方面,提供了一种用于移动设备提供护眼模式的方法,包括:在用户与移动设备之间的基准距离处获取用户的面部图像作为基准图像,所述基准图像对应于第一面部面积;在用户使用移动设备期间,获取用户的面部图像作为待比较图像,所述待比较图像对应于第二面部面积;以及响应于确定第二面部面积超出第一面部面积达预定阈值,发出提示信息以进入护眼模式。According to an aspect of the present disclosure, there is provided a method for providing an eye protection mode for a mobile device, including: acquiring a user's facial image at a reference distance between the user and the mobile device as a reference image, the reference image corresponding to The first facial area; during the user's use of the mobile device, acquiring the user's facial image as an image to be compared, the image to be compared corresponds to the second facial area; and in response to determining that the second facial area exceeds the first facial area by an amount of Predetermined threshold, send out a prompt message to enter the eye protection mode.
根据本公开的另一方面,提供了一种用于移动设备提供护眼模式的装置,包括:第一图像获取模块,被配置为在用户与移动设备之间的基准距离处获取用户的面部图像作为基准图像,所述基准图像对应于第一面部面积;第二图像获取模块,被配置为在用户 使用移动设备期间,获取用户的面部图像作为待比较图像,所述待比较图像对应于第二面部面积;以及比较模块,被配置为响应于确定第二面部面积超出第一面部面积达预定阈值,发出提示信息以进入护眼模式。According to another aspect of the present disclosure, there is provided an apparatus for providing an eye protection mode for a mobile device, including: a first image acquisition module configured to acquire a facial image of a user at a reference distance between the user and the mobile device As a reference image, the reference image corresponds to the first facial area; the second image acquisition module is configured to acquire the user's facial image as an image to be compared during the user's use of the mobile device, and the image to be compared corresponds to the first facial area two facial areas; and a comparison module configured to send a prompt message to enter the eye protection mode in response to determining that the second facial area exceeds the first facial area by a predetermined threshold.
根据本公开的另一方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使计算机执行如上所述的方法。According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the above method.
根据本公开的另一方面,提供了一种计算机程序产品,包括计算机程序,其中,所述计算机程序在被处理器执行时实现如上所述的方法。According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program, wherein the computer program implements the method as described above when executed by a processor.
根据本公开的另一方面,提供了一种移动设备,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器,其中,所述存储器存储有能够被所述至少一个处理器执行的指令,所述指令在被所述至少一个处理器执行时,使所述至少一个处理器执行如上所述的方法。According to another aspect of the present disclosure, a mobile device is provided, including: at least one processor; and a memory communicatively connected to the at least one processor, wherein the memory stores information that can be read by the at least one processor Executable instructions that, when executed by the at least one processor, cause the at least one processor to perform the method as described above.
根据本公开的一个或多个实施例,能够以简便的方式通过比较实时获取的面部图像的大小与基准图像的大小之间的差异即可实现对用户与移动设备之间距离远近的判断。According to one or more embodiments of the present disclosure, the judgment of the distance between the user and the mobile device can be realized in a simple manner by comparing the difference between the size of the face image acquired in real time and the size of the reference image.
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will be readily understood through the following description.
附图示例性地示出了实施例并且构成说明书的一部分,与说明书的文字描述一起用于讲解实施例的示例性实施方式。所示出的实施例仅出于例示的目的,并不限制权利要求的范围。在所有附图中,相同的附图标记指代类似但不一定相同的要素。The drawings exemplarily illustrate the embodiment and constitute a part of the specification, and together with the text description of the specification, serve to explain the exemplary implementation of the embodiment. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. Throughout the drawings, like reference numbers designate similar, but not necessarily identical, elements.
图1示出了根据本公开实施例的用于移动设备提供护眼模式的方法的流程图。Fig. 1 shows a flowchart of a method for providing an eye protection mode for a mobile device according to an embodiment of the present disclosure.
图2示出了根据本公开实施例的获取基准图像或待比较图像的方法的流程图。Fig. 2 shows a flowchart of a method for acquiring a reference image or an image to be compared according to an embodiment of the present disclosure.
图3示出了根据本公开实施例的生成用于面部轮廓的边界框的示意图。Fig. 3 shows a schematic diagram of generating a bounding box for a facial contour according to an embodiment of the present disclosure.
图4示出了根据本公开一实施例的用于移动设备提供护眼模式的装置的框图。Fig. 4 shows a block diagram of an apparatus for providing an eye protection mode for a mobile device according to an embodiment of the present disclosure.
图5示出了根据本公开另一实施例的用于移动设备提供护眼模式的装置的框图。Fig. 5 shows a block diagram of an apparatus for providing an eye protection mode for a mobile device according to another embodiment of the present disclosure.
图6示出了根据本公开实施例的移动设备的结构框图。Fig. 6 shows a structural block diagram of a mobile device according to an embodiment of the present disclosure.
以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识 到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
在本公开中,除非另有说明,否则使用术语“第一”、“第二”等来描述各种要素不意图限定这些要素的位置关系、时序关系或重要性关系,这种术语只是用于将一个元件与另一元件区分开。在一些示例中,第一要素和第二要素可以指向该要素的同一实例,而在某些情况下,基于上下文的描述,它们也可以指代不同实例。In the present disclosure, unless otherwise stated, using the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, temporal relationship or importance relationship of these elements, and such terms are only used for Distinguishes one element from another. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, they may also refer to different instances based on contextual description.
在本公开中对各种所述示例的描述中所使用的术语只是为了描述特定示例的目的,而并非旨在进行限制。除非上下文另外明确地表明,如果不特意限定要素的数量,则该要素可以是一个也可以是多个。此外,本公开中所使用的术语“和/或”涵盖所列出的项目中的任何一个以及全部可能的组合方式。The terminology used in describing the various described examples in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, there may be one or more elements. In addition, the term "and/or" used in the present disclosure covers any one and all possible combinations of the listed items.
相关技术中,诸如手机或平板电脑的移动设备缺乏针对某些人群(如儿童、青少年)的定向优化。例如在这类人群长时间观看手机上所播放的视频且与手机距离过近的情况下,容易造成近视等健康问题。因此,需要在使用者与移动设备之间距离过近时进行提醒。传统的解决方式往往依靠在移动设备上设置专用于距离测量的硬件设备(如红外测距设备)或者使用复杂的距离推算算法,通过直接求取使用者与移动设备之间的距离数值来判断距离远近。然而,对于移动设备而言,尤其是在需要考虑其便携性、小型化、经济性、计算性能等诸多因素的情况下,这样的解决方式可能是复杂且不实用的。In related technologies, mobile devices such as mobile phones or tablet computers lack targeted optimization for certain groups of people (such as children and teenagers). For example, when such people watch videos played on mobile phones for a long time and are too close to the mobile phone, it is easy to cause health problems such as myopia. Therefore, it is necessary to remind when the distance between the user and the mobile device is too short. Traditional solutions often rely on setting up hardware devices dedicated to distance measurement (such as infrared distance measuring equipment) on mobile devices or using complex distance calculation algorithms to determine the distance by directly calculating the distance value between the user and the mobile device near and far. However, for mobile devices, such a solution may be complicated and impractical, especially when many factors such as portability, miniaturization, economy, and computing performance need to be considered.
针对上述技术问题,根据本公开的一方面,提供了一种用于移动设备提供护眼模式的方法。下面将结合附图详细描述本公开方法的实施例。In view of the above technical problem, according to one aspect of the present disclosure, a method for providing an eye protection mode for a mobile device is provided. Embodiments of the disclosed method will be described in detail below with reference to the accompanying drawings.
图1示出了根据本公开实施例的用于移动设备提供护眼模式的方法100的流程图。如图1所示,根据本公开实施例的方法100的流程图可以包括如下步骤:Fig. 1 shows a flow chart of a method 100 for providing an eye protection mode for a mobile device according to an embodiment of the present disclosure. As shown in FIG. 1, the flow chart of a method 100 according to an embodiment of the present disclosure may include the following steps:
S102,在用户与移动设备之间的基准距离处获取用户的面部图像作为基准图像,所述基准图像对应于第一面部面积;S102, acquiring a facial image of the user at a reference distance between the user and the mobile device as a reference image, the reference image corresponding to the first facial area;
S104,在用户使用移动设备期间,获取用户的面部图像作为待比较图像,所述待比较图像对应于第二面部面积;以及S104. During the user's use of the mobile device, acquire the user's facial image as an image to be compared, and the image to be compared corresponds to the second facial area; and
S106,响应于确定第二面部面积超出第一面部面积达预定阈值,发出提示信息以进入护眼模式。S106. In response to determining that the area of the second face exceeds the area of the first face by a predetermined threshold, send a prompt message to enter the eye protection mode.
根据本公开实施例的用于移动设备提供护眼模式的方法,利用拍摄图像时近大远小的原理,首先获取能够表征用户与移动设备之间的适宜距离的面部图像的大小,然后通过将其与使用过程中实时获取的面部图像的大小进行比较,来判断用户与移动设备之间 的距离是否过近。由此,避免为了进行距离测量而使用专用于距离测量的硬件设备或使用复杂的距离推算算法,以简便的方式通过比较实时获取的面部图像的大小与基准图像之间的差异即可实现对距离远近的判断。该方法实现方式简单,尤其便于应用于移动设备。According to the method for providing an eye protection mode for a mobile device according to an embodiment of the present disclosure, by using the principle that when taking an image, the size of the facial image that can represent the appropriate distance between the user and the mobile device is first acquired, and then by It is compared with the size of the facial image acquired in real time during use to determine whether the distance between the user and the mobile device is too close. Thus, avoiding the use of hardware devices dedicated to distance measurement or the use of complex distance calculation algorithms for distance measurement, the distance can be realized by comparing the size of the face image acquired in real time with the reference image in a simple way. Judgment from near and far. The method is simple to implement, and is especially convenient to be applied to mobile devices.
下文中将结合图1至图3对上述各个步骤进行详细说明。The above steps will be described in detail below with reference to FIG. 1 to FIG. 3 .
接着参考图1,在步骤S102中,基准距离可以是指针对用眼健康而言,用户与移动设备之间的适宜距离。Referring next to FIG. 1 , in step S102 , the reference distance may refer to an appropriate distance between the user and the mobile device in terms of eye health.
本文中,移动设备可以包括诸如手机、平板电脑、笔记本电脑等带有摄像设备的便携式智能移动装置。本领域技术人员可以理解的是,本公开并不对移动设备的具体类型进行限制,只要在其上能够实施本公开所提供的方法,均涵盖在本公开的范围内。Herein, the mobile device may include a portable smart mobile device with a camera, such as a mobile phone, a tablet computer, and a notebook computer. Those skilled in the art can understand that the present disclosure does not limit the specific type of the mobile device, as long as the method provided by the present disclosure can be implemented on it, it is within the scope of the present disclosure.
基准距离可以是根据多种因素确定的。以在手机上观看视频为例,一般认为普通成年人与移动设备之间的距离大于30cm对于用眼健康而言是较为适宜的。在用户为儿童或青少年的情况下,上述适宜距离可适当地增大。此外,对于不同类型的移动设备,上述适宜距离也是可以变化的。例如对于平板电脑,上述距离也会相应更远,这是因为平板电脑的显示屏将会更大。除此之外,上述适宜距离也可以结合用户自身的使用感受来确定,例如视力正常或具有近视的用户本身的明视距离可能是不同的,因此基准距离可以是不同的用户在考虑其自身视力情况下所确定的适宜距离。The reference distance may be determined based on various factors. Taking watching videos on mobile phones as an example, it is generally believed that the distance between an ordinary adult and a mobile device is greater than 30cm for eye health. In the case that the user is a child or a teenager, the above-mentioned appropriate distance may be appropriately increased. In addition, for different types of mobile devices, the above-mentioned appropriate distance may also vary. For example, for a tablet computer, the above-mentioned distance will be correspondingly farther, because the display screen of the tablet computer will be larger. In addition, the above-mentioned appropriate distance can also be determined in combination with the user's own experience. For example, users with normal vision or nearsightedness may have different clear vision distances. Therefore, the reference distance can be determined by different users considering their own vision. The appropriate distance determined under the circumstances.
如前所述,本公开利用了拍摄图像时近大远小的原理,因此,首先获取能够表征用户与移动设备之间的上述适宜距离的面部图像,并将其设定为用于后续进行比较的标准,即基准图像。这里,可能存在的问题是,由于面部图像是拍摄到的原始图像,在其中可能包含了诸多不利于或无关于实现本公开方法的图像信息,由此可能造成后续计算上的干扰。例如在室内拍摄时,除用户的面部之外,同时也可能会将室内的家具、电器等物体拍摄在其中,而与这些物体对应的图像信息是与后续计算无关的。为此,需要对所拍摄的原始的面部图像进行有针对性的图像处理来获得为实现本公开的方法所需的基准图像。换言之,基准图像可以是将原始的面部图像经历特定的图像处理。这在下面结合图2进行具体描述。As mentioned above, the present disclosure utilizes the principle that when taking an image, the near image is larger and the far image is smaller. Therefore, the face image that can represent the above-mentioned appropriate distance between the user and the mobile device is first obtained, and set as a subsequent comparison The standard, that is, the reference image. Here, there may be a problem that since the facial image is the original image captured, it may contain a lot of image information that is not conducive to or irrelevant to the implementation of the method of the present disclosure, which may cause interference in subsequent calculations. For example, when shooting indoors, in addition to the user's face, indoor furniture, electrical appliances and other objects may also be photographed in it, and the image information corresponding to these objects is irrelevant to subsequent calculations. For this reason, targeted image processing needs to be performed on the captured original facial image to obtain the reference image required for implementing the method of the present disclosure. In other words, the reference image may be an original facial image subjected to specific image processing. This is described in detail below in conjunction with FIG. 2 .
图2示出了根据本公开实施例的获取基准图像的方法200的流程图。如图2所示,根据本公开实施例的方法200的流程图可以包括如下过程。Fig. 2 shows a flowchart of a method 200 for acquiring a reference image according to an embodiment of the present disclosure. As shown in FIG. 2 , the flowchart of a method 200 according to an embodiment of the present disclosure may include the following processes.
在步骤S202中,可以调用移动设备上安装的前置摄像设备拍摄位于基准距离处的所述用户的面部图像。In step S202, the front-facing camera installed on the mobile device may be called to capture the facial image of the user at a reference distance.
在一个示例中,根据本公开实施例的方法可以应用于移动设备的操作系统中所安装的应用程序(或嵌入在某些应用程序中的小程序)上。以该应用程序为视频播放类应用程序为例,其可以为用户提供拍摄基准图像的入口(或功能模块、条目、选项等),由此用户可以通过该入口开始进行基准图像的拍摄。之后,该应用程序可以调用移动设备上安装的前置摄像设备,例如手机的前置摄像头,拍摄位于基准距离处的所述用户的面部图像。如前所述,基准距离可以是根据多种因素确定的,在此不再赘述。In one example, the method according to the embodiment of the present disclosure may be applied to an application installed in an operating system of a mobile device (or an applet embedded in some application). Taking the application program as a video playing application program as an example, it can provide the user with an entry (or function module, item, option, etc.) for shooting a reference image, so that the user can start shooting the reference image through the entry. Afterwards, the application program can call the front-facing camera installed on the mobile device, such as the front-facing camera of the mobile phone, to capture the facial image of the user at the reference distance. As mentioned above, the reference distance may be determined according to various factors, which will not be repeated here.
在拍摄用户的面部图像之后,在步骤S204中,可以检测面部图像中的面部轮廓。After capturing the facial image of the user, in step S204, the facial contour in the facial image may be detected.
如前所述,由于本公开需要将面部图像的大小进行比较,因此,相应地需要通过检测面部图像中的面部轮廓来确定面部图像的范围以用于获知其大小。这里,本领域技术人员知晓,检测面部轮廓是人脸识别技术中的已知技术,为了避免混淆本公开的要点,在此不再赘述其细节。As mentioned above, since the present disclosure needs to compare the sizes of the facial images, accordingly, it is necessary to determine the range of the facial images by detecting the facial contours in the facial images to obtain their sizes. Here, those skilled in the art know that detecting facial contours is a known technology in face recognition technology, and in order to avoid obscuring the gist of the present disclosure, details thereof will not be repeated here.
根据一些实施例,检测面部图像中的面部轮廓的步骤S204可以进一步包括用于判断面部图像质量的步骤。考虑到有时因为拍摄角度的原因会使获取的面部图像偏向侧面而非正对用户面部,因此可以额外地设置用于判断面部图像质量的步骤以确保后续计算的精度。具体地,步骤S204可以包括子步骤S2040和S2042。在子步骤S2040中,可以确定面部图像是否是针对用户的正面所拍摄的。如果确定面部图像不是针对用户的正面所拍摄的(如“N”所示),意味着获取的面部图像质量不佳,可能影响计算面部面积的准确度,进而影响后续的比较过程,因此进程可以返回到步骤S202,重新拍摄面部图像。或者替代地,也可以通过常用的图像处理技术(例如变形、拉伸等)来校正该面部图像以获得质量较高的相对正面的图像。如果确定面部图像是针对用户的正面所拍摄的(如“Y”所示),则在步骤S2042提取面部轮廓,并且进程继续进行到步骤S206。这里,确定面部是否为正面的技术以及提取面部轮廓的技术亦属于本领域技术人员所知晓的常用的人脸识别技术,在此不再赘述。通过上述方式,能够获得用户的正面面部图像,从而保证面部面积计算的精度及后续比较过程的准确性。According to some embodiments, the step S204 of detecting facial contours in the facial image may further include a step of judging the quality of the facial image. Considering that sometimes the acquired facial image is inclined to the side instead of facing the user's face due to the shooting angle, an additional step for judging the quality of the facial image can be set to ensure the accuracy of subsequent calculations. Specifically, step S204 may include sub-steps S2040 and S2042. In sub-step S2040, it may be determined whether the face image is taken for the user's front face. If it is determined that the facial image is not taken from the front of the user (as indicated by "N"), it means that the quality of the acquired facial image is not good, which may affect the accuracy of calculating the facial area, thereby affecting the subsequent comparison process, so the process can be Return to step S202, and take another facial image. Or alternatively, the face image can also be corrected by common image processing techniques (such as deformation, stretching, etc.) to obtain a relatively frontal image with high quality. If it is determined that the facial image is taken for the user's front face (as shown by "Y"), the facial contour is extracted in step S2042, and the process proceeds to step S206. Here, the technology of determining whether the face is frontal and the technology of extracting the facial contour also belong to the commonly used face recognition technology known to those skilled in the art, and will not be repeated here. Through the above method, the user's front face image can be obtained, thereby ensuring the accuracy of the calculation of the facial area and the accuracy of the subsequent comparison process.
在通过步骤S204检测到面部图像中的面部轮廓之后,在步骤S206中,可以生成将面部轮廓包含在其中的边界框,所述边界框可以对应于基准图像的边界。这在下面结合图3进行具体描述。After detecting the facial contour in the facial image through step S204, in step S206, a bounding box containing the facial contour may be generated, and the bounding box may correspond to the boundary of the reference image. This is described in detail below in conjunction with FIG. 3 .
图3示出了根据本公开实施例的生成用于面部轮廓302的边界框304的示意图。图3所示的面部轮廓302可以是在执行步骤S204之后检测到的面部轮廓。基于该面部轮廓302,可以生成将面部轮廓302包含在其中的边界框304。所述边界框304可以对应于基 准图像300的边界。以此方式,有意地基于面部图像而创建了适于进行后续比较的基准图像,在该基准图像中剔除了原始的面部图像所包含的不相关图像信息。如前所述,基准图像可以被理解为是将原始的面部图像经历特定的图像处理。FIG. 3 shows a schematic diagram of generating a bounding box 304 for a facial contour 302 according to an embodiment of the disclosure. The facial contour 302 shown in FIG. 3 may be the facial contour detected after step S204 is performed. Based on the facial contour 302, a bounding box 304 containing the facial contour 302 therein may be generated. The bounding box 304 may correspond to the border of the reference image 300. In this way, a reference image suitable for subsequent comparison is intentionally created based on the facial image, in which irrelevant image information contained in the original facial image is eliminated. As mentioned above, the reference image can be understood as the original facial image subjected to specific image processing.
根据一些实施例,边界框304可以为矩形,所述矩形以与面部轮廓302相切的方式将面部轮廓302包含在其中。同时,边界框304限定了基准图像300的面部面积。在一个示例中,该面部面积的计算方式可以是将基准图像300投影在一坐标系中,并且获取其四个角A、B、C、D的相应坐标以计算矩形的面积。以矩形来构建与面部轮廓相切的边界框能够简化基准图像的创建,同时简化面积的计算以及后续的比较。According to some embodiments, bounding box 304 may be a rectangle that encloses facial contour 302 in a tangent manner to facial contour 302 . Meanwhile, the bounding box 304 defines the face area of the reference image 300 . In an example, the facial area can be calculated by projecting the reference image 300 in a coordinate system, and obtaining the corresponding coordinates of its four corners A, B, C, D to calculate the area of the rectangle. Constructing a bounding box tangent to the face contour as a rectangle simplifies the creation of the reference image, as well as the calculation of the area and subsequent comparison.
再次返回图1所示的方法100的流程图,在获取基准图像的步骤S102之后,在步骤S104中,可以在用户使用移动设备期间,实时地获取用户的面部图像并将其作为待比较图像。在一个示例中,使用移动设备可以包括观看移动设备上所播放的视频等需要用户进行连续观看的使用方式。Returning again to the flow chart of the method 100 shown in FIG. 1, after the step S102 of acquiring the reference image, in step S104, the user's facial image may be acquired in real time during the user's use of the mobile device and used as the image to be compared. In one example, using the mobile device may include watching a video played on the mobile device, etc., which require the user to watch continuously.
根据一些实施例,所述获取用户的面部图像作为待比较图像的步骤S104可以按照与所述获取用户的面部图像作为基准图像的步骤S102类似的方式来执行。即,步骤S104也可以包括如下的子步骤:i)调用移动设备上安装的前置摄像设备拍摄用户的面部图像;ii)检测面部图像中的面部轮廓;以及iii)响应于检测到面部轮廓,生成将面部轮廓包含在其中的边界框,所述边界框对应于待比较图像的边界。步骤S104中的子步骤i)可以是在步骤S102之后由诸如前述的应用程序自动执行的。According to some embodiments, the step S104 of acquiring the user's facial image as the image to be compared may be performed in a manner similar to the step S102 of acquiring the user's facial image as the reference image. That is, step S104 may also include the following sub-steps: i) calling the front-facing camera installed on the mobile device to take a facial image of the user; ii) detecting the facial contour in the facial image; and iii) in response to detecting the facial contour, A bounding box is generated enclosing the contour of the face, the bounding box corresponding to the boundaries of the images to be compared. Sub-step i) in step S104 may be automatically executed by an application such as the aforementioned one after step S102.
由于以上已经结合图2和图3详细描述了上述子步骤的细节,在此不再赘述。类似的,图3所示的面部轮廓302此时可以代表在执行上述子步骤ii)之后检测到的面部轮廓。基于该面部轮廓302,可以生成将面部轮廓302包含在其中的边界框304。此时,附图标记300可以代表待比较图像,其边界由边界框304限定。类似的,有意地基于面部图像而创建了适于进行后续比较的待比较图像,在该待比较图像中剔除了原始的面部图像所包含的不相关图像信息。同样类似的,待比较图像也可以被理解为是将原始的面部图像(就用户使用移动设备期间所实时获取的面部图像而言)经历特定的图像处理。Since the details of the above sub-steps have been described in detail above with reference to FIG. 2 and FIG. 3 , details are not repeated here. Similarly, the facial contour 302 shown in FIG. 3 at this time may represent the detected facial contour after performing the above sub-step ii). Based on the facial contour 302, a bounding box 304 containing the facial contour 302 therein may be generated. At this time, reference numeral 300 may represent an image to be compared, the boundary of which is defined by a bounding box 304 . Similarly, a to-be-compared image suitable for subsequent comparison is intentionally created based on the facial image, and irrelevant image information contained in the original facial image is removed from the to-be-compared image. Similarly, the image to be compared can also be understood as subjecting the original facial image (in terms of the facial image acquired in real time during the user's use of the mobile device) to specific image processing.
根据一些实施例,上述边界框也可以为矩形,所述矩形以与面部轮廓相切的方式将面部轮廓包含在其中。同时,边界框限定了待比较图像的面部面积。以矩形来构建与面部轮廓相切的边界框能够简化待比较图像的创建,同时简化面积的计算以及后续的比较。According to some embodiments, the aforementioned bounding box may also be a rectangle, and the rectangle includes the facial contour in a manner of being tangent to the facial contour. Meanwhile, the bounding box defines the face area of the images to be compared. Constructing a bounding box tangent to the facial contour with a rectangle can simplify the creation of the images to be compared, as well as the calculation of the area and the subsequent comparison.
根据一些实施例,步骤S102可以进一步包括:在预设时间点获取用户的面部图像作为待比较图像,其中,预设时间点包括相互之间时间间隔逐渐减小的多个子时间点。例 如,从用户开始使用手机观看视频的起始时间起,可以每15分钟进行监测并执行两次,即第一子时间点与起始时间点的时间间隔、第一子时间点与第二子时间点的时间间隔均为15分钟。此后,可以将监测频率加倍,例如以约8分钟的时间间隔进行监测并执行两次,即第二子时间点与第三子时间点、第三子时间点与第四子时间点的时间间隔均为8分钟。随着用户使用移动设备的时间变长,用户可能因为疲劳等原因而更加不易保持与移动设备之间的适宜距离。为此,通过随着使用时间的增长而更频繁地监测用户与移动设备之间的距离,能够实现更及时和准确的提醒,由此减少不健康的用眼时间。According to some embodiments, step S102 may further include: acquiring a user's facial image at a preset time point as an image to be compared, wherein the preset time point includes a plurality of sub-time points with gradually decreasing time intervals. For example, from the start time when the user starts to use the mobile phone to watch the video, monitoring can be performed every 15 minutes and executed twice, that is, the time interval between the first sub-time point and the start time point, the time interval between the first sub-time point and the second sub-time point. The time interval between time points is 15 minutes. Thereafter, the frequency of monitoring can be doubled, for example at approximately 8 minute intervals and performed twice, i.e. the time intervals between the second sub-time point and the third sub-time point, and the time interval between the third sub-time point and the fourth sub-time point Both are 8 minutes. As the time for the user to use the mobile device becomes longer, it may be more difficult for the user to maintain an appropriate distance from the mobile device due to reasons such as fatigue. For this reason, by monitoring the distance between the user and the mobile device more frequently as the usage time increases, more timely and accurate reminders can be achieved, thereby reducing unhealthy eye use time.
在通过步骤S104获取待比较图像之后,在步骤S106中,可以将在步骤S104中获得的第二面部面积与在步骤S102中获得的第一面部面积进行比较。由于第一面部面积能够表征用户与移动设备之间在用眼健康上的适宜距离,利用拍摄图像时近大远小的原理,当第二面部面积大于第一面部面积时,则意味着用户与移动设备之间的距离比该适宜距离短,也即离移动设备更近。而当该第二面部面积大于第一面部面积达到一定程度时,则可以视为用户与移动设备之间的距离过近。After the image to be compared is acquired in step S104, in step S106, the second facial area obtained in step S104 may be compared with the first facial area obtained in step S102. Since the first facial area can represent the appropriate distance between the user and the mobile device in terms of eye health, using the principle that when taking images, the size of the near side is larger than that of the far side, when the area of the second face is larger than the area of the first face, it means The distance between the user and the mobile device is shorter than the suitable distance, that is, the user is closer to the mobile device. And when the area of the second face is larger than the area of the first face to a certain extent, it may be considered that the distance between the user and the mobile device is too short.
在一个示例中,由于步骤S104涉及在用户使用移动设备期间的整个时间段,每当根据用于监测的某个预设时间点而获得到该第二面部面积时,就将其与第一面部面积进行比较。所述超出的预定阈值可以具有默认设置或者由用户来设置。例如,该预定阈值可以表示第二面部面积超出第一面部面积的比例,如5%等。数值越小意味着对于距离的监测越加严格,对用户的提示次数也可能越多。In one example, since step S104 involves the entire time period during which the user uses the mobile device, whenever the second facial area is obtained according to a certain preset time point for monitoring, it is compared with the first facial area. area for comparison. The predetermined threshold exceeded may have a default setting or be set by the user. For example, the predetermined threshold may represent a ratio of the area of the second face exceeding the area of the first face, such as 5%. The smaller the value, the stricter the monitoring of the distance, and the more times the user may be prompted.
根据一些实施例,在步骤S104中,发出提示信息以进入护眼模式的方式可以是多种多样的。例如,可以在移动设备的屏幕上弹出带有提醒语句的弹出框,诸如提示“您与手机距离过近,请注意用眼健康”等提醒语句。如果用户正在观看视频,则可以使移动设备上的视频播放暂停、或者使移动设备的屏幕黑屏。以此方式,能够在用户与移动设备之间的距离过近的情况下干预其对移动设备的使用。According to some embodiments, in step S104, there may be various ways of issuing a prompt message to enter the eye protection mode. For example, a pop-up box with a reminder sentence may pop up on the screen of the mobile device, such as the reminder sentence "You are too close to the mobile phone, please pay attention to the health of your eyes". If the user is watching a video, you can pause video playback on the mobile device, or black out the mobile device's screen. In this way, it is possible to intervene in the user's use of the mobile device if the user becomes too close to the mobile device.
根据本公开方法的一些实施例,还可以包括在用户使用移动设备期间,调用移动设备上安装的运动检测设备检测移动设备是否处于运动状态。如果确定移动设备处于运动状态,也可以发出提示信息以进入护眼模式。According to some embodiments of the disclosed method, it may further include calling a motion detection device installed on the mobile device to detect whether the mobile device is in a motion state during the user's use of the mobile device. If it is determined that the mobile device is in a motion state, a prompt message may also be issued to enter the eye protection mode.
例如,该运动检测设备可以是陀螺仪。通过陀螺仪可以检测出移动设备的某种运动状态是否在一定时间上被累积。如果该运动状态是被累积的,则意味着此时并不利于用户进行移动设备的使用,例如观看视频。这样的情形例如可能发生在用户乘坐公交或地铁等交通工具时。此时,发出提示信息以进入护眼模式的方式也可以是多种多样,这里 不再赘述。以此方式,额外地提供了对于用眼健康的判断,当移动设备处于不适于观看的运动状态时,对用户进行提醒。For example, the motion detection device may be a gyroscope. Whether a certain motion state of the mobile device is accumulated over a certain period of time can be detected by the gyroscope. If the exercise state is accumulated, it means that it is not conducive for the user to use the mobile device at this time, such as watching videos. Such a situation may occur, for example, when a user takes a bus or a subway or other means of transportation. At this point, there can be various ways to send out the prompt message to enter the eye protection mode, which will not be repeated here. In this way, the judgment of eye health is additionally provided, and when the mobile device is in a motion state that is not suitable for viewing, the user is reminded.
如前所述,根据本公开实施例的方法,利用拍摄图像时近大远小的原理,首先获取能够表征用户与移动设备之间的适宜距离的面部图像的大小,然后通过将其与使用过程中实时获取的面部图像的大小进行比较,来判断用户与移动设备之间的距离是否过近。由此,避免为了进行距离测量而使用专用于距离测量的硬件设备或使用复杂的距离推算算法,以简便的方式通过比较实时获取的面部图像的大小与基准图像之间的差异即可实现对距离远近的判断。该方法实现方式简单,尤其便于应用于移动设备。As mentioned above, according to the method of the embodiment of the present disclosure, the size of the facial image that can represent the appropriate distance between the user and the mobile device is first obtained by using the principle that when the image is taken, the size of the facial image can represent the appropriate distance between the user and the mobile device, and then by combining it with the use process Compare the size of the face image acquired in real time in the mobile device to determine whether the distance between the user and the mobile device is too close. Thus, avoiding the use of hardware devices dedicated to distance measurement or the use of complex distance calculation algorithms for distance measurement, the distance can be realized by comparing the size of the face image acquired in real time with the reference image in a simple way. Judgment from near and far. The method is simple to implement, and is especially convenient to be applied to mobile devices.
图4示出了根据本公开一实施例的用于移动设备提供护眼模式的装置400的框图。如图4所示,根据本公开实施例的装置400可以包括:第一图像获取模块402,被配置为在用户与移动设备之间的基准距离处获取用户的面部图像作为基准图像,所述基准图像对应于第一面部面积;第二图像获取模块404,被配置为在用户使用移动设备期间,获取用户的面部图像作为待比较图像,所述待比较图像对应于第二面部面积;以及比较模块406,被配置为响应于确定第二面部面积超出第一面部面积达预定阈值,发出提示信息以进入护眼模式。Fig. 4 shows a block diagram of an apparatus 400 for providing an eye protection mode for a mobile device according to an embodiment of the present disclosure. As shown in FIG. 4 , an apparatus 400 according to an embodiment of the present disclosure may include: a first image acquisition module 402 configured to acquire a user's facial image at a reference distance between the user and the mobile device as a reference image, the reference The image corresponds to the first facial area; the second image acquisition module 404 is configured to acquire the user's facial image as an image to be compared during the user's use of the mobile device, and the image to be compared corresponds to the second facial area; and compare Module 406, configured to issue a prompt message to enter the eye protection mode in response to determining that the area of the second face exceeds the area of the first face by a predetermined threshold.
上述模块402、404及406所执行的操作与参考图1描述的步骤S102、S104及S106相对应,因此不再赘述其细节。The operations performed by the above modules 402 , 404 and 406 correspond to the steps S102 , S104 and S106 described with reference to FIG. 1 , so details thereof will not be repeated here.
图5示出了根据本公开另一实施例的用于移动设备提供护眼模式的装置500的框图。图5所示的模块502、504及506可以分别对应于图4所示的第一图像获取模块402、第二图像获取模块404及比较模块406。除此之外,上述模块502、504及506还可以包括如下进一步的子功能模块。Fig. 5 shows a block diagram of an apparatus 500 for providing an eye protection mode for a mobile device according to another embodiment of the present disclosure. The modules 502 , 504 and 506 shown in FIG. 5 may respectively correspond to the first image acquisition module 402 , the second image acquisition module 404 and the comparison module 406 shown in FIG. 4 . In addition, the above-mentioned modules 502, 504 and 506 may also include the following further sub-function modules.
在一些实施例中,第一图像获取模块502可以包括:图像拍摄模块5020,被配置为调用移动设备上安装的前置摄像设备拍摄位于基准距离处的所述用户的面部图像;轮廓检测模块5022,被配置为检测面部图像中的面部轮廓;以及边界生成模块5024,被配置为响应于检测到面部轮廓,生成将面部轮廓包含在其中的边界框,所述边界框对应于基准图像的边界。In some embodiments, the first image acquisition module 502 may include: an image capture module 5020 configured to invoke a front-facing camera installed on the mobile device to capture a facial image of the user at a reference distance; a contour detection module 5022 , configured to detect a facial contour in the facial image; and a boundary generation module 5024 configured, in response to detecting the facial contour, to generate a bounding box containing the facial contour therein, the bounding box corresponding to a boundary of the reference image.
在一些实施例中,边界框可以为矩形,所述矩形以与面部轮廓相切的方式将面部轮廓包含在其中,并且面部面积由该边界框限定。In some embodiments, the bounding box may be a rectangle enclosing the contour of the face in a tangential manner to the contour of the face, and the area of the face is defined by the bounding box.
在一些实施例中,轮廓检测模块5022可以包括:判断模块5022-1,被配置为确定面部图像是否是针对用户的正面所拍摄的;以及反馈模块5022-2,被配置为响应于确定面部图像不是针对用户的正面所拍摄的,校正面部图像或重新拍摄面部图像。In some embodiments, the contour detection module 5022 may include: a judging module 5022-1 configured to determine whether the facial image is taken for the front of the user; and a feedback module 5022-2 configured to respond to the determined facial image The face image is corrected or the face image is re-taken if it is not taken for the user's front face.
在一些实施例中,第二图像获取模块504可以与第一图像获取模块502共享其子功能模块。即,第二图像获取模块504也可以包括上述的图像拍摄模块5020、轮廓检测模块5022和边界生成模块5024。不同之处在于第二图像获取模块504所涉及的处理对象不同,因为第二图像获取模块504是与待比较图像相对应的。在图5中为了便于图示,将第一、第二图像获取模块502、504标记在一起。In some embodiments, the second image acquisition module 504 may share its sub-function modules with the first image acquisition module 502 . That is, the second image acquisition module 504 may also include the above-mentioned image capture module 5020 , contour detection module 5022 and boundary generation module 5024 . The difference is that the processing objects involved in the second image acquisition module 504 are different, because the second image acquisition module 504 corresponds to the image to be compared. In FIG. 5 , for ease of illustration, the first and second image acquisition modules 502 and 504 are labeled together.
在一些实施例中,第二图像获取模块504还可以被配置为:在预设时间点获取用户的面部图像作为待比较图像,其中,所述预设时间点包括相互之间时间间隔逐渐减小的多个子时间点。In some embodiments, the second image acquisition module 504 may also be configured to: acquire the facial image of the user at a preset time point as the image to be compared, wherein the preset time point includes gradually decreasing time intervals between each other multiple sub-time points.
在一些实施例中,根据本公开实施例的装置500还可以包括运动检测模块508,其包括:调用模块5080,被配置为在用户使用移动设备期间,调用移动设备上安装的运动检测设备检测移动设备是否处于运动状态;以及确定模块5082,被配置为响应于确定移动设备处于运动状态,发出提示信息以进入护眼模式。In some embodiments, the apparatus 500 according to the embodiment of the present disclosure may further include a motion detection module 508, which includes: a calling module 5080 configured to call a motion detection device installed on the mobile device to detect movement during the user's use of the mobile device Whether the device is in motion; and a determination module 5082 configured to, in response to determining that the mobile device is in motion, send a prompt message to enter the eye protection mode.
在一些实施例中,比较模块506和运动检测模块508中的确定模块5082每个都可以包括提示模块,所述提示模块被配置为执行下列之一:在移动设备的屏幕上弹出带有提醒语句的弹出框、使移动设备上的视频播放暂停、或者使移动设备的屏幕黑屏。In some embodiments, each of the determination module 5082 in the comparison module 506 and the motion detection module 508 may include a prompt module configured to perform one of the following: pop up a reminder statement on the screen of the mobile device pop-up box, pause video playback on the mobile device, or blacken the screen of the mobile device.
结合图5描述的各个模块所执行的操作可以对应于参考图2、图3所描述的各个方法步骤,因此不再赘述其细节。Operations performed by each module described in conjunction with FIG. 5 may correspond to each method step described with reference to FIG. 2 and FIG. 3 , and therefore details thereof will not be repeated.
根据本公开的另一方面,还提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行如上所述的方法。According to another aspect of the present disclosure, there is also provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the above method.
根据本公开的另一方面,还提供了一种计算机程序产品,包括计算机程序,其中,所述计算机程序在被处理器执行时实现如上所述的方法。According to another aspect of the present disclosure, there is also provided a computer program product, including a computer program, wherein the computer program implements the above method when executed by a processor.
根据本公开的另一方面,还提供了一种移动设备,包括至少一个处理器;以及与所述至少一个处理器通信连接的存储器,其中,所述存储器存储有能够被所述至少一个处理器执行的指令,所述指令在被所述至少一个处理器执行时,使所述至少一个处理器执行如上所述的方法。According to another aspect of the present disclosure, there is also provided a mobile device, including at least one processor; and a memory communicatively connected to the at least one processor, wherein the memory stores information that can be used by the at least one processor Executable instructions that, when executed by the at least one processor, cause the at least one processor to perform the method as described above.
图6示出了根据本公开实施例的移动设备600的结构框图。移动设备600可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类 似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。FIG. 6 shows a structural block diagram of a mobile device 600 according to an embodiment of the present disclosure. Mobile device 600 may represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
如图6所示,移动设备600包括计算单元601,其可以根据存储在只读存储器(ROM)602中的计算机程序或者从存储单元608加载到随机访问存储器(RAM)603中的计算机程序,来执行各种适当的动作和处理。在RAM 603中,还可存储移动设备600操作所需的各种程序和数据。计算单元601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6 , the mobile device 600 includes a computing unit 601, which can perform calculations according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. Various appropriate actions and processes are performed. In the RAM 603, various programs and data required for the operation of the mobile device 600 can also be stored. The computing unit 601, ROM 602, and RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to the bus 604 .
移动设备600中的多个部件连接至I/O接口605,包括:输入单元606、输出单元607、存储单元608以及通信单元609。输入单元606可以是能向移动设备600输入信息的任何类型的设备,输入单元606可以接收输入的数字或字符信息,以及产生与移动设备的用户设置和/或功能控制有关的键信号输入,并且可以包括触摸屏、操作杆、麦克风和/或遥控器。输出单元607可以是能呈现信息的任何类型的设备,并且可以包括但不限于显示器、扬声器、视频/音频输出终端和/或振动器。通信单元609允许移动设备600通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据,并且可以包括但不限于红外通信设备、无线通信收发机和/或芯片组,例如蓝牙
TM设备、802.11设备、WiFi设备、WiMax设备、蜂窝通信设备和/或类似物。
Multiple components in the mobile device 600 are connected to the I/O interface 605 , including: an input unit 606 , an output unit 607 , a storage unit 608 and a communication unit 609 . The input unit 606 can be any type of equipment capable of inputting information to the mobile device 600, the input unit 606 can receive input digital or character information, and generate key signal input related to user settings and/or function control of the mobile device, and Can include touch screen, joystick, microphone and/or remote control. The output unit 607 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video/audio output terminal, and/or a vibrator. The communication unit 609 allows the mobile device 600 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks, and may include, but is not limited to, infrared communication devices, wireless communication transceivers and/or chipsets, such as Bluetooth TM devices, 802.11 devices, WiFi devices, WiMax devices, cellular communication devices, and/or the like.
计算单元601可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元601的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元601执行上文所描述的各个方法和处理。例如,在一些实施例中,所述方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元608。在一些实施例中,计算机程序的部分或者全部可以经由ROM 602和/或通信单元609而被载入和/或安装到移动设备600上。当计算机程序加载到RAM 603并由计算单元601执行时,可以执行上文描述的方法的一个或多个步骤。备选地,在其他实施例中,计算单元601可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行所述方法。The computing unit 601 may be various general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of computing units 601 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. The calculation unit 601 executes the various methods and processes described above. For example, in some embodiments, the method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 608 . In some embodiments, part or all of the computer program can be loaded and/or installed on the mobile device 600 via the ROM 602 and/or the communication unit 609. When a computer program is loaded into RAM 603 and executed by computing unit 601, one or more steps of the methods described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to execute the method in any other suitable manner (for example, by means of firmware).
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中, 该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein above can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips Implemented in a system of systems (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor Can be special-purpose or general-purpose programmable processor, can receive data and instruction from storage system, at least one input device, and at least one output device, and transmit data and instruction to this storage system, this at least one input device, and this at least one output device an output device.
用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program codes for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special purpose computer, or other programmable data processing devices, so that the program codes, when executed by the processor or controller, make the functions/functions specified in the flow diagrams and/or block diagrams Action is implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., as a a user computer having a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system can be interconnected by any form or medium of digital data communication, eg, a communication network. Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN) and the Internet.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本公开中记载的各步骤可以并行地执行、也可以顺序地或以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, each step described in the present disclosure may be executed in parallel, sequentially or in a different order, as long as the desired result of the technical solution disclosed in the present disclosure can be achieved, no limitation is imposed herein.
本公开的技术方案中,所涉及的用户个人信息的获取,存储和应用,均符合相关法律法规的规定,且不违背公序良俗。本公开的意图是,应以使无意或未经授权的使用访问风险最小化的方式来管理和处理个人信息数据。通过限制数据收集并在不再需要时删 除数据,从而将风险降到最低。需要说明的是,本申请中与人员有关的所有信息,均在人员知情且同意的情况下收集。In the technical solution of the present disclosure, the acquisition, storage and application of the user's personal information involved are in compliance with relevant laws and regulations, and do not violate public order and good customs. It is the intent of this disclosure that personal information data should be managed and processed in such a way that the risk of unintentional or unauthorized access to use is minimized. Minimize risk by limiting data collection and deleting data when it is no longer needed. It should be noted that all information related to personnel in this application is collected with the knowledge and consent of the personnel.
虽然已经参照附图描述了本公开的实施例或示例,但应理解,上述的方法、系统和设备仅仅是示例性的实施例或示例,本发明的范围并不由这些实施例或示例限制,而是仅由授权后的权利要求书及其等同范围来限定。实施例或示例中的各种要素可以被省略或者可由其等同要素替代。此外,可以通过不同于本公开中描述的次序来执行各步骤。进一步地,可以以各种方式组合实施例或示例中的各种要素。重要的是随着技术的演进,在此描述的很多要素可以由本公开之后出现的等同要素进行替换。Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but It is limited only by the appended claims and their equivalents. Various elements in the embodiments or examples may be omitted or replaced by equivalent elements thereof. Also, steps may be performed in an order different from that described in the present disclosure. Further, various elements in the embodiments or examples can be combined in various ways. Importantly, as technology advances, many of the elements described herein may be replaced by equivalent elements appearing after this disclosure.
Claims (20)
- 一种用于移动设备提供护眼模式的方法,包括:A method for providing an eye protection mode for a mobile device, comprising:在用户与移动设备之间的基准距离处获取所述用户的面部图像作为基准图像,所述基准图像对应于第一面部面积;acquiring a facial image of the user at a reference distance between the user and the mobile device as a reference image, the reference image corresponding to a first facial area;在所述用户使用所述移动设备期间,获取所述用户的面部图像作为待比较图像,所述待比较图像对应于第二面部面积;以及During the user's use of the mobile device, acquiring a facial image of the user as an image to be compared, the image to be compared corresponds to a second facial area; and响应于确定所述第二面部面积超出所述第一面部面积达预定阈值,发出提示信息以进入所述护眼模式。In response to determining that the area of the second face exceeds the area of the first face by a predetermined threshold, a prompt message is issued to enter the eye protection mode.
- 如权利要求1所述的方法,其中,所述获取所述用户的面部图像作为基准图像包括:The method according to claim 1, wherein said obtaining the facial image of the user as a reference image comprises:调用所述移动设备上安装的前置摄像设备拍摄位于所述基准距离处的所述用户的面部图像;Calling the front-facing camera installed on the mobile device to take a facial image of the user at the reference distance;检测所述面部图像中的面部轮廓;以及detecting facial contours in the facial image; and响应于检测到所述面部轮廓,生成将所述面部轮廓包含在其中的第一边界框,所述第一边界框对应于所述基准图像的边界。In response to detecting the facial contour, a first bounding box containing the facial contour is generated, the first bounding box corresponding to a boundary of the reference image.
- 如权利要求2所述的方法,其中,所述检测所述面部图像中的面部轮廓包括:The method of claim 2, wherein said detection of facial contours in said facial image comprises:确定所述面部图像是否是针对所述用户的正面所拍摄的;以及determining whether the facial image was taken for the user's front face; and响应于确定所述面部图像不是针对所述用户的正面所拍摄的,校正所述面部图像或重新拍摄所述面部图像。In response to determining that the facial image was not taken for a front face of the user, correcting the facial image or retaking the facial image.
- 如权利要求2所述的方法,其中,所述获取所述用户的面部图像作为待比较图像包括:The method according to claim 2, wherein said obtaining the facial image of the user as an image to be compared comprises:调用所述移动设备上安装的前置摄像设备拍摄所述用户的面部图像;Calling the front-facing camera installed on the mobile device to capture the user's facial image;检测所述面部图像中的面部轮廓;以及detecting facial contours in the facial image; and响应于检测到所述面部轮廓,生成将所述面部轮廓包含在其中的第二边界框,所述第二边界框对应于所述待比较图像的边界。In response to detecting the facial contour, a second bounding box containing the facial contour is generated, the second bounding box corresponding to a boundary of the images to be compared.
- 如权利要求4所述的方法,其中,所述第一边界框和所述第二边界框中的每个为矩形,所述矩形以与所述面部轮廓相切的方式将所述面部轮廓包含在其中,并且The method of claim 4, wherein each of the first bounding box and the second bounding box is a rectangle that encloses the facial contour in a tangent manner to the facial contour. in it, and其中,所述第一面部面积由所述第一边界框限定,且所述第二面部面积由所述第二边界框限定。Wherein, the first facial area is bounded by the first bounding box, and the second facial area is bounded by the second bounding box.
- 如权利要求1所述的方法,其中,所述在所述用户使用所述移动设备期间,获取所述用户的面部图像作为待比较图像,包括:The method according to claim 1, wherein said acquiring the facial image of the user as the image to be compared during the use of the mobile device by the user comprises:在预设时间点获取所述用户的面部图像作为待比较图像,其中,所述预设时间点包括相互之间时间间隔逐渐减小的多个子时间点。The facial image of the user is acquired at a preset time point as an image to be compared, wherein the preset time point includes a plurality of sub-time points with gradually decreasing time intervals between them.
- 如权利要求1所述的方法,还包括:The method of claim 1, further comprising:在所述用户使用所述移动设备期间,调用所述移动设备上安装的运动检测设备检测所述移动设备是否处于运动状态;以及During the user's use of the mobile device, calling a motion detection device installed on the mobile device to detect whether the mobile device is in motion; and响应于确定所述移动设备处于所述运动状态,发出所述提示信息以进入所述护眼模式。In response to determining that the mobile device is in the motion state, sending the prompt message to enter the eye protection mode.
- 如权利要求1或7所述的方法,其中,所述发出提示信息以进入所述护眼模式包括下列之一:在所述移动设备的屏幕上弹出带有提醒语句的弹出框、使所述移动设备上的视频播放暂停、或者使所述移动设备的屏幕黑屏。The method according to claim 1 or 7, wherein the sending out a prompt message to enter the eye protection mode comprises one of the following: popping up a pop-up box with a reminder sentence on the screen of the mobile device, making the Video playback on the mobile device is paused, or the screen of the mobile device is blacked out.
- 一种用于移动设备提供护眼模式的装置,包括:A device for providing an eye protection mode for a mobile device, comprising:第一图像获取模块,被配置为在用户与移动设备之间的基准距离处获取所述用户的面部图像作为基准图像,所述基准图像对应于第一面部面积;A first image acquisition module configured to acquire a facial image of the user at a reference distance between the user and the mobile device as a reference image, the reference image corresponding to a first facial area;第二图像获取模块,被配置为在所述用户使用所述移动设备期间,获取所述用户的面部图像作为待比较图像,所述待比较图像对应于第二面部面积;以及The second image acquisition module is configured to acquire the user's facial image as an image to be compared during the user's use of the mobile device, and the image to be compared corresponds to a second facial area; and比较模块,被配置为响应于确定所述第二面部面积超出所述第一面部面积达预定阈值,发出提示信息以进入所述护眼模式。The comparison module is configured to, in response to determining that the area of the second face exceeds the area of the first face by a predetermined threshold, send a prompt message to enter the eye protection mode.
- 如权利要求9所述的装置,其中,所述第一图像获取模块包括:The device according to claim 9, wherein the first image acquisition module comprises:图像拍摄模块,被配置为调用所述移动设备上安装的前置摄像设备拍摄位于所述基准距离处的所述用户的面部图像;An image capturing module configured to call a front-facing camera installed on the mobile device to capture a facial image of the user at the reference distance;轮廓检测模块,被配置为检测所述面部图像中的面部轮廓;以及a contour detection module configured to detect facial contours in the facial image; and边界生成模块,被配置为响应于检测到所述面部轮廓,生成将所述面部轮廓包含在其中的第一边界框,所述第一边界框对应于所述基准图像的边界。A boundary generating module configured to, in response to detecting the facial contour, generate a first bounding box containing the facial contour therein, the first bounding box corresponding to a boundary of the reference image.
- 如权利要求10所述的装置,其中,所述轮廓检测模块包括:The apparatus of claim 10, wherein the contour detection module comprises:判断模块,被配置为确定所述面部图像是否是针对所述用户的正面所拍摄的;以及a judging module configured to determine whether the facial image is taken against the user's front face; and反馈模块,被配置为响应于确定所述面部图像不是针对所述用户的正面所拍摄的,校正所述面部图像或重新拍摄所述面部图像。A feedback module configured to correct the facial image or recapture the facial image in response to determining that the facial image was not taken for the user's front face.
- 如权利要求10所述的装置,其中,所述第二图像获取模块包括:The apparatus of claim 10, wherein the second image acquisition module comprises:所述图像拍摄模块,被配置为调用所述移动设备上安装的前置摄像设备拍摄所述用户的面部图像;The image capture module is configured to call the front camera installed on the mobile device to capture the user's facial image;所述轮廓检测模块,被配置为检测所述面部图像中的面部轮廓;以及the contour detection module configured to detect facial contours in the facial image; and所述边界生成模块,被配置为响应于检测到所述面部轮廓,生成将所述面部轮廓包含在其中的第二边界框,所述第二边界框对应于所述待比较图像的边界。The boundary generating module is configured to, in response to detecting the facial contour, generate a second bounding box containing the facial contour therein, the second bounding box corresponding to the boundary of the images to be compared.
- 如权利要求12所述的装置,其中,所述第一边界框和所述第二边界框中的每个为矩形,所述矩形以与所述面部轮廓相切的方式将所述面部轮廓包含在其中,并且The apparatus of claim 12 , wherein each of the first bounding box and the second bounding box is a rectangle that encloses the facial contour in a tangent manner to the facial contour. in it, and其中,所述第一面部面积由所述第一边界框限定,且所述第二面部面积由所述第二边界框限定。Wherein, the first facial area is bounded by the first bounding box, and the second facial area is bounded by the second bounding box.
- 如权利要求9所述的装置,其中,所述第二图像获取模块还被配置为:在预设时间点获取所述用户的面部图像作为待比较图像,其中,所述预设时间点包括相互之间时间间隔逐渐减小的多个子时间点。The device according to claim 9, wherein the second image acquisition module is further configured to: acquire the facial image of the user at a preset time point as an image to be compared, wherein the preset time point includes mutual Multiple sub-time points with gradually decreasing time intervals between them.
- 如权利要求9所述的装置,其中,所述比较模块包括提示模块,所述提示模块被配置为执行下列之一:在所述移动设备的屏幕上弹出带有提醒语句的弹出框、使所述移动设备上的视频播放暂停、或者使所述移动设备的屏幕黑屏。The apparatus according to claim 9, wherein the comparison module includes a prompt module, and the prompt module is configured to perform one of the following: pop up a pop-up box with a reminder sentence on the screen of the mobile device, make the The video playback on the mobile device is paused, or the screen of the mobile device is blacked out.
- 如权利要求1所述的装置,还包括运动检测模块,所述运动检测模块包括:The apparatus of claim 1, further comprising a motion detection module, the motion detection module comprising:调用模块,被配置为在所述用户使用所述移动设备期间,调用所述移动设备上安装的运动检测设备检测所述移动设备是否处于运动状态;以及A calling module configured to call a motion detection device installed on the mobile device to detect whether the mobile device is in a motion state during the user's use of the mobile device; and确定模块,被配置为响应于确定所述移动设备处于所述运动状态,发出所述提示信息以进入护眼模式。The determination module is configured to, in response to determining that the mobile device is in the motion state, send the prompt information to enter the eye protection mode.
- 如权利要求16所述的装置,其中,所述确定模块包括提示模块,所述提示模块被配置为执行下列之一:在所述移动设备的屏幕上弹出带有提醒语句的弹出框、使所述移动设备上的视频播放暂停、或者使所述移动设备的屏幕黑屏。The apparatus according to claim 16, wherein the determination module includes a prompt module, and the prompt module is configured to perform one of the following: pop up a pop-up box with a reminder sentence on the screen of the mobile device, make the The video playback on the mobile device is paused, or the screen of the mobile device is blacked out.
- 一种移动设备,包括:A mobile device comprising:至少一个处理器;以及at least one processor; and与所述至少一个处理器通信连接的存储器,a memory communicatively coupled to the at least one processor,其中,所述存储器存储有能够被所述至少一个处理器执行的指令,所述指令在被所述至少一个处理器执行时,使所述至少一个处理器执行如权利要求1-8中任一项所述的方法。Wherein, the memory stores instructions capable of being executed by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is executed as described in any one of claims 1-8. method described in the item.
- 一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行如权利要求1-8中任一项所述的方法。A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.
- 一种计算机程序产品,包括计算机程序,其中,所述计算机程序在被处理器执行时实现如权利要求1-8中任一项所述的方法。A computer program product comprising a computer program, wherein said computer program implements the method according to any one of claims 1-8 when executed by a processor.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110767545.5 | 2021-07-07 | ||
CN202110767545.5A CN113486802A (en) | 2021-07-07 | 2021-07-07 | Method and device for providing eye protection mode, storage medium and mobile device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023279777A1 true WO2023279777A1 (en) | 2023-01-12 |
Family
ID=77940844
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/082595 WO2023279777A1 (en) | 2021-07-07 | 2022-03-23 | Method and apparatus for providing eye protection mode, storage medium, and mobile device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113486802A (en) |
WO (1) | WO2023279777A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113486802A (en) * | 2021-07-07 | 2021-10-08 | 北京百度网讯科技有限公司 | Method and device for providing eye protection mode, storage medium and mobile device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104252828A (en) * | 2013-06-29 | 2014-12-31 | 华为终端有限公司 | Vision-protective display method, vision-protective display device and terminal equipment |
CN106265006A (en) * | 2016-07-29 | 2017-01-04 | 维沃移动通信有限公司 | The antidote of a kind of dominant eye and mobile terminal |
CN108830164A (en) * | 2018-05-22 | 2018-11-16 | 北京小鱼在家科技有限公司 | Reminding method, device, computer equipment and the storage medium of screen viewed status |
CN109044375A (en) * | 2018-07-30 | 2018-12-21 | 珠海格力电器股份有限公司 | Control system and method for tracking and detecting eyeball fatigue degree in real time |
US20200393908A1 (en) * | 2019-06-12 | 2020-12-17 | Citrix Systems, Inc. | Computing devices, program products, and methods for performing actions in applications based on facial images of users |
CN113486802A (en) * | 2021-07-07 | 2021-10-08 | 北京百度网讯科技有限公司 | Method and device for providing eye protection mode, storage medium and mobile device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10323144A1 (en) * | 2003-05-22 | 2004-12-09 | Robert Bosch Gmbh | Method and device for detecting objects in the vicinity of a vehicle |
-
2021
- 2021-07-07 CN CN202110767545.5A patent/CN113486802A/en active Pending
-
2022
- 2022-03-23 WO PCT/CN2022/082595 patent/WO2023279777A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104252828A (en) * | 2013-06-29 | 2014-12-31 | 华为终端有限公司 | Vision-protective display method, vision-protective display device and terminal equipment |
CN106265006A (en) * | 2016-07-29 | 2017-01-04 | 维沃移动通信有限公司 | The antidote of a kind of dominant eye and mobile terminal |
CN108830164A (en) * | 2018-05-22 | 2018-11-16 | 北京小鱼在家科技有限公司 | Reminding method, device, computer equipment and the storage medium of screen viewed status |
CN109044375A (en) * | 2018-07-30 | 2018-12-21 | 珠海格力电器股份有限公司 | Control system and method for tracking and detecting eyeball fatigue degree in real time |
US20200393908A1 (en) * | 2019-06-12 | 2020-12-17 | Citrix Systems, Inc. | Computing devices, program products, and methods for performing actions in applications based on facial images of users |
CN113486802A (en) * | 2021-07-07 | 2021-10-08 | 北京百度网讯科技有限公司 | Method and device for providing eye protection mode, storage medium and mobile device |
Also Published As
Publication number | Publication date |
---|---|
CN113486802A (en) | 2021-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11354825B2 (en) | Method, apparatus for generating special effect based on face, and electronic device | |
US11809479B2 (en) | Content push method and apparatus, and device | |
US10997477B2 (en) | Foreign matter recognition method and device | |
US11455491B2 (en) | Method and device for training image recognition model, and storage medium | |
US20150332439A1 (en) | Methods and devices for hiding privacy information | |
US10318797B2 (en) | Image processing apparatus and image processing method | |
CN105095881B (en) | Face recognition method, face recognition device and terminal | |
WO2017128767A1 (en) | Fingerprint template input method and device | |
TW201822164A (en) | Virtual reality equipment safety monitoring method and device, and virtual reality equipment | |
CN105117706B (en) | Image processing method and device, character identifying method and device | |
CN108616448B (en) | Information sharing path recommendation method and mobile terminal | |
US9183430B2 (en) | Portable electronic apparatus and interactive human face login method | |
CN112364799A (en) | Gesture recognition method and device | |
US20210192192A1 (en) | Method and apparatus for recognizing facial expression | |
EP3328062A1 (en) | Photo synthesizing method and device | |
CN112541400B (en) | Behavior recognition method and device based on sight estimation, electronic equipment and storage medium | |
WO2023279777A1 (en) | Method and apparatus for providing eye protection mode, storage medium, and mobile device | |
CN107977636B (en) | Face detection method and device, terminal and storage medium | |
CN110135349A (en) | Recognition methods, device, equipment and storage medium | |
CN111145080B (en) | Training method of image generation model, image generation method and device | |
CN111626229A (en) | Object management method, device, machine readable medium and equipment | |
US20180074682A1 (en) | Widget Displaying Method and Apparatus for Use in Flexible Display Device, and Storage Medium | |
US20200402253A1 (en) | Head pose estimation | |
KR20220111574A (en) | Electronic apparatus and controlling method thereof | |
US11256909B2 (en) | Electronic device and method for pushing information based on user emotion |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22836536 Country of ref document: EP Kind code of ref document: A1 |