CN108829097B - Mirror control method, device and storage medium - Google Patents

Mirror control method, device and storage medium Download PDF

Info

Publication number
CN108829097B
CN108829097B CN201810525445.XA CN201810525445A CN108829097B CN 108829097 B CN108829097 B CN 108829097B CN 201810525445 A CN201810525445 A CN 201810525445A CN 108829097 B CN108829097 B CN 108829097B
Authority
CN
China
Prior art keywords
mirror
sensor
user
worn
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810525445.XA
Other languages
Chinese (zh)
Other versions
CN108829097A (en
Inventor
谢焱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810525445.XA priority Critical patent/CN108829097B/en
Publication of CN108829097A publication Critical patent/CN108829097A/en
Application granted granted Critical
Publication of CN108829097B publication Critical patent/CN108829097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47GHOUSEHOLD OR TABLE EQUIPMENT
    • A47G1/00Mirrors; Picture frames or the like, e.g. provided with heating, lighting or ventilating means
    • A47G1/02Mirrors used as equipment

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Mirrors, Picture Frames, Photograph Stands, And Related Fastening Devices (AREA)

Abstract

The present disclosure relates to a mirror control method, device and storage medium, when a sensor determines that a garment is worn by a user, the sensor receives a first position sent by the sensor, the sensor is disposed on the garment, the first position includes a position where the sensor disposed on the garment being worn is located, then a second position where the mirror is currently located is obtained, a target position is determined according to a relative position relationship between the first position and the second position, and the mirror is controlled to move to the target position, so that a mirror surface of the mirror is mapped to the user when facing the user.

Description

Mirror control method, device and storage medium
Technical Field
The disclosure relates to the field of smart home, in particular to a mirror control method and device and a storage medium.
Background
The mirror wide application is in places such as family, market, especially in the clothing shop, look over the effect of wearing clothes of oneself for convenience of customers, the mirror is indispensable, and the humanized design of position is placed to the mirror has influenced clothing shop's sales volume to a certain extent, for example, when all placing the mirror in places such as the side of wardrobe, the wall of indoor building, the user just can find the mirror very easily, thereby make user experience better, consequently, develop a more humanized, more intelligent mirror becomes the direction of new generation mirror development.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a mirror control method, apparatus, and storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a control method of a mirror, applied to a mirror, the method including receiving a first position transmitted by a sensor when the sensor determines that a garment is worn by a user; the sensor is disposed on the garment, the first location including a location on the garment where the sensor is disposed; acquiring a second position where the mirror is currently located; determining a target position according to the relative position relation between the first position and the second position; controlling the mirror to move to the target position such that a mirror surface of the mirror maps the user when facing the user.
Optionally, the determining the target position according to the relative position relationship between the first position and the second position includes: determining the direction angle of the sensor relative to the mirror according to the relative position relation of the first position and the second position; acquiring a first preset distance, wherein the first preset distance comprises a distance between a first position stored in advance and the target position to be determined; and determining the target position according to the first position, the direction angle and the first preset distance.
Optionally, before said obtaining the second position where the mirror is currently located, the method further comprises: determining whether the inductor is located within a preset working geographic range according to the first position; the acquiring the current second position of the mirror comprises: and acquiring a second current position of the mirror when the sensor is determined to be located within the preset working geographic range.
Optionally, the controlling the movement of the mirror to the target position comprises: acquiring a preset movement parameter; and controlling the mirror to move to the target position according to the preset movement parameters through a driving device arranged on the mirror.
Optionally, the method further comprises: determining whether the first position transmitted by the sensor is received again within a preset time period after controlling the mirror to move to the target position; and when a preset time period is reached, if the first position sent by the sensor is not received, controlling the mirror to move from the target position to a preset position.
According to a second aspect of the embodiments of the present disclosure, there is provided a control method of a mirror, applied to a sensor provided on a garment, the method including: determining whether the garment on which the sensor is located is worn by the user; upon determining that the garment is worn by a user, acquiring a first position of the sensor; sending the first position to a mirror to enable the mirror to determine a target position according to the relative position relation between the first position and a second position where the mirror is located currently, and controlling the mirror to move to the target position so that the mirror surface of the mirror is mapped to the user when facing the user.
Optionally, before the determining whether the garment on which the sensor is located is worn by the user, the method further comprises: acquiring temperature through a temperature sensing device mounted on the sensor; the determining whether the garment on which the sensor is located is worn by the user includes: determining whether the temperature is within a first preset range; and when the temperature is within the first preset range, determining that the clothes where the sensor is located are worn by the user.
Optionally, before the determining whether the garment on which the sensor is located is worn by the user, the method further comprises: acquiring pressure through a pressure sensing device installed on the sensor; the determining whether the garment on which the sensor is located is worn by the user includes: determining whether the pressure is within a second preset range; and when the pressure is within the second preset range, determining that the clothes where the sensor is located is worn by the user.
According to a third aspect of the embodiments of the present disclosure, there is provided a control apparatus of a mirror, applied to the mirror, the apparatus including: a receiving module configured to receive a first location transmitted by a sensor when the sensor determines that the garment is worn by a user, the sensor being disposed on the garment, the first location including a location where the sensor disposed on the garment being worn is located; a first acquisition module configured to acquire a second position at which the mirror is currently located; a first determination module configured to determine a target position according to a relative positional relationship between the first position and the second position; a first control module configured to control the movement of the mirror to the target position such that a mirror surface of the mirror maps the user when facing the user.
Optionally, the first determining module includes: a first determination submodule configured to determine a directional angle of the sensor with respect to the mirror from a relative positional relationship of the first position and the second position; a first obtaining sub-module configured to obtain a first preset distance, where the first preset distance includes a distance between the first position stored in advance and the target position to be determined; a second determining submodule configured to determine the target position according to the first position, the direction angle, and the first preset distance.
Optionally, the apparatus further comprises: a second determination module configured to determine whether the sensor is within a preset operating geographic range according to the first position; the first acquisition module is configured to acquire a second current position of the mirror when the sensor is determined to be located within the preset geographic range.
Optionally, the first control module comprises: a second obtaining sub-module configured to obtain a preset movement parameter; a control sub-module configured to control the mirror to move to the target position according to the preset movement parameter through a driving device mounted on the mirror.
Optionally, the apparatus further comprises: a third determination module configured to determine whether the first position transmitted by the sensor is received again within a preset time period after controlling the mirror to move to the target position; a second control module configured to control the mirror to move from the target position to a preset position if the first position transmitted by the sensor is not received when a preset time period is reached.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a control apparatus of a mirror, applied to a sensor provided on a garment, the apparatus including: a fourth determination module configured to determine whether the garment on which the sensor is located is worn by the user; a second acquisition module configured to acquire a first position of the sensor upon determining that the article of clothing is worn by a user; a sending module configured to send the first position to a mirror, to cause the mirror to determine a target position according to a relative positional relationship between the first position and a second position at which the mirror is currently located, and to control the mirror to move to the target position, so that the mirror surface of the mirror maps the user when facing the user.
Optionally, the apparatus further comprises: a third acquisition module configured to acquire a temperature by a temperature sensing device mounted on the sensor; the fourth determination module is configured to determine whether the temperature is within a first preset range; and when the temperature is within the first preset range, determining that the clothes where the sensor is located are worn by the user.
Optionally, the apparatus further comprises: a fourth acquisition module configured to acquire pressure by a pressure sensing device mounted on the sensor; the fourth determination module is configured to determine whether the pressure is within a second preset range; and when the pressure is within the second preset range, determining that the clothes where the sensor is located is worn by the user.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a control apparatus of a mirror, applied to the mirror, the apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: when a sensor determines that clothes are worn by a user, receiving a first position sent by the sensor, wherein the sensor is arranged on the clothes, and the first position comprises a position where the sensor arranged on the clothes being worn is located; acquiring a second position where the mirror is currently located; determining a target position according to the relative position relation between the first position and the second position; controlling the mirror to move to the target position such that a mirror surface of the mirror maps the user when facing the user.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method of the first aspect of the present disclosure.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a control apparatus of a mirror, applied to a sensor, the apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: determining whether the garment on which the sensor is located is worn by the user; upon determining that the garment is worn by a user, acquiring a first position of the sensor; sending the first position to a mirror to enable the mirror to determine a target position according to the relative position relation between the first position and a second position where the mirror is located currently, and controlling the mirror to move to the target position so that the mirror surface of the mirror is mapped to the user when facing the user.
According to an eighth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of the second aspect of the present disclosure.
Through the technical scheme, when the sensor determines that the clothes are worn by a user, the sensor receives a first position sent by the sensor, the sensor is arranged on the clothes, and the first position comprises the position of the sensor arranged on the clothes being worn; acquiring a second position where the mirror is currently located; determining a target position according to the relative position relation between the first position and the second position; the mirror is controlled to move to the target position, so that the mirror surface of the mirror is mapped to the user when facing the user, and therefore when the clothes where the sensor is located are detected to be worn by the user, the mirror can be moved to the target position in time, the user can check the clothes wearing effect in time, the user is prevented from finding the mirror, and the user experience is improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a diagram illustrating an application scenario in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of controlling a mirror according to an exemplary embodiment;
FIG. 3 is a schematic diagram illustrating a sensor position relationship relative to a mirror in accordance with an exemplary embodiment;
FIG. 4 is a flow chart illustrating a method of controlling a mirror in accordance with an exemplary embodiment;
FIG. 5 is a flow chart illustrating a method of controlling a mirror in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating a control arrangement for a first type of mirror in accordance with an exemplary embodiment;
FIG. 7 is a block diagram illustrating a control arrangement for a second type of mirror in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating a control arrangement for a third type of mirror in accordance with an exemplary embodiment;
FIG. 9 is a block diagram illustrating a control arrangement for a fourth mirror in accordance with an exemplary embodiment;
FIG. 10 is a block diagram illustrating a fifth mirror control apparatus in accordance with an exemplary embodiment;
FIG. 11 is a block diagram illustrating a control arrangement for a sixth type of mirror in accordance with an exemplary embodiment;
FIG. 12 is a block diagram illustrating a control arrangement for a seventh type of mirror in accordance with an exemplary embodiment;
FIG. 13 is a block diagram illustrating an eighth mirror control apparatus in accordance with an exemplary embodiment;
FIG. 14 is a block diagram illustrating a control arrangement for a mirror according to an exemplary embodiment.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
In the application scene of the present disclosure, an existing mirror is generally placed at a fixed position, and when a user needs to try on clothes, the user needs to actively search for the mirror, but the user may not be familiar with the placing position of the mirror, so that the user needs to spend time to search for the mirror, sometimes even the mirror cannot be found, a large amount of time is wasted, and the user experience is not good.
To solve the above problems, the present disclosure provides a mirror control method, a mirror control apparatus, and a storage medium, fig. 1 is a schematic view of an application scenario shown according to an exemplary embodiment of the present disclosure, as shown in fig. 1, in the application scenario of the present disclosure, a mirror and a garment having at least one sensor are included, wherein the mirror is provided with a driving device (such as a pulley, etc.) for driving the mirror to move, the sensor can be disposed at a collar, a sleeve, a trouser leg, a waist, etc. of the garment, when the sensor disposed on the garment determines that the garment is worn by a user, the mirror receives a first position transmitted by the sensor and obtains a second position (such as a position indicated by a dotted line in fig. 1) where the mirror is currently located, so as to determine a target position (such as a position indicated by a solid line in fig. 1) where the mirror is to be moved according to a relative positional relationship between the first position and the second position, and control this mirror and remove to this target location to make the mirror surface of this mirror when orientation this user, map this user, like this, can in time remove the mirror to the target location when detecting that the clothes is being dressed by the user, convenience of customers in time looks over the dressing effect, has avoided user oneself to look for the mirror, improves user's experience.
The present disclosure is described below with reference to specific examples.
Fig. 2 is a flowchart illustrating a control method of a mirror, applied to the mirror, according to an exemplary embodiment, as shown in fig. 2, including the steps of:
in step 201, a first location transmitted by a sensor is received when the sensor determines that a garment is worn by a user.
Wherein the sensor may be an anti-theft button provided on the garment, the sensor may be provided at a collar, sleeves, legs, waist, etc. of the garment, and at least one sensor may be provided, and the first position may include a position at which the sensor provided on the garment being worn is located.
In step 202, a second position at which the mirror is currently located is acquired.
In this step, this second position can be obtained through GPS location to this mirror, also can obtain this second position through indoor location technology that positioning accuracy is higher such as wireless location (like bluetooth location, WIFI location), basic station location, this disclosure does not limit this, and wherein, current location technology can all be referred to this GPS location, this wireless location and this basic station location's concrete positioning method, no longer gives details here.
In addition, before the second position of the mirror is obtained, whether the sensor is located in a preset working geographic range can be determined according to the first position, and when the sensor is determined to be located in the preset working geographic range, the second position of the mirror is obtained, so that the movement range of the mirror is limited by setting the preset working geographic range (equivalent to an electronic fence), and the controllability of the mirror is improved.
In step 203, a target position is determined according to the relative position relationship between the first position and the second position.
In this step, a direction angle of the sensor relative to the mirror may be determined according to a relative position relationship between the first position and the second position, and a first preset distance may be obtained, where the first preset distance may include a distance between the first position and a target position to be determined, which is stored in advance, and then the target position is determined according to the first position, the direction angle, and the first preset distance.
Illustratively, FIG. 3 is a schematic diagram illustrating a position relationship of a sensor relative to a mirror, as shown in FIG. 3, where α represents a directional angle, vector, of the sensor relative to the mirror
Figure BDA0001675824710000081
The direction of the sensor relative to the mirror is represented, when the magnitude of the direction angle alpha is calculated, the magnitude of the direction angle alpha can be obtained according to the coordinate value of the first position and the coordinate value of the second position and combining a trigonometric function, and after the direction angle is determined, the moving direction of the mirror is determined to be
Figure BDA0001675824710000082
At this time are
Figure BDA0001675824710000083
In the direction of (2), the distance from the first position is the position of the first preset distance, namely the target position.
In step 204, the mirror is controlled to move to the target position.
In this step, a preset movement parameter is first obtained, and then the mirror is controlled to move to the target position according to the preset movement parameter by a driving device installed on the mirror, wherein the preset movement parameter may include a movement speed.
After the step is executed, the mirror surface of the mirror can be made to be mapped to the user when facing the user, so that the user can conveniently check the dressing effect of the user.
In addition, after the mirror is controlled to move to the target position, whether the first position sent by the sensor is received again within a preset time period or not can be determined, when the preset time period is reached, if the first position sent by the sensor is not received, the mirror is controlled to move from the target position to the preset position, wherein the preset position can be an initial parking position of the mirror or other positions defined by a user, the disclosure is not limited to the position, when the preset time period is reached, if the first position is not received, a user currently followed by the mirror can be determined to have taken off clothes just worn or the user has gone out of a preset working geographic range, so that the following task can be determined to be finished, and at the moment, if the mirror is still parked at the target position, a road can be blocked, so that the walking of the user is influenced, therefore, if the first position is not received within the preset time period, the mirror is controlled to move from the target position to the preset position, the road is prevented from being blocked, the intelligence of the mirror is reflected, and the user experience is improved.
By adopting the method, when the sensor arranged on the clothes determines that the clothes is worn by a user, the mirror receives the first position sent by the sensor, the first position comprises the position where the sensor arranged on the clothes being worn is located, the second position where the mirror is located currently is obtained, then the target position is determined according to the relative position relation between the first position and the second position, the mirror is controlled to move to the target position, so that the mirror surface of the mirror is mapped to the user when facing the user, therefore, when the clothes where the sensor is located is detected to be worn by the user, the mirror can be moved to the target position in time, the user can check the clothes wearing effect in time, the user is prevented from finding the mirror, and the user experience is improved.
Fig. 4 is a flowchart illustrating a control method of a mirror according to an exemplary embodiment, applied to a sensor provided on a garment, as shown in fig. 4, including the steps of:
in step 401, it is determined whether the garment in which the sensor is located is worn by the user.
The sensor can be an anti-theft buckle arranged on the clothes, can be arranged on the collar, sleeves, trouser legs, waistline and the like of the clothes, and can be provided with at least one sensor.
In one possible implementation, considering that the temperature of the human body is generally about 37 degrees (e.g., 35 degrees to 39 degrees), the temperature may be obtained through a temperature sensing device (e.g., a temperature sensor) installed on the sensor, and then it is determined whether the temperature is within a first preset range, which may be 35 degrees to 39 degrees, and when the temperature is within the first preset range, it is determined that the garment is worn by the user.
In another possible implementation manner, considering that when the garment is worn by the user, the sensor disposed on the garment may contact with a human body to cause the pressure to change, the pressure sensing device (e.g., a pressure sensor) mounted on the sensor may acquire the pressure, determine whether the pressure is within a second preset range, and determine that the garment where the sensor is disposed is worn by the user when the pressure is within the second preset range.
It should be noted that, in order to make the detection result more accurate, a plurality of sensors may be disposed on a piece of clothes (for example, the sensors may be disposed at positions of a collar, sleeves, trouser legs, a waist, and the like of the clothes), and when the temperatures acquired by the plurality of sensors through the temperature sensing device in a preset time period are all within the first preset range, or the pressures acquired through the pressure sensing device are all within the second preset range, it may be determined that the clothes where the sensors are located are worn by the user more accurately.
In step 402, upon determining that the article of clothing is worn by the user, a first location of the sensor is obtained.
Wherein the first location may include a location at which a sensor disposed on the garment being worn is located.
In this step, this inductor can acquire this first position through GPS location, also can acquire this first position through indoor location technology that positioning accuracy is higher such as wireless location (like bluetooth location, WIFI location), basic station location, this disclosure does not limit this, and wherein, current location technology can all be referred to this specific positioning method of this GPS location, this wireless location and this basic station location, and no longer repeated here.
In step 403, the first position is sent to a mirror, so that the mirror determines a target position according to a relative position relationship between the first position and a second position where the mirror is currently located, and the mirror is controlled to move to the target position, so that the mirror surface of the mirror maps to the user when facing the user.
In this step, the first position may be sent to the mirror according to a preset period, or the first position may be sent to the mirror when the sensor detects that the position of the sensor changes.
It should be noted that, when a plurality of sensors are disposed on a piece of clothing, the plurality of sensors may all send the first position to the mirror, so that the mirror may receive too much information, which causes an excessive burden on data processing by the mirror, and the data processing efficiency is low.
By adopting the method, the sensor determines whether the clothes are worn by the user, when the clothes are determined to be worn by the user, the first position of the sensor is obtained, and the first position is sent to the mirror, so that the mirror determines the target position according to the relative position relation between the first position and the second position where the mirror is located currently, and the mirror is controlled to move to the target position, and the mirror surface of the mirror is conveniently mapped to the user when facing the user.
FIG. 5 shows a flow chart of a method of controlling a mirror, as shown in FIG. 5, including the steps of:
in step 501, a sensor determines whether the garment in which the sensor is located is worn by a user.
The sensor can be an anti-theft buckle arranged on the clothes, can be arranged on the collar, sleeves, trouser legs, waistline and the like of the clothes, and can be provided with at least one sensor.
In a possible implementation manner, considering that the temperature of the human body is generally about 37 degrees (e.g., 35 degrees to 39 degrees), therefore, the temperature may be obtained through a temperature sensing device (e.g., a temperature sensor) installed on the sensor, and then it is determined whether the temperature is within a first preset range, and when the temperature is within the first preset range, it is determined that the garment is worn by the user, and the first preset range may be 35 degrees to 39 degrees, and when the sensor determines that the obtained temperature is within the first preset range of 35 degrees to 39 degrees, it may be determined that the sensor is contacting with the human body, and then it may be determined that the garment on which the sensor is installed is worn by the user.
In another possible implementation manner, considering that when the garment is worn by the user, the pressure changes due to the contact between the sensor disposed on the garment and the human body, the pressure may be obtained by a pressure sensing device (e.g., a pressure sensor) mounted on the sensor, and then it may be determined whether the pressure is within a second preset range, and when the pressure is within the second preset range, it may be determined that the garment is worn by the user.
It should be noted that, in order to make the detection result more accurate, a plurality of sensors may be disposed on a piece of clothes (for example, the sensors may be disposed at positions of a collar, sleeves, trouser legs, waistline, and the like of the clothes), and when the temperatures acquired by the plurality of sensors through the temperature sensing device in a preset time period are all within the first preset range, or the pressures acquired through the pressure sensing device are all within the second preset range, it may be determined that the clothes is being worn by the user more accurately.
For example, taking a manner that the plurality of sensors obtain the temperature through the temperature sensing device as an example, three sensors are provided on one coat (for example, the sensors are provided at the collar and two sleeves), the three sensors are respectively the sensor 1, the sensor 2 and the sensor 3, the preset time period is set to 2 minutes, when the sensor 1 obtains the temperature and the obtained temperature is within the first preset range, a timer is started, and in the next 2 minutes, the sensors 2 and 3 both obtain the temperature within the first preset range, and at this time, it may be determined that the clothes provided with the three sensors are being worn by the user.
In step 502, the sensor acquires a first position of the sensor.
Wherein the first location may include a location at which a sensor disposed on the garment being worn is located.
In this step, this inductor can acquire this first position through GPS location, also can acquire this first position through indoor location technology that positioning accuracy is higher such as wireless location (like bluetooth location, WIFI location), basic station location, this disclosure does not limit this, and wherein, current location technology can all be referred to this specific positioning method of this GPS location, this wireless location and this basic station location, and no longer repeated here.
In step 503, the sensor sends the first position to the mirror.
The sensor sends the first position to a mirror, so that the mirror determines a target position according to the relative position relation between the first position and a second position where the mirror is located currently, and controls the mirror to move to the target position, so that the mirror surface of the mirror is mapped to the user when facing the user.
In this step, the first position may be sent to the mirror according to a preset period, or the first position may be sent to the mirror when the sensor detects that the position of the sensor changes.
It should be noted that, when a plurality of sensors are disposed on a piece of clothing, the plurality of sensors may all transmit the first position to the mirror, so that the mirror may receive too much information, which results in too much burden on the mirror for data processing, and the data processing efficiency is low. Therefore, only the main sensor and the mirror are required to carry out information interaction, so that the number of information transmission is reduced, and the data processing efficiency is improved.
In order to facilitate coordination of a plurality of mirrors when a plurality of people wear clothes, a corresponding relationship between a mirror and a sensor may be preset, and the sensor sends the first position to the mirror corresponding to the sensor, in a possible implementation manner, numbers may be preset for the mirror and the sensor, for example, five mirrors and ten sensors may be placed in a certain clothing store, and numbers of the five mirrors may be A, B, C, D, E in turn, numbers of the ten sensors may be 1, 2, 3, and 10 in turn, and a possible corresponding relationship may be: the mirror A corresponds to the sensors with the numbers of 1 and 2, the mirror B corresponds to the sensors with the numbers of 3 and 4, the mirror C corresponds to the sensors with the numbers of 5 and 6, the mirror D corresponds to the sensors with the numbers of 7 and 8, and the mirror E corresponds to the sensors with the numbers of 9 and 10, at the moment, when a plurality of people try on clothes, the five mirrors can work in coordination, so that the clothes trying requirements of more users are met, for example, when the clothes where the sensors 1 and 2 are located are tried on by a user A, the mirror A receives the first position sent by the sensor 1 (main sensor), the mirror A moves to the target position near the user A, when the clothes where the sensors 3 and 4 are located are tried on by a user B, the mirror B receives the first position sent by the sensor 3 (main sensor), the mirror B moves to the target position near the user B, and thus, fitting requirements of two users, i.e. a user and a user, can be met at the same time, the above examples are only illustrative, and the disclosure does not limit the requirements.
In step 504, the mirror determines whether the sensor is within a predetermined geographic range of operation based on the first position.
In a possible implementation manner, the user may preset a second preset distance of the electronic fence, at this time, the electronic fence may be a circular area with the current position of the terminal as a center of a circle and the second preset distance as a radius, and the terminal determines the preset working geographic range by combining a terminal positioning technology (such as GPS positioning, wireless positioning, base station positioning, and the like) and the input second preset distance.
In this step, whether the sensor is located within the preset working geographic range may be determined according to the coordinate value of the first position, and when it is determined that the sensor is located within the preset working geographic range, the second position where the mirror is currently located is obtained, so that the movement range of the mirror is limited by setting the preset working geographic range (equivalent to an electronic fence), and the controllability of the mirror is improved.
In step 505, the mirror acquires a second position at which the mirror is currently located.
In this step, this second position can be obtained through GPS location to this mirror, also can obtain this second position through indoor location technology that positioning accuracy is higher such as wireless location (like bluetooth location, WIFI location), basic station location, this disclosure does not limit this, and wherein, current location technology can all be referred to this GPS location, this wireless location and this basic station location's concrete positioning method, no longer gives details here.
In step 506, the mirror determines an orientation angle of the sensor relative to the mirror based on a relative positional relationship of the first position and the second position.
For convenience of description, the coordinate values of the first position are (5, 5'), the coordinate values of the second position are (0,0), that is, the coordinate values of the point a are (5,5), and the coordinate values of the point O are (0,0), and at this time, the direction angle of the point a relative to the point O is 45 degrees, that is, the direction angle of the sensor relative to the mirror is 45 degrees, so that the included angle between the moving direction of the mirror and the positive direction of the X axis in the rectangular coordinate system can be determined to be 45 degrees.
In step 507, the mirror acquires a first preset distance.
The first preset distance may include a distance between the first position and a target position to be determined, which is stored in advance.
In step 508, the mirror determines the target position according to the first position, the direction angle, and the first predetermined distance.
The target position may include a position on a connection line between the first position and the second position, where the distance from the first position to the first position is a first preset distance, for example, the first preset distance is 2 meters, at this time, a position on a connection line between the first position and the second position, which is 2 meters away from the first position, is the target position, and then a coordinate value of the target position may be obtained through trigonometric function calculation, and when the first position is (5,5) and the direction angle is 45 degrees, the coordinate value of the target position is a coordinate value of the target position
Figure BDA0001675824710000151
The foregoing examples are illustrative only, and the disclosure is not limited thereto.
In step 509, the mirror is controlled by the driving device mounted on the mirror to move to the target position according to the preset movement parameters.
Wherein the driving means may comprise a pulley and the preset moving parameter may comprise a moving speed.
In this step, the mirror locks the target after determining the target position, and performs obstacle detection and path planning, and the obstacle detection method and the path planning method refer to the prior art, and then control the mirror to move to the target position according to the moving speed through a pulley mounted on the mirror, so that a user can conveniently use the mirror to check the dressing effect of the user in time, for example, when the moving speed is preset to 5km/h, the mirror can move to the target position at the speed of 5 km/h.
In addition, in consideration of the practical situation, when a user is fitting, the user may wear the clothes where the sensor is located to move, at this time, the sensor acquires the first position in real time and sends the first position to the mirror, the mirror also acquires the second position where the mirror is currently located in real time, the mirror determines the real-time distance between the first position of the sensor and the second position where the mirror is currently located according to the first position received in real time and the second position acquired in real time, and when it is determined that the real-time distance exceeds the first preset distance, the mirror updates the target position in real time according to the first position and the second position acquired in real time, and controls the mirror to move to the updated target position according to preset movement parameters through a driving device installed on the mirror, so as to ensure that the mirror and the user always keep the first preset distance, therefore, the mirror can automatically follow the user, and the user can conveniently check the dressing effect of the mirror at any time.
After controlling this mirror to remove to this target position, the user can be according to the mirror surface orientation of the manual adjustment mirror of the face orientation of oneself, perhaps the user oneself moves towards the position relative with this mirror surface for this mirror is in the face of the user, thereby looks over the effect of wearing clothes of oneself through the mirror.
It should be noted that, after controlling the mirror to move to the target position, it is further determined whether the first position sent by the sensor is received again within a preset time period, and when the preset time period is reached, if the first position sent by the sensor is not received, the mirror is controlled to move from the target position to a preset position, where the preset position may be an initial parking position of the mirror or other positions defined by a user, which is not limited by the present disclosure, and when the preset time period is reached, if the first position is not received, it may be determined that a user currently followed by the mirror has taken off a garment just worn, or the user has gone out of a preset working geographical range, so that it may be determined that the following task is finished, and at this time, if the mirror is still parked at the target position, a road may be blocked, therefore, the mirror is controlled to move to the preset position from the target position if the first position is not received within the preset time period, the road is prevented from being blocked, the intelligence of the mirror is reflected, and the user experience is improved.
By adopting the method, the mirror can be moved to the target position in time when the clothes are detected to be worn by the user, so that the user can check the dressing effect in time, the user is prevented from finding the mirror by himself, and the user experience is improved.
Fig. 6 is a block diagram illustrating a control apparatus for a mirror according to an exemplary embodiment, and the control apparatus is applied to a mirror, and as shown in fig. 6, the apparatus includes a receiving module 601, a first obtaining module 602, a first determining module 603, and a first control module 604.
The receiving module 601 is configured to receive a first position sent by a sensor when the sensor determines that the garment is worn by a user, wherein the sensor is arranged on the garment, and the first position comprises a position where the sensor arranged on the garment being worn is located;
the first acquiring module 602 configured to acquire a second position where the mirror is currently located;
the first determining module 603 is configured to determine a target position according to a relative position relationship between the first position and the second position;
the first control module 604 is configured to control the movement of the mirror to the target position such that a mirror surface of the mirror maps the user when facing the user.
Alternatively, fig. 7 is a block diagram of a control apparatus of a mirror according to the embodiment shown in fig. 6, and as shown in fig. 7, the first determining module 603 includes:
a first determination submodule 6031 configured to determine a direction angle of the sensor with respect to the mirror from a relative positional relationship of the first position and the second position;
a first obtaining sub-module 6032 configured to obtain a first preset distance including a distance between the first position stored in advance and the target position to be determined;
a second determining submodule 6033 configured to determine the target position according to the first position, the direction angle and the first preset distance.
Alternatively, fig. 8 is a block diagram of a control apparatus of a mirror according to the embodiment shown in fig. 6, as shown in fig. 8, the apparatus further includes:
a second determining module 605 configured to determine whether the sensor is located within a preset working geographic range according to the first position;
the first obtaining module 602 is configured to obtain a second current position of the mirror when the sensor is determined to be located within the preset geographic range.
Alternatively, fig. 9 is a block diagram of a control apparatus of a mirror according to the embodiment shown in fig. 6, and as shown in fig. 9, the first control module 604 includes:
a second obtaining sub-module 6041 configured to obtain preset movement parameters;
a control sub-module 6042 configured to control the movement of the mirror to the target position according to the preset movement parameters by a drive device mounted on the mirror.
Alternatively, fig. 10 is a block diagram of a control apparatus of a mirror according to the embodiment shown in fig. 6, as shown in fig. 10, the apparatus further includes:
a third determination module 606 configured to determine whether the first position transmitted by the sensor is received again within a preset time period after controlling the mirror to move to the target position;
a second control module 607 configured to control the mirror to move from the target position to a predetermined position if the first position transmitted by the sensor is not received when a predetermined time period is reached.
Adopt above-mentioned device, when the sensor that sets up on the clothes confirms that this clothes is dressed by the user, this mirror receives the first position that this sensor sent, this first position includes the position that the sensor that sets up on the clothes of being dressed is located, then acquire the second position that this mirror is located currently, and confirm the target location according to the relative position relation of this first position and this second position, control this mirror and remove to this target location, so that the mirror surface of this mirror when towards this user, map this user, like this, can in time remove the mirror to the target location when detecting the clothes that this sensor is located and being dressed by the user, convenience of customers in time looks over the dressing effect, avoided user oneself to look for the mirror, improve user's experience.
Fig. 11 is a block diagram illustrating a mirror control apparatus according to an exemplary embodiment, applied to a sensor disposed on a garment, as shown in fig. 11, the apparatus includes a fourth determining module 1101, a second acquiring module 1102, and a transmitting module 1103.
The fourth determining module 1101 configured to determine whether the clothing on which the sensor is located is worn by the user;
the second acquiring module 1102 configured to acquire a first position of the sensor when it is determined that the article of clothing is worn by the user;
the sending module 1103 is configured to send the first position to a mirror, so that the mirror determines a target position according to a relative position relationship between the first position and a second position where the mirror is currently located, and controls the mirror to move to the target position, so that the mirror surface of the mirror maps to the user when facing the user.
Alternatively, fig. 12 is a block diagram of a control apparatus of a mirror shown in the embodiment of fig. 11, as shown in fig. 12, the apparatus further includes:
a third acquiring module 1104 configured to acquire a temperature through a temperature sensing device mounted on the sensor;
the fourth determining module 1101 configured to determine whether the temperature is within a first preset range; and when the temperature is within the first preset range, determining that the clothes where the sensor is located are worn by the user.
Alternatively, fig. 13 is a block diagram of a control apparatus of a mirror shown in the embodiment of fig. 11, as shown in fig. 13, the apparatus further includes:
a fourth obtaining module 1105 configured to obtain the pressure by a pressure sensing device installed on the sensor;
the fourth determining module 1101 configured to determine whether the pressure is within a second preset range; and when the pressure is within the second preset range, determining that the clothes where the sensor is located is worn by the user.
Adopt above-mentioned device, this clothes is whether dressed by the user is confirmed to this inductor, when confirming that this clothes is dressed by the user, acquire the primary importance of this inductor, and send this primary importance to the mirror, so that this mirror confirms the target location according to the relative position relation of this primary importance and the second place that this mirror is located currently, and control this mirror and remove to this target location, so that the mirror surface of this mirror is when orientation this user, map this user, thus, can be when detecting that the clothes is being dressed by the user, in time remove the mirror to the target location, convenience of customers in time looks over the effect of wearing clothes, avoided user oneself to look for the mirror, user's experience is improved.
The present disclosure also provides a control device of a mirror, applied to a mirror, the device including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: receiving a first position sent by a sensor when the sensor determines that the garment is worn by a user; the sensor is disposed on the garment, the first location including a location on the garment where the sensor is disposed; acquiring a second position of the mirror; determining a target position according to the relative position relation between the first position and the second position; controlling the mirror to move to the target position such that a mirror surface of the mirror maps the user when facing the user.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of controlling a mirror as shown in fig. 2.
The present disclosure also provides a control device of a mirror, applied to a sensor, the device comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: determining whether the garment on which the sensor is located is worn by the user; obtaining a first location of the sensor upon determining that the garment is worn by a user; sending the first position to a mirror, so that the mirror determines a target position according to the relative position relation between the first position and a second position where the mirror is currently located, and controlling the mirror to move to the target position, so that the mirror surface of the mirror is mapped to the user when facing the user.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of controlling a mirror as shown in fig. 4.
Fig. 14 is a block diagram illustrating a mirror control apparatus 1400 according to an exemplary embodiment. For example, the apparatus 1400 may be a mirror, a sensor, a cell phone, a tablet, a television, a router, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 14, apparatus 1400 may include one or more of the following components: a processing component 1402, a memory 1404, a power component 1406, a multimedia component 1408, an audio component 1410, an input/output (I/O) interface 1412, a sensor component 1414, and a communication component 1416.
The processing component 1402 generally controls the overall operation of the device 1400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 1402 may include one or more processors 1420 to execute instructions to perform all or a portion of the steps of the above-described method of accessing a wireless network. Further, processing component 1402 can include one or more modules that facilitate interaction between processing component 1402 and other components. For example, the processing component 1402 can include a multimedia module to facilitate interaction between the multimedia component 1408 and the processing component 1402.
The memory 1404 is configured to store various types of data to support operations at the apparatus 1400. Examples of such data include instructions for any application or method operating on device 1400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1404 may be implemented by any type of volatile or non-volatile storage device or combination of devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 1406 provide power to the various components of device 1400. Power components 1406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 1400.
The multimedia component 1408 includes a screen that provides an output interface between the device 1400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1408 includes a front-facing camera and/or a rear-facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1400 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1410 is configured to output and/or input audio signals. For example, the audio component 1410 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 1400 is in operating modes, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1404 or transmitted via the communication component 1416. In some embodiments, audio component 1410 further includes a speaker for outputting audio signals.
I/O interface 1412 provides an interface between processing component 1402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 1414 includes one or more sensors for providing various aspects of state assessment for the apparatus 1400. For example, the sensor component 1414 may detect an open/closed state of the apparatus 1400, a relative positioning of components, such as a display and keypad of the apparatus 1400, a change in position of the apparatus 1400 or a component of the apparatus 1400, the presence or absence of user contact with the apparatus 1400, an orientation or acceleration/deceleration of the apparatus 1400, and a change in temperature of the apparatus 1400. The sensor assembly 1414 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 1414 may also include a photosensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1416 is configured to facilitate wired or wireless communication between the apparatus 1400 and other devices. The device 1400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods of accessing a wireless network.
In an exemplary embodiment, a non-transitory computer readable storage medium, such as the memory 1404 that includes instructions executable by the processor 1420 of the apparatus 1400 to perform the above-described method of accessing a wireless network, is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that, in the foregoing embodiments, various features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various combinations that are possible in the present disclosure are not described again.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (18)

1. A method of controlling a mirror, applied to a mirror, the method comprising:
when the sensor determines that the clothes are worn by a user, receiving a first position sent by the sensor, wherein the sensor comprises a plurality of sensors which are respectively arranged at different positions of the clothes, and when the sensors determine that the clothes are worn by the user, and the first position comprises the position of the sensor arranged on the clothes being worn;
acquiring a second position where the mirror is currently located;
determining a target position according to the relative position relation between the first position and the second position;
controlling the mirror to move to the target position such that a mirror surface of the mirror maps the user when facing the user;
the determining the target position according to the relative position relationship between the first position and the second position includes:
determining a direction angle of the sensor relative to the mirror according to a relative positional relationship between the first position and the second position, and determining a target direction pointing from the mirror to the sensor according to the direction angle;
acquiring a first preset distance, wherein the first preset distance comprises a distance between a first position stored in advance and the target position to be determined;
and taking the position which is away from the first position in the target direction and is the first preset distance as the target position.
2. The method of claim 1, wherein prior to said obtaining the second position at which the mirror is currently located, the method further comprises:
determining whether the inductor is located within a preset working geographic range according to the first position;
the acquiring the current second position of the mirror comprises:
and acquiring a second current position of the mirror when the sensor is determined to be located within the preset working geographic range.
3. The method of claim 1, wherein the controlling movement of the mirror to the target position comprises:
acquiring a preset movement parameter;
and controlling the mirror to move to the target position according to the preset movement parameters through a driving device arranged on the mirror.
4. The method according to any one of claims 1 to 3, further comprising:
determining whether the first position transmitted by the sensor is received again within a preset time period after controlling the mirror to move to the target position;
and when a preset time period is reached, if the first position sent by the sensor is not received, controlling the mirror to move from the target position to a preset position.
5. A method of controlling a mirror, applied to a sensor, said sensor being provided on a garment, said method comprising:
determining whether the garment on which the sensor is located is worn by the user;
upon determining that the garment is worn by a user, acquiring a first position of the sensor;
sending the first position to a mirror, so that the mirror determines a direction angle of the sensor relative to the mirror according to a relative position relation between the first position and a second position where the mirror is currently located, and determines a target direction pointing from the mirror to the sensor according to the direction angle; acquiring a first preset distance, wherein the first preset distance comprises a distance between a first position stored in advance and the target position to be determined; setting a position in the target direction, which is a first preset distance from the first position, as the target position, and controlling the mirror to move to the target position so that the mirror surface of the mirror is mapped to the user when facing the user;
the sensors are respectively arranged at different positions of the clothes;
the determining whether the garment on which the sensor is located is worn by the user includes:
and when the plurality of sensors determine that the clothes are worn by the user, determining that the clothes in which the sensors are worn by the user.
6. The method of claim 5, wherein prior to the determining whether the garment in which the sensor is located is worn by the user, the method further comprises:
acquiring temperature through a temperature sensing device mounted on the sensor;
the determining whether the garment on which the sensor is located is worn by the user includes:
determining whether the temperature is within a first preset range;
and when the temperature is within the first preset range, determining that the clothes where the sensor is located are worn by the user.
7. The method of claim 5, wherein prior to the determining whether the garment in which the sensor is located is worn by the user, the method further comprises:
acquiring pressure through a pressure sensing device installed on the sensor;
the determining whether the garment on which the sensor is located is worn by the user includes:
determining whether the pressure is within a second preset range;
and when the pressure is within the second preset range, determining that the clothes where the sensor is located is worn by the user.
8. A control device for a mirror, applied to a mirror, the device comprising:
the receiving module is configured to receive a first position sent by a sensor when the sensor determines that the clothes are worn by a user, wherein the sensor comprises a plurality of sensors which are respectively arranged at different positions of the clothes, and when the plurality of sensors determine that the clothes are worn by the user, the sensor determines that the clothes are worn by the user, and the first position comprises a position where the sensor arranged on the clothes being worn is located;
a first acquisition module configured to acquire a second position at which the mirror is currently located;
a first determination module configured to determine a target position according to a relative positional relationship between the first position and the second position;
a first control module configured to control the mirror to move to the target position such that a mirror surface of the mirror maps the user when facing the user;
the first determining module includes:
a first determination sub-module configured to determine a direction angle of the sensor with respect to the mirror according to a relative positional relationship of the first position and the second position, and determine a target direction pointing from the mirror to the sensor according to the direction angle;
a first obtaining sub-module configured to obtain a first preset distance, where the first preset distance includes a distance between the first position stored in advance and the target position to be determined;
a second determination submodule configured to take a position in the target direction from the first position as the first preset distance as the target position.
9. The apparatus of claim 8, further comprising:
a second determination module configured to determine whether the sensor is within a preset operating geographic range according to the first position;
the first acquisition module is configured to acquire a second current position of the mirror when the sensor is determined to be located within the preset geographic range.
10. The apparatus of claim 8, wherein the first control module comprises:
a second obtaining sub-module configured to obtain a preset movement parameter;
a control sub-module configured to control the mirror to move to the target position according to the preset movement parameter through a driving device mounted on the mirror.
11. The apparatus of any one of claims 8 to 10, further comprising:
a third determination module configured to determine whether the first position transmitted by the sensor is received again within a preset time period after controlling the mirror to move to the target position;
a second control module configured to control the mirror to move from the target position to a preset position if the first position transmitted by the sensor is not received when a preset time period is reached.
12. A control device for mirrors, applied to a sensor arranged on a garment, comprising:
a fourth determination module configured to determine whether the garment on which the sensor is located is worn by the user;
a second acquisition module configured to acquire a first position of the sensor upon determining that the article of clothing is worn by a user;
a transmitting module configured to transmit the first position to a mirror, so that the mirror determines a direction angle of the sensor relative to the mirror according to a relative positional relationship between the first position and a second position where the mirror is currently located, and determines a target direction pointing from the mirror to the sensor according to the direction angle; acquiring a first preset distance, wherein the first preset distance comprises a distance between a first position stored in advance and the target position to be determined; setting a position in the target direction, which is a first preset distance from the first position, as the target position, and controlling the mirror to move to the target position so that the mirror surface of the mirror is mapped to the user when facing the user;
the sensors are respectively arranged at different positions of the clothes;
the fourth determining module is configured to determine that the clothing where the sensor is located is worn by the user when the plurality of sensors determine that the clothing where the sensor is located is worn by the user.
13. The apparatus of claim 12, further comprising:
a third acquisition module configured to acquire a temperature by a temperature sensing device mounted on the sensor;
the fourth determination module is configured to determine whether the temperature is within a first preset range; and when the temperature is within the first preset range, determining that the clothes where the sensor is located are worn by the user.
14. The apparatus of claim 12, further comprising:
a fourth acquisition module configured to acquire pressure by a pressure sensing device mounted on the sensor;
the fourth determination module is configured to determine whether the pressure is within a second preset range; and when the pressure is within the second preset range, determining that the clothes where the sensor is located is worn by the user.
15. A control device for a mirror, applied to a mirror, the device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when the sensor determines that the clothes are worn by a user, receiving a first position sent by the sensor, wherein the sensor comprises a plurality of sensors which are respectively arranged at different positions of the clothes, and when the sensors determine that the clothes are worn by the user, and the first position comprises the position of the sensor arranged on the clothes being worn; acquiring a second position where the mirror is currently located; determining a target position according to the relative position relation between the first position and the second position; controlling the mirror to move to the target position such that a mirror surface of the mirror maps the user when facing the user;
the processor is further configured to: determining a direction angle of the sensor relative to the mirror according to a relative positional relationship between the first position and the second position, and determining a target direction pointing from the mirror to the sensor according to the direction angle; acquiring a first preset distance, wherein the first preset distance comprises a distance between a first position stored in advance and the target position to be determined; and taking the position which is away from the first position in the target direction and is the first preset distance as the target position.
16. A computer-readable storage medium, on which computer program instructions are stored, which program instructions, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 4.
17. A control device for mirrors, applied to an inductor, the device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: determining whether the garment on which the sensor is located is worn by the user; upon determining that the garment is worn by a user, acquiring a first position of the sensor; sending the first position to a mirror, so that the mirror determines a direction angle of the sensor relative to the mirror according to a relative position relation between the first position and a second position where the mirror is currently located, and determines a target direction pointing from the mirror to the sensor according to the direction angle; acquiring a first preset distance, wherein the first preset distance comprises a distance between a first position stored in advance and the target position to be determined; setting a position in the target direction, which is a first preset distance from the first position, as the target position, and controlling the mirror to move to the target position so that the mirror surface of the mirror is mapped to the user when facing the user; the sensors are respectively arranged at different positions of the clothes; the processor is configured to: and when the plurality of sensors determine that the clothes are worn by the user, determining that the clothes in which the sensors are worn by the user.
18. A computer-readable storage medium, on which computer program instructions are stored, which program instructions, when executed by a processor, carry out the steps of the method according to any one of claims 5 to 7.
CN201810525445.XA 2018-05-28 2018-05-28 Mirror control method, device and storage medium Active CN108829097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810525445.XA CN108829097B (en) 2018-05-28 2018-05-28 Mirror control method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810525445.XA CN108829097B (en) 2018-05-28 2018-05-28 Mirror control method, device and storage medium

Publications (2)

Publication Number Publication Date
CN108829097A CN108829097A (en) 2018-11-16
CN108829097B true CN108829097B (en) 2022-04-01

Family

ID=64146471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810525445.XA Active CN108829097B (en) 2018-05-28 2018-05-28 Mirror control method, device and storage medium

Country Status (1)

Country Link
CN (1) CN108829097B (en)

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001104122A (en) * 1999-10-12 2001-04-17 Rp Topla Ltd Mirror
CN201867818U (en) * 2010-12-14 2011-06-15 天津市企商科技发展有限公司 Mobile network real person fitting mirror
DE202013006744U1 (en) * 2013-07-26 2013-09-02 Hermann Kämper Installation of a mirror above the washstand, the autom. can move back and forth
CN104643747A (en) * 2013-11-25 2015-05-27 西安思创达通讯科技有限责任公司 Mirror capable of automatically swerving
CN203828535U (en) * 2014-01-20 2014-09-17 谭大刚 Double-part making-up or dressing true appearance mirror
CN206354790U (en) * 2016-08-10 2017-07-28 李书兴 A kind of Multifunctional dressing mirror
CN206238812U (en) * 2016-09-30 2017-06-13 泸州兴本智能家居有限公司 The dressing table of removable dressing glass
CN106395198B (en) * 2016-11-23 2019-02-12 北京小米移动软件有限公司 The control method and device of intelligent garbage bin
CN108013670A (en) * 2017-11-22 2018-05-11 嘉兴市成泰镜业有限公司 A kind of Intelligent mirror and its control method

Also Published As

Publication number Publication date
CN108829097A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
CN106970640B (en) Unmanned aerial vehicle flight control forbidding method and device
US9729775B2 (en) Auto-focusing method and auto-focusing device
CN105101404B (en) Localization method, device and terminal
EP2927787B1 (en) Method and device for displaying picture
US10134269B2 (en) Control switching method and control terminal, and storage medium
CN105974357A (en) Method and device for positioning terminal
CN112013844B (en) Method and device for establishing indoor environment map
EP3316232A1 (en) Method, apparatus and storage medium for controlling target device
CN105933862B (en) Intelligent terminal positioning method and device and mobile terminal
CN111669208B (en) Antenna selection method, first electronic device and storage medium
CN106886019B (en) Distance measurement method and device
CN110059547B (en) Target detection method and device
US10111026B2 (en) Detecting method and apparatus, and storage medium
CN106507282B (en) Wireless connection control method and device
CN106533907B (en) Information sending method and device
CN111586577B (en) Positioning method and device, mobile terminal and storage medium
CN112104797A (en) Camera module, electronic equipment, and stroke detection method and device
CN108829097B (en) Mirror control method, device and storage medium
CN115918184A (en) Distance measuring method, distance measuring device, terminal equipment and storage medium
CN115918183A (en) Distance measuring method, distance measuring device, terminal equipment and storage medium
CN111654819A (en) Garage vehicle positioning method and device and storage medium
CN107635097B (en) Follow shooting method and device
CN107529140B (en) Positioning method and device
CN108158063B (en) Raincoat control method and device
US9619016B2 (en) Method and device for displaying wallpaper image on screen

Legal Events

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