WO2023103860A1 - Drug-taking detection method, apparatus and device, and storage medium - Google Patents

Drug-taking detection method, apparatus and device, and storage medium Download PDF

Info

Publication number
WO2023103860A1
WO2023103860A1 PCT/CN2022/135743 CN2022135743W WO2023103860A1 WO 2023103860 A1 WO2023103860 A1 WO 2023103860A1 CN 2022135743 W CN2022135743 W CN 2022135743W WO 2023103860 A1 WO2023103860 A1 WO 2023103860A1
Authority
WO
WIPO (PCT)
Prior art keywords
iris
pupil diameter
detected person
diameter ratio
drug
Prior art date
Application number
PCT/CN2022/135743
Other languages
French (fr)
Chinese (zh)
Inventor
彭程
郭秀花
周军
Original Assignee
深圳爱酷智能科技有限公司
北京眼神智能科技有限公司
北京眼神科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳爱酷智能科技有限公司, 北京眼神智能科技有限公司, 北京眼神科技有限公司 filed Critical 深圳爱酷智能科技有限公司
Publication of WO2023103860A1 publication Critical patent/WO2023103860A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • G06V10/14Optical characteristics of the device performing the acquisition or on the illumination arrangements
    • G06V10/141Control of illumination
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/96Management of image or video recognition tasks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/18Eye characteristics, e.g. of the iris
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/18Eye characteristics, e.g. of the iris
    • G06V40/19Sensors therefor

Definitions

  • the present application relates to the technical field of drug abuse detection, in particular, to a drug abuse detection method, device, equipment and storage medium.
  • the screening of drug addicts is mainly based on the results of biochemical analysis of the testee's urine or blood.
  • Suspicious drug addicts are judged by the naked eye based on the experience of inspectors in crowded places such as stations, docks, airports, customs or shopping malls. It takes a lot of manpower and time, and there is a problem of low detection accuracy when detecting suspected drug users.
  • the embodiment of the present application provides a drug abuse detection method, the method comprising:
  • Collecting the primary screening iris image of the detected person determining the iris-pupil diameter ratio in the primary screening iris image, determining whether the detected person is a drug suspect based on the iris-pupil diameter ratio, and the iris-pupil diameter ratio is The ratio of the detected person's iris diameter to pupil diameter;
  • the detected person When the detected person is a suspected drug addict, acquire a plurality of fine-screened iris images of the detected person within the flashing time period of the supplementary light, and determine the detected person based on a plurality of the fine-screened iris images The rate of change of iris-to-pupil diameter ratio;
  • the method Before the primary screening iris image of the described acquisition subject, the method also includes:
  • the collecting the primary screening iris image of the subject, determining the iris-pupil diameter ratio in the primary screening iris image, and determining whether the subject is a drug suspect based on the iris-pupil diameter ratio include:
  • the supplementary light is controlled to perform supplementary light, so as to obtain the primary screening iris image
  • the iris-to-pupil diameter ratio is outside the standard iris-to-pupil diameter ratio range under the same light intensity, it is determined that the detected person is a suspected drug addict.
  • the detection of ambient light intensity includes:
  • the face area of the detected person is photographed to obtain a face image
  • Light intensity analysis is performed on the face image to obtain the ambient light intensity.
  • the flickering light intensity of the second supplementary light is higher than the ambient light intensity.
  • Said collecting the primary screening iris image of the detected person, and determining the iris-pupil diameter ratio in the primary screening iris image comprises:
  • the primary screening iris image is collected based on the rotated iris camera, and the iris-to-pupil diameter ratio in the primary screening iris image is determined.
  • the method before the acquisition of the primary screening iris image of the subject, the method further includes:
  • the emotional analysis result shows that the detected person's emotion is in a stable state
  • the method before determining whether the subject is a drug suspect based on the iris-to-pupil diameter ratio, the method further includes:
  • the determining whether the detected person is a drug suspect based on the iris-to-pupil diameter ratio includes: when the iris-to-pupil diameter ratio is outside the age-standard iris-to-pupil diameter ratio range, determining that the detected person is drug suspect.
  • the embodiment of the present application provides a drug abuse detection device, the device may include:
  • the primary screening module is used to collect the primary screening iris image of the detected person, determine the iris-pupil diameter ratio in the primary screening iris image, and determine whether the detected person is a drug suspect based on the iris-pupil diameter ratio.
  • the iris-to-pupil diameter ratio is the ratio of the detected person's iris diameter to the pupil diameter;
  • the fine screening module is used to acquire a plurality of fine screening iris images of the detected person during the flashing time period of the supplementary light when the detected person is a drug suspect, based on a plurality of the fine screening iris images Determining the change rate of the iris-to-pupil diameter ratio of the detected person; determining whether the detected person is a drug addict based on the change rate of the iris-to-pupil diameter ratio.
  • the drug abuse detection device may also include:
  • the light control module is used to detect the intensity of the ambient light, and control the first supplementary light to supplement the light based on the intensity of the ambient light, so that the iris camera can acquire the iris image of the detected person.
  • the primary screening module can be used to control the supplementary light to perform supplementary light based on the ambient light intensity, so as to obtain the primary screening iris image; determine the iris-pupil diameter ratio of the subject based on the primary screening iris image; and When the iris-to-pupil diameter ratio is outside the standard iris-to-pupil diameter ratio range under the same light intensity, it is determined that the detected person is a drug suspect.
  • the light control module can be used to detect the distance between the detected person and the portrait camera; when the distance is less than a preset distance, the face area of the detected person is photographed based on the portrait camera, Obtaining a face image; performing light intensity analysis on the face image to obtain the ambient light intensity.
  • the preliminary screening module can be used to acquire the face image of the subject based on the face camera, locate the position of the human eye, determine the first difference between the position of the human eye and the standard human eye position, and The first difference controls the iris camera to rotate the first angle; locates the iris position based on the iris image collected by the iris camera, determines the second difference between the iris position and the standard iris position, and controls the iris according to the second difference
  • the iris camera rotates by a second angle; and based on the iris camera capturing the primary screening iris image after rotation, determining the iris-to-pupil diameter ratio in the primary screening iris image.
  • the drug use detection device may also include an emotion detection module, which is used to perform emotion analysis on the face in the face image to obtain an emotion analysis result; when the emotion analysis result shows that the detected person's emotion is excited state, send a reminder message to calm down the subject; and when the emotional analysis result shows that the subject’s emotion is in a stable state, determine to collect the primary screening iris image of the subject .
  • an emotion detection module which is used to perform emotion analysis on the face in the face image to obtain an emotion analysis result; when the emotion analysis result shows that the detected person's emotion is excited state, send a reminder message to calm down the subject; and when the emotional analysis result shows that the subject’s emotion is in a stable state, determine to collect the primary screening iris image of the subject .
  • the drug use detection device may also include an age detection module, which is used to perform image detection on the face image and the ID card database to determine the age of the detected person; and obtain the age corresponding to the detected person.
  • Age-standard iris pupil diameter ratio range is used to perform image detection on the face image and the ID card database to determine the age of the detected person; and obtain the age corresponding to the detected person.
  • the primary screening module can be used to determine that the subject is a suspected drug addict when the iris-to-pupil diameter ratio is outside the age-standard iris-to-pupil diameter ratio range.
  • the embodiment of the present application provides a drug use detection device, including:
  • Face camera for collecting face images
  • Iris camera for collecting iris images
  • the supplementary light is set outside the drug detection equipment or around the iris camera;
  • a processor when the processor executes the computer program instructions, executes the steps in any of the above implementation manners.
  • the embodiment of the present application further provides a computer-readable storage medium, where computer program instructions are stored in the readable storage medium, and when the computer program instructions are read and executed by a processor, the above-mentioned tasks are executed.
  • FIG. 1 is a schematic diagram of the steps of a drug detection method provided by an embodiment of the present application
  • Fig. 2 is a schematic diagram of the drug use detection steps adapted to different light brightness environments provided by an embodiment of the present application;
  • FIG. 3 is a schematic diagram of steps for detecting ambient light intensity provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of steps for determining the iris-to-pupil diameter ratio provided by an embodiment of the present application
  • FIG. 5 is a schematic diagram of steps for judging whether to perform detection based on the emotion of the person being tested according to an embodiment of the present application
  • FIG. 6 is a schematic diagram of the steps of an age-based drug use discrimination method provided by an embodiment of the present application.
  • Fig. 7 is a schematic diagram of a drug use detection device provided by an embodiment of the present application.
  • Fig. 8 is a schematic diagram of a drug abuse detection device provided by an embodiment of the present application.
  • each block in a flowchart or block diagram may represent a module, program segment, or part of code that includes one or more Executable instructions.
  • each block in a flowchart or block diagram may represent a module, program segment, or part of code that includes one or more Executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.
  • each functional module in each embodiment of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
  • the pupil will expand or shrink after being stimulated by different light sources, but the changes in the pupil are controlled by the sympathetic and parasympathetic nerves in the oculomotor nerve.
  • the influence of the human body on the cerebral cortex after taking drugs is irreversible.
  • the response of the brain to the control of pupil contraction and relaxation is significantly different from that of people who have not taken drugs. Biochemical analysis of the tester's urine or blood to determine whether the testee is taking drugs.
  • the embodiment of the present application provides a method for detecting drug use.
  • the drug users are initially screened according to the ratio of the iris diameter to the pupil diameter and the standard ratio. Collect multiple iris images of the detected person, and further judge whether the suspect is taking drugs according to the change rate of the pupil diameter in the multiple iris images, thereby improving the detection efficiency and the experience of the detected person.
  • Figure 1 is a schematic diagram of the steps of a drug detection method provided in the embodiment of the present application, the method may include the following steps:
  • step S11 the primary screening iris image of the subject is collected, the iris-to-pupil diameter ratio in the primary screening iris image is determined, and based on the iris-to-pupil diameter ratio, it is determined whether the subject is a drug suspect, the The iris-to-pupil diameter ratio is the ratio of the detected person's iris diameter to the pupil diameter.
  • step S12 when the subject is a suspected drug addict, obtain a plurality of fine-screened iris images of the subject during the flashing time period of the fill light, and determine based on the plurality of fine-screened iris images The rate of change of the iris-to-pupil diameter ratio of the detected subject.
  • step S13 it is determined whether the detected person is a drug addict based on the change rate of the iris-to-pupil diameter ratio.
  • the pupil diameter corresponding to each iris image in the flickering time period is acquired, and the pupil diameter change rate of the pupil diameter in the flickering time period can be obtained with time as a dimension.
  • the range of pupil diameter change rate of normal people is certain, that is, the standard pupil diameter change rate range is determined, and the standard pupil diameter change rate range is obtained based on historical experience and human physiological structure.
  • the pupil diameter change curve can be obtained by fitting the time as the horizontal axis and the pupil diameter as the vertical axis, and the pupil diameter change rate can be further obtained.
  • the pupil diameter change rate exceeds the standard pupil diameter change rate range corresponding to the ambient light intensity, it indicates that the pupil diameter change of the drug suspect is different from that of normal people, and the drug suspect can be determined to be a high-probability drug addict.
  • the rate of change of the iris-pupil diameter ratio may take time as the abscissa and the pupil diameter as the ordinate, and the curvature of the pupil diameter change curve is obtained by fitting, if the curvature is within the set threshold range, then It is determined that the detected person is a suspected drug addict, otherwise he is not drug addicted.
  • the drug users can be initially screened according to the ratio of the iris diameter to the pupil diameter and the standard ratio. Based on multiple iris images, it is further judged whether the suspect is taking drugs according to the change rate of the pupil diameter in the multiple iris images.
  • the two-step screening method it is possible to more accurately identify whether the testee is a drug addict, and for the testee who is not taking drugs, there is no need to use the flashing supplementary light to illuminate the testee, which improves the experience of the testee.
  • the embodiment of the present application uses the ratio of the iris diameter to the pupil diameter and the standard ratio to judge during the preliminary screening, without contact with the subject, and there is no need to set a lens barrel on the non-inductive drug use detection equipment, and no need for the cooperation of the subject , strong concealment, and is not easy to arouse the resentment of the detected person.
  • the obtained iris-to-pupil diameter ratio, ambient light intensity, and pupil diameter change rate can be sent to a dedicated database for further analysis to obtain information such as the type of drugs that high-probability drug addicts may take, the length of time, and the smoking area. .
  • the embodiment of the present application also provides a drug abuse detection method adapted to different light brightness environments, please refer to Figure 2, which shows the drug abuse detection steps adapted to different light brightness environments provided by the embodiment of the present application Schematic diagram, this embodiment may include the following steps:
  • step S21 the ambient light intensity is detected before the acquisition of the primary screening iris image of the subject.
  • step S22 a supplementary light is controlled to perform supplementary light based on the ambient light intensity, so as to obtain the primary screening iris image.
  • step S23 the iris-to-pupil diameter ratio of the subject is determined based on the primary screening iris image.
  • step S24 when the iris-to-pupil diameter ratio is outside the standard iris-to-pupil diameter ratio range under the same light intensity, it is determined that the detected person is a drug suspect.
  • the ambient light sensor can be used to detect the ambient light intensity, and the ambient light intensity can also be judged through the face image collected by the face camera.
  • r represents the reflectivity of the target face image
  • l represents the ambient light intensity of the environment where the target face is located
  • g represents the grayscale of the target face image.
  • the ambient light intensity can be divided into five levels according to the preset thresholds: dim light, relatively dim light, normal light, relatively bright light and bright light.
  • the delineation of the ambient light intensity level is not unique and can be set according to the actual situation.
  • the intensity of the flashing light is higher than the intensity of the ambient light, for example, the intensity of the flashing light may be higher than the intensity of the ambient light by one grade. This setting allows the human eye to adapt to collecting each iris image during the flashing time period, avoiding eye closure caused by the flashing brightness, resulting in iris image collection failure.
  • the corresponding standard ratio value under each light intensity can be stored in a database or a processor in advance. After calculating the ratio of the iris diameter to the pupil diameter of the subject under the current ambient light intensity, the standard ratio is transferred according to the ambient light intensity, and the ratio K of the subject's iris diameter to the pupil diameter is called When the ratio K exceeds the preset ratio range of the standard ratio (for example, the ratio K is greater than or less than 10 than the preset ratio), it is judged that the detected person is a drug suspect.
  • FIG. 3 is a schematic diagram of steps for detecting the intensity of ambient light provided by an embodiment of the present application.
  • the step of detecting the intensity of ambient light may include :
  • step S31 the distance between the detected person and the portrait camera is detected.
  • step S32 when the distance is less than a preset distance, the face area of the detected person is photographed based on the portrait camera to obtain a face image.
  • step S33 light intensity analysis is performed on the face image to obtain the ambient light intensity.
  • the distance between the person to be tested and the portrait camera can be obtained by means of infrared distance measurement, or the distance between the person to be tested and the portrait camera can be obtained through a sensor arranged on the bottom surface of the drug abuse detection device.
  • the embodiment of the present application obtains the ambient light intensity by analyzing the light intensity of the face image, can judge whether to supplement the light based on the ambient light intensity, can improve the clarity of the collected image, and can also be based on the detected person and the portrait camera. Capturing the face of the person being detected can avoid the invalid operation of the portrait lens, improve the effectiveness of the target face image acquisition through the portrait camera, and save power consumption of the device.
  • the embodiment of the present application provides an implementation method for determining the iris-pupil diameter ratio, please refer to FIG. 4, which is a schematic diagram of the steps for determining the iris-pupil diameter ratio provided by the embodiment of the present application.
  • the diameter ratio steps may include:
  • step S41 acquire the face image of the detected person based on the face camera, locate the human eye position, determine the first difference between the human eye position and the standard human eye position, and according to the first difference Control the iris camera to rotate the first angle.
  • step S42 locate the iris position based on the iris image collected by the iris camera, determine the second difference between the iris position and the standard iris position, and control the iris camera to rotate by a second angle according to the second difference .
  • step S43 the primary screening iris image is collected based on the rotated iris camera, and the iris-to-pupil diameter ratio in the primary screening iris image is determined.
  • the embodiment of the present application assists in positioning the iris by collecting face images, thereby being able to adapt to the height of the person being detected, and adjust the angles of the face camera and the iris camera based on the face image data and the iris data collected for the first time , can ensure that the iris image of the detected person is collected, and improve the detection efficiency. And through the adjustment of the face camera and the iris camera, the accuracy of the collected iris image can also be improved.
  • the embodiment of the present application also provides an implementation method of judging whether to perform detection based on the emotion of the person being tested. Please refer to FIG. Schematic diagram of the steps for determining whether to detect emotions, and the steps of this implementation method may include:
  • step S51 the emotion analysis is performed on the faces in the face image to obtain the emotion analysis result.
  • step S52 when the emotional analysis result shows that the detected person is emotionally excited, a prompt message is sent to calm the detected person.
  • step S53 when the emotional analysis result shows that the detected person's emotion is in a stable state, it is determined to collect the primary screening iris image of the detected person.
  • the prompt information may be a voice prompt, may be a flashing breathing light, or may be a soft picture displayed on a display screen.
  • the breathing light can be used to guide the subject to calm down, display a calming animation on the display screen, or play soothing music to assist the target person to return to a stable state.
  • the emotional state of the target person can also be judged through heart rate monitoring, for example, the heart rate data of the target person can be automatically uploaded through devices such as a heart rate bracelet.
  • the heart rate data of the target person is outside the normal heart rate range, it is determined that the target person is emotionally excited.
  • the heart rate data of the target person is within the normal heart rate range, it is determined that the detected person's emotion is in a stable state.
  • the embodiment of the present application performs emotional analysis on the face image of the subject to avoid the interference of pupil and iris changes on the iris-to-pupil diameter ratio caused by the subject's emotional fluctuations, and can improve the accuracy of drug abuse detection. sex.
  • step S11 the embodiment of the present application also provides an age-based drug use identification method
  • FIG. 6 is a schematic diagram of the steps of an age-based drug use identification method provided by the embodiment of the present application. Steps in age-based drug use discrimination can include:
  • step S61 image detection is performed on the face image and the ID card database to determine the age of the detected person.
  • step S62 an age-standard iris-to-pupil diameter ratio range corresponding to the age of the detected person is obtained.
  • step S63 when the iris-to-pupil diameter ratio is outside the age-standard iris-to-pupil diameter ratio range, it is determined that the detected person is a suspected drug addict.
  • the age of the subject can be divided into juvenile (for example, less than 18 years old), youth (for example, 19 to 40 years old), middle-aged (for example, 41 to 60 years old) and old age (for example, greater than 60 years old), each age
  • Each segment has a corresponding standard rate of change of pupil diameter.
  • the change rate of the pupil diameter in a series of iris images collected is compared with the pupil diameter change rate of the young person, and it is judged whether the detected person takes drugs according to the comparison result.
  • the pupil diameter change rate in the collected iris image is compared with the pupil diameter change rate of the corresponding age group, which can eliminate the influence of age on the drug use detection results, thereby improving Accuracy of drug detection.
  • steps in the flow charts involved in the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flow charts involved in the above-mentioned embodiments may include multiple steps or stages, and these steps or stages are not necessarily executed at the same time, but may be performed at different times For execution, the execution order of these steps or stages is not necessarily performed sequentially, but may be executed in turn or alternately with other steps or at least a part of steps or stages in other steps.
  • FIG. 7 is a schematic diagram of a drug use detection device provided in an embodiment of the present application.
  • a rotating shaft (not shown in the figure) and a supplementary light
  • the face camera 71 and the iris camera 72 are all arranged on the rotating shaft
  • the rotating shaft can be driven by a motor
  • the face camera can be driven based on the control instructions of the terminal or processor 71 and iris camera 72 rotate.
  • the face camera 71 is used for collecting face images
  • the iris camera 72 is used for collecting iris images.
  • the drug use detection device 70 also includes a processor (not shown in the figure) and a memory (not shown in the figure), and computer program instructions are stored in the memory, and when the computer program instructions are executed by the processor, any of the above-mentioned Steps in the drug use detection method.
  • the supplementary light of the drug abuse detection device 70 includes a first supplementary light 73 and a second supplementary light 74 .
  • the first supplementary light 73 can be arranged on the left and right sides of the iris camera 72, and there is a preset angle between the beam center of the first supplementary light 73 and the imaging center of the iris camera 72, and the first supplementary light can 73 supplements light to the iris camera 72, and the value of the preset included angle is related to the direction of the light beam and the position of the iris camera 71, and can be set according to the actual situation.
  • the computer program instructions when executed by the processor, the following steps are implemented:
  • the iris-to-pupil diameter ratio is outside the standard iris-to-pupil diameter ratio range under the same light intensity, it is determined that the detected person is a suspected drug addict.
  • the second supplementary light 74 can be arranged around the casing of the drug abuse detection device 70 .
  • the processor controls the second supplementary light 74 to blink for a period of time, during which the drug abuse detection device 70 collects multiple iris images of the subject, and then extracts multiple iris images
  • the iris image and the pupil diameter in the iris image determine whether the detected person is taking drugs according to the change rate of the pupil diameter in the multiple iris images relative to time.
  • the processor can first collect the face image of the person being detected through the face camera 71, locate the human eye coordinates through the human face image, and set the human eye coordinates After comparing with the human eye reference coordinates, determine the first difference between the human eye coordinates and the standard human eye coordinates, and generate a first rotation command according to the first difference and send it to the motor, and the motor receives the first rotation
  • the rotating shaft is driven to rotate by a first rotation angle to drive the face camera 71 and iris camera 72 to rotate by the first angle.
  • the processor After the first rotation angle of the motor is completed, the processor also collects the iris image through the iris camera 72, locates the iris position of the detected person, determines the second difference between the iris coordinates and the iris reference coordinates, and according to The second difference generates a second rotation command and sends it to the motor, and the motor rotates the second rotation angle when receiving the second rotation command, so that the face camera 71 and the iris camera 72 are at the maximum position of image acquisition after the rotation is completed. optimal position and capture iris images.
  • the face camera 71 and the iris camera 72 are arranged on the same horizontal line of the rotation axis, and the horizontal distance between the two is about 40mm. °), the vertical field of view of the iris camera is relatively small (usually 30°), and the position of the human eye may fall within the field of view of the face camera, but not within the field of view of the iris camera.
  • the face camera 71 and the iris camera 72 are driven to rotate through the rotating shaft, so that the face camera 71 or the iris camera 72 is located at the best position for image acquisition.
  • the iris camera 72 when the subject's line of sight is directly facing the iris camera 72, the iris camera 72 is at an optimal angle for photographing the iris of the subject.
  • the difference between the height of the human eye and the height of the iris camera 72 can be represented by human eye coordinates and iris coordinates.
  • the standard human eye coordinates and standard iris coordinates are the human eye coordinates and iris coordinates when the iris camera 72 is at the best angle to capture the subject's iris.
  • a display screen 75 can also be arranged on the drug abuse detection device 70, and the second supplementary light 74 can be a light of a face camera, or a white supplementary light provided separately.
  • the second supplementary light 74 is a white supplementary light provided separately, it can be arranged on one or more sides around the casing of the drug abuse detection device 70, or it can be arranged in the middle position above the casing of the drug abuse detection device 70 or at Near the iris camera 72.
  • the processor executes the computer program instructions, it also implements the following steps: when it is determined that the emotion analysis result is that the detected person’s emotion is in an excited state, the second supplementary light 74 can be controlled to flash at a fixed frequency To guide the subject to calm down, a preset picture can also be played on the display screen 75, such as animations such as the blue sea that help calm the mood and guide the subject to calm down.
  • a deep learning method can be used for face detection, or an ID card identification module can be set on the drug abuse detection device 70, and the year of birth on the ID card of the person to be detected can be used. Monthly to determine the age of the person being tested.
  • the embodiment of the present application also provides a drug use detection device 80, please refer to FIG. 8, which is a schematic diagram of a drug use detection device provided in the embodiment of the present application.
  • the drug use detection device 80 may include:
  • the primary screening module 81 is configured to collect the primary screening iris image of the subject, determine the iris-pupil diameter ratio in the primary screening iris image, and determine whether the subject is a drug suspect based on the iris-pupil diameter ratio,
  • the iris-to-pupil diameter ratio is the ratio of the detected person's iris diameter to the pupil diameter.
  • the fine screening module 82 is used to acquire a plurality of fine screening iris images of the detected person within the flashing time period of the supplementary light when the detected person is a suspected drug addict, based on a plurality of the fine screening iris images
  • the image determines the iris-pupil diameter ratio change rate of the detected person; based on the iris-pupil diameter ratio change rate, it is determined whether the detected person is a drug addict.
  • the drug abuse detection device 80 may also include:
  • the light control module is used to detect the intensity of the ambient light, and control the first supplementary light to supplement the light based on the intensity of the ambient light, so that the iris camera can acquire the iris image of the detected person.
  • the primary screening module 81 can be used to control the supplementary light to perform supplementary light based on the ambient light intensity, so as to obtain the primary screening iris image; determine the iris-pupil diameter ratio of the subject based on the primary screening iris image; and When the iris-to-pupil diameter ratio is outside the range of the standard iris-to-pupil diameter ratio under the same light intensity, it is determined that the detected person is a drug suspect.
  • the light control module can be used to detect the distance between the detected person and the portrait camera; when the distance is less than a preset distance, the face area of the detected person is photographed based on the portrait camera to obtain A face image; performing light intensity analysis on the face image to obtain the ambient light intensity.
  • the preliminary screening module 81 can be used to obtain the detected person's face image based on the face camera, locate the position of the human eye, determine the first difference between the position of the human eye and the standard human eye position, and The first difference controls the iris camera to rotate the first angle; locates the iris position based on the iris image collected by the iris camera, determines the second difference between the iris position and the standard iris position, and controls the iris according to the second difference
  • the iris camera rotates by a second angle; and based on the iris camera capturing the primary screening iris image after rotation, determining the iris-to-pupil diameter ratio in the primary screening iris image.
  • the drug use detection device 80 may also include an emotion detection module, which is used to perform emotion analysis on the face in the face image to obtain an emotion analysis result; when the emotion analysis result shows that the detected person's emotion is excited state, send a reminder message to calm down the subject; and when the emotional analysis result shows that the subject’s emotion is in a stable state, determine to collect the primary screening iris image of the subject .
  • an emotion detection module which is used to perform emotion analysis on the face in the face image to obtain an emotion analysis result; when the emotion analysis result shows that the detected person's emotion is excited state, send a reminder message to calm down the subject; and when the emotional analysis result shows that the subject’s emotion is in a stable state, determine to collect the primary screening iris image of the subject .
  • the drug use detection device 80 may also include an age detection module, which is used to perform image detection on the face image and the ID card library to determine the age of the detected person; and obtain the age corresponding to the detected person's age.
  • Age-standard iris-to-pupil diameter ratio range is used to perform image detection on the face image and the ID card library to determine the age of the detected person; and obtain the age corresponding to the detected person's age.
  • the primary screening module 81 can be used to determine that the subject is a drug suspect when the iris-to-pupil diameter ratio is outside the age-standard iris-to-pupil diameter ratio range.
  • Each module in the above-mentioned drug abuse detection device can be fully or partially realized by software, hardware and a combination thereof.
  • the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
  • an embodiment of the present application also provides a computer-readable storage medium, wherein computer program instructions are stored in the computer-readable storage medium, and when the computer program instructions are read and executed by a processor, the above-mentioned A step in any implementation.
  • the computer-readable storage medium can be random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), erasable Various media that can store program codes such as Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), etc.
  • RAM Random Access Memory
  • ROM read-only memory
  • PROM programmable read-only memory
  • PROM Programmable Read-Only Memory
  • EEPROM Electrical Erasable Programmable Read-Only Memory
  • the disclosed devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the modules is only a logical function division.
  • multiple modules or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional module in each embodiment of the present application may be integrated to form an independent part, each module may exist independently, or two or more modules may be integrated to form an independent part.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, all or part of the processes or functions according to the embodiments of the present invention will be generated.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • wired eg, coaxial cable, optical fiber, digital subscriber line (DSL)
  • wireless eg, infrared, wireless, microwave, etc.

Abstract

A drug-taking detection method, apparatus and device, and a storage medium, which relate to drug-taking detection technology. The method comprises: acquiring a primarily screened iris image of a person subjected to detection, determining an iris-pupil diameter ratio in the primarily screened iris image, and determining, on the basis of the iris-pupil diameter ratio, whether said person is a drug-taking suspect, wherein the iris-pupil diameter ratio is the ratio of the iris diameter to the pupil diameter of said person (S11); when said person is a drug-taking suspect, acquiring a plurality of finely screened iris images of said person within a flicker time period of a fill-in light, and determining the change rate of the iris-pupil diameter ratio of said person on the basis of the plurality of finely screened iris images (S12); and on the basis of the change rate of the iris-pupil diameter ratio, determining whether said person is a drug addict (S13).

Description

吸毒检测方法、装置、设备及存储介质Drug abuse detection method, device, equipment and storage medium
相关申请related application
本申请要求于2021年12月10日提交中国专利局的申请号为202111510567X、名称为“吸毒检测方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application with application number 202111510567X and titled "Method, Device, Equipment, and Storage Medium for Drug Abuse Detection" filed with the China Patent Office on December 10, 2021, the entire contents of which are incorporated herein by reference. Applying.
技术领域technical field
本申请涉及吸毒检测技术领域,具体而言,涉及一种吸毒检测方法、装置、设备及存储介质。The present application relates to the technical field of drug abuse detection, in particular, to a drug abuse detection method, device, equipment and storage medium.
背景技术Background technique
目前对吸毒人员的筛查主要基于对被检测者尿液或血液的生化分析结果,在车站、码头、机场、海关或者商场等人流聚集的地方基本通过检查人员的经验肉眼判断可疑的吸毒人员,需要耗费大量的人力和时间,对吸毒可疑人员进行检测时存在检测准确率低的问题。At present, the screening of drug addicts is mainly based on the results of biochemical analysis of the testee's urine or blood. Suspicious drug addicts are judged by the naked eye based on the experience of inspectors in crowded places such as stations, docks, airports, customs or shopping malls. It takes a lot of manpower and time, and there is a problem of low detection accuracy when detecting suspected drug users.
发明内容Contents of the invention
第一方面,本申请实施例提供一种吸毒检测方法,所述方法包括:In the first aspect, the embodiment of the present application provides a drug abuse detection method, the method comprising:
采集被检测者的初筛虹膜图像,确定所述初筛虹膜图像中的虹膜瞳孔直径比值,基于所述虹膜瞳孔直径比值确定所述被检测者是否为吸毒嫌疑人,所述虹膜瞳孔直径比值为所述被检测者的虹膜直径与瞳孔直径的比值;Collecting the primary screening iris image of the detected person, determining the iris-pupil diameter ratio in the primary screening iris image, determining whether the detected person is a drug suspect based on the iris-pupil diameter ratio, and the iris-pupil diameter ratio is The ratio of the detected person's iris diameter to pupil diameter;
在所述被检测者为吸毒嫌疑人时,获取在补光灯的闪烁时间段内所述被检测者的多个精筛虹膜图像,基于多个所述精筛虹膜图像确定所述被检测者的虹膜瞳孔直径比值变化率;以及When the detected person is a suspected drug addict, acquire a plurality of fine-screened iris images of the detected person within the flashing time period of the supplementary light, and determine the detected person based on a plurality of the fine-screened iris images The rate of change of iris-to-pupil diameter ratio; and
基于所述虹膜瞳孔直径比值变化率确定所述被检测者是否为吸毒人员。It is determined whether the detected person is a drug addict based on the change rate of the iris-to-pupil diameter ratio.
在所述采集被检测者的初筛虹膜图像之前,所述方法还包括:Before the primary screening iris image of the described acquisition subject, the method also includes:
检测环境光强度;Detect ambient light intensity;
所述采集被检测者的初筛虹膜图像,确定所述初筛虹膜图像中的虹膜瞳孔直径比值,基于所述虹膜瞳孔直径比值确定所述被检测者是否为吸毒嫌疑人包括:The collecting the primary screening iris image of the subject, determining the iris-pupil diameter ratio in the primary screening iris image, and determining whether the subject is a drug suspect based on the iris-pupil diameter ratio include:
基于所述环境光强度控制补光灯进行补光,以获取所述初筛虹膜图像;Based on the ambient light intensity, the supplementary light is controlled to perform supplementary light, so as to obtain the primary screening iris image;
基于所述初筛虹膜图像确定所述被检测者的虹膜瞳孔直径比值;以及determining the iris-to-pupil diameter ratio of the subject based on the primary screening iris image; and
在所述虹膜瞳孔直径比值处于同等光线强度下标准虹膜瞳孔直径比值范围之外时,确定所述被检测者为吸毒嫌疑人。When the iris-to-pupil diameter ratio is outside the standard iris-to-pupil diameter ratio range under the same light intensity, it is determined that the detected person is a suspected drug addict.
一实施方式中,所述检测环境光强度包括:In one embodiment, the detection of ambient light intensity includes:
检测所述被检测者与人像摄像头的距离;Detect the distance between the detected person and the portrait camera;
在所述距离小于预设距离时,基于所述人像摄像头对所述被检测者的人脸区域进行拍摄,得到人脸图像;When the distance is less than a preset distance, based on the portrait camera, the face area of the detected person is photographed to obtain a face image;
对所述人脸图像进行光强分析,得到所述环境光强度。Light intensity analysis is performed on the face image to obtain the ambient light intensity.
一实施方式中,所述第二补光灯的闪烁光强度高于所述环境光强度。In one embodiment, the flickering light intensity of the second supplementary light is higher than the ambient light intensity.
所述采集被检测者的初筛虹膜图像,确定所述初筛虹膜图像中的虹膜瞳孔直径比值包括:Said collecting the primary screening iris image of the detected person, and determining the iris-pupil diameter ratio in the primary screening iris image comprises:
基于人脸摄像头获取所述被检测者的人脸图像,定位人眼位置,确定所述人眼位置与标准人眼位置的第一差值,并根据所述第一差值控制虹膜摄像头转动第一角度;Obtain the face image of the detected person based on the face camera, locate the position of the human eye, determine the first difference between the position of the human eye and the position of the standard human eye, and control the iris camera to rotate the first difference according to the first difference. an angle;
基于所述虹膜摄像头采集的虹膜图像定位虹膜位置,确定所述虹膜位置与标准虹膜位置的第二差值,并根据所述第二差值控制所述虹膜摄像头转动第二角度;以及Locate the iris position based on the iris image collected by the iris camera, determine a second difference between the iris position and a standard iris position, and control the iris camera to rotate a second angle according to the second difference; and
基于转动后的所述虹膜摄像头采集所述初筛虹膜图像,确定所述初筛虹膜图像中的所述虹膜瞳孔直径比值。The primary screening iris image is collected based on the rotated iris camera, and the iris-to-pupil diameter ratio in the primary screening iris image is determined.
一实施方式中,在所述采集被检测者的初筛虹膜图像之前,所述方法还包括:In one embodiment, before the acquisition of the primary screening iris image of the subject, the method further includes:
对人脸图像中的人脸进行情绪分析,得到情绪分析结果;Carry out emotion analysis on the face in the face image, and obtain the emotion analysis result;
在所述情绪分析结果显示所述被检测者的情绪处于激动状态时,发送提示信息以使所述被检测者平复情绪;以及When the emotional analysis result shows that the detected person is emotionally excited, sending a prompt message to calm the detected person; and
在所述情绪分析结果显示所述被检测者的情绪处于平稳状态时,确定采集所述被检测者的所述初筛虹膜图像。When the emotional analysis result shows that the detected person's emotion is in a stable state, it is determined to collect the primary screening iris image of the detected person.
一实施方式中,在所述基于所述虹膜瞳孔直径比值确定所述被检测者是否为吸毒嫌疑人之前,所述方法还包括:In one embodiment, before determining whether the subject is a drug suspect based on the iris-to-pupil diameter ratio, the method further includes:
将人脸图像与身份证库进行图像检测,确定所述被检测者的年龄;以及Performing image detection on the face image and the ID card database to determine the age of the detected person; and
获取与所述被检测者的年龄对应的年龄标准虹膜瞳孔直径比值范围;Obtaining an age-standard iris-to-pupil diameter ratio range corresponding to the age of the detected person;
所述基于所述虹膜瞳孔直径比值确定所述被检测者是否为吸毒嫌疑人包括:在所述虹膜瞳孔直径比值处于所述年龄标准虹膜瞳孔直径比值范围之外时,确定所述被检测者为吸毒嫌疑人。The determining whether the detected person is a drug suspect based on the iris-to-pupil diameter ratio includes: when the iris-to-pupil diameter ratio is outside the age-standard iris-to-pupil diameter ratio range, determining that the detected person is drug suspect.
第二方面,本申请实施例提供一种吸毒检测装置,所述装置可以包括:In the second aspect, the embodiment of the present application provides a drug abuse detection device, the device may include:
初筛模块,用于采集被检测者的初筛虹膜图像,确定所述初筛虹膜图像中的虹膜瞳孔直径比值,基于所述虹膜瞳孔直径比值确定所述被检测者是否为吸毒嫌疑人,所述虹膜瞳孔直径比值为所述被检测者的虹膜直径与瞳孔直径的比值;The primary screening module is used to collect the primary screening iris image of the detected person, determine the iris-pupil diameter ratio in the primary screening iris image, and determine whether the detected person is a drug suspect based on the iris-pupil diameter ratio. The iris-to-pupil diameter ratio is the ratio of the detected person's iris diameter to the pupil diameter;
精筛模块,用于在所述被检测者为吸毒嫌疑人时,获取在补光灯的闪烁时间段内所述被检测者的多个精筛虹膜图像,基于多个所述精筛虹膜图像确定所述被检测者的虹膜瞳孔直径比值变化率;基于所述虹膜瞳孔直径比值变化 率确定所述被检测者是否为吸毒人员。The fine screening module is used to acquire a plurality of fine screening iris images of the detected person during the flashing time period of the supplementary light when the detected person is a drug suspect, based on a plurality of the fine screening iris images Determining the change rate of the iris-to-pupil diameter ratio of the detected person; determining whether the detected person is a drug addict based on the change rate of the iris-to-pupil diameter ratio.
一实施方式中,吸毒检测装置还可以包括:In one embodiment, the drug abuse detection device may also include:
光控模块,用于检测环境光强度,并基于所述环境光强度控制第一补光灯进行补光,以使所述虹膜摄像头获取被检测者的虹膜图像。The light control module is used to detect the intensity of the ambient light, and control the first supplementary light to supplement the light based on the intensity of the ambient light, so that the iris camera can acquire the iris image of the detected person.
初筛模块可用于基于所述环境光强度控制补光灯进行补光,以获取所述初筛虹膜图像;基于所述初筛虹膜图像确定所述被检测者的虹膜瞳孔直径比值;以及在所述虹膜瞳孔直径比值处于同等光线强度下标准虹膜瞳孔直径比值范围之外时,确定所述被检测者为吸毒嫌疑人。The primary screening module can be used to control the supplementary light to perform supplementary light based on the ambient light intensity, so as to obtain the primary screening iris image; determine the iris-pupil diameter ratio of the subject based on the primary screening iris image; and When the iris-to-pupil diameter ratio is outside the standard iris-to-pupil diameter ratio range under the same light intensity, it is determined that the detected person is a drug suspect.
一实施方式中,光控模块可用于检测所述被检测者与人像摄像头的距离;在所述距离小于预设距离时,基于所述人像摄像头对所述被检测者的人脸区域进行拍摄,得到人脸图像;对所述人脸图像进行光强分析,得到所述环境光强度。In one embodiment, the light control module can be used to detect the distance between the detected person and the portrait camera; when the distance is less than a preset distance, the face area of the detected person is photographed based on the portrait camera, Obtaining a face image; performing light intensity analysis on the face image to obtain the ambient light intensity.
一实施方式中,初筛模块可用于基于人脸摄像头获取所述被检测者的人脸图像,定位人眼位置,确定所述人眼位置与标准人眼位置的第一差值,并根据所述第一差值控制虹膜摄像头转动第一角度;基于所述虹膜摄像头采集的虹膜图像定位虹膜位置,确定所述虹膜位置与标准虹膜位置的第二差值,并根据所述第二差值控制所述虹膜摄像头转动第二角度;以及基于转动后的所述虹膜摄像头采集所述初筛虹膜图像,确定所述初筛虹膜图像中的所述虹膜瞳孔直径比值。In one embodiment, the preliminary screening module can be used to acquire the face image of the subject based on the face camera, locate the position of the human eye, determine the first difference between the position of the human eye and the standard human eye position, and The first difference controls the iris camera to rotate the first angle; locates the iris position based on the iris image collected by the iris camera, determines the second difference between the iris position and the standard iris position, and controls the iris according to the second difference The iris camera rotates by a second angle; and based on the iris camera capturing the primary screening iris image after rotation, determining the iris-to-pupil diameter ratio in the primary screening iris image.
一实施方式中,吸毒检测装置还可以包括情绪检测模块,用于对人脸图像中的人脸进行情绪分析,得到情绪分析结果;在所述情绪分析结果显示所述被检测者的情绪处于激动状态时,发送提示信息以使所述被检测者平复情绪;以及在所述情绪分析结果显示所述被检测者的情绪处于平稳状态时,确定采集所述被检测者的所述初筛虹膜图像。In one embodiment, the drug use detection device may also include an emotion detection module, which is used to perform emotion analysis on the face in the face image to obtain an emotion analysis result; when the emotion analysis result shows that the detected person's emotion is excited state, send a reminder message to calm down the subject; and when the emotional analysis result shows that the subject’s emotion is in a stable state, determine to collect the primary screening iris image of the subject .
一实施方式中,吸毒检测装置还可以包括年龄检测模块,用于将人脸图像与身份证库进行图像检测,确定所述被检测者的年龄;以及获取与所述被检测者的年龄对应的年龄标准虹膜瞳孔直径比值范围;In one embodiment, the drug use detection device may also include an age detection module, which is used to perform image detection on the face image and the ID card database to determine the age of the detected person; and obtain the age corresponding to the detected person. Age-standard iris pupil diameter ratio range;
初筛模块可用于在所述虹膜瞳孔直径比值处于所述年龄标准虹膜瞳孔直径比值范围之外时,确定所述被检测者为吸毒嫌疑人。The primary screening module can be used to determine that the subject is a suspected drug addict when the iris-to-pupil diameter ratio is outside the age-standard iris-to-pupil diameter ratio range.
第三方面,本申请实施例提供一种吸毒检测设备,包括:In the third aspect, the embodiment of the present application provides a drug use detection device, including:
人脸摄像头,用于采集人脸图像;Face camera for collecting face images;
虹膜摄像头,用于采集虹膜图像;Iris camera for collecting iris images;
补光灯,设置在吸毒检测设备外侧或所述虹膜摄像头周围;The supplementary light is set outside the drug detection equipment or around the iris camera;
存储器,所述存储器存储有计算机程序指令;以及a memory storing computer program instructions; and
处理器,所述处理器执行所述计算机程序指令时,执行上述任一实现方式中的步骤。A processor, when the processor executes the computer program instructions, executes the steps in any of the above implementation manners.
第四方面,本申请实施例还提供一种计算机可读存储介质,所述可读取存储介质中存储有计算机程序指令,所述计算机程序指令被一处理器读取并运行时,执行上述任一实现方式中的步骤。In a fourth aspect, the embodiment of the present application further provides a computer-readable storage medium, where computer program instructions are stored in the readable storage medium, and when the computer program instructions are read and executed by a processor, the above-mentioned tasks are executed. A step in an implementation manner.
本发明的一个或多个实施例的细节在下面的附图和描述中提出。本发明的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the invention are set forth in the accompanying drawings and the description below. Other features, objects and advantages of the invention will be apparent from the description, drawings and claims.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the accompanying drawings that need to be used in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application, so It should not be regarded as a limitation on the scope, and those skilled in the art can also obtain other related drawings according to these drawings without creative work.
图1为本申请一个实施例提供的一种吸毒检测方法的步骤示意图;FIG. 1 is a schematic diagram of the steps of a drug detection method provided by an embodiment of the present application;
图2为本申请一个实施例提供的适应不同光线亮度环境的吸毒检测步骤示意图;Fig. 2 is a schematic diagram of the drug use detection steps adapted to different light brightness environments provided by an embodiment of the present application;
图3为本申请一个实施例提供的一种检测环境光强度的步骤示意图;FIG. 3 is a schematic diagram of steps for detecting ambient light intensity provided by an embodiment of the present application;
图4为本申请一个实施例提供的确定虹膜瞳孔直径比值的步骤示意图;FIG. 4 is a schematic diagram of steps for determining the iris-to-pupil diameter ratio provided by an embodiment of the present application;
图5为本申请一个实施例提供的一种基于被检测者情绪判断是否进行检测的步骤示意图;FIG. 5 is a schematic diagram of steps for judging whether to perform detection based on the emotion of the person being tested according to an embodiment of the present application;
图6为本申请一个实施例提供的一种基于年龄的吸毒判别方式的步骤示意图;FIG. 6 is a schematic diagram of the steps of an age-based drug use discrimination method provided by an embodiment of the present application;
图7为本申请一个实施例提供的一种吸毒检测设备的示意图;Fig. 7 is a schematic diagram of a drug use detection device provided by an embodiment of the present application;
图8为本申请一个实施例提供的一种吸毒检测装置的示意图。Fig. 8 is a schematic diagram of a drug abuse detection device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。例如,附图中的流程图和框图显示了根据本发明的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。另外,在本发明各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在, 也可以两个或两个以上模块集成形成一个独立的部分。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. For example, 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 invention. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or part of code that includes one or more Executable instructions. 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 in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions. In addition, each functional module in each embodiment of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
申请人在研究的过程中发现,瞳孔受到不同光照的刺激后会发生扩大或缩小,但是控制瞳孔变化的是动眼神经中的交感神经和副交感神经。人体吸食毒品后对大脑皮层的影响是不可逆的,吸食毒品后大脑对瞳孔收缩和舒张控制的响应与未吸食毒品的人有明显差异,因此可以利用瞳孔受到光照刺激后的缩放速度替代基于对被检测者尿液或血液的生化分析确定被检测者是否吸食毒品。During the course of the applicant's research, the applicant found that the pupil will expand or shrink after being stimulated by different light sources, but the changes in the pupil are controlled by the sympathetic and parasympathetic nerves in the oculomotor nerve. The influence of the human body on the cerebral cortex after taking drugs is irreversible. The response of the brain to the control of pupil contraction and relaxation is significantly different from that of people who have not taken drugs. Biochemical analysis of the tester's urine or blood to determine whether the testee is taking drugs.
但在目前利用瞳孔对光线刺激后的缩放速度判断是否吸毒所使用的检测工具,需要被检测者主动将眼睛置于检测工具的人眼采集区域,因此需要被检测者高度配合,容易引起被检测者的逆反或者逃避心理,降低了采集通过率和检测效率。However, in the current detection tools that use the zoom speed of the pupils to light stimulation to determine whether drug use requires the subject to actively place his eyes in the human eye collection area of the detection tool, it requires a high degree of cooperation from the subject, which is likely to cause detection The rebellious or evasive psychology of the tester reduces the collection pass rate and detection efficiency.
因此,本申请实施例提供一种吸毒检测方法,首先根据虹膜直径与瞳孔直径的比值与标准比值之间的大小对吸毒人员进行初步筛选,当确认为嫌疑吸毒人员后通过补光灯闪烁的方式采集被检测者的多幅虹膜图像,根据多幅虹膜图像中瞳孔直径的变化率来进一步判断嫌疑人是否吸毒,从而提高检测效率以及改善被检测者的体验。请参看图1,图1为本申请实施例提供的一种吸毒检测方法的步骤示意图,该方法可以包括如下步骤:Therefore, the embodiment of the present application provides a method for detecting drug use. First, the drug users are initially screened according to the ratio of the iris diameter to the pupil diameter and the standard ratio. Collect multiple iris images of the detected person, and further judge whether the suspect is taking drugs according to the change rate of the pupil diameter in the multiple iris images, thereby improving the detection efficiency and the experience of the detected person. Please refer to Figure 1, Figure 1 is a schematic diagram of the steps of a drug detection method provided in the embodiment of the present application, the method may include the following steps:
在步骤S11中,采集被检测者的初筛虹膜图像,确定所述初筛虹膜图像中的虹膜瞳孔直径比值,基于所述虹膜瞳孔直径比值确定所述被检测者是否为吸毒嫌疑人,所述虹膜瞳孔直径比值为所述被检测者的虹膜直径与瞳孔直径的比值。In step S11, the primary screening iris image of the subject is collected, the iris-to-pupil diameter ratio in the primary screening iris image is determined, and based on the iris-to-pupil diameter ratio, it is determined whether the subject is a drug suspect, the The iris-to-pupil diameter ratio is the ratio of the detected person's iris diameter to the pupil diameter.
在步骤S12中,在所述被检测者为吸毒嫌疑人时,获取在补光灯的闪烁时间段内所述被检测者的多个精筛虹膜图像,基于多个所述精筛虹膜图像确定所述被检测者的虹膜瞳孔直径比值变化率。In step S12, when the subject is a suspected drug addict, obtain a plurality of fine-screened iris images of the subject during the flashing time period of the fill light, and determine based on the plurality of fine-screened iris images The rate of change of the iris-to-pupil diameter ratio of the detected subject.
在步骤S13中,基于所述虹膜瞳孔直径比值变化率确定所述被检测者是否为吸毒人员。In step S13, it is determined whether the detected person is a drug addict based on the change rate of the iris-to-pupil diameter ratio.
其中,获取在闪烁时间段内各个虹膜图像对应的瞳孔直径,能够以时间为维度得到瞳孔直径在闪烁时间段的瞳孔直径变化率。不同的环境光强度下对应的正常人的瞳孔直径变化率范围是一定的,也就是标准瞳孔直径变化率范围是确定的,标准瞳孔直径变化率范围是根据历史经验以及人体生理构造得到的。可以通过以时间为横轴、瞳孔直径为纵轴拟合得到瞳孔直径变化曲线,进一步得到瞳孔直径变化率。当瞳孔直径变化率超出环境光强度对应的标准瞳孔直径变化率范围时,说明该吸毒嫌疑人的瞳孔直径变化与正常人不同,可以判定该吸毒嫌疑人为高概率吸毒人员。Wherein, the pupil diameter corresponding to each iris image in the flickering time period is acquired, and the pupil diameter change rate of the pupil diameter in the flickering time period can be obtained with time as a dimension. Under different ambient light intensities, the range of pupil diameter change rate of normal people is certain, that is, the standard pupil diameter change rate range is determined, and the standard pupil diameter change rate range is obtained based on historical experience and human physiological structure. The pupil diameter change curve can be obtained by fitting the time as the horizontal axis and the pupil diameter as the vertical axis, and the pupil diameter change rate can be further obtained. When the pupil diameter change rate exceeds the standard pupil diameter change rate range corresponding to the ambient light intensity, it indicates that the pupil diameter change of the drug suspect is different from that of normal people, and the drug suspect can be determined to be a high-probability drug addict.
示例性的,在步骤S12中,虹膜瞳孔直径比值变化率可以是以时间为横 坐标、以瞳孔直径为纵坐标,拟合得到瞳孔直径变化曲线的曲率,曲率在设定的阈值范围内,则确定被检测者为吸毒嫌疑人,否则为未吸毒。Exemplarily, in step S12, the rate of change of the iris-pupil diameter ratio may take time as the abscissa and the pupil diameter as the ordinate, and the curvature of the pupil diameter change curve is obtained by fitting, if the curvature is within the set threshold range, then It is determined that the detected person is a suspected drug addict, otherwise he is not drug addicted.
由此可见,本申请实施例可以首先根据虹膜直径与瞳孔直径的比值与标准比值之间的大小对吸毒人员进行初步筛选,当确认为嫌疑吸毒人员后通过补光灯闪烁的方式采集被检测者的多幅虹膜图像,根据多幅虹膜图像中瞳孔直径的变化率来进一步判断嫌疑人是否吸毒。通过两步筛选的方式,能够更准确的识别被检测者是否为吸毒人员,且对于未吸毒被检测者不需要使用补光灯闪烁的方式照射,提高了被检测者体验。同时,本申请实施例在初步筛选时利用虹膜直径与瞳孔直径的比值与标准比值的大小来判断,无需与被检测者接触,在无感吸毒检测设备上无需设置镜筒,无需被检测者配合,隐蔽性强,不易引起被检测者反感。It can be seen that in the embodiment of the present application, the drug users can be initially screened according to the ratio of the iris diameter to the pupil diameter and the standard ratio. Based on multiple iris images, it is further judged whether the suspect is taking drugs according to the change rate of the pupil diameter in the multiple iris images. Through the two-step screening method, it is possible to more accurately identify whether the testee is a drug addict, and for the testee who is not taking drugs, there is no need to use the flashing supplementary light to illuminate the testee, which improves the experience of the testee. At the same time, the embodiment of the present application uses the ratio of the iris diameter to the pupil diameter and the standard ratio to judge during the preliminary screening, without contact with the subject, and there is no need to set a lens barrel on the non-inductive drug use detection equipment, and no need for the cooperation of the subject , strong concealment, and is not easy to arouse the resentment of the detected person.
在另一种实施方式中,可以将得到的虹膜瞳孔直径比值、环境光强度和瞳孔直径变化率发送到专用数据库,进一步分析得到高概率吸毒人员可能吸食的毒品种类、时间长度、吸食区域等信息。In another embodiment, the obtained iris-to-pupil diameter ratio, ambient light intensity, and pupil diameter change rate can be sent to a dedicated database for further analysis to obtain information such as the type of drugs that high-probability drug addicts may take, the length of time, and the smoking area. .
在一可选的实施例中,本申请实施例还提供一种适应不同光线亮度环境的吸毒检测方式,请参看图2,图2为本申请实施例提供的适应不同光线亮度环境的吸毒检测步骤示意图,该实施方式可以包括如下步骤:In an optional embodiment, the embodiment of the present application also provides a drug abuse detection method adapted to different light brightness environments, please refer to Figure 2, which shows the drug abuse detection steps adapted to different light brightness environments provided by the embodiment of the present application Schematic diagram, this embodiment may include the following steps:
在步骤S21中,在所述采集被检测者的初筛虹膜图像之前检测环境光强度。In step S21, the ambient light intensity is detected before the acquisition of the primary screening iris image of the subject.
在步骤S22中,基于所述环境光强度控制补光灯进行补光,以获取所述初筛虹膜图像。In step S22, a supplementary light is controlled to perform supplementary light based on the ambient light intensity, so as to obtain the primary screening iris image.
在步骤S23中,基于所述初筛虹膜图像确定所述被检测者的虹膜瞳孔直径比值。In step S23, the iris-to-pupil diameter ratio of the subject is determined based on the primary screening iris image.
在步骤S24中,在所述虹膜瞳孔直径比值处于同等光线强度下标准虹膜瞳孔直径比值范围之外时,确定所述被检测者为吸毒嫌疑人。In step S24, when the iris-to-pupil diameter ratio is outside the standard iris-to-pupil diameter ratio range under the same light intensity, it is determined that the detected person is a drug suspect.
具体地,可以使用环境光传感器检测环境光强度,也可以通过人脸摄像头采集的人脸图像来判断环境光线强度,人像摄像头在获得目标人脸图像后,可以通过目标人脸图像上的像素的灰度生成表达式g=r×l得到目标人脸所处环境的环境光强度。其中,r表示目标人脸图像的反射率,l表示目标人脸所处环境的环境光强度,g表示表示目标人脸图像的灰度。环境光强度可以根据预设阈值划分为暗光、较暗光、正常光、较亮光以及亮光这五个等级,但环境光强度等级的划定并不唯一,可以根据实际情况设置。Specifically, the ambient light sensor can be used to detect the ambient light intensity, and the ambient light intensity can also be judged through the face image collected by the face camera. The grayscale generation expression g=r×l obtains the ambient light intensity of the environment where the target face is located. Among them, r represents the reflectivity of the target face image, l represents the ambient light intensity of the environment where the target face is located, and g represents the grayscale of the target face image. The ambient light intensity can be divided into five levels according to the preset thresholds: dim light, relatively dim light, normal light, relatively bright light and bright light. However, the delineation of the ambient light intensity level is not unique and can be set according to the actual situation.
示例性的,闪烁光强度高于所述环境光强度,例如,闪烁光强度可以比环境光强度高一个等级。这种设置让人眼能够适应在闪烁时间段内采集各个虹膜图像,避免因闪烁亮度引起的闭眼,导致虹膜图像采集失败。Exemplarily, the intensity of the flashing light is higher than the intensity of the ambient light, for example, the intensity of the flashing light may be higher than the intensity of the ambient light by one grade. This setting allows the human eye to adapt to collecting each iris image during the flashing time period, avoiding eye closure caused by the flashing brightness, resulting in iris image collection failure.
每个光线强度下对应的标准比值可以事先存储在数据库或处理器中。当计算得到当前环境光线强度下被测被检测者的虹膜直径与瞳孔直径的比值后,根据环境光线强度调取标准比值,将被测被检测者的虹膜直径与瞳孔直径的比值K和调取的标准比值进行比较,当比值K超过标准比值的预设比值范围时(例如比值K比预设比值大于10或者小于10),判断被检测者为吸毒嫌疑人。The corresponding standard ratio value under each light intensity can be stored in a database or a processor in advance. After calculating the ratio of the iris diameter to the pupil diameter of the subject under the current ambient light intensity, the standard ratio is transferred according to the ambient light intensity, and the ratio K of the subject's iris diameter to the pupil diameter is called When the ratio K exceeds the preset ratio range of the standard ratio (for example, the ratio K is greater than or less than 10 than the preset ratio), it is judged that the detected person is a drug suspect.
由此可见,本申请实施例通过采集环境光强度,并基于环境光强度控制补光灯对虹膜摄像头进行补光,能够自适应周围环境光的强度来控制刺激灯的发光强度,不会导致被检测者由于强光突然照射而闭眼,从而可以提高虹膜图像采集的准确性。It can be seen that, in the embodiment of the present application, by collecting the ambient light intensity and controlling the supplementary light to supplement the iris camera based on the ambient light intensity, it is possible to control the luminous intensity of the stimulus lamp by adapting to the intensity of the surrounding ambient light without causing being blocked. The tester closes his eyes due to sudden strong light, so that the accuracy of iris image collection can be improved.
进一步地,本申请还提供一种基于检测环境光强度的施行步骤,请参看图3,图3为本申请实施例提供的一种检测环境光强度的步骤示意图,检测环境光强度的步骤可以包括:Further, the present application also provides an implementation step based on detecting the intensity of ambient light. Please refer to FIG. 3. FIG. 3 is a schematic diagram of steps for detecting the intensity of ambient light provided by an embodiment of the present application. The step of detecting the intensity of ambient light may include :
在步骤S31中,检测所述被检测者与人像摄像头的距离。In step S31, the distance between the detected person and the portrait camera is detected.
在步骤S32中,在所述距离小于预设距离时,基于所述人像摄像头对所述被检测者的人脸区域进行拍摄,得到人脸图像。In step S32, when the distance is less than a preset distance, the face area of the detected person is photographed based on the portrait camera to obtain a face image.
在步骤S33中,对所述人脸图像进行光强分析,得到所述环境光强度。In step S33, light intensity analysis is performed on the face image to obtain the ambient light intensity.
其中,可以通过红外线测距的方式获取被检测者与人像摄像头的距离,也可以是通过设置在吸毒检测设备底面的传感器得到待测人物与人像摄像头的距离。Wherein, the distance between the person to be tested and the portrait camera can be obtained by means of infrared distance measurement, or the distance between the person to be tested and the portrait camera can be obtained through a sensor arranged on the bottom surface of the drug abuse detection device.
作为一种可选的实施例,还可以通过设置预设距离,对预设距离内的待测人物进行脸部捕捉,避免人像镜头对预设距离外人物模糊的人像进行捕捉,能够避免人像镜头的无效运转,提高通过人像摄像头得到目标人脸图像采集的有效性,并能节省设备耗电量。As an optional embodiment, it is also possible to capture the face of the person to be tested within the preset distance by setting the preset distance, so as to prevent the portrait lens from capturing the blurred portrait of the person outside the preset distance, and avoid the blurring of the portrait lens. Ineffective operation, improve the effectiveness of target face image acquisition through the portrait camera, and save power consumption of the device.
由此可见,本申请实施例通过对人脸图像进行光强分析,得到环境光强度,能够基于环境光强度判断是否补光,能够提高采集图像的清晰度,还能基于被检测者与人像摄像头的距离对被检测者进行脸部捕捉,能够避免人像镜头的无效运转,提高通过人像摄像头得到目标人脸图像采集的有效性,并能节省设备耗电量。It can be seen that the embodiment of the present application obtains the ambient light intensity by analyzing the light intensity of the face image, can judge whether to supplement the light based on the ambient light intensity, can improve the clarity of the collected image, and can also be based on the detected person and the portrait camera. Capturing the face of the person being detected can avoid the invalid operation of the portrait lens, improve the effectiveness of the target face image acquisition through the portrait camera, and save power consumption of the device.
可选地,对于步骤S11,本申请实施例提供一种确定虹膜瞳孔直径比值的施行方式,请参看图4,图4为本申请实施例提供的确定虹膜瞳孔直径比值的步骤示意图,确定虹膜瞳孔直径比值的步骤可以包括:Optionally, for step S11, the embodiment of the present application provides an implementation method for determining the iris-pupil diameter ratio, please refer to FIG. 4, which is a schematic diagram of the steps for determining the iris-pupil diameter ratio provided by the embodiment of the present application. The diameter ratio steps may include:
在步骤S41中,基于人脸摄像头获取所述被检测者的人脸图像,定位人眼位置,确定所述人眼位置与标准人眼位置的第一差值,并根据所述第一差值控制虹膜摄像头转动第一角度。In step S41, acquire the face image of the detected person based on the face camera, locate the human eye position, determine the first difference between the human eye position and the standard human eye position, and according to the first difference Control the iris camera to rotate the first angle.
在步骤S42中,基于所述虹膜摄像头采集的虹膜图像定位虹膜位置,确定所述虹膜位置与标准虹膜位置的第二差值,并根据所述第二差值控制所述虹膜摄像头转动第二角度。In step S42, locate the iris position based on the iris image collected by the iris camera, determine the second difference between the iris position and the standard iris position, and control the iris camera to rotate by a second angle according to the second difference .
在步骤S43中,基于转动后的所述虹膜摄像头采集所述初筛虹膜图像,确定所述初筛虹膜图像中的所述虹膜瞳孔直径比值。In step S43, the primary screening iris image is collected based on the rotated iris camera, and the iris-to-pupil diameter ratio in the primary screening iris image is determined.
由此可见,本申请实施例通过采集人脸图像辅助定位虹膜,从而能够自适应被检测者的身高,基于人脸图像数据和第一次采集到的虹膜数据调整人脸摄像头以及虹膜摄像头的角度,能够保证采集到被检测者的虹膜图像,提高检测效率。并且通过对人脸摄像头以及虹膜摄像头的调整,还可以提高采集得到的虹膜图像的精准度。It can be seen that the embodiment of the present application assists in positioning the iris by collecting face images, thereby being able to adapt to the height of the person being detected, and adjust the angles of the face camera and the iris camera based on the face image data and the iris data collected for the first time , can ensure that the iris image of the detected person is collected, and improve the detection efficiency. And through the adjustment of the face camera and the iris camera, the accuracy of the collected iris image can also be improved.
在一可选的实施例中,本申请实施例还提供一种基于被检测者情绪判断是否进行检测的施行方式,请参看图5,图5为本申请实施例提供的一种基于被检测者情绪判断是否进行检测的步骤示意图,该施行方式的步骤可以包括:In an optional embodiment, the embodiment of the present application also provides an implementation method of judging whether to perform detection based on the emotion of the person being tested. Please refer to FIG. Schematic diagram of the steps for determining whether to detect emotions, and the steps of this implementation method may include:
在步骤S51中,对人脸图像中的人脸进行情绪分析,得到情绪分析结果。In step S51, the emotion analysis is performed on the faces in the face image to obtain the emotion analysis result.
在步骤S52中,在所述情绪分析结果显示所述被检测者的情绪处于激动状态时,发送提示信息以使所述被检测者平复情绪。In step S52, when the emotional analysis result shows that the detected person is emotionally excited, a prompt message is sent to calm the detected person.
在步骤S53中,在所述情绪分析结果显示所述被检测者的情绪处于平稳状态时,确定采集所述被检测者的所述初筛虹膜图像。In step S53, when the emotional analysis result shows that the detected person's emotion is in a stable state, it is determined to collect the primary screening iris image of the detected person.
示例性地,提示信息可以语音提示,可以是呼吸灯闪烁,也可以是在显示屏上显示的柔和画面。当情绪分析结果显示被检测者的情绪处于激动状态时,可以通过呼吸灯引导被检测者平缓情绪、在显示屏幕上显示令人心情平缓的动画或者播放舒缓的音乐辅助目标人物恢复到平稳状态。Exemplarily, the prompt information may be a voice prompt, may be a flashing breathing light, or may be a soft picture displayed on a display screen. When the emotional analysis results show that the subject is emotionally excited, the breathing light can be used to guide the subject to calm down, display a calming animation on the display screen, or play soothing music to assist the target person to return to a stable state.
作为一种可选的实施方式,还可以通过心率监测的方式来判断目标人物的情绪状态,例如,可以通过心率手环等设备自动上传目标人物的心率数据。当目标人物的心率数据在正常心率范围之外时,判定目标人物的情绪处于激动状态。当目标人物的心率数据在正常心率范围内时,判定被检测者的情绪处于平稳状态。As an optional implementation, the emotional state of the target person can also be judged through heart rate monitoring, for example, the heart rate data of the target person can be automatically uploaded through devices such as a heart rate bracelet. When the heart rate data of the target person is outside the normal heart rate range, it is determined that the target person is emotionally excited. When the heart rate data of the target person is within the normal heart rate range, it is determined that the detected person's emotion is in a stable state.
由此可见,本申请实施例通过对被检测者的人脸图像进行情绪分析,可以避免由于被检测者的情绪波动引起的瞳孔以及虹膜变化对虹膜瞳孔直径比值的干扰,能够提高吸毒检测的准确性。It can be seen that the embodiment of the present application performs emotional analysis on the face image of the subject to avoid the interference of pupil and iris changes on the iris-to-pupil diameter ratio caused by the subject's emotional fluctuations, and can improve the accuracy of drug abuse detection. sex.
可选地,在步骤S11之前,本申请实施例还提供一种基于年龄的吸毒判别方式,请参看图6,图6为本申请实施例提供的一种基于年龄的吸毒判别方式的步骤示意图,基于年龄的吸毒判别步骤可以包括:Optionally, before step S11, the embodiment of the present application also provides an age-based drug use identification method, please refer to FIG. 6, which is a schematic diagram of the steps of an age-based drug use identification method provided by the embodiment of the present application. Steps in age-based drug use discrimination can include:
在步骤S61中,将人脸图像与身份证库进行图像检测,确定所述被检测者的年龄。In step S61, image detection is performed on the face image and the ID card database to determine the age of the detected person.
在步骤S62中,获取与所述被检测者的年龄对应的年龄标准虹膜瞳孔直径比值范围。In step S62, an age-standard iris-to-pupil diameter ratio range corresponding to the age of the detected person is obtained.
在步骤S63中,在所述虹膜瞳孔直径比值处于所述年龄标准虹膜瞳孔直径比值范围之外时,确定所述被检测者为吸毒嫌疑人。In step S63, when the iris-to-pupil diameter ratio is outside the age-standard iris-to-pupil diameter ratio range, it is determined that the detected person is a suspected drug addict.
例如,可以将被检测者年龄分为幼年(例如小于18岁)、青年(例如19岁至40岁)、中年(例如41岁到60岁)和老年(例如大于60岁),每一个年龄段都有相应的瞳孔直径的标准变化率。在被检测人员为青年时,将采集到的一系列虹膜图像中瞳孔直径的变化率与青年的瞳孔直径变化率相比较,根据比较结果判断被检测人员是否吸毒。For example, the age of the subject can be divided into juvenile (for example, less than 18 years old), youth (for example, 19 to 40 years old), middle-aged (for example, 41 to 60 years old) and old age (for example, greater than 60 years old), each age Each segment has a corresponding standard rate of change of pupil diameter. When the detected person is a young person, the change rate of the pupil diameter in a series of iris images collected is compared with the pupil diameter change rate of the young person, and it is judged whether the detected person takes drugs according to the comparison result.
由此可见,本申请实施例根据被检测人员的年龄,将采集的虹膜图像中瞳孔直径变化率与对应年龄段的瞳孔直径变化率进行比较,能够消除年龄对吸毒检测结果的影响,从而能够提高吸毒检测的准确率。It can be seen that in the embodiment of the present application, according to the age of the detected person, the pupil diameter change rate in the collected iris image is compared with the pupil diameter change rate of the corresponding age group, which can eliminate the influence of age on the drug use detection results, thereby improving Accuracy of drug detection.
应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flow charts involved in the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flow charts involved in the above-mentioned embodiments may include multiple steps or stages, and these steps or stages are not necessarily executed at the same time, but may be performed at different times For execution, the execution order of these steps or stages is not necessarily performed sequentially, but may be executed in turn or alternately with other steps or at least a part of steps or stages in other steps.
具体地,上述实现方式可应用于吸毒检测设备70,请参看图7,图7为本申请实施例提供的一种吸毒检测设备的示意图,吸毒检测设备70上设置有人脸摄像头71、虹膜摄像头72、转动轴(图中未示出)和补光灯,人脸摄像头71和虹膜摄像头72均设置于转动轴上,转动轴可以由电机驱动,可以基于终端或处理器的控制指令带动人脸摄像头71和虹膜摄像头72进行转动。所述人脸摄像头71用于采集人脸图像,所述虹膜摄像头72用于采集虹膜图像。Specifically, the above-mentioned implementation method can be applied to a drug use detection device 70, please refer to FIG. 7, which is a schematic diagram of a drug use detection device provided in an embodiment of the present application. , a rotating shaft (not shown in the figure) and a supplementary light, the face camera 71 and the iris camera 72 are all arranged on the rotating shaft, the rotating shaft can be driven by a motor, and the face camera can be driven based on the control instructions of the terminal or processor 71 and iris camera 72 rotate. The face camera 71 is used for collecting face images, and the iris camera 72 is used for collecting iris images.
所述吸毒检测设备70还包括处理器(图未示)和存储器(图未示),所述存储器中存储有计算机程序指令,所述计算机程序指令被所述处理器执行时,实现上述任一吸毒检测方法中的步骤。The drug use detection device 70 also includes a processor (not shown in the figure) and a memory (not shown in the figure), and computer program instructions are stored in the memory, and when the computer program instructions are executed by the processor, any of the above-mentioned Steps in the drug use detection method.
在一实施方式中,吸毒检测设备70的补光灯包括第一补光灯73和第二补光灯74。所述第一补光灯73可以设置在虹膜摄像头72的左右两侧,第一补光灯73的光束中心与虹膜摄像头72的成像中心之间具有预设夹角,可以通过第一补光灯73对虹膜摄像头72进行补光,所述预设夹角的取值与光束的方向和虹膜摄像头71的位置有关,可以根据实际情况设定。在一个实施例 中,所述计算机程序指令被所述处理器执行时,实现如下步骤:In one embodiment, the supplementary light of the drug abuse detection device 70 includes a first supplementary light 73 and a second supplementary light 74 . The first supplementary light 73 can be arranged on the left and right sides of the iris camera 72, and there is a preset angle between the beam center of the first supplementary light 73 and the imaging center of the iris camera 72, and the first supplementary light can 73 supplements light to the iris camera 72, and the value of the preset included angle is related to the direction of the light beam and the position of the iris camera 71, and can be set according to the actual situation. In one embodiment, when the computer program instructions are executed by the processor, the following steps are implemented:
在所述采集被检测者的初筛虹膜图像之前检测环境光强度,基于所述环境光强度控制所述第一补光灯72进行补光,以获取所述初筛虹膜图像;Detect the ambient light intensity before the collection of the primary screening iris image of the subject, and control the first supplementary light 72 to perform supplementary light based on the ambient light intensity, so as to obtain the primary screening iris image;
基于所述初筛虹膜图像确定所述被检测者的虹膜瞳孔直径比值;determining the iris-to-pupil diameter ratio of the subject based on the primary screening iris image;
在所述虹膜瞳孔直径比值处于同等光线强度下标准虹膜瞳孔直径比值范围之外时,确定所述被检测者为吸毒嫌疑人。When the iris-to-pupil diameter ratio is outside the standard iris-to-pupil diameter ratio range under the same light intensity, it is determined that the detected person is a suspected drug addict.
所述第二补光灯74可以设置在吸毒检测设备70的外壳四周。所述计算机程序指令被所述处理器执行时,所述处理器控制所述第二补光灯74闪烁一段时间,在此期间吸毒检测设备70采集被检测者多幅虹膜图像,之后提取多幅虹膜图像中的虹膜图像和瞳孔直径,根据多幅虹膜图像中的瞳孔直径相对于时间的变化率判断被检测者是否吸毒。The second supplementary light 74 can be arranged around the casing of the drug abuse detection device 70 . When the computer program instructions are executed by the processor, the processor controls the second supplementary light 74 to blink for a period of time, during which the drug abuse detection device 70 collects multiple iris images of the subject, and then extracts multiple iris images The iris image and the pupil diameter in the iris image determine whether the detected person is taking drugs according to the change rate of the pupil diameter in the multiple iris images relative to time.
在检测人员是否为吸毒人员时,通过执行所述计算机程序指令,所述处理器可以首先通过人脸摄像头71采集被检测者的人脸图像,通过人脸图像定位人眼坐标,将人眼坐标与人眼参考坐标进行比较后确定所述人眼坐标与标准人眼坐标的第一差值,并根据所述第一差值生成第一转动指令并发送至电机,电机在接收到第一转动指令时驱动所述转动轴旋转第一转动角度以带动所述人脸摄像头71和虹膜摄像头72转动所述第一角度。在电机旋转第一转动角度完成之后,所述处理器还通过虹膜摄像头72采集虹膜图像,定位被检测者的虹膜位置,确定虹膜坐标与虹膜参考坐标之间的所述第二差值,并根据所述第二差值生成第二转动指令并发送至电机,电机在接收到第二转动指令时旋转第二转动角度,以使人脸摄像头71和虹膜摄像头72在旋转完成后处于图像采集的最佳位置,并采集虹膜图像。When detecting whether a person is a drug addict, by executing the computer program instructions, the processor can first collect the face image of the person being detected through the face camera 71, locate the human eye coordinates through the human face image, and set the human eye coordinates After comparing with the human eye reference coordinates, determine the first difference between the human eye coordinates and the standard human eye coordinates, and generate a first rotation command according to the first difference and send it to the motor, and the motor receives the first rotation When commanded, the rotating shaft is driven to rotate by a first rotation angle to drive the face camera 71 and iris camera 72 to rotate by the first angle. After the first rotation angle of the motor is completed, the processor also collects the iris image through the iris camera 72, locates the iris position of the detected person, determines the second difference between the iris coordinates and the iris reference coordinates, and according to The second difference generates a second rotation command and sends it to the motor, and the motor rotates the second rotation angle when receiving the second rotation command, so that the face camera 71 and the iris camera 72 are at the maximum position of image acquisition after the rotation is completed. optimal position and capture iris images.
示例性地,人脸摄像头71和虹膜摄像头72设置在转动轴的同一条水平线上,二者之间的水平距离约为40mm,由于人脸摄像头在垂直方向的视场角较大(通常为90°),虹膜摄像头在垂直方向的视场角较小(通常为30°),人眼位置有可能落入人脸摄像头的视场角范围,但未落入虹膜摄像头的视场角范围,因此,通过转动轴带动人脸摄像头71和虹膜摄像头72转动,以使人脸摄像头71或者虹膜摄像头72位于图像采集的最佳位置。Exemplarily, the face camera 71 and the iris camera 72 are arranged on the same horizontal line of the rotation axis, and the horizontal distance between the two is about 40mm. °), the vertical field of view of the iris camera is relatively small (usually 30°), and the position of the human eye may fall within the field of view of the face camera, but not within the field of view of the iris camera. The face camera 71 and the iris camera 72 are driven to rotate through the rotating shaft, so that the face camera 71 or the iris camera 72 is located at the best position for image acquisition.
可以理解的是,当被检测者的视线正对虹膜摄像头72时,虹膜摄像头72处于拍摄被检测者的虹膜的最佳角度。在进行虹膜摄像时,由于人眼的高度相对与虹膜摄像头72的高度的不同、人的视线与虹膜摄像头72的夹角不同,因此得到虹膜图像的质量不同,可以通过调节虹膜摄像头72的角度、位置以适应不同的被检测者。人眼的高度相对与虹膜摄像头72的高度的不同可以通过人眼坐标、虹膜坐标进行表示。标准人眼坐标以及标准虹膜坐标是虹膜摄像头72处于拍摄被检测者的虹膜的最佳角度时的人眼坐标以及虹膜坐标。It can be understood that when the subject's line of sight is directly facing the iris camera 72, the iris camera 72 is at an optimal angle for photographing the iris of the subject. When carrying out iris photography, because the height of the human eye is relatively different from the height of the iris camera 72, the angle between the people's line of sight and the iris camera 72 is different, so the quality of the iris image is different, you can adjust the angle of the iris camera 72, position to suit different subjects. The difference between the height of the human eye and the height of the iris camera 72 can be represented by human eye coordinates and iris coordinates. The standard human eye coordinates and standard iris coordinates are the human eye coordinates and iris coordinates when the iris camera 72 is at the best angle to capture the subject's iris.
吸毒检测设备70上还可设置有显示屏75,第二补光灯74可以为人脸摄像头的灯,也可以是单独设置的白光补光灯。在第二补光灯74为单独设置的白光补光灯时,可以设置在吸毒检测设备70的外壳四周的一侧或多侧,也可以设置在吸毒检测设备70外壳上方的正中间位置或者位于虹膜摄像头72的附近。A display screen 75 can also be arranged on the drug abuse detection device 70, and the second supplementary light 74 can be a light of a face camera, or a white supplementary light provided separately. When the second supplementary light 74 is a white supplementary light provided separately, it can be arranged on one or more sides around the casing of the drug abuse detection device 70, or it can be arranged in the middle position above the casing of the drug abuse detection device 70 or at Near the iris camera 72.
所述处理器执行所述计算机程序指令时,还实现如下步骤:当确定情绪分析结果为被检测者的情绪处于激动状态时,可以通过控制所述第二补光灯74以固定的频率进行闪烁引导被检测者平缓情绪,还可以在显示屏75上播放预设画面,例如蓝色大海等有助于平复心情的动画引导被检测者平缓情绪。When the processor executes the computer program instructions, it also implements the following steps: when it is determined that the emotion analysis result is that the detected person’s emotion is in an excited state, the second supplementary light 74 can be controlled to flash at a fixed frequency To guide the subject to calm down, a preset picture can also be played on the display screen 75, such as animations such as the blue sea that help calm the mood and guide the subject to calm down.
在一可选的实施例中,在检测人脸年龄时,可以利用深度学习方法进行人脸检测,也可以在吸毒检测设备70上设置身份证识别模块,利用待检测人员身份证上的出生年月判断被检测人员的年龄。In an optional embodiment, when detecting the age of a person's face, a deep learning method can be used for face detection, or an ID card identification module can be set on the drug abuse detection device 70, and the year of birth on the ID card of the person to be detected can be used. Monthly to determine the age of the person being tested.
基于同一发明构思,本申请实施例还提供一种吸毒检测装置80,请参看图8,图8为本申请实施例提供的一种吸毒检测装置的示意图,该吸毒检测装置80可以包括:Based on the same inventive concept, the embodiment of the present application also provides a drug use detection device 80, please refer to FIG. 8, which is a schematic diagram of a drug use detection device provided in the embodiment of the present application. The drug use detection device 80 may include:
初筛模块81,用于采集被检测者的初筛虹膜图像,确定所述初筛虹膜图像中的虹膜瞳孔直径比值,基于所述虹膜瞳孔直径比值确定所述被检测者是否为吸毒嫌疑人,所述虹膜瞳孔直径比值为所述被检测者的虹膜直径与瞳孔直径的比值。The primary screening module 81 is configured to collect the primary screening iris image of the subject, determine the iris-pupil diameter ratio in the primary screening iris image, and determine whether the subject is a drug suspect based on the iris-pupil diameter ratio, The iris-to-pupil diameter ratio is the ratio of the detected person's iris diameter to the pupil diameter.
精筛模块82,用于在所述被检测者为吸毒嫌疑人时,获取在补光灯的闪烁时间段内所述被检测者的多个精筛虹膜图像,基于多个所述精筛虹膜图像确定所述被检测者的虹膜瞳孔直径比值变化率;基于所述虹膜瞳孔直径比值变化率确定所述被检测者是否为吸毒人员。The fine screening module 82 is used to acquire a plurality of fine screening iris images of the detected person within the flashing time period of the supplementary light when the detected person is a suspected drug addict, based on a plurality of the fine screening iris images The image determines the iris-pupil diameter ratio change rate of the detected person; based on the iris-pupil diameter ratio change rate, it is determined whether the detected person is a drug addict.
可选地,吸毒检测装置80还可以包括:Optionally, the drug abuse detection device 80 may also include:
光控模块,用于检测环境光强度,并基于所述环境光强度控制第一补光灯进行补光,以使所述虹膜摄像头获取被检测者的虹膜图像。The light control module is used to detect the intensity of the ambient light, and control the first supplementary light to supplement the light based on the intensity of the ambient light, so that the iris camera can acquire the iris image of the detected person.
初筛模块81可用于基于所述环境光强度控制补光灯进行补光,以获取所述初筛虹膜图像;基于所述初筛虹膜图像确定所述被检测者的虹膜瞳孔直径比值;以及在所述虹膜瞳孔直径比值处于同等光线强度下标准虹膜瞳孔直径比值范围之外时,确定所述被检测者为吸毒嫌疑人。The primary screening module 81 can be used to control the supplementary light to perform supplementary light based on the ambient light intensity, so as to obtain the primary screening iris image; determine the iris-pupil diameter ratio of the subject based on the primary screening iris image; and When the iris-to-pupil diameter ratio is outside the range of the standard iris-to-pupil diameter ratio under the same light intensity, it is determined that the detected person is a drug suspect.
可选地,光控模块可用于检测所述被检测者与人像摄像头的距离;在所述距离小于预设距离时,基于所述人像摄像头对所述被检测者的人脸区域进行拍摄,得到人脸图像;对所述人脸图像进行光强分析,得到所述环境光强度。Optionally, the light control module can be used to detect the distance between the detected person and the portrait camera; when the distance is less than a preset distance, the face area of the detected person is photographed based on the portrait camera to obtain A face image; performing light intensity analysis on the face image to obtain the ambient light intensity.
可选地,初筛模块81可用于基于人脸摄像头获取所述被检测者的人脸图像,定位人眼位置,确定所述人眼位置与标准人眼位置的第一差值,并根据所述第一差值控制虹膜摄像头转动第一角度;基于所述虹膜摄像头采集的虹膜 图像定位虹膜位置,确定所述虹膜位置与标准虹膜位置的第二差值,并根据所述第二差值控制所述虹膜摄像头转动第二角度;以及基于转动后的所述虹膜摄像头采集所述初筛虹膜图像,确定所述初筛虹膜图像中的所述虹膜瞳孔直径比值。Optionally, the preliminary screening module 81 can be used to obtain the detected person's face image based on the face camera, locate the position of the human eye, determine the first difference between the position of the human eye and the standard human eye position, and The first difference controls the iris camera to rotate the first angle; locates the iris position based on the iris image collected by the iris camera, determines the second difference between the iris position and the standard iris position, and controls the iris according to the second difference The iris camera rotates by a second angle; and based on the iris camera capturing the primary screening iris image after rotation, determining the iris-to-pupil diameter ratio in the primary screening iris image.
可选地,吸毒检测装置80还可以包括情绪检测模块,用于对人脸图像中的人脸进行情绪分析,得到情绪分析结果;在所述情绪分析结果显示所述被检测者的情绪处于激动状态时,发送提示信息以使所述被检测者平复情绪;以及在所述情绪分析结果显示所述被检测者的情绪处于平稳状态时,确定采集所述被检测者的所述初筛虹膜图像。Optionally, the drug use detection device 80 may also include an emotion detection module, which is used to perform emotion analysis on the face in the face image to obtain an emotion analysis result; when the emotion analysis result shows that the detected person's emotion is excited state, send a reminder message to calm down the subject; and when the emotional analysis result shows that the subject’s emotion is in a stable state, determine to collect the primary screening iris image of the subject .
可选地,吸毒检测装置80还可以包括年龄检测模块,用于将人脸图像与身份证库进行图像检测,确定所述被检测者的年龄;以及获取与所述被检测者的年龄对应的年龄标准虹膜瞳孔直径比值范围。Optionally, the drug use detection device 80 may also include an age detection module, which is used to perform image detection on the face image and the ID card library to determine the age of the detected person; and obtain the age corresponding to the detected person's age. Age-standard iris-to-pupil diameter ratio range.
初筛模块81可用于在所述虹膜瞳孔直径比值处于所述年龄标准虹膜瞳孔直径比值范围之外时,确定所述被检测者为吸毒嫌疑人。The primary screening module 81 can be used to determine that the subject is a drug suspect when the iris-to-pupil diameter ratio is outside the age-standard iris-to-pupil diameter ratio range.
上述吸毒检测装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned drug abuse detection device can be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
基于同一发明构思,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序指令,所述计算机程序指令被一处理器读取并运行时,执行上述任一实现方式中的步骤。Based on the same inventive concept, an embodiment of the present application also provides a computer-readable storage medium, wherein computer program instructions are stored in the computer-readable storage medium, and when the computer program instructions are read and executed by a processor, the above-mentioned A step in any implementation.
所述计算机可读存储介质可以是随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等各种可以存储程序代码的介质。其中,存储介质用于存储程序,所述处理器在接收到执行指令后,执行所述程序,本发明实施例任一实施例揭示的过程定义的电子终端所执行的方法可以应用于处理器中,或者由处理器实现。The computer-readable storage medium can be random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), erasable Various media that can store program codes such as Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), etc. Wherein, the storage medium is used to store the program, and the processor executes the program after receiving the execution instruction, and the method performed by the electronic terminal according to the process definition disclosed in any embodiment of the present invention can be applied to the processor , or implemented by the processor.
在本申请所提供的实施例中,应该理解到,所揭露装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
另外,作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。In addition, the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
再者,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。Furthermore, each functional module in each embodiment of the present application may be integrated to form an independent part, each module may exist independently, or two or more modules may be integrated to form an independent part.
可以替换的,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。Alternatively, it may be realized in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, all or part of the processes or functions according to the embodiments of the present invention will be generated.
所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。In this document, relational terms such as first and second etc. are used only to distinguish one entity or operation from another without necessarily requiring or implying any such relationship between these entities or operations. Actual relationship or sequence. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the statement "comprising..." does not exclude the presence of additional same elements in the process, method, article or device comprising said element.
以上所述仅为本申请的实施例而已,并不用于限制本申请的保护范围,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only examples of the present application, and are not intended to limit the scope of protection of the present application. For those skilled in the art, various modifications and changes may be made to the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application.

Claims (15)

  1. 一种吸毒检测方法,所述方法包括:A drug detection method, said method comprising:
    采集被检测者的初筛虹膜图像;Collect the primary screening iris image of the tested person;
    确定所述初筛虹膜图像中的虹膜瞳孔直径比值,所述虹膜瞳孔直径比值为所述被检测者的虹膜直径与瞳孔直径的比值;Determining the iris-pupil diameter ratio in the primary screening iris image, the iris-pupil diameter ratio being the ratio of the detected person's iris diameter to the pupil diameter;
    基于所述虹膜瞳孔直径比值确定所述被检测者是否为吸毒嫌疑人;determining whether the detected person is a drug suspect based on the iris-to-pupil diameter ratio;
    在所述被检测者为吸毒嫌疑人时,获取在补光灯的闪烁时间段内所述被检测者的多个精筛虹膜图像;When the subject is a drug suspect, acquiring a plurality of fine-screened iris images of the subject during the flashing time period of the supplementary light;
    基于多个所述精筛虹膜图像确定所述被检测者的虹膜瞳孔直径比值变化率;以及determining the rate of change of the iris-pupil diameter ratio of the subject based on a plurality of finely screened iris images; and
    基于所述虹膜瞳孔直径比值变化率确定所述被检测者是否为吸毒人员。It is determined whether the detected person is a drug addict based on the change rate of the iris-to-pupil diameter ratio.
  2. 根据权利要求1所述的方法,其中,在所述采集被检测者的初筛虹膜图像之前,所述方法还包括:The method according to claim 1, wherein, before the first screening iris image of the collected subject, the method further comprises:
    检测环境光强度;Detect ambient light intensity;
    所述采集被检测者的初筛虹膜图像,确定所述初筛虹膜图像中的虹膜瞳孔直径比值,基于所述虹膜瞳孔直径比值确定所述被检测者是否为吸毒嫌疑人包括:The collecting the primary screening iris image of the subject, determining the iris-pupil diameter ratio in the primary screening iris image, and determining whether the subject is a drug suspect based on the iris-pupil diameter ratio include:
    基于所述环境光强度控制补光灯进行补光,以获取所述初筛虹膜图像;Based on the ambient light intensity, the supplementary light is controlled to perform supplementary light, so as to obtain the primary screening iris image;
    基于所述初筛虹膜图像确定所述被检测者的虹膜瞳孔直径比值;以及determining the iris-to-pupil diameter ratio of the subject based on the primary screening iris image; and
    在所述虹膜瞳孔直径比值处于同等光线强度下标准虹膜瞳孔直径比值范围之外时,确定所述被检测者为吸毒嫌疑人。When the iris-to-pupil diameter ratio is outside the standard iris-to-pupil diameter ratio range under the same light intensity, it is determined that the detected person is a suspected drug addict.
  3. 根据权利要求2所述的方法,其中,所述检测环境光强度包括:The method according to claim 2, wherein said detecting ambient light intensity comprises:
    检测所述被检测者与人像摄像头的距离;Detect the distance between the detected person and the portrait camera;
    在所述距离小于预设距离时,基于所述人像摄像头对所述被检测者的人脸区域进行拍摄,得到人脸图像;以及When the distance is less than a preset distance, based on the portrait camera, the detected person's face area is photographed to obtain a face image; and
    对所述人脸图像进行光强分析,得到所述环境光强度。Light intensity analysis is performed on the face image to obtain the ambient light intensity.
  4. 根据权利要求2或3所述的方法,其中,所述补光灯的闪烁光强度高于所述环境光强度。The method according to claim 2 or 3, wherein the flickering light intensity of the fill light is higher than the ambient light intensity.
  5. 根据权利要求1所述的方法,其中,所述采集被检测者的初筛虹膜图像,确定所述初筛虹膜图像中的虹膜瞳孔直径比值包括:The method according to claim 1, wherein said collecting the primary screening iris image of the subject and determining the iris-pupil diameter ratio in the primary screening iris image include:
    基于人脸摄像头获取所述被检测者的人脸图像;Obtaining the face image of the detected person based on the face camera;
    定位人眼位置,确定所述人眼位置与标准人眼位置的第一差值;Locating the position of the human eye, and determining the first difference between the position of the human eye and the position of the standard human eye;
    根据所述第一差值控制虹膜摄像头转动第一角度;Control the iris camera to rotate a first angle according to the first difference;
    基于所述虹膜摄像头采集的虹膜图像定位虹膜位置;Positioning the iris position based on the iris image collected by the iris camera;
    确定所述虹膜位置与标准虹膜位置的第二差值;determining a second difference between the iris position and a standard iris position;
    根据所述第二差值控制所述虹膜摄像头转动第二角度;以及controlling the iris camera to rotate a second angle according to the second difference; and
    基于转动后的所述虹膜摄像头采集所述初筛虹膜图像,确定所述初筛虹膜图像中的所述虹膜瞳孔直径比值。The primary screening iris image is collected based on the rotated iris camera, and the iris-to-pupil diameter ratio in the primary screening iris image is determined.
  6. 根据权利要求1所述的方法,其中,在所述采集被检测者的初筛虹膜图像之前,所述方法还包括:The method according to claim 1, wherein, before the first screening iris image of the collected subject, the method further comprises:
    对人脸图像中的人脸进行情绪分析,得到情绪分析结果;Carry out emotion analysis on the face in the face image, and obtain the emotion analysis result;
    在所述情绪分析结果显示所述被检测者的情绪处于激动状态时,发送提示信息以使所述被检测者平复情绪;以及When the emotional analysis result shows that the detected person is emotionally excited, sending a prompt message to calm the detected person; and
    在所述情绪分析结果显示所述被检测者的情绪处于平稳状态时,确定采集所述被检测者的所述初筛虹膜图像。When the emotional analysis result shows that the detected person's emotion is in a stable state, it is determined to collect the primary screening iris image of the detected person.
  7. 根据权利要求1所述的方法,其中,在所述基于所述虹膜瞳孔直径比值确定所述被检测者是否为吸毒嫌疑人之前,所述方法还包括:The method according to claim 1, wherein, before determining whether the detected person is a drug suspect based on the iris-to-pupil diameter ratio, the method further comprises:
    将人脸图像与身份证库进行图像检测,确定所述被检测者的年龄;以及Performing image detection on the face image and the ID card database to determine the age of the detected person; and
    获取与所述被检测者的年龄对应的年龄标准虹膜瞳孔直径比值范围;Obtaining an age-standard iris-to-pupil diameter ratio range corresponding to the age of the detected person;
    所述基于所述虹膜瞳孔直径比值确定所述被检测者是否为吸毒嫌疑人包括:在所述虹膜瞳孔直径比值处于所述年龄标准虹膜瞳孔直径比值范围之外时,确定所述被检测者为吸毒嫌疑人。The determining whether the detected person is a drug suspect based on the iris-to-pupil diameter ratio includes: when the iris-to-pupil diameter ratio is outside the age-standard iris-to-pupil diameter ratio range, determining that the detected person is drug suspect.
  8. 一种吸毒检测装置,所述装置包括:A drug detection device, said device comprising:
    初筛模块,用于采集被检测者的初筛虹膜图像,确定所述初筛虹膜图像中的虹膜瞳孔直径比值,基于所述虹膜瞳孔直径比值确定所述被检测者是否为吸毒嫌疑人,所述虹膜瞳孔直径比值为所述被检测者的虹膜直径与瞳孔直径的比值;以及The primary screening module is used to collect the primary screening iris image of the detected person, determine the iris-pupil diameter ratio in the primary screening iris image, and determine whether the detected person is a drug suspect based on the iris-pupil diameter ratio. The iris-to-pupil diameter ratio is the ratio of the detected person's iris diameter to the pupil diameter; and
    精筛模块,用于在所述被检测者为吸毒嫌疑人时,获取在补光灯的闪烁时间段内所述被检测者的多个精筛虹膜图像,基于多个所述精筛虹膜图像确定所述被检测者的虹膜瞳孔直径比值变化率;基于所述虹膜瞳孔直径比值变化率确定所述被检测者是否为吸毒人员。The fine screening module is used to acquire a plurality of fine screening iris images of the detected person during the flashing time period of the supplementary light when the detected person is a drug suspect, based on a plurality of the fine screening iris images Determining the change rate of the iris-to-pupil diameter ratio of the detected person; determining whether the detected person is a drug addict based on the change rate of the iris-to-pupil diameter ratio.
  9. 一种吸毒检测设备,包括:A drug detection device comprising:
    人脸摄像头,用于采集人脸图像;Face camera for collecting face images;
    虹膜摄像头,用于采集虹膜图像;Iris camera for collecting iris images;
    补光灯,设置在吸毒检测设备外侧或所述虹膜摄像头周围;The supplementary light is set outside the drug detection equipment or around the iris camera;
    存储器,所述存储器存储有计算机程序指令;以及a memory storing computer program instructions; and
    处理器,所述处理器执行所述计算机程序指令时,执行如下步骤:A processor, when the processor executes the computer program instructions, the following steps are performed:
    通过所述虹膜摄像头采集被检测者的初筛虹膜图像;Collecting the primary screening iris image of the detected person through the iris camera;
    确定所述初筛虹膜图像中的虹膜瞳孔直径比值,所述虹膜瞳孔直径 比值为所述被检测者的虹膜直径与瞳孔直径的比值;Determine the iris-pupil diameter ratio in the first screening iris image, the iris-pupil diameter ratio is the ratio of the detected person's iris diameter and pupil diameter;
    基于所述虹膜瞳孔直径比值确定所述被检测者是否为吸毒嫌疑人;determining whether the detected person is a drug suspect based on the iris-to-pupil diameter ratio;
    在所述被检测者为吸毒嫌疑人时,获取在所述补光灯的闪烁时间段内所述被检测者的多个精筛虹膜图像;When the subject is a drug suspect, acquiring a plurality of fine-screened iris images of the subject during the flashing time period of the supplementary light;
    基于多个所述精筛虹膜图像确定所述被检测者的虹膜瞳孔直径比值变化率;以及determining the rate of change of the iris-pupil diameter ratio of the subject based on a plurality of finely screened iris images; and
    基于所述虹膜瞳孔直径比值变化率确定所述被检测者是否为吸毒人员。It is determined whether the detected person is a drug addict based on the change rate of the iris-to-pupil diameter ratio.
  10. 根据权利要求9所述的吸毒检测设备,其中,所述处理器执行所述计算机程序指令时,在所述采集被检测者的初筛虹膜图像之前,还执行如下步骤:The drug abuse detection device according to claim 9, wherein, when the processor executes the computer program instructions, before the acquisition of the primary screening iris image of the subject, the following steps are also performed:
    检测环境光强度;Detect ambient light intensity;
    所述采集被检测者的初筛虹膜图像,确定所述初筛虹膜图像中的虹膜瞳孔直径比值,基于所述虹膜瞳孔直径比值确定所述被检测者是否为吸毒嫌疑人包括:The collecting the primary screening iris image of the subject, determining the iris-pupil diameter ratio in the primary screening iris image, and determining whether the subject is a drug suspect based on the iris-pupil diameter ratio include:
    基于所述环境光强度控制所述补光灯进行补光,以获取所述初筛虹膜图像;controlling the supplementary light to perform supplementary light based on the ambient light intensity, so as to obtain the primary screening iris image;
    基于所述初筛虹膜图像确定所述被检测者的虹膜瞳孔直径比值;以及determining the iris-to-pupil diameter ratio of the subject based on the primary screening iris image; and
    在所述虹膜瞳孔直径比值处于同等光线强度下标准虹膜瞳孔直径比值范围之外时,确定所述被检测者为吸毒嫌疑人。When the iris-to-pupil diameter ratio is outside the standard iris-to-pupil diameter ratio range under the same light intensity, it is determined that the detected person is a suspected drug addict.
  11. 根据权利要求9所述的吸毒检测设备,其中,所述人脸摄像头与所述虹膜摄像头能够在一转动轴的驱动下转动,所述采集被检测者的初筛虹膜图像,确定所述初筛虹膜图像中的虹膜瞳孔直径比值包括:The drug abuse detection device according to claim 9, wherein the face camera and the iris camera can rotate under the drive of a rotating shaft, and the collection of the primary screening iris image of the detected person determines the primary screening iris image. Iris-to-pupil diameter ratios in iris images include:
    基于所述人脸摄像头获取所述被检测者的人脸图像;Obtaining the face image of the detected person based on the face camera;
    定位人眼位置,确定所述人眼位置与标准人眼位置的第一差值;Locating the position of the human eye, and determining the first difference between the position of the human eye and the position of the standard human eye;
    根据所述第一差值控制所述虹膜摄像头转动第一角度;controlling the iris camera to rotate by a first angle according to the first difference;
    基于所述虹膜摄像头采集的虹膜图像定位虹膜位置;Positioning the iris position based on the iris image collected by the iris camera;
    确定所述虹膜位置与标准虹膜位置的第二差值;determining a second difference between the iris position and a standard iris position;
    根据所述第二差值控制所述虹膜摄像头转动第二角度;以及controlling the iris camera to rotate a second angle according to the second difference; and
    基于转动后的所述虹膜摄像头采集所述初筛虹膜图像,确定所述初筛虹膜图像中的所述虹膜瞳孔直径比值。The primary screening iris image is collected based on the rotated iris camera, and the iris-to-pupil diameter ratio in the primary screening iris image is determined.
  12. 根据权利要求9所述的吸毒检测设备,其中,所述处理器执行所述计算机程序指令时,在所述采集被检测者的初筛虹膜图像之前,还执行如下步骤:The drug abuse detection device according to claim 9, wherein, when the processor executes the computer program instructions, before the acquisition of the primary screening iris image of the subject, the following steps are also performed:
    对人脸图像中的人脸进行情绪分析,得到情绪分析结果;Carry out emotion analysis on the face in the face image, and obtain the emotion analysis result;
    在所述情绪分析结果显示所述被检测者的情绪处于激动状态时,发送提示信息以使所述被检测者平复情绪;以及When the emotional analysis result shows that the detected person is emotionally excited, sending a prompt message to calm the detected person; and
    在所述情绪分析结果显示所述被检测者的情绪处于平稳状态时,确定采集所述被检测者的所述初筛虹膜图像。When the emotional analysis result shows that the detected person's emotion is in a stable state, it is determined to collect the primary screening iris image of the detected person.
  13. 根据权利要求12所述的吸毒检测设备,其中,所述吸毒检测设备还包括显示屏,所述提示信息为通过所述显示屏播放的预设画面或所述补光灯以固定的频率进行闪烁。The drug use detection device according to claim 12, wherein the drug use detection device further includes a display screen, and the prompt information is a preset picture played through the display screen or the supplementary light flashes at a fixed frequency .
  14. 根据权利要求9所述的吸毒检测设备,其中,所述处理器执行所述计算机程序指令时,在所述基于所述虹膜瞳孔直径比值确定所述被检测者是否为吸毒嫌疑人之前,所述处理器还执行如下步骤:The drug use detection device according to claim 9, wherein, when the processor executes the computer program instructions, before determining whether the detected person is a drug use suspect based on the iris-to-pupil diameter ratio, the The processor also performs the following steps:
    将人脸图像与身份证库进行图像检测,确定所述被检测者的年龄;以及Performing image detection on the face image and the ID card database to determine the age of the detected person; and
    获取与所述被检测者的年龄对应的年龄标准虹膜瞳孔直径比值范围;Obtaining an age-standard iris-to-pupil diameter ratio range corresponding to the age of the detected person;
    所述基于所述虹膜瞳孔直径比值确定所述被检测者是否为吸毒嫌疑人包括:在所述虹膜瞳孔直径比值处于所述年龄标准虹膜瞳孔直径比值范围之外时,确定所述被检测者为吸毒嫌疑人。The determining whether the detected person is a drug suspect based on the iris-to-pupil diameter ratio includes: when the iris-to-pupil diameter ratio is outside the age-standard iris-to-pupil diameter ratio range, determining that the detected person is drug suspect.
  15. 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序指令,所述计算机程序指令被一处理器运行时,执行权利要求1-7任一项所述方法中的步骤。A computer-readable storage medium, wherein computer program instructions are stored in the computer-readable storage medium, and when the computer program instructions are executed by a processor, the steps in the method of any one of claims 1-7 are performed.
PCT/CN2022/135743 2021-12-10 2022-12-01 Drug-taking detection method, apparatus and device, and storage medium WO2023103860A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111510567.X 2021-12-10
CN202111510567.XA CN114187647A (en) 2021-12-10 2021-12-10 Drug-taking detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2023103860A1 true WO2023103860A1 (en) 2023-06-15

Family

ID=80604476

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/135743 WO2023103860A1 (en) 2021-12-10 2022-12-01 Drug-taking detection method, apparatus and device, and storage medium

Country Status (2)

Country Link
CN (1) CN114187647A (en)
WO (1) WO2023103860A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114187647A (en) * 2021-12-10 2022-03-15 深圳爱酷智能科技有限公司 Drug-taking detection method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017206932A1 (en) * 2016-06-01 2017-12-07 北京天诚盛业科技有限公司 Iris recognition device having light-filling function, recognition method, and method for filling light
CN111832344A (en) * 2019-04-17 2020-10-27 深圳熙卓科技有限公司 Dynamic pupil detection method and device
CN112307839A (en) * 2019-07-31 2021-02-02 深圳熙卓科技有限公司 Abnormal person detection method and terminal equipment
CN113221594A (en) * 2020-01-17 2021-08-06 北京眼神智能科技有限公司 Iris identification and drug-taking detection method, device, readable storage medium and equipment
CN114187647A (en) * 2021-12-10 2022-03-15 深圳爱酷智能科技有限公司 Drug-taking detection method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017206932A1 (en) * 2016-06-01 2017-12-07 北京天诚盛业科技有限公司 Iris recognition device having light-filling function, recognition method, and method for filling light
CN111832344A (en) * 2019-04-17 2020-10-27 深圳熙卓科技有限公司 Dynamic pupil detection method and device
CN112307839A (en) * 2019-07-31 2021-02-02 深圳熙卓科技有限公司 Abnormal person detection method and terminal equipment
CN113221594A (en) * 2020-01-17 2021-08-06 北京眼神智能科技有限公司 Iris identification and drug-taking detection method, device, readable storage medium and equipment
CN114187647A (en) * 2021-12-10 2022-03-15 深圳爱酷智能科技有限公司 Drug-taking detection method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114187647A (en) 2022-03-15

Similar Documents

Publication Publication Date Title
CN102458220B (en) Shape discrimination vision assessment and the system of tracking
EP2829221B1 (en) Asperger's diagnosis assistance device
US7614745B2 (en) System for analyzing eye responses to automatically determine impairment of a subject
KR101094766B1 (en) Apparatus and mehtod for tracking eye
CN104114079A (en) System and method for identifying eye conditions
CN108553081A (en) A kind of diagnostic system based on tongue fur image
WO2023103860A1 (en) Drug-taking detection method, apparatus and device, and storage medium
US20180279937A1 (en) Method and system for diagnostic pupillometric assessment of traumatic brain injury
CN110772218A (en) Vision screening device and method
US20230052100A1 (en) Systems And Methods For Optical Evaluation Of Pupillary Psychosensory Responses
US20220361744A1 (en) Systems and methods for evaluating pupillary responses
US10070787B2 (en) System and method for detection and monitoring of a physical condition of a user
US20220076417A1 (en) Vision screening systems and methods
US20210390692A1 (en) Detecting and tracking macular degeneration
CN105380590B (en) A kind of equipment and its implementation with eye position detection function
KR20220009572A (en) A fecal image analysis system and a method therefor
WO2020190648A1 (en) Method and system for measuring pupillary light reflex with a mobile phone
US20220287607A1 (en) Systems and methods for evaluating pupillary response
EP3925519A1 (en) Vision screening systems and methods
KR102473744B1 (en) A method of diagnosing strabismus through the analysis of eyeball image from cover and uncovered test
CN212438571U (en) Vision screening terminal and device
US20210386287A1 (en) Determining refraction using eccentricity in a vision screening system
WO2023091660A1 (en) Vision screening systems and methods
CN117530654A (en) Real-time binocular pupil inspection system and detection method
Khosravianarab Development of a Mobile Test Suite to Determine the Sobriety of Motorists

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22903282

Country of ref document: EP

Kind code of ref document: A1