Teaching management method, device, terminal equipment and storage medium

Through image collection and face recognition in the classroom, students' names are marked, which solves the problem of unknown students' sitting positions in remote teaching and improves the quality of teaching.

CN112347914BInactive Publication Date: 2024-10-29CHINA PING AN LIFE INSURANCE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011223994.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-05
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In remote teaching, it is difficult for teachers to accurately know where students are sitting in the classroom, resulting in a decline in teaching quality.

Method used

By controlling the shooting equipment to collect images of the classroom, perform head detection, obtain the collected images of students and perform face recognition, mark students' names, and achieve accurate display of students' sitting positions in classroom images.

Benefits of technology

It improves the teacher's accuracy in checking and naming students' sitting positions, and improves the quality of teaching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112347914B_ABST
    Figure CN112347914B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of big data technology, and provides a teaching management method, apparatus, terminal device and storage medium, wherein, by controlling a shooting device to capture images of students in a classroom according to a head display position, so as to obtain student captured images corresponding to different students, face recognition for different students is facilitated, face recognition is performed on the student captured images to obtain the student names of the students corresponding to the student captured images, and by annotating the head display positions in the classroom image according to the student names, and displaying the classroom image after the name annotating, the student names can be displayed in the classroom image according to the seat positions of different students, so that the teacher can view the student names corresponding to different seat positions in the classroom, and it is convenient for the teacher to call the roll of designated students or students in the back row to answer questions, thereby improving the teaching quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data technology, and in particular to a teaching management method, apparatus, terminal device and storage medium. Background Art

[0002] While information technology is rapidly changing society, it is also bringing greater development space to education. Microelectronics technology, communication technology, computer technology and network technology are the core of information technology, which break through the limitations of time and space for education and learning. Especially in recent years, with the development of network bandwidth, computer processing power and digital information technology, images and videos are widely used in the field of distance education.

[0003] In the existing teaching management process, teachers cannot accurately understand the seating positions of each student in the classroom during remote teaching, so when teachers need to answer questions for designated students or students sitting in the back row, they cannot accurately call the names of the corresponding students, thereby reducing the teaching quality. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a teaching management method, apparatus, terminal device and storage medium to solve the problem of poor teaching quality in the teaching management process of the prior art, because the teacher cannot accurately understand the seating position of each student in the classroom during remote teaching.

[0005] A first aspect of an embodiment of the present application provides a teaching management method, including:

[0006] Controlling the shooting device to collect images of the classroom to obtain a classroom image, and performing head detection on the classroom image to obtain a head display position;

[0007] Controlling the shooting device to collect images of students in the classroom according to the head display position to obtain student collected images;

[0008] Performing face recognition on the student's collected image to obtain the student's name;

[0009] The corresponding head display position in the classroom image is labeled with the name according to the student's name, and the classroom image with the labeled name is displayed.

[0010] Furthermore, the step of controlling the shooting device to capture images of students in the classroom according to the head display position to obtain captured images of the students includes:

[0011] Controlling the shooting device to move according to a preset moving trajectory;

[0012] If the shooting center of the shooting device during the moving process coincides with any of the head display positions, the image of the head display position is captured to obtain the student captured image.

[0013] Furthermore, the image acquisition of the head display position to obtain the student acquisition image includes:

[0014] Matching the head display position with a pre-stored focal length query table to obtain a target focal length, wherein the focal length query table stores a correspondence between different display positions and corresponding focal lengths;

[0015] The shooting device is zoomed according to the target focal length, and the image of the head display position is captured according to the zoomed shooting device to obtain the student captured image.

[0016] Furthermore, the step of labeling the corresponding head display position in the classroom image according to the student name includes:

[0017] Obtaining a face image of the student in the collected image corresponding to the student's name, and obtaining the image midpoint of the face image;

[0018] Calculate the image distance between the midpoint of the image and a preset boundary in the face image, and calculate the display distance of the student's name based on the image distance, wherein the display distance is the distance between the annotated name and the corresponding head display position;

[0019] A position whose distance from the head display position is the display distance is searched at a preset position, and a name is marked on the head display position at the searched position.

[0020] Furthermore, the calculation formula used to calculate the display distance of the student name according to the image distance is:

[0021]

[0022] f n is the target focal length corresponding to the nth student captured image, f 0 is the initial focal length of the camera, ΔP n is the image distance between the image midpoint in the nth student collected image and the preset boundary in the face image, ΔP 0 It is the display distance of the nth student captured image corresponding to the student's name.

[0023] Furthermore, after the controlling the shooting device to collect images of the classroom and obtaining the classroom images, the method further includes:

[0024] If a selection instruction for the classroom image is received, the region of interest in the classroom image is acquired according to the selection instruction, and the shooting device is controlled to capture an image of the region of interest to obtain an image of interest;

[0025] Performing face recognition on the image of interest to obtain the student's name, and annotating the image of interest with the student's name;

[0026] The image of interest annotated with the name is displayed.

[0027] Further, the controlling the photographing device to collect images of the region of interest to obtain the image of interest includes:

[0028] Calculating the pixel distance between the center point of the region of interest and the center point of the classroom image;

[0029] Rotating the photographing device according to the pixel distance until the center point of the region of interest coincides with the center point of the classroom image;

[0030] The photographing device is zoomed, and the image of the region of interest is captured according to the zoomed photographing device to obtain the image of interest.

[0031] A second aspect of the embodiment of the present application provides a teaching management device, including:

[0032] A head detection unit is used to control the shooting device to collect images of the classroom to obtain a classroom image, and to perform head detection on the classroom image to obtain a head display position;

[0033] An image acquisition unit, used for controlling the shooting device to acquire images of students in the classroom according to the display position of the head, so as to obtain images of the students;

[0034] A face recognition unit, used to perform face recognition on the student's collected image to obtain the student's name;

[0035] The name marking unit is used to mark the corresponding head display position in the classroom image according to the student's name, and display the classroom image after the name marking.

[0036] The third aspect of an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the terminal device, wherein the processor implements the steps of the teaching management method provided by the first scheme when executing the computer program.

[0037] A fourth aspect of an embodiment of the present application provides a storage medium, which stores a computer program. When the computer program is executed by a processor, each step of the teaching management method provided by the first solution is implemented.

[0038] The teaching management method, device, terminal device and storage medium provided by the embodiments of the present application have the following beneficial effects:

[0039] A teaching management method provided by an embodiment of the present application performs head detection on a classroom image to obtain the corresponding display positions of different students in the classroom image, controls a shooting device to capture images of students in the classroom according to the head display positions, to obtain student captured images corresponding to different students, thereby facilitating face recognition for different students, performs face recognition on student captured images to obtain the names of the students corresponding to the student captured images, labels the corresponding head display positions in the classroom image according to the students' names, and displays the labeled classroom image, so that the names of the students can be displayed according to the seating positions of different students in the classroom image, thereby facilitating the teacher to view the names of the students corresponding to different seating positions in the classroom, thereby facilitating the teacher to call the roll of designated students or students in the back row to answer questions, thereby improving the teaching quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0041] Figure 1 It is a flow chart of an implementation of a teaching management method provided in an embodiment of the present application;

[0042] Figure 2 is a flow chart for implementing a teaching management method provided by another embodiment of the present application;

[0043] Figure 3 is a specific implementation flow chart of the teaching management method provided by another embodiment of the present application;

[0044] Figure 4 is a flow chart of an implementation of a teaching management method provided in yet another embodiment of the present application;

[0045] Figure 5 It is a structural block diagram of a teaching management device provided in an embodiment of the present application;

[0046] Figure 6It is a structural block diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] The teaching management method involved in the embodiment of the present application can be executed by a control device or terminal (hereinafter referred to as a "mobile terminal").

[0049] See also Figure 1 , Figure 1 A flowchart of an implementation of a teaching management method provided in an embodiment of the present application is shown, including:

[0050] Step S10, controlling the shooting device to collect images of the classroom to obtain a classroom image, and performing head detection on the classroom image to obtain a head display position.

[0051] Among them, the shooting device can be selected according to needs. For example, the shooting device can be a PTZ (Pan / Tilt / Zoom) camera or a wide-angle camera. In this step, by adjusting the focal length of the shooting device, when the shooting image of the shooting device can capture all the students in the classroom, the focus adjustment of the shooting device is stopped, the currently adjusted focal length is set as the initial focal length of the shooting device, and the image of the classroom is captured according to the initial focal length to obtain a classroom image.

[0052] Specifically, in this step, head detection is performed on the classroom image to obtain the head display positions corresponding to different students in the classroom. Optionally, in this step, head detection can be performed on the classroom image by image matching or based on a neural network model to achieve the effect of automatically identifying the heads of students in the classroom image. The neural network model can adopt a classification model or a target detection model, etc.

[0053] Step S20: controlling the shooting device to capture images of students in the classroom according to the display position of the human head to obtain captured images of the students.

[0054] Among them, the shooting device is controlled to move according to the head display position, so that the shooting screen of the shooting device is aimed at the students corresponding to different head display positions to collect images, so as to obtain the collected images of the students.

[0055] Optionally, a device movement control table is pre-stored in this step, and the device movement control table stores the correspondence between different head display positions and corresponding shooting information, and the shooting information includes parameter information such as shooting coordinates, shooting focal length, shooting angle or shooting height. Therefore, in this step, the target shooting information is obtained by matching the head display position with the device movement control table, and the shooting device is controlled to move based on the target shooting information, so that the shooting screen of the shooting device is aimed at the student corresponding to the head display position to acquire the image, so as to obtain the captured image of the student.

[0056] Specifically, in this step, the shooting screen of the shooting device is controlled to aim at the students corresponding to different head display positions to obtain student captured images, which effectively facilitates the subsequent face recognition of students corresponding to different head display positions, prevents recognition interference caused by simultaneous face recognition of multiple different students, and improves the accuracy of subsequent face recognition.

[0057] Step S30, performing face recognition on the student collected image to obtain the student's name, and marking the corresponding head display position in the classroom image with the student's name.

[0058] Among them, the face recognition of the student's collected image can be performed by image matching or a method based on a neural network model, so that the student names of the corresponding students in different student collected images can be automatically obtained.

[0059] Optionally, in this step, the student information of the corresponding student can be queried based on the obtained student name, and the student information includes information such as the student's age, student class or student number, and when the corresponding head display position in the classroom image is marked with the student name, the student information can also be marked with the corresponding head display position at the same time, so that subsequent teachers can intuitively view the student information of students corresponding to different head display positions based on the student information marking in the classroom image.

[0060] Optionally, in this step, the name labeling and student information labeling can be marked by image overlay or annotation. For example, when the image overlay method is used for labeling, the recognized student name or student information will be overlaid on the image of the corresponding head display position to achieve the effect of directly displaying the student name or student information on the classroom image, which effectively facilitates the teacher to check the location of each student.

[0061] In this step, when annotations are used to mark student names or student information, the student names or student information are annotated on the image corresponding to the head display position through a preset annotation box or preset annotation line to achieve the effect of displaying the student names or student information using annotations.

[0062] Step S40, displaying the classroom image with the names annotated.

[0063] Among them, the communication address corresponding to the teacher is queried, and the classroom image with the name marked is displayed to the teacher based on the queried communication address. The communication address can be a tablet communication address, computer communication address or any APP port address with image display function pre-set by the teacher.

[0064] In this embodiment, head detection is performed on the classroom image to obtain the corresponding display positions of different students in the classroom image, and the shooting device is controlled to capture images of students in the classroom according to the head display positions to obtain student captured images corresponding to different students, thereby facilitating face recognition for different students, and face recognition is performed on the student captured images to obtain the names of the students corresponding to the student captured images, and the corresponding head display positions in the classroom image are labeled according to the students' names, and the classroom image with the labeled names is displayed, so that the student names can be displayed in the classroom image according to the seating positions of different students, which facilitates the teacher to check the student names corresponding to different seating positions in the classroom, and further facilitates the teacher to call the roll of designated students or students in the back row to answer questions, thereby improving the teaching quality.

[0065] See also Figure 2 , Figure 2 is a flowchart of a teaching management method provided by another embodiment of the present application. Figure 1 Corresponding embodiment, the teaching management method provided in this embodiment is Figure 1 The further refinement of step S20 in the corresponding embodiment includes:

[0066] S21, controlling the shooting device to move according to a preset moving trajectory.

[0067] The preset moving trajectory can be set according to the requirements. For example, the preset moving trajectory can be set to a "Z"-shaped moving trajectory, an "S"-shaped moving trajectory or a "bow"-shaped moving trajectory.

[0068] S22, if the shooting center of the shooting device during the moving process coincides with any of the head display positions, then an image is captured at the head display position to obtain the student captured image.

[0069] If the shooting center of the shooting device during the movement coincides with any head display position, it is necessary to collect images of the currently coincident head display position to obtain the student collected image corresponding to the head display position.

[0070] In this step, after image capture is performed on the head display position to obtain the student capture image, the camera device is continued to be controlled to move according to the preset movement trajectory until the camera device meets the preset end condition, and the movement control of the camera device is stopped. The preset end condition can be set according to needs. For example, the preset end condition can be set to determine whether the camera device has captured the corresponding student capture images for all head display positions. If it is determined that the camera device has captured the corresponding student capture images for all head display positions, it is determined that the camera device meets the preset end condition. The preset end condition can be set to determine whether the camera device has completed the preset movement trajectory. If it is determined that the camera device has completed the preset movement trajectory, it is determined that the camera device meets the preset end condition.

[0071] Optionally, in this step, the image acquisition of the head display position to obtain the student acquisition image includes:

[0072] Matching the head display position with a pre-stored focal length lookup table to obtain a target focal length;

[0073] The shooting device is zoomed according to the target focal length, and the image of the head display position is captured according to the zoomed shooting device to obtain the student captured image.

[0074] Among them, the focal length query table stores the correspondence between different display positions and corresponding focal lengths, and the focal lengths stored in the focal length query table are all greater than the initial focal length of the shooting device. In this step, the target focal length is obtained by matching the display position of the head with the focal length query table, and the shooting device is zoomed according to the target focal length, so that the shooting picture of the shooting device can be effectively enlarged, thereby increasing the image resolution of the student's captured image, preventing face recognition errors caused by low resolution of the student's captured image, and improving the accuracy of face recognition of subsequent student-collected images.

[0075] Optionally, when the preset moving trajectory is a "Z"-shaped moving trajectory or a "bow"-shaped moving trajectory, each time an image capture of a horizontal head display position is completed, the focus of the shooting device is adjusted according to the preset focal length, and the image of the next horizontal head display position is captured by the shooting device after the focal length adjustment. For example, when the shooting device adopts a "Z"-shaped moving trajectory from top to bottom, since the image captured by the shooting device when capturing the back of the classroom is relatively small, each time an image capture of a horizontal head display position is completed, the focal length of the shooting device is reduced according to the preset focal length, and the image of the next horizontal head display position is captured by the shooting device after the focal length is reduced. When the shooting device adopts a "Z"-shaped moving trajectory from bottom to top, since the image captured by the shooting device when capturing the front of the classroom is relatively large, each time an image capture of a horizontal head display position is completed, the focal length of the shooting device is increased according to the preset focal length, and the image of the next horizontal head display position is captured by the shooting device after the focal length is increased.

[0076] For details, please refer to Figure 3 , is a specific implementation flow chart of the teaching management method provided by this embodiment. In this embodiment, the PTZ camera is controlled to obtain a picture of the maximum field of view in the classroom with an initial focal length to obtain the classroom image, and the PTZ camera is moved to the lower left corner of the classroom image, and the classroom is horizontally scanned according to the "Z"-shaped movement trajectory or the PTZ camera is controlled. If the shooting center of the PTZ camera during the horizontal scanning process coincides with any head display position, image acquisition is performed to obtain the student acquisition image, and face recognition is performed on the student acquisition image to obtain the student name, and the corresponding head display position in the classroom image is marked with a name according to the student name. If the PTZ camera completes the horizontal scanning, the PTZ camera is controlled to rotate once in the vertical direction, and while rotating vertically, it is determined whether it coincides with the head display position. If the PTZ camera completes the vertical scanning, the focal length of the PTZ camera is increased, and the PTZ camera with the increased focal length is re-scanned in the horizontal direction until the image scanning of the classroom is completed.

[0077] The focal length of the shooting device is adjusted according to the preset focal length, and the image of the next horizontal head display position is collected according to the shooting device after the focal length adjustment.

[0078] Furthermore, in this embodiment, for Figure 1 In the corresponding embodiment, step S30, the step of labeling the corresponding head display position in the classroom image according to the student's name, includes:

[0079] Obtaining a face image of the student in the collected image corresponding to the student's name, and obtaining the image midpoint of the face image;

[0080] Calculating the image distance between the midpoint of the image and a preset boundary in the face image, and calculating the display distance of the student's name based on the image distance;

[0081] A position whose distance from the head display position is the display distance is searched at a preset position, and a name is marked on the head display position at the searched position.

[0082] Among them, the display distance is the distance between the name and the corresponding head display position after the name is marked. The preset direction can be set according to needs. For example, the preset direction can be set to the top, bottom, left or right. When the preset direction is above and the display distance is 1 cm, a position 1 cm away from the head display position is searched above the head display position, and the name of the head display position is marked at the found position.

[0083] Optionally, the calculation formula used to calculate the display distance of the student name according to the image distance is:

[0084]

[0085] f n is the target focal length corresponding to the nth student captured image, f 0 is the initial focal length of the camera, ΔP n is the image distance between the image midpoint in the nth student collected image and the preset boundary in the face image, ΔP 0 It is the display distance of the nth student captured image corresponding to the student's name.

[0086] In this embodiment, the camera device is controlled to move according to a preset moving trajectory so that the shooting center of the camera device can coincide with different head display positions respectively, and when the shooting center of the camera device during the movement coincides with any head display position, the head display position is imaged to obtain a student captured image corresponding to the head display position, thereby improving the accuracy of obtaining the student captured image, and the target focal length is obtained by matching the head display position with the focal length query table, and the camera device is zoomed according to the target focal length, so that the shooting picture of the camera device can be effectively enlarged, thereby preventing face recognition errors caused by low resolution of the student captured image, and improving the accuracy of face recognition of subsequent student captured images, and by calculating the image distance between the image midpoint and the preset boundary in the face image, and calculating the display distance of the student name according to the image distance, the accuracy of name labeling at the head display position is effectively improved, thereby improving the accuracy of student name display in the classroom image.

[0087] See also Figure 4, Figure 4 is a flowchart of a teaching management method provided by another embodiment of the present application. Figure 1 Corresponding to the embodiment, the teaching management method provided in this embodiment controls the shooting device to collect images of the classroom in step S10, and after obtaining the classroom image, further includes:

[0088] Step S50: If a selection instruction for the classroom image is received, the region of interest in the classroom image is acquired according to the selection instruction, and the shooting device is controlled to capture an image of the region of interest to obtain an image of interest.

[0089] Among them, the selection instruction carries a region identifier, which is used to point to the corresponding region of interest (ROI region). In this step, by receiving the selection instruction for the classroom image and obtaining the design of the ROI region according to the selection instruction, it is effectively convenient for the teacher to view the region of interest.

[0090] Optionally, in this step, controlling the photographing device to capture an image of the region of interest to obtain an image of interest includes:

[0091] Calculating the pixel distance between the center point of the region of interest and the center point of the classroom image;

[0092] Rotating the photographing device according to the pixel distance until the center point of the region of interest coincides with the center point of the classroom image;

[0093] The photographing device is zoomed, and the image of the region of interest is captured according to the zoomed photographing device to obtain the image of interest.

[0094] Step S60, performing face recognition on the image of interest to obtain the student's name, and labeling the image of interest according to the student's name.

[0095] Among them, by performing face recognition on the ROI area, it is effectively convenient for teachers to check the names of students in the ROI area.

[0096] Step S70, displaying the image of interest after the name is annotated.

[0097] Among them, based on the display of the image of interest after the name is annotated, the behavior analysis of the students in the ROI area can be performed to determine whether the corresponding students are in a state of absenteeism;

[0098] Specifically, in this step, the facial features of the student's facial image in the ROI area are identified to determine whether the corresponding student is in a talking state, playing with a mobile phone state or sleeping state. The student's facial image includes eye features, mouth shape features, head elevation angle features, etc.;

[0099] If it is determined that the student is talking, playing with the mobile phone or sleeping, the image of the absent-minded student will be automatically highlighted to remind the teacher that the student corresponding to the ROI area is absent-minded. The image highlighting includes highlighting display or color marking display.

[0100] In this embodiment, the area of ​​interest in the classroom image is obtained according to the selection instruction, and the shooting device is controlled to capture the image of the area of ​​interest, so that the teacher can effectively obtain the image corresponding to the area of ​​interest in the classroom, and obtain the student name by performing face recognition on the image of interest, and display the image of interest with the name marked, so that the corresponding student name in the area of ​​interest can be effectively displayed, which is convenient for the teacher to check the absent students in the area of ​​interest.

[0101] In all embodiments of the present application, the name-annotated classroom image is obtained by annotating the corresponding head display position in the classroom image based on the student's name. Specifically, the name-annotated classroom image is obtained by annotating the corresponding head display position in the classroom image with the student's name. Uploading the name-annotated classroom image to the blockchain can ensure its security and fairness and transparency to users. The user device can download the name-annotated classroom image from the blockchain to verify whether the name-annotated classroom image has been tampered with. The blockchain referred to in this example is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods, each of which contains a batch of network transaction information for verifying the validity of its information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product service layer, and an application service layer.

[0102] See also Figure 5 , Figure 5 1 is a structural block diagram of a teaching management device 100 provided in an embodiment of the present application. In this embodiment, the teaching management device 100 includes various units for executing Figure 1 , Figure 2 , Figure 4 For details, please refer to the steps in the corresponding embodiment. Figure 1 , Figure 2 , Figure 4 as well as Figure 1 , Figure 2 , Figure 4 For the convenience of explanation, only the parts related to this embodiment are shown. Figure 5 The teaching management device 100 includes: a head detection unit 10, an image acquisition unit 11, a face recognition unit 12 and a name labeling unit 13, wherein:

[0103] The head detection unit 10 is used to control the shooting device to collect images of the classroom to obtain a classroom image, and perform head detection on the classroom image to obtain a head display position.

[0104] The image acquisition unit 11 is used to control the shooting device to acquire images of the students in the classroom according to the display position of the head, so as to obtain images of the students.

[0105] The image acquisition unit 11 is further used to: control the shooting device to move according to a preset moving trajectory;

[0106] If the shooting center of the shooting device during the moving process coincides with any of the head display positions, the image of the head display position is captured to obtain the student captured image.

[0107] Optionally, the image acquisition unit 11 is further used to: match the head display position with a pre-stored focal length query table to obtain a target focal length, wherein the focal length query table stores a correspondence between different display positions and corresponding focal lengths;

[0108] The shooting device is zoomed according to the target focal length, and the image of the head display position is captured according to the zoomed shooting device to obtain the student captured image.

[0109] The face recognition unit 12 is used to perform face recognition on the student's collected image to obtain the student's name.

[0110] The name marking unit 13 is used to mark the corresponding head display position in the classroom image according to the student name, and display the classroom image after the name marking.

[0111] The name tagging unit 13 is further used to: obtain a face image in the student's collected image corresponding to the student's name, and obtain the image midpoint of the face image;

[0112] Calculate the image distance between the midpoint of the image and a preset boundary in the face image, and calculate the display distance of the student's name based on the image distance, wherein the display distance is the distance between the annotated name and the corresponding head display position;

[0113] A position whose distance from the head display position is the display distance is searched at a preset position, and a name is marked on the head display position at the searched position.

[0114] Optionally, the calculation formula used to calculate the display distance of the student name according to the image distance is:

[0115]

[0116] f n is the target focal length corresponding to the nth student captured image, f 0 is the initial focal length of the camera, ΔP n is the image distance between the image midpoint in the nth student collected image and the preset boundary in the face image, ΔP 0 It is the display distance of the nth student captured image corresponding to the student's name.

[0117] Optionally, in this embodiment, the teaching management device 100 further includes:

[0118] The region of interest display unit 14 is used to obtain the region of interest in the classroom image according to the selection instruction if a selection instruction for the classroom image is received, and control the shooting device to collect an image of the region of interest to obtain an image of interest;

[0119] Performing face recognition on the image of interest to obtain the student's name, and annotating the image of interest with the student's name;

[0120] The image of interest annotated with the name is displayed.

[0121] Optionally, the region of interest display unit 14 is further used to: calculate the pixel distance between the center point of the region of interest and the center point of the classroom image;

[0122] Rotating the photographing device according to the pixel distance until the center point of the region of interest coincides with the center point of the classroom image;

[0123] The photographing device is zoomed, and the image of the region of interest is captured according to the zoomed photographing device to obtain the image of interest.

[0124] From the above, it can be seen that by performing head detection on the classroom image to obtain the corresponding display positions of different students in the classroom image, by controlling the shooting equipment to collect images of students in the classroom according to the head display positions, to obtain student collection images corresponding to different students, face recognition for different students is facilitated, and face recognition is performed on the student collection images to obtain the student names of the students corresponding to the student collection images. By marking the corresponding head display positions in the classroom image according to the students' names, and displaying the classroom image with the marked names, the student names can be displayed according to the sitting positions of different students in the classroom image, which is convenient for teachers to check the student names corresponding to different sitting positions in the classroom, and further facilitates the teacher to call the roll of designated students or students in the back row to answer questions, thereby improving the teaching quality.

[0125] Figure 6 2 is a block diagram of a terminal device 2 provided in another embodiment of the present application. Figure 6 As shown, the terminal device 2 of this embodiment includes: a processor 20, a memory 21, and a computer program 22 stored in the memory 21 and executable on the processor 20, such as a program of the teaching management method. When the processor 20 executes the computer program 23, the steps in each embodiment of the above-mentioned teaching management method are implemented, such as Figure 1 S10 to S40 as shown, or Figure 2 S21 to S22 as shown, or Figure 4 Alternatively, the processor 20 implements the above when executing the computer program 22 Figure 5 The functions of each unit in the corresponding embodiment are, for example, Figure 5 For details on the functions of units 10 to 14 shown, please refer to Figure 6 The relevant descriptions in the corresponding embodiments are not repeated here.

[0126] Exemplarily, the computer program 22 may be divided into one or more units, which are stored in the memory 21 and executed by the processor 20 to complete the present application. The one or more units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 22 in the terminal device 2. For example, the computer program 22 may be divided into a head detection unit 10, an image acquisition unit 11, a face recognition unit 12, a name labeling unit 13, and an area of ​​interest display unit 14, and the specific functions of each unit are as described above.

[0127] The terminal device may include, but is not limited to, a processor 20 and a memory 21. Those skilled in the art will appreciate that Figure 6It is only an example of the terminal device 2 and does not constitute a limitation of the terminal device 2. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.

[0128] The processor 20 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0129] The memory 21 may be an internal storage unit of the terminal device 2, such as a hard disk or memory of the terminal device 2. The memory 21 may also be an external storage device of the terminal device 2, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 2. Further, the memory 21 may also include both an internal storage unit and an external storage device of the terminal device 2. The memory 21 is used to store the computer program and other programs and data required by the terminal device. The memory 21 may also be used to temporarily store data that has been output or is to be output.

[0130] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A teaching management method, characterized in that: include: Controlling the shooting device to collect images of the classroom to obtain a classroom image, and performing head detection on the classroom image to obtain a head display position; Controlling the shooting device to collect images of students in the classroom according to the head display position to obtain student collected images; Performing face recognition on the student's collected image to obtain the student's name; Marking the corresponding head display position in the classroom image according to the student's name, and displaying the classroom image after the name marking; The step of controlling the shooting device to capture images of students in the classroom according to the head display position to obtain captured images of the students includes: Controlling the shooting device to move according to a preset moving trajectory; If the shooting center of the shooting device during the moving process coincides with any of the head display positions, the head display position is matched with a pre-stored focal length query table to obtain a target focal length, wherein the focal length query table stores a correspondence between different display positions and corresponding focal lengths; Zooming the shooting device according to the target focal length, and collecting an image of the head display position according to the zoomed shooting device to obtain the student collection image; The step of labeling the corresponding head display position in the classroom image according to the student name includes: Obtaining a face image of the student in the collected image corresponding to the student's name, and obtaining the image midpoint of the face image; Calculate the image distance between the midpoint of the image and a preset boundary in the face image, and calculate the display distance of the student's name based on the image distance, wherein the display distance is the distance between the annotated name and the corresponding head display position; Searching for a position at a preset position that is at the display distance from the head display position, and marking the head display position with a name at the searched position; The calculation formula used to calculate the display distance of the student name according to the image distance is: f n is the target focal length corresponding to the nth student captured image, f0 is the initial focal length of the shooting device, ΔP n is the image distance between the midpoint of the image in the nth student collected image and the preset boundary in the face image, and ΔP0 is the display distance of the nth student collected image corresponding to the student's name.

2. The teaching management method according to claim 1, characterized in that: After the controlling the shooting device to collect images of the classroom and obtaining the classroom images, the method further includes: If a selection instruction for the classroom image is received, the region of interest in the classroom image is acquired according to the selection instruction, and the shooting device is controlled to capture an image of the region of interest to obtain an image of interest; Performing face recognition on the image of interest to obtain the student's name, and annotating the image of interest with the student's name; The image of interest annotated with the name is displayed.

3. The teaching management method according to claim 2, characterized in that: The controlling the shooting device to collect images of the region of interest to obtain an image of interest includes: Calculating the pixel distance between the center point of the region of interest and the center point of the classroom image; Rotating the photographing device according to the pixel distance until the center point of the region of interest coincides with the center point of the classroom image; The photographing device is zoomed, and the image of the region of interest is captured according to the zoomed photographing device to obtain the image of interest.

4. A teaching management device, characterized in that: include: A head detection unit is used to control the shooting device to collect images of the classroom to obtain a classroom image, and to perform head detection on the classroom image to obtain a head display position; An image acquisition unit, used for controlling the shooting device to acquire images of students in the classroom according to the display position of the head, so as to obtain images of the students; A face recognition unit, used to perform face recognition on the student's collected image to obtain the student's name; A name marking unit, used to mark the corresponding head display position in the classroom image according to the student's name, and display the classroom image after the name marking; The image acquisition unit is specifically used for: Controlling the shooting device to move according to a preset moving trajectory; If the shooting center of the shooting device during the moving process coincides with any of the head display positions, the head display position is matched with a pre-stored focal length query table to obtain a target focal length, wherein the focal length query table stores a correspondence between different display positions and corresponding focal lengths; Zooming the shooting device according to the target focal length, and collecting an image of the head display position according to the zoomed shooting device to obtain the student collection image; The name marking unit is specifically used for: Obtaining a face image of the student in the collected image corresponding to the student's name, and obtaining the image midpoint of the face image; Calculate the image distance between the midpoint of the image and a preset boundary in the face image, and calculate the display distance of the student's name based on the image distance, wherein the display distance is the distance between the annotated name and the corresponding head display position; Searching for a position at a preset position that is at the display distance from the head display position, and marking the head display position with a name at the searched position; The calculation formula used to calculate the display distance of the student name according to the image distance is: f n is the target focal length corresponding to the nth student captured image, f0 is the initial focal length of the shooting device, ΔP n is the image distance between the midpoint of the image in the nth student collected image and the preset boundary in the face image, and ΔP0 is the display distance of the nth student collected image corresponding to the student's name.

5. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.

6. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Class name prompting method based on face recognition

    CN109977850A

  • Student identification method and device

    CN110378261A