Drug taking discrimination method based on human eye pupils
1. A drug-taking discrimination method based on human eye pupils comprises the following steps:
acquiring a human eye image of a person to be detected by using an image capturing device;
determining whether the type of the person under test is a first type or a second type;
in the case that the type of the person under test is determined to be the first type, performing the following operations:
calculating the area S of the eyes of the person under test1And the area S of the pupil3;
Calculating the area S of the pupil3And the area S of the eye1The ratio therebetween; and
determining whether the tested person is suspected to be toxin-absorbing based on the ratio;
in the case that the type of the person under test is determined to be a second type, performing the following operations:
obtaining the time t when the pupil of the tested person is maximum1And a time t when the pupil is minimum2;
Calculating the time t elapsed for the pupil to change from maximum to minimum1-t2(ii) a And
determining whether the person under test is suspected of being poisoned based on the elapsed time.
2. The method for discriminating between drug addicts based on pupils of human eyes as claimed in claim 1,
and acquiring an image of the human eye of the person to be detected under infrared light with the wavelength of 810nm by using an image capturing device.
3. The method for drug absorption discrimination based on human eye pupils as claimed in claim 1, wherein after the human eye image of the person under test is acquired by the image capturing device, the left eye image and the right eye image are separated from the human eye image by the image segmentation method.
4. The method for discriminating between drug addicts based on pupils of human eyes as claimed in claim 1, wherein the person to be tested of the first type is a person suffering from at least one of eye diseases, diabetes and cerebrovascular diseases or an elderly person.
5. The method for discriminating between drug addicts based on pupils of human eyes as claimed in claim 1, wherein the person to be tested of the second type is a non-elderly person with normal physical condition.
6. The method for discriminating between drug addicts based on pupils of human eyes as claimed in claim 1, wherein the method further comprises:
calculating the area S of the black eyeball in the human eye image2(ii) a And
calculating the area S of the pupil3Area S of black eyeball2The ratio therebetween.
7. The method for discriminating between drug addicts based on pupils of human eyes as claimed in claim 1, wherein determining whether the person under test is drug addict based on the ratio comprises:
when the ratio is in the range of 15% to 65%, determining that the tested person has no toxin suction suspicion; and
and when the ratio is less than 15% or more than 65%, determining that the tested person is suspected of drug absorption.
8. The method for discriminating between drug addicts based on pupils of human eyes as claimed in claim 1, wherein the determination of the suspected person based on the elapsed time comprises:
when the elapsed time is greater than or equal to a preset threshold value, determining that the tested person is suspected of drug absorption; and
and when the elapsed time is less than the preset threshold value, determining that the tested person is not suspected of drug suction.
9. A drug-taking discriminating device based on human eye pupils comprises:
the image capturing device is configured to acquire a human eye image of a person to be detected;
a first determination unit configured to determine whether the type of the person under test is a first type or a second type; and
a second determination unit configured to:
in the case that the type of the person under test is determined to be the first type, performing the following operations:
calculating the area S of the eyes of the person under test1And the area S of the pupil3;
Calculating the area S of the pupil3And the area S of the eye1The ratio therebetween; and
determining whether the tested person is suspected to be toxin-absorbing based on the ratio;
in the case that the type of the person under test is determined to be a second type, performing the following operations:
obtaining the time t when the pupil of the tested person is maximum1And a time t when the pupil is minimum2;
Calculating the time t elapsed for the pupil to change from maximum to minimum1-t2(ii) a And
determining whether the person under test is suspected of being poisoned based on the elapsed time.
10. An electronic device, comprising:
one or more processors; and
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-8.
11. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 8.
Background
The harm of drug absorption to the society is very serious, particularly in the field of public transportation safety, and the problems of the sudden increase of the automobile holding capacity and the rapid increase of the number of people for absorbing new drugs are more and more prominent.
At present, time-saving and efficient field detection means are lacked, law enforcement officers cannot carry out roadside screening on drivers abusing drugs, and the loss of the field detection means also promotes the lucky psychology of the drivers after drug abuse to a certain extent, which also leads to the great increase of the incidence rate of traffic accidents after drug abuse.
For a long time, in the drug investigation work, the conventional inspection method for inspecting whether a suspected person takes a drug or not is urine, blood or saliva inspection, and because the inspection needs to be performed through various links such as sampling under supervision, a large amount of time, manpower and material resources are consumed, and the inspection result is easily interfered to cause the problems of false negative, false positive and the like. In addition, the drugs have various varieties, and need to be checked by urine test paper one by one, so that the using amount of the urine test paper is increased, the cost is increased, and the method is not suitable for wide screening. In addition, in recent years, some drug addicts adopt special methods to neutralize drug metabolism in their bodies, so that the conventional urinalysis is disabled.
In view of these obvious drawbacks and the problems of field testing of drug addicts, the present disclosure provides a rapid and convenient drug addict determination method based on human eye pupils, which is suitable for various occasions and people. The method collects the eye image of the tested person, analyzes the eyeball image, and considers the factors such as the pupil size change of the tested person.
Disclosure of Invention
In order to solve the above-mentioned problems, in a first aspect of the present application, there is provided aThe drug taking discrimination method based on the human eye pupil can comprise the following steps: acquiring a human eye image of a person to be detected by using an image capturing device; determining whether the type of the person under test is a first type or a second type; in the case that the type of the person under test is determined to be the first type, performing the following operations: calculating the area S of the eyes of the person under test1And the area S of the pupil3(ii) a Calculating the area S of the pupil3And the area S of the eye1The ratio therebetween; and determining whether the tested person is suspected to be toxin-absorbing based on the ratio; in the case that the type of the person under test is determined to be a second type, performing the following operations: obtaining the time t when the pupil of the tested person is maximum1And a time t when the pupil is minimum2(ii) a Calculating the time t elapsed for the pupil to change from maximum to minimum1-t2(ii) a And determining whether the person under test is suspected of drug withdrawal based on the elapsed time.
According to the first aspect, an image of a human eye of a person under test can be acquired with an image capturing device under infrared light having a wavelength of 810 nm.
According to the first aspect, after a human eye image of a person under test is acquired by an image capturing apparatus, a left eye image and a right eye image may be separated in the human eye image by an image segmentation method.
According to the first aspect, the first type of person under test may be a person suffering from at least one of an eye disease, diabetes, cerebrovascular disease, or an elderly person.
According to the first aspect, the second type of person under test may be a non-elderly person in normal physical condition.
According to the first aspect, the method may further comprise: calculating the area S of the black eyeball in the human eye image2(ii) a And calculating the area S of the pupil3Area S of black eyeball2The ratio therebetween.
According to a first aspect, determining whether the person under test is a drug withdrawal based on the ratio may comprise: when the ratio is in the range of 15% to 65%, determining that the tested person has no toxin suction suspicion; and when the ratio is less than 15% or more than 65%, determining that the tested person is suspected of drug absorption.
According to the first aspect, determining whether the person under test is suspected of being drug-absorbed based on the elapsed time may comprise: when the elapsed time is greater than or equal to a preset threshold value, determining that the tested person is suspected of drug absorption; and determining that the tested person is not suspected of drug suction when the elapsed time is less than the predetermined threshold.
In a second aspect of the present disclosure, a device for drug abuse discrimination based on pupils of a human eye may include: the image capturing device is configured to acquire a human eye image of a person to be detected; a first determination unit configured to determine whether the type of the person under test is a first type or a second type; and a second determination unit configured to: in the case that the type of the person under test is determined to be the first type, performing the following operations: calculating the area S of the eyes of the person under test1And the area S of the pupil3(ii) a Calculating the area S of the pupil3And the area S of the eye1The ratio therebetween; and determining whether the tested person is suspected to be toxin-absorbing based on the ratio; in the case that the type of the person under test is determined to be a second type, performing the following operations: obtaining the time t when the pupil of the tested person is maximum1And a time t when the pupil is minimum2(ii) a Calculating the time t elapsed for the pupil to change from maximum to minimum1-t2(ii) a And determining whether the person under test is suspected of drug withdrawal based on the elapsed time.
In a third aspect of the present disclosure, there is provided an electronic device, which may include: one or more processors; and memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method according to the first aspect.
In a fourth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the method according to the first aspect.
The method for determining whether the tested person is toxic or not by analyzing the pupil only greatly improves the rapidity of judgment, and compared with the existing method for determining whether the tested person is toxic or not based on the pupil diameter of the tested person, the technical scheme improves the accuracy to over 90 percent.
Drawings
The above and other embodiments and features of the present disclosure will become more apparent by describing in detail embodiments thereof with reference to the attached drawings in which:
fig. 1 schematically shows a system architecture of a drug abuse discrimination method based on human eye pupils according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates an infrared camera according to an embodiment of the disclosure;
FIG. 3 schematically illustrates an infrared fill light according to an embodiment of the disclosure;
fig. 4 schematically illustrates an eye image of a person under test captured by an infrared camera with the aid of an infrared fill light according to an embodiment of the disclosure;
FIG. 5 schematically illustrates a flow chart of a method for drug abuse discrimination based on human eye pupils according to an embodiment of the present disclosure;
fig. 6 schematically illustrates an area S of a pupil according to an embodiment of the disclosure3Area S of black eyeball2And the area S of the eyes1;
FIG. 7 schematically illustrates a graph of the change in pupil size without and with infrared light illumination, in accordance with an embodiment of the present disclosure;
FIG. 8 schematically illustrates a block diagram of a device for discriminating a drug abuse based on a pupil of a human eye according to an embodiment of the present disclosure; and
fig. 9 schematically shows a block diagram of an electronic device suitable for a method for drug abuse discrimination based on human eye pupils according to an embodiment of the present disclosure.
Detailed Description
Specific embodiments of the present invention will be described in detail below, and it should be noted that the embodiments described herein are only for illustration and are not intended to limit the present invention. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be apparent to one of ordinary skill in the art that: it is not necessary to employ these specific details to practice the present invention. In other instances, well-known circuits, materials, or methods have not been described in detail in order to avoid obscuring the present invention.
Throughout the specification, reference to "one embodiment," "an embodiment," "one example," or "an example" means: the particular features, structures, or characteristics described in connection with the embodiment or example are included in at least one embodiment of the invention. Thus, the appearances of the phrases "in one embodiment," "in an embodiment," "one example" or "an example" in various places throughout this specification are not necessarily all referring to the same embodiment or example. Furthermore, the particular features, structures, or characteristics may be combined in any suitable combination and/or sub-combination in one or more embodiments or examples.
It will be understood that when an element is referred to as being "coupled" or "connected" to another element, it can be directly coupled or connected to the other element or intervening elements may be present. In contrast, when an element is referred to as being "directly coupled" or "directly connected" to another element, there are no intervening elements present.
Further, as used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
It will be understood that a noun in the singular corresponding to a term may include one or more things unless the relevant context clearly dictates otherwise. As used herein, each of the phrases such as "a or B," "at least one of a and B," "at least one of a or B," "A, B or C," "at least one of A, B and C," and "at least one of A, B or C" may include all possible combinations of the items listed together with the respective one of the plurality of phrases. As used herein, terms such as "1 st" and "2 nd" or "first" and "second" may be used to distinguish one element from another element simply and not to limit the elements in other respects (e.g., importance or order).
As used herein, the term "module" may include units implemented in hardware, software, or firmware, and may be used interchangeably with other terms (e.g., "logic," "logic block," "portion," or "circuitry"). A module may be a single integrated component adapted to perform one or more functions or a minimal unit or portion of the single integrated component. For example, according to an embodiment, the modules may be implemented in the form of Application Specific Integrated Circuits (ASICs).
It should be understood that the various embodiments of the present disclosure and the terms used therein are not intended to limit the technical features set forth herein to specific embodiments, but include various changes, equivalents, or alternatives to the respective embodiments. Unless otherwise explicitly defined herein, all terms are to be given their broadest possible interpretation, including meanings implied in the specification and meanings understood by those skilled in the art and/or defined in dictionaries, papers, etc.
Further, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustrative purposes and are not necessarily drawn to scale. For the description of the figures, like reference numerals may be used to refer to like or related elements. The present disclosure will be described below by way of example with reference to the accompanying drawings.
It should be noted that the current drug-taking tests are classified into field tests, laboratory tests and laboratory reinspections. The test is performed by a laboratory or qualified medical institution that qualifies the certification institution. The detection sample is a biological sample such as urine, blood, saliva or hair of a person to be detected. The detection may be performed using a reagent specific for detecting drugs. The urine test and drug absorption test is to use drug test paper to detect whether the tested person has drug component in urine.
The collected detection samples are positive through field detection results, and are respectively stored in two special sample devices and numbered, the collected samples are signed and sealed by a collector and a collected person, the samples are stored under the condition that the detection materials are suitable, and the storage life is not less than six months.
Urine test is negative and not necessarily non-toxic. Since the human body to be tested may be disturbed by food, drugs, or self-metabolism, etc. The accurate identification of positive urine test requires many collateral evidences, such as blood, saliva and hair of the person to be tested, and special laboratories and equipment, which are time-consuming and costly.
Pupillary light reflex has been an important tool in ophthalmic and neurologic examinations. In recent years, the application of pupil detection in the mental and neuroscience is gradually emphasized, and many researches show that pupil dynamic characteristic detection is a useful tool for researching mental and neurological diseases. Through the research of the biological characteristics of eyes, the information processing and control mechanism of the central nervous system can be explored without damage, wherein the dynamic characteristic detection of the pupil is a non-invasive detection method. Therefore, many scientists at home and abroad are devoted to the research on the relationship between brain diseases and pupil changes.
The drug addict is a brain disease patient in the strict sense. The dynamic change process of the eyes contains a large amount of scientific information, and the technical key for defining drug smokers is to scientifically and accurately acquire the data and effectively analyze and judge the data. The pupil responds sensitively to light stimuli, and when illuminated with light (e.g., focused flashlight light), the pupil contracts immediately and returns quickly after the light source is removed. When one side of the pupil is stimulated with light, the side pupil contracts and recovers after the light is removed, known as a direct light reflex. If the two eyes are separated by an opaque object (for example, using a spacer and a palm), when one pupil is irradiated with light, the other pupil is also immediately contracted, which is called indirect light reflection.
In general, the inhalation of the ice toxin can cause damage to the central nervous system and also damage to the function of the optic nerve, so that the size of the pupil can be changed, and the visual objects can be blurred.
In order to solve the above-mentioned problem, based on such characteristics of pupil reflection of light, embodiments of the present disclosure provide a method for drug abuse discrimination based on a pupil of a human eye, the method including: using graphsThe image capturing device acquires a human eye image of a person to be detected; determining whether the type of the person to be tested is a first type or a second type; in the case that the type of the person under test is determined to be the first type, the following operations are performed: calculating the area S of the eyes of the tested person1And the area S of the pupil3(ii) a Calculating the area S of the pupil3Area S of eye1The ratio therebetween; determining whether the tested person has suspicion of drug absorption based on the ratio; in the case that the type of the person under test is determined to be the second type, performing the following operations: obtaining the time t when the pupil of the tested person is maximum1And a time t when the pupil is minimum2(ii) a Calculating the time t elapsed for the pupil to change from maximum to minimum1-t2(ii) a And determining whether the person under test is suspected of drug withdrawal based on the elapsed time.
The present disclosure will be described in detail below with reference to specific embodiments with reference to the attached drawings.
Fig. 1 schematically shows a system architecture 100 of a method for drug abuse discrimination based on human eye pupils according to an embodiment of the present disclosure. The system architecture 100 shown in FIG. 1 is for purposes of illustration only and is not intended to be limiting. One skilled in the art will appreciate that the methods provided by the present disclosure may be used in any suitable scenario.
The system architecture 100 may include a detection lane 101, a security check person (i.e., a person under test 102) entering the security check lane, an image capture device 103, a network 104, and a central processing unit 105.
The image capturing apparatus 103 may be configured to capture an eye image of the person under test 102 entering the security check channel 101.
In an exemplary embodiment, infrared light is used to capture an image of the eye of the person under test.
Infrared is invisible light of a relatively long wavelength, which is known as infrared thermal radiation, and is found by english scientist in hochschel 1800, and the wavelength of infrared in the solar spectrum is greater than that of visible light, and ranges from 0.75 μm to 1000 μm. The infrared ray can be divided into three parts, namely near infrared ray, and the wavelength is between (0.75-1) mu m and (2.5-3) mu m; middle infrared ray with wavelength of 2.5-3 to 25-40 μm; and far infrared rays having a wavelength of (25-40) μm to 1000 μm.
Infrared has certain penetrability and thermal effect, so it is harmful to human skin and vision, so it is defined as a harmful ray, and is a member of modern light pollution family. There are several different conditions for the damage of infrared ray to eyes, and the transmittance of infrared ray with the wavelength of 7500-13000 angstroms to eye cornea is higher, which can cause the damage of eye fundus retina.
Based on this, in this exemplary embodiment, preferably, an infrared fill-in lamp with a wavelength of 810nm is used for infrared light fill-in, so that the generated image brightness histogram is relatively uniform, the effect is good, and the later analysis is facilitated.
In an exemplary embodiment, the image capturing device 103 may include an infrared camera (as shown in fig. 2) and an infrared fill light (as shown in fig. 3).
Under the assistance of infrared light filling lamp, the eye image of higher definition can be caught to infrared camera.
Fig. 4 schematically shows an eye image of a person under test captured by an infrared camera with the aid of an infrared fill light according to an embodiment of the disclosure.
In an exemplary embodiment, after the image capture device 103 obtains an eye image of the person under test, the image capture device 103 may send the captured eye image to the central processing unit 105 via the network 104 for further processing.
The central processing unit 105 may be configured to determine the type of the person under test, and thereby select an appropriate method from the pupil proportion method and the light stimulus response method to determine whether the person under test is suspected of being poisoned based on the type of the person under test.
In an exemplary embodiment according to the present disclosure, the types of persons under test are classified into an abnormal type and a normal type.
For example, the abnormal type of person to be tested may refer to a person of an older age or suffering from an eye disease, diabetes, or cerebrovascular disease, etc. The normal type of person under test may refer to a non-elderly person with normal physical condition.
The following further describes the specific operation of the CPU 105 for determining whether the person under test has suspicion of drug absorption according to the suitable method selected by different types of persons.
The central processing unit 105 may include a processor (not shown), a memory (not shown), a communication module (not shown), and the like.
The processor of the central processing unit 105 may be configured to determine the type of the person under test, and thereby select an appropriate method from the pupil proportion method and the light stimulus response method to determine whether the person under test is suspected of being poisoned based on the type of the person under test.
The memory of the central processing unit 105 may include volatile and/or non-volatile memory. The memory may store any instructions and data related to performing a method of virus withdrawal discrimination based on the pupils of the human eye. Those skilled in the art will appreciate that the memory of the central processing unit 105 may optionally store various suitable information, which will not be described in detail herein.
The communication module in the central processing unit 105 may support establishment of a direct (e.g., wired) communication channel or a wireless communication channel between the central processing unit 105 and an external electronic device (e.g., the image capturing device 103), and perform communication via the established communication channel.
The communication module may include one or more communication processors capable of operating independently of a processor (e.g., an Application Processor (AP)) and supporting wired and/or wireless communication. According to an embodiment of the present disclosure, the communication module may include a wireless communication module (e.g., a cellular communication module, a short-range wireless communication module, or a Global Navigation Satellite System (GNSS) communication module) or a wired communication module (e.g., a Local Area Network (LAN) communication module or a Power Line Communication (PLC) module). A respective one of the communication modules may communicate with an external electronic device via a first network (e.g., a short-range communication network such as bluetooth, wireless fidelity (Wi-Fi) direct, or infrared data association (IrDA)) or a second network (e.g., a long-range communication network such as a cellular network, the internet, or a computer network (e.g., a LAN or a Wide Area Network (WAN)). These various types of communication modules may be implemented as a single component (e.g., a single chip), or may be implemented as multiple components (e.g., multiple chips) that are separate from one another. The wireless communication module may identify and authenticate an electronic device in a communication network, such as a first network or a second network, using subscriber information (e.g., International Mobile Subscriber Identity (IMSI)) stored in the subscriber identity module.
In addition, the central processing unit 105 may further include a display, a microphone, and the like for displaying or broadcasting the type of the person under test, whether the person under test is suspected of drug abuse, and the like.
The display of the central processing unit 105 may include, for example, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, an Organic Light Emitting Diode (OLED) display, a micro-electro-mechanical system (MEMS) display, or an electronic paper display. The display may, for example, display various content (e.g., text, images, videos, icons and/or symbols, etc.) to the user. The display may include a touch screen and receive touch, gesture, proximity or hover input, for example, by using an electronic pen or a body part of a user.
Fig. 5 schematically shows a flowchart of a method for drug abuse discrimination based on human eye pupils according to an embodiment of the present disclosure.
As shown in fig. 5, the method includes the following operations.
In operation S501, the image capturing apparatus 103 obtains an eye image of the person under test.
In operation S503, the central processing unit 105 receives the captured eye image from the image capturing apparatus 103, and determines the type of the person under test.
In an exemplary embodiment, the central processing unit 105 may be further configured to cut the left eye image and the right eye image of the person under test from the eye image of the subject captured by the image capturing apparatus 103 using an image segmentation method to facilitate subsequent processing.
In operation S505, if the person under test is of the first type, the process proceeds to operation S507.
In operation S507, an area S of an eye in an eye image of a person under test is calculated1And the area S of the pupil3。
In operation S509, an area S of a pupil is calculated3Area S of eye1The ratio therebetween.
In another exemplary embodiment, the area S of the black eye may also be calculated2。
At this time, the area S of the pupil can be calculated3Area S of black eyeball2The ratio therebetween.
Area S of pupil3Area S of black eyeball2And the area S of the eye1As shown in fig. 6.
In operation S511, based on the area S of the pupil3Area S of eye1The ratio between the two determines whether the tested person has suspicion of drug absorption.
In an exemplary embodiment, when the area of the pupil S3Area S of eye1When the ratio between the two is between 15% and 65% (preferably, between 20% and 50%), the person to be tested is determined to be a normal person without suspicion of drug absorption. When the area S of the pupil3Area S of eye1When the ratio between the two is less than 15 percent (preferably less than 20 percent) or more than 65 percent (preferably more than 50 percent), the tested object is determined to be suspected of drug absorption. With the area S of the pupil3Area S of eye1The smaller the ratio between (A) and (B) is in the range of 0-15% (preferably, 20%), or the larger the ratio is in the range of 65% (preferably, 50%) to 100%, the higher the suspected toxin-taking of the person to be tested is.
When it is determined in operation S505 that the person under test is not of the first type, the process proceeds to operation S513.
For normal people, safe infrared light (infrared light with the wavelength of 810 nm) is directly used for stimulation, and the reaction speed of the detected person to the light stimulation can be calculated to determine whether the detected person is suspected of drug absorption.
In operation S513, a time t of a maximum size of a pupil of the detected person when no infrared light is irradiated is recorded1. Then, the light is turned on to irradiate the eyes, the pupils of the tested person can be contracted, and the time t when the pupils become minimum size is recorded2。
In operation S515, a period of time that the pupil changes from the maximum to the minimum is calculated.
In operation S517, it is determined whether the person under test is suspected of drug abuse based on the elapsed time period.
Fig. 7 schematically illustrates a graph of the change in pupil size without and with infrared light illumination, in accordance with an embodiment of the present disclosure.
Referring to fig. 7, the size of the pupil is maximized at the start of light irradiation, at which time t1About 6s, and a time t when the pupil size becomes minimum upon irradiation with infrared light2About 14s, and the time length t required by the tested person to change from the maximum pupil to the minimum pupil2-t1=14s-6s=8s。
In an exemplary embodiment, the person under test is suspected of drug abuse when the length of time required for the pupil to maximally become minimum is greater than a predetermined threshold. In addition, the longer the required time is, the higher the suspected toxin suction of the tested person is.
Fig. 8 schematically shows a block diagram of a device 800 for discriminating a drug abuse based on a pupil of a human eye according to an embodiment of the present disclosure.
As shown in fig. 8, the apparatus 800 for discriminating a drug abuse based on a pupil of a human eye may include an image capturing apparatus 801, a first determining unit 802, and a second determining unit 803.
The image capturing apparatus 801 may be configured to acquire an image of a human eye of a person under test.
The first determination unit 802 may be configured to determine whether the type of the person under test is a first type or a second type.
The second determining unit 803 may be configured to, in case it is determined that the type of the person under test is the first type, perform the following operations: calculating the area S of the eyes of the tested person1And the area S of the pupil3(ii) a Calculating the pupil area S3 and the eye area S1The ratio therebetween; determining whether the tested person has suspicion of drug absorption based on the ratio; in the case that the type of the person under test is determined to be the second type, performing the following operations: obtaining the time t when the pupil of the tested person is maximum1And the pupil is the mostTime t of hour2(ii) a Calculating the time t elapsed from the maximum and the minimum of the pupil1-t2(ii) a And determining whether the person under test is suspected of being poisoned based on the elapsed time.
In addition to the above modules 801, 802 and 803, the apparatus 800 for drug abuse determination based on pupils of human eyes may further include other modules for correspondingly performing the above-mentioned various operations.
For clarity and brevity, the respective modules and the corresponding operations performed therein are not described again.
The functionality of a plurality of modules according to embodiments of the present disclosure may be implemented in one module. One module according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. A module according to an embodiment of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging circuits, or in any one of three implementations, software, hardware, and firmware, or in any suitable combination of any of them. Alternatively, modules according to embodiments of the present disclosure may be implemented at least in part as computer program modules that, when executed, may perform corresponding functions.
According to an embodiment of the present disclosure, at least one of the above modules may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware by any other reasonable manner of integrating or packaging a circuit, or in any one of three implementations of software, hardware, and firmware, or in a suitable combination of any of them. Optionally, at least one of the above modules may be implemented at least partly as a computer program module, which when executed may perform a corresponding function.
Fig. 9 schematically shows a block diagram of an electronic device adapted to implement the above-described method for discriminating a drug withdrawal based on a pupil of a human eye according to an embodiment of the present disclosure. The electronic device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 9, an electronic apparatus 900 according to an embodiment of the present disclosure includes a processor 901 which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage portion 908 into a Random Access Memory (RAM) 903. Processor 901 may comprise, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 901 may also include on-board memory for caching purposes. The processor 901 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 903, various programs and data necessary for the operation of the electronic apparatus 900 are stored. The processor 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. The processor 901 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 902 and/or the RAM 903. Note that the programs may also be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 900 may also include input/output (I/O) interface 905, input/output (I/O) interface 905 also connected to bus 904, according to an embodiment of the present disclosure. The electronic device 800 may also include one or more of the following components connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output section 907 including components such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as necessary. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read out therefrom is mounted into the storage section 908 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 909, and/or installed from the removable medium 911. The computer program, when executed by the processor 901, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 902 and/or the RAM 903 described above and/or one or more memories other than the ROM 902 and the RAM 903.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种目标物体的位姿估计方法和系统、机器人