IMAGE PROCESSING METHOD FOR AN SMART MIRROR AND SMART MIRROR
Patent Information
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2019-01-16
- Publication Date
- 2026-05-20
AI Technical Summary
Users are impeded from seeing a clear image in a mirror when obstacles, such as sinks, are between them and the mirror surface, preventing them from approaching closer.
A smart mirror that automatically recognizes user movements and adjusts image enlargement or reduction based on user proximity and pupil dilation to ensure clear viewing.
Enables clear viewing of the mirror image despite obstacles by dynamically adjusting the image size based on user interaction, enhancing user experience without requiring user training.
Description
TECHNICAL FIELD
[0001] The present invention relates to the field of electronic technology, and more particularly, to an imaging processing method for a smart mirror, and a smart mirror.BACKGROUND
[0002] In daily lives, people often look into the mirror. When looking into the mirror, he or she has to get closer to the mirror surface if the user wants to see a partial imaging of his / her face. Relevant prior art includes: Iwabuchi, E., Nakagawa, M., Siio, I., Smart Makeup Mirror: Computer-Augmented Mirror to Aid Makeup Application, in: Jacko, J.A. (eds) Human-Computer Interaction, Interacting in Various Application Domains, HCI 2009, Lecture Notes in Computer Science, vol 5613, disclosing a "smart mirror" system that uses a camera and display to help users apply makeup by offering functions such as automatic zoom on facial parts (e.g. eyes, mouth), viewing the face from different angles, simulating different lighting conditions, and other tools to make makeup application easier; US 2016 / 011657 A1 disclosing a method and device (mobile or wearable) that detects a user's gaze and squinting using optical and infrared imaging, and enhances the region of a display where the user is looking accordingly, with wearable embodiments using multiple infrared light sources to enable bright / dark pupil detection and wireless transmission of the captured images; CN 107 247 535 A disclosing a smart mirror system and method that automatically enlarges a user's image when a preset condition is met, such as detecting a face in a specific area of the mirror or the user being within a certain distance, and can capture and display images from multiple angles, thereby improving the user's viewing experience. SUMMARY
[0003] The present invention relates to the field of electronic technology, and more particularly, to an imaging processing method for a smart mirror, and a smart mirror.
[0004] The inventors of the present invention have recognized that, if other items (such as the sink or the like) are placed between the user and the mirror surface, the user will be impeded from approaching the mirror surface, and therefore may not be able to see the imaging in the mirror clearly. Various embodiments of the present invention can overcome such problems.
[0005] According to a first aspect of the embodiments of the present invention, there is provided an imaging processing method for a smart mirror according to claim 1.
[0006] In this way, the smart mirror can automatically recognize the user's needs according to the user's moving state and perform corresponding imaging processing. Even if there are other items (such as the sink or the like) between the user and the mirror surface, the user will not be impeded from seeing the imaging in the mirror surface clearly due to not being able to come closer to the mirror surface.
[0007] In the implementation, when the user cannot see his / her own imaging in the mirror surface clearly, he / she approaches the mirror surface. When the smart mirror detects a movement of the user towards the smart mirror in the direction of the mirror surface of the smart mirror, an enlargement processing on the image of the user in the smart mirror is determined to perform. Conversely, when the user feels that the enlarged image displayed in the mirror surface is too large, he / she can step back in a direction of the mirror surface of the smart mirror. When the smart mirror detects a movement of the user away from the smart mirror in the direction of the mirror surface of the smart mirror, a reduction processing on the image of the user in the smart mirror is determined to perform.
[0008] Optional features are defined in the dependent claims.
[0009] According to a second aspect of the embodiments of the present invention, there is provided a smart mirror according to claim 6.
[0010] According to a third aspect of the embodiments of the present invention, there is provided a computer readable storage medium having stored therein at least one instruction, at least one piece of program, a code set, or an instruction set that are loaded and executed by a processor to implement the above described imaging processing method for a smart mirror.
[0011] The technical solutions according to embodiments of the present invention may have the following beneficial effects:
[0012] the method according to embodiments of the present invention includes: obtaining a moving state of the user; determining whether to perform a processing on the image of the user in the smart mirror according to the moving state, wherein the processing includes an enlargement processing or a reduction processing; and performing the processing on the image of the user in the smart mirror, in the case of "yes". In this way, the smart mirror can automatically recognize the user's needs according to the user's moving state and perform corresponding imaging processing. Even if there are other items (such as the sink or the like) between the user and the mirror surface, the user will not be impeded from seeing the imaging in the mirror surface clearly due to not being able to come closer to the mirror surface.
[0013] It should be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention.BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention. In the drawings: Fig. 1 is a flowchart illustrating an imaging processing method for a smart mirror according to an exemplary embodiment; Fig. 2 is a schematic diagram illustrating the movement of a smart mirror according to an exemplary embodiment; Fig. 3 is a schematic structural diagram illustrating a smart mirror according to an exemplary embodiment; Fig. 4 is a schematic structural diagram illustrating a smart mirror according to an exemplary embodiment; Fig. 5 is a schematic structural diagram illustrating a smart mirror according to an exemplary embodiment; and Fig. 6 is a schematic structural diagram illustrating a smart mirror according to an exemplary embodiment.
[0015] Specific embodiments of the present invention have been illustrated in the above drawings, and will be described in further detail hereinafter. The concept of the invention is explained to those skilled in the art by making reference to the specific embodiments.DETAILED DESCRIPTION
[0016] Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise represented. The implementations set forth in the following description of exemplary embodiments do not represent all implementations consistent with the invention. Instead, they are merely examples of apparatuses and methods consistent with aspects related to the invention as recited in the appended claims.
[0017] An imaging processing method for a smart mirror is provided according to embodiments of the present invention, which can be implemented by a smart mirror.
[0018] A smart mirror may include a mirror surface, a display component, a processor, a memory, and the like. The processor may be a central processing unit (CPU) or the like, and may be configured to acquire a moving state of the user. According to the moving state, the processor may determine whether to perform a processing on the image of the user in the smart mirror. The memory may be a random access memory (RAM), a flash memory, etc., and may be configured to store received data, data required for processing, data generated during processing, and the like, such as the moving state of the user, etc.
[0019] The smart mirror may also include a transceiver, an input component, an audio output component, and the like. The transceiver can be used for data transmission with a mobile phone. For example, the transceiver can obtain the setting parameters sent from the mobile phone to the smart mirror. The transceiver may include a Bluetooth component, a wireless-fidelity (WiFi) component, an antenna, a matching circuit, a modem, etc. The input component may be a touch screen or the like. The audio output component may be a loudspeaker box or the like.
[0020] An imaging processing method for a smart mirror is provided according to an exemplary embodiment of the present invention. As shown in Fig. 1, the process of the method may include the following steps.
[0021] Step S110: obtaining a moving state of the user.
[0022] The biometric parameter is a parameter for characterizing a physiological reaction naturally generated by the user for visually achieving a certain requirement (purpose), and the characteristics presented by the parameter have universal applicability to different users. For example, if the user wants to see something far away, when the distance is too far to make it clearly seen, the pupil is usually enlarged naturally to try to see the distant things; or, for some people with nearsightedness, when they cannot clearly see things at a certain distance away, they tend to squint at the things more clearly. In this embodiment, the moving state of the user in the direction of the mirror surface of the smart mirror is obtained, together with a state of the pupil or the like. The moving state of the user in the direction of the mirror surface of the smart mirror is the user moving toward or away from the mirror surface. The state of the pupil is the pupil enlargement. When a person is staring at something, the pupil is enlarged to an enlargement threshold. For example, when a person is looking at the lens, the pupil is enlarged to an enlargement threshold.
[0023] Step S120: determining whether to perform a processing on an image of the user in the smart mirror according to the moving state, wherein the processing includes an enlargement processing or a reduction processing.
[0024] In the implementation, when the user cannot see his / her own imaging in the mirror surface clearly, he / she approaches the mirror surface. When detecting a movement of the user towards the mirror surface of smart mirror, the smart mirror determines to perform an enlargement processing on the image of the user in the smart mirror. When the user is staring at the mirror surface, the pupil of the user is enlarged, and when detecting the enlargement of the pupil of the user, the smart mirror can also determine to perform an enlargement processing on the image of the user in the smart mirror. For another example, when the user is staring at the mirror surface, if the user squints, it is highly possible that the user is trying to see the image in the mirror clearly, and then an enlargement processing on the image of the user in the smart mirror can be determined. Conversely, when the user feels that the enlarged image displayed in the mirror surface is too large, he / she can step back in a direction of the mirror surface of the smart mirror. When the smart mirror detects a movement of the user away from the mirror surface of the smart mirror, a reduction processing on the image of the user in the smart mirror is determined.
[0025] Step S130: performing the processing on the image of the user in the smart mirror upon the determining is positive.
[0026] In the implementation, if the processing on the image of the user in the smart mirror is required, the method provided below by the present embodiment can be used.
[0027] The moving state of the user in a direction of the mirror surface of the smart mirror is obtained. The step of "determining whether to perform a processing on an image of the user in the smart mirror according to the moving state, and performing the processing on the image of the user in the smart mirror upon the determining is positive " may include: determining to perform the enlargement processing on the image of the user in the smart mirror when detecting a movement of the user towards the smart mirror in the direction of the mirror surface of the smart mirror; and determining to perform a reduction processing on the image of the user in the smart mirror when detecting a movement of the user away from the smart mirror in the direction of the mirror surface of the smart mirror.
[0028] In the implementation, when the user cannot see his / her own imaging in the mirror surface clearly, he / she approaches the mirror surface. When the smart mirror detects a movement of the user towards the smart mirror in the direction of the mirror surface of the smart mirror, an enlargement processing on the image of the user in the smart mirror is determined to perform. Conversely, when the user feels that the enlarged image displayed in the mirror surface is too large, he / she can step back in a direction of the mirror surface of the smart mirror. When the smart mirror detects a movement of the user away from the smart mirror in the direction of the mirror surface of the smart mirror, a reduction processing on the image of the user in the smart mirror is determined to perform. Specifically, an infrared distance measuring device or an ultrasonic device or the like may be disposed in the smart mirror. The infrared distance measuring device or the ultrasonic device can be used to detect the moving state of the user in the direction of the mirror surface of the smart mirror.
[0029] Optionally, the state of a pupil is obtained. The step of "determining whether to perform a processing on an image of the user in the smart mirror according to the moving state, and performing the processing on the image of the user in the smart mirror upon the determining is positive " may include: determining to perform the enlargement processing on the image of the user in the smart mirror when detecting that a pupil image is included in an image captured by an image acquisition component and that a pupil size in the pupil image is enlarged.
[0030] In the implementation, the smart mirror captures the scene facing the image acquisition component through the image acquisition component in real time, and detects the captured image. When the image captured by the image acquisition component includes the user image, the position of the user's pupil can be detected and the pupil size in the pupil image can be determined. The image acquisition component can capture the image at a preset time interval to obtain image frames. When the pupil image is included in several consecutive image frames and the pupil size in the pupil image is enlarged, an enlargement processing on the image of the user in the smart mirror is determined to perform.
[0031] The way how the enlargement processing is implemented will be described below.
[0032] Optionally, when the processing is the enlargement processing, step S130 may include: controlling the smart mirror to move in the direction of the mirror surface; or obtaining an enlarged image of the user in the direction of the mirror surface of the smart mirror, and displaying the enlarged image in the mirror surface of the smart mirror.
[0033] In the implementation, as shown in Fig. 2, a slide rail may be disposed at the bottom of the smart mirror, and an electric motor may also be installed in the smart mirror. Therefore, the motor can be controlled to operate and drive the smart mirror to move in a certain direction on the slide rail. The time duration of operation of the motor can be controlled so as to control the distance by which the smart mirror moves. The speed of the motor can be controlled so as to control the speed at which the smart mirror moves. By inputting pulses with different phases into the motor, the motor can be controlled to rotate clockwise or counterclockwise, and eventually to control the smart mirror to move in the direction which the mirror surface faces or in a direction opposite to the direction which the mirror surface faces.
[0034] Optionally, the step of controlling the smart mirror to move in the direction of the mirror surface may include: obtaining a preset displacement distance, and controlling the smart mirror to move in the direction of the mirror surface by the preset displacement distance; or detecting through a distance detecting component a distance between the user and the smart mirror in the direction of the mirror surface of the smart mirror; calculating a difference between the distance and a preset target distance, and controlling the smart mirror to move in the direction of the mirror surface by the difference.
[0035] In the implementation, when determining that the enlargement processing is required, the smart mirror may only move by a preset displacement distance at a time, for example, only 10 cm at a time.
[0036] Alternatively, the user can set the target distance in a dedicated application in the mobile phone based on his or her preference. That is, each time the user needs the smart mirror to perform the enlargement processing, the smart mirror directly moves by the target distance preset by the user. After the user sets the target distance, the mobile phone can send the set target distance to the smart mirror through network. When the smart mirror detects the requirement of enlargement processing, the smart mirror can detect through a distance detecting component a distance X 1 between the user and the smart mirror in the direction of the mirror surface of the smart mirror. A difference between the distance X 1 and the preset target distance X 2 is calculated, and the smart mirror is controlled to move in the direction of the mirror surface by the difference, i.e., X 1 -X 2 .
[0037] If the bottom of the smart mirror is not provided with a slide rail or the like, as shown in Fig. 3, the image of the user in the direction of the mirror surface of the smart mirror can be captured by the image acquisition component, the captured image of the user is enlarged and then is displayed in the mirror surface of the smart mirror.
[0038] Optionally, the step of obtaining an enlarged image of the user in the direction of the mirror surface of the smart mirror may include: obtaining a preset target enlargement coefficient of image; obtaining an enlarged image of the user in the direction of the mirror surface of the smart mirror, based on the target enlargement coefficient of image; or detecting through a distance detecting component a distance between the user and the smart mirror in the direction of the mirror surface of the smart mirror ; calculating a difference between the distance and a preset target distance, and determining a target enlargement coefficient of image corresponding to the currently calculated difference according to a pre-stored correspondence between the difference and the enlargement coefficient of image; and obtaining an enlarged image of the user in the direction of the mirror surface of the smart mirror, based on the target enlargement coefficient of image.
[0039] In the implementation, when determining that the enlargement processing is required, the smart mirror may perform the enlargement processing based on the preset target enlargement coefficient of image at a time, and for example, the image is enlarged by 1.2 times at a time.
[0040] Alternatively, a difference between the distance X 1 and a preset target distance X 2 can be calculated, and the smart mirror is controlled to move in the direction of the mirror surface by the difference, i.e., X 1 -X 2 . A target enlargement coefficient of image corresponding to the currently calculated difference X 1 -X 2 is determined according to a pre-stored correspondence between the difference and the enlargement coefficient of image. An enlarged image of the user in the direction of the mirror surface of the smart mirror is obtained based on the target enlargement coefficient of image.
[0041] Optionally, the step of obtaining an enlarged image of the user in the direction of the mirror surface of the smart mirror based on the target enlargement coefficient of image may include: detecting a position of a face image in the image acquired by the image acquisition component; and enlarging the image based on the target enlargement coefficient of image by centering on the position of the face image to obtain an enlarged image of the user in the direction of the mirror surface of the smart mirror
[0042] In the implementation, the image may be enlarged by enlarging the face image of the user which is captured at an original magnification so as to obtain an enlarged image of the user in the direction of the mirror surface of the smart mirror.
[0043] Optionally, the step of obtaining an enlarged image of the user in the direction of the mirror surface of the smart mirror based on the target enlargement coefficient of image may include: adjusting the focus length of the image acquisition component based on the target enlargement coefficient of image; and obtaining, by acquiring the image through the adjusted image acquisition component, an enlarged image of the user in the direction of the mirror surface of the smart mirror.
[0044] In the implementation, the focus length of the image acquisition component can be adjusted, and the magnification for capturing the image can be adjusted by adjusting the focus length of the image acquisition component so that an enlarged image can be captured directly.
[0045] The above described is the implementation of the enlargement processing, and the implementation of the reduction processing will be described below.
[0046] Optionally, when the processing is the reduction processing, step S130 may include: controlling the smart mirror to move in a direction opposite to the direction which the mirror surface faces; or obtaining a reduced image of the user in the direction of the mirror surface of the smart mirror, and displaying the reduced image in the mirror surface of the smart mirror.
[0047] Optionally, the step of controlling the smart mirror to move in a direction opposite to the direction which the mirror surface faces may include: obtaining a preset displacement distance, and controlling the smart mirror to move in a direction opposite to the direction which the mirror surface faces by the preset displacement distance; or detecting through a distance detecting component a distance between the user and the smart mirror in the direction of the mirror surface of the smart mirror ; calculating a difference between the distance and a preset target distance, and controlling the smart mirror to move in a direction opposite to the direction which the mirror surface faces by the difference.
[0048] Optionally, the step of obtaining a reduced image of the user in the direction of the mirror surface of the smart mirror may include: obtaining a preset target reduction coefficient of image; obtaining a reduced image of the user in the direction of the mirror surface of the smart mirror, based on the target reduction coefficient of image; or detecting through a distance detecting component a distance between the user and the smart mirror in the direction of the mirror surface of the smart mirror; calculating a difference between the distance and a preset target distance, and determining a target reduction coefficient of image corresponding to the currently calculated difference according to a pre-stored correspondence between the difference and the reduction coefficient of image; and obtaining a reduced image of the user in the direction of the mirror surface of the smart mirror, based on the target reduction coefficient of image.
[0049] Optionally, the step of obtaining a reduced image of the user in the direction of the mirror surface of the smart mirror based on the target reduction coefficient of image may include: adjusting the focus length of the image acquisition component based on the target reduction coefficient of image; and obtaining, by acquiring the image through the adjusted image acquisition component, a reduced image of the user in the direction of the mirror surface of the smart mirror.
[0050] In the implementation, the specific implementation of the reduction processing is similar to that of the enlargement processing; for the specific implementation of the reduction processing, reference may be made to the specific implementation of the enlargement processing, and no detailed repeated discussion will be given herein.
[0051] Optionally, after performing the processing on the image of the user in the smart mirror, the method provided by the present embodiment may further include: if the processing on the image of the user in the smart mirror is determined again according to the moving state of the user, and the determined processing is opposite to the preceding processing, then setting the scaling ratio of determined processing to be less than that of said preceding processing when performing the processing on the image of the user in the smart mirror for the present time.
[0052] In the implementation, for example, if the smart mirror firstly determines, in a certain time period, that the enlargement processing is required, the enlargement ratio may be set to be 2 times, and when a reduction processing is determined to be required after this, the reduction ratio may be set to be 1.5 times. Then, when an enlargement processing is determined to be required again, the enlargement ratio may be set to be 1.2 times.
[0053] Optionally, after performing the processing on the image of the user in the smart mirror, the method provided by the present embodiment may further include: when the moving state of the user are obtained again, determining whether to perform the processing on the image of the user in the smart mirror according to the moving state of the user as obtained again, and performing the processing on the image of the user in the smart mirror upon the determining is positive.
[0054] In the implementation, each time the enlargement processing or the reduction processing is completed, the moving state of the user can be detected again, and it is determined whether to perform the processing on the image of the user in the smart mirror according to the moving state of the user as obtained again. The processing on the image of the user in the smart mirror is performed upon the determining is positive, until there is no need for the user to view the enlarged or reduced image.
[0055] The method provided by the present embodiment includes: obtaining a moving state of the user; determining whether to perform a processing on the image of the user in the smart mirror according to the moving state, wherein the processing includes an enlargement processing or a reduction processing; and performing the processing on the image of the user in the smart mirror, in the case of "yes". In this way, the smart mirror can automatically recognize the user's needs according to the user's moving state and perform corresponding imaging processing. Even if there are other items (such as the sink or the like) between the user and the mirror surface, the user will not be impeded from seeing the imaging in the mirror surface clearly due to not being able to come closer to the mirror surface. In addition, since the basis of determining adopted by the embodiment of the present invention is the moving state of the user, which have universal applicability and is a refinement of the normal reaction of people, there is no difference for different users. Therefore, the implementation of the present invention does not require the user to learn in advance, which reduces the cost of learning. For example, the smart mirror of the present invention can be placed in a shopping mall or the like where there is a large flow of people, and there is no need to explain the method of using the mirror for each user. The user only needs to use it as a conventional mirror subjectively. When the moving state of the user meet the condition for triggering imaging processing of the mirror, the processing will be automatically performed, thereby effectively improving the user experience and the fun of use.
[0056] A smart mirror is provided according to another exemplary embodiment of the present invention. As shown in Fig. 4, the smart mirror includes: an obtaining module 510, configured to obtain a moving state of the user; a first processing module 520, configured to determine whether to perform a processing on the image of the user in the smart mirror according to the moving state, wherein the processing includes an enlargement processing or a reduction processing; and the processing on the image of the user in the smart mirror is performed, in the case of "yes".
[0057] The moving state of the user in a direction of the mirror surface of the smart mirror is obtained; As shown in Fig. 5, the first processing module 520 includes: a first determining unit 621 which is configured to determine to perform an enlargement processing on the image of the user in the smart mirror when detecting a movement of the user towards the smart mirror in a direction of the mirror surface of the smart mirror; and a second determining unit 622 which is configured to determine to perform a reduction processing on the image of the user in the smart mirror when detecting a movement of the user away from the smart mirror in a direction of the mirror surface of the smart mirror .
[0058] Optionally, the state of a pupil is obtained; the first processing module 520 includes: a third determining unit which is configured to determine to perfrom an enlargement processing on the image of the user in the smart mirror when detecting that a pupil image is included in an image captured by an image acquisition component and that the pupil size in the pupil image is enlarged.
[0059] Optionally, when the processing is the enlargement processing, the first processing module 520 includes: a first control unit, configured to control the smart mirror to move in the direction of the mirror surface; or an enlarging unit, configured to obtain an enlarged image of the user in the direction of the mirror surface of the smart mirror, and to display the enlarged image in the mirror surface of the smart mirror.
[0060] Optionally, the first control unit is configured to: obtain a preset displacement distance, and control the smart mirror to move in the direction of the mirror surface by the preset displacement distance; or detect through a distance detecting component a distance between the user and the smart mirror in the direction of the mirror surface of the smart mirror; calculate a difference between the distance and a preset target distance, and control the smart mirror to move in the direction of the mirror surface by the difference.
[0061] Optionally, the enlarging unit is configured to: obtain a preset target enlargement coefficient of image; obtain an enlarged image of the user in the direction of the mirror surface of the smart mirror, based on the target enlargement coefficient of image; or detect through a distance detecting component a distance between the user and the smart mirror in the direction of the mirror surface of the smart mirror; calculate a difference between the distance and a preset target distance, and determine a target enlargement coefficient of image corresponding to the currently calculated difference according to a pre-stored correspondence between the difference and the enlargement coefficient of image; and obtain an enlarged image of the user in the direction of the mirror surface of the smart mirror, based on the target enlargement coefficient of image.
[0062] Optionally, the enlarging unit is configured to: detect a position of a face image in the image acquired by the image acquisition component; and enlarge the image based on the target enlargement coefficient of image by centering on the position of the face image to obtain an enlarged image of the user in the direction of the mirror surface of the smart mirror.
[0063] Optionally, the enlarging unit is configured to: adjust a focus length of the image acquisition component based on the target enlargement coefficient of image; and obtain, by acquiring the image through the adjusted image acquisition component, an enlarged image of the user in the direction of the mirror surface of the smart mirror.
[0064] Optionally, when the processing is the reduction processing, the first processing module 520 includes: a second control unit, configured to control the smart mirror to move in a direction opposite to the direction which the mirror surface faces; or a reducing unit, configured to obtain a reduced image of the user in the direction of the mirror surface of the smart mirror, and to display the reduced image in the mirror surface of the smart mirror.
[0065] Optionally, the smart mirror further includes: a second processing module configured to, when the processing on the image of the user in the smart mirror is determined again according to the moving state of the user, and the determined processing is opposite to the preceding processing, set the scaling ratio of the determined processing to be less than that of said preceding processing, when performing the processing on the image of the user in the smart mirror for the present time.
[0066] For the device in the above embodiment, the specific manners in which various modules operate have been described in detail in the embodiment relating to the above method, and therefore will not be repeated herein.
[0067] The smart mirror can automatically recognize the user's needs according to the user's moving state and perform corresponding imaging processing. Even if there are other items (such as the sink or the like) between the user and the mirror surface, the user will not be impeded from seeing the imaging in the mirror surface clearly due to not being able to come closer to the mirror surface.
[0068] It should be noted that the smart mirror provided in the above embodiment is only illustrated through the division of the above functional modules when performing the imaging processing. In actual applications, the above functions can be distributed to different functional modules as required. That is, the internal structure of the smart mirror is divided into different functional modules to perform all or part of the functions described above. In addition, the smart mirror provided by the above embodiment belongs to the same concept as the embodiment of the imaging processing method for the smart mirror. The specific implementation process thereof has been described in detail in the method embodiment, and no detailed repeated discussion will be given herein.
[0069] A schematic structural diagram of a smart mirror is illustrated according to further another exemplary embodiment of the invention.
[0070] Referring to Fig. 6, the smart mirror 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input / output (I / O) interface 712, a sensor component 714, and a communication component 716.
[0071] The processing component 702 typically controls overall operations of the smart mirror 700, such as the operations associated with data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to perform all or part of the steps in the above described methods. Moreover, the processing component 702 may include one or more modules which facilitate the interaction between the processing component 702 and other components. For instance, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.
[0072] The memory 704 is configured to store various types of data to support the operation of the smart mirror 700. Examples of such data include instructions for any applications or methods operated on the smart mirror 700, pictures, etc. The memory 704 may be implemented using any type of volatile or non-volatile memory devices, or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic or optical disk.
[0073] The power component 706 provides power to various components of the smart mirror 700. The power component 706 may include a power management system, one or more power sources, and any other components associated with the generation, management, and distribution of power in the smart mirror 700.
[0074] The multimedia component 708 includes a screen providing an output interface between the smart mirror 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP).
[0075] In some embodiments, the screen is not limited to the LCD display, but can include, for example, a light-emitting diode (LED) display, an OLED (organic LED) display, a flexible display, etc.
[0076] If the screen includes the touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may not only sense a boundary of a touch or swipe action, but also sense a period of time and a pressure associated with the touch or swipe action. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. The front camera and the rear camera may receive an external multimedia datum while the smart mirror 700 is in an operation mode, such as a photographing mode or a video mode. Each of the front camera and the rear camera may be a fixed optical lens system or have focus and optical zoom capability.
[0077] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone ("MIC") configured to receive an external audio signal when the smart mirror 700 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in the memory 704 or transmitted via the communication component 716.
[0078] The I / O interface 712 provides an interface between the processing component 702 and peripheral interface modules, such as a keyboard, a click wheel, buttons, and the like. The buttons may include, but are not limited to, a home button, a volume button, a starting button, and a locking button.
[0079] The sensor component 714 includes one or more sensors to provide status assessments of various aspects of the smart mirror 700. For instance, the sensor component 714 may detect an open / closed status of the smart mirror 700, relative positioning of components, e.g., the display and the keypad, of the smart mirror 700, a change in position of the smart mirror 700 or a component of the smart mirror 700, a presence or absence of user contact with the smart mirror 700, an orientation or an acceleration / deceleration of the smart mirror 700, and a change in temperature of the smart mirror 700. The sensor component 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 714 may also include an accelerometer sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0080] The communication component 716 is configured to facilitate communication, wired or wirelessly, between the smart mirror 700 and other devices. The smart mirror 700 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 716 further includes a near field communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on a radio frequency identification (RFID) technology, an infrared data association (IrDA) technology, an ultra-wideband (UWB) technology, a Bluetooth (BT) technology, and other technologies.
[0081] In exemplary embodiments, the smart mirror 700 may be implemented with one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components, for performing the above described method.
[0082] In exemplary embodiments, there is also provided a computerreadable storage medium including instructions, such as included in the memory 704, executable by the processor 720 in the smart mirror 700, for performing the above described method. For example, the non-transitory computer-readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disc, an optical data storage device, and the like.
[0083] According to a still further another embodiment of the present invention, there is provided a computer readable storage medium; when the instructions stored therein are executed by the processor of the smart mirror, the smart mirror can execute the instructions executed by the smart mirror in the above embodiment.
[0084] Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed here. This application is intended to cover any variations, uses, or adaptations of the invention following the general principles thereof and including such departures from the present invention as come within known or customary practice in the art. It is intended that the specification and examples be considered as exemplary only, with a true scope of the invention being indicated by the following claims.
[0085] It is intended that the scope of the invention only be limited by the appended claims.
Claims
1. An imaging processing method for a smart mirror, comprising: obtaining (S110) the moving state of the user in a direction of a mirror surface of the smart mirror, determining to perform enlargement processing on the image of the user in the smart mirror upon detecting a movement of the user towards the smart mirror in the direction of the mirror surface of the smart mirror; and determining to perform reduction processing on the image of the user in the smart mirror upon detecting a movement of the user away from the smart mirror in the direction of the mirror surface of the smart mirror, and displaying the processed image in the mirror surface of the smart mirror after performing the processing on the image of the user in the smart mirror, the method characterized by: upon that the enlargement or reduction processing on the image of the user in the smart mirror is determined again according to the moving state of the user, and the determined processing is opposite to the preceding processing, setting a scaling ratio of the determined processing to be less than that of said preceding processing when performing the processing on the image of the user in the smart mirror for the present time.
2. The method according to claim 1, wherein the state of a pupil is obtained; and the method further comprises: determining to perform the enlargement processing on the image of the user in the smart mirror upon detecting that a pupil image is contained in several consecutive image frames image captured by the image acquisition component of the smart mirror in present time intervals and that a pupil size in the pupil image is enlarged.
3. The method according to claim 1, wherein the obtaining an enlarged image of the user in the direction of the mirror surface of the smart mirror comprises: obtaining a preset target enlargement coefficient of the image; obtaining an enlarged image of the user in the direction of the mirror surface of the smart mirror, based on the target enlargement coefficient of the image; or detecting, with a distance detecting component, a distance between the user and the smart mirror in the direction of the mirror surface of the smart mirror; calculating a difference between the distance and a preset target distance, and determining a target enlargement coefficient of the image corresponding to the currently calculated difference according to a pre-stored correspondence between the difference and the enlargement coefficient of the image; and obtaining an enlarged image of the user in the direction of the mirror surface of the smart mirror, based on the target enlargement coefficient of the image.
4. The method according to claim 3, wherein the obtaining an enlarged image of the user in the direction of the mirror surface of the smart mirror based on the target enlargement coefficient of the image comprises: detecting a position of a face image in the image acquired by the image acquisition component; and enlarging the image based on the target enlargement coefficient of the image by centering on the position of the face image to obtain an enlarged image of the user in the direction of the mirror surface of the smart mirror.
5. The method according to claim 3, wherein the obtaining an enlarged image of the user in the direction of the mirror surface of the smart mirror based on the target enlargement coefficient of the image comprises: adjusting a focus length of the image acquisition component of the smart mirror based on the target enlargement coefficient of the image; and obtaining, by acquiring the image through the adjusted image acquisition component, an enlarged image of the user in the direction of the mirror surface of the smart mirror.
6. A smart mirror comprising: an obtaining module (510), configured to obtain the moving state of the user in a direction of a mirror surface of the smart mirror the first processing module (520) comprises: a first determining unit (621) which is configured to determine to perform enlargement processing on the image of the user in the smart mirror upon detecting a movement of the user towards the smart mirror in the direction of the mirror surface of the smart mirror; and a second determining unit (622) which is configured to determine to perform reduction processing on the image of the user in the smart mirror upon detecting a movement of the user away from the smart mirror in the direction of the mirror surface of the smart mirror, characterized in that the first and second determining unit (621, 622) are configured to: after performing the processing on the image of the user in the smart mirror, upon that the enlargement or reduction processing on the image of the user in the smart mirror is determined again according to the moving state of the user, and the determined processing is opposite to the preceding processing, setting a scaling ratio of the determined processing to be less than that of said preceding processing when performing the processing on the image of the user in the smart mirror for the present time.
7. The smart mirror according to claim 6, wherein the obtaining module (510) is configured to obtain a state of a pupil of the user; and the first processing module (520) comprises: a third determining unit which is configured to determine to perform the enlargement processing on the image of the user in the smart mirror upon detecting that a pupil image is contained in an image captured by an image acquisition component and that a pupil size in the pupil image is enlarged.
8. A computer readable storage medium, having stored therein at least one instruction, at least one piece of program, a code set, or an instruction set that are loaded and executed by a processor to implement the imaging processing method for a smart mirror according to any of claims 1 to 5.