Criminal court anomaly detection method and device
Using video image recognition technology to automatically determine the escort configuration of criminal court bailiffs solves the problems of low efficiency and poor accuracy of manual inspections in the existing technology, and achieves fast and accurate compliance detection of bailiff configurations.
Patent Information
- Application Number
- CN202410695536.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-06
AI Technical Summary
The existing judicial police escort compliance verification in criminal courts relies on manual inspections, resulting in low efficiency, waste of manpower, poor accuracy, and failure to detect unreasonable configurations in a timely manner.
By acquiring criminal court video images, the number, gender, and location of defendants and bailiffs are identified, and the escort configuration is automatically determined whether it meets the preset ratio and gender requirements, and compliant or non-compliant results are output to achieve rapid detection without human participation.
Without the participation of anyone, the unreasonable number and gender allocation of judicial officers can be discovered automatically and quickly, which improves detection efficiency, reduces manpower waste, and ensures compliance and accuracy.
Smart Images

Figure CN118609044A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of criminal court compliance detection, and in particular to a criminal court anomaly detection method and device. Background Art
[0002] At the time of the current criminal case trial, the criminal defendant needs to enter the court under the escort of the bailiff, and the ratio between the escorting bailiff and the criminal defendant must not be less than 2:1, that is, when there is 1 criminal defendant, the number of escorting bailiffs must be no less than 2, otherwise it will be considered a violation. In addition, for female criminal defendants, at least one female bailiff must be assigned, otherwise it will also be considered a violation.
[0003] In the prior art, the self-inspection method is usually used to judge whether the escort of bailiffs in criminal courts is in compliance with the regulations. Specifically, the personnel responsible for supervision of the bailiff department conducts court inspections, or logs into the court system to view the trial audio and video for video inspection. Conducting a 1:1 manual inspection of each trial (i.e., if the trial lasts for 1 hour, the manual inspection work will take 1 hour), which consumes a lot of manpower and has the problems of low efficiency and poor accuracy.
[0004] In addition, existing court trial videos are mainly used to record the court trial process so that the trial process can be traced later. There is no technical solution for conducting compliance detection of bailiff escort by analyzing court trial images. Summary of the invention
[0005] The present invention is used to solve the problems of waste of manpower and low efficiency in the existing manual compliance verification of bailiff escort in criminal courts.
[0006] In order to solve the above technical problems, the present invention provides a criminal court anomaly detection method, comprising:
[0007] Obtaining video images of the defendant's dock in a criminal court;
[0008] Identify the video image to obtain a sub-image of the total number of people at the defendant's seat and the area of the people;
[0009] When the total number of people is greater than 1, the sub-image is identified to obtain defendant information and bailiff information, wherein the defendant information includes the number, gender and position of the defendants, and the bailiff information includes the number, gender and position of the bailiffs;
[0010] According to the defendant information and bailiff information, determine whether it complies with the preset configuration information. If so, output that the escort bailiff configuration is compliant; if not, output that the configuration is not compliant. The preset configuration information includes the ratio of the defendant to the bailiff, the gender ratio of the defendant to the bailiff, and the position.
[0011] As a further embodiment of the present invention, identifying the sub-image to obtain the defendant information and the bailiff information includes:
[0012] Identify the features of the bailiff in the sub-image, and determine the position of the defendant and the bailiff according to the identification result, wherein the features of the bailiff include features of police uniform and police hat;
[0013] According to the sub-images with the features of the bailiffs identified, the total number of bailiffs is obtained by counting;
[0014] For the sub-image with the features of the bailiff identified, determine whether the features of the police hat identified in the sub-image meet the preset features of the police hat of a female police officer. If yes, determine that the gender of the bailiff in the sub-image is female. Otherwise, determine that the gender of the bailiff in the sub-image is male.
[0015] Determine the number of bailiffs of each gender according to the gender of the bailiff corresponding to the sub-image with the bailiff features identified;
[0016] Determine the number of defendants based on the number of defendants’ locations;
[0017] For each sub-image at the defendant's position, female feature information is extracted from the sub-image. If the extraction is successful, the gender of the defendant at the defendant's position is determined to be female. Otherwise, the gender of the defendant at the defendant's position is determined to be male.
[0018] As a further embodiment of the present invention, the criminal court anomaly detection method further includes:
[0019] Identify the sub-image at the defendant's position to obtain the defendant's facial features;
[0020] Obtain the facial features of defendants in current trials from the criminal case database;
[0021] The defendant’s facial features are matched with the facial features of the defendant in the current trial obtained from the criminal case database. If the match is successful, the defendant’s identity is determined to be normal.
[0022] As a further embodiment of the present invention, the criminal court anomaly detection method further includes:
[0023] Access to audio messages in criminal courts;
[0024] Recognize voice information to obtain the defendant's name information;
[0025] Based on the defendant's name information, determine the gender information of the bailiff escorting the defendant from the criminal case database;
[0026] Determine whether the gender information of the bailiff obtained from the criminal case database is consistent with the gender information obtained by identification. If not, issue an alarm.
[0027] As a further embodiment of the present invention, if the extraction of female features fails, the defendant's gender is determined to be male as follows:
[0028] Access to audio messages in criminal courts;
[0029] Recognize voice information to obtain the defendant's name information;
[0030] According to the defendant's name information and current trial information, the defendant's gender information is obtained from the trial database.
[0031] As a further embodiment of the present invention, the criminal court anomaly detection method further includes:
[0032] Acquire the image of the gallery area;
[0033] Identify user behavior in the gallery area image;
[0034] Compare the identified user behavior with the behavior in the violation database;
[0035] Determine whether the user behavior is abnormal based on the comparison results.
[0036] As a further embodiment of the present invention, identifying user behavior in the image of the public gallery area includes:
[0037] Locating a hand region sub-image and a region dividing line sub-image from the audience area image of each frame, wherein the region dividing line is used to divide the audience area and the trial area;
[0038] Identify whether the hand area sub-image has a smart device feature, and if so, extract the pixel value at the smart device;
[0039] Determine whether the pixel value at the smart device is a preset bright screen pixel value, and if so, determine that there is an image acquisition risk behavior in the image of the audience area;
[0040] Extract the pixel value of the area division line sub-image, and determine whether the pixel value of the area division line sub-image is the preset area division line pixel value. If not, it is determined that there is a risk of a person crossing the line in the audience area image; or
[0041] The head and shoulder targets are located in each frame of the gallery area image, and the movement trajectory of each head and shoulder target is tracked. When the movement trajectory overlaps with the area dividing line, it is determined that there is a risk of people crossing the line in the gallery area image.
[0042] A second aspect of the present invention provides a criminal court anomaly detection device, comprising:
[0043] an image acquisition unit for acquiring a video image of a defendant's seat in a criminal court;
[0044] A first recognition unit is used to recognize the video image to obtain a sub-image of the total number of people and the personnel area at the defendant's seat;
[0045] A second recognition unit is used to recognize the sub-image to obtain defendant information and bailiff information when the total number of people is greater than 1, wherein the defendant information includes the number, gender and position of the defendants, and the bailiff information includes the number, gender and position of the bailiffs;
[0046] The anomaly detection unit is used to determine whether the information of the defendant and the bailiff meets the preset configuration information based on the information of the defendant and the bailiff. If so, it outputs that the configuration of the escorting bailiff is compliant; if not, it outputs that the configuration is not compliant; wherein the preset configuration information includes the ratio of the defendant to the bailiff, the gender ratio of the defendant to the bailiff, and the position.
[0047] The third aspect of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in any of the foregoing embodiments when executing the computer program.
[0048] A fourth aspect of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of a computer device, the method described in any of the previous embodiments is implemented.
[0049] The criminal court anomaly detection method and device provided by the present invention obtain a video image of the defendant's seat in the criminal court; identify the video image to obtain the total number of people at the defendant's seat and a sub-image of the personnel area; when the total number of people is greater than 1, identify the sub-image to obtain defendant information and bailiff information, wherein the defendant information includes the number, gender and position of the defendants, and the bailiff information includes the number, gender and position of the bailiffs; determine whether the preset configuration information is met based on the defendant information and the bailiff information, and if so, output that the escort bailiff configuration is compliant, and if not, output that the configuration is non-compliant. The method and device can automatically and quickly discover the unreasonable configuration of the number and gender of bailiffs in the criminal court without human participation, and can make timely corrections based on the non-compliant behavior.
[0050] In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 A first flow chart of the criminal court anomaly detection method according to an embodiment of the present invention is shown;
[0053] Figure 2 A second flow chart of the criminal court anomaly detection method according to an embodiment of the present invention is shown;
[0054] Figure 3 A third flow chart of the criminal court anomaly detection method according to an embodiment of the present invention is shown;
[0055] Figure 4 A fourth flow chart of the criminal court anomaly detection method according to an embodiment of the present invention is shown;
[0056] Figure 5 A fifth flow chart of the criminal court anomaly detection method according to an embodiment of the present invention is shown;
[0057] Figure 6 A fifth flow chart of the criminal court anomaly detection method according to an embodiment of the present invention is shown;
[0058] Figure 7 A structural diagram of a criminal court anomaly detection device according to an embodiment of the present invention is shown;
[0059] Figure 8 A structural diagram of a computer device according to an embodiment of the present invention is shown.
[0060] Description of the accompanying symbols:
[0061] 101. Image acquisition equipment;
[0062] 102. Analytical equipment;
[0063] 701, image acquisition unit;
[0064] 702, first identification unit;
[0065] 703, second identification unit;
[0066] 704, anomaly detection unit;
[0067] 802. Computer equipment;
[0068] 804, processor;
[0069] 806. Memory;
[0070] 808, driving mechanism;
[0071] 810, input / output module;
[0072] 812. Input device;
[0073] 814. Output device;
[0074] 816. Presentation equipment;
[0075] 818. Graphical user interface;
[0076] 820, network interface;
[0077] 822, communication link;
[0078] 824. Communication bus. DETAILED DESCRIPTION
[0079] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0080] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0081] This specification provides method operation steps as described in the embodiments or flow charts, but more or fewer operation steps may be included based on routine or non-creative work. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the system or device product is executed in practice, it can be executed in the order of the method shown in the embodiments or the drawings or in parallel.
[0082] It should be noted that the information (including but not limited to information on the defendant and bailiffs, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data comply with relevant laws, regulations and standards of relevant countries and regions.
[0083] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0084] During the trial, the criminal court needs to assign escort bailiffs to the defendant (unless otherwise specified, bailiffs refer to escort bailiffs), and the ratio between escort bailiffs and criminal defendants must not be less than 2:1, that is, when the number of criminal defendants is 1, the number of escort bailiffs must be no less than 2, otherwise it will be considered a violation. In addition, for female defendants, at least female bailiffs are required. The escort bailiffs and the defendants have fixed seats. The escort bailiffs are responsible for escorting the defendant to the courtroom and are responsible for the custody of the defendant throughout the trial. In existing criminal courts, the compliance of the bailiff escort configuration is determined by manual inspections or full manual participation in the trial. This method has the problems of wasting manpower, low efficiency, and failure to detect anomalies in a timely manner. In order to solve this technical problem, the present invention, on the one hand, provides a criminal court anomaly detection system. Specifically, Figure 1 As shown, the criminal court anomaly detection system includes: an image acquisition device 101 and an analysis device 102.
[0085] The image acquisition device 101 is arranged at a position opposite to the defendant's seat in the criminal court trial scene, and is used to acquire video images of the defendant's seat in the criminal court. The acquisition frequency of the image acquisition device 101 can be preset, and the present invention does not limit this.
[0086] The analysis device 102 is integrated in the monitoring room or set at the server end, and is used to receive the video image of the defendant's seat in the criminal court obtained by the image acquisition device 101; identify the video image to obtain the total number of people at the defendant's seat and the sub-image of the personnel area; when the total number of people is greater than 1, identify the sub-image to obtain the defendant information and bailiff information, wherein the defendant information includes the number, gender and position of the defendants, and the bailiff information includes the number, gender and position of the bailiffs; determine whether it complies with the preset configuration information based on the defendant information and the bailiff information, if so, output that the escort bailiff configuration is compliant, if not, output that the configuration is non-compliant; wherein the preset configuration information includes the configuration ratio of the defendant and the bailiff, and the gender ratio and position of the defendant and the bailiff.
[0087] Specifically, the analysis device 102 can determine whether the court session has been opened by first analyzing whether the total number of people at the defendant's seat is greater than 1. Only after the court session has been confirmed, the subsequent processing flow can be entered, thereby avoiding wasting analysis resources when the court session has not been opened. Specifically, when the total number of people is greater than 1, it means that the court session has been opened. If the total number of people is equal to 1, it may be that the cleaning staff entered the defendant's seat while cleaning.
[0088] In this embodiment, the preset configuration information is pre-set according to the criminal court's restrictions on the number, gender, and position of bailiffs and defendants. For example, the ratio of the number of defendants to the number of bailiffs is not less than 2:1, and when there is a female defendant, there must be at least one female bailiff on both sides of the female defendant.
[0089] Specifically, according to the defendant information and the bailiff information, determining whether the preset configuration information is met includes: firstly calculating the ratio of the defendant to the bailiff according to the number of the defendant and the number of the bailiff, and judging whether the ratio of the defendant to the bailiff meets the preset ratio requirement, if the ratio of the defendant to the bailiff meets the preset ratio requirement, then outputting that the bailiff configuration is unreasonable, if the ratio of the defendant to the bailiff does not meet the preset ratio requirement, then judging whether the defendant is female, if female, then determining whether there is at least one female bailiff on both sides of the defendant, if yes, then determining that the gender of the bailiff meets the configuration requirement, if not, then determining that the gender configuration of the bailiff is unreasonable. If the defendant is male and there is a female bailiff, then determining that the gender configuration of the bailiff is unreasonable.
[0090] This embodiment can automatically and quickly discover the unreasonable number and gender configuration of bailiffs in the criminal court without human intervention.
[0091] In one embodiment of the present invention, a criminal court anomaly detection method is also provided. Figure 2 As shown, including:
[0092] Step 201, obtaining a video image of the defendant's seat in a criminal court.
[0093] When this step is implemented, a video image is obtained from an image acquisition device (such as a camera) facing the defendant's seat. The image acquisition device can capture images within a certain range near the defendant's seat, and the certain range at least includes the defendant's image and the images of the bailiffs on the left and right sides of the defendant.
[0094] Step 202, identify the video image to obtain the total number of people at the defendant's seat and the sub-image of the personnel area.
[0095] In this step, the total number of people can be determined by identifying facial features, and the sub-image of the personnel area can be located based on the facial features. Specifically, the sub-image of the personnel area contains at least facial and neck information.
[0096] Step 203, when the total number of people is greater than 1, identify the sub-image to obtain the defendant information and bailiff information, wherein the defendant information includes the number, gender and position of the defendants, and the bailiff information includes the number, gender and position of the bailiffs.
[0097] In specific implementation, if the total number of people is less than 1, it means that the number of people in the dock is 0. If the total number of people is equal to 1, it may be because the cleaning staff entered the dock during cleaning, resulting in the identification result of 1. In the case where the total number of people is less than or equal to 1, no trial was held.
[0098] Step 204, based on the defendant information and the bailiff information, determine whether it complies with the preset configuration information. If so, output that the escort bailiff configuration is compliant; if not, output that the configuration is not compliant; wherein the preset configuration information includes the ratio of the defendant to the bailiff, the gender ratio of the defendant to the bailiff, and the position.
[0099] In one embodiment of the present invention, Figure 3 As shown, identifying the sub-image to obtain the defendant information and the bailiff information includes:
[0100] Step 301, identifying the features of the bailiff in the sub-image, and determining the position of the defendant and the bailiff according to the identification result, wherein the features of the bailiff include the features of the police uniform and the features of the police hat.
[0101] In detail, the bailiff features may also include a police badge. The area where the bailiff features can be identified is the bailiff position, and the remaining area is the defendant's position.
[0102] In this step, the position of the sub-image can be determined as follows: after obtaining the video image, first use the upper left corner of the video image as the origin, horizontally to the right as the X coordinate axis, and vertically downward as the Y coordinate axis to determine the position of the sub-image. Specifically, the position of the sub-image can be determined by the center point or the upper left corner point of the sub-image. The position of the bailiff sub-image is used as the bailiff position, and the position of the defendant sub-image is used as the defendant position.
[0103] Step 302: Count the total number of bailiffs based on the sub-images with the bailiff features identified. Specifically, the number of sub-images with the bailiff features identified is equal to the total number of bailiffs.
[0104] Step 303, for the sub-image with the features of the bailiff identified, determine whether the police hat features identified in the sub-image meet the preset police hat features of female police officers. If so, determine that the gender of the bailiff in the sub-image is female. Otherwise, determine that the gender of the bailiff in the sub-image is male.
[0105] In detail, under normal circumstances, the shapes of the police hats of female police officers and male police officers are different. Specifically, the police hats of female police officers have raised curled edges on both sides. Based on this feature, the gender of the bailiff can be accurately identified, and then the gender distribution of the bailiffs on both sides of the defendant can be determined.
[0106] In order to improve the accuracy of gender recognition, when implementing this step, comprehensive recognition features such as facial area, Adam's apple features, and shoulder width features of the bailiff can also be used. Specifically, first detect whether the police hat features are tilted on both sides. If not, detect whether the facial area is smaller than a preset value. If not, detect whether there is an Adam's apple feature, whether the shoulder width is smaller than a preset value, and whether the hair length is longer than a preset value. If so, it is determined to be a female, otherwise it is determined to be a male.
[0107] Step 304: Determine the number of bailiffs of each gender according to the gender of the bailiff corresponding to the sub-image with the bailiff's features identified.
[0108] When this step is implemented, the female sub-images are added up to obtain the number of female bailiffs, and the male sub-images are added up to obtain the number of male bailiffs.
[0109] Step 305, determining the number of defendants according to the number of defendant positions. When this step is implemented, the number of defendant positions is used as the number of defendants.
[0110] Step 306, for each sub-image at the defendant's position, extract female feature information from the sub-image. If the extraction is successful, the gender of the defendant at the defendant's position is determined to be female. Otherwise, the gender of the defendant at the defendant's position is determined to be male.
[0111] In this step, female feature information includes but is not limited to hair length, head area, shoulder width, etc. In specific implementation, if female feature extraction fails, in order to ensure the accuracy of defendant gender recognition, it also includes: obtaining voice information in the criminal court; recognizing voice information to obtain the defendant's name information; and obtaining the defendant's gender information from the trial database based on the defendant's name information and current trial information.
[0112] This embodiment can accurately identify the gender of the defendant and the bailiff through automated means.
[0113] In one embodiment of the present invention, Figure 4 As shown, the criminal court anomaly detection method also includes:
[0114] Step 401, obtaining voice information in the criminal court.
[0115] Step 402, recognizing the voice information to obtain the name information of the defendant.
[0116] Step 403, according to the name information of the defendant, the gender information of the bailiff escorting the defendant is determined from the criminal case database. Specifically, the criminal case database stores trial information, which includes: time, place, information of the defendant and the bailiff escorting the defendant (including name, age, gender, etc.).
[0117] Step 404, determine whether the gender information of the bailiff obtained from the criminal case database is consistent with the gender information obtained by identification. If not, an alarm message is issued. If yes, it means that the gender identification of the bailiff is normal. When this step is implemented, the alarm message can be sent to the bailiff configuration department so that the bailiff configuration department can determine the gender of the bailiff.
[0118] This embodiment can ensure the accuracy of gender recognition of bailiffs, and at the same time, can also avoid the situation where bailiffs are temporarily replaced but not graded.
[0119] In one embodiment of the present invention, Figure 5 As shown, the criminal court anomaly detection method also includes:
[0120] Step 501, identify the sub-image at the position of the defendant to obtain the defendant's facial features. In this step, the defendant's facial features include eyes, nose, mouth, ears and other features.
[0121] Step 502, obtaining the facial features of the defendant in the current trial from the criminal case database.
[0122] Step 503, matching the facial features of the defendant with the facial features of the defendant currently on trial obtained from the criminal case database, if the match is successful, the defendant's identity is determined to be normal, if the match fails, a reminder of the defendant's abnormality is issued so that professionals can further verify the defendant's identity.
[0123] This embodiment can avoid impersonation of the defendant by identifying the defendant's identity. In specific implementation, in order to save analysis resources, the steps of this embodiment can be implemented before step 204. If it is determined that the defendant's identity is abnormal, step 204 does not need to be performed.
[0124] In one embodiment of the present invention, Figure 6 As shown, the criminal court anomaly detection method also includes:
[0125] Step 601, obtaining an image of the audience area. When this step is implemented, an image acquisition device facing the audience area can be used to obtain an image of the audience in the audience area, where the audience is a person sitting in the audience area who has no direct or indirect relationship with the case.
[0126] Step 602: Identify user behavior in the image of the auditorium area.
[0127] Specifically, the user behaviors identified in this step include but are not limited to suspected photo / video recording behaviors and risky behaviors of stepping out of the audience area and rushing into the defendant's seat. Specifically, the implementation process of this step includes:
[0128] (1) Locating a hand area sub-image and an area dividing line sub-image from the audience area image of each frame, wherein the area dividing line is used to divide the audience area and the trial area.
[0129] (2) Identify whether the hand area sub-image contains smart device features. If so, extract the pixel value of the smart device.
[0130] (3) Determine whether the pixel value at the smart device is a preset bright screen pixel value. If so, it means that the smart terminal is in a bright screen state, and it is determined that there is an image acquisition risk behavior in the image of the audience area. The preset brightness pixel value is a grayscale or black pixel value, which is used to indicate that the smart device is in a black screen state.
[0131] (4) extracting the pixel value of the area dividing line sub-image and determining whether the pixel value of the area dividing line sub-image is the preset area dividing line pixel value; if not, determining that there is a risk of a person crossing the line in the audience area image; or locating the head and shoulder targets from each frame of the audience area image and tracking the movement trajectory of each head and shoulder target; when there is a movement trajectory overlapping with the area dividing line, determining that there is a risk of a person crossing the line in the audience area image.
[0132] Step 603: compare the identified user behavior with the behavior in the violation database. Specifically, the violation behaviors in the violation database include but are not limited to taking photos, crossing the area dividing line, etc.
[0133] Step 604: Determine whether the user behavior is abnormal based on the comparison result. Specifically, if the identified user behavior matches the risk behavior in the violation database, it is determined that the user behavior is abnormal.
[0134] This embodiment can detect abnormal behavior in a timely manner and can promptly restrict the behavior of people in the audience seats to avoid leaking the defendant's privacy and causing interference to the trial scene.
[0135] Based on the same inventive concept, the present invention also provides a criminal court anomaly detection device, as described in the following embodiments. Since the principle of solving the problem by the criminal court anomaly detection device is similar to that of the criminal court anomaly detection method, the implementation of the criminal court anomaly detection device can refer to the criminal court anomaly detection method, and the repeated parts will not be repeated.
[0136] Specifically, Figure 7 As shown, the criminal court anomaly detection device comprises:
[0137] The image acquisition unit 701 is used to acquire a video image of the defendant's seat in a criminal court.
[0138] The first recognition unit 702 is used to recognize the video image to obtain a sub-image of the total number of people and the personnel area at the defendant's seat.
[0139] The second recognition unit 703 is used to recognize the sub-image to obtain defendant information and bailiff information when the total number of people is greater than 1, wherein the defendant information includes the number, gender and position of the defendants, and the bailiff information includes the number, gender and position of the bailiffs.
[0140] The anomaly detection unit 704 is used to determine whether the information of the defendant and the bailiff meets the preset configuration information based on the information of the defendant and the bailiff. If so, it outputs that the configuration of the escorting bailiff is compliant; if not, it outputs that the configuration is not compliant; wherein the preset configuration information includes the ratio of the defendant to the bailiff, the gender ratio of the defendant to the bailiff, and the position.
[0141] This embodiment can automatically and quickly discover the unreasonable number and gender configuration of bailiffs in the criminal court without human intervention, thereby assisting court police work inspectors in carrying out daily inspection work and improving work efficiency. At the same time, it can make timely corrections based on non-compliant behaviors.
[0142] In one embodiment of the present invention, a computer device is also provided, such as Figure 8 As shown, the computer device 802 may include one or more processors 804, such as one or more central processing units (CPUs), each of which may implement one or more hardware threads. The computer device 802 may also include any memory 806, which is used to store any kind of information such as code, settings, data, etc. Non-limitingly, for example, the memory 806 may include any one or more combinations of the following: any type of RAM, any type of ROM, flash memory device, hard disk, optical disk, etc. More generally, any memory may use any technology to store information. Further, any memory may provide volatile or non-volatile retention of information. Further, any memory may represent a fixed or removable component of the computer device 802. In one case, when the processor 804 executes an associated instruction stored in any memory or a combination of memories, the computer device 802 may perform any operation of the associated instruction. The computer device 802 also includes one or more drive mechanisms 808 for interacting with any memory, such as a hard disk drive mechanism, an optical disk drive mechanism, etc.
[0143] The computer device 802 may also include an input / output module 810 (I / O) for receiving various inputs (via input devices 812) and for providing various outputs (via output devices 814). A specific output mechanism may include a presentation device 816 and an associated graphical user interface 818 (GUI). In other embodiments, the input / output module 810 (I / O), input device 812, and output device 814 may not be included, and the computer device 802 may be used as a computer device in a network. The computer device 802 may also include one or more network interfaces 820 for exchanging data with other devices via one or more communication links 822. One or more communication buses 824 couple the components described above together.
[0144] The communication link 822 may be implemented in any manner, for example, through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 822 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc. governed by any protocol or combination of protocols.
[0145] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are executed.
[0146] An embodiment of the present invention further provides a computer-readable instruction, wherein when a processor executes the instruction, the program therein causes the processor to execute the method described in any of the aforementioned embodiments.
[0147] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of a computer device, the method described in any of the previous embodiments is implemented.
[0148] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0149] It should also be understood that in the embodiments of the present invention, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects before and after are in an "or" relationship.
[0150] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0151] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0152] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.
[0153] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0154] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0155] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0156] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A criminal court anomaly detection method, characterized in that: include: Obtaining video images of the defendant's dock in a criminal court; Identify the video image to obtain a sub-image of the total number of people at the defendant's seat and the area of the people; When the total number of people is greater than 1, the sub-image is identified to obtain defendant information and bailiff information, wherein the defendant information includes the number, gender and position of the defendants, and the bailiff information includes the number, gender and position of the bailiffs; According to the defendant information and bailiff information, determine whether it complies with the preset configuration information. If so, output that the escort bailiff configuration is compliant; if not, output that the configuration is not compliant. The preset configuration information includes the ratio of the defendant to the bailiff, the gender ratio of the defendant to the bailiff, and the position.
2. The method according to claim 1, characterized in that Identify the sub-image to obtain the defendant information and bailiff information, including: Identify the features of the bailiff in the sub-image, and determine the position of the defendant and the bailiff according to the identification result, wherein the features of the bailiff include features of police uniform and police hat; According to the sub-images with the features of the bailiffs identified, the total number of bailiffs is obtained by counting; For the sub-image with the features of the bailiff identified, determine whether the features of the police hat identified in the sub-image meet the preset features of the police hat of a female police officer. If yes, determine that the gender of the bailiff in the sub-image is female. Otherwise, determine that the gender of the bailiff in the sub-image is male. Determine the number of bailiffs of each gender according to the gender of the bailiff corresponding to the sub-image with the bailiff features identified; Determine the number of defendants based on the number of defendants’ locations; For each sub-image at the defendant's position, female feature information is extracted from the sub-image. If the extraction is successful, the gender of the defendant at the defendant's position is determined to be female. Otherwise, the gender of the defendant at the defendant's position is determined to be male.
3. The method according to claim 2, characterized in that Also includes: Identify the sub-image at the defendant's position to obtain the defendant's facial features; Obtain the facial features of defendants in current trials from the criminal case database; The defendant’s facial features are matched with the facial features of the defendant in the current trial obtained from the criminal case database. If the match is successful, the defendant’s identity is determined to be normal.
4. The method according to claim 2, characterized in that Also includes: Access to audio messages in criminal courts; Recognize voice information to obtain the defendant's name information; Based on the defendant's name information, determine the gender information of the bailiff escorting the defendant from the criminal case database; Determine whether the gender information of the bailiff obtained from the criminal case database is consistent with the gender information obtained by identification. If not, issue an alarm.
5. The method according to claim 2, characterized in that If the extraction of female features fails, the defendant's gender is determined to be male. Access to audio messages in criminal courts; Recognize voice information to obtain the defendant's name information; According to the defendant's name information and current trial information, the defendant's gender information is obtained from the trial database.
6. The method according to claim 1, characterized in that Also includes: Acquire the image of the gallery area; Identify user behavior in the gallery area image; Compare the identified user behavior with the behavior in the violation database; Determine whether the user behavior is abnormal based on the comparison results.
7. The method according to claim 6, characterized in that Identify user behavior in gallery area images, including: Locating a hand region sub-image and a region dividing line sub-image from the audience area image of each frame, wherein the region dividing line is used to divide the audience area and the trial area; Identify whether the hand area sub-image has a smart device feature, and if so, extract the pixel value at the smart device; Determine whether the pixel value at the smart device is a preset bright screen pixel value, and if so, determine that there is an image acquisition risk behavior in the image of the audience area; Extract the pixel value of the area division line sub-image, and determine whether the pixel value of the area division line sub-image is the preset area division line pixel value. If not, it is determined that there is a risk of a person crossing the line in the audience area image; or The head and shoulder targets are located in each frame of the gallery area image, and the movement trajectory of each head and shoulder target is tracked. When the movement trajectory overlaps with the area dividing line, it is determined that there is a risk of people crossing the line in the gallery area image.
8. A criminal court anomaly detection device, characterized in that: include: an image acquisition unit for acquiring a video image of a defendant's seat in a criminal court; A first recognition unit is used to recognize the video image to obtain a sub-image of the total number of people and the personnel area at the defendant's seat; A second recognition unit is used to recognize the sub-image to obtain defendant information and bailiff information when the total number of people is greater than 1, wherein the defendant information includes the number, gender and position of the defendants, and the bailiff information includes the number, gender and position of the bailiffs; The anomaly detection unit is used to determine whether the information of the defendant and the bailiff meets the preset configuration information based on the information of the defendant and the bailiff. If so, it outputs that the configuration of the escorting bailiff is compliant; if not, it outputs that the configuration is not compliant; wherein the preset configuration information includes the ratio of the defendant to the bailiff, the gender ratio of the defendant to the bailiff, and the position.
9. A computer 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 method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor of a computer device, the method according to any one of claims 1 to 7 is implemented.
