Detection method, vision detection method, device, electronic device and storage medium

By obtaining and matching the contour information of specific body parts of the target object, the problem of inaccurate distance detection in the prior art is solved, and the accuracy of vision detection is improved.

CN113509136BActive Publication Date: 2024-11-12BOE YIYUN (BEIJING) TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110473883.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-29
Publication Date
2024-11-12
Estimated Expiration
2041-04-29

AI Technical Summary

Technical Problem

In the prior art, when using a unified standard face contour to detect distances on different users, the distance detection results are inaccurate, which affects the accuracy of vision detection.

Method used

By obtaining the degree of matching between the contour information to be matched with the standard contour information of a specific body part of the target object, it is determined whether the distance between the target object and the terminal device is a predetermined distance, and matching it based on the user's own contour information to improve distance detection Accuracy.

Benefits of technology

It improves the accuracy of distance detection results, avoids inaccuracy problems caused by unified contour detection of different users, and ensures the reliability of vision detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113509136B_ABST
    Figure CN113509136B_ABST
Patent Text Reader

Abstract

A detection method, a vision detection method, a device, an electronic device and a storage medium. The detection method comprises: in response to a detection request of a target object, obtaining the to-be-matched contour information of a specific body part of the target object; and determining whether the distance between the target object and a terminal device is a first predetermined distance based on the matching degree between the to-be-matched contour information and the first contour information of the specific body part of the target object; the first contour information is determined based on a target image and corresponds to the first predetermined distance, and the target image is an image containing the specific body part of the target object acquired when the distance between the target object and the terminal device is the first predetermined distance. The detection method can improve the accuracy of distance detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to a detection method, a vision detection method, a device, an electronic device, and a storage medium. Background Art

[0002] With the development of technologies such as computers and the Internet, mobile phones, computers, and televisions can realize more and more functions, for example, by installing various types of applications. In the process of using terminal devices to realize some functions, it may be necessary for the user to have a specified distance from the terminal device. For example, in the scenario of using terminal devices for vision testing, a vision chart can be displayed on the terminal device. In this case, the user needs to stand at a certain distance away from the terminal device for testing. Summary of the invention

[0003] At least one embodiment of the present disclosure provides a detection method, comprising: in response to a detection request for a target object, obtaining to-be-matched contour information of a specific body part of the target object; and determining whether the distance between the target object and a terminal device is a first predetermined distance based on a degree of matching between the to-be-matched contour information and first contour information of the specific body part of the target object; the first contour information is determined based on a target image and corresponds to the first predetermined distance, and the target image is an image containing the specific body part of the target object that is acquired when the distance between the target object and the terminal device is the first predetermined distance.

[0004] For example, the detection method provided by at least one embodiment of the present disclosure also includes: acquiring the target image; acquiring the target image includes: detecting the distance between the target object and the terminal device in response to an initial detection request for the target object; and when the distance between the target object and the terminal device is the first predetermined distance, controlling the terminal device to capture the target image.

[0005] For example, in the detection method provided in at least one embodiment of the present disclosure, the distance between the target object and the terminal device is obtained based on detection by a distance measuring device.

[0006] For example, in the detection method provided in at least one embodiment of the present disclosure, in the process of detecting the distance between the target object and the terminal device, the target object holds a reference object; detecting the distance between the target object and the terminal device includes: obtaining object contour information of the reference object, the object contour information corresponding to the first predetermined distance; obtaining a reference image, the reference image being an image containing the reference object; based on the reference image, determining the to-be-matched contour information of the reference object; and based on the degree of matching between the to-be-matched contour information of the reference object and the object contour information, determining the distance between the reference object and the terminal device as the distance between the target object and the terminal device.

[0007] For example, the detection method provided by at least one embodiment of the present disclosure further includes: when the degree of matching between the contour information to be matched and the first contour information satisfies a predetermined matching condition, determining that the distance between the target object and the terminal device is the first predetermined distance.

[0008] For example, in the detection method provided in at least one embodiment of the present disclosure, obtaining the contour information to be matched of the specific body part of the target object includes: obtaining an image to be matched containing the specific body part of the target object; and determining the contour information to be matched of the specific body part based on the image to be matched.

[0009] For example, the detection method provided by at least one embodiment of the present disclosure also includes: when the distance between the target object and the terminal device is less than the first predetermined distance, controlling the terminal device to output a first prompt information to prompt the target object to move in a direction away from the terminal device so that the contour information to be matched matches the first contour information; and / or, when the distance between the target object and the terminal device is greater than the first predetermined distance, controlling the terminal device to output a second prompt information to prompt the target object to move in a direction close to the terminal device so that the contour information to be matched matches the first contour information.

[0010] At least one embodiment of the present disclosure also provides a vision detection method, comprising: determining whether the distance between a target object and a terminal device is a first predetermined distance using the detection method according to any one of the embodiments of the present disclosure; when the distance between the target object and the terminal device is the first predetermined distance, controlling the terminal device to display a first vision detection image corresponding to the first predetermined distance, the first vision detection image comprising at least one vision icon group, each of the vision icon group comprising at least one vision icon, each of the vision icon group being used to represent a vision value; and performing a vision detection on the target object based on the first vision detection image to obtain a vision detection result of the target object.

[0011] For example, in the vision detection method provided by at least one embodiment of the present disclosure, the terminal device is controlled to display a first vision detection image corresponding to the first predetermined distance, including: determining the display size of each vision icon in each vision icon group based on the first predetermined distance; determining the orientation of each vision icon, wherein the orientation of each vision icon is randomly determined; and generating the first vision detection image based on the display size and orientation of each vision icon.

[0012] For example, in the vision detection method provided by at least one embodiment of the present disclosure, vision detection is performed on the target object based on the vision detection image, including: obtaining input information of the target object, the input information including at least one of voice information, gesture information, eye image information, head image information and remote control information; based on the input information, determining the orientation of the vision icon judged by the target object; and determining the vision detection result of the target object based on the orientation judged by the target object.

[0013] For example, in the vision detection method provided in at least one embodiment of the present disclosure, vision detection is performed on the target object based on the vision detection image, including: obtaining the vision status of the target object, the vision status including historical vision detection results and / or vision data input by the target object; and controlling the terminal device to start detection from the vision icon group corresponding to the vision status.

[0014] For example, in the vision detection method provided by at least one embodiment of the present disclosure, vision detection is performed on the target object based on the vision detection image, including: obtaining a facial image of the target object during the vision detection process; determining the eye occlusion state of the target object based on the facial image; and controlling the terminal device to output a prompt message and / or pause the vision detection when the eye occlusion state does not meet a predetermined occlusion requirement.

[0015] For example, the vision detection method provided by at least one embodiment of the present disclosure also includes: when the detection distance included in the detection request is switched from the first predetermined distance to the second predetermined distance, determining second contour information corresponding to the second predetermined distance based on the first contour information; determining whether the distance between the target object and the terminal device is the second predetermined distance based on the second contour information; and when the distance between the target object and the terminal device is the second predetermined distance, controlling the terminal device to display a second vision detection image corresponding to the second predetermined distance, so as to perform a vision detection on the target object based on the second vision detection image.

[0016] For example, the vision detection method provided by at least one embodiment of the present disclosure also includes: obtaining eye behavior information of the target object while the target object uses the terminal device; and outputting prompt information when the eye behavior information meets predetermined eye conditions.

[0017] For example, in the vision detection method provided in at least one embodiment of the present disclosure, the specific body part is the face of the target object, and the first contour information is facial contour information; or the specific body part is the iris of the target object, and the first contour information is iris contour information.

[0018] For example, in the vision detection method provided in at least one embodiment of the present disclosure, the terminal device includes a display unit configured to display the contour information to be matched and the first contour information.

[0019] At least one embodiment of the present disclosure further provides a detection device, comprising: a contour acquisition unit, configured to acquire to-be-matched contour information of a specific body part of the target object in response to a detection request of the target object; and a contour matching unit, configured to determine whether the distance between the target object and a terminal device is a first predetermined distance based on a degree of matching between the to-be-matched contour information and first contour information of the specific body part of the target object, wherein the first contour information is determined based on a target image and corresponds to the first predetermined distance, and the target image is an image containing the specific body part of the target object that is acquired when the distance between the target object and the terminal device is the first predetermined distance.

[0020] At least one embodiment of the present disclosure also provides a vision detection device, comprising: a detection device, a control unit and a vision detection unit according to any embodiment of the present disclosure as described above; a control unit, configured to control the terminal device to display a first vision detection image corresponding to the first predetermined distance when the distance between the target object and the terminal device is the first predetermined distance, the first vision detection image including at least one vision icon; and a vision detection unit, configured to perform a vision detection on the target object based on the first vision detection image to obtain a vision detection result of the target object.

[0021] At least one embodiment of the present disclosure also provides a detection device, comprising: a processor; a memory, comprising one or more computer program modules; wherein the one or more computer program modules are stored in the memory and are configured to be executed by the processor, and the one or more computer program modules include instructions for implementing the detection method or vision detection method described in any embodiment of the present disclosure.

[0022] At least one embodiment of the present disclosure further provides an electronic device, comprising a detection device and / or a vision detection device as described in any embodiment of the present disclosure, and the terminal device; wherein the terminal device is configured to display the contour information to be matched and the first contour information.

[0023] At least one embodiment of the present disclosure further provides a storage medium for storing non-temporary computer-readable instructions. When the non-temporary computer-readable instructions are executed by a computer, the detection method or vision detection method described in any embodiment of the present disclosure can be implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings of the embodiments will be briefly introduced below. Obviously, the drawings in the following description only relate to some embodiments of the present invention, but are not intended to limit the present invention.

[0025] Figure 1 A schematic diagram of a detection method provided in some embodiments of the present disclosure;

[0026] Figure 2 A schematic diagram of a target object and a terminal device provided in some embodiments of the present disclosure;

[0027] Figure 3 A schematic diagram of a target image provided for some embodiments of the present disclosure;

[0028] Figure 4 A schematic diagram of collecting images to be matched provided in some embodiments of the present disclosure;

[0029] Figure 5A schematic diagram of the profile information to be matched and the first profile information provided in some embodiments of the present disclosure;

[0030] Figure 6 A schematic diagram of a process for acquiring a target image provided in some embodiments of the present disclosure;

[0031] Figure 7 A schematic diagram of a flow chart of a vision detection method provided in some embodiments of the present disclosure;

[0032] Fig. 8A A schematic diagram of a partial vision icon provided for some embodiments of the present disclosure;

[0033] Figure 8B A schematic diagram of a user interface provided for some embodiments of the present disclosure;

[0034] Fig. 9 A system that can be used to implement the detection method provided by the embodiment of the present disclosure;

[0035] Fig.10 A schematic block diagram of a detection device provided in some embodiments of the present disclosure;

[0036] Fig.11 A schematic block diagram of a vision detection device provided in some embodiments of the present disclosure;

[0037] Fig.12 A schematic block diagram of a detection device provided in some embodiments of the present disclosure;

[0038] Fig.13 A schematic block diagram of an electronic device provided for some embodiments of the present disclosure;

[0039] Fig.14 A schematic block diagram of another electronic device provided for some embodiments of the present disclosure; and

[0040] Fig.15 A schematic diagram of a storage medium provided for some embodiments of the present disclosure. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] Unless otherwise defined, the technical terms or scientific terms used in this disclosure should be understood by people with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in this disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one", "one" or "the" do not indicate quantity restrictions, but indicate that there is at least one. Similar words such as "include" or "comprise" mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Similar words such as "connect" or "connected" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0043] The distance between the user and the terminal device may be detected using specific body parts of the user, such as a face, a hand, etc. The face is used as an example for description below.

[0044] For example, a standard facial contour can be preset, and it is assumed that the facial contour of each user conforms to the standard facial contour. The standard facial contour is mapped to an image captured by a terminal device at a predetermined distance from it, and the contour information of the standard facial contour in the image captured by the terminal device is calculated, and then the standard facial contour can be displayed on the terminal device at a predetermined distance from it at a certain ratio. In the application scenario of vision detection, the predetermined distance can be, for example, 3 meters, and the contour information of the standard facial contour mapped to the image captured by the terminal device 3 meters away is pre-calculated. The contour information in the image can be called the standard contour information corresponding to the predetermined distance. In the process of detecting the distance between the user and the terminal device, the user's facial image is collected in real time. If the facial contour information in the current facial image matches the standard contour information, it is considered that the current distance between the user and the terminal device is the predetermined distance.

[0045] However, each person's facial contour is different, and the facial contours of many users do not conform to the standard facial contour. Therefore, the distance detection results obtained by using a unified standard facial contour to perform distance detection on different users are inaccurate, which leads to inaccurate vision detection results.

[0046] At least one embodiment of the present disclosure provides a detection method. The detection method includes: in response to a detection request of a target object, obtaining to-be-matched contour information of a specific body part of the target object; determining whether the distance between the target object and a terminal device is a first predetermined distance based on the degree of matching between the to-be-matched contour information and first contour information of the specific body part of the target object; the first contour information is determined based on a target image and corresponds to the first predetermined distance, and the target image is an image containing the specific body part of the target object that is acquired when the distance between the target object and the terminal device is the first predetermined distance.

[0047] At least one embodiment of the present disclosure also provides a detection device, an electronic device, and a storage medium corresponding to the above detection method.

[0048] The detection method provided by the embodiments of the present disclosure can obtain each user's own contour information corresponding to a predetermined distance, and use its own contour information corresponding to the predetermined distance to match with the user's current contour information to determine whether the user is at the predetermined distance, which can improve the accuracy of the distance detection result and avoid the problem of inaccurate detection results caused by using a unified contour to perform distance detection on different users.

[0049] The embodiments of the present disclosure and some examples thereof are described in detail below with reference to the accompanying drawings.

[0050] At least one embodiment of the present disclosure provides a detection method, which can be applied to vision detection scenarios or other application scenarios requiring distance detection, such as interactive game scenarios, etc., to improve the accuracy of distance detection results, and the embodiments of the present disclosure are not limited to this. The following is an introduction using the detection method applied to vision detection scenarios as an example, and other application scenarios are similar and will not be described in detail.

[0051] For example, the detection method can be implemented in the form of software, hardware, firmware or any combination thereof, and loaded and executed by a processor in a device such as a mobile phone, a digital camera, a tablet computer, a laptop computer, a desktop computer, a learning machine, a television set, a network server, etc., to improve the accuracy of the distance detection results and avoid the problem of inaccurate detection results caused by using a unified profile to perform distance detection on different users.

[0052] For example, the detection method is applicable to a computing device (for example, the terminal device described below), and the computing device is any electronic device including a computing function, such as a mobile phone, a digital camera, a laptop computer, a tablet computer, a desktop computer, a learning machine, a television, a network server, etc., which can load and execute the detection method, and the embodiments of the present disclosure are not limited to this. For example, the computing device may include a central processing unit (CPU) or a graphics processing unit (GPU), a digital signal processor (DSP), and other processing units with data processing capabilities and / or instruction execution capabilities, storage units, etc., and the computing device is also equipped with an operating system, an application programming interface (for example, OpenGL (Open Graphics Library), Metal, etc.), etc., and the detection method provided by the embodiments of the present disclosure is implemented by running code or instructions. For example, the computing device may further include an output component such as a display component, and the display component may be a display unit such as a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a quantum dot light emitting diode (QLED) display, etc., and the embodiments of the present disclosure are not limited to this. For example, the display component may display the first contour information, the contour information to be matched, the vision detection image, etc., and the embodiments of the present disclosure are not limited to this.

[0053] Figure 1 A flow chart of a detection method provided in some embodiments of the present disclosure is shown below. Figure 1 The detection method provided by at least one embodiment of the present disclosure is described in detail. Figure 1 As shown, in at least one embodiment, the method includes steps S10-S20.

[0054] Step S10: In response to a detection request of the target object, the contour information to be matched of a specific body part of the target object is obtained.

[0055] Step S20: determining whether the distance between the target object and the terminal device is a first predetermined distance based on the matching degree between the contour information to be matched and the first contour information of the specific body part of the target object.

[0056] For step S20, for example, the first contour information is determined based on the target image and corresponds to the first predetermined distance. The target image is an image of a specific body part of the target object captured when the distance between the target object and the terminal device is the first predetermined distance.

[0057] For step S10, for example, the target object may be a target user, and the target user may be any user who uses the detection method when performing, for example, vision detection. The detection method may be implemented by, for example, an application, and the target user may refer to, for example, any registered user of the application. Therefore, the target object may also be referred to as the target user below. The specific body part may be, for example, at least one of the body parts such as the face, the hand, and the eye, and the embodiments of the present disclosure are not limited to this. The following description takes the specific body part being the face as an example, but the embodiments of the present disclosure are not limited to the face.

[0058] Figure 2 Schematic diagram of target objects and terminal devices provided in some embodiments of the present disclosure. Figure 2 As shown, for example, before executing step S10 and step S20, a target image may be acquired in advance, the target image being an image of a specific body part of the target object 201, and the target image is captured when the distance between the target object 201 and the terminal device 202 is a first predetermined distance L1. For example, the target image may be an image captured by an image acquisition device on the terminal device 202, or may be an image captured by other image acquisition devices that are close to the terminal device 202 and flush with the terminal device, and the embodiments of the present disclosure are not limited to this. For example, the image acquisition device may include a CMOS (complementary metal oxide semiconductor) sensor, a CCD (charge coupled device) sensor, etc., for example, it may be a device that can capture images, such as a camera, etc., and the embodiments of the present disclosure are not limited to this.

[0059] Figure 3 Schematic diagram of a target image provided by some embodiments of the present disclosure. Figure 2 and Figure 3 As shown, after obtaining the target image 301, an edge detection algorithm or other image contour extraction algorithm can be used to extract the contour 302 of the specific body part of the target object from the target image 301 to obtain the first contour information of the specific body part. For example, the edge detection algorithm can include a Canny edge detection algorithm and a Sobel edge detection algorithm, etc. For a specific introduction, please refer to the description in the art, which will not be repeated here.

[0060] For example, when the specific body part is a face, the first contour information may include information such as the length and width of the face contour, the face shape, etc.; when the specific body part is a hand, the first contour information may include information such as the palm width and finger length of the hand contour, the hand shape, etc. Since the target image is captured when the distance between the target object 201 and the terminal device 202 is the first predetermined distance L1, the first contour information 302 extracted from the target image 301 corresponds to the first predetermined distance L1. Afterwards, the first contour information 302 may be used to perform distance detection on the target object 201, so as to use the user's own first contour information corresponding to the first predetermined distance to match the user's current contour to determine whether the user is currently at the predetermined distance, thereby improving the accuracy of the distance detection result and avoiding the problem of inaccurate detection results caused by using a unified contour to perform distance detection on different users.

[0061] For example, in step S10, the detection request may refer to a distance detection request. In some application scenarios, the detection request may also be a request related to the application scenario. For example, in an application scenario of detecting vision, the detection request may refer to a vision detection request. That is, after the target object inputs a vision detection request, the distance detection will be triggered first.

[0062] For example, in step S10, obtaining the contour information to be matched of the specific body part of the target object may include: obtaining an image to be matched containing the specific body part of the target object, and determining the contour information to be matched of the specific body part based on the image to be matched.

[0063] For example, during the detection process, the target object can move forward and backward in a direction perpendicular to the display screen of the terminal device, and an image to be matched can be collected every predetermined time (for example, 0.5 seconds, or 0.8 seconds, 0.2 seconds, etc., depending on the actual situation, and the embodiments of the present disclosure are not limited to this). The image to be matched can refer to an image containing a specific body part taken when the target object is at its current location. For example, in some examples, when the specific body part is the face of the target object, the image to be matched is an image including the face of the target object. For example, the image to be matched can be taken by the above-mentioned terminal device or by an image acquisition device close to the terminal device and flush with the terminal device, and the embodiments of the present disclosure are not limited to this. For example, each time an image to be matched is collected, the contour of the specific body part of the target object is extracted from the image to be matched using an edge detection algorithm or other contour extraction algorithm to obtain contour information to be matched.

[0064] Figure 4 Schematic diagram of collecting images to be matched provided in some embodiments of the present disclosure. Figure 4As shown, when the target user 201 moves to point A, an image to be matched is collected, and the contour of a specific body part is extracted from the image to be matched to obtain contour information to be matched.

[0065] For example, the terminal device 202 includes a display unit, and the display unit is configured to display the contour information to be matched and the first contour information. For example, the display unit can be used as a display screen of the terminal device, for example, the display screen is a liquid crystal display screen, an organic light emitting diode display screen, a quantum dot light emitting diode display screen, etc., and the embodiments of the present disclosure are not limited to this. For example, the display unit can also display the vision detection image mentioned in the subsequent steps, etc., and the embodiments of the present disclosure are not limited to this.

[0066] like Figure 5 As shown, the profile information to be matched can be displayed together with the first profile information on the display screen of the terminal device.

[0067] For example, after obtaining the contour information to be matched, the contour information to be matched can be matched with the first contour information. When the matching degree between the contour information to be matched and the first contour information meets the predetermined matching condition, the distance between the target object and the terminal device is determined to be the first predetermined distance.

[0068] For example, in some examples, matching the contour information to be matched with the first contour information may refer to matching the size information of the two, and satisfying the predetermined matching condition may refer to the difference between the size information included in the contour information to be matched and the first contour information being less than a predetermined difference threshold. For example, the predetermined difference threshold may be determined based on the experience of those skilled in the art, depending on the actual situation, and the embodiments of the present disclosure do not limit this. For example, Figure 5 As shown, in the case where the specific body part is a face, if the difference between the face size included in the to-be-matched contour information 402 and the face size included in the first contour information 302 is less than a predetermined difference threshold, it can be considered that the to-be-matched contour information 402 matches the first contour information 302; otherwise, it is considered that the to-be-matched contour information does not match the first contour information.

[0069] For example, in other examples, matching the contour information to be matched with the first contour information may refer to calculating the average distance between the two contours, and satisfying the predetermined matching condition may refer to the average distance between the two contours being less than a predetermined distance threshold. For example, the predetermined distance threshold may be determined based on the experience of those skilled in the art, depending on the actual situation, and the embodiments of the present disclosure do not limit this. Figure 5As shown, the average distance between the contour information to be matched 402 and the first contour information 302 is calculated. If the average distance is less than a predetermined distance threshold, it can be considered that the contour information to be matched 402 matches the first contour information 302. Otherwise, it is considered that the contour information to be matched 402 does not match the first contour information 302.

[0070] For example, when the to-be-matched contour information matches the first contour information, it is considered that the current distance between the target object and the terminal device is the first predetermined distance.

[0071] The detection method provided by the embodiment of the present disclosure can obtain each user's own contour information corresponding to a predetermined distance, and use its own contour information corresponding to the predetermined distance to match with the user's current contour information to determine whether the user is at the predetermined distance, which can improve the accuracy of the distance detection result and avoid the problem of inaccurate detection results caused by using a unified contour to perform distance detection on different users.

[0072] For example, in some examples, the specific body part may be the face of the target object, and the first contour information is the facial contour information. For example, in other examples, the specific body part may be the iris of the target object, and the first contour information is the iris contour information. For example, in other examples, the specific body part may also be other body parts such as hands and shoulders, and the embodiments of the present disclosure are not limited to this.

[0073] For example, the detection method can be performed by a server connected to the terminal device, or by the terminal device. The user can use the terminal device to interact with the server through the network to receive or send messages, etc. Various client applications can be installed on the terminal device, such as vision detection applications, game applications, shopping applications, web browser applications and / or social platform software, etc. (only as examples). For example, the terminal device can be various electronic devices with a display screen and support web browsing. For example, the terminal device can include a learning machine, a mobile phone, a tablet computer, a display, a television, an electronic drawing board, etc., and can also be other devices with a display function, and the embodiments of the present disclosure are not limited to this.

[0074] In addition to being applied to vision detection scenarios, this detection method can also be applied to other scenarios, such as interactive games that require detecting user distance.

[0075] Figure 6 A schematic diagram of a process for acquiring a target image provided by some embodiments of the present disclosure. Figure 6 As shown, in at least one embodiment, acquiring the target image includes step S31 and step S32.

[0076] Step S31: In response to the first detection request of the target object, the distance between the target object and the terminal device is detected.

[0077] Step S32: When the distance between the target object and the terminal device is a first predetermined distance, control the terminal device to capture a target image.

[0078] For example, when the target user is detected for the first time, other means other than face detection may be used to detect the distance of the target user, and when the target user is detected to be at a first predetermined distance, a target image is captured to obtain first contour information based on the target image. In subsequent detections, the first contour information may be used to detect the distance of the target user.

[0079] For example, in some examples, the distance between the target object and the terminal device is detected based on a distance measuring device. For example, the distance measuring device may include an infrared distance measuring device, a radar distance measuring device, etc., which is not limited by the embodiments of the present disclosure. For example, an infrared distance measuring device and / or a radar distance measuring device may be installed on the terminal device. During the first detection, the distance measuring device may be used to detect whether the target user has reached a first predetermined distance from the terminal device, and then obtain a target image of the target user at the first predetermined distance. Based on this method, the detection result of the distance measuring device is highly accurate, and the first contour information that accurately corresponds to the first predetermined distance can be obtained.

[0080] For example, in other examples, in the process of detecting the distance between the target object and the terminal device, the target object holds a reference object, and the distance between the detected target object and the terminal device can be determined through the reference object and the object contour information of the reference object.

[0081] For example, in this example, detecting the distance between the target object and the terminal device in step S31 may include: acquiring object contour information of a reference object (for example, the object contour information corresponds to a first predetermined distance); acquiring a reference image (for example, the reference image is an image containing a reference object); based on the reference image, determining contour information to be matched of the reference object; based on the degree of matching between the contour information to be matched of the reference object and the object contour information, determining the distance between the reference object and the terminal device as the distance between the target object and the terminal device.

[0082] For example, the reference object may refer to an object with a standard size, such as a matching remote control, A4 paper, a certain model of mobile phone, etc., and the embodiments of the present disclosure are not limited to this. Since the reference object has a standard size, the contour information of the reference object corresponding to the first predetermined distance can be calculated according to the standard size. For example, the contour size of the reference object in the image can be calculated according to the standard size of the reference object contour, the object distance (the first predetermined distance) and the image distance of the camera as the object contour information. Since the object contour information is calculated based on the first predetermined distance, the object contour information corresponds to the first predetermined distance.

[0083] For example, during the initial detection process, the target user can hold the reference object and move it back and forth. The reference object is flush with the target user's body and can be close to a specific body part of the target user, such as the face. Of course, it can also be uneven during the movement. When it is determined that the distance between the reference object and the terminal device is the first predetermined distance, the target user's body is made flush with the reference object. The embodiments of the present disclosure are not limited to this.

[0084] For example, during the process of the target user moving forward and backward, a reference image containing a reference object is acquired at predetermined time intervals, the outline of the reference object is extracted from the reference image, and the outline information to be matched of the reference object is obtained. The outline information to be matched of the reference object is matched with the previously calculated object outline information corresponding to the first predetermined distance. When the outline information to be matched of the reference object matches the object outline information, it is considered that the target user is located at the first predetermined distance. The matching method between the two can refer to the matching method between the above-mentioned first outline information and the outline information to be matched of a specific body part, which will not be described in detail here. Using a reference object of standard size for the first detection can not only ensure the accuracy of the detection, but also complete the first distance detection without a distance measuring device, avoiding the problem of being unable to perform the first detection due to the terminal device not having a distance measuring device installed.

[0085] For example, in other examples, since the iris size of each person is not much different, the iris can also be used for distance measurement to improve the accuracy of the detection result. In the process of the first detection, the iris distance measurement can be performed through the following steps: obtaining an iris image of the target object; obtaining preset iris contour information, the iris contour information corresponds to the first predetermined distance; based on the preset iris contour information and the iris image, determining whether the distance between the target object and the terminal device is the first predetermined distance. For example, a standard iris size can be preset, and the standard contour information of the standard iris at the first predetermined distance can be calculated. In the distance detection process, when the user's current iris contour information matches the standard iris contour information, it is considered that the user has reached the first predetermined distance.

[0086] For example, in some examples, the detection method may further include: when the distance between the target object and the terminal device is less than the first predetermined distance, controlling the terminal device to output first prompt information to prompt the target object to move in a direction away from the terminal device so that the contour information to be matched matches the first contour information. When the distance between the target object and the terminal device is greater than the first predetermined distance, controlling the terminal device to output second prompt information to prompt the target object to move in a direction close to the terminal device so that the contour information to be matched matches the first contour information.

[0087] For example, when the to-be-matched contour information of a specific body part is greater than the first contour information, it is considered that the distance between the target object and the terminal device is less than the first predetermined distance. When the to-be-matched contour information of a specific body part is less than the first contour information, it is considered that the distance between the target object and the terminal device is greater than the first predetermined distance.

[0088] For example, the first prompt information and the second prompt information may be image prompt information, the first prompt information may be a red image, and the second prompt information may be a yellow image; or the first prompt information and the second prompt information may be sound prompt information, the first prompt information may be a voice broadcast information similar to "back", and the second prompt information may be a voice broadcast information similar to "forward", and of course, other types of prompt information may also be used, which are not limited in the embodiments of the present disclosure. Based on this method, the user can quickly and accurately reach a position at a first predetermined distance from the terminal device.

[0089] For example, when the distance between the target object and the terminal device is equal to the first predetermined distance, the terminal device may be controlled to output a third prompt message. For example, the third prompt message may be an image prompt message, such as a green image; or the third prompt message may be a sound prompt message, such as a voice broadcast message similar to "arrived". Of course, other types of prompt messages may also be used, and the embodiments of the present disclosure are not limited thereto.

[0090] At least one embodiment of the present disclosure also provides a vision detection method, including: using the detection method of any embodiment of the present disclosure as described above to determine whether the distance between the target object and the terminal device is a first predetermined distance; when the distance between the target object and the terminal device is the first predetermined distance, controlling the terminal device to display a first vision detection image corresponding to the first predetermined distance, the first vision detection image including at least one vision icon group, each vision icon group including at least one vision icon, each vision icon group being used to represent a vision value; and performing a vision detection on the target object based on the first vision detection image to obtain a vision detection result of the target object.

[0091] Figure 7 The following is a flow chart of a vision detection method provided by some embodiments of the present disclosure. Figure 7 As shown, in at least one embodiment, the method may include steps S41-S42 in addition to S10 and S20 of the detection method in the above embodiment.

[0092] Step S41: When the distance between the target object and the terminal device is a first predetermined distance, the terminal device is controlled to display a first vision detection image corresponding to the first predetermined distance, the first vision detection image includes at least one vision icon group, each vision icon group includes at least one vision icon, and each vision icon group is used to represent a vision value.

[0093] Step S42: performing a vision test on the target object based on the first vision test image to obtain a vision test result of the target object.

[0094] For example, controlling the terminal device to display a first vision detection image corresponding to a first predetermined distance includes: determining the display size of each vision icon in a plurality of groups of vision icons based on the first predetermined distance, for example, the plurality of groups of vision icons are respectively used to represent a plurality of vision values; determining the orientation of each vision icon, for example, the orientation of each vision icon is randomly determined; generating a first vision detection image based on the display size and orientation of each vision icon.

[0095] For example, the first vision detection image may refer to a vision chart image, and the vision icon (hereinafter also referred to as "vision icon") may be, for example, an "E" icon. The size of the vision chart icon is calculated based on the first predetermined distance and the physical width and height of the screen display portion, the screen resolution, and other information, so that the vision detection distance corresponding to the vision chart displayed on the display screen is the first predetermined distance. For example, multiple groups of vision icons may correspond to multiple rows of icons in the vision chart, and the sizes of vision icons in different rows are different to indicate different vision values. Randomly determining the orientation of each vision icon can avoid the problem of cheating due to users memorizing the vision chart.

[0096] For example, the first vision detection image may be an image including a single vision icon in addition to a vision chart consisting of multiple rows of vision icons, and when one vision icon passes the detection, another vision icon is displayed. Alternatively, the first vision detection image may be an image including a single row of vision icons, and when one row of vision icons passes the detection, another row of vision icons is displayed.

[0097] For example, in addition to the standard E sight mark, the sight mark type can also be a children's cartoon sight mark, a C sight mark, etc., and different types of sight marks can be switched according to user selection.

[0098] For example, when displaying the first vision test image, the terminal device can be controlled to increase the brightness of its display screen, for example, the display screen can be adjusted to the highest brightness, so that the target user at a certain distance can see the vision icon clearly. When exiting the vision chart, the display screen of the terminal device can be restored to the original brightness.

[0099] For example, multiple brightness adjustment modes can be set: (1) automatically adjusting the brightness of the display screen according to the ambient light; (2) the user manually setting the brightness; (3) automatically adjusting to the expected brightness pre-configured by the user. The target user can select one of the brightness adjustment modes. In addition, the user can also set the minimum screen brightness.

[0100] Fig. 8A Schematic diagram of partial vision icons provided in some embodiments of the present disclosure. Fig. 8A As shown, an arrow can be used to indicate the vision icon currently being tested. In addition, the terminal device can also display the vision value corresponding to the current vision icon, the number of vision icons that the target user has tested, the accuracy rate and other information.

[0101] For example, the process of vision testing can be as follows: when the target user performs the vision test for the first time, the test can start from the visual mark corresponding to the vision value of 4.0. When the first visual mark of the row is tested correctly, it will jump directly to the next row until the first visual mark of a row is answered incorrectly or the target user indicates that it cannot see clearly. Then the row is tested in detail. For example, several visual marks are tested continuously in the row. If more than 1 / 2 of the visual marks are answered correctly, the row is considered to have passed the test, and the test will continue to jump to the next row until the last row (corresponding to the vision value of 5.3). Several visual marks can be tested in the last row. When more than 1 / 2 of the visual marks are answered correctly, the test will be jumped out, and the test result is 5.3. When the first visual mark of a row is answered incorrectly or the target user indicates that he cannot see clearly, and the correct rate of several visual marks tested for the row is less than 1 / 2, it will jump up one row until the correct rate of a row jumped up exceeds 1 / 2, and the test will be jumped out, and the vision value corresponding to the visual mark of the last row tested will be recorded as the vision value of the target user. If the target user cannot see the visual mark corresponding to the visual acuity value of 4.0, the visual acuity value can be jumped up to the lowest visual acuity value of 3.7. If the visual mark of the 3.7 row is also not visible, the visual acuity value of the target user is recorded as less than 3.7.

[0102] For example, after the vision value of the target user is detected, the vision value of the target user may be recorded, for example, and may be stored in a terminal device, or may be uploaded and stored in a server.

[0103] For example, after detecting the vision value of the target user, a vision report can also be generated. The vision report can include user information, the vision value of the current test, whether the vision is normal, relevant medical advice, vision value trend chart, etc. When the terminal device is offline, the vision report can be temporarily stored locally on the terminal device. After the terminal device is connected to the network, the vision report can be synchronized to the cloud server, or the data can be downloaded from the cloud server to the local terminal device, and the local data can be merged with the server data. The target user can view the current vision report and historical vision reports on the terminal device, or generate a QR code based on the target user ID. Scan the QR code to view the vision report corresponding to the target user, or view the vision data through other terminal devices that communicate with the cloud server.

[0104] For example, information may be pushed to the target user regularly. The pushed information may include, for example, information reminding the user to regularly check his or her eyesight. If the target user has not checked his or her eyesight within a predetermined period of time (eg, 1 month), the user may be reminded to re-check his or her eyesight.

[0105] Figure 8B Schematic diagram of a user interface provided by some embodiments of the present disclosure. Figure 8B As shown, each target user can have his own label. Several labels can be preset, such as four labels of father, mother, boy and girl. The name of each label can be customized, for example, the labels of father, mother, boy and girl are defined as "Bao Dad", "Bao Mom", "Son of Heaven", "Big Beautiful Girl", and the label of visitors can be added. Each user can enter his name, age, face and other information to register. After entering the age of the child, for example, the grade of the child can be automatically calculated. When the number of users is greater than or equal to the predetermined number (for example, 6), the "More" option is displayed, and the "More" option can display people who cannot be displayed before. The user sorting can be arranged in descending order according to the test time of the tested users, that is, the most recently tested users are ranked first. Alternatively, several preset labels can be set to the top. After selecting one of the users, the test can be started, for example, the distance test is performed first and then the vision test is performed. Alternatively, the user can perform the test first, and after completing the vision test, the user is prompted to enter the user information when viewing the vision report.

[0106] For example, each user can be bound to a terminal device, and each user ID is unique and non-duplicate. After the terminal device is connected to the network, the user information can be uploaded to the server, and the user information can also be edited and deleted.

[0107] For example, in some examples, performing vision detection on a target object based on a vision detection image may include: obtaining the target object's vision status, the vision status including historical vision detection results and / or vision data input by the target object; and controlling the terminal device to start detection from a vision icon group corresponding to the vision status.

[0108] For example, if the current vision test of the target user is not the first vision test, the vision value determined by the target user in the most recent vision test can be obtained, and the test can be started from the sight mark row corresponding to the vision value. For example, if the vision value determined by the target user in the most recent test is 4.8, then when performing the current vision test, the test can be started from the row with the vision value of 4.8, without having to start from 4.0. Based on this method, the test process can be simplified and more targeted, so that the target user can understand whether his vision remains unchanged, has improved, or has weakened compared to the last test.

[0109] For example, the target user may input his current vision condition, such as whether he is myopic, the degree of glasses he wears, whether he has amblyopia, the vision value tested at an optician's or medical examination institution, etc. When the target user performs vision testing, the test may start from the vision value corresponding to the vision condition he inputs. For example, if the target user suffers from myopia with a high degree or amblyopia, the test may start from a lower vision value, such as starting from a vision value of 3.7.

[0110] For example, in other examples, a vision detection is performed on a target object based on a vision detection image, including: obtaining input information of the target object, for example, the input information includes at least one of voice information, gesture information, eye image information, head image information and remote control information, and of course it can also be other information, which is not limited to the embodiments of the present disclosure; based on the input information, determining the direction of the vision icon judged by the target object; based on the direction judged by the target object, determining the vision detection result of the target object.

[0111] For example, in some examples, the user's voice input of "up", "down", "left", "right" and other similar words or phrases can be received, and the direction of the visual mark determined by the user can be obtained by using the voice recognition algorithm; the user's voice input of "can't see clearly", "don't know", "uncertain" and other similar words can also be received, and it can be determined that the user can't see the current visual mark clearly. In addition, different rows can be switched by voice such as "jump up a row", "jump down a row", or another visual mark in the current row can be switched by voice such as "change one", etc., and the embodiments of the present disclosure are not limited to this.

[0112] For example, in some examples, users can use gestures to indicate up, down, left, and right directions. By collecting gesture images and using image recognition algorithms, the direction of the visual mark determined by the user can be obtained. When the target user cannot see clearly, a predetermined gesture can also be used to indicate it.

[0113] For example, in some examples, the user can indicate up, down, left, and right directions by rotating his or her eyeballs. When it is detected that the target user's eyes are looking straight ahead for more than a predetermined period of time (e.g., 3 seconds) or it is detected that the target user has closed his or her eyes, it can be determined that the user cannot see the visual mark clearly.

[0114] For example, in some examples, the target user may indicate the direction of the sight mark by turning his head.

[0115] For example, in some examples, the target user can press the up, down, left, right buttons and other designated buttons (such as the "OK" button) of the remote control to indicate four directions and unclear instructions respectively. Based on this method, the detection method can be made more flexible, and the user can choose the detection method according to his or her preferences to improve the user experience.

[0116] It should be noted that other methods may be used to respectively represent the four directions and the unclear instructions, and the embodiments of the present disclosure are not limited to this.

[0117] For example, in other examples, performing vision detection on a target object based on a vision detection image may include: obtaining a facial image of the target object during the vision detection process; determining the eye occlusion state of the target object based on the facial image; and controlling the terminal device to output a prompt message and / or pause the vision detection if the eye occlusion state does not meet predetermined occlusion requirements.

[0118] For example, during the process of the target user's vision test, it can be monitored in real time whether the target user covers one eye. The predetermined blocking requirement may include, for example, covering one eye, and further, may also include covering another eye other than the currently detected eye. For example, during the vision test, a facial image of the target user can be taken every predetermined time (for example, 1 second), and the eyes of the target user can be identified from the facial image according to the image recognition algorithm. If both eyes of the target user can be identified, it is considered that the target user does not cover one eye, which does not meet the predetermined blocking requirement, and the terminal device can be made to speak or the display screen to output a prompt message to prompt the user to cover the eyes. If only one eye can be identified, it can be further determined whether the identified eye is the currently detected eye. If not, it does not meet the predetermined blocking requirement, and the terminal device can be made to speak or the display screen can be made to output a prompt message to prompt the user to cover the other eye; or, when the eye blocking state does not meet the predetermined blocking requirement, the vision test can be suspended until it is detected that the eye blocking state meets the predetermined blocking requirement, and then the test is continued. Based on this method, the target user can be prevented from cheating to obtain a more accurate vision test result.

[0119] For example, during the vision detection process, it is also possible to monitor whether the distance between the target user and the terminal device is maintained at a first predetermined distance, for example, by matching the contour of a specific body part for distance monitoring, or by using a distance measuring device for distance monitoring. When the user's movement position is detected, the user can be prompted to return to the first predetermined distance, or the vision detection is paused until the target user returns to the first predetermined distance, and then the detection is continued.

[0120] For example, the detection method may also include: in a case where the detection distance included in the detection request is switched from a first predetermined distance to a second predetermined distance, determining second contour information corresponding to the second predetermined distance based on the first contour information; based on the second contour information, determining whether the distance between the target object and the terminal device is the second predetermined distance; in a case where the distance between the target object and the terminal device is the second predetermined distance, controlling the terminal device to display a second vision detection image corresponding to the second predetermined distance, so as to perform a vision detection on the target object based on the second vision detection image.

[0121] For example, multiple predetermined distances can be preset. For the vision detection scenario, multiple predetermined distances can include, for example, 1m, 2m, 3m and 5m. The target user can select one of the predetermined distances as the detection distance according to the size of the venue where the target user is located. If the target user does not select, one of the predetermined distances is used as the default distance (for example, 3m). For example, the first predetermined distance can be the default distance. When the target user wants to switch from the first predetermined distance to the second predetermined distance, the first contour information can be scaled proportionally. When the second predetermined distance is less than the first predetermined distance, the first contour information is scaled proportionally. When the second predetermined distance is greater than the first predetermined distance, the first contour information is scaled proportionally, so that the second contour information obtained after scaling the first contour information proportionally corresponds to the second predetermined distance. The second contour information is used to detect the distance of the target user. When the contour information to be matched by the target user matches the second contour information, it is considered that the target user is located at the second predetermined distance.

[0122] For example, after switching to the second predetermined distance, before performing the vision test, the size of the vision icon needs to be scaled proportionally. When the second predetermined distance is smaller than the first predetermined distance, the vision icon is scaled down proportionally. When the second predetermined distance is larger than the first predetermined distance, the vision icon is scaled up proportionally so that the size of the scaled vision icon corresponds to the second predetermined distance. Based on the above method, the target user can switch the detection distance to adapt to different site environments and other factors.

[0123] For example, in some examples, the detection method may also include: obtaining eye behavior information of the target object while the target object uses the terminal device; and outputting prompt information when the eye behavior information meets predetermined eye conditions.

[0124] For example, the eye behavior information may include the time the target user uses the terminal device, the distance between the target user and the display screen, and other behavior information. The predetermined eye condition may include, for example, the use time exceeds a predetermined time threshold (e.g., 2 hours), the distance from the display screen is less than a predetermined distance threshold (e.g., 30 cm), and other conditions. Of course, other conditions may also be included, and the embodiments of the present disclosure are not limited to this. When the predetermined eye condition is reached, the target user is prompted to take a rest or to stay away from the display screen.

[0125] It should be noted that, in the embodiments of the present disclosure, the process of the detection method provided by the above-mentioned various embodiments of the present disclosure may include more or fewer operations, and these operations may be performed sequentially or in parallel. Although the process of the detection method described above includes multiple operations that appear in a specific order, it should be clearly understood that the order of multiple operations is not limited. The detection method described above can be performed once, or it can be performed multiple times according to predetermined conditions.

[0126] Fig. 9 A system that can be used to implement the detection method and / or vision detection method provided by the embodiments of the present disclosure. Fig. 9 As shown, the system 10 may include, for example, a user terminal 11, a network 12, a server 13, and a database 14. For example, the system 10 may be used to implement the detection method and / or vision detection method provided by any embodiment of the present disclosure.

[0127] The user terminal 11 is the terminal device in the above-mentioned embodiment of the present disclosure, such as a computer 11-1 or a mobile phone 11-2. It is understandable that the user terminal 11 can be any other type of electronic device capable of performing data processing, which may include but is not limited to desktop computers, laptops, tablet computers, smart phones, smart home devices, wearable devices, vehicle-mounted electronic devices, monitoring equipment, etc. The user terminal can also be any equipment equipped with an electronic device, such as a vehicle, a robot, etc. The embodiments of the present disclosure do not limit the hardware configuration or software configuration of the user terminal (such as the type (such as Windows, MacOS, etc.) or version of the operating system).

[0128] The user can operate the application installed on the user terminal 11 or the website logged on to the user terminal 11, and the application or website transmits the user behavior data to the server 13 through the network 12. The user terminal 11 can also receive the data transmitted by the server 13 through the network 12. The user terminal 11 can implement the detection method and / or vision detection method provided in the embodiment of the present disclosure by running a subroutine or a subthread.

[0129] For example, in some embodiments, the detection method provided by the embodiment of the present disclosure may be executed by a processing unit of the user terminal 11. In some implementations, the user terminal 11 may execute the detection method by using an application built into the user terminal 11. In other implementations, the user terminal 11 may execute the detection method and / or vision detection method provided by at least one embodiment of the present disclosure by calling an application stored externally of the user terminal 11.

[0130] In other embodiments, the user terminal 11 sends the acquired image to the server 13 via the network 12, and the server 13 executes the detection method. In some implementations, the server 13 may execute the detection method using an application built into the server. In other implementations, the server 13 may execute the detection method and / or the vision detection method by calling an application stored externally to the server 13.

[0131] The network 12 may be a single network or a combination of at least two different networks. For example, the network 12 may include, but is not limited to, a local area network, a wide area network, a public network, a private network, etc., or a combination of several of them.

[0132] The server 13 may be a single server or a server group, such as an IoT server cluster, where each server in the group is connected via a wired or wireless network. A server group may be centralized, such as a data center, or distributed. The server 13 may be local or remote.

[0133] The database 14 may generally refer to a device with a storage function. The database 13 is mainly used to store various data used, generated and output from the user terminal 11 and the server 13. The database 14 may be local or remote. The database 14 may include various memories, such as random access memory (RAM), read only memory (ROM), etc. The storage devices mentioned above are just some examples, and the storage devices that can be used in the system are not limited to these.

[0134] The database 14 may be connected or communicated with the server 13 or a part thereof via the network 12, or directly connected or communicated with the server 13, or a combination of the above two methods.

[0135] In some embodiments, the database 15 may be an independent device. In other embodiments, the database 15 may also be integrated in at least one of the user terminal 11 and the server 14. For example, the database 15 may be set on the user terminal 11 or on the server 14. For another example, the database 15 may also be distributed, with a portion of it being set on the user terminal 11 and another portion being set on the server 14.

[0136] For example, the model database can be deployed on the database 14. When the collected scene data needs to be obtained, the user terminal 11 accesses the database 14 through the network 12, and obtains the scene data stored in the database 14 through the network 12. The embodiments of the present disclosure do not limit the type of database, for example, it can be a relational database or a non-relational database.

[0137] At least one embodiment of the present disclosure also provides a detection device, which can obtain each user's own contour information corresponding to a predetermined distance, and use its own contour information corresponding to the predetermined distance to match with the user's current contour information to determine whether the user is at the predetermined distance, thereby improving the accuracy of the distance detection result and avoiding the problem of inaccurate detection results caused by using a unified contour to perform distance detection on different users.

[0138] Fig.10 A schematic block diagram of a detection device provided in some embodiments of the present disclosure. Fig.10 As shown, the detection device 100a includes a contour acquisition unit 110 and a contour matching unit 120. For example, the detection device 100a can be applied to a user terminal or a server communicating with the user terminal, and the embodiments of the present disclosure are not limited to this. For example, the unit / module in the detection device can be implemented by any combination of hardware, software or firmware, and the following embodiments are the same and will not be repeated.

[0139] The contour acquisition unit 110 is configured to obtain the to-be-matched contour information of a specific body part of the target object in response to a detection request of the target object. For example, the contour acquisition unit 110 may execute the following steps: Figure 1 The step S10 of the detection method shown in the figure can be referred to the introduction of step S10 for a detailed description, which will not be repeated here.

[0140] The contour matching unit 120 is configured to determine whether the distance between the target object and the terminal device is a first predetermined distance based on the matching degree between the contour information to be matched and the first contour information of the specific body part of the target object. For example, the first contour information is determined based on the target image and corresponds to the first predetermined distance. The target image is an image containing the specific body part of the target object acquired when the distance between the target object and the terminal device is the first predetermined distance. For example, the contour matching unit 120 may perform the following steps: Figure 1 The step S20 of the detection method shown in the figure can be referred to the introduction of step S20 for a detailed description, which will not be repeated here.

[0141] It should be noted that in the embodiment of the present disclosure, each unit of the detection device 100a corresponds to each step of the aforementioned detection method. For the specific functions of the detection device 100a, reference may be made to the relevant description of the detection method above, which will not be repeated here. Fig.10 The components and structures of the detection device 100a shown are merely exemplary and non-limiting. The detection device 100a may further include other components and structures as required.

[0142] For example, in some examples, the detection device 100a may also include an image acquisition unit configured to acquire a target image. For example, acquiring the target image may include: detecting the distance between the target object and the terminal device in response to an initial detection request for the target object; and controlling the terminal device to capture the target image when the distance between the target object and the terminal device is a first predetermined distance.

[0143] For example, in some examples, the detection device 100a may also include a first prompt unit, configured to control the terminal device to output first prompt information to prompt the target object to move in a direction away from the terminal device when the distance between the target object and the terminal device is less than a first predetermined distance, so that the contour information to be matched matches the first contour information; and to control the terminal device to output second prompt information to prompt the target object to move in a direction close to the terminal device when the distance between the target object and the terminal device is greater than the first predetermined distance, so that the contour information to be matched matches the first contour information.

[0144] For example, in some examples, the detection device 100a may also include a switching unit, configured to determine, based on the first contour information, second contour information corresponding to the second predetermined distance when the detection distance included in the detection request is switched from a first predetermined distance to a second predetermined distance; determine, based on the second contour information, whether the distance between the target object and the terminal device is the second predetermined distance; and when the distance between the target object and the terminal device is the second predetermined distance, control the terminal device to display a second vision detection image corresponding to the second predetermined distance, so as to perform a vision detection on the target object based on the second vision detection image.

[0145] It should be noted that, for the sake of clarity and simplicity, the embodiments of the present disclosure do not provide all the components of the detection device 100a. To achieve the necessary functions of the detection device 100a, those skilled in the art may provide and set other components not shown according to specific needs, and the embodiments of the present disclosure do not limit this.

[0146] For the relevant description and technical effects of the detection device 100a, reference may be made to the relevant description and technical effects of the detection method provided in the embodiments of the present disclosure, which will not be repeated here.

[0147] At least one embodiment of the present disclosure also provides a vision detection device, which includes: the detection device in the above-mentioned embodiment; a control unit, configured to control the terminal device to display a first vision detection image corresponding to the first predetermined distance when the distance between the target object and the terminal device is a first predetermined distance, the first vision detection image including at least one vision icon group, each vision icon group including at least one vision icon, each vision icon group being used to represent a vision value; and a vision detection unit, configured to perform a vision detection on the target object based on the first vision detection image to obtain a vision detection result of the target object.

[0148] Fig.11 A schematic block diagram of a vision detection device provided in some embodiments of the present disclosure. Fig.11 As shown, the vision detection device 100b includes the contour acquisition unit 110 and the contour matching unit 120 in the above-mentioned detection device 100a, and may also include a control unit 130 and a vision detection unit 140.

[0149] The control unit 130 is configured to control the terminal device to display a first vision detection image corresponding to the first predetermined distance when the distance between the target object and the terminal device is the first predetermined distance. For example, the first vision detection image includes at least one vision icon. For example, the control unit 130 may perform the following steps: Figure 7 The step S41 of the detection method shown in the figure can be referred to the introduction of step S41 for a detailed description, which will not be repeated here.

[0150] The vision detection unit 140 is configured to perform a vision detection on the target object based on the first vision detection image to obtain a vision detection result of the target object. For example, the vision detection unit 140 may perform the following steps: Figure 7 The step S42 of the detection method shown in the figure can be referred to the introduction of step S42 for a detailed description, which will not be repeated here.

[0151] It should be noted that in the embodiment of the present disclosure, each unit of the vision detection device 100b corresponds to each step of the aforementioned detection method. For the specific functions of the vision detection device 100b, please refer to the relevant description of the detection method above, which will not be repeated here. Fig.11 The components and structures of the vision detection device 100b shown are merely exemplary and non-limiting. The vision detection device 100b may further include other components and structures as required.

[0152] For example, in some examples, the vision detection device 100b may also include a second prompt unit, configured to obtain eye behavior information of the target object while the target object uses the terminal device; and output prompt information when the eye behavior information meets predetermined eye conditions.

[0153] It should be noted that, for the sake of clarity and simplicity, the embodiments of the present disclosure do not provide all the components of the vision detection device 100b. To achieve the necessary functions of the vision detection device 100b, those skilled in the art may provide and set other components not shown according to specific needs, and the embodiments of the present disclosure are not limited to this.

[0154] For the relevant description and technical effects of the vision detection device 100b, reference may be made to the relevant description and technical effects of the vision detection method provided in the embodiments of the present disclosure, which will not be repeated here.

[0155] Fig.12 A schematic block diagram of a detection device provided in some embodiments of the present disclosure. Fig.12 As shown, the detection device 200 includes a processor 210 and a memory 220. The memory 220 is used to store non-transitory computer-readable instructions (e.g., one or more computer program modules). The processor 210 is used to run non-transitory computer-readable instructions, and when the non-transitory computer-readable instructions are run by the processor 210, one or more steps in the detection method or vision detection method described above can be executed. The memory 220 and the processor 210 can be interconnected through a bus system and / or other forms of connection mechanisms (not shown).

[0156] For example, the processor 210 may be a central processing unit (CPU), a digital signal processor (DSP), or other forms of processing units with data processing capabilities and / or program execution capabilities, such as a field programmable gate array (FPGA), etc.; for example, the central processing unit (CPU) may be an X86 or ARM architecture, etc. The processor 210 may be a general-purpose processor or a dedicated processor, and may control other components in the electronic device 200 to perform desired functions.

[0157] For example, the memory 220 may include any combination of one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, erasable programmable read-only memory (EPROM), portable compact disk read-only memory (CD-ROM), USB memory, flash memory, etc. One or more computer program modules may be stored on the computer-readable storage medium, and the processor 210 may run one or more computer program modules to implement various functions of the detection device 200. Various applications and various data, as well as various data used and / or generated by the application, etc. may also be stored in the computer-readable storage medium.

[0158] It should be noted that, in the embodiments of the present disclosure, the specific functions and technical effects of the detection device 200 can refer to the above description of the detection method or vision detection method, and will not be repeated here.

[0159] At least one embodiment of the present disclosure also provides an electronic device. Fig.13 A schematic block diagram of an electronic device provided in some embodiments of the present disclosure. Fig.13 As shown, the electronic device 300 includes a detection device 310 and / or a vision detection device 320 as provided in any of the above embodiments, and a terminal device 330. For example, the terminal device 330 is configured to display the contour information to be matched and the first contour information. For example, in other examples, the terminal device is also configured to display a vision detection image, etc., which is not limited in the embodiments of the present disclosure. For example, the detection device 310 may be Fig.10 The detection device 100a shown in Fig.12 The detection device 200 shown in the figure, the vision detection device 320 can be Fig.11 The vision detection device 100b shown or Fig.12 The detection device 200 is shown.

[0160] It should be noted that in the embodiments of the present disclosure, the specific functions and technical effects of the electronic device 300 can refer to the above description of the detection device or detection method, the vision detection device or vision detection method, and will not be repeated here.

[0161] Fig.14 This is a schematic block diagram of another electronic device provided in some embodiments of the present disclosure. The electronic device 400 is suitable for implementing the detection method and / or vision detection method provided in the embodiments of the present disclosure. The electronic device 400 may be a user terminal, etc. It should be noted that: Fig.14 The electronic device 400 shown is merely an example and does not impose any limitation on the functions and scope of use of the embodiments of the present disclosure.

[0162] like Fig.14 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 410, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 420 or a program loaded from a storage device 480 to a random access memory (RAM) 430. In the RAM 430, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 410, the ROM 420, and the RAM 430 are connected to each other via a bus 440. An input / output (I / O) interface 450 is also connected to the bus 440.

[0163] Typically, the following devices may be connected to the I / O interface 450: an input device 460 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 470 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 480 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 490. The communication device 490 may allow the electronic device 400 to communicate with other electronic devices wirelessly or by wire to exchange data. Although Fig.14 The electronic device 400 is shown to have various devices, but it should be understood that it is not required to implement or possess all the devices shown, and the electronic device 400 may alternatively implement or possess more or fewer devices.

[0164] For example, the detection method and / or vision detection method according to the embodiments of the present disclosure may be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, the computer program including a program code for executing the above-mentioned detection method and / or vision detection method. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 490, or installed from the storage device 480, or installed from the ROM 420. When the computer program is executed by the processing device 410, the functions defined in the detection method and / or vision detection method provided in the embodiments of the present disclosure may be executed.

[0165] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a non-transitory computer-readable storage medium or any combination of the above two. The non-transitory computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of non-transitory computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a non-transitory computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a non-transitory computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0166] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as Hyper Text Transfer Protocol (HTTP), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0167] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0168] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains the to-be-matched contour information of the specific body part of the target object in response to the detection request of the target object; and determines whether the distance between the target object and the terminal device is a first predetermined distance based on the degree of matching between the to-be-matched contour information and the first contour information of the specific body part of the target object, the first contour information is determined based on the target image and corresponds to the first predetermined distance, and the target image is an image containing the specific body part of the target object that is captured when the distance between the target object and the terminal device is the first predetermined distance.

[0169] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or combinations thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, such as a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0170] At least one embodiment of the present disclosure further provides a storage medium for storing non-temporary computer-readable instructions. When the non-temporary computer-readable instructions are executed by a computer, the detection method or vision detection method described in any embodiment of the present disclosure can be implemented.

[0171] Fig.15A schematic diagram of a storage medium provided in some embodiments of the present disclosure. Fig.15 As shown, the storage medium 500 is used to store non-transitory computer-readable instructions 510. For example, when the non-transitory computer-readable instructions 510 are executed by a computer, one or more steps in the detection method or vision detection method described above can be performed.

[0172] For example, the storage medium may be any combination of one or more computer-readable storage media, such as a computer-readable storage medium containing a computer-readable program code for obtaining the to-be-matched contour information of a specific body part of the target object in response to a detection request of the target object, and another computer-readable storage medium containing a computer-readable program code for determining whether the distance between the target object and the terminal device is a first predetermined distance based on the degree of matching between the to-be-matched contour information and the first contour information of the specific body part of the target object. For example, when the program code is read by a computer, the computer may execute the program code stored in the computer storage medium to execute, for example, the detection method or vision detection method provided in any embodiment of the present disclosure.

[0173] For example, the storage medium may include a memory card of a smart phone, a storage component of a tablet computer, a hard disk of a personal computer, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), flash memory, or any combination of the above storage media, or other applicable storage media.

[0174] For example, the storage medium 500 may be applied to the electronic device 400. Fig.14 The memory 420 in the electronic device 400 is shown. For example, the description of the storage medium 500 can refer to Fig.14 The corresponding description of the memory 420 in the electronic device 400 is shown and will not be repeated here.

[0175] Combination Figures 1 to 15 The detection method, detection device, vision detection method, vision detection device, electronic device and storage medium provided by the embodiments of the present disclosure are described. The detection method provided by the embodiments of the present disclosure can be used to detect whether the distance between the target user and the terminal device is a predetermined distance, obtain the contour information corresponding to the predetermined distance of each user, and use the contour information corresponding to the predetermined distance of each user to match with the current contour information of the user to determine whether the user is at the predetermined distance, which can improve the accuracy of the distance detection result and avoid the problem of inaccurate detection results caused by using a unified contour to detect the distance of different users.

[0176] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0177] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.

[0178] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), etc.

[0179] In the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0180] The above description is only a partial embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

[0181] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0182] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A storage medium for storing non-transitory computer-readable instructions, when the non-transitory computer-readable instructions are executed by a computer, a vision detection method is implemented, comprising: In response to a detection request of a target object, obtaining contour information to be matched of a specific body part of the target object; Based on the degree of matching between the contour information to be matched and the first contour information of the specific body part of the target object, determine whether the distance between the target object and the terminal device is a first predetermined distance, and when the degree of matching between the contour information to be matched and the first contour information meets a predetermined matching condition, determine that the distance between the target object and the terminal device is the first predetermined distance; wherein the first contour information is determined based on a target image and corresponds to the first predetermined distance, and the target image is an image containing the specific body part of the target object that is acquired when the distance between the target object and the terminal device is the first predetermined distance; When the distance between the target object and the terminal device is the first predetermined distance, control the terminal device to generate and display a first vision detection image corresponding to the first predetermined distance, wherein the first vision detection image includes at least one vision icon group, each of the vision icon groups includes at least one vision icon, and each of the vision icon groups is used to represent a vision value; Performing a vision test on the target object based on the first vision test image to obtain a vision test result of the target object; In a case where the detection distance included in the detection request is switched from the first predetermined distance to a second predetermined distance, determining second contour information corresponding to the second predetermined distance based on the first contour information; determining whether the distance between the target object and the terminal device is the second predetermined distance based on the second contour information; and When the distance between the target object and the terminal device is the second predetermined distance, the terminal device is controlled to display a second vision detection image corresponding to the second predetermined distance, so as to perform a vision detection on the target object based on the second vision detection image, and the second vision detection image is a scaled image of the first vision detection image.

2. The storage medium according to claim 1, wherein: The vision detection method also includes: Acquire the target image, Wherein, acquiring the target image includes: In response to a first detection request of the target object, detecting a distance between the target object and the terminal device; and When the distance between the target object and the terminal device is the first predetermined distance, the terminal device is controlled to capture the target image.

3. The storage medium according to claim 2, wherein: The distance between the target object and the terminal device is detected based on a distance measuring device.

4. The storage medium according to claim 2, wherein: In the process of detecting the distance between the target object and the terminal device, the target object holds a reference object; Detecting the distance between the target object and the terminal device includes: Acquiring object contour information of the reference object, wherein the object contour information corresponds to the first predetermined distance; Acquire a reference image, wherein the reference image is an image containing the reference object; Based on the reference image, determining contour information to be matched of the reference object; and Based on the matching degree between the to-be-matched contour information of the reference object and the object contour information, the distance between the reference object and the terminal device is determined as the distance between the target object and the terminal device.

5. The storage medium according to any one of claims 1 to 4, wherein: Acquiring the contour information to be matched of the specific body part of the target object, including: Acquire an image to be matched that includes a specific body part of the target object; Based on the image to be matched, contour information to be matched of the specific body part is determined.

6. The storage medium according to any one of claims 1 to 4, wherein: The vision detection method also includes: When the distance between the target object and the terminal device is less than the first predetermined distance, controlling the terminal device to output first prompt information to prompt the target object to move in a direction away from the terminal device so that the contour information to be matched matches the first contour information; and / or When the distance between the target object and the terminal device is greater than the first predetermined distance, the terminal device is controlled to output second prompt information to prompt the target object to move toward the direction close to the terminal device so that the contour information to be matched matches the first contour information.

7. The storage medium according to any one of claims 1 to 4, wherein: Controlling the terminal device to generate and display a first vision detection image corresponding to the first predetermined distance includes: determining a display size of each vision icon in each vision icon group based on the first predetermined distance; Determining the orientation of each vision icon, wherein the orientation of each vision icon is randomly determined; and The first vision detection image is generated based on the display size and orientation of each vision icon.

8. The storage medium according to any one of claims 1 to 4, wherein: Performing vision detection on the target object based on the vision detection image includes: Acquiring input information of the target object, wherein the input information includes at least one of voice information, gesture information, eyeball image information, head image information, and remote control information; Based on the input information, determining the direction of the vision icon judged by the target object; and Based on the determined orientation of the target object, a vision detection result of the target object is determined.

9. The storage medium according to any one of claims 1 to 4, wherein: Performing vision detection on the target object based on the vision detection image includes: Acquiring the vision status of the target object, wherein the vision status includes historical vision test results and / or vision data input by the target object; and The terminal device is controlled to start detection from the vision icon group corresponding to the vision status.

10. The storage medium according to any one of claims 1 to 4, wherein: Performing vision detection on the target object based on the vision detection image includes: Acquiring a facial image of the target object during vision testing; Based on the facial image, determining an eye occlusion state of the target object; and When the eye occlusion state does not meet the predetermined occlusion requirement, the terminal device is controlled to output a prompt message and / or suspend vision detection.

11. The storage medium according to any one of claims 1 to 4, wherein: The vision detection method also includes: While the target object is using the terminal device, acquiring the eye behavior information of the target object; and When the eye use behavior information meets the predetermined eye use conditions, prompt information is output.

12. The storage medium according to any one of claims 1 to 4, wherein: The specific body part is the face of the target object, and the first contour information is facial contour information; or The specific body part is the iris of the target object, and the first contour information is iris contour information.

13. The storage medium according to any one of claims 1 to 4, wherein: The terminal device includes a display unit configured to display the to-be-matched profile information and the first profile information.

14. A vision detection device, comprising a detection device, a control unit and a vision detection unit, wherein: The detection device comprises: A contour acquisition unit, configured to acquire to-be-matched contour information of a specific body part of the target object in response to a detection request of the target object; a contour matching unit, configured to determine whether the distance between the target object and the terminal device is a first predetermined distance based on a degree of matching between the contour information to be matched and first contour information of the specific body part of the target object, and to determine that the distance between the target object and the terminal device is the first predetermined distance when the degree of matching between the contour information to be matched and the first contour information satisfies a predetermined matching condition; wherein the first contour information is determined based on a target image and corresponds to the first predetermined distance, and the target image is an image containing the specific body part of the target object acquired when the distance between the target object and the terminal device is the first predetermined distance; and a switching unit configured to, when the detection distance included in the detection request is switched from the first predetermined distance to the second predetermined distance, determine, based on the first contour information, second contour information corresponding to the second predetermined distance; determine, based on the second contour information, whether the distance between the target object and the terminal device is the second predetermined distance; and, when the distance between the target object and the terminal device is the second predetermined distance, control the terminal device to display a second vision detection image corresponding to the second predetermined distance, so as to perform vision detection on the target object based on the second vision detection image; The control unit is configured to control the terminal device to generate and display a first vision detection image corresponding to the first predetermined distance when the distance between the target object and the terminal device is the first predetermined distance, wherein the first vision detection image includes at least one vision icon group, each of the vision icon groups includes at least one vision icon, each of the vision icon groups is used to represent a vision value, and the second vision detection image is a scaled image of the first vision detection image; and The vision detection unit is configured to perform a vision detection on the target object based on the first vision detection image to obtain a vision detection result of the target object.

15. A vision detection device, comprising: processor; a memory including one or more computer program modules; The one or more computer program modules are stored in the memory and configured to be executed by the processor to implement a vision detection method, including: In response to a detection request of a target object, obtaining contour information to be matched of a specific body part of the target object; Based on the degree of matching between the contour information to be matched and the first contour information of the specific body part of the target object, determine whether the distance between the target object and the terminal device is a first predetermined distance, and when the degree of matching between the contour information to be matched and the first contour information meets a predetermined matching condition, determine that the distance between the target object and the terminal device is the first predetermined distance; wherein the first contour information is determined based on a target image and corresponds to the first predetermined distance, and the target image is an image containing the specific body part of the target object that is acquired when the distance between the target object and the terminal device is the first predetermined distance; When the distance between the target object and the terminal device is the first predetermined distance, control the terminal device to generate and display a first vision detection image corresponding to the first predetermined distance, wherein the first vision detection image includes at least one vision icon group, each of the vision icon groups includes at least one vision icon, and each of the vision icon groups is used to represent a vision value; Performing a vision test on the target object based on the first vision test image to obtain a vision test result of the target object; In a case where the detection distance included in the detection request is switched from the first predetermined distance to a second predetermined distance, determining second contour information corresponding to the second predetermined distance based on the first contour information; Based on the second profile information, determining whether the distance between the target object and the terminal device is the second predetermined distance; and When the distance between the target object and the terminal device is the second predetermined distance, the terminal device is controlled to display a second vision detection image corresponding to the second predetermined distance, so as to perform a vision detection on the target object based on the second vision detection image, and the second vision detection image is a scaled image of the first vision detection image.

16. An electronic device, comprising the vision detection device according to any one of claims 14-15, and the terminal device; in, The terminal device is configured to display the to-be-matched profile information and the first profile information.