CN105120050A - Detection method and terminal employing same - Google Patents
Detection method and terminal employing same Download PDFInfo
- Publication number
- CN105120050A CN105120050A CN201510355057.8A CN201510355057A CN105120050A CN 105120050 A CN105120050 A CN 105120050A CN 201510355057 A CN201510355057 A CN 201510355057A CN 105120050 A CN105120050 A CN 105120050A
- Authority
- CN
- China
- Prior art keywords
- image
- terminal
- distance information
- unit
- image acquisition
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 169
- 238000012545 processing Methods 0.000 claims abstract description 20
- 238000000034 method Methods 0.000 claims description 33
- 230000006870 function Effects 0.000 description 29
- 230000004438 eyesight Effects 0.000 description 27
- 238000004891 communication Methods 0.000 description 26
- 230000004304 visual acuity Effects 0.000 description 18
- 238000010586 diagram Methods 0.000 description 13
- 230000008569 process Effects 0.000 description 9
- 238000010295 mobile communication Methods 0.000 description 7
- 238000005259 measurement Methods 0.000 description 6
- 238000012360 testing method Methods 0.000 description 6
- 230000001960 triggered effect Effects 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000012905 input function Methods 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 238000007796 conventional method Methods 0.000 description 3
- 230000009977 dual effect Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 238000005192 partition Methods 0.000 description 2
- 230000002441 reversible effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 101150012579 ADSL gene Proteins 0.000 description 1
- 102100020775 Adenylosuccinate lyase Human genes 0.000 description 1
- 108700040193 Adenylosuccinate lyases Proteins 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003909 pattern recognition Methods 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 239000002904 solvent Substances 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 239000010409 thin film Substances 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a terminal, and the terminal is provided with at least two image collection units. The terminal also comprises a detection unit which is used for determining the corresponding distance information of a target object through the first and second image collection units; a processing unit which is used for analyzing the distance information and obtaining corresponding relation of parameters; a determining unit which is used for determining a detection table and representing a first image corresponding to the detection table according to the corresponding relation of parameters; an obtaining unit which is used for obtaining input data based on the first image; and a first judgment unit which is used for judging whether the inputted data is matched with the first image or not, and recording the judgment results. The embodiment of the invention discloses a detection method.
Description
Technical Field
The present invention relates to application technologies of terminals, and in particular, to a detection method and a terminal thereof.
Background
With the technological progress, electronic equipment has become an indispensable article in people's life; terminal equipment, especially intelligent terminal can provide more and more applications for the user. However, in the application of the existing terminal, there is no application mode related to detecting the eyesight of the target object, so a detection method is needed to enrich the user experience.
Disclosure of Invention
In order to solve the existing technical problem, the embodiment of the invention provides a detection method and a terminal thereof.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a terminal, which is provided with at least two image acquisition units; the terminal further comprises:
the detection unit is used for determining distance information corresponding to the target object by utilizing a first image acquisition unit and a second image acquisition unit in the at least two image acquisition units;
the processing unit is used for analyzing the distance information to obtain a parameter corresponding relation;
the determining unit is used for determining a detection table according to the parameter corresponding relation and presenting a first image corresponding to the detection table;
an acquisition unit configured to acquire input data based on the first image;
and the first judging unit is used for judging whether the input data is matched with the first image or not and recording a judging result.
The embodiment of the invention also provides a detection method, which is applied to the terminal; the terminal is provided with at least two image acquisition units; the method comprises the following steps:
determining distance information corresponding to the target object by using a first image acquisition unit and a second image acquisition unit of the at least two image acquisition units;
analyzing the distance information to obtain a parameter corresponding relation;
determining a detection table according to the parameter corresponding relation, and presenting a first image corresponding to the detection table;
acquiring input data based on the first image;
and judging whether the input data is matched with the first image or not, and recording a judgment result.
According to the detection method and the terminal provided by the embodiment of the invention, the distance information corresponding to the target object is determined by using the first image acquisition unit and the second image acquisition unit of at least two image acquisition units arranged in the terminal, the distance information is analyzed to obtain the parameter corresponding relation, the detection table is determined according to the parameter corresponding relation, the first image corresponding to the detection table is presented, the input data based on the first image is obtained, whether the input data is matched with the first image is further judged, and the judgment result is recorded, so that the purpose of performing vision detection by using the terminal is realized, and the user experience is enriched and improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
FIG. 3 is a first schematic flow chart illustrating an implementation of the detection method according to the embodiment of the present invention;
FIG. 4 is a representative eye chart corresponding to distance information in an embodiment of the present invention;
FIG. 5 is a diagram illustrating a third image first presented by the terminal according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a second implementation flow of the detection method according to the embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal provided with a first camera and a second camera according to an embodiment of the present invention;
FIG. 8 is a schematic diagram illustrating a principle of dual camera side distances according to an embodiment of the present invention;
FIG. 9 is a third schematic flow chart illustrating an implementation of the detection method according to the embodiment of the present invention;
FIG. 10 is a schematic diagram of a fourth implementation flow of the detection method according to the embodiment of the present invention;
fig. 11 is a first schematic structural diagram of a terminal according to an embodiment of the present invention;
FIG. 12 is a diagram illustrating the result of the terminal according to the embodiment of the present invention;
fig. 13 is a third schematic structural diagram of a terminal according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic hardware configuration of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, an a/V (audio/video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit may include at least one of a broadcast receiving module 111, a mobile communication module 112, a wireless internet module 113, a short-range communication module 114, and a location information module 115.
The broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. The broadcast channel may include a satellite channel and/or a terrestrial channel. The broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to a terminal. The broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like. Also, the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal. The broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112. The broadcast signal may exist in various forms, for example, it may exist in the form of an Electronic Program Guide (EPG) of Digital Multimedia Broadcasting (DMB), an Electronic Service Guide (ESG) of digital video broadcasting-handheld (DVB-H), and the like. The broadcast receiving module 111 may receive a signal broadcast by using various types of broadcasting systems. In particular, the broadcast receiving module 111 may receive digital broadcasting by using a digital broadcasting system such as a digital broadcasting-terrestrial (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video broadcasting-handheld (DVB-H), a data broadcasting system of forward link media (MediaFLO), a terrestrial digital broadcasting integrated service (ISDB-T), and the like. The broadcast receiving module 111 may be constructed to be suitable for various broadcasting systems that provide broadcast signals as well as the above-mentioned digital broadcasting systems. The broadcast signal and/or broadcast associated information received via the broadcast receiving module 111 may be stored in the memory 160 (or other type of storage medium).
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 113 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The short-range communication module 114 is a module for supporting short-range communication. Some examples of short-range communication technologies include bluetoothTMRadio Frequency Identification (RFID), infrared data association (IrDA), Ultra Wideband (UWB), zigbeeTMAnd so on.
The location information module 115 is a module for checking or acquiring location information of the mobile terminal. A typical example of the location information module is a GPS (global positioning system). According to the current technology, the GPS module 115 calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information, thereby accurately calculating three-dimensional current location information according to longitude, latitude, and altitude. Currently, a method for calculating position and time information uses three satellites and corrects an error of the calculated position and time information by using another satellite. In addition, the GPS module 115 can calculate speed information by continuously calculating current position information in real time.
The a/V input unit 120 is used to receive an audio or video signal. The a/V input unit 120 may include a camera 121 and a microphone 1220, and the camera 121 processes image data of still pictures or video obtained by an image capturing apparatus in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 151. The image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 1210 may be provided according to the construction of the mobile terminal. The microphone 122 may receive sounds (audio data) via the microphone in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the mobile communication module 112 in case of a phone call mode. The microphone 122 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device. The sensing unit 140 may include a proximity sensor 1410 as will be described below in connection with a touch screen.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, an alarm unit 153, and the like.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output as sound when the mobile terminal is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a speaker, a buzzer, and the like.
The alarm unit 153 may provide an output to notify the mobile terminal 100 of the occurrence of an event. Typical events may include call reception, message reception, key signal input, touch input, and the like. In addition to audio or video output, the alarm unit 153 may provide output in different ways to notify the occurrence of an event. For example, the alarm unit 153 may provide an output in the form of vibration, and when a call, a message, or some other incoming communication (incomingmunication) is received, the alarm unit 153 may provide a tactile output (i.e., vibration) to inform the user thereof. By providing such a tactile output, the user can recognize the occurrence of various events even when the user's mobile phone is in the user's pocket. The alarm unit 153 may also provide an output notifying the occurrence of an event via the display unit 151 or the audio output module 152.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 1810 for reproducing (or playing back) multimedia data, and the multimedia module 1810 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to now, the mobile terminal has been described in terms of its functions. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
A communication system in which a mobile terminal according to the present invention is operable will now be described with reference to fig. 2.
Such communication systems may use different air interfaces and/or physical layers. For example, the air interface used by the communication system includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)), global system for mobile communications (GSM), and the like. By way of non-limiting example, the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
Referring to fig. 2, the CDMA wireless communication system may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC280 is also configured to interface with a BSC275, which may be coupled to the base station 270 via a backhaul. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, frame Relay, HDSL, ADSL, or xDSL. It will be understood that a system as shown in fig. 2 may include multiple BSCs 2750.
Each BS270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25MHz,5MHz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each sector of a particular BS270 may be referred to as a plurality of cell sites.
As shown in fig. 2, a Broadcast Transmitter (BT)295 transmits a broadcast signal to the mobile terminal 100 operating within the system. A broadcast receiving module 111 as shown in fig. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295. In fig. 2, several Global Positioning System (GPS) satellites 300 are shown. The satellite 300 assists in locating at least one of the plurality of mobile terminals 100.
In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites. The GPS module 115 as shown in fig. 1 is generally configured to cooperate with satellites 300 to obtain desired positioning information. Other techniques that can track the location of the mobile terminal may be used instead of or in addition to GPS tracking techniques. In addition, at least one GPS satellite 300 may selectively or additionally process satellite DMB transmission.
As a typical operation of the wireless communication system, the BS270 receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is generally engaged in conversations, messaging, and other types of communications. Each reverse link signal received by a particular base station 270 is processed within the particular BS 270. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN290 interfaces with the MSC280, the MSC interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS270 to transmit forward link signals to the mobile terminal 100.
Based on the above mobile terminal hardware structure and communication system, the present invention provides various embodiments of the method.
Example one
FIG. 3 is a first schematic flow chart illustrating an implementation of the detection method according to the embodiment of the present invention; the terminal is provided with at least two image acquisition units; as shown in fig. 3, the method includes:
step 301: determining distance information corresponding to the target object by using a first image acquisition unit and a second image acquisition unit of the at least two image acquisition units;
step 302: analyzing the distance information to obtain a parameter corresponding relation;
step 303: determining a detection table according to the parameter corresponding relation, and presenting a first image corresponding to the detection table;
step 304: acquiring input data based on the first image;
step 305: and judging whether the input data is matched with the first image or not, and recording a judgment result.
In this embodiment, the terminal may specifically be a mobile terminal such as a mobile phone and a tablet computer, and may also be a fixed terminal such as a computer.
In this embodiment, after the terminal needs to start the first application based on the first operation, the first image acquisition unit and the second image acquisition unit of the at least two image acquisition units are triggered to determine the distance information corresponding to the target object; and the distance information corresponding to the target object is used for representing the distance between the target object and the terminal. Here, the first application may be specifically an application corresponding to measuring eyesight. It should be understood by those skilled in the art that the first operation may be a click operation, such as a single-click operation or a double-click operation, or when the terminal supports touch display, the first operation may be a touch operation performed on an icon corresponding to the first application.
In a specific embodiment, the first image capturing unit is disposed at a first position corresponding to the terminal, the second image capturing unit is disposed at a second position corresponding to the terminal, and the first position and the second position are both located in a same plane of the terminal, for example, the first image capturing unit and the second image capturing unit are both disposed at a plane corresponding to a display unit of the terminal, and specifically, the first image capturing unit and the second image capturing unit are both front cameras, so that the first image capturing unit and the second image capturing unit can simultaneously capture images of a target object.
In another specific embodiment, the terminal is provided with three image acquisition units; a first image acquisition unit and a second image acquisition unit of the three image acquisition units are arranged on the plane of a display unit of the terminal, namely a front image acquisition unit; the third image acquisition unit of the three image acquisition units is arranged on a plane opposite to the display unit, namely the rear image acquisition unit. All image acquisition units can be realized by cameras.
In practical application, in order to make the determined distance information more accurate, the distance information may also be average distance information, specifically, the terminal performs distance measurement for multiple times by using the first image acquisition unit and the second image acquisition unit to determine multiple distances, for example, a first distance, a second distance, that is, an nth distance, where N is a positive integer greater than or equal to 2, and then determines an average value according to the multiple distances, and further uses the average value as final distance information, so that accuracy of a distance value is improved, and a foundation is laid for improving accuracy of a detection result.
In this embodiment, after the terminal determines distance information between itself and the target object, the terminal analyzes the distance information, for example, the terminal compares a distance value corresponding to the distance information with a standard test table, obtains a parameter corresponding relationship corresponding to the distance information through conversion, and determines a detection table matched with the distance value corresponding to the distance information according to the parameter corresponding relationship, where the size and resolution of each image in the detection table correspond to the distance information, for example, the terminal determines a visual acuity table corresponding to the distance information according to the distance information with the target object, so as to provide visual acuity detection for the target object, as shown in fig. 4, fig. 4 is a standard visual acuity table corresponding to the distance information; further, after the terminal determines a detection table corresponding to the current distance information, an image in the detection table, such as a first image, is presented according to a preset rule, where the preset rule may be according to a corresponding detection rule in the existing vision detection; however, when the image in the detection table is presented for the first time, for example, a third image, which may be the same as or different from the first image, may be any one of the images in the detection table, that is, the third image may be randomly determined by the terminal; or the third image is any image corresponding to a certain specific line determined according to a first sub-rule in the preset rules; the first sub-rule is used for specifying a specific row in the detection table, but is not limited to which column; that is, the third image is a random image corresponding to a specific line determined according to the first sub-rule; as shown in fig. 5, fig. 5 is a third image presented for the first time; it will be understood by those skilled in the art that the "first" in the first image and the "third" in the third image are used only to distinguish the images and are not used to define the order.
It should be understood by those skilled in the art that, in practical applications, the first image presented may also be determined by the terminal according to the second operation received from the user, for example, according to the degree of vision input by the terminal, a first row of the detection table corresponding to the degree is determined, and then, the terminal randomly determines an image corresponding to the first row.
In addition, when the detection table is a representation visual acuity chart, the image presented by the terminal is a black-and-white image, so that the visual acuity detection is facilitated, and the detection accuracy is improved.
In this embodiment, the terminal presents the first image in the detection table on a display unit of the terminal, the target object observes the first image, and feeds back information corresponding to the first image that the terminal sees to the terminal through modes such as voice input, key input, or touch output, so that the terminal can acquire input data, and then matches the acquired input data with image feature information corresponding to the first image, thereby achieving the purpose of detection.
In this embodiment, the input data may be audio data, or text data corresponding to an input key, or touch data corresponding to a touch operation; specifically, the target object may input audio data in a voice manner, for example, input voices such as up, down, left, and right, so that the terminal acquires input data representing audio. Or, four keys in the terminal are corresponding to four directions (up, down, left and right), so that the directions are determined through the keys, and the terminal can acquire input data capable of representing the directions; or, respectively corresponding four different areas in the terminal to four directions, and determining input data capable of representing the directions through touch operation performed on a specific area. It should be understood by those skilled in the art that if the terminal obtains the input data in a voice manner, the terminal needs to turn on a voice function to facilitate the voice input of the user; here, the time of starting the voice function may be a time of starting the first application, that is, starting the voice function when the first application is started, or starting the voice function according to an operation implemented on the user interface, or starting the voice input function after the step 303 is executed.
In this embodiment, the determining whether the input data is matched with the first image may specifically be determining whether an input feature parameter corresponding to the input data is matched with an image feature parameter corresponding to the first image; the matching may specifically be the same; that is, whether the input characteristic parameter corresponding to the input data is the same as the image characteristic parameter corresponding to the first image is determined. In practical applications, the input characteristic parameters may represent direction parameters, such as up, down, left, and right; the image characteristic parameters may also characterize the orientation parameters, e.g. up, down, left, right.
According to the detection method provided by the embodiment of the invention, the distance information corresponding to the target object is determined by using the first image acquisition unit and the second image acquisition unit in at least two image acquisition units arranged in the terminal, the distance information is analyzed to obtain the parameter corresponding relation, the detection table is determined according to the parameter corresponding relation, the first image corresponding to the detection table is presented, the input data based on the first image is obtained, whether the input data is matched with the first image is further judged, and the judgment result is recorded, so that the purpose of performing vision detection by using the terminal is realized, and the user experience is enriched and improved.
In addition, the detection method provided by the embodiment of the invention utilizes the two image acquisition units to detect the distance between the terminal and the target object, so that compared with the conventional method for detecting the distance by using the terminal, the method provided by the embodiment of the invention is more accurate, and the detection accuracy can be improved.
Example two
Based on the detection method described in the first embodiment, in order to further determine how to determine the distance information, the embodiment of the present invention details step 301, and specifically, as shown in fig. 6, step 301 includes:
step 301A: acquiring images of the target image by using a first image acquisition unit and a second image acquisition unit of the at least two image acquisition units to obtain a second image and a third image;
step 301B: acquiring the position relation information between the first image acquisition unit and the second image acquisition unit;
step 301C: and determining distance information corresponding to the target object by the second image and the third image according to the position relation information.
In a specific embodiment, the terminal is a smart phone; fig. 7 is a schematic structural view of a terminal provided with a first camera and a second camera; as shown in fig. 7, the first image acquisition unit arranged in the smart phone is implemented by a first camera 71, the second image acquisition unit is implemented by a second camera 72, and both the first camera 71 and the second camera 72 are front cameras.
Furthermore, in the embodiment of the invention, a double-camera side distance method is adopted to realize a distance measurement process; FIG. 8 is a schematic side view of a dual camera; as shown in fig. 7 and 8, specifically, the first camera 71 and the second camera 72 are used to perform image acquisition on the target object P, so as to obtain a first image PlAnd a second image PrHere, O is shown in FIG. 8lIs the light source of the first camera 71, OrAs a light source of the second camera 72, the OlAnd said OrThe connecting line therebetween is taken as an X axis, such as the X axis shown in fig. 8, and the direction perpendicular to the X axis in the display plane is taken as a Y axis, such as the Y axis shown in fig. 8, to establish a coordinate system; thus, the first image P is obtainedlX relative to the X axislSaid second image PrX relative to the X axisrAccording to the following formula (1), the following formula (2) is obtained, and the distance information Z between the terminal and the target object P is calculated according to the formula (2); the formula (1) and the formula (2) are as follows:
wherein T is a center distance between the first camera 71 and the second camera 72; and f is the focal length.
Therefore, the distance information between the terminal and the target object determined by the method is more accurate, and a foundation can be laid for accurately determining the corresponding relation of the parameters and determining the detection table.
EXAMPLE III
FIG. 9 is a third schematic flow chart illustrating an implementation of the detection method according to the embodiment of the present invention; the terminal is provided with at least two image acquisition units; as shown in fig. 9, the method includes:
step 901: determining distance information corresponding to the target object by using a first image acquisition unit and a second image acquisition unit of the at least two image acquisition units;
in order to further determine whether the distance information meets the requirement, the embodiment of the present invention further needs to determine whether the distance information is within a threshold range; specifically, the terminal enters a first application starting distance measuring mode, a target object is fixed at a certain distance from the terminal, the terminal detects the distance between the target object and the terminal, the terminal compares the detected distance information with a threshold range, if the detected distance information does not fall into the threshold range, the terminal can prompt the target object to shorten the distance between the terminals or elongate the distance between the terminals through displaying prompt information, playing prompt information by a loudspeaker or vibrating and the like until the distance information detected by the terminal falls into the preset range.
Step 902: judging whether the distance information is in a threshold range;
step 903: when the distance information is within the threshold value range, analyzing the distance information to obtain a parameter corresponding relation; step 905 is then performed;
step 904: when the distance information is not within the threshold range, generating prompt information to prompt the target object to adjust the position information of the target object, and continuing to execute the step 901; until the adjusted distance information corresponding to the target object is within the threshold range;
step 905: determining a detection table according to the parameter corresponding relation, and presenting a first image corresponding to the detection table;
step 906: acquiring input data based on the first image;
step 907: and judging whether the input data is matched with the first image or not, and recording a judgment result.
In this embodiment, the terminal may specifically be a mobile terminal such as a mobile phone and a tablet computer, and may also be a fixed terminal such as a computer.
In this embodiment, after the terminal needs to start the first application based on the first operation, the first image acquisition unit and the second image acquisition unit of the at least two image acquisition units are triggered to determine the distance information corresponding to the target object; and the distance information corresponding to the target object is used for representing the distance between the target object and the terminal. Here, the first application may be specifically an application corresponding to measuring eyesight. It should be understood by those skilled in the art that the first operation may be a click operation, such as a single-click operation or a double-click operation, or when the terminal supports touch display, the first operation may be a touch operation performed on an icon corresponding to the first application.
In a specific embodiment, the first image capturing unit is disposed at a first position corresponding to the terminal, the second image capturing unit is disposed at a second position corresponding to the terminal, and the first position and the second position are both located in a same plane of the terminal, for example, the first image capturing unit and the second image capturing unit are both disposed at a plane corresponding to a display unit of the terminal, and specifically, the first image capturing unit and the second image capturing unit are both front cameras, so that the first image capturing unit and the second image capturing unit can simultaneously capture images of a target object.
In another specific embodiment, the terminal is provided with three image acquisition units; a first image acquisition unit and a second image acquisition unit of the three image acquisition units are arranged on the plane of a display unit of the terminal, namely a front image acquisition unit; the third image acquisition unit of the three image acquisition units is arranged on a plane opposite to the display unit, namely the rear image acquisition unit. All image acquisition units can be realized by cameras.
In practical application, in order to make the determined distance information more accurate, the distance information may also be average distance information, specifically, the terminal performs distance measurement for multiple times by using the first image acquisition unit and the second image acquisition unit to determine multiple distances, for example, a first distance, a second distance, that is, an nth distance, where N is a positive integer greater than or equal to 2, and then determines an average value according to the multiple distances, and further uses the average value as final distance information, so that accuracy of a distance value is improved, and a foundation is laid for improving accuracy of a detection result.
In this embodiment, after the terminal determines distance information between itself and the target object, the terminal analyzes the distance information, for example, the terminal compares a distance value corresponding to the distance information with a standard test table, obtains a parameter corresponding relationship corresponding to the distance information through conversion, and determines a detection table matched with the distance value corresponding to the distance information according to the parameter corresponding relationship, where the size and resolution of each image in the detection table correspond to the distance information, for example, the terminal determines a visual acuity table corresponding to the distance information according to the distance information with the target object, so as to provide visual acuity detection for the target object, as shown in fig. 4, fig. 4 is a standard visual acuity table corresponding to the distance information; further, after the terminal determines a detection table corresponding to the current distance information, an image in the detection table, such as a first image, is presented according to a preset rule, where the preset rule may be according to a corresponding detection rule in the existing vision detection; however, when the image in the detection table is presented for the first time, for example, a third image, which may be the same as or different from the first image, may be any one of the images in the detection table, that is, the third image may be randomly determined by the terminal; or the third image is any image corresponding to a certain specific line determined according to a first sub-rule in the preset rules; the first sub-rule is used for specifying a specific row in the detection table, but is not limited to which column; that is, the third image is a random image corresponding to a specific line determined according to the first sub-rule; as shown in fig. 5, fig. 5 is a third image presented for the first time; it will be understood by those skilled in the art that the "first" in the first image and the "third" in the third image are used only to distinguish the images and are not used to define the order.
It should be understood by those skilled in the art that, in practical applications, the first image presented may also be determined by the terminal according to the second operation received from the user, for example, according to the degree of vision input by the terminal, a first row of the detection table corresponding to the degree is determined, and then, the terminal randomly determines an image corresponding to the first row.
In addition, when the detection table is a representation visual acuity chart, the image presented by the terminal is a black-and-white image, so that the visual acuity detection is facilitated, and the detection accuracy is improved.
In this embodiment, the terminal presents the first image in the detection table on a display unit of the terminal, the target object observes the first image, and feeds back information corresponding to the first image that the terminal sees to the terminal through modes such as voice input, key input, or touch output, so that the terminal can acquire input data, and then matches the acquired input data with image feature information corresponding to the first image, thereby achieving the purpose of detection.
In this embodiment, the input data may be audio data, or text data corresponding to an input key, or touch data corresponding to a touch operation; specifically, the target object may input audio data in a voice manner, for example, input voices such as up, down, left, and right, so that the terminal acquires input data representing audio. Or, four keys in the terminal are corresponding to four directions (up, down, left and right), so that the directions are determined through the keys, and the terminal can acquire input data capable of representing the directions; or, respectively corresponding four different areas in the terminal to four directions, and determining input data capable of representing the directions through touch operation performed on a specific area. It should be understood by those skilled in the art that if the terminal obtains the input data in a voice manner, the terminal needs to turn on a voice function to facilitate the voice input of the user; here, the moment of starting the voice function may be a moment of starting the first application, that is, starting the voice function when the first application is started, or starting the voice function according to an operation implemented on the user interaction interface, or starting the voice input function after the step 903 is executed.
In this embodiment, the determining whether the input data is matched with the first image may specifically be determining whether an input feature parameter corresponding to the input data is matched with an image feature parameter corresponding to the first image; the matching may specifically be the same; that is, whether the input characteristic parameter corresponding to the input data is the same as the image characteristic parameter corresponding to the first image is determined. In practical applications, the input characteristic parameters may represent direction parameters, such as up, down, left, and right; the image characteristic parameters may also characterize the orientation parameters, e.g. up, down, left, right.
In a specific embodiment, when the distance information between the target object and the terminal is within the threshold range, and the first image acquisition unit and the second image acquisition unit are both implemented by a front camera, a picture acquired by the front camera is presented in a display unit of the terminal, at this time, in order to further improve the accuracy of vision detection by using a mobile phone, a first display area is presented in the display unit, and the first display area includes two sub-areas, so that the eyes of the acquired target object are respectively displayed in the two sub-areas, thereby ensuring that the target object and the terminal are approximately on a horizontal plane; in order to further ensure that the eyes of the target object and the presented image corresponding to the detection table are on the same horizontal plane, the image corresponding to the detection table is also presented in the first display area, and the accuracy of vision detection by using the terminal is further improved. Here, when the terminal presents the image corresponding to the detection table, it is not necessary to distinguish two sub-areas.
According to the detection method provided by the embodiment of the invention, the distance information corresponding to the target object is determined by using the first image acquisition unit and the second image acquisition unit in at least two image acquisition units arranged in the terminal, the distance information is analyzed to obtain the parameter corresponding relation, the detection table is determined according to the parameter corresponding relation, the first image corresponding to the detection table is presented, the input data based on the first image is obtained, whether the input data is matched with the first image is further judged, and the judgment result is recorded, so that the purpose of performing vision detection by using the terminal is realized, and the user experience is enriched and improved.
In addition, the detection method provided by the embodiment of the invention utilizes the two image acquisition units to detect the distance between the terminal and the target object, so that compared with the conventional method for detecting the distance by using the terminal, the method provided by the embodiment of the invention is more accurate, and the detection accuracy can be improved.
Example four
FIG. 10 is a schematic diagram of a fourth implementation flow of the detection method according to the embodiment of the present invention; the terminal is provided with at least two image acquisition units; as shown in fig. 10, the method includes:
step 1001: determining distance information corresponding to the target object by using a first image acquisition unit and a second image acquisition unit of the at least two image acquisition units;
step 1002: analyzing the distance information to obtain a parameter corresponding relation;
step 1003: determining a detection table according to the parameter corresponding relation, and presenting a first image corresponding to the detection table;
step 1004: acquiring input data based on the first image;
step 1005: judging whether the input data is matched with the first image or not, and recording a judgment result;
step 1006: automatically adjusting the displayed image according to the judgment result to display a second image corresponding to the detection table; the second image has a first relationship with the first image; or adjusting the presented image based on user operation to present a second image corresponding to the detection table.
In this embodiment, the terminal may specifically be a mobile terminal such as a mobile phone and a tablet computer, and may also be a fixed terminal such as a computer.
In this embodiment, after the terminal needs to start the first application based on the first operation, the first image acquisition unit and the second image acquisition unit of the at least two image acquisition units are triggered to determine the distance information corresponding to the target object; and the distance information corresponding to the target object is used for representing the distance between the target object and the terminal. Here, the first application may be specifically an application corresponding to measuring eyesight. It should be understood by those skilled in the art that the first operation may be a click operation, such as a single-click operation or a double-click operation, or when the terminal supports touch display, the first operation may be a touch operation performed on an icon corresponding to the first application.
In a specific embodiment, the first image capturing unit is disposed at a first position corresponding to the terminal, the second image capturing unit is disposed at a second position corresponding to the terminal, and the first position and the second position are both located in a same plane of the terminal, for example, the first image capturing unit and the second image capturing unit are both disposed at a plane corresponding to a display unit of the terminal, and specifically, the first image capturing unit and the second image capturing unit are both front cameras, so that the first image capturing unit and the second image capturing unit can simultaneously capture images of a target object.
In another specific embodiment, the terminal is provided with three image acquisition units; a first image acquisition unit and a second image acquisition unit of the three image acquisition units are arranged on the plane of a display unit of the terminal, namely a front image acquisition unit; the third image acquisition unit of the three image acquisition units is arranged on a plane opposite to the display unit, namely the rear image acquisition unit. All image acquisition units can be realized by cameras.
In practical application, in order to make the determined distance information more accurate, the distance information may also be average distance information, specifically, the terminal performs distance measurement for multiple times by using the first image acquisition unit and the second image acquisition unit to determine multiple distances, for example, a first distance, a second distance, that is, an nth distance, where N is a positive integer greater than or equal to 2, and then determines an average value according to the multiple distances, and further uses the average value as final distance information, so that accuracy of a distance value is improved, and a foundation is laid for improving accuracy of a detection result.
In this embodiment, after the terminal determines distance information between itself and the target object, the terminal analyzes the distance information, for example, the terminal compares a distance value corresponding to the distance information with a standard test table, obtains a parameter corresponding relationship corresponding to the distance information through conversion, and determines a detection table matched with the distance value corresponding to the distance information according to the parameter corresponding relationship, where the size and resolution of each image in the detection table correspond to the distance information, for example, the terminal determines a visual acuity table corresponding to the distance information according to the distance information with the target object, so as to provide visual acuity detection for the target object, as shown in fig. 4, fig. 4 is a standard visual acuity table corresponding to the distance information; further, after the terminal determines a detection table corresponding to the current distance information, an image in the detection table, such as a first image, is presented according to a preset rule, where the preset rule may be according to a corresponding detection rule in the existing vision detection; however, when the image in the detection table is presented for the first time, for example, a third image, which may be the same as or different from the first image, may be any one of the images in the detection table, that is, the third image may be randomly determined by the terminal; or the third image is any image corresponding to a certain specific line determined according to a first sub-rule in the preset rules; the first sub-rule is used for specifying a specific row in the detection table, but is not limited to which column; that is, the third image is a random image corresponding to a specific line determined according to the first sub-rule; as shown in fig. 5, fig. 5 is a third image presented for the first time; it will be understood by those skilled in the art that the "first" in the first image and the "third" in the third image are used only to distinguish the images and are not used to define the order.
It should be understood by those skilled in the art that, in practical applications, the first image presented may also be determined by the terminal according to the second operation received from the user, for example, according to the degree of vision input by the terminal, a first row of the detection table corresponding to the degree is determined, and then, the terminal randomly determines an image corresponding to the first row.
In addition, when the detection table is a representation visual acuity chart, the image presented by the terminal is a black-and-white image, so that the visual acuity detection is facilitated, and the detection accuracy is improved.
In this embodiment, the terminal presents the first image in the detection table on a display unit of the terminal, the target object observes the first image, and feeds back information corresponding to the first image that the terminal sees to the terminal through modes such as voice input, key input, or touch output, so that the terminal can acquire input data, and then matches the acquired input data with image feature information corresponding to the first image, thereby achieving the purpose of detection.
In this embodiment, the input data may be audio data, or text data corresponding to an input key, or touch data corresponding to a touch operation; specifically, the target object may input audio data in a voice manner, for example, input voices such as up, down, left, and right, so that the terminal acquires input data representing audio. Or, four keys in the terminal are corresponding to four directions (up, down, left and right), so that the directions are determined through the keys, and the terminal can acquire input data capable of representing the directions; or, respectively corresponding four different areas in the terminal to four directions, and determining input data capable of representing the directions through touch operation performed on a specific area. It should be understood by those skilled in the art that if the terminal obtains the input data in a voice manner, the terminal needs to turn on a voice function to facilitate the voice input of the user; here, the time of starting the voice function may be a time of starting the first application, that is, starting the voice function when the first application is started, or starting the voice function according to an operation implemented on the user interface, or starting the voice input function after step 1003 is executed.
In this embodiment, the determining whether the input data is matched with the first image may specifically be determining whether an input feature parameter corresponding to the input data is matched with an image feature parameter corresponding to the first image; the matching may specifically be the same; that is, whether the input characteristic parameter corresponding to the input data is the same as the image characteristic parameter corresponding to the first image is determined. In practical applications, the input characteristic parameters may represent direction parameters, such as up, down, left, and right; the image characteristic parameters may also characterize the orientation parameters, e.g. up, down, left, right.
In this embodiment, after presenting the second image corresponding to the detection table, the terminal obtains input data based on the second image, determines whether the input data based on the second image matches with the second image, records a determination result, and outputs the determination result until the determination result meets a preset requirement. Here, the preset requirement may be arbitrarily set according to an actual situation, for example, in a specific embodiment, a voice function is used to obtain voice information input by a target object, and further determine whether the voice information matches the first image, if so, the determination result is recorded, and a next-level test is performed according to the determination result, that is, according to an existing eyesight detection rule, any image in a next row corresponding to the first image in the detection table is output; if not, recording the judgment result, or prompting the user to try again; and when the judgment results of the upper and lower levels are not matched, prompting the user to terminate the vision detection, and finishing the detection process.
In this embodiment, when the terminal automatically adjusts an image of a program, the second image is any image in a next level corresponding to the first image; for example, the second image is any one of the next row of images corresponding to the first image in the detection table. Or, the image presented by the terminal may be arbitrarily adjusted according to the user's requirements, for example, when the method of the embodiment of the present invention is used for performing eyesight test, the user may adjust the level corresponding to the presented image, such as adjusting the degree, by pressing the volume up-down key; the level corresponding to the presented image can be adjusted in a voice mode, such as degree increasing or degree decreasing, specifically, 25 degrees can be set as the first gear or 50 degrees can be set as the first gear, and then the level of the presented image can be adjusted in a voice mode or a volume key mode, so that the purpose of detecting eyesight is achieved.
According to the detection method provided by the embodiment of the invention, the distance information corresponding to the target object is determined by using the first image acquisition unit and the second image acquisition unit in at least two image acquisition units arranged in the terminal, the distance information is analyzed to obtain the parameter corresponding relation, the detection table is determined according to the parameter corresponding relation, the first image corresponding to the detection table is presented, the input data based on the first image is obtained, whether the input data is matched with the first image is further judged, and the judgment result is recorded, so that the purpose of performing vision detection by using the terminal is realized, and the user experience is enriched and improved.
In addition, the detection method provided by the embodiment of the invention utilizes the two image acquisition units to detect the distance between the terminal and the target object, so that compared with the conventional method for detecting the distance by using the terminal, the method provided by the embodiment of the invention is more accurate, and the detection accuracy can be improved.
EXAMPLE five
Fig. 11 is a first schematic structural diagram of a terminal according to an embodiment of the present invention; the terminal is provided with at least two image acquisition units; as shown in fig. 11, the terminal further includes:
the detection unit 21 is configured to determine distance information corresponding to the target object by using a first image acquisition unit and a second image acquisition unit of the at least two image acquisition units;
the processing unit 22 is configured to analyze the distance information to obtain a parameter correspondence;
the determining unit 23 is configured to determine a detection table according to the parameter correspondence, and present a first image corresponding to the detection table;
an acquisition unit 24 for acquiring input data based on the first image;
and a first judging unit 25, configured to judge whether the input data matches the first image, and record a judgment result.
Those skilled in the art will understand that the functions of each processing unit in the electronic device according to the embodiment of the present invention can be understood by referring to the related description of the foregoing detection method. In particular, the amount of the solvent to be used,
in this embodiment, the terminal may specifically be a mobile terminal such as a mobile phone and a tablet computer, and may also be a fixed terminal such as a computer.
In this embodiment, after the terminal needs to start the first application based on the first operation, the detection unit 21 is triggered to determine the distance information corresponding to the target object by using the first image acquisition unit and the second image acquisition unit of the at least two image acquisition units; and the distance information corresponding to the target object is used for representing the distance between the target object and the terminal. Here, the first application may be specifically an application corresponding to measuring eyesight. It should be understood by those skilled in the art that the first operation may be a click operation, such as a single-click operation or a double-click operation, or when the terminal supports touch display, the first operation may be a touch operation performed on an icon corresponding to the first application.
In a specific embodiment, the first image capturing unit is disposed at a first position corresponding to the terminal, the second image capturing unit is disposed at a second position corresponding to the terminal, and the first position and the second position are both located in a same plane of the terminal, for example, the first image capturing unit and the second image capturing unit are both disposed at a plane corresponding to a display unit of the terminal, and specifically, the first image capturing unit and the second image capturing unit are both front cameras, so that the first image capturing unit and the second image capturing unit can simultaneously capture images of a target object.
In another specific embodiment, the terminal is provided with three image acquisition units; a first image acquisition unit and a second image acquisition unit of the three image acquisition units are arranged on the plane of a display unit of the terminal, namely a front image acquisition unit; the third image acquisition unit of the three image acquisition units is arranged on a plane opposite to the display unit, namely the rear image acquisition unit. All image acquisition units can be realized by cameras.
In practical application, in order to make the determined distance information more accurate, the distance information may also be an average distance information, specifically, the terminal triggers the detection unit 21 to perform distance measurement for multiple times by using the first image acquisition unit and the second image acquisition unit, to determine multiple distances, for example, a first distance, a second distance, that is, an nth distance, where N is a positive integer greater than or equal to 2, and then, determine an average value according to the multiple distances, and further use the average value as final distance information, so that accuracy of a distance value is improved, and a foundation is laid for improving accuracy of a detection result.
In this embodiment, after the detection unit 21 determines the distance information between the terminal and the target object, the processing unit 22 analyzes the distance information, for example, the processing unit 22 compares the distance value corresponding to the distance information with a standard test table, through conversion, a parameter corresponding relation corresponding to the distance information is obtained, and the determining unit 23 is triggered to determine a detection table matched with the distance value corresponding to the distance information according to the parameter corresponding relation, the size and resolution of each image in the detection table correspond to the distance information, for example, the terminal determines the visual chart corresponding to the distance information according to the distance information between the terminal and the target object, further providing vision detection for the target object, as shown in fig. 4, fig. 4 is a standard visual acuity chart corresponding to the distance information; further, after the determining unit 23 determines the detection table corresponding to the current distance information, an image in the detection table, such as the first image, is presented according to a preset rule, where the preset rule may be according to a corresponding detection rule in the existing vision detection; however, when the image in the detection table is presented for the first time, for example, a third image, which may be the same as or different from the first image, may be any one of the images in the detection table, that is, the third image may be randomly determined by the terminal; or the third image is any image corresponding to a certain specific line determined according to a first sub-rule in the preset rules; the first sub-rule is used for specifying a specific row in the detection table, but is not limited to which column; that is, the third image is a random image corresponding to a specific line determined according to the first sub-rule; as shown in fig. 5, fig. 5 is a third image presented for the first time; it will be understood by those skilled in the art that the "first" in the first image and the "third" in the third image are used only to distinguish the images and are not used to define the order.
It should be understood by those skilled in the art that, in practical applications, the first image presented may also be determined by the terminal according to the second operation received from the user, for example, according to the degree of vision input by the terminal, a first row of the detection table corresponding to the degree is determined, and then, the terminal randomly determines an image corresponding to the first row.
In addition, when the detection table is a representation visual acuity chart, the image presented by the terminal is a black-and-white image, so that the visual acuity detection is facilitated, and the detection accuracy is improved.
In this embodiment, the terminal presents the first image in the detection table on its own display unit, the target object observes the first image, and feeds back information corresponding to the first image that the target object sees to the terminal through modes such as voice input, key input, or touch output, so that the obtaining unit 24 can obtain input data, and then triggers the first determining unit 25 to match the image feature information corresponding to the first image according to the obtained input data, thereby achieving the purpose of detection.
In this embodiment, the input data may be audio data, or text data corresponding to an input key, or touch data corresponding to a touch operation; specifically, the target object may input audio data in a voice manner, for example, input voices such as up, down, left, and right, so that the terminal acquires input data representing audio. Or, four keys in the terminal are corresponding to four directions (up, down, left and right), so that the directions are determined through the keys, and the terminal can acquire input data capable of representing the directions; or, respectively corresponding four different areas in the terminal to four directions, and determining input data capable of representing the directions through touch operation performed on a specific area. It should be understood by those skilled in the art that if the terminal obtains the input data in a voice manner, the terminal needs to turn on a voice function to facilitate the voice input of the user; here, the moment of starting the voice function may be a moment of starting the first application, that is, starting the voice function when the first application is started, or starting the voice function according to an operation implemented on the user interface, or starting the voice input function after the determining unit 23 presents the first image.
In this embodiment, the determining whether the input data is matched with the first image may specifically be determining whether an input feature parameter corresponding to the input data is matched with an image feature parameter corresponding to the first image; the matching may specifically be the same; that is, whether the input characteristic parameter corresponding to the input data is the same as the image characteristic parameter corresponding to the first image is determined. In practical applications, the input characteristic parameters may represent direction parameters, such as up, down, left, and right; the image characteristic parameters may also characterize the orientation parameters, e.g. up, down, left, right.
According to the terminal provided by the embodiment of the invention, the distance information corresponding to the target object is determined by using the first image acquisition unit and the second image acquisition unit in at least two image acquisition units arranged in the terminal, the distance information is analyzed to obtain the parameter corresponding relation, the detection table is determined according to the parameter corresponding relation, the first image corresponding to the detection table is presented, the input data based on the first image is obtained, whether the input data is matched with the first image is further judged, and the judgment result is recorded, so that the purpose of performing vision detection by using the terminal is realized, and the user experience is enriched and improved.
In addition, the terminal provided by the embodiment of the invention utilizes the two image acquisition units to detect the distance between the terminal and the target object, so that compared with the distance detection mode of the existing terminal, the detection method adopted by the terminal provided by the embodiment of the invention is more accurate, and the detection accuracy can be improved.
EXAMPLE six
Based on the terminal described in the fifth embodiment, in the embodiment of the present invention, as shown in fig. 12, the detecting unit 21 includes:
an image acquisition subunit 2101, configured to perform image acquisition on the target image by using a first image acquisition unit and a second image acquisition unit of the at least two image acquisition units to obtain a second image and a third image;
an acquisition sub-unit 2102 for acquiring positional relationship information between the first image capturing unit and the second image capturing unit;
and the processing subunit 2103 is configured to determine, according to the position relationship information, distance information corresponding to the target object by using the second image and the third image.
In a specific embodiment, the terminal is a smart phone; fig. 7 is a schematic structural view of a terminal provided with a first camera and a second camera; as shown in fig. 7, the first image acquisition unit arranged in the smart phone is implemented by a first camera 71, the second image acquisition unit is implemented by a second camera 72, and both the first camera 71 and the second camera 72 are front cameras.
Furthermore, in the embodiment of the invention, a double-camera side distance method is adopted to realize a distance measurement process; FIG. 8 is a schematic side view of a dual camera; as shown in fig. 7 and 8, specifically, the first camera 71 and the second camera 72 are used to perform image acquisition on the target object P, so as to obtain a first image PlAnd a second image PrHere, O is shown in FIG. 8lIs the light source of the first camera 71, OrAs a light source of the second camera 72, the OlAnd said OrWith the line of connection therebetween as the X-axis, e.g.An X axis shown in fig. 8, and a direction perpendicular to the X axis in the display plane is taken as a Y axis, such as the Y axis shown in fig. 8, to establish a coordinate system; thus, the first image P is obtainedlX relative to the X axislSaid second image PrX relative to the X axisrAccording to the following formula (1), the following formula (2) is obtained, and the distance information Z between the terminal and the target object P is calculated according to the formula (2); the formula (1) and the formula (2) are as follows:
wherein T is a center distance between the first camera 71 and the second camera 72; and f is the focal length.
Therefore, the distance information between the terminal and the target object determined by the method is more accurate, and a foundation can be laid for accurately determining the corresponding relation of the parameters and determining the detection table.
Those skilled in the art will understand that the functions of each processing unit in the electronic device according to the embodiment of the present invention can be understood by referring to the related description of the foregoing detection method.
EXAMPLE seven
Fig. 13 is a third schematic structural diagram of a terminal according to an embodiment of the present invention; the terminal is provided with at least two image acquisition units; as shown in fig. 13, the terminal further includes:
the detection unit 21 is configured to determine distance information corresponding to the target object by using a first image acquisition unit and a second image acquisition unit of the at least two image acquisition units;
the processing unit 22 is configured to analyze the distance information to obtain a parameter correspondence;
the determining unit 23 is configured to determine a detection table according to the parameter correspondence, and present a first image corresponding to the detection table;
an acquisition unit 24 for acquiring input data based on the first image;
and a first judging unit 25, configured to judge whether the input data matches the first image, and record a judgment result.
In this embodiment, the terminal further includes:
a second judging unit 26, configured to judge whether the distance information is within a threshold range;
correspondingly, the processing unit 22 is further configured to, when the distance information is within the threshold range, analyze the distance information to obtain a parameter corresponding relationship.
In this embodiment, the processing unit 22 is further configured to generate a prompt message when the distance information is not within the threshold range, so as to prompt the target object to adjust the position information of the target object, so that the distance information corresponding to the adjusted target object is within the threshold range.
In this embodiment, the terminal further includes:
an adjusting unit 27, configured to automatically adjust the presented image according to the determination result, so as to present a second image corresponding to the detection table; the second image has a first relationship with the first image; or adjusting the presented image based on user operation to present a second image corresponding to the detection table.
Those skilled in the art will understand that the functions of each processing unit in the electronic device according to the embodiment of the present invention can be understood by referring to the related description of the foregoing detection method. In addition, in this embodiment, the functions of each processing unit may refer to the description of the fifth embodiment, and are not described herein again.
In a specific embodiment, when the distance information between the target object and the terminal is within the threshold range, and the first image acquisition unit and the second image acquisition unit are both implemented by a front camera, a picture acquired by the front camera is presented in a display unit of the terminal, at this time, in order to further improve the accuracy of vision detection by using a mobile phone, a first display area is presented in the display unit, and the first display area includes two sub-areas, so that the eyes of the acquired target object are respectively displayed in the two sub-areas, thereby ensuring that the target object and the terminal are approximately on a horizontal plane; in order to further ensure that the eyes of the target object and the presented image corresponding to the detection table are on the same horizontal plane, the image corresponding to the detection table is also presented in the first display area, and the accuracy of vision detection by using the terminal is further improved. Here, when the terminal presents the image corresponding to the detection table, it is not necessary to distinguish two sub-areas.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A terminal is characterized in that the terminal is provided with at least two image acquisition units; the terminal further comprises:
the detection unit is used for determining distance information corresponding to the target object by utilizing a first image acquisition unit and a second image acquisition unit in the at least two image acquisition units;
the processing unit is used for analyzing the distance information to obtain a parameter corresponding relation;
the determining unit is used for determining a detection table according to the parameter corresponding relation and presenting a first image corresponding to the detection table;
an acquisition unit configured to acquire input data based on the first image;
and the first judging unit is used for judging whether the input data is matched with the first image or not and recording a judging result.
2. The terminal of claim 1, wherein the detecting unit comprises:
the image acquisition subunit is used for acquiring an image of the target image by using a first image acquisition unit and a second image acquisition unit of the at least two image acquisition units to obtain a second image and a third image;
the acquisition subunit is used for acquiring the position relation information between the first image acquisition unit and the second image acquisition unit;
and the processing subunit is configured to determine, according to the position relationship information, distance information corresponding to the target object by using the second image and the third image.
3. The terminal of claim 1, further comprising:
a second judging unit, configured to judge whether the distance information is within a threshold range;
correspondingly, the processing unit is further configured to analyze the distance information to obtain a parameter corresponding relationship when the distance information is within the threshold range.
4. The terminal according to claim 3, wherein the processing unit is further configured to generate a prompt message to prompt the target object to adjust its own position information when the distance information is not within the threshold range, so that the distance information corresponding to the adjusted target object is within the threshold range.
5. The terminal of claim 1, further comprising:
the adjusting unit is used for automatically adjusting the displayed image according to the judgment result so as to display a second image corresponding to the detection table; the second image has a first relationship with the first image; or,
and adjusting the presented image based on user operation to present a second image corresponding to the detection table.
6. A detection method is applied to a terminal; the terminal is characterized in that the terminal is provided with at least two image acquisition units; the method comprises the following steps:
determining distance information corresponding to the target object by using a first image acquisition unit and a second image acquisition unit of the at least two image acquisition units;
analyzing the distance information to obtain a parameter corresponding relation;
determining a detection table according to the parameter corresponding relation, and presenting a first image corresponding to the detection table;
acquiring input data based on the first image;
and judging whether the input data is matched with the first image or not, and recording a judgment result.
7. The method according to claim 6, wherein the determining distance information corresponding to the target object by using the first image capturing unit and the second image capturing unit of the at least two image capturing units comprises:
acquiring images of the target image by using a first image acquisition unit and a second image acquisition unit of the at least two image acquisition units to obtain a second image and a third image;
acquiring the position relation information between the first image acquisition unit and the second image acquisition unit;
and determining distance information corresponding to the target object by the second image and the third image according to the position relation information.
8. The method of claim 6, further comprising:
judging whether the distance information is in a threshold range;
correspondingly, the analyzing the distance information to obtain a parameter corresponding relationship includes:
and when the distance information is within the threshold range, analyzing the distance information to obtain a parameter corresponding relation.
9. The method of claim 8, further comprising:
and when the distance information is not in the threshold range, generating prompt information to prompt the target object to adjust the position information of the target object, so that the distance information corresponding to the adjusted target object is in the threshold range.
10. The method of claim 6, further comprising:
automatically adjusting the displayed image according to the judgment result to display a second image corresponding to the detection table; the second image has a first relationship with the first image; or,
and adjusting the presented image based on user operation to present a second image corresponding to the detection table.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510355057.8A CN105120050B (en) | 2015-06-24 | 2015-06-24 | A kind of detection method and its terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510355057.8A CN105120050B (en) | 2015-06-24 | 2015-06-24 | A kind of detection method and its terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105120050A true CN105120050A (en) | 2015-12-02 |
| CN105120050B CN105120050B (en) | 2019-04-30 |
Family
ID=54667931
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510355057.8A Active CN105120050B (en) | 2015-06-24 | 2015-06-24 | A kind of detection method and its terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105120050B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105867860A (en) * | 2016-03-28 | 2016-08-17 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| CN116699584A (en) * | 2022-02-24 | 2023-09-05 | 深圳市光鉴科技有限公司 | A method and device for improving the measurement range of a distance sensor with multiple frames |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1753078A (en) * | 2004-09-20 | 2006-03-29 | Lg电子株式会社 | Adjustable display of mobile communications terminal |
| KR20060054625A (en) * | 2004-11-15 | 2006-05-23 | 엘지전자 주식회사 | Portable terminal capable of measuring eyesight and visual acuity measuring method using the same |
| CN102984344A (en) * | 2012-10-16 | 2013-03-20 | 广东欧珀移动通信有限公司 | A method for testing eyesight by using a mobile phone and the mobile phone |
| CN102980556A (en) * | 2012-11-29 | 2013-03-20 | 北京小米科技有限责任公司 | Distance measuring method and device |
-
2015
- 2015-06-24 CN CN201510355057.8A patent/CN105120050B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1753078A (en) * | 2004-09-20 | 2006-03-29 | Lg电子株式会社 | Adjustable display of mobile communications terminal |
| KR20060054625A (en) * | 2004-11-15 | 2006-05-23 | 엘지전자 주식회사 | Portable terminal capable of measuring eyesight and visual acuity measuring method using the same |
| CN102984344A (en) * | 2012-10-16 | 2013-03-20 | 广东欧珀移动通信有限公司 | A method for testing eyesight by using a mobile phone and the mobile phone |
| CN102980556A (en) * | 2012-11-29 | 2013-03-20 | 北京小米科技有限责任公司 | Distance measuring method and device |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105867860A (en) * | 2016-03-28 | 2016-08-17 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| CN105867860B (en) * | 2016-03-28 | 2019-04-26 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
| CN116699584A (en) * | 2022-02-24 | 2023-09-05 | 深圳市光鉴科技有限公司 | A method and device for improving the measurement range of a distance sensor with multiple frames |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105120050B (en) | 2019-04-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105468158B (en) | Color adjustment method and mobile terminal | |
| CN104731339B (en) | The holding mode recognition methods of mobile terminal and device | |
| CN104811865B (en) | Audio-frequency inputting method, device and system | |
| CN106778176B (en) | Information processing method and mobile terminal | |
| CN106131274A (en) | Mobile terminal control device and method | |
| CN106648324B (en) | Hidden icon control method and device and terminal | |
| CN105183323A (en) | Split screen switching method and frameless terminal | |
| CN105430258B (en) | A kind of method and apparatus of self-timer group photo | |
| CN105955474B (en) | Application evaluation prompting method and mobile terminal | |
| CN104866352A (en) | Method for starting application and mobile terminal | |
| CN107025158B (en) | Sliding operation testing method and device and terminal | |
| CN106851114B (en) | Photo display device, photo generation device, photo display method, photo generation method and terminal | |
| CN105049612A (en) | Method of realizing recording and device of realizing recording | |
| CN106095072B (en) | A kind of control method, smart machine and server | |
| CN105260096B (en) | A kind of method and mobile terminal controlling user's operation | |
| CN106791149A (en) | A kind of method of mobile terminal and control screen | |
| CN106303044A (en) | A kind of mobile terminal and the acquisition method to coke number | |
| CN105376404A (en) | Terminal, and device and method for adjusting camera parameter of terminal via fingerprint | |
| CN105120050B (en) | A kind of detection method and its terminal | |
| CN105162967B (en) | A kind of apparatus and method searching for focus | |
| CN105721757A (en) | Device and method for adjusting photographing parameters | |
| CN106775069B (en) | Pressure compensation method and system | |
| CN106651823A (en) | Device and method for eliminating picture light spot and mobile terminal | |
| CN106569670A (en) | Application processing apparatus and method | |
| CN105141834A (en) | Device and method for controlling picture shooting |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |