WO2022121243A1 - Calibration method and apparatus, and electronic device, storage medium, and program product - Google Patents

Calibration method and apparatus, and electronic device, storage medium, and program product Download PDF

Info

Publication number
WO2022121243A1
WO2022121243A1 PCT/CN2021/096072 CN2021096072W WO2022121243A1 WO 2022121243 A1 WO2022121243 A1 WO 2022121243A1 CN 2021096072 W CN2021096072 W CN 2021096072W WO 2022121243 A1 WO2022121243 A1 WO 2022121243A1
Authority
WO
WIPO (PCT)
Prior art keywords
face
frame
calibration
area
thermal infrared
Prior art date
Application number
PCT/CN2021/096072
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 WO2022121243A1 publication Critical patent/WO2022121243A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/30Determination of transform parameters for the alignment of images, i.e. image registration
    • G06T7/33Determination of transform parameters for the alignment of images, i.e. image registration using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • 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/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • 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/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20228Disparity calculation for image-based rendering

Definitions

  • the present disclosure is based on the Chinese patent application with the application number of 202011420092.0, the application date of December 7, 2020, and the application name of "calibration method and device, electronic equipment and storage medium", and claims the priority of the Chinese patent application, the The entire contents of the Chinese patent application are hereby incorporated by reference into the present disclosure.
  • the present application relates to the field of computer vision technology, and in particular, to a calibration method and apparatus, electronic equipment, storage medium and program product.
  • Binocular stereo vision is an important form of machine vision, which is based on the principle of parallax and uses an imaging device to obtain two images of the object to be measured (hereinafter referred to as binocular images) from different positions.
  • the present application provides a calibration method and device, an electronic device, a storage medium and a program product.
  • the application provides a calibration method, the method includes:
  • the calibration user interface includes a thermal infrared image and a first face contour frame
  • the calibration completion information is output.
  • the method further includes:
  • the coincidence result includes but is not limited to the coincidence degree, The forehead area of the human face.
  • displaying the face forehead area in the calibration user interface enables the user to know the degree of coincidence between the forehead area in the face frame and the forehead area in the thermal infrared image. In this way, it is more beneficial to improve the accuracy of body temperature obtained based on thermal infrared images and visible light images.
  • the method before displaying the coincidence result of the first face contour frame and the first face region in the calibration user interface, the method further includes:
  • the reference pixel point area is the area corresponding to the first face area in the visible light image
  • the reference parallax and the position of the reference pixel area in the visible light image determine the position of the first face region in the thermal infrared image; the reference parallax is the visible light image and the thermal infrared image. Parallax between infrared images;
  • the termination position is the the position of the first face contour frame in the calibration user interface.
  • the reference parallax is the parallax between the visible light image and the thermal infrared image.
  • the calibration device can determine the position of the first face region in the thermal infrared image according to the reference parallax and the position of the reference pixel point region in the visible light image.
  • the calibration device can determine the area coincidence degree between the first face contour frame and the first face region in the thermal infrared image according to the position and termination position of the first face region in the thermal infrared image, as the coincidence result.
  • moving the first face contour frame according to the operation instruction includes:
  • the first face contour frame is moved along the sliding direction of the object on the user interface.
  • the first face contour frame can be moved along the sliding direction of the object on the user interface.
  • the calibration method is applied to a calibration device
  • the method further includes:
  • the at least one virtual direction button includes at least one of the following: an up virtual button, a down virtual button, a left virtual button, and a right virtual button;
  • the moving the first human face outline frame according to the operation instruction in response to receiving the operation instruction for moving the first human face outline frame includes:
  • the face frame is moved according to the direction indicated by the touched virtual direction button.
  • the user can control the movement of the first face contour frame by touching the virtual direction button, so that the first face contour frame and the first face area in the thermal infrared image are overlapped.
  • the first face contour frame is obtained according to at least one reference first face contour frame; the at least one reference first face contour frame is obtained by performing face analysis on at least one face image.
  • the acquisition conditions of the at least one face image are all actual acquisition conditions; and the actual acquisition conditions are image acquisition conditions under the application environment of the calibration device.
  • the first face contour frame obtained according to the at least one first face contour frame is compared with the calibration device under the actual acquisition conditions for the human face
  • the first face contour frame obtained by shooting is closer, thereby improving the calibration accuracy between the visible light image and the thermal infrared image.
  • the method further includes:
  • the first human face outline frame In the case of receiving an instruction to reset the first human face outline frame, the first human face outline frame is reset to an initial position.
  • the user can return the first face contour frame to the initial position by inputting an instruction to reset the first face contour frame to the calibration device.
  • the first face contour frame includes at least one face key point
  • the overlapping of the first face contour frame with the first face region in the thermal infrared image includes: the first face contour frame and the boundary of the first face region overlapping and the at least one face The key points coincide with the corresponding face key points in the first face region.
  • the user when judging whether the first face contour frame coincides with the first face area in the thermal infrared image, the user can not only check whether the face contour in the first face contour frame coincides with the boundary of the first face area As a judgment basis, whether at least one face key point in the first face outline frame and a corresponding face key point in the first face area overlap can also be used as a judgment basis.
  • the calibration user interface further includes a second display area different from the first area
  • the method further includes:
  • a preview image of the overlapping effect between the first human face outline frame and the first human face area is displayed in the second display area; the overlapping effect preview image includes the second human face outline frame and the second human face.
  • the overlapping effect diagram of the face area; the temperature measurement area is marked in the second face contour frame; the position of the second face contour frame in the second display area and the first face contour frame are in The positions in the first display area correspond; the second face area corresponds to the first face area.
  • the second face area corresponds to the first face area, that is, in the overlap effect preview image, the second face area is the preview image of the first face area, and in the process of moving the first face outline frame, The position of the temperature measurement area is displayed through the overlay effect preview. In this way, the user can know which part of the temperature measurement object is to be measured by the thermal infrared imaging device when collecting the thermal infrared image.
  • the method further includes:
  • the thermal infrared image and the first face frame are enlarged according to the zoom-out instruction.
  • the user can better observe the overlapping effect between the first face frame and the first face region by inputting a zoom-in command or a zoom-out command to the calibration device.
  • the present application also provides a calibration device, the calibration device comprising:
  • a first processing unit configured to enter a calibration user interface in response to the received calibration trigger instruction, and the calibration user interface includes a thermal infrared image and a first face outline frame;
  • a second processing unit configured to, in response to receiving an operation instruction for moving the first face outline frame, move the first face outline frame according to the operation instruction;
  • the output unit is configured to output calibration completion information when the first face contour frame coincides with the first face region in the thermal infrared image.
  • the present application also provides an electronic device, comprising: a processor and a memory, the memory is used to store computer program code, the computer program code includes computer instructions, and the processor executes the In the case of computer instructions, the electronic device performs the method of the first aspect and any one of possible implementations thereof.
  • the present application also provides another electronic device, including: a processor, a sending device, an input device, an output device, and a memory, the memory being used to store computer program code, the computer program code comprising a computer Instructions, when the processor executes the computer instructions, the electronic device executes the method according to the first aspect and any one of possible implementations thereof.
  • the present application also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, the computer program includes program instructions, and the program instructions are executed by a processor.
  • the processor is caused to execute the method according to the first aspect and any one of possible implementations thereof.
  • the present application also provides a computer program product, the computer program product includes a computer program or instructions, when the computer program or instructions are run on a computer, the computer is caused to execute the above-mentioned first step.
  • the computer program product includes a computer program or instructions, when the computer program or instructions are run on a computer, the computer is caused to execute the above-mentioned first step.
  • FIG. 1 is a schematic flowchart of a calibration method provided in an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a first face contour frame provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a calibration user interface provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a calibration device provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a hardware structure of a calibration apparatus provided by an embodiment of the present application.
  • At least one (item) refers to one or more
  • multiple refers to two or more
  • at least two (item) refers to two or three
  • "and/or” is used to describe the association relationship of related objects, indicating that three kinds of relationships can exist, for example, "A and/or B” can mean: only A exists, only B exists, and A exists at the same time and B three cases, where A, B can be singular or plural.
  • the character "/" can indicate that the related objects are an "or” relationship, which refers to any combination of these items, including any combination of a single item (a) or a plurality of items (a).
  • At least one (a) of a, b or c can mean: a, b, c, "a and b", “a and c", “b and c", or "a and b and c” ", where a, b, c can be single or multiple.
  • respiratory infectious diseases are easily contagious. When people with respiratory infectious diseases appear in public places or crowds, they may cause greater harm to social security (such as the harm to human safety caused by the spread of new coronary pneumonia). In order to reduce the transmission efficiency of respiratory infectious diseases, close contact between people can be reduced. At this time, it is not appropriate to measure people's body temperature by means of contact measurement.
  • the body temperature of a person can only be measured by means of non-contact measurement.
  • the current method of non-contact measurement is that the temperature measurement terminal uses a Red Green Blue (RGB) camera and a thermal imaging (Infrared Radiation, IR) camera to shoot the face of the object to be measured, and obtain an RGB image. and a temperature heatmap.
  • the temperature measurement terminal determines the first face area from the RGB image by performing face detection processing on the RGB image, and then determines the pixel area corresponding to the first face area from the temperature heat map as the target pixel area.
  • the temperature measurement terminal obtains the body temperature of the object to be measured according to the temperature of the target pixel area.
  • the position of the face of the object to be measured in the RGB image is different from the position of the face of the object to be measured in the temperature heat map. In this way, there may be a deviation between the target pixel area determined by the temperature measurement terminal from the temperature heat map and the first face area of the object to be measured, which in turn leads to inaccurate body temperature of the object to be measured.
  • the embodiment of the present application provides a calibration method to determine the displacement difference between the RGB camera and the thermal imaging camera, so as to improve the accuracy of the body temperature of the object to be measured.
  • the execution body of the embodiment of the present application is a calibration device.
  • the calibration device may be one of the following: a mobile phone, a computer, a server, and a tablet computer.
  • FIG. 1 is a schematic flowchart of a calibration method provided by an embodiment of the present application.
  • the calibration trigger instruction is used to instruct the calibration device to start the calibration procedure.
  • there is a communication connection between the calibration device and the display and the calibration device displays an information box on the display whether to start the calibration program through the communication connection. The user can input a calibration trigger command to the calibration device through this information box.
  • the information box includes starting the calibration procedure and not starting the calibration procedure.
  • the user can input a calibration trigger command to the calibration device by clicking to start the calibration procedure.
  • the user inputs a calibration trigger instruction to the calibration device by inputting voice data carrying the information of starting the calibration program to the calibration device.
  • the reception of the calibration trigger instruction by the calibration apparatus may be that the calibration apparatus receives the calibration trigger instruction sent by the terminal.
  • the terminal may be any one of the following: a mobile phone, a computer, a tablet computer, a server, and a wearable device.
  • the calibration device In response to the received calibration trigger instruction, the calibration device enters the calibration user interface to perform the next calibration process. In some embodiments of the present application, when the calibration device enters the calibration user interface, it may switch to the user interface after receiving the calibration trigger instruction.
  • the calibration user interface includes a first display area, and the first display area includes a thermal infrared image and a first face outline frame.
  • the first display area may be a part of the area of the calibration user interface, and the first display area may also be the entire area of the calibration user interface.
  • the first face contour frame may be the face contour shown in FIG. 2 .
  • the calibration apparatus before performing step 102, obtains the first face contour frame.
  • the calibration device receives the first face contour frame input by the user through the input component.
  • the above-mentioned input components include: a keyboard, a mouse, a touch screen, a touch pad, an audio input, and the like.
  • the calibration device receives the first face contour frame sent by the terminal.
  • the initial position of the first face contour frame in the calibration user interface is fixed. That is, the calibration device displays the calibration user interface in response to receiving the calibration trigger instruction, and displays the first face contour frame at the initial position in the calibration user interface.
  • the operation instruction for moving the first face contour frame is used to instruct the calibration device to move the first face contour frame on the calibration user interface.
  • the user inputs an operation instruction for moving the first face contour frame to the calibration apparatus through the input component, so that the calibration apparatus moves the first face contour frame according to the operation instruction.
  • the user inputs an operation instruction to the calibration device through the input component to move the first face outline frame to the left by 10 pixel point units.
  • the calibration device receives the operation instruction, the first human face will be displayed in the calibration user interface.
  • the outline box is moved to the left by 10 pixel units.
  • the thermal infrared image is the face image collected by the above thermal imaging device.
  • the thermal infrared image is also displayed in the calibration user interface.
  • the initial position of the first face contour frame in the calibration user interface is the position of the first face region in the visible light image when the visible light image is displayed in the calibration user interface.
  • the visible light image includes the first face area a.
  • the visible light image is displayed in the calibration user interface, and the position of the first face region a in the visible light image is A.
  • the thermal infrared image and the visible light image are binocular images, that is, the thermal infrared image and the visible light image are two images obtained by photographing the same face by different imaging devices at the same time.
  • the device is a visible light imaging device.
  • the visible light imaging device is an RGB imaging device.
  • the temperature measurement terminal includes an RGB camera and an IR camera.
  • the temperature measurement terminal uses an RGB camera to photograph Zhang San's face to obtain an RGB image, and while using the RGB camera to collect the RGB image, uses an IR camera to photograph Zhang San's face to obtain a thermal infrared image.
  • the installation position of the visible light imaging device is different from that of the thermal infrared imaging device, the position of the face of the object to be measured in the visible light image is different from the position of the face of the object to be measured in the thermal infrared image. Therefore, before determining the body temperature of the object to be measured based on the visible light image and the thermal infrared image, the parallax between the visible light image and the thermal infrared image needs to be obtained by calibrating the visible light image and the thermal infrared image.
  • the initial position of the first face contour frame in the calibration user interface is the position of the first face area in the visible light image in the visible light image
  • the calibration device moves the first face contour frame to the right by 5 pixel point units on the calibration user interface, it is obtained that the first face contour frame coincides with the first face region in the thermal infrared image. Then it can be explained that moving the visible light image to the right side of the calibration user interface by 5 pixel point units can make the visible light image and the thermal infrared image overlap. That is, the parallax between the visible light image and the thermal infrared image is 5 pixel units.
  • the calibration device When it is determined that the first face contour frame coincides with the first face region in the thermal infrared image, the calibration device outputs calibration completion information to inform the user that the calibration between the thermal infrared image and the visible light image has been completed.
  • the calibration device makes the display output calibration completion information through the communication connection.
  • the calibration device may display the calibration completion information in the calibration user interface; for another example, the calibration device may switch the calibration user interface to another interface, and display the calibration completion information in the switched interface.
  • the calibration device may output calibration completion information by outputting voice data.
  • the calibration device may output calibration completion information by controlling the prompt light to flash.
  • the calibration device determines to complete the calibration between the visible light image and the thermal infrared image when it is determined that the first face contour frame coincides with the first face region in the thermal infrared image.
  • the calibration device can display the calibration user interface, so that the user can move the face frame to determine whether the face frame overlaps with the first face area in the thermal infrared image, and then can The calibration between the visible light image and the thermal infrared image is completed, thereby reducing the operational complexity for the user to obtain the parallax between the visible light image and the thermal infrared image.
  • the calibration device further performs the following steps:
  • the position of the first face contour frame in the interface is taken as the termination position.
  • the disparity between the points with the same name refers to the difference between the positions of two pixels with the same name in the binocular image in the respective images.
  • the disparity between the binocular images is the disparity obtained according to the disparity between all points with the same name in the binocular images.
  • the average value of the disparity between all points with the same name in the binocular image is used as the disparity between the binocular images.
  • the calibration device obtains the parallax between the visible light image and the thermal infrared image by determining the displacement difference, thereby reducing the amount of data processing required by the calibration device to obtain the parallax between the visible light image and the thermal infrared image, and reducing the amount of visible light obtained by the user. Operational complexity of parallax between image and thermal infrared image.
  • the calibration device further performs the following steps:
  • the coincidence result includes but is not limited to the coincidence degree and the forehead area of the human face.
  • the degree of coincidence may be one of the following: a numerical value, a coincidence effect diagram between the first face contour frame and the first face region in the thermal infrared image.
  • the face forehead area refers to the face forehead area in the first face outline frame. Since the body temperature of a person is measured based on a visible light image and a thermal infrared image, the body temperature of a person is usually determined by measuring the temperature of a person's forehead. Therefore, displaying the face forehead region in the calibration user interface enables the user to know the degree of coincidence between the forehead region in the face frame and the forehead region in the thermal infrared image. In this way, it is more beneficial to improve the accuracy of the body temperature obtained based on the thermal infrared image and the visible light image.
  • the calibration device further performs the following steps before displaying the coincidence result between the first face contour frame and the first face region in the calibration user interface:
  • the visible light image and the thermal infrared image are binocular images.
  • the calibration device receives the visible light image input by the user through the input component.
  • the calibration device receives the visible light image sent by the terminal.
  • the calibration device is loaded with a visible light imaging device.
  • the calibration device uses visible light imaging equipment to collect visible light images.
  • the reference pixel area is an area corresponding to the first face area in the visible light image. That is, the reference pixel area corresponds to the face of the same person as the first face area in the thermal infrared image.
  • the calibration device can determine the position of the first face region in the visible light image by performing face recognition processing on the visible light image.
  • the calibration device uses the first face region in the visible light image as a reference pixel region.
  • the calibration device uses the first face area with the largest area as the reference pixel area.
  • the reference parallax is the parallax between the visible light image and the thermal infrared image.
  • the calibration device can determine the position of the first face region in the thermal infrared image according to the reference parallax and the position of the reference pixel point region in the visible light image.
  • the calibration device may determine the distance between the first face contour frame and the first face region in the thermal infrared image according to the position and termination position of the first face region in the thermal infrared image. Area coincidence degree, as the coincidence result.
  • the calibration device can obtain the relationship between the first face contour frame and the first face region in the thermal infrared image according to the position and termination position of the first face region in the thermal infrared image. Coincidence effect map, as the coincidence result.
  • the calibration device performs the following steps in the process of performing step 102:
  • the calibration device detects the movement instruction of the object sliding on the user interface by detecting the sliding operation of the object on the touch display.
  • the calibration device moves the first face contour frame along the sliding direction of the object on the user interface when the movement instruction is detected. For example, the user slides a finger on the touch display to move the first human face outline frame; for another example, the user uses a stylus to slide and move the first human face outline frame on the touch display.
  • the position where the object contacts the touch display may be located on the first face contour frame, and the position where the object contacts the touch display may not be located on the first face contour frame.
  • the user's finger-reachable area in the touch display (such as the area in the lower left corner or the lower right corner of the touch display) can be used as the control area, and the user can use objects in the Swipe in the control area to move the first face outline frame.
  • the calibration apparatus before performing step 102, the calibration apparatus further performs the following steps:
  • the at least one virtual direction button includes at least one of the following: an up virtual button, a down virtual button, a left virtual button, and a right virtual button.
  • the virtual direction button is used to move the first face outline frame. For example, if the up virtual button is touched by an object, it means that the first face outline frame should move to the upper side of the calibration user interface; if the down virtual button is touched by an object, it means that the first face outline frame should move to the lower side of the calibration user interface; When the left virtual button is touched by an object, it indicates that the first face contour box should move to the left side of the calibration user interface; if the right virtual button is touched by an object, it indicates that the first face contour box should move to the right side of the calibration user interface.
  • the calibration device After performing step 9, the calibration device performs a step in the process of performing step 102:
  • the calibration device moves the first face contour frame to the upper side of the calibration user interface by n pixel units when detecting that the object touches the upward virtual button.
  • the calibration device detects that the object touches the up virtual button, the first face contour frame moves n pixel units to the upper side of the calibration user interface.
  • the value of n can be set according to actual needs.
  • the calibration device moves the first face contour frame to the lower side of the calibration user interface by m pixel units when detecting that the object touches the downward virtual button.
  • the at least one virtual direction button includes a down virtual button
  • the calibration device detects that the object touches the down virtual button
  • the first face contour frame moves m pixel units to the lower side of the calibration user interface.
  • the value of m can be set according to actual needs.
  • the calibration device moves the first face contour frame to the left side of the calibration user interface by i pixel units when detecting that the object touches the left virtual button.
  • the at least one virtual direction button includes a left virtual button
  • the calibration device detects that the object touches the left virtual button
  • the first face contour frame moves i pixel units to the left of the calibration user interface.
  • the value of i can be set according to actual needs.
  • the calibration device moves the first face outline frame to the right side of the calibration user interface by j pixel units when detecting that the object touches the right virtual button.
  • the at least one virtual direction button includes a right virtual button
  • the calibration device detects that the object touches the right virtual button
  • the first face contour frame moves j pixel units to the right side of the calibration user interface.
  • the value of j can be set according to actual needs.
  • the user can control the movement of the first face contour frame by touching the virtual direction button, so that the first face contour frame and the first face area in the thermal infrared image are overlapped.
  • the first face contour frame is obtained according to at least one reference to the first face contour frame.
  • At least one reference first face contour frame is obtained by performing face detection processing on at least one face image.
  • the acquisition conditions of at least one face image are all actual acquisition conditions, wherein the actual acquisition conditions are image acquisition conditions under the application environment of the calibration device.
  • the face detection processing is used to process the face image to obtain the face contour and the face key points.
  • the electronic device can obtain at least one face contour and at least one face key point by performing face detection processing on a face image.
  • the electronic device can obtain at least one reference first face contour frame by performing face detection processing on at least one face image.
  • the electronic device can further obtain the first face contour frame according to the at least one reference first face contour frame.
  • the electronic device obtains the first face contour frame by fitting at least one reference first face contour frame.
  • the electronic device may average at least one reference first face contour frame to obtain the first face contour frame.
  • the electronic device may use any one of the at least one reference first face contour frame as the first face contour frame.
  • the collection conditions include one of the following factors: brightness and shooting angle.
  • the collection conditions in the waiting hall are different from the collection conditions outdoors; for another example, there are a calibration device 1 and a calibration device 2 in the waiting hall, wherein the shooting angle of the camera of the calibration device 1 is the same as the shooting angle of the camera of the calibration device 2.
  • the angles are different, that is, the acquisition conditions of the calibration device 1 and the acquisition conditions of the calibration device 2 are different.
  • the face image of Zhang San is collected under the collection condition 1 to obtain the face image 1
  • the face image of Zhang San is collected under the collection condition 2 to obtain the face image 2.
  • the face contour of Zhang San in the face image 1 is different from the face contour of Zhang San in the face image 2 .
  • the image acquisition conditions under the application environment of the calibration device are referred to as actual acquisition conditions.
  • the actual acquisition conditions are the acquisition conditions when the calibration device collects images in the hall of company A.
  • the first face contour frame obtained according to the at least one first face contour frame is used with the calibration device to photograph the human face under the actual acquisition conditions.
  • the obtained first face contour frame is closer, thereby improving the calibration accuracy between the visible light image and the thermal infrared image.
  • the first face contour frame further includes at least one of the following face key points: eye key point, forehead key point, and eye key point.
  • the first face contour frame includes at least one face key point
  • the user determines whether the first face contour frame coincides with the first face region in the thermal infrared image, not only the first face Whether the face contour in the face contour frame overlaps with the boundary of the first face area is used as a judgment basis, and at least one face key point in the first face contour frame can also be used with the corresponding face in the first face area. Whether the key points overlap is the basis for judgment.
  • the user when judging whether the first face contour frame coincides with the first face area in the thermal infrared image, the user not only checks whether the face contour in the first face contour frame coincides with the boundary of the first face area As the judgment basis, whether the eye key point in the first face contour frame and the eye key point in the first face area overlap can also be used as the judgment basis.
  • the calibration device resets the first human face contour frame to an initial position when receiving an instruction to reset the first human face contour frame.
  • the user may input an instruction to reset the first face contour frame to the calibration device, so that the first face contour frame can return to the initial position.
  • the calibration user interface further includes a second display area
  • the calibration device further performs the following steps:
  • the first display area is different from the second display area. In some embodiments of the present application, there is no intersection between the second display area and the first display area.
  • the overlap effect preview image includes an overlap effect image of the second face contour frame and the second face region.
  • the temperature measurement area is marked in the second face outline frame.
  • the temperature measurement area may be a point marked with a special color. For example, suppose the temperature measurement area is a green point. Explain that the green point is the temperature measurement point of the thermal infrared imaging device.
  • the temperature measurement area may be an area marked with a frame, and in this case, the temperature measurement area is a temperature measurement area of a thermal infrared imaging device.
  • the position of the second face contour frame in the second display area corresponds to the position of the first face contour frame in the first display area. That is, if the first face contour frame moves to the left in the first display area, then the second face contour frame moves to the left in the second display area; if the first face contour frame moves upward in the first display area, then The second face outline frame moves upward in the second display area.
  • the user moves the first face outline frame upward in the first display area by clicking the up virtual button, and at this time, the second face outline frame moves upward in the second display area.
  • the ratio between the moving distance of the first face outline frame in the first display area and the movement distance of the second face outline frame in the second display area is the preview ratio.
  • the preview scale is 2. If the user clicks the up virtual button to move the first face contour frame upward by 4 pixel units in the first display area, then the second face contour frame moves upward by 2 pixel units in the second display area .
  • the second face area corresponds to the first face area, that is, in the preview image of the overlap effect, the second face area is a preview image of the first face area.
  • the ratio between the size of the first face region and the size of the second face region is the preview ratio.
  • the calibration device can display the position of the temperature measurement area through the overlapping effect preview image during the process of moving the first face contour frame. In this way, the user can know which part of the temperature measurement object is measured by the thermal infrared imaging device when the thermal infrared image is collected. For example, if the temperature measurement area is in the right forehead area of the second face area, then the body temperature obtained according to the visible light image and the thermal infrared image is the temperature of the right forehead area of the temperature measurement object.
  • the calibration apparatus before performing step 103, the calibration apparatus further performs the following steps:
  • the enlargement instruction is used to instruct the calibration device to enlarge the thermal infrared image and the face frame.
  • the calibration device simultaneously magnifies the thermal infrared image and the first face frame according to the magnification instruction.
  • the zoom-out instruction is used to instruct the calibration device to zoom in on the thermal infrared image and the face frame.
  • the calibration device simultaneously reduces the thermal infrared image and the first face frame according to the enlargement instruction.
  • the user can better observe the overlapping effect between the first face frame and the first face region by inputting a zoom-in or zoom-out command to the calibration device.
  • the user inputs a zoom-in instruction to the calibration device, which may be touching the zoom-in button in the first display area; the user inputs a zoom-out instruction to the calibration device, which may be touching the zoom-in button in the first display area.
  • the embodiments of the present application also provide a possible application scenario.
  • the temperature measurement terminal determines the first face area from the RGB image, and then determines the pixel corresponding to the first face area from the thermal infrared image Point area, as the target pixel area.
  • the temperature measurement terminal obtains the body temperature of the object to be measured according to the temperature of the target pixel area.
  • the obtained body temperature of the object to be measured has a large error, and even an unreasonable body temperature may be obtained.
  • Zhang San's body temperature is 30 degrees; for another example, using the temperature measuring terminal to measure Zhang San's body temperature, it is obtained that Zhang San's body temperature is 43 degrees. Obviously 30 degrees and 40 degrees are unreasonable body temperature.
  • the reason may be that the displacement difference between the RGB camera and the thermal imaging camera is large, resulting in a large parallax between the RGB image and the thermal infrared image.
  • the user can determine the parallax between the RGB image and the thermal infrared image based on the technical solutions provided by the embodiments of the present application, thereby improving the accuracy of the body temperature of the object to be measured.
  • the temperature measurement terminal displays the outline frame of the first face collected on the display, so that Zhang San adjusts the position of the face, so that the face of Zhang San is in the first position of the collection. within the face contour frame.
  • the position of the collected first face contour frame in the calibration user interface of the display is the same as the position of the first face contour frame in the calibration user interface.
  • the temperature measurement terminal determines that Zhang San's face is within the frame of the first face outline
  • uses an RGB camera to collect an image containing Zhang San's face as an RGB image
  • uses a thermal imaging camera to collect Zhang San's face. image of the part as a thermal infrared image.
  • the temperature measurement terminal can complete the calibration between the RGB images and the thermal infrared images.
  • the user can make the first face contour frame overlap with the first face area in the thermal infrared image by moving the first face contour frame, and input the first face contour frame and the thermal infrared image to the temperature measurement terminal.
  • the first face area coincidence command can then determine the parallax between the RGB image and the thermal infrared image. In this way, the temperature measurement terminal can determine the target pixel area from the thermal infrared image based on the parallax, thereby improving the accuracy of the body temperature of the object to be measured.
  • Figure 3 shows a calibration user interface displaying a first face contour box and a thermal infrared image.
  • a first face outline box 301 using a dashed line is included.
  • the virtual direction button By touching the virtual direction button, the user can move the first face contour frame 301 so that the first face contour frame 301 coincides with the first face area in the thermal infrared image.
  • the writing order of each step does not mean a strict execution order but constitutes any limitation on the implementation process, and the specific execution order of each step should be based on its function and possible Internal logic is determined.
  • FIG. 4 is a schematic structural diagram of a calibration device provided by an embodiment of the present application.
  • the calibration device 1 includes: a first processing unit 11, a second processing unit 12, an output unit 13, a first display unit 14, The acquisition unit 15, the third processing unit 16, the fourth processing unit 17, the fifth processing unit 18, the second display unit 19 and the reset unit 20, wherein:
  • the first processing unit 11 is configured to enter a calibration user interface in response to the received calibration trigger instruction, and the calibration user interface includes a thermal infrared image and a first face outline frame;
  • the second processing unit 12 is configured to, in response to receiving an operation instruction for moving the first human face outline frame, move the first human face outline frame according to the operation instruction;
  • the output unit 13 is configured to output calibration completion information when the first face contour frame coincides with the first face region in the thermal infrared image.
  • the calibration device 1 further includes:
  • the first display unit 14 is configured to display the coincidence result of the first face outline frame and the first face region in the calibration user interface in response to receiving the calibration completion instruction, wherein the coincidence
  • the results include, but are not limited to, coincidence, face forehead area.
  • the calibration device further includes:
  • the obtaining unit 15 is configured to obtain a visible light image before displaying the coincidence result of the first face contour frame and the first face region in the calibration user interface;
  • the third processing unit 16 is configured to perform face recognition processing on the visible light image to obtain the position of the reference pixel point area in the visible light image; the reference pixel point area is the difference between the visible light image and the The area corresponding to the first face area;
  • the fourth processing unit 17 is configured to determine the position of the first face region in the thermal infrared image according to the reference parallax and the position of the reference pixel area in the visible light image; the reference parallax is Parallax between the visible light image and the thermal infrared image;
  • the fifth processing unit 18 is configured to obtain the coincidence of the first face contour frame and the first face region according to the position of the first face region in the thermal infrared image and the termination position result.
  • the second processing unit 12 is configured as:
  • the first face contour frame is moved along the sliding direction of the object on the user interface.
  • the calibration device further includes: a second display unit 19, configured to, in response to receiving an operation instruction for moving the first face contour frame, move according to the operation instruction Before the first face outline frame, at least one virtual direction button is displayed in the calibration user interface;
  • the at least one virtual direction button includes at least one of the following: an up virtual button, a down virtual button, a left virtual button, Right virtual button;
  • the second processing unit 12 is configured as:
  • the face frame is moved according to the direction indicated by the touched virtual direction button.
  • the first face contour frame is obtained according to at least one reference first face contour frame; the at least one reference first face contour frame is obtained by performing face analysis on at least one face image.
  • the acquisition conditions of the at least one face image are all actual acquisition conditions; and the actual acquisition conditions are image acquisition conditions under the application environment of the calibration device.
  • the calibration device 1 further includes:
  • the resetting unit 20 is configured to reset the first human face outline frame to an initial position when receiving an instruction to reset the first human face outline frame.
  • the first face contour frame includes at least one face key point
  • the overlapping of the first face contour frame with the first face region in the thermal infrared image includes: the first face contour frame and the boundary of the first face region overlapping and the at least one face The key points coincide with the corresponding face key points in the first face region.
  • the calibration user interface further includes a second display area different from the first area
  • the first processing unit 11 is further configured to display the second display area in the second display area.
  • the second processing unit 12 is further configured to output calibration completion information when the first face contour frame overlaps with the first face region in the thermal infrared image before, in response to receiving an enlargement instruction for the thermal infrared image and the first face frame, enlarging the thermal infrared image and the first face frame according to the enlargement instruction;
  • the thermal infrared image and the first face frame are enlarged according to the zoom-out instruction.
  • the functions or modules included in the apparatus provided in the embodiments of the present application may be configured to execute the methods described in the above method embodiments, and the specific implementation may refer to the descriptions in the above method embodiments. No longer.
  • FIG. 5 is a schematic diagram of a hardware structure of a calibration apparatus provided by an embodiment of the present application.
  • the calibration device 2 includes a processor 21 , a memory 22 , an input device 23 , and an output device 24 .
  • the processor 21, the memory 22, the input device 23, and the output device 24 are coupled through a connector, and the connector includes various types of interfaces, transmission lines, or buses, etc., which are not limited in this embodiment of the present application. It should be understood that, in various embodiments of the present application, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, such as various interfaces, transmission lines, and buses.
  • the processor 21 may be one or more graphics processing units (graphics processing units, GPUs).
  • the GPU may be a single-core GPU or a multi-core GPU.
  • the processor 21 may be a processor group composed of multiple GPUs, and the multiple processors are coupled to each other through one or more buses.
  • the processor may also be other types of processors, etc., which are not limited in the embodiments of the present application.
  • the memory 22 can be used to store computer program instructions and various types of computer program codes including program codes for executing the solutions of the present application.
  • the memory includes, but is not limited to, random access memory (RAM), read-only memory (read-only memory, ROM), erasable programmable read-only memory (erasable programmable read only memory, EPROM) ), or a portable read-only memory (compact disc read-only memory, CD-ROM), which is used for related instructions and data.
  • RAM random access memory
  • ROM read-only memory
  • EPROM erasable programmable read only memory
  • CD-ROM compact disc read-only memory
  • the input device 23 is used for inputting data and/or signals
  • the output device 24 is used for outputting data and/or signals.
  • the input device 23 and the output device 24 may be independent devices or may be an integral device.
  • the memory 22 can be used not only to store related instructions, but also to store related data.
  • the memory 22 can be used to store the calibration trigger instruction obtained through the input device 23, or the memory 22 can also be used to store The parallax between the visible light image obtained by the processor 21 and the thermal infrared image is stored, and the embodiment of the present application does not limit the specific data stored in the memory.
  • Figure 5 shows a simplified design of a calibration device.
  • the calibration device may also include other necessary components, including but not limited to any number of input/output devices, processors, memories, etc., and all calibration devices that can implement the embodiments of the present application are included in the present application. within the scope of protection.
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can 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 a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted over a computer-readable storage medium.
  • the computer instructions can be sent from a website site, computer, server, or data center via wired (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) another website site, computer, server or data center for transmission.
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media.
  • the available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, digital versatile disc (DVD)), or semiconductor media (eg, solid state disk (SSD)) )Wait.
  • the process can be completed by instructing the relevant hardware by a computer program, and the program can be stored in a computer-readable storage medium.
  • the program When the program is executed , which may include the processes of the foregoing method embodiments.
  • the aforementioned storage medium includes: read-only memory (read-only memory, ROM) or random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.
  • the calibration device of the present application can display the calibration user interface, so that the user can move the face frame to determine whether the face frame is coincident with the first face area in the thermal infrared image, and then the visible light image and the thermal infrared image can be completed. Calibration between the two, thereby reducing the operational complexity of the user to obtain the parallax between the visible light image and the thermal infrared image.

Abstract

Disclosed in the present application are a calibration method and apparatus, and an electronic device, a storage medium, and a program product. The method comprises: in response to a received calibration trigger instruction, entering a calibration user interface, the calibration user interface comprising a thermal infrared image and a first face contour box; in response to the fact that an operation instruction of moving the first face contour box is received, moving the first face contour box according to the operation instruction; and when the first face contour box coincides with a first face area in the thermal infrared image, outputting calibration completion information.

Description

标定方法及装置、电子设备、存储介质及程序产品Calibration method and device, electronic equipment, storage medium and program product
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开基于申请号为202011420092.0、申请日为2020年12月7日、申请名称为“标定方法及装置、电子设备及存储介质”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本公开。The present disclosure is based on the Chinese patent application with the application number of 202011420092.0, the application date of December 7, 2020, and the application name of "calibration method and device, electronic equipment and storage medium", and claims the priority of the Chinese patent application, the The entire contents of the Chinese patent application are hereby incorporated by reference into the present disclosure.
技术领域technical field
本申请涉及计算机视觉技术领域,特别是涉及一种标定方法及装置、电子设备、存储介质及程序产品。The present application relates to the field of computer vision technology, and in particular, to a calibration method and apparatus, electronic equipment, storage medium and program product.
背景技术Background technique
双目立体视觉(binocular stereo vision)是机器视觉的一种重要形式,它是基于视差原理并利用成像设备从不同的位置获取被测物体的两幅图像(下文将称为双目图像)。Binocular stereo vision is an important form of machine vision, which is based on the principle of parallax and uses an imaging device to obtain two images of the object to be measured (hereinafter referred to as binocular images) from different positions.
在一些应用场景中,需要从双目图像中确定对应同一物体的像素点区域,而在双目图像之间存在视差的情况下,从双目图像中确定对应同一物体的像素点区域的准确度低。因此,如何标定双目图像之间的视差具有非常重要的意义。In some application scenarios, it is necessary to determine the pixel area corresponding to the same object from the binocular image, and when there is parallax between the binocular images, the accuracy of determining the pixel area corresponding to the same object from the binocular image Low. Therefore, how to calibrate the disparity between binocular images is of great significance.
发明内容SUMMARY OF THE INVENTION
本申请提供一种标定方法及装置、电子设备、存储介质及程序产品。The present application provides a calibration method and device, an electronic device, a storage medium and a program product.
本申请提供了一种标定方法,所述方法包括:The application provides a calibration method, the method includes:
响应于接收到的标定触发指令,进入标定用户界面,所述标定用户界面包括热红外图像和第一人脸轮廓框;In response to the received calibration trigger instruction, enter a calibration user interface, where the calibration user interface includes a thermal infrared image and a first face contour frame;
响应于接收到移动所述第一人脸轮廓框的操作指令,按照所述操作指令移动所述第一人脸轮廓框;In response to receiving an operation instruction for moving the first human face outline frame, move the first human face outline frame according to the operation instruction;
在所述第一人脸轮廓框与所述热红外图像中的第一人脸区域重合的情况下,输出标定完成信息。When the first face contour frame coincides with the first face region in the thermal infrared image, the calibration completion information is output.
结合本申请任一实施方式,所述方法还包括:In conjunction with any embodiment of the present application, the method further includes:
响应于接收到标定完成的指令,在所述标定用户界面中显示所述第一人脸轮廓框与所述第一人脸区域的重合结果,其中,所述重合结果包括但不限于重合度,人脸额头区域。In response to receiving the instruction that the calibration is completed, display the coincidence result of the first face contour frame and the first face region in the calibration user interface, wherein the coincidence result includes but is not limited to the coincidence degree, The forehead area of the human face.
这样,在标定用户界面中显示人脸额头区域,可使用户获知人脸框中的额头区域与 热红外图像中的额头区域之间的重合度。这样,更有利于提升基于热红外图像和可见光图像得到的体温的准确度。In this way, displaying the face forehead area in the calibration user interface enables the user to know the degree of coincidence between the forehead area in the face frame and the forehead area in the thermal infrared image. In this way, it is more beneficial to improve the accuracy of body temperature obtained based on thermal infrared images and visible light images.
结合本申请任一实施方式,所述在所述标定用户界面中显示所述第一人脸轮廓框与所述第一人脸区域的重合结果之前,所述方法还包括:With reference to any embodiment of the present application, before displaying the coincidence result of the first face contour frame and the first face region in the calibration user interface, the method further includes:
获取可见光图像;Obtain visible light images;
对所述可见光图像进行人脸识别处理,得到参考像素点区域在所述可见光图像中的位置;所述参考像素点区域为所述可见光图像中与所述第一人脸区域对应的区域;Performing face recognition processing on the visible light image to obtain the position of the reference pixel point area in the visible light image; the reference pixel point area is the area corresponding to the first face area in the visible light image;
依据参考视差和所述参考像素点区域在所述可见光图像中的位置,确定所述第一人脸区域在所述热红外图像中的位置;所述参考视差为所述可见光图像与所述热红外图像之间的视差;According to the reference parallax and the position of the reference pixel area in the visible light image, determine the position of the first face region in the thermal infrared image; the reference parallax is the visible light image and the thermal infrared image. Parallax between infrared images;
依据所述第一人脸区域在所述热红外图像中的位置和终止位置,得到所述第一人脸轮廓框与所述第一人脸区域的重合结果;其中,所述终止位置是所述第一人脸轮廓框在所述标定用户界面中的位置。According to the position and termination position of the first face region in the thermal infrared image, the overlapping result of the first face contour frame and the first face region is obtained; wherein, the termination position is the the position of the first face contour frame in the calibration user interface.
这样,参考视差为可见光图像与热红外图像之间的视差。标定装置依据参考视差和参考像素点区域在可见光图像中的位置,可确定第一人脸区域在热红外图像中的位置。标定装置依据第一人脸区域在热红外图像中的位置和终止位置,可确定第一人脸轮廓框与热红外图像中的第一人脸区域之间的面积重合度,作为重合结果。In this way, the reference parallax is the parallax between the visible light image and the thermal infrared image. The calibration device can determine the position of the first face region in the thermal infrared image according to the reference parallax and the position of the reference pixel point region in the visible light image. The calibration device can determine the area coincidence degree between the first face contour frame and the first face region in the thermal infrared image according to the position and termination position of the first face region in the thermal infrared image, as the coincidence result.
结合本申请任一实施方式,所述响应于接收到移动所述第一人脸轮廓框的操作指令,按照所述操作指令移动所述第一人脸轮廓框,包括:With reference to any embodiment of the present application, in response to receiving an operation instruction for moving the first face contour frame, moving the first face contour frame according to the operation instruction includes:
在检测到物体在所述用户界面上滑动的移动指令的情况下,沿所述物体在所述用户界面上的滑动方向移动所述第一人脸轮廓框。In the case of detecting the movement instruction of the object sliding on the user interface, the first face contour frame is moved along the sliding direction of the object on the user interface.
这样,标定装置在检测到移动指令的情况下,可以沿物体在用户界面上的滑动方向移动第一人脸轮廓框。In this way, when the calibration device detects the movement instruction, the first face contour frame can be moved along the sliding direction of the object on the user interface.
结合本申请任一实施方式,所述标定方法应用于标定装置;With reference to any embodiment of the present application, the calibration method is applied to a calibration device;
在所述响应于接收到移动所述第一人脸轮廓框的操作指令,按照所述操作指令移动所述第一人脸轮廓框之前,所述方法还包括:Before moving the first face contour frame according to the operation instruction in response to receiving the operation instruction for moving the first face contour frame, the method further includes:
在所述标定用户界面中显示至少一个虚拟方向按钮;所述至少一个虚拟方向按钮包括以下至少一个:向上虚拟按钮、向下虚拟按钮、向左虚拟按钮、向右虚拟按钮;Displaying at least one virtual direction button in the calibration user interface; the at least one virtual direction button includes at least one of the following: an up virtual button, a down virtual button, a left virtual button, and a right virtual button;
所述响应于接收到移动所述第一人脸轮廓框的操作指令,按照所述操作指令移动所述第一人脸轮廓框,包括:The moving the first human face outline frame according to the operation instruction in response to receiving the operation instruction for moving the first human face outline frame includes:
在检测到物体通过所述标定装置的屏幕触摸所述至少一个虚拟方向按钮的情况下,依据被触摸的所述虚拟方向按钮所指示的方向移动所述人脸框。When it is detected that an object touches the at least one virtual direction button through the screen of the calibration device, the face frame is moved according to the direction indicated by the touched virtual direction button.
这样,用户通过触摸虚拟方向按钮可控制第一人脸轮廓框的移动,进而使第一人脸轮廓框与热红外图像中的第一人脸区域重合。In this way, the user can control the movement of the first face contour frame by touching the virtual direction button, so that the first face contour frame and the first face area in the thermal infrared image are overlapped.
结合本申请任一实施方式,所述第一人脸轮廓框依据至少一个参考第一人脸轮廓框 得到;所述至少一个参考第一人脸轮廓框通过对至少一张人脸图像进行人脸检测处理得到;所述至少一张人脸图像的采集条件均为实际采集条件;所述实际采集条件为所述标定装置的应用环境下的图像采集条件。In combination with any of the embodiments of the present application, the first face contour frame is obtained according to at least one reference first face contour frame; the at least one reference first face contour frame is obtained by performing face analysis on at least one face image. The acquisition conditions of the at least one face image are all actual acquisition conditions; and the actual acquisition conditions are image acquisition conditions under the application environment of the calibration device.
这样,在至少一张人脸图像的采集条件与实际采集条件相同的情况下,依据至少一个第一人脸轮廓框得到的第一人脸轮廓框,与标定装置在实际采集条件下对人脸进行拍摄得到的第一人脸轮廓框更接近,进而可提高可见光图像与热红外图像之间的标定准确度。In this way, in the case where the acquisition conditions of at least one face image are the same as the actual acquisition conditions, the first face contour frame obtained according to the at least one first face contour frame is compared with the calibration device under the actual acquisition conditions for the human face The first face contour frame obtained by shooting is closer, thereby improving the calibration accuracy between the visible light image and the thermal infrared image.
结合本申请任一实施方式,所述方法还包括:In conjunction with any embodiment of the present application, the method further includes:
在接收到重置所述第一人脸轮廓框的指令的情况下,将所述第一人脸轮廓框重置于初始位置。In the case of receiving an instruction to reset the first human face outline frame, the first human face outline frame is reset to an initial position.
这样,用户可通过向标定装置输入重置第一人脸轮廓框的指令,使第一人脸轮廓框重新回到初始位置。In this way, the user can return the first face contour frame to the initial position by inputting an instruction to reset the first face contour frame to the calibration device.
结合本申请任一实施方式,所述第一人脸轮廓框包括至少一个人脸关键点;With reference to any embodiment of the present application, the first face contour frame includes at least one face key point;
所述第一人脸轮廓框与所述热红外图像中的第一人脸区域重合包括:所述第一人脸轮廓框与所述第一人脸区域的边界重合以及所述至少一个人脸关键点与所述第一人脸区域中对应的人脸关键点重合。The overlapping of the first face contour frame with the first face region in the thermal infrared image includes: the first face contour frame and the boundary of the first face region overlapping and the at least one face The key points coincide with the corresponding face key points in the first face region.
这样,用户在判断第一人脸轮廓框与热红外图像中的第一人脸区域是否重合时,不仅可将第一人脸轮廓框中的人脸轮廓与第一人脸区域的边界是否重合作为判断依据,还可将第一人脸轮廓框中的至少一个人脸关键点与第一人脸区域中对应的人脸关键点是否重合作为判断依据。In this way, when judging whether the first face contour frame coincides with the first face area in the thermal infrared image, the user can not only check whether the face contour in the first face contour frame coincides with the boundary of the first face area As a judgment basis, whether at least one face key point in the first face outline frame and a corresponding face key point in the first face area overlap can also be used as a judgment basis.
结合本申请任一实施方式,所述标定用户界面还包括与所述第一区域不同的第二显示区域,所述方法还包括:With reference to any embodiment of the present application, the calibration user interface further includes a second display area different from the first area, and the method further includes:
在所述第二显示区域内显示所述第一人脸轮廓框与所述第一人脸区域的重合效果预览图;所述重合效果预览图包括第二人脸轮廓框与所述第二人脸区域的重合效果图;所述第二人脸轮廓框内标记有测温区域;所述第二人脸轮廓框在所述第二显示区域内的位置与所述第一人脸轮廓框在所述第一显示区域内的位置对应;所述第二人脸区域与所述第一人脸区域对应。A preview image of the overlapping effect between the first human face outline frame and the first human face area is displayed in the second display area; the overlapping effect preview image includes the second human face outline frame and the second human face. The overlapping effect diagram of the face area; the temperature measurement area is marked in the second face contour frame; the position of the second face contour frame in the second display area and the first face contour frame are in The positions in the first display area correspond; the second face area corresponds to the first face area.
这样,第二人脸区域与第一人脸区域对应,即在重合效果预览图中,第二人脸区域为第一人脸区域的预览图,在移动第一人脸轮廓框的过程中,通过重合效果预览图显示测温区域的位置。这样,用户可获知热红外成像设备在采集热红外图像时,对测温对象的哪个部位进行测温。In this way, the second face area corresponds to the first face area, that is, in the overlap effect preview image, the second face area is the preview image of the first face area, and in the process of moving the first face outline frame, The position of the temperature measurement area is displayed through the overlay effect preview. In this way, the user can know which part of the temperature measurement object is to be measured by the thermal infrared imaging device when collecting the thermal infrared image.
结合本申请任一实施方式,所述在所述第一人脸轮廓框与所述热红外图像中的第一人脸区域重合的情况下,输出标定完成信息之前,所述方法还包括:With reference to any of the embodiments of the present application, in the case that the first face contour frame is coincident with the first face region in the thermal infrared image, before outputting the calibration completion information, the method further includes:
响应于接收到针对所述热红外图像和所述第一人脸框的放大指令,按照所述放大指令放大所述热红外图像和所述第一人脸框;in response to receiving an enlargement instruction for the thermal infrared image and the first face frame, enlarging the thermal infrared image and the first face frame according to the enlargement instruction;
响应于接收到针对所述热红外图像和所述第一人脸框的缩小指令,按照所述缩小指令放大所述热红外图像和所述第一人脸框。In response to receiving a zoom-out instruction for the thermal infrared image and the first face frame, the thermal infrared image and the first face frame are enlarged according to the zoom-out instruction.
这样,用户通过向标定装置输入放大指令或缩小指令,以更好的观察第一人脸框与第一人脸区域之间的重合效果。In this way, the user can better observe the overlapping effect between the first face frame and the first face region by inputting a zoom-in command or a zoom-out command to the calibration device.
在一些实施例中,本申请还提供了一种标定装置,所述标定装置包括:In some embodiments, the present application also provides a calibration device, the calibration device comprising:
第一处理单元,配置为响应于接收到的标定触发指令,进入标定用户界面,所述标定用户界面包括热红外图像和第一人脸轮廓框;a first processing unit, configured to enter a calibration user interface in response to the received calibration trigger instruction, and the calibration user interface includes a thermal infrared image and a first face outline frame;
第二处理单元,配置为响应于接收到移动所述第一人脸轮廓框的操作指令,按照所述操作指令移动所述第一人脸轮廓框;a second processing unit, configured to, in response to receiving an operation instruction for moving the first face outline frame, move the first face outline frame according to the operation instruction;
输出单元,配置为在所述第一人脸轮廓框与所述热红外图像中的第一人脸区域重合的情况下,输出标定完成信息。The output unit is configured to output calibration completion information when the first face contour frame coincides with the first face region in the thermal infrared image.
在一些实施例中,本申请还提供了一种电子设备,包括:处理器和存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,在所述处理器执行所述计算机指令的情况下,所述电子设备执行如上述第一方面及其任意一种可能实现的方式的方法。In some embodiments, the present application also provides an electronic device, comprising: a processor and a memory, the memory is used to store computer program code, the computer program code includes computer instructions, and the processor executes the In the case of computer instructions, the electronic device performs the method of the first aspect and any one of possible implementations thereof.
在一些实施例中,本申请还提供了另一种电子设备,包括:处理器、发送装置、输入装置、输出装置和存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,在所述处理器执行所述计算机指令的情况下,所述电子设备执行如上述第一方面及其任意一种可能实现的方式的方法。In some embodiments, the present application also provides another electronic device, including: a processor, a sending device, an input device, an output device, and a memory, the memory being used to store computer program code, the computer program code comprising a computer Instructions, when the processor executes the computer instructions, the electronic device executes the method according to the first aspect and any one of possible implementations thereof.
在一些实施例中,本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序包括程序指令,在所述程序指令被处理器执行的情况下,使所述处理器执行如上述第一方面及其任意一种可能实现的方式的方法。In some embodiments, the present application also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, the computer program includes program instructions, and the program instructions are executed by a processor. In this case, the processor is caused to execute the method according to the first aspect and any one of possible implementations thereof.
在一些实施例中,本申请还提供了一种计算机程序产品,所述计算机程序产品包括计算机程序或指令,在所述计算机程序或指令在计算机上运行的情况下,使得所述计算机执行上述第一方面及其任一种可能的实现的方式的方法。In some embodiments, the present application also provides a computer program product, the computer program product includes a computer program or instructions, when the computer program or instructions are run on a computer, the computer is caused to execute the above-mentioned first step. A method of an aspect and any possible manner of implementation thereof.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本申请。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
附图说明Description of drawings
为了更清楚地说明本申请实施例或背景技术中的技术方案,下面将对本申请实施例或背景技术中所需要使用的附图进行说明。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the accompanying drawings required in the embodiments or the background technology of the present application will be described below.
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本申请的实施例,并与说明书一起用于说明本申请的技术方案。The accompanying drawings, which are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the description, serve to explain the technical solutions of the present application.
图1为本申请实施例提供的一种标定方法的流程示意图;1 is a schematic flowchart of a calibration method provided in an embodiment of the present application;
图2为本申请实施例提供的一种第一人脸轮廓框示意图;2 is a schematic diagram of a first face contour frame provided by an embodiment of the present application;
图3为本申请实施例提供的一种标定用户界面示意图;3 is a schematic diagram of a calibration user interface provided by an embodiment of the present application;
图4为本申请实施例提供的一种标定装置的结构示意图;4 is a schematic structural diagram of a calibration device provided by an embodiment of the present application;
图5为本申请实施例提供的一种标定装置的硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of a calibration apparatus provided by an embodiment of the present application.
实施方式Implementation
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
应当理解,在本申请中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上,“至少两个(项)”是指两个或三个及三个以上,“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”可表示前后关联对象是一种“或”的关系,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。字符“/”还可表示数学运算中的除号,例如,a/b=a除以b;6/3=2。“以下至少一项(个)”或其类似表达。It should be understood that in this application, "at least one (item)" refers to one or more, "multiple" refers to two or more, and "at least two (item)" refers to two or three And three or more, "and/or" is used to describe the association relationship of related objects, indicating that three kinds of relationships can exist, for example, "A and/or B" can mean: only A exists, only B exists, and A exists at the same time and B three cases, where A, B can be singular or plural. The character "/" can indicate that the related objects are an "or" relationship, which refers to any combination of these items, including any combination of a single item (a) or a plurality of items (a). For example, at least one (a) of a, b or c, can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c" ", where a, b, c can be single or multiple. The character "/" can also represent a division sign in a mathematical operation, eg, a/b=a divided by b; 6/3=2. "At least one (a) of the following" or similar expressions thereof.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
众所周知,人在患病的时候,易出现体温异常的情况,因此,人的体温可作为判断人是否需要进一步确定是否患病的依据。而在某些特殊情况下,人与人之间需要保持一个安全距离,这就导致无法通过接触式测量的方式测量人的体温。As we all know, people are prone to abnormal body temperature when they are sick. Therefore, a person's body temperature can be used as a basis for judging whether a person needs to be further determined to be sick. In some special cases, it is necessary to maintain a safe distance between people, which makes it impossible to measure people's body temperature through contact measurement.
例如,呼吸道传染病具有易传染的特点,当患有呼吸道传染病的人出现在公共场所或人群中时,可能对社会安全造成较大的危害(如新冠肺炎的传播对人类安全的危害)。 为降低呼吸道传染病的传播效率,可减少人与人之间的近距离接触。此时,不宜通过接触式测量的方式测量人的体温。For example, respiratory infectious diseases are easily contagious. When people with respiratory infectious diseases appear in public places or crowds, they may cause greater harm to social security (such as the harm to human safety caused by the spread of new coronary pneumonia). In order to reduce the transmission efficiency of respiratory infectious diseases, close contact between people can be reduced. At this time, it is not appropriate to measure people's body temperature by means of contact measurement.
在无法通过接触式测量的方式测量人的体温的情况下,就只能通过非接触式测量的方式来测量人的体温了。目前的非接触测量方式的做法是,测温终端使用红绿蓝(Red Green Blue,RGB)摄像头和热成像(Infrared Radiation,IR)摄像头分别对待测量对象的人脸进行拍摄,得到一张RGB图像和一张温度热力图。测温终端通过对RGB图像进行人脸检测处理,从RGB图像中确定第一人脸区域,再从温度热力图中确定与该第一人脸区域对应的像素点区域,作为目标像素点区域。测温终端依据目标像素点区域的温度,得到待测量对象的体温。In the case where the body temperature of a person cannot be measured by means of contact measurement, the body temperature of a person can only be measured by means of non-contact measurement. The current method of non-contact measurement is that the temperature measurement terminal uses a Red Green Blue (RGB) camera and a thermal imaging (Infrared Radiation, IR) camera to shoot the face of the object to be measured, and obtain an RGB image. and a temperature heatmap. The temperature measurement terminal determines the first face area from the RGB image by performing face detection processing on the RGB image, and then determines the pixel area corresponding to the first face area from the temperature heat map as the target pixel area. The temperature measurement terminal obtains the body temperature of the object to be measured according to the temperature of the target pixel area.
由于RGB摄像头的安装位置与热成像摄像头的安装位置不同,待测量对象的人脸在RGB图像中的位置与待测量对象的人脸在温度热力图中的位置不同。这样,测温终端从温度热力图中确定的目标像素点区域与待测量对象的第一人脸区域之间可能存在偏差,进而导致得到的待测量对象的体温不准确。Since the installation position of the RGB camera is different from that of the thermal imaging camera, the position of the face of the object to be measured in the RGB image is different from the position of the face of the object to be measured in the temperature heat map. In this way, there may be a deviation between the target pixel area determined by the temperature measurement terminal from the temperature heat map and the first face area of the object to be measured, which in turn leads to inaccurate body temperature of the object to be measured.
基于此,本申请实施例提供了一种标定方法,以确定RGB摄像头与热成像摄像头之间的位移差,从而提高待测量对象的体温的准确度。Based on this, the embodiment of the present application provides a calibration method to determine the displacement difference between the RGB camera and the thermal imaging camera, so as to improve the accuracy of the body temperature of the object to be measured.
本申请实施例的执行主体为标定装置。在本申请的一些实施例中,标定装置可以是以下中的一种:手机、计算机、服务器、平板电脑。下面结合本申请实施例中的附图对本申请实施例进行描述。The execution body of the embodiment of the present application is a calibration device. In some embodiments of the present application, the calibration device may be one of the following: a mobile phone, a computer, a server, and a tablet computer. The embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
请参阅图1,图1是本申请实施例提供的一种标定方法的流程示意图。Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a calibration method provided by an embodiment of the present application.
101、响应于接收到的标定触发指令,进入标定用户界面。101. In response to the received calibration trigger instruction, enter a calibration user interface.
本申请实施例中,标定触发指令用于指示标定装置启动标定程序。在本申请的一些实施例中,标定装置与显示器之间具有通信连接,标定装置通过该通信连接在显示器上显示是否启动标定程序的信息框。用户可通过该信息框向标定装置输入标定触发指令。In the embodiment of the present application, the calibration trigger instruction is used to instruct the calibration device to start the calibration procedure. In some embodiments of the present application, there is a communication connection between the calibration device and the display, and the calibration device displays an information box on the display whether to start the calibration program through the communication connection. The user can input a calibration trigger command to the calibration device through this information box.
例如,该信息框包括启动标定程序和不启动标定程序。用户通过点击启动标定程序可向标定装置输入标定触发指令。For example, the information box includes starting the calibration procedure and not starting the calibration procedure. The user can input a calibration trigger command to the calibration device by clicking to start the calibration procedure.
在本申请的一些实施例中,用户通过向标定装置输入携带启动标定程序信息的语音数据,向标定装置输入标定触发指令。In some embodiments of the present application, the user inputs a calibration trigger instruction to the calibration device by inputting voice data carrying the information of starting the calibration program to the calibration device.
在本申请的一些实施例中,标定装置接收标定触发指令可以是,标定装置接收终端发送的标定触发指令。在本申请的一些实施例中,终端可以是以下任意一种:手机、计算机、平板电脑、服务器、可穿戴设备。In some embodiments of the present application, the reception of the calibration trigger instruction by the calibration apparatus may be that the calibration apparatus receives the calibration trigger instruction sent by the terminal. In some embodiments of the present application, the terminal may be any one of the following: a mobile phone, a computer, a tablet computer, a server, and a wearable device.
响应于接收到的标定触发指令,标定装置进入标定用户界面,以进行接下来的标定处理。在本申请的一些实施例中,标定装置进入标定用户界面可以是在接收到标定触发指令后,切换到用户界面。In response to the received calibration trigger instruction, the calibration device enters the calibration user interface to perform the next calibration process. In some embodiments of the present application, when the calibration device enters the calibration user interface, it may switch to the user interface after receiving the calibration trigger instruction.
102、响应于接收到移动第一人脸轮廓框的操作指令,按照上述操作指令移动上述第一人脸轮廓框。102. In response to receiving an operation instruction for moving the first human face outline frame, move the above-mentioned first human face outline frame according to the above-mentioned operation instruction.
本申请实施例中,标定用户界面包括第一显示区域,第一显示区域包括热红外图像和第一人脸轮廓框。其中,第一显示区域可以是标定用户界面中的一部分区域,第一显示区域也可以是标定用户界面的全部区域。In the embodiment of the present application, the calibration user interface includes a first display area, and the first display area includes a thermal infrared image and a first face outline frame. Wherein, the first display area may be a part of the area of the calibration user interface, and the first display area may also be the entire area of the calibration user interface.
本申请实施例中,第一人脸轮廓框可以是图2所示的人脸轮廓。在本申请的一些实施例中,标定装置在执行步骤102之前,获取第一人脸轮廓框。在一种获取第一人脸轮廓框的实现方式中,标定装置接收用户通过输入组件输入的第一人脸轮廓框。在本申请的一些实施例中,上述输入组件包括:键盘、鼠标、触控屏、触控板和音频输入器等。In this embodiment of the present application, the first face contour frame may be the face contour shown in FIG. 2 . In some embodiments of the present application, before performing step 102, the calibration apparatus obtains the first face contour frame. In an implementation manner of acquiring the first face contour frame, the calibration device receives the first face contour frame input by the user through the input component. In some embodiments of the present application, the above-mentioned input components include: a keyboard, a mouse, a touch screen, a touch pad, an audio input, and the like.
在另一种获取第一人脸轮廓框的实现方式中,标定装置接收终端发送的第一人脸轮廓框。In another implementation manner of acquiring the first face contour frame, the calibration device receives the first face contour frame sent by the terminal.
本申请实施例中,第一人脸轮廓框在标定用户界面中的初始位置是固定的。即标定装置响应于接收到标定触发指令,显示标定用户界面,并在标定用户界面中的初始位置显示第一人脸轮廓框。In this embodiment of the present application, the initial position of the first face contour frame in the calibration user interface is fixed. That is, the calibration device displays the calibration user interface in response to receiving the calibration trigger instruction, and displays the first face contour frame at the initial position in the calibration user interface.
本申请实施例中,移动第一人脸轮廓框的操作指令用于,指示标定装置在标定用户界面移动第一人脸轮廓框。In the embodiment of the present application, the operation instruction for moving the first face contour frame is used to instruct the calibration device to move the first face contour frame on the calibration user interface.
在本申请的一些实施例中,用户通过输入组件向标定装置输入移动第一人脸轮廓框的操作指令,以使标定装置按照该操作指令移动第一人脸轮廓框。例如,用户通过输入组件向标定装置输入将第一人脸轮廓框向左移动10个像素点单位的操作指令,标定装置在接收到操作指令的情况下,在标定用户界面中将第一人脸轮廓框向左移动10个像素点单位。In some embodiments of the present application, the user inputs an operation instruction for moving the first face contour frame to the calibration apparatus through the input component, so that the calibration apparatus moves the first face contour frame according to the operation instruction. For example, the user inputs an operation instruction to the calibration device through the input component to move the first face outline frame to the left by 10 pixel point units. When the calibration device receives the operation instruction, the first human face will be displayed in the calibration user interface. The outline box is moved to the left by 10 pixel units.
103、在上述第一人脸轮廓框与上述热红外图像中的第一人脸区域重合的情况下,输出标定完成信息。103. In a case where the first face contour frame overlaps with the first face region in the thermal infrared image, output calibration completion information.
本申请实施例中,热红外图像即为上述热成像设备采集得到的人脸图像。在本申请的一些实施例中,标定装置在进入标定用户界面后,还在标定用户界面中显示热红外图像。In the embodiment of the present application, the thermal infrared image is the face image collected by the above thermal imaging device. In some embodiments of the present application, after the calibration device enters the calibration user interface, the thermal infrared image is also displayed in the calibration user interface.
本申请实施例中,第一人脸轮廓框在标定用户界面中的初始位置为,在将可见光图像显示于标定用户界面中的情况下,第一人脸区域在可见光图像中的位置。例如,可见光图像包括第一人脸区域a。将可见光图像显示于标定用户界面中,第一人脸区域a在可见光图像中的位置为A。In the embodiment of the present application, the initial position of the first face contour frame in the calibration user interface is the position of the first face region in the visible light image when the visible light image is displayed in the calibration user interface. For example, the visible light image includes the first face area a. The visible light image is displayed in the calibration user interface, and the position of the first face region a in the visible light image is A.
本申请实施例中,热红外图像与可见光图像为双目图像,即热红外图像与可见光图像为不同成像设备在同一时间对同一个人脸进行拍摄得到的两张图像,其中,采集可见光图像的成像设备为可见光成像设备。在本申请的一些实施例中,可见光成像设备为RGB成像设备。In the embodiment of the present application, the thermal infrared image and the visible light image are binocular images, that is, the thermal infrared image and the visible light image are two images obtained by photographing the same face by different imaging devices at the same time. The device is a visible light imaging device. In some embodiments of the present application, the visible light imaging device is an RGB imaging device.
例如,测温终端包括RGB摄像头和IR摄像头。测温终端使用RGB摄像头对张三的人脸进行拍摄得到RGB图像,并在使用RGB摄像头采集RGB图像的同时,使用IR摄像头对张三的人脸进行拍摄得到热红外图像。For example, the temperature measurement terminal includes an RGB camera and an IR camera. The temperature measurement terminal uses an RGB camera to photograph Zhang San's face to obtain an RGB image, and while using the RGB camera to collect the RGB image, uses an IR camera to photograph Zhang San's face to obtain a thermal infrared image.
由于可见光成像设备的安装位置与热红外成像设备的安装位置不同,待测量对象的人脸在可见光图像中的位置与待测量对象的人脸在热红外图像中的位置不同。因此,在基于可见光图像和热红外图像,确定待测量对象的体温之前,需通过对可见光图像和热红外图像进行标定,得到可见光图像与热红外图像之间的视差。Since the installation position of the visible light imaging device is different from that of the thermal infrared imaging device, the position of the face of the object to be measured in the visible light image is different from the position of the face of the object to be measured in the thermal infrared image. Therefore, before determining the body temperature of the object to be measured based on the visible light image and the thermal infrared image, the parallax between the visible light image and the thermal infrared image needs to be obtained by calibrating the visible light image and the thermal infrared image.
由于第一人脸轮廓框在标定用户界面中的初始位置为,可光图像中的第一人脸区域在可见光图像中的位置,通过移动第一人脸轮廓框使第一人脸轮廓框与热红外图像中的第一人脸区域重合,即可完成可见光图像与热红外图像之间的标定。Since the initial position of the first face contour frame in the calibration user interface is the position of the first face area in the visible light image in the visible light image, by moving the first face contour frame, the first face contour frame and the When the first face area in the thermal infrared image is coincident, the calibration between the visible light image and the thermal infrared image can be completed.
例如,若标定装置通过将第一人脸轮廓框在标定用户界面向右移动5个像素点单位,得到第一人脸轮廓框与热红外图像中的第一人脸区域重合。那么说明,将可见光图像向标定用户界面的右侧移动5个像素点单位,可使可见光图像与热红外图像重合。即可见光图像与热红外图像之间的视差为5个像素点单位。For example, if the calibration device moves the first face contour frame to the right by 5 pixel point units on the calibration user interface, it is obtained that the first face contour frame coincides with the first face region in the thermal infrared image. Then it can be explained that moving the visible light image to the right side of the calibration user interface by 5 pixel point units can make the visible light image and the thermal infrared image overlap. That is, the parallax between the visible light image and the thermal infrared image is 5 pixel units.
标定装置在确定第一人脸轮廓框与热红外图像中的第一人脸区域重合的情况下,输出标定完成信息,得到告知用户已完成热红外图像与可见光图像之间的标定。When it is determined that the first face contour frame coincides with the first face region in the thermal infrared image, the calibration device outputs calibration completion information to inform the user that the calibration between the thermal infrared image and the visible light image has been completed.
在本申请的一些实施例中,标定装置与显示器之间具有通信连接。标定装置通过该通信连接使显示器输出标定完成信息。In some embodiments of the present application, there is a communication connection between the calibration device and the display. The calibration device makes the display output calibration completion information through the communication connection.
例如,标定装置可在标定用户界面中显示标定完成信息;又例如,标定装置可将标定用户界面切换成另一个界面,并在切换后的界面中显示标定完成信息。For example, the calibration device may display the calibration completion information in the calibration user interface; for another example, the calibration device may switch the calibration user interface to another interface, and display the calibration completion information in the switched interface.
在本申请的一些实施例中,标定装置可通过输出语音数据输出标定完成信息。In some embodiments of the present application, the calibration device may output calibration completion information by outputting voice data.
在本申请的一些实施例中,标定装置可通过控制提示灯闪烁输出标定完成信息。In some embodiments of the present application, the calibration device may output calibration completion information by controlling the prompt light to flash.
本申请实施例中,标定装置在确定第一人脸轮廓框与热红外图像中的第一人脸区域重合的情况下,确定完成可见光图像与热红外图像之间的标定。In the embodiment of the present application, the calibration device determines to complete the calibration between the visible light image and the thermal infrared image when it is determined that the first face contour frame coincides with the first face region in the thermal infrared image.
基于本申请实施例提供的技术方案,标定装置可对标定用户界面进行显示,这样,用户可通过移动人脸框,确定人脸框是否与热红外图像中的第一人脸区域重合,进而可完成可见光图像与热红外图像之间的标定,从而降低用户得到可见光图像和热红外图像之间的视差的操作复杂度。Based on the technical solutions provided by the embodiments of the present application, the calibration device can display the calibration user interface, so that the user can move the face frame to determine whether the face frame overlaps with the first face area in the thermal infrared image, and then can The calibration between the visible light image and the thermal infrared image is completed, thereby reducing the operational complexity for the user to obtain the parallax between the visible light image and the thermal infrared image.
在本申请的一些实施例中,标定装置还执行以下步骤:In some embodiments of the present application, the calibration device further performs the following steps:
1、在上述第一人脸轮廓框与上述热红外图像中的第一人脸区域重合的情况下,将上述第一人脸轮廓框在上述界面中的位置作为终止位置。1. In the case that the first face contour frame and the first face region in the thermal infrared image overlap, the position of the first face contour frame in the interface is taken as the termination position.
2、确定上述第一人脸轮廓框在上述界面中的初始位置与上述终止位置之间的位移差,作为上述热红外图像和可见光图像之间的视差。2. Determine the displacement difference between the initial position of the first face outline frame in the interface and the termination position as the parallax between the thermal infrared image and the visible light image.
本申请实施例中,同名点之间的视差指双目图像中互为同名点的两个像素点在各自图像中的位置之间的差异。In the embodiment of the present application, the disparity between the points with the same name refers to the difference between the positions of two pixels with the same name in the binocular image in the respective images.
本申请实施例中,双目图像之间的视差为依据双目图像中所有同名点之间的视差得到的视差。在本申请的一些实施例中,将双目图像中所有同名点之间的视差的均值作为 双目图像之间的视差。In the embodiment of the present application, the disparity between the binocular images is the disparity obtained according to the disparity between all points with the same name in the binocular images. In some embodiments of the present application, the average value of the disparity between all points with the same name in the binocular image is used as the disparity between the binocular images.
本申请实施例中,标定装置通过确定位移差,得到可见光图像和热红外图像之间的视差,从而减少标定装置得到可见光图像和热红外图像之间的视差的数据处理量,以及降低用户得到可见光图像和热红外图像之间的视差的操作复杂度。In the embodiment of the present application, the calibration device obtains the parallax between the visible light image and the thermal infrared image by determining the displacement difference, thereby reducing the amount of data processing required by the calibration device to obtain the parallax between the visible light image and the thermal infrared image, and reducing the amount of visible light obtained by the user. Operational complexity of parallax between image and thermal infrared image.
在本申请的一些实施例中,标定装置还执行以下步骤:In some embodiments of the present application, the calibration device further performs the following steps:
3、响应于接收到标定完成的指令,在上述第一显示区域中显示上述第一人脸轮廓框与上述第一人脸区域的重合结果。3. In response to receiving the calibration completion instruction, display the coincidence result of the first face contour frame and the first face region in the first display area.
本申请实施例中,重合结果包括但不限于重合度,人脸额头区域。其中,重合度可以是以下中的一种:数值、第一人脸轮廓框与热红外图像中的第一人脸区域之间的重合效果图。In the embodiment of the present application, the coincidence result includes but is not limited to the coincidence degree and the forehead area of the human face. The degree of coincidence may be one of the following: a numerical value, a coincidence effect diagram between the first face contour frame and the first face region in the thermal infrared image.
人脸额头区域指第一人脸轮廓框中的人脸额头区域。由于在基于可见光图像和热红外图像测量人的体温的情况下,通常通过测量人的额头的温度确定人的体温。因此,在标定用户界面中显示人脸额头区域,可使用户获知人脸框中的额头区域与热红外图像中的额头区域之间的重合度。这样,更有利于提升基于热红外图像和可见光图像得到的体温的准确度。The face forehead area refers to the face forehead area in the first face outline frame. Since the body temperature of a person is measured based on a visible light image and a thermal infrared image, the body temperature of a person is usually determined by measuring the temperature of a person's forehead. Therefore, displaying the face forehead region in the calibration user interface enables the user to know the degree of coincidence between the forehead region in the face frame and the forehead region in the thermal infrared image. In this way, it is more beneficial to improve the accuracy of the body temperature obtained based on the thermal infrared image and the visible light image.
在本申请的一些实施例中,标定装置在执行在标定用户界面中显示第一人脸轮廓框与第一人脸区域的重合结果之前,还执行以下步骤:In some embodiments of the present application, the calibration device further performs the following steps before displaying the coincidence result between the first face contour frame and the first face region in the calibration user interface:
4、获取可见光图像。4. Obtain visible light images.
如上所述,可见光图像与热红外图像为双目图像。在一种获取可见光图像的实现方式中,标定装置接收用户通过输入组件输入的可见光图像。As mentioned above, the visible light image and the thermal infrared image are binocular images. In an implementation manner of acquiring the visible light image, the calibration device receives the visible light image input by the user through the input component.
在另一种获取可见光图像的实现方式中,标定装置接收终端发送的可见光图像。In another implementation manner of acquiring the visible light image, the calibration device receives the visible light image sent by the terminal.
在又一种获取可见光图像的实现方式中,标定装置装载有可见光成像设备。标定装置使用可见光成像设备采集可见光图像。In yet another implementation manner of acquiring a visible light image, the calibration device is loaded with a visible light imaging device. The calibration device uses visible light imaging equipment to collect visible light images.
5、对上述可见光图像进行人脸识别处理,得到参考像素点区域在上述可见光图像中的位置。5. Perform face recognition processing on the visible light image to obtain the position of the reference pixel area in the visible light image.
本申请实施例中,参考像素点区域为可见光图像中与第一人脸区域对应的区域。即参考像素点区域与热红外图像中的第一人脸区域对应同一个人的人脸。In this embodiment of the present application, the reference pixel area is an area corresponding to the first face area in the visible light image. That is, the reference pixel area corresponds to the face of the same person as the first face area in the thermal infrared image.
标定装置通过对可见光图像进行人脸识别处理,可确定可见光图像中的第一人脸区域的位置。在可见光图像中包含1个第一人脸区域的情况下,标定装置将可见光图像中的第一人脸区域作为参考像素点区域。在可见光图像中包含的第一人脸区域超过1的情况下,标定装置将面积最大的第一人脸区域作为参考像素点区域。The calibration device can determine the position of the first face region in the visible light image by performing face recognition processing on the visible light image. When the visible light image includes one first face region, the calibration device uses the first face region in the visible light image as a reference pixel region. When the first face area included in the visible light image exceeds 1, the calibration device uses the first face area with the largest area as the reference pixel area.
6、依据参考视差和上述参考像素点区域在上述可见光图像中的位置,确定上述第一人脸区域在上述热红外图像中的位置;所述参考视差为所述可见光图像与所述热红外图像之间的视差。6. Determine the position of the first face region in the thermal infrared image according to the reference parallax and the position of the reference pixel area in the visible light image; the reference parallax is the visible light image and the thermal infrared image. parallax between.
本申请实施例中,参考视差为可见光图像与热红外图像之间的视差。标定装置依据 参考视差和参考像素点区域在可见光图像中的位置,可确定第一人脸区域在热红外图像中的位置。In this embodiment of the present application, the reference parallax is the parallax between the visible light image and the thermal infrared image. The calibration device can determine the position of the first face region in the thermal infrared image according to the reference parallax and the position of the reference pixel point region in the visible light image.
7、依据上述第一人脸区域在上述热红外图像中的位置和上述终止位置,得到上述第一人脸轮廓框与上述第一人脸区域的重合结果。7. According to the position of the first face region in the thermal infrared image and the termination position, the overlapping result of the first face contour frame and the first face region is obtained.
在本申请的一些实施例中,标定装置依据第一人脸区域在热红外图像中的位置和终止位置,可确定第一人脸轮廓框与热红外图像中的第一人脸区域之间的面积重合度,作为重合结果。In some embodiments of the present application, the calibration device may determine the distance between the first face contour frame and the first face region in the thermal infrared image according to the position and termination position of the first face region in the thermal infrared image. Area coincidence degree, as the coincidence result.
在本申请的一些实施例中,标定装置依据第一人脸区域在热红外图像中的位置和终止位置,可得到第一人脸轮廓框与热红外图像中的第一人脸区域之间的重合效果图,作为重合结果。In some embodiments of the present application, the calibration device can obtain the relationship between the first face contour frame and the first face region in the thermal infrared image according to the position and termination position of the first face region in the thermal infrared image. Coincidence effect map, as the coincidence result.
在本申请的一些实施例中,标定装置在执行步骤102的过程中执行以下步骤:In some embodiments of the present application, the calibration device performs the following steps in the process of performing step 102:
8、在检测到物体在上述用户界面上滑动的移动指令的情况下,沿上述物体在上述用户界面上的滑动方向移动上述第一人脸轮廓框。8. Move the first face contour frame along the sliding direction of the object on the user interface in the case of detecting the movement instruction of the object sliding on the user interface.
本步骤中,标定装置与触摸显示器之间具有通信连接。标定装置通过检测物体在触摸显示器上滑动操作,检测物体在用户界面上滑动的移动指令。In this step, there is a communication connection between the calibration device and the touch display. The calibration device detects the movement instruction of the object sliding on the user interface by detecting the sliding operation of the object on the touch display.
标定装置在检测到该移动指令的情况下,沿物体在用户界面上的滑动方向移动第一人脸轮廓框。例如,用户用手指在触摸显示器上滑动移动第一人脸轮廓框;又例如,用户用触控笔在触摸显示器上滑动移动第一人脸轮廓框。The calibration device moves the first face contour frame along the sliding direction of the object on the user interface when the movement instruction is detected. For example, the user slides a finger on the touch display to move the first human face outline frame; for another example, the user uses a stylus to slide and move the first human face outline frame on the touch display.
在本申请的一些实施例中,物体与触摸显示器接触的位置可位于第一人脸轮廓框上,物体与触摸显示器接触的位置也可不位于第一人脸轮廓框上。例如,在上述触摸显示器面积较大以致于用户难以单手操作的情况下,可将触摸显示器中用户手指可达区域(如触摸显示器左下角区域或右下角区域)作为控制区域,用户使用物体在控制区域内滑动可移动第一人脸轮廓框。In some embodiments of the present application, the position where the object contacts the touch display may be located on the first face contour frame, and the position where the object contacts the touch display may not be located on the first face contour frame. For example, in the case where the area of the above-mentioned touch display is so large that it is difficult for the user to operate with one hand, the user's finger-reachable area in the touch display (such as the area in the lower left corner or the lower right corner of the touch display) can be used as the control area, and the user can use objects in the Swipe in the control area to move the first face outline frame.
在本申请的一些实施例中,标定装置在执行步骤102之前还执行以下步骤:In some embodiments of the present application, before performing step 102, the calibration apparatus further performs the following steps:
9、在上述标定用户界面中显示至少一个虚拟方向按钮。9. Display at least one virtual direction button in the above calibration user interface.
本申请实施例中,至少一个虚拟方向按钮包括以下至少一个:向上虚拟按钮、向下虚拟按钮、向左虚拟按钮、向右虚拟按钮。In this embodiment of the present application, the at least one virtual direction button includes at least one of the following: an up virtual button, a down virtual button, a left virtual button, and a right virtual button.
虚拟方向按钮用于移动第一人脸轮廓框。例如,向上虚拟按钮被物体触摸,表征第一人脸轮廓框应该向标定用户界面上侧移动;向下虚拟按钮被物体触摸,表征第一人脸轮廓框应该向标定用户界面下侧移动;向左虚拟按钮被物体触摸,表征第一人脸轮廓框应该向标定用户界面左侧移动;向右虚拟按钮被物体触摸,表征第一人脸轮廓框应该向标定用户界面右侧移动。The virtual direction button is used to move the first face outline frame. For example, if the up virtual button is touched by an object, it means that the first face outline frame should move to the upper side of the calibration user interface; if the down virtual button is touched by an object, it means that the first face outline frame should move to the lower side of the calibration user interface; When the left virtual button is touched by an object, it indicates that the first face contour box should move to the left side of the calibration user interface; if the right virtual button is touched by an object, it indicates that the first face contour box should move to the right side of the calibration user interface.
在执行完步骤9之后,标定装置在执行步骤102的过程中执行一项步骤:After performing step 9, the calibration device performs a step in the process of performing step 102:
10、在检测到物体通过上述标定装置的屏幕触摸上述至少一个虚拟方向按钮的情况下,依据被触摸的上述虚拟方向按钮所指示的方向移动上述人脸框。10. When it is detected that an object touches the at least one virtual direction button through the screen of the calibration device, move the face frame according to the direction indicated by the touched virtual direction button.
在本申请的一些实施例中,标定装置在检测到物体触摸上述向上虚拟按钮的情况下,将上述第一人脸轮廓框向上述标定用户界面的上侧移动n个像素单位。In some embodiments of the present application, the calibration device moves the first face contour frame to the upper side of the calibration user interface by n pixel units when detecting that the object touches the upward virtual button.
在至少一个虚拟方向按钮包括向上虚拟按钮,且标定装置在检测到物体触摸向上虚拟按钮的情况下,将第一人脸轮廓框向标定用户界面上侧移动n个像素单位。n的取值可依据实际需求进行设置。When the at least one virtual direction button includes an up virtual button, and the calibration device detects that the object touches the up virtual button, the first face contour frame moves n pixel units to the upper side of the calibration user interface. The value of n can be set according to actual needs.
例如,若n=1,则物体触摸向上虚拟按钮一次,标定装置将第一人脸轮廓框向标定用户界面上侧移动1个像素单位;若n=3,则物体触摸向上虚拟按钮一次,标定装置将第一人脸轮廓框向标定用户界面上侧移动3个像素单位。For example, if n=1, the object touches the up virtual button once, and the calibration device moves the first face contour frame to the upper side of the calibration user interface by 1 pixel unit; if n=3, the object touches the up virtual button once, and the calibration The device moves the first face contour frame to the upper side of the calibration user interface by 3 pixel units.
在本申请的一些实施例中,标定装置在检测到物体触摸上述向下虚拟按钮的情况下,将上述第一人脸轮廓框向上述标定用户界面的下侧移动m个像素单位。In some embodiments of the present application, the calibration device moves the first face contour frame to the lower side of the calibration user interface by m pixel units when detecting that the object touches the downward virtual button.
在至少一个虚拟方向按钮包括向下虚拟按钮,且标定装置在检测到物体触摸向下虚拟按钮的情况下,将第一人脸轮廓框向标定用户界面下侧移动m个像素单位。m的取值可依据实际需求进行设置。When the at least one virtual direction button includes a down virtual button, and the calibration device detects that the object touches the down virtual button, the first face contour frame moves m pixel units to the lower side of the calibration user interface. The value of m can be set according to actual needs.
例如,响应于m=1,物体触摸向下虚拟按钮一次,标定装置将第一人脸轮廓框向标定用户界面下侧移动1个像素单位;响应于m=2,物体触摸向下虚拟按钮一次,标定装置将第一人脸轮廓框向标定用户界面下侧移动2个像素单位。For example, in response to m=1, the object touches the down virtual button once, the calibration device moves the first face contour frame to the lower side of the calibration user interface by 1 pixel unit; in response to m=2, the object touches the down virtual button once , the calibration device moves the first face contour frame to the lower side of the calibration user interface by 2 pixel units.
在本申请的一些实施例中,标定装置在检测到物体触摸上述向左虚拟按钮的情况下,将上述第一人脸轮廓框向上述标定用户界面的左侧移动i个像素单位。In some embodiments of the present application, the calibration device moves the first face contour frame to the left side of the calibration user interface by i pixel units when detecting that the object touches the left virtual button.
在至少一个虚拟方向按钮包括向左虚拟按钮,且标定装置在检测到物体触摸向左虚拟按钮的情况下,将第一人脸轮廓框向标定用户界面左侧移动i个像素单位。i的取值可依据实际需求进行设置。When the at least one virtual direction button includes a left virtual button, and the calibration device detects that the object touches the left virtual button, the first face contour frame moves i pixel units to the left of the calibration user interface. The value of i can be set according to actual needs.
例如,响应于i=1,物体触摸向左虚拟按钮一次,标定装置将第一人脸轮廓框向标定用户界面左侧移动1个像素单位;响应于i=2,物体触摸向左虚拟按钮一次,标定装置将第一人脸轮廓框向标定用户界面左侧移动2个像素单位。For example, in response to i=1, the object touches the left virtual button once, the calibration device moves the first face contour frame to the left side of the calibration user interface by 1 pixel unit; in response to i=2, the object touches the left virtual button once , the calibration device moves the first face contour frame to the left side of the calibration user interface by 2 pixel units.
在本申请的一些实施例中,标定装置在检测到物体触摸上述向右虚拟按钮的情况下,将上述第一人脸轮廓框向上述标定用户界面的右侧移动j个像素单位。In some embodiments of the present application, the calibration device moves the first face outline frame to the right side of the calibration user interface by j pixel units when detecting that the object touches the right virtual button.
在至少一个虚拟方向按钮包括向右虚拟按钮,且标定装置在检测到物体触摸向右虚拟按钮的情况下,将第一人脸轮廓框向标定用户界面右侧移动j个像素单位。j的取值可依据实际需求进行设置。When the at least one virtual direction button includes a right virtual button, and the calibration device detects that the object touches the right virtual button, the first face contour frame moves j pixel units to the right side of the calibration user interface. The value of j can be set according to actual needs.
例如,响应于j=1,物体触摸向右虚拟按钮一次,标定装置将第一人脸轮廓框向标定用户界面右侧移动1个像素单位;响应于j=2,物体触摸向右虚拟按钮一次,标定装置将第一人脸轮廓框向标定用户界面右侧移动2个像素单位。For example, in response to j=1, the object touches the right virtual button once, the calibration device moves the first face contour frame to the right side of the calibration user interface by 1 pixel unit; in response to j=2, the object touches the right virtual button once , the calibration device moves the first face contour frame to the right side of the calibration user interface by 2 pixel units.
用户通过触摸虚拟方向按钮可控制第一人脸轮廓框的移动,进而使第一人脸轮廓框与热红外图像中的第一人脸区域重合。The user can control the movement of the first face contour frame by touching the virtual direction button, so that the first face contour frame and the first face area in the thermal infrared image are overlapped.
在本申请的一些实施例中,第一人脸轮廓框依据至少一个参考第一人脸轮廓框得 到。至少一个参考第一人脸轮廓框通过对至少一张人脸图像进行人脸检测处理得到。至少一张人脸图像的采集条件均为实际采集条件,其中,实际采集条件为标定装置的应用环境下的图像采集条件。In some embodiments of the present application, the first face contour frame is obtained according to at least one reference to the first face contour frame. At least one reference first face contour frame is obtained by performing face detection processing on at least one face image. The acquisition conditions of at least one face image are all actual acquisition conditions, wherein the actual acquisition conditions are image acquisition conditions under the application environment of the calibration device.
本申请实施例中,人脸检测处理用于对人脸图像进行处理得到人脸轮廓以及人脸关键点。电子设备通过对一张人脸图像进行人脸检测处理,可得到至少一个人脸轮廓和至少一个人脸关键点。电子设备通过对至少一张人脸图像进行人脸检测处理,可得到至少一个参考第一人脸轮廓框。In the embodiment of the present application, the face detection processing is used to process the face image to obtain the face contour and the face key points. The electronic device can obtain at least one face contour and at least one face key point by performing face detection processing on a face image. The electronic device can obtain at least one reference first face contour frame by performing face detection processing on at least one face image.
电子设备进而可依据至少一个参考第一人脸轮廓框得到第一人脸轮廓框。例如,电子设备通过对至少一个参考第一人脸轮廓框进行拟合,得到第一人脸轮廓框。又例如,电子设备可对至少一个参考第一人脸轮廓框取平均值,得到第一人脸轮廓框。再例如,电子设备可将至少一个参考第一人脸轮廓框中的任意一个第一人脸轮廓框作为第一人脸轮廓框。The electronic device can further obtain the first face contour frame according to the at least one reference first face contour frame. For example, the electronic device obtains the first face contour frame by fitting at least one reference first face contour frame. For another example, the electronic device may average at least one reference first face contour frame to obtain the first face contour frame. For another example, the electronic device may use any one of the at least one reference first face contour frame as the first face contour frame.
本申请实施例中,采集条件包括以下一种一个因素:亮度、拍摄角度。例如,候机厅内的采集条件和户外的采集条件不同;又例如,候机厅内有标定装置1和标定装置2,其中,标定装置1的摄像头的拍摄角度与标定装置2的摄像头的拍摄角度不同,即标定装置1的采集条件与标定装置2的采集条件不同。In this embodiment of the present application, the collection conditions include one of the following factors: brightness and shooting angle. For example, the collection conditions in the waiting hall are different from the collection conditions outdoors; for another example, there are a calibration device 1 and a calibration device 2 in the waiting hall, wherein the shooting angle of the camera of the calibration device 1 is the same as the shooting angle of the camera of the calibration device 2. The angles are different, that is, the acquisition conditions of the calibration device 1 and the acquisition conditions of the calibration device 2 are different.
显然,在不同的采集条件下对同一个人物进行拍摄得到的人脸图像之间存在区别。例如,在采集条件1下采集张三的人脸图像得到人脸图像1,在采集条件2下采集张三的人脸图像得到人脸图像2。此时,人脸图像1中张三的人脸轮廓与人脸图像2中张三的人脸轮廓不同。Obviously, there are differences between the face images obtained by photographing the same person under different acquisition conditions. For example, the face image of Zhang San is collected under the collection condition 1 to obtain the face image 1, and the face image of Zhang San is collected under the collection condition 2 to obtain the face image 2. At this time, the face contour of Zhang San in the face image 1 is different from the face contour of Zhang San in the face image 2 .
本申请实施例中,将标定装置的应用环境下的图像采集条件称为实际采集条件。例如,标定装置应用于A公司的大厅,那么实际采集条件为标定装置在A公司大厅内采集图像时的采集条件。In the embodiments of the present application, the image acquisition conditions under the application environment of the calibration device are referred to as actual acquisition conditions. For example, if the calibration device is used in the hall of company A, the actual acquisition conditions are the acquisition conditions when the calibration device collects images in the hall of company A.
在至少一张人脸图像的采集条件与实际采集条件相同的情况下,依据至少一个第一人脸轮廓框得到的第一人脸轮廓框,与标定装置在实际采集条件下对人脸进行拍摄得到的第一人脸轮廓框更接近,进而可提高可见光图像与热红外图像之间的标定准确度。In the case where the acquisition conditions of the at least one face image are the same as the actual acquisition conditions, the first face contour frame obtained according to the at least one first face contour frame is used with the calibration device to photograph the human face under the actual acquisition conditions. The obtained first face contour frame is closer, thereby improving the calibration accuracy between the visible light image and the thermal infrared image.
在本申请的一些实施例中,第一人脸轮廓框还包括以下至少一个人脸关键点:眼睛关键点、额头关键点、眼睛关键点。在第一人脸轮廓框包括至少一个人脸关键点的情况下,用户在判断第一人脸轮廓框与热红外图像中的第一人脸区域是否重合的情况下,不仅可将第一人脸轮廓框中的人脸轮廓与第一人脸区域的边界是否重合作为判断依据,还可将第一人脸轮廓框中的至少一个人脸关键点与第一人脸区域中对应的人脸关键点是否重合作为判断依据。In some embodiments of the present application, the first face contour frame further includes at least one of the following face key points: eye key point, forehead key point, and eye key point. In the case that the first face contour frame includes at least one face key point, when the user determines whether the first face contour frame coincides with the first face region in the thermal infrared image, not only the first face Whether the face contour in the face contour frame overlaps with the boundary of the first face area is used as a judgment basis, and at least one face key point in the first face contour frame can also be used with the corresponding face in the first face area. Whether the key points overlap is the basis for judgment.
例如,假设至少一个人脸关键点包括眼睛关键点。那么用户在判断第一人脸轮廓框是否与热红外图像中的第一人脸区域重合的情况下,不仅将第一人脸轮廓框中的人脸轮廓与第一人脸区域的边界是否重合作为判断依据,还可将第一人脸轮廓框中的眼睛关键 点与第一人脸区域中的眼睛关键点是否重合作为判断依据。For example, assume that at least one face keypoint includes eye keypoints. Then, when judging whether the first face contour frame coincides with the first face area in the thermal infrared image, the user not only checks whether the face contour in the first face contour frame coincides with the boundary of the first face area As the judgment basis, whether the eye key point in the first face contour frame and the eye key point in the first face area overlap can also be used as the judgment basis.
在本申请的一些实施例中,标定装置在接收到重置第一人脸轮廓框的指令的情况下,将第一人脸轮廓框重置于初始位置。在该种实施方式中,用户可通过向标定装置输入重置第一人脸轮廓框的指令,使第一人脸轮廓框重新回到初始位置。In some embodiments of the present application, the calibration device resets the first human face contour frame to an initial position when receiving an instruction to reset the first human face contour frame. In this embodiment, the user may input an instruction to reset the first face contour frame to the calibration device, so that the first face contour frame can return to the initial position.
在本申请的一些实施例中,标定用户界面还包括第二显示区域,标定装置还执行以下步骤:In some embodiments of the present application, the calibration user interface further includes a second display area, and the calibration device further performs the following steps:
11、在上述第二显示区域内显示上述第一人脸轮廓框与上述第一人脸区域的重合效果预览图。11. Display a preview image of the overlapping effect between the first face outline frame and the first face area in the second display area.
本申请实施例中,第一显示区域与第二显示区域不同。在本申请的一些实施例中,第二显示区域与第一显示区域之间不存在交集。In this embodiment of the present application, the first display area is different from the second display area. In some embodiments of the present application, there is no intersection between the second display area and the first display area.
本申请实施例中,重合效果预览图包括第二人脸轮廓框与第二人脸区域的重合效果图。其中,第二人脸轮廓框内标记有测温区域。在本申请的一些实施例中,该测温区域可以是用特殊颜色标注的点。例如,假设测温区域为绿色的点。说明该绿色的点为热红外成像设备的测温点。In this embodiment of the present application, the overlap effect preview image includes an overlap effect image of the second face contour frame and the second face region. The temperature measurement area is marked in the second face outline frame. In some embodiments of the present application, the temperature measurement area may be a point marked with a special color. For example, suppose the temperature measurement area is a green point. Explain that the green point is the temperature measurement point of the thermal infrared imaging device.
在本申请的一些实施例中,该测温区域可以是用框标记出来的区域,此时,该测温区域为热红外成像设备的测温区域。In some embodiments of the present application, the temperature measurement area may be an area marked with a frame, and in this case, the temperature measurement area is a temperature measurement area of a thermal infrared imaging device.
本申请实施例中,第二人脸轮廓框在第二显示区域内的位置与第一人脸轮廓框在第一显示区域内的位置对应。即若第一人脸轮廓框在第一显示区域内向左移动,那么第二人脸轮廓框在第二显示区域内向左移动;若第一人脸轮廓框在第一显示区域内向上移动,那么第二人脸轮廓框在第二显示区域内向上移动。In this embodiment of the present application, the position of the second face contour frame in the second display area corresponds to the position of the first face contour frame in the first display area. That is, if the first face contour frame moves to the left in the first display area, then the second face contour frame moves to the left in the second display area; if the first face contour frame moves upward in the first display area, then The second face outline frame moves upward in the second display area.
例如,用户通过点击向上虚拟按钮,使第一人脸轮廓框在第一显示区域内向上移动,此时,第二人脸轮廓框在第二显示区域内向上移动。For example, the user moves the first face outline frame upward in the first display area by clicking the up virtual button, and at this time, the second face outline frame moves upward in the second display area.
在本申请的一些实施例中,第一人脸轮廓框在第一显示区域内的移动距离与第二人脸轮廓框在第二显示区域内的移动距离之间的比值为预览比例。In some embodiments of the present application, the ratio between the moving distance of the first face outline frame in the first display area and the movement distance of the second face outline frame in the second display area is the preview ratio.
例如,假设预览比例为2。若用户通过点击向上虚拟按钮,使第一人脸轮廓框在第一显示区域内向上移动4个像素点单位,此时第二人脸轮廓框在第二显示区域内向上移动2个像素点单位。For example, suppose the preview scale is 2. If the user clicks the up virtual button to move the first face contour frame upward by 4 pixel units in the first display area, then the second face contour frame moves upward by 2 pixel units in the second display area .
本申请实施例中,第二人脸区域与第一人脸区域对应,即在重合效果预览图中,第二人脸区域为第一人脸区域的预览图。在本申请的一些实施例中,第一人脸区域的尺寸与第二人脸区域的尺寸之间的比值为预览比例。In the embodiment of the present application, the second face area corresponds to the first face area, that is, in the preview image of the overlap effect, the second face area is a preview image of the first face area. In some embodiments of the present application, the ratio between the size of the first face region and the size of the second face region is the preview ratio.
标定装置通过执行步骤11,可在移动第一人脸轮廓框的过程中,通过重合效果预览图显示测温区域的位置。这样,用户可获知热红外成像设备在采集热红外图像的情况下,对测温对象的哪个部位进行测温。例如,测温区域在第二人脸区域的右额头区域内,那么,依据可见光图像和热红外图像得到的体温,为测温对象的右额头区域的温度。By performing step 11, the calibration device can display the position of the temperature measurement area through the overlapping effect preview image during the process of moving the first face contour frame. In this way, the user can know which part of the temperature measurement object is measured by the thermal infrared imaging device when the thermal infrared image is collected. For example, if the temperature measurement area is in the right forehead area of the second face area, then the body temperature obtained according to the visible light image and the thermal infrared image is the temperature of the right forehead area of the temperature measurement object.
在本申请的一些实施例中,在执行步骤103之前,标定装置还执行以下步骤:In some embodiments of the present application, before performing step 103, the calibration apparatus further performs the following steps:
12、响应于接收到针对上述热红外图像和上述人脸框的放大指令,按照上述放大指令放大上述热红外图像和上述人脸框。12. In response to receiving an enlargement instruction for the thermal infrared image and the face frame, enlarge the thermal infrared image and the face frame according to the enlargement instruction.
本申请实施例中,放大指令用于指示标定装置放大热红外图像和人脸框。在本申请的一些实施例中,标定装置按照放大指令同时放大热红外图像和第一人脸框。In this embodiment of the present application, the enlargement instruction is used to instruct the calibration device to enlarge the thermal infrared image and the face frame. In some embodiments of the present application, the calibration device simultaneously magnifies the thermal infrared image and the first face frame according to the magnification instruction.
13、响应于接收到针对上述热红外图像和上述人脸框的缩小指令,按照上述缩小指令放大上述热红外图像和上述人脸框。13. In response to receiving a zoom-out instruction for the thermal infrared image and the face frame, enlarging the thermal infrared image and the face frame according to the zoom-out instruction.
本申请实施例中,缩小指令用于指示标定装置放大热红外图像和人脸框。在本申请的一些实施例中,标定装置按照放大指令同时缩小热红外图像和第一人脸框。In this embodiment of the present application, the zoom-out instruction is used to instruct the calibration device to zoom in on the thermal infrared image and the face frame. In some embodiments of the present application, the calibration device simultaneously reduces the thermal infrared image and the first face frame according to the enlargement instruction.
用户通过向标定装置输入放大指令或缩小指令,以更好的观察第一人脸框与第一人脸区域之间的重合效果。The user can better observe the overlapping effect between the first face frame and the first face region by inputting a zoom-in or zoom-out command to the calibration device.
在本申请的一些实施例中,用户向标定装置输入放大指令,可以是触摸第一显示区域中的放大按钮;用户向标定装置输入缩小指令,可以是触摸第一显示区域中的放大按钮。In some embodiments of the present application, the user inputs a zoom-in instruction to the calibration device, which may be touching the zoom-in button in the first display area; the user inputs a zoom-out instruction to the calibration device, which may be touching the zoom-in button in the first display area.
基于本申请实施例公开的技术方案,本申请实施例还提供了一种可能的应用场景。Based on the technical solutions disclosed in the embodiments of the present application, the embodiments of the present application also provide a possible application scenario.
如上所述,在使用测温终端进行非接触式测温的情况下,测温终端从RGB图像中确定第一人脸区域,再从热红外图像中确定与该第一人脸区域对应的像素点区域,作为目标像素点区域。测温终端依据目标像素点区域的温度,得到待测量对象的体温。但若RGB图像和热红外图像之间存在较大的视差,得到的待测量对象的体温的误差较大,甚至可能得到不合理的体温。As described above, in the case of using the temperature measurement terminal for non-contact temperature measurement, the temperature measurement terminal determines the first face area from the RGB image, and then determines the pixel corresponding to the first face area from the thermal infrared image Point area, as the target pixel area. The temperature measurement terminal obtains the body temperature of the object to be measured according to the temperature of the target pixel area. However, if there is a large parallax between the RGB image and the thermal infrared image, the obtained body temperature of the object to be measured has a large error, and even an unreasonable body temperature may be obtained.
例如,使用测温终端测量张三的体温,得到张三的体温为30度;又例如,使用测温终端测量张三的体温,得到张三的体温为43度。显然30度和40度均是不合理的体温。For example, using the temperature measuring terminal to measure Zhang San's body temperature, it is obtained that Zhang San's body temperature is 30 degrees; for another example, using the temperature measuring terminal to measure Zhang San's body temperature, it is obtained that Zhang San's body temperature is 43 degrees. Obviously 30 degrees and 40 degrees are unreasonable body temperature.
当得到的体温明显不合理时,其原因可能是RGB摄像头和热成像摄像头之间的位移差较大,导致RGB图像与热红外图像之间的视差较大。此时,用户可通过基于本申请实施例提供的技术方案,确定RGB图像和热红外图像之间的视差,从提高待测量对象的体温的准确度。When the obtained body temperature is obviously unreasonable, the reason may be that the displacement difference between the RGB camera and the thermal imaging camera is large, resulting in a large parallax between the RGB image and the thermal infrared image. At this time, the user can determine the parallax between the RGB image and the thermal infrared image based on the technical solutions provided by the embodiments of the present application, thereby improving the accuracy of the body temperature of the object to be measured.
应理解,在采集张三的人脸图像的情况下,测温终端在通过显示器显示采集第一人脸轮廓框,以使张三通过调整脸的位置,使张三的脸部处于采集第一人脸轮廓框内。其中,采集第一人脸轮廓框在显示器的标定用户界面中的位置与第一人脸轮廓框在标定用户界面中的位置相同。It should be understood that in the case of collecting the face image of Zhang San, the temperature measurement terminal displays the outline frame of the first face collected on the display, so that Zhang San adjusts the position of the face, so that the face of Zhang San is in the first position of the collection. within the face contour frame. The position of the collected first face contour frame in the calibration user interface of the display is the same as the position of the first face contour frame in the calibration user interface.
测温终端在确定张三的脸部处于采集第一人脸轮廓框内的情况下,使用RGB摄像头采集包含张三的脸部的图像作为RGB图像,并使用热成像摄像头采集包含张三的脸部的图像作为热红外图像。In the case that the temperature measurement terminal determines that Zhang San's face is within the frame of the first face outline, the temperature measurement terminal uses an RGB camera to collect an image containing Zhang San's face as an RGB image, and uses a thermal imaging camera to collect Zhang San's face. image of the part as a thermal infrared image.
测温终端基于本申请实施例提供的技术方案、可见RGB图像和热红外图像,可完成对RGB图像和热红外图像之间的标定。Based on the technical solutions, visible RGB images and thermal infrared images provided by the embodiments of the present application, the temperature measurement terminal can complete the calibration between the RGB images and the thermal infrared images.
例如,用户可通过移动第一人脸轮廓框使第一人脸轮廓框与热红外图像中的第一人脸区域重合,并向测温终端输入第一人脸轮廓框与热红外图像中的第一人脸区域重合的指令。测温终端进而可确定RGB图像与热红外图像之间的视差。这样,测温终端可基于该视差,从热红外图像中确定目标像素点区域,从而提高待测量对象的体温的准确度。For example, the user can make the first face contour frame overlap with the first face area in the thermal infrared image by moving the first face contour frame, and input the first face contour frame and the thermal infrared image to the temperature measurement terminal. The first face area coincidence command. The temperature measurement terminal can then determine the parallax between the RGB image and the thermal infrared image. In this way, the temperature measurement terminal can determine the target pixel area from the thermal infrared image based on the parallax, thereby improving the accuracy of the body temperature of the object to be measured.
例如,图3所示为显示第一人脸轮廓框和热红外图像的标定用户界面。在该用户界面中,包括使用虚线的第一人脸轮廓框301。在该用户界面的下方有四个虚拟方向按钮302,分别用于控制第一人脸轮廓框向用户界面的上侧移动、向用户界面的下侧移动、向用户界面的左侧移动、向用户界面的右侧移动。用户通过触摸虚拟方向按钮,可移动第一人脸轮廓框301使第一人脸轮廓框301与热红外图像中的第一人脸区域重合。For example, Figure 3 shows a calibration user interface displaying a first face contour box and a thermal infrared image. In this user interface, a first face outline box 301 using a dashed line is included. There are four virtual direction buttons 302 below the user interface, which are respectively used to control the first face contour frame to move to the upper side of the user interface, to the lower side of the user interface, to the left side of the user interface, and to the user interface. The right side of the interface moves. By touching the virtual direction button, the user can move the first face contour frame 301 so that the first face contour frame 301 coincides with the first face area in the thermal infrared image.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above method of the specific implementation, the writing order of each step does not mean a strict execution order but constitutes any limitation on the implementation process, and the specific execution order of each step should be based on its function and possible Internal logic is determined.
上述详细阐述了本申请实施例的方法,下面提供了本申请实施例的装置。The methods of the embodiments of the present application are described in detail above, and the apparatuses of the embodiments of the present application are provided below.
请参阅图4,图4为本申请实施例提供的一种标定装置的结构示意图,该标定装置1包括:第一处理单元11、第二处理单元12、输出单元13、第一显示单元14、获取单元15、第三处理单元16、第四处理单元17、第五处理单元18、第二显示单元19和重置单元20,其中:Please refer to FIG. 4. FIG. 4 is a schematic structural diagram of a calibration device provided by an embodiment of the present application. The calibration device 1 includes: a first processing unit 11, a second processing unit 12, an output unit 13, a first display unit 14, The acquisition unit 15, the third processing unit 16, the fourth processing unit 17, the fifth processing unit 18, the second display unit 19 and the reset unit 20, wherein:
第一处理单元11,配置为响应于接收到的标定触发指令,进入标定用户界面,所述标定用户界面包括热红外图像和第一人脸轮廓框;The first processing unit 11 is configured to enter a calibration user interface in response to the received calibration trigger instruction, and the calibration user interface includes a thermal infrared image and a first face outline frame;
第二处理单元12,配置为响应于接收到移动所述第一人脸轮廓框的操作指令,按照所述操作指令移动所述第一人脸轮廓框;The second processing unit 12 is configured to, in response to receiving an operation instruction for moving the first human face outline frame, move the first human face outline frame according to the operation instruction;
输出单元13,配置为在所述第一人脸轮廓框与所述热红外图像中的第一人脸区域重合的情况下,输出标定完成信息。The output unit 13 is configured to output calibration completion information when the first face contour frame coincides with the first face region in the thermal infrared image.
结合本申请任一实施方式,所述标定装置1还包括:In combination with any embodiment of the present application, the calibration device 1 further includes:
第一显示单元14,配置为响应于接收到标定完成的指令,在所述标定用户界面中显示所述第一人脸轮廓框与所述第一人脸区域的重合结果,其中,所述重合结果包括但不限于重合度,人脸额头区域。The first display unit 14 is configured to display the coincidence result of the first face outline frame and the first face region in the calibration user interface in response to receiving the calibration completion instruction, wherein the coincidence The results include, but are not limited to, coincidence, face forehead area.
结合本申请任一实施方式,所述标定装置还包括:In combination with any embodiment of the present application, the calibration device further includes:
获取单元15,配置为在所述标定用户界面中显示所述第一人脸轮廓框与所述第一人脸区域的重合结果之前,获取可见光图像;The obtaining unit 15 is configured to obtain a visible light image before displaying the coincidence result of the first face contour frame and the first face region in the calibration user interface;
第三处理单元16,配置为对所述可见光图像进行人脸识别处理,得到所述参考像素点区域在所述可见光图像中的位置;所述参考像素点区域为所述可见光图像中与所述第一人脸区域对应的区域;The third processing unit 16 is configured to perform face recognition processing on the visible light image to obtain the position of the reference pixel point area in the visible light image; the reference pixel point area is the difference between the visible light image and the The area corresponding to the first face area;
第四处理单元17,配置为依据参考视差和所述参考像素点区域在所述可见光图像中的位置,确定所述第一人脸区域在所述热红外图像中的位置;所述参考视差为所述可见 光图像与所述热红外图像之间的视差;The fourth processing unit 17 is configured to determine the position of the first face region in the thermal infrared image according to the reference parallax and the position of the reference pixel area in the visible light image; the reference parallax is Parallax between the visible light image and the thermal infrared image;
第五处理单元18,配置为依据所述第一人脸区域在所述热红外图像中的位置和所述终止位置,得到所述第一人脸轮廓框与所述第一人脸区域的重合结果。The fifth processing unit 18 is configured to obtain the coincidence of the first face contour frame and the first face region according to the position of the first face region in the thermal infrared image and the termination position result.
结合本申请任一实施方式,所述第二处理单元12,配置为:With reference to any embodiment of the present application, the second processing unit 12 is configured as:
在检测到物体在所述用户界面上滑动的移动指令的情况下,沿所述物体在所述用户界面上的滑动方向移动所述第一人脸轮廓框。In the case of detecting the movement instruction of the object sliding on the user interface, the first face contour frame is moved along the sliding direction of the object on the user interface.
结合本申请任一实施方式,所述标定装置,还包括:第二显示单元19,配置为在所述响应于接收到移动所述第一人脸轮廓框的操作指令,按照所述操作指令移动所述第一人脸轮廓框之前,在所述标定用户界面中显示至少一个虚拟方向按钮;所述至少一个虚拟方向按钮包括以下至少一个:向上虚拟按钮、向下虚拟按钮、向左虚拟按钮、向右虚拟按钮;With reference to any embodiment of the present application, the calibration device further includes: a second display unit 19, configured to, in response to receiving an operation instruction for moving the first face contour frame, move according to the operation instruction Before the first face outline frame, at least one virtual direction button is displayed in the calibration user interface; the at least one virtual direction button includes at least one of the following: an up virtual button, a down virtual button, a left virtual button, Right virtual button;
所述第二处理单元12,配置为:The second processing unit 12 is configured as:
在检测到物体通过所述标定装置的屏幕触摸所述至少一个虚拟方向按钮的情况下,依据被触摸的所述虚拟方向按钮所指示的方向移动所述人脸框。When it is detected that an object touches the at least one virtual direction button through the screen of the calibration device, the face frame is moved according to the direction indicated by the touched virtual direction button.
结合本申请任一实施方式,所述第一人脸轮廓框依据至少一个参考第一人脸轮廓框得到;所述至少一个参考第一人脸轮廓框通过对至少一张人脸图像进行人脸检测处理得到;所述至少一张人脸图像的采集条件均为实际采集条件;所述实际采集条件为所述标定装置的应用环境下的图像采集条件。In combination with any of the embodiments of the present application, the first face contour frame is obtained according to at least one reference first face contour frame; the at least one reference first face contour frame is obtained by performing face analysis on at least one face image. The acquisition conditions of the at least one face image are all actual acquisition conditions; and the actual acquisition conditions are image acquisition conditions under the application environment of the calibration device.
结合本申请任一实施方式,所述标定装置1还包括:In combination with any embodiment of the present application, the calibration device 1 further includes:
重置单元20,配置为在接收到重置所述第一人脸轮廓框的指令的情况下,将所述第一人脸轮廓框重置于初始位置。The resetting unit 20 is configured to reset the first human face outline frame to an initial position when receiving an instruction to reset the first human face outline frame.
结合本申请任一实施方式,所述第一人脸轮廓框包括至少一个人脸关键点;With reference to any embodiment of the present application, the first face contour frame includes at least one face key point;
所述第一人脸轮廓框与所述热红外图像中的第一人脸区域重合包括:所述第一人脸轮廓框与所述第一人脸区域的边界重合以及所述至少一个人脸关键点与所述第一人脸区域中对应的人脸关键点重合。The overlapping of the first face contour frame with the first face region in the thermal infrared image includes: the first face contour frame and the boundary of the first face region overlapping and the at least one face The key points coincide with the corresponding face key points in the first face region.
结合本申请任一实施方式,所述标定用户界面还包括与所述第一区域不同的第二显示区域,所述第一处理单元11,还配置为在所述第二显示区域内显示所述第一人脸轮廓框与所述第一人脸区域的重合效果预览图;所述重合效果预览图包括第二人脸轮廓框与所述第二人脸区域的重合效果图;所述第二人脸轮廓框内标记有测温区域;所述第二人脸轮廓框在所述第二显示区域内的位置与所述第一人脸轮廓框在所述第一显示区域内的位置对应;所述第二人脸区域与所述第一人脸区域对应。With reference to any embodiment of the present application, the calibration user interface further includes a second display area different from the first area, and the first processing unit 11 is further configured to display the second display area in the second display area. A preview of the overlapping effect between the first face contour frame and the first face area; the overlapping effect preview includes an overlapping effect diagram of the second face contour frame and the second face area; the second A temperature measurement area is marked in the face contour frame; the position of the second face contour frame in the second display area corresponds to the position of the first face contour frame in the first display area; The second face area corresponds to the first face area.
结合本申请任一实施方式,所述第二处理单元12,还配置为在所述第一人脸轮廓框与所述热红外图像中的第一人脸区域重合的情况下,输出标定完成信息之前,响应于接收到针对所述热红外图像和所述第一人脸框的放大指令,按照所述放大指令放大所述热红外图像和所述第一人脸框;With reference to any embodiment of the present application, the second processing unit 12 is further configured to output calibration completion information when the first face contour frame overlaps with the first face region in the thermal infrared image before, in response to receiving an enlargement instruction for the thermal infrared image and the first face frame, enlarging the thermal infrared image and the first face frame according to the enlargement instruction;
响应于接收到针对所述热红外图像和所述第一人脸框的缩小指令,按照所述缩小指令放大所述热红外图像和所述第一人脸框。In response to receiving a zoom-out instruction for the thermal infrared image and the first face frame, the thermal infrared image and the first face frame are enlarged according to the zoom-out instruction.
在一些实施例中,本申请实施例提供的装置具有的功能或包含的模块可以配置为执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or modules included in the apparatus provided in the embodiments of the present application may be configured to execute the methods described in the above method embodiments, and the specific implementation may refer to the descriptions in the above method embodiments. No longer.
图5为本申请实施例提供的一种标定装置的硬件结构示意图。该标定装置2包括处理器21,存储器22,输入装置23,输出装置24。该处理器21、存储器22、输入装置23和输出装置24通过连接器相耦合,该连接器包括各类接口、传输线或总线等等,本申请实施例对此不作限定。应当理解,本申请的各个实施例中,耦合是指通过特定方式的相互联系,包括直接相连或者通过其他设备间接相连,例如可以通过各类接口、传输线、总线等相连。FIG. 5 is a schematic diagram of a hardware structure of a calibration apparatus provided by an embodiment of the present application. The calibration device 2 includes a processor 21 , a memory 22 , an input device 23 , and an output device 24 . The processor 21, the memory 22, the input device 23, and the output device 24 are coupled through a connector, and the connector includes various types of interfaces, transmission lines, or buses, etc., which are not limited in this embodiment of the present application. It should be understood that, in various embodiments of the present application, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, such as various interfaces, transmission lines, and buses.
处理器21可以是一个或多个图形处理器(graphics processing unit,GPU),在处理器21是一个GPU的情况下,该GPU可以是单核GPU,也可以是多核GPU。在本申请的一些实施例中,处理器21可以是多个GPU构成的处理器组,多个处理器之间通过一个或多个总线彼此耦合。在本申请的一些实施例中,该处理器还可以为其他类型的处理器等等,本申请实施例不作限定。The processor 21 may be one or more graphics processing units (graphics processing units, GPUs). In the case where the processor 21 is a GPU, the GPU may be a single-core GPU or a multi-core GPU. In some embodiments of the present application, the processor 21 may be a processor group composed of multiple GPUs, and the multiple processors are coupled to each other through one or more buses. In some embodiments of the present application, the processor may also be other types of processors, etc., which are not limited in the embodiments of the present application.
存储器22可用于存储计算机程序指令,以及用于执行本申请方案的程序代码在内的各类计算机程序代码。可选地,存储器包括但不限于是随机存储记忆体(random access memory,RAM)、只读存储器(read-only memory,ROM)、可擦除可编程只读存储器(erasable programmable read only memory,EPROM)、或便携式只读存储器(compact disc read-only memory,CD-ROM),该存储器用于相关指令及数据。The memory 22 can be used to store computer program instructions and various types of computer program codes including program codes for executing the solutions of the present application. Optionally, the memory includes, but is not limited to, random access memory (RAM), read-only memory (read-only memory, ROM), erasable programmable read-only memory (erasable programmable read only memory, EPROM) ), or a portable read-only memory (compact disc read-only memory, CD-ROM), which is used for related instructions and data.
输入装置23用于输入数据和/或信号,以及输出装置24用于输出数据和/或信号。输入装置23和输出装置24可以是独立的器件,也可以是一个整体的器件。The input device 23 is used for inputting data and/or signals, and the output device 24 is used for outputting data and/or signals. The input device 23 and the output device 24 may be independent devices or may be an integral device.
可理解,本申请实施例中,存储器22不仅可用于存储相关指令,还可用于存储相关数据,如该存储器22可用于存储通过输入装置23获取的标定触发指令,又或者该存储器22还可用于存储通过处理器21得到的可见光图像与所述热红外图像之间的视差等等,本申请实施例对于该存储器中具体所存储的数据不作限定。It can be understood that in this embodiment of the present application, the memory 22 can be used not only to store related instructions, but also to store related data. For example, the memory 22 can be used to store the calibration trigger instruction obtained through the input device 23, or the memory 22 can also be used to store The parallax between the visible light image obtained by the processor 21 and the thermal infrared image is stored, and the embodiment of the present application does not limit the specific data stored in the memory.
可以理解的是,图5示出了一种标定装置的简化设计。在实际应用中,标定装置还可以分别包含必要的其他元件,包含但不限于任意数量的输入/输出装置、处理器、存储器等,而所有可以实现本申请实施例的标定装置都在本申请的保护范围之内。It will be appreciated that Figure 5 shows a simplified design of a calibration device. In practical applications, the calibration device may also include other necessary components, including but not limited to any number of input/output devices, processors, memories, etc., and all calibration devices that can implement the embodiments of the present application are included in the present application. within the scope of protection.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。所属领域的技术人员还可以清楚地了解到,本申请各个实施例描述各有侧重,为描述的方便和简洁,相同或类似的部分在不同实施例中可能没有赘述,因此,在某一实施例未描述或未详细描述的部分可以参见其他实施例的记载。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here. Those skilled in the art can also clearly understand that the description of each embodiment of the present application has its own emphasis. For the convenience and brevity of the description, the same or similar parts may not be repeated in different embodiments. Therefore, in a certain embodiment For the parts that are not described or not described in detail, reference may be made to the descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can 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 a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions can be sent from a website site, computer, server, or data center via wired (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) another website site, computer, server or data center for transmission. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media. The available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, digital versatile disc (DVD)), or semiconductor media (eg, solid state disk (SSD)) )Wait.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:只读存储器(read-only memory,ROM)或随机存储存储器(random access memory,RAM)、磁碟或者光盘等各种可存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented. The process can be completed by instructing the relevant hardware by a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed , which may include the processes of the foregoing method embodiments. The aforementioned storage medium includes: read-only memory (read-only memory, ROM) or random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.
工业实用性Industrial Applicability
本申请的标定装置可对标定用户界面进行显示,这样,用户可通过移动人脸框,确定人脸框是否与热红外图像中的第一人脸区域重合,进而可完成可见光图像与热红外图像之间的标定,从而降低用户得到可见光图像和热红外图像之间的视差的操作复杂度。The calibration device of the present application can display the calibration user interface, so that the user can move the face frame to determine whether the face frame is coincident with the first face area in the thermal infrared image, and then the visible light image and the thermal infrared image can be completed. Calibration between the two, thereby reducing the operational complexity of the user to obtain the parallax between the visible light image and the thermal infrared image.

Claims (23)

  1. 一种标定方法,所述方法由标定装置执行,所述方法包括:A calibration method, the method being performed by a calibration device, the method comprising:
    响应于接收到的标定触发指令,进入标定用户界面,所述标定用户界面的第一显示区域包括热红外图像和第一人脸轮廓框;In response to the received calibration trigger instruction, enter a calibration user interface, where the first display area of the calibration user interface includes a thermal infrared image and a first face outline frame;
    响应于接收到移动所述第一人脸轮廓框的操作指令,按照所述操作指令移动所述第一人脸轮廓框;In response to receiving an operation instruction for moving the first human face outline frame, move the first human face outline frame according to the operation instruction;
    在所述第一人脸轮廓框与所述热红外图像中的第一人脸区域重合的情况下,输出标定完成信息。When the first face contour frame coincides with the first face region in the thermal infrared image, the calibration completion information is output.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    响应于接收到标定完成的指令,在所述第一显示区域中显示所述第一人脸轮廓框与所述第一人脸区域的重合结果,其中,所述重合结果包括但不限于重合度,人脸额头区域。In response to receiving the instruction that the calibration is completed, display the coincidence result of the first face contour frame and the first face region in the first display area, wherein the coincidence result includes but is not limited to the coincidence degree , the forehead area of the human face.
  3. 根据权利要求2所述的方法,其中,所述在所述第一显示区域中显示所述第一人脸轮廓框与所述第一人脸区域的重合结果之前,所述方法还包括:The method according to claim 2, wherein, before displaying the coincidence result of the first face contour frame and the first face region in the first display area, the method further comprises:
    获取可见光图像;Obtain visible light images;
    对所述可见光图像进行人脸识别处理,得到参考像素点区域在所述可见光图像中的位置;所述参考像素点区域为所述可见光图像中与所述第一人脸区域对应的区域;Performing face recognition processing on the visible light image to obtain the position of the reference pixel point area in the visible light image; the reference pixel point area is the area corresponding to the first face area in the visible light image;
    依据参考视差和所述参考像素点区域在所述可见光图像中的位置,确定所述第一人脸区域在所述热红外图像中的位置;所述参考视差为所述可见光图像与所述热红外图像之间的视差;According to the reference parallax and the position of the reference pixel area in the visible light image, determine the position of the first face region in the thermal infrared image; the reference parallax is the visible light image and the thermal infrared image. Parallax between infrared images;
    依据所述第一人脸区域在所述热红外图像中的位置和终止位置,得到所述第一人脸轮廓框与所述第一人脸区域的重合结果;其中,所述终止位置是所述第一人脸轮廓框在所述标定用户界面中的位置。According to the position and termination position of the first face region in the thermal infrared image, the overlapping result of the first face contour frame and the first face region is obtained; wherein, the termination position is the the position of the first face contour frame in the calibration user interface.
  4. 根据权利要求1至3中任意一项所述的方法,其中,所述响应于接收到移动所述第一人脸轮廓框的操作指令,按照所述操作指令移动所述第一人脸轮廓框,包括:The method according to any one of claims 1 to 3, wherein, in response to receiving an operation instruction for moving the first human face outline frame, the first human face outline frame is moved according to the operation instruction ,include:
    在检测到物体在所述用户界面上滑动的移动指令的情况下,沿所述物体在所述用户界面上的滑动方向移动所述第一人脸轮廓框。In the case of detecting the movement instruction of the object sliding on the user interface, the first face contour frame is moved along the sliding direction of the object on the user interface.
  5. 根据权利要求1至3中任意一项所述的方法,其中,所述标定方法应用于标定装置;The method according to any one of claims 1 to 3, wherein the calibration method is applied to a calibration device;
    在所述响应于接收到移动所述第一人脸轮廓框的操作指令,按照所述操作指令移动所述第一人脸轮廓框之前,所述方法还包括:Before moving the first face contour frame according to the operation instruction in response to receiving the operation instruction for moving the first face contour frame, the method further includes:
    在所述标定用户界面中显示至少一个虚拟方向按钮;所述至少一个虚拟方向按钮包括以下至少一个:向上虚拟按钮、向下虚拟按钮、向左虚拟按钮、向右虚拟按钮;Displaying at least one virtual direction button in the calibration user interface; the at least one virtual direction button includes at least one of the following: an up virtual button, a down virtual button, a left virtual button, and a right virtual button;
    所述响应于接收到移动所述第一人脸轮廓框的操作指令,按照所述操作指令移动所述第一人脸轮廓框,包括:The moving the first human face outline frame according to the operation instruction in response to receiving the operation instruction for moving the first human face outline frame includes:
    在检测到物体通过所述标定装置的屏幕触摸所述至少一个虚拟方向按钮的情况下,依据被触摸的所述虚拟方向按钮所指示的方向移动所述人脸框。When it is detected that an object touches the at least one virtual direction button through the screen of the calibration device, the face frame is moved according to the direction indicated by the touched virtual direction button.
  6. 根据权利要求4或5所述的方法,其中,所述第一人脸轮廓框依据至少一个参考第一人脸轮廓框得到;所述至少一个参考第一人脸轮廓框通过对至少一张人脸图像进行人脸检测处理得到;所述至少一张人脸图像的采集条件均为实际采集条件;所述实际采集条件为所述标定装置的应用环境下的图像采集条件。The method according to claim 4 or 5, wherein the first face contour frame is obtained according to at least one reference first face contour frame; the at least one reference first face contour frame is obtained by comparing at least one The face image is obtained by performing face detection processing; the acquisition conditions of the at least one face image are all actual acquisition conditions; the actual acquisition conditions are image acquisition conditions under the application environment of the calibration device.
  7. 根据权利要求1至6中任意一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 6, wherein the method further comprises:
    在接收到重置所述第一人脸轮廓框的指令的情况下,将所述第一人脸轮廓框重置于初始位置。In the case of receiving an instruction to reset the first human face outline frame, the first human face outline frame is reset to an initial position.
  8. 根据权利要求1至7中任意一项所述的方法,其中,所述第一人脸轮廓框包括至少一个人脸关键点;The method according to any one of claims 1 to 7, wherein the first face contour frame includes at least one face key point;
    所述第一人脸轮廓框与所述热红外图像中的第一人脸区域重合包括:所述第一人脸轮廓框与所述第一人脸区域的边界重合以及所述至少一个人脸关键点与所述第一人脸区域中对应的人脸关键点重合。The overlapping of the first face contour frame with the first face region in the thermal infrared image includes: the first face contour frame and the boundary of the first face region overlapping and the at least one face The key points coincide with the corresponding face key points in the first face region.
  9. 根据权利要求1至8中任意一项所述的方法,其中,所述标定用户界面还包括与所述第一区域不同的第二显示区域,所述方法还包括:The method according to any one of claims 1 to 8, wherein the calibration user interface further comprises a second display area different from the first area, the method further comprising:
    在所述第二显示区域内显示所述第一人脸轮廓框与所述第一人脸区域的重合效果预览图;所述重合效果预览图包括第二人脸轮廓框与所述第二人脸区域的重合效果图;所述第二人脸轮廓框内标记有测温区域;所述第二人脸轮廓框在所述第二显示区域内的位置与所述第一人脸轮廓框在所述第一显示区域内的位置对应;所述第二人脸区域与所述第一人脸区域对应。A preview image of the overlapping effect between the first human face outline frame and the first human face area is displayed in the second display area; the overlapping effect preview image includes the second human face outline frame and the second human face. The overlapping effect diagram of the face area; the temperature measurement area is marked in the second face contour frame; the position of the second face contour frame in the second display area and the first face contour frame are in The positions in the first display area correspond; the second face area corresponds to the first face area.
  10. 根据权利要求1至9中任意一项所述的方法,其中,所述在所述第一人脸轮廓框与所述热红外图像中的第一人脸区域重合的情况下,输出标定完成信息之前,所述方法还包括:The method according to any one of claims 1 to 9, wherein when the first face contour frame is coincident with the first face region in the thermal infrared image, outputting calibration completion information Before, the method further includes:
    响应于接收到针对所述热红外图像和所述第一人脸框的放大指令,按照所述放大指令放大所述热红外图像和所述第一人脸框;in response to receiving an enlargement instruction for the thermal infrared image and the first face frame, enlarging the thermal infrared image and the first face frame according to the enlargement instruction;
    响应于接收到针对所述热红外图像和所述第一人脸框的缩小指令,按照所述缩小指令放大所述热红外图像和所述第一人脸框。In response to receiving a zoom-out instruction for the thermal infrared image and the first face frame, the thermal infrared image and the first face frame are enlarged according to the zoom-out instruction.
  11. 一种标定装置,所述标定装置包括:A calibration device comprising:
    第一处理单元,配置为响应于接收到的标定触发指令,进入标定用户界面,所述标定用户界面的第一显示区域包括热红外图像和第一人脸轮廓框;a first processing unit, configured to enter a calibration user interface in response to the received calibration trigger instruction, and the first display area of the calibration user interface includes a thermal infrared image and a first face outline frame;
    第二处理单元,配置为响应于接收到移动所述第一人脸轮廓框的操作指令,按照所述操作指令移动所述第一人脸轮廓框;a second processing unit, configured to, in response to receiving an operation instruction for moving the first face contour frame, move the first face contour frame according to the operation instruction;
    输出单元,配置为在所述第一人脸轮廓框与所述热红外图像中的第一人脸区域重合的情况下,输出标定完成信息。The output unit is configured to output calibration completion information when the first face contour frame coincides with the first face region in the thermal infrared image.
  12. 根据权利要求11所述的标定装置,其中,所述标定装置还包括:The calibration device according to claim 11, wherein the calibration device further comprises:
    第一显示单元,配置为响应于接收到标定完成的指令,在所述标定用户界面中显示所述第一人脸轮廓框与所述第一人脸区域的重合结果,其中,所述重合结果包括但不限于重合度,人脸额头区域。a first display unit, configured to display the coincidence result of the first face contour frame and the first face region in the calibration user interface in response to receiving the calibration completion instruction, wherein the coincidence result Including but not limited to coincidence, face and forehead area.
  13. 根据权利要求12所述的标定装置,其中,所述标定装置还包括:The calibration device according to claim 12, wherein the calibration device further comprises:
    获取单元,配置为在所述标定用户界面中显示所述第一人脸轮廓框与所述第一人脸区域的重合结果之前,获取可见光图像;an obtaining unit, configured to obtain a visible light image before displaying the result of the overlap between the first face contour frame and the first face region in the calibration user interface;
    第三处理单元,配置为对所述可见光图像进行人脸识别处理,得到参考像素点区域在所述可见光图像中的位置;所述参考像素点区域为所述可见光图像中与所述第一人脸区域对应的区域;The third processing unit is configured to perform face recognition processing on the visible light image to obtain the position of the reference pixel point area in the visible light image; the reference pixel point area is the same as the first person in the visible light image. The area corresponding to the face area;
    第四处理单元,配置为依据参考视差和所述参考像素点区域在所述可见光图像中的位置,确定所述第一人脸区域在所述热红外图像中的位置;所述参考视差为所述可见光图像与所述热红外图像之间的视差;The fourth processing unit is configured to determine the position of the first face region in the thermal infrared image according to the reference parallax and the position of the reference pixel area in the visible light image; the reference parallax is the disparity between the visible light image and the thermal infrared image;
    第五处理单元,配置为依据所述第一人脸区域在所述热红外图像中的位置和终止位置,得到所述第一人脸轮廓框与所述第一人脸区域的重合结果。The fifth processing unit is configured to obtain a coincidence result of the first face contour frame and the first face region according to the position and the termination position of the first face region in the thermal infrared image.
  14. 根据权利要求11至13中任意一项所述的标定装置,其中,所述第二处理单元,配置为:在检测到物体在所述用户界面上滑动的移动指令的情况下,沿所述物体在所述用户界面上的滑动方向移动所述第一人脸轮廓框。The calibration device according to any one of claims 11 to 13, wherein the second processing unit is configured to: in the case of detecting a movement instruction of an object sliding on the user interface, move along the object Move the first face outline frame in the sliding direction on the user interface.
  15. 根据权利要求11至13中任意一项所述的标定装置,其中,所述标定装置,还包括:第二显示单元,配置为在所述响应于接收到移动所述第一人脸轮廓框的操作指令,按照所述操作指令移动所述第一人脸轮廓框之前,在所述标定用户界面中显示至少一个虚拟方向按钮;所述至少一个虚拟方向按钮包括以下至少一个:向上虚拟按钮、向下虚拟按钮、向左虚拟按钮、向右虚拟按钮;The calibration device according to any one of claims 11 to 13, wherein the calibration device further comprises: a second display unit configured to, in the response to receiving the movement of the first face contour frame, an operation instruction, before moving the first face outline frame according to the operation instruction, display at least one virtual direction button in the calibration user interface; the at least one virtual direction button includes at least one of the following: an up virtual button, a Down virtual button, left virtual button, right virtual button;
    所述第二处理单元,配置为:在检测到物体通过所述标定装置的屏幕触摸所述至少一个虚拟方向按钮的情况下,依据被触摸的所述虚拟方向按钮所指示的方向移动所述人脸框。The second processing unit is configured to: in the case of detecting that an object touches the at least one virtual direction button through the screen of the calibration device, move the person according to the direction indicated by the touched virtual direction button face frame.
  16. 根据权利要求14或15所述的标定装置,其中,所述第一人脸轮廓框依据至少一个参考第一人脸轮廓框得到;所述至少一个参考第一人脸轮廓框通过对至少一张人脸图像进行人脸检测处理得到;所述至少一张人脸图像的采集条件均为实际采集条件;所述实际采集条件为所述标定装置的应用环境下的图像采集条件。The calibration device according to claim 14 or 15, wherein the first face contour frame is obtained according to at least one reference first face contour frame; the at least one reference first face contour frame is obtained by comparing at least one The face image is obtained by performing face detection processing; the acquisition conditions of the at least one face image are all actual acquisition conditions; the actual acquisition conditions are image acquisition conditions under the application environment of the calibration device.
  17. 根据权利要求11至16任意一项所述的标定装置,其中,所述标定装置还包括:重置单元,配置为在接收到重置所述第一人脸轮廓框的指令的情况下,将所述第一人脸轮廓框重置于初始位置。The calibration device according to any one of claims 11 to 16, wherein the calibration device further comprises: a reset unit, configured to, when receiving an instruction to reset the first face outline frame, reset the The first face contour frame is reset to the initial position.
  18. 根据权利要求11至17中任意一项所述的标定装置,其中,所述第一人脸轮廓框包括至少一个人脸关键点;The calibration device according to any one of claims 11 to 17, wherein the first face contour frame includes at least one face key point;
    所述第一人脸轮廓框与所述热红外图像中的第一人脸区域重合包括:所述第一人脸轮廓框与所述第一人脸区域的边界重合以及所述至少一个人脸关键点与所述第一人脸区域中对应的人脸关键点重合。The overlapping of the first face contour frame with the first face region in the thermal infrared image includes: the first face contour frame and the boundary of the first face region overlapping and the at least one face The key points coincide with the corresponding face key points in the first face region.
  19. 根据权利要求11至18中任意一项所述的标定装置,其中,所述标定用户界面还包括与所述第一区域不同的第二显示区域,所述第一处理单元,还配置为在所述第二显示区域内显示所述第一人脸轮廓框与所述第一人脸区域的重合效果预览图;所述重合效果预览图包括第二人脸轮廓框与所述第二人脸区域的重合效果图;所述第二人脸轮廓框内标记有测温区域;所述第二人脸轮廓框在所述第二显示区域内的位置与所述第一人脸轮廓框在所述第一显示区域内的位置对应;所述第二人脸区域与所述第一人脸区域对应。The calibration device according to any one of claims 11 to 18, wherein the calibration user interface further comprises a second display area different from the first area, and the first processing unit is further configured to The second display area displays a preview image of the overlapping effect of the first face outline frame and the first face area; the overlapping effect preview image includes the second face outline frame and the second face area. The overlapping effect diagram; the temperature measurement area is marked in the second face contour frame; the position of the second face contour frame in the second display area and the first face contour frame are in the The positions in the first display area correspond; the second face area corresponds to the first face area.
  20. 根据权利要求11至19中任意一项所述的标定装置,其中,所述第二处理单元,还配置为在所述在所述第一人脸轮廓框与所述热红外图像中的第一人脸区域重合的情况下,输出标定完成信息之前,响应于接收到针对所述热红外图像和所述第一人脸框的放大指令,按照所述放大指令放大所述热红外图像和所述第一人脸框;响应于接收到针对所述热红外图像和所述第一人脸框的缩小指令,按照所述缩小指令放大所述热红外图像和所述第一人脸框。The calibration device according to any one of claims 11 to 19, wherein the second processing unit is further configured to perform the calibration between the first face contour frame and the thermal infrared image in the first In the case where the face areas overlap, before outputting the calibration completion information, in response to receiving an enlargement instruction for the thermal infrared image and the first face frame, enlarge the thermal infrared image and the first face frame according to the enlargement instruction. a first human face frame; in response to receiving a zoom-out instruction for the thermal infrared image and the first human face frame, enlarging the thermal infrared image and the first human face frame according to the zoom-out instruction.
  21. 一种电子设备,包括:处理器和存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,在所述处理器执行所述计算机指令的情况下,所述电子设备执行如权利要求1至10中任意一项所述的方法。An electronic device, comprising: a processor and a memory, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor executes the computer instructions, the electronic device executes A method as claimed in any one of claims 1 to 10.
  22. 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序包括程序指令,在所述程序指令被处理器执行的情况下,使所述处理器执行权利要求1至10中任意一项所述的方法。A computer-readable storage medium storing a computer program in the computer-readable storage medium, the computer program comprising program instructions, which, when the program instructions are executed by a processor, cause the processor to execute the claims The method of any one of 1 to 10.
  23. 一种计算机程序产品,所述计算机程序产品包括一条或多条指令,所述一条或多条指令适于由处理器加载并执行如权利要求1至10任一项所述的方法。A computer program product comprising one or more instructions adapted to be loaded by a processor and to perform the method of any one of claims 1 to 10.
PCT/CN2021/096072 2020-12-07 2021-05-26 Calibration method and apparatus, and electronic device, storage medium, and program product WO2022121243A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011420092.0 2020-12-07
CN202011420092.0A CN112529947B (en) 2020-12-07 2020-12-07 Calibration method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2022121243A1 true WO2022121243A1 (en) 2022-06-16

Family

ID=74998028

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/096072 WO2022121243A1 (en) 2020-12-07 2021-05-26 Calibration method and apparatus, and electronic device, storage medium, and program product

Country Status (3)

Country Link
CN (1) CN112529947B (en)
TW (1) TW202223739A (en)
WO (1) WO2022121243A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112529947B (en) * 2020-12-07 2023-08-01 北京市商汤科技开发有限公司 Calibration method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170310946A1 (en) * 2016-04-21 2017-10-26 Chenyang Ge Three-dimensional depth perception apparatus and method
CN110909634A (en) * 2019-11-07 2020-03-24 深圳市凯迈生物识别技术有限公司 Visible light and double infrared combined rapid in vivo detection method
CN111507200A (en) * 2020-03-26 2020-08-07 北京迈格威科技有限公司 Body temperature detection method, body temperature detection device and dual-optical camera
CN111739069A (en) * 2020-05-22 2020-10-02 北京百度网讯科技有限公司 Image registration method and device, electronic equipment and readable storage medium
CN112001886A (en) * 2020-07-17 2020-11-27 深圳市优必选科技股份有限公司 Temperature detection method, device, terminal and readable storage medium
CN112529947A (en) * 2020-12-07 2021-03-19 北京市商汤科技开发有限公司 Calibration method and device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE602007000971D1 (en) * 2006-01-20 2009-06-10 Fluke Corp Camera with image mixing of visible light and infrared light
US10015474B2 (en) * 2014-04-22 2018-07-03 Fluke Corporation Methods for end-user parallax adjustment
WO2019071489A1 (en) * 2017-10-11 2019-04-18 深圳传音通讯有限公司 Intelligent terminal-based method and system for measuring temperature by photographing
CN110288534B (en) * 2019-06-28 2024-01-16 Oppo广东移动通信有限公司 Image processing method, device, electronic equipment and storage medium
CN110991266B (en) * 2019-11-13 2024-02-20 北京智芯原动科技有限公司 Binocular face living body detection method and device
CN111209822A (en) * 2019-12-30 2020-05-29 南京华图信息技术有限公司 Face detection method of thermal infrared image

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170310946A1 (en) * 2016-04-21 2017-10-26 Chenyang Ge Three-dimensional depth perception apparatus and method
CN110909634A (en) * 2019-11-07 2020-03-24 深圳市凯迈生物识别技术有限公司 Visible light and double infrared combined rapid in vivo detection method
CN111507200A (en) * 2020-03-26 2020-08-07 北京迈格威科技有限公司 Body temperature detection method, body temperature detection device and dual-optical camera
CN111739069A (en) * 2020-05-22 2020-10-02 北京百度网讯科技有限公司 Image registration method and device, electronic equipment and readable storage medium
CN112001886A (en) * 2020-07-17 2020-11-27 深圳市优必选科技股份有限公司 Temperature detection method, device, terminal and readable storage medium
CN112529947A (en) * 2020-12-07 2021-03-19 北京市商汤科技开发有限公司 Calibration method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
TW202223739A (en) 2022-06-16
CN112529947B (en) 2023-08-01
CN112529947A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
TWI559174B (en) Gesture based manipulation of three-dimensional images
US20170083741A1 (en) Method and device for generating instruction
WO2015161653A1 (en) Terminal operation method and terminal device
JP2007129709A (en) Method for calibrating imaging device, method for calibrating imaging system including arrangement of imaging devices, and imaging system
US20200133432A1 (en) Virtual touch screen
KR20130004357A (en) A computing device interface
KR20070037773A (en) Apparatus and method for inputting user command in display device
CN104081307A (en) Image processing apparatus, image processing method, and program
US9900568B2 (en) Remote communication system, method for controlling remote communication system, and storage medium
WO2022095596A1 (en) Image alignment method, image alignment apparatus and terminal device
US20210231502A1 (en) Information processing apparatus for helping intuitive and easy recognition of temperature of heat source
JP2012238293A (en) Input device
JP6381361B2 (en) DATA PROCESSING DEVICE, DATA PROCESSING SYSTEM, DATA PROCESSING DEVICE CONTROL METHOD, AND PROGRAM
WO2022121243A1 (en) Calibration method and apparatus, and electronic device, storage medium, and program product
US20150271396A1 (en) Electronic device and method for image data processing
JP2014029656A (en) Image processor and image processing method
KR102118421B1 (en) Camera cursor system
CN108604128B (en) Processing method and mobile device
JP2018112894A (en) System and control method
TW201539252A (en) Touch Control System
JP2017162126A (en) Input system, input method, control program and storage medium
JP6686319B2 (en) Image projection device and image display system
CN113873159A (en) Image processing method and device and electronic equipment
JP2009222446A (en) Distance measuring device and its program
JP6342832B2 (en) Input device

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: 21901957

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21901957

Country of ref document: EP

Kind code of ref document: A1