Video live anti-fraud system and method
Through the real-time communication link of the push-pull flow module, the front-end anti-fraud central control module and the anti-fraud scene control module, the problem of low efficiency of the traditional video anti-fraud system is solved, efficient motion and glare detection is achieved, and the anti-fraud capability and User experience.
Patent Information
- Application Number
- CN202410767987.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-14
AI Technical Summary
The traditional video anti-fraud system is inefficient. Users need to upload videos repeatedly, resulting in high bandwidth pressure and long anti-fraud time. The efficiency is not high and the anti-fraud capability is reduced.
The push-pull flow module, front-end anti-fraud central control module and anti-fraud scene control module are used to perform motion and glare detection through real-time communication links to avoid repeated uploading of videos and improve recognition efficiency.
It realizes online identification, improves the timeliness and efficiency of anti-fraud, reduces the complexity of user interaction, and enhances the ability of live video anti-fraud.
Smart Images

Figure CN118366231B
Abstract
Description
Technical Field
[0001] The present application relates to the field of video recognition technology, and in particular to a video liveness anti-fraud system and method. Background Art
[0002] With the large-scale commercial application of face recognition technology, various fraud methods have emerged one after another, and video anti-fraud has become increasingly important in the face recognition architecture. Traditional video live anti-fraud is generally based on users recording video actions offline and uploading them to the backend, and then using the backend anti-fraud model to run the recorded video uploaded by the user for anti-fraud identification.
[0003] However, in traditional video anti-fraud, the transmitted traffic is generally large. Especially when multiple people are uploading, the high bandwidth pressure may cause upload failure. And if the user's recording is not standardized, it will be necessary to record repeatedly, which will cause the video to be uploaded repeatedly, resulting in a long time for anti-fraud, low efficiency, and reduced anti-fraud capabilities.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a video live anti-fraud system and method, which aims to solve the technical problem that traditional video anti-fraud has the problem of repeated video uploading, resulting in low anti-fraud efficiency and reduced anti-fraud ability.
[0006] To achieve the above-mentioned purpose, the present application proposes a video live anti-fraud system, the system comprising: a push-pull stream module, a front-end anti-fraud central control module, an anti-fraud scene control module and a streaming media service module;
[0007] The front-end anti-fraud central control module is used to send the action live body instruction to the anti-fraud scene control module after establishing a real-time communication link with the streaming media service module through the push-pull stream module;
[0008] The anti-fraud scene control module is used to perform motion detection on the first real-time video stream pulled by the streaming media service module using a motion model based on the motion liveness instruction;
[0009] The front-end anti-fraud central control module is used to send the glare liveness instruction to the anti-fraud scene control module after the action detection result passes;
[0010] The anti-fraud scene control module is used to perform glare detection on the second real-time video stream pulled by the streaming media service module based on the glare liveness instruction using a glare model, and send the glare detection result to the front-end anti-fraud central control module.
[0011] In one embodiment, the anti-fraud scene control module is further used to establish a video stream link with the streaming media service module based on the action live body instruction;
[0012] The anti-fraud scenario control module is further used to receive an action list randomly generated by an action model, and send the action list to the front-end anti-fraud central control module;
[0013] The front-end anti-fraud central control module is further used to push the generated first real-time video stream to the streaming media service module, where the first real-time video stream is generated by the user performing action detection according to the action list;
[0014] The anti-fraud scenario control module is also used to pull the first real-time video stream from the streaming media service module through the video stream link, and use the action model to perform action detection on the first real-time video stream.
[0015] In one embodiment, the anti-fraud scene control module is further used to parse the first real-time video stream after pulling the first real-time video stream to obtain a multi-frame action video stream;
[0016] The anti-fraud scene control module is also used to perform action sequence detection on the action list and the multi-frame action video stream through the action model.
[0017] In one embodiment, the anti-fraud scene control module is further used to receive a color list randomly generated by a glare model, and send the color list to the front-end anti-fraud central control module;
[0018] The front-end anti-fraud central control module is further used to push the generated second real-time video stream to the streaming media service module, where the second real-time video stream is generated by the user according to the color list;
[0019] The anti-fraud scenario control module is also used to pull the second real-time video stream from the streaming media service module through the video stream link, and use the glare model to perform glare detection on the second real-time video stream.
[0020] In one embodiment, the anti-fraud scene control module is further used to parse the second real-time video stream after pulling the second real-time video stream to obtain a multi-frame color video stream;
[0021] The anti-fraud scene control module is also used to perform color sequence detection on the color list and the multi-frame color video stream through the glare model.
[0022] In one embodiment, the front-end anti-fraud central control module is further used to establish a full-duplex communication link with the anti-fraud scenario control module;
[0023] The anti-fraud scenario control module is further used to send the communication address and SDP information of the streaming media service module to the front-end anti-fraud central control module through the full-duplex communication link;
[0024] The front-end anti-fraud central control module is also used to establish a real-time communication link with the streaming media service module through the push-pull stream module based on the communication address and the SDP information.
[0025] In one embodiment, the front-end anti-fraud central control module is further used to generate an interaction end instruction after the glare detection result passes, and send the interaction end instruction to the anti-fraud scene control module;
[0026] The front-end anti-fraud central control module is further used to disconnect the real-time communication link and the full-duplex communication link according to the interaction end instruction;
[0027] The anti-fraud scenario control module is also used to disconnect the video stream link with the streaming media service module according to the interaction end instruction.
[0028] In addition, to achieve the above-mentioned purpose, the present application also proposes a video live anti-fraud method, which is applied to a video live anti-fraud system, the system comprising a push-pull stream module, a front-end anti-fraud central control module, an anti-fraud scene control module and a streaming media service module; the method comprises:
[0029] After the front-end anti-fraud central control module establishes a real-time communication link with the streaming media service module through the push-pull stream module, the action live body instruction is sent to the anti-fraud scene control module;
[0030] The anti-fraud scene control module performs motion detection on the first real-time video stream pulled by the streaming media service module using a motion model based on the motion liveness instruction;
[0031] After the action detection result is passed, the front-end anti-fraud central control module sends the glare liveness instruction to the anti-fraud scene control module;
[0032] The anti-fraud scene control module performs glare detection on the second real-time video stream pulled by the streaming media service module based on the glare liveness instruction using a glare model, and sends the glare detection result to the front-end anti-fraud central control module.
[0033] In one embodiment, the anti-fraud scene control module establishes a video stream link with the streaming media service module based on the action live body instruction;
[0034] The anti-fraud scenario control module receives an action list randomly generated by the action model, and sends the action list to the front-end anti-fraud central control module;
[0035] The front-end anti-fraud central control module pushes the generated first real-time video stream to the streaming media service module, where the first real-time video stream is generated by the user performing action detection according to the action list;
[0036] The anti-fraud scenario control module pulls the first real-time video stream from the streaming media service module through the video stream link, and uses the action model to perform action detection on the first real-time video stream.
[0037] In one embodiment, the anti-fraud scene control module receives a color list randomly generated by a glare model, and sends the color list to the front-end anti-fraud central control module;
[0038] The front-end anti-fraud central control module pushes the generated second real-time video stream to the streaming media service module, where the second real-time video stream is generated by the user according to the color list;
[0039] The anti-fraud scenario control module pulls the second real-time video stream from the streaming media service module through the video stream link, and uses the glare model to perform glare detection on the second real-time video stream.
[0040] One or more technical solutions proposed in the present application have at least the following technical effects: The present application proposes a video liveness anti-fraud system, the system comprising: a push-pull stream module, a front-end anti-fraud central control module, an anti-fraud scene control module and a streaming media service module; the front-end anti-fraud central control module is used to send the action liveness instruction to the anti-fraud scene control module after establishing a real-time communication link with the streaming media service module through the push-pull stream module; the anti-fraud scene control module is used to perform action detection on the first real-time video stream pulled by the streaming media service module using an action model based on the action liveness instruction; the front-end anti-fraud central control module is used to send the glare liveness instruction to the anti-fraud scene control module after the action detection result passes; the anti-fraud scene control module is used to perform glare detection on the second real-time video stream pulled by the streaming media service module using a glare model based on the glare liveness instruction, and send the glare detection result to the front-end anti-fraud central control module. Since the present application performs online identification of the first real-time video stream and the second real-time video stream of the streaming media service module through the front-end anti-fraud central control module and the anti-fraud scene control module, it has high timeliness and simple interaction, avoids the situation of repeated video uploading in traditional video anti-fraud, improves the efficiency of anti-fraud, and further improves the anti-fraud capability of live video. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0042] In order to more clearly illustrate the embodiments of the present application 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0043] Figure 1 A structural block diagram of the first embodiment of the video live anti-fraud system of the present application;
[0044] Figure 2 The overall functional diagram provided for the second embodiment of the video live anti-fraud system of this application;
[0045] Figure 3 A flowchart of the first embodiment of the video live anti-fraud method of the present application is provided;
[0046] Figure 4 A flow chart of the second embodiment of the video live anti-fraud method of the present application.
[0047] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0048] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0049] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0050] Based on this, the embodiment of the present application provides a video live anti-fraud system, referring to Figure 1 , Figure 1 This is a structural block diagram provided for Example 1 of the video live anti-fraud system of this application.
[0051] In this embodiment, the system includes: a push-pull stream module 10, a front-end anti-fraud central control module 20, an anti-fraud scene control module 30 and a streaming media service module 40.
[0052] The front-end anti-fraud central control module 20 is used to send the action live body instruction to the anti-fraud scene control module 30 after establishing a real-time communication link with the streaming media service module 40 through the push-pull stream module 10.
[0053] It should be noted that the push-pull stream module is a module that realizes the push and pull functions of audio and video data, and can transmit data directly between two users without having to be transferred through a server.
[0054] Exemplarily, the push-pull stream module may include a module that implements push-pull streams based on WebRTC (Web Real-Time Communication) technology (i.e., a WebRTC push-pull stream module), or a module that implements push-pull streams based on RTMP (Real-Time Messaging Protocol) technology. This example is not limited to this.
[0055] Exemplarily, the WebRTC push-pull stream module utilizes the WebRTC protocol to support peer-to-peer communication and can transmit data directly between two users without having to be transferred through a server.
[0056] It can be understood that the WebRTC push-pull stream module can improve communication efficiency and reduce latency, provide support for audio and video streams, and realize functions such as voice calls, video calls, and real-time video streaming transmission.
[0057] In addition, it should be noted that the WebRTC push-pull stream module can automatically adjust the quality and bandwidth usage of the audio and video streams according to network conditions, provide end-to-end encryption, and protect the user's communication content from being eavesdropped or tampered with. It can run in mainstream modern browsers, including Chrome, Firefox, Safari, and Edge, etc., and this embodiment does not limit this.
[0058] It should be noted that the streaming media service module is a module used to realize the real-time transmission and distribution functions of audio and video.
[0059] Exemplarily, the streaming media service module may include a module implemented based on SRS (Simple Realtime Server, a streaming media server software) technology (ie, SRS streaming media service module), or a module implemented based on FFmpeg (Fast ForwardMoving Picture Experts Group) technology, which is not limited in this example.
[0060] For example, the SRS streaming media service module can be used to receive the video stream of the WebRTC protocol for analysis, and then convert it into the RTMP protocol stream for push. It can also be used by the front-end anti-fraud central control module to link the RTMP stream for consumption. In addition, it can also record the real-time video stream for later analysis.
[0061] It should be noted that the front-end anti-fraud central control module is a central control module for anti-fraud integrated in the front-end application.
[0062] Exemplarily, the front-end anti-fraud central control module can be implemented based on SDK (Software Development Kit, a software development kit), which is not limited in this embodiment.
[0063] It is understandable that through the front-end anti-fraud central control module, real-time monitoring, identification and judgment can be carried out on the user interaction interface and operations to identify and prevent potential fraud.
[0064] In addition, it should be noted that the front-end anti-fraud central control module can be used to initiate WebSocket (WebSocketProtocol, full-duplex communication protocol) to interact with the anti-fraud scene control module for command information, receive and execute command information from the anti-fraud scene control module, and process WebRTC real-time video push and pull streams.
[0065] It should be noted that the real-time communication link is a WebRTC link established through the push-pull stream module.
[0066] It is understandable that the real-time communication link utilizes the WebRTC protocol, supports point-to-point communication, and can transmit data directly between two users without having to transit through a server, thereby improving communication efficiency and reducing latency.
[0067] It should be noted that the action liveness instruction is an instruction in the field of identity authentication that requires the user to perform specific actions during the authentication process to confirm that the user is a live real identity.
[0068] For example, the motion liveness instructions may include blinking, opening the mouth, shaking the head, etc., to ensure that the user is a real individual rather than a static image or video.
[0069] It is understandable that fraudulent behaviors such as prostheses, synthetic images or recorded videos can be detected through motion live commands, ensuring that the data in the authentication process is authentic and reliable, and improving the accuracy and security of identity authentication.
[0070] It should be noted that the anti-fraud scene control module is a module used to identify and prevent various fraudulent behaviors in video streams.
[0071] Exemplarily, the anti-fraud scene control module may perform anti-fraud detection on the video stream through a preset motion model or glare model.
[0072] Exemplarily, the anti-fraud scenario control module may include front-end instruction reception and processing, back-end instruction reception and processing, RTMP protocol stream parsing, unified docking action model and glare model, etc., which is not limited in this embodiment.
[0073] Exemplarily, the anti-fraud process of the anti-fraud scene control module may include receiving and establishing WebRTC, action list processing of the action model, initiation of activity detection, reasoning, and results, glare color list processing of the glare model, initiation of glare detection, reasoning, and results, RTMP protocol stream parsing, etc. This example is not limited to this.
[0074] It is understandable that the anti-fraud scenario control module can subscribe to the streaming media service module, receive the RTMP video real-time stream of the streaming media service module, parse each frame of the picture from the real-time stream and send it to the above-mentioned model for processing to identify potential fraud risks.
[0075] In one implementation, after the front-end anti-fraud central control module receives a successful real-time communication link with the streaming media service module, it can apply to the anti-fraud scene control module for a start action live instruction through the WebSocket protocol.
[0076] The anti-fraud scene control module 30 is used to perform motion detection on the first real-time video stream pulled by the streaming media service module 40 using a motion model based on the motion liveness instruction.
[0077] It should be noted that the action model is a model used to detect the action of the user's face.
[0078] For example, the action model may include actions such as blinking, shaking head, nodding, and opening mouth.
[0079] For example, the action model may be randomly selected from various actions to generate an action list. The actions may also be selected in an arithmetic order to generate an action list. Or other methods are used, which are not limited in this embodiment.
[0080] Exemplarily, after the action list is generated, the action list can be returned to the front-end anti-fraud central control module for action detection to generate a first real-time video stream.
[0081] It should be noted that the first real-time video stream is a video stream generated by the user performing corresponding actions in real time according to the action list.
[0082] For example, after receiving the action list, the front-end anti-fraud central control module can prompt the user to perform the corresponding action and record and generate the first real-time video stream. Then, the real-time first real-time video stream can be pushed to the streaming media service module through the WebRTC protocol.
[0083] It should be noted that the specific process of motion detection can parse each frame of the first real-time video stream in real time, and analyze each frame of the video through the motion model to determine whether the action is performed according to the action list. If so, it means that the motion detection result is passed, otherwise, it means that the motion detection result is failed.
[0084] In one embodiment, after the user performs corresponding actions in real time according to the action list and generates a first real-time video stream, the anti-fraud scene control module can use the action model to perform action detection on the first real-time video stream pulled by the streaming media service module. After the action detection passes, the passed result is sent to the front-end anti-fraud central control module.
[0085] The front-end anti-fraud central control module 20 is used to send the glare living body instruction to the anti-fraud scene control module 30 after the action detection result is passed.
[0086] It should be noted that the action detection result is the result of the action model analyzing each frame of the first real-time video stream to determine whether an action is performed according to the action list.
[0087] It should be noted that the glare liveness command is an instruction in the field of identity authentication that shines different colors of light on the user's face to confirm that the user is a real live person.
[0088] It is understandable that the user's liveness can be further detected through the glare liveness instruction to improve the anti-fraud capability.
[0089] In one implementation, after the motion detection result is passed, the front-end anti-fraud central control module may apply to the anti-fraud scene control module via the WebSocket protocol for a start of glare liveness instruction.
[0090] The anti-fraud scene control module 30 is used to perform glare detection on the second real-time video stream pulled by the streaming media service module 40 based on the glare liveness instruction using a glare model, and send the glare detection result to the front-end anti-fraud central control module 20.
[0091] It should be noted that the glare model is a model that detects user liveness through glare.
[0092] Exemplarily, the glare model may include colors such as red, green, and blue.
[0093] For example, the glare model randomly selects from various colors to generate a color list. Alternatively, colors may be selected in an arithmetic order to generate a color list. Alternatively, other methods may be used, which are not limited in this embodiment.
[0094] Exemplarily, after the color list is generated, the color list can be returned to the front-end anti-fraud central control module for glare detection to generate a second real-time video stream.
[0095] It should be noted that the second real-time video stream is a video stream generated by recording on the face of a person through screen lighting.
[0096] For example, after receiving the color list, the front-end anti-fraud central control module shines light on the face through the screen and records to generate a second real-time video stream. Then, the real-time second real-time video stream can be pushed to the streaming service module through the WebRTC protocol.
[0097] It should be noted that the specific process of glare detection can parse each frame of video from the second real-time video stream in real time, and analyze each frame of video through the glare model to see whether it conforms to the order of the color list. If so, it means that the glare detection result passes, otherwise, it means that the glare detection result fails.
[0098] In one embodiment, after the screen displays the color light corresponding to the color list and records and generates the second real-time video stream, the anti-fraud scene control module can use the glare model to perform glare detection on the second real-time video stream pulled by the streaming media service module. After the glare detection passes, the passing result is sent to the front-end anti-fraud central control module, and the anti-fraud verification process ends at this time. Compared with traditional video anti-fraud methods, the above anti-fraud verification process has high timeliness, simple interaction, and varied styles, and can well support different action combinations and glare detection. While increasing the means of anti-fraud, it also improves the user experience.
[0099] In a feasible implementation, the front-end anti-fraud central control module 20 described in this embodiment is also used to establish a full-duplex communication link with the anti-fraud scene control module 30; the anti-fraud scene control module 30 is also used to send the communication address and SDP information of the streaming media service module 40 to the front-end anti-fraud central control module 20 through the full-duplex communication link; the front-end anti-fraud central control module 20 is also used to establish a real-time communication link with the streaming media service module 40 through the push-pull stream module 10 based on the communication address and the SDP information.
[0100] It should be noted that the full-duplex communication link is a communication link established through the WebSocket protocol.
[0101] It is understandable that a full-duplex communication link provides real-time, two-way data transmission capabilities between the browser and the server, which can realize functions such as real-time updates and instant messaging without relying on traditional polling methods.
[0102] It is understandable that through the full-duplex communication link, command information can be interacted with the anti-fraud scenario control module, command information from the anti-fraud scenario control module response can be received and executed, and WebRTC real-time video push and pull streams can be processed.
[0103] It should be noted that the communication address, that is, the WebRTC address, is a URL or server address used to establish a WebRTC communication connection.
[0104] It should be noted that SDP (Session Description Protocol) is used to describe session information, including media format, network transmission information, etc., so as to facilitate negotiation and exchange when establishing a connection between browsers.
[0105] For example, the SDP information may include the media capabilities and expected connection parameters of the endpoints participating in the communication.
[0106] In this embodiment, the front-end anti-fraud central control module can initiate a WebSocket link to the anti-fraud scene control module. After successful establishment, the anti-fraud scene control module returns the WebRTC address and SDP information of the streaming media service module through the WebSocket link. After obtaining the WebRTC address and SDP information, the front-end anti-fraud central control module turns on the camera function and initiates a WebRTC link to the streaming media service module. After the streaming media service module and the front-end anti-fraud central control module establish a WebRTC link, they turn on the WebRTC to RTMP transcoding and record, and return a successful establishment.
[0107] This embodiment provides a video live anti-fraud system. After the front-end anti-fraud central control module receives a successful real-time communication link with the streaming media service module, it can apply to the anti-fraud scene control module to start the action live instruction through the WebSocket protocol. Then, after the user performs the corresponding action in real time according to the action list and generates the first real-time video stream, the anti-fraud scene control module can use the action model to perform action detection on the first real-time video stream pulled by the streaming media service module. After the action detection passes, the passing result is sent to the front-end anti-fraud central control module. Then, after the action detection result passes, the front-end anti-fraud central control module can apply to the anti-fraud scene control module to start the glare live instruction through the WebSocket protocol. After the color light corresponding to the color list is displayed on the screen and the second real-time video stream is recorded and generated, the anti-fraud scene control module can use the glare model to perform glare detection on the second real-time video stream pulled by the streaming media service module. After the glare detection passes, the passing result is sent to the front-end anti-fraud central control module, and the anti-fraud verification process ends at this time. Since this embodiment performs online identification of the first real-time video stream and the second real-time video stream of the streaming media service module through the front-end anti-fraud central control module and the anti-fraud scene control module, it has high timeliness and simple interaction, avoids the situation of repeated video uploading in traditional video anti-fraud, improves the efficiency of anti-fraud, and further improves the anti-fraud capability of live video.
[0108] Based on the above Figure 1The embodiment shown is a second embodiment of the video live anti-fraud system of the present application. In this embodiment, the anti-fraud scene control module 30 is also used to establish a video stream link with the streaming media service module 40 based on the action live instruction.
[0109] It should be noted that the video stream link is a link established through the RTMP protocol that can transmit audio, video and data in real time.
[0110] It is understandable that a real-time, two-way communication link can be established between the anti-fraud scenario control module and the streaming media service module through the video stream link to transmit video data in real time.
[0111] The anti-fraud scenario control module 30 is also used to receive an action list randomly generated by an action model, and send the action list to the front-end anti-fraud central control module 20.
[0112] It should be noted that the action list is a list generated by the action model randomly selecting actions such as blinking, shaking head, nodding, and opening mouth.
[0113] The front-end anti-fraud central control module 20 is also used to push the generated first real-time video stream to the streaming media service module 40, where the first real-time video stream is generated by the user performing action detection according to the action list.
[0114] The anti-fraud scenario control module 30 is further used to pull the first real-time video stream from the streaming media service module 40 through the video stream link, and perform motion detection on the first real-time video stream using the motion model.
[0115] In one embodiment, after the anti-fraud scene control module receives the action live instruction started by the front-end anti-fraud central control module, it establishes an RTMP real-time video stream link from the streaming media service module and enables recording. Then it starts to establish a WebSocket link with the action model, and the action model randomly selects from blinking, shaking head, nodding, and opening mouth actions to generate an action list. The anti-fraud scene control module returns the action list to the front-end anti-fraud central control module. After receiving the action list, the front-end anti-fraud central control module prompts the user to perform the corresponding action and records and generates the first real-time video stream. At the same time, the first real-time video stream is pushed to the streaming media service module through the WebRTC protocol. The anti-fraud scene control module pulls the first real-time video stream from the streaming media service module, and uses the action model to perform action detection on the first real-time video stream. Through the above interaction, the accuracy of action detection and real-time interactivity can be improved.
[0116] In a feasible implementation manner, the anti-fraud scenario control module 30 described in this embodiment is also used to parse the first real-time video stream after pulling the first real-time video stream to obtain a multi-frame action video stream; the anti-fraud scenario control module 30 is also used to perform action sequence detection on the action list and the multi-frame action video stream through the action model.
[0117] In this embodiment, after pulling the first real-time video stream, the anti-fraud scene control module parses each frame of the first real-time video stream in real time to obtain a multi-frame action video stream. Then it is transmitted to the action model through the WebSocket protocol. The action model analyzes the multi-frame action video stream and responds to the anti-fraud scene control module through the WebSocket protocol whether to perform actions according to the action list. The anti-fraud scene control module determines the result of the action model analysis and whether all actions are completed in order. If they are completed, the pass condition is met, and the front-end anti-fraud central control module is notified through the WebSocket protocol. The result is passed, and the first real-time video stream is stopped from being sent to the action model. Thus, the accuracy of action detection is improved by detecting each frame of the action model.
[0118] In a feasible implementation manner, the anti-fraud scene control module 30 described in this embodiment is also used to receive a color list randomly generated by a glare model, and send the color list to the front-end anti-fraud central control module 20; the front-end anti-fraud central control module 20 is also used to push the generated second real-time video stream to the streaming media service module 40, and the second real-time video stream is generated by the user according to the color list; the anti-fraud scene control module 30 is also used to pull the second real-time video stream from the streaming media service module 40 through the video stream link, and use the glare model to perform glare detection on the second real-time video stream.
[0119] It should be noted that the color list is a list generated by randomly selecting red, green, blue and other color lights from the glare model.
[0120] In this embodiment, after the anti-fraud scene control module receives the instruction from the front-end anti-fraud central control module to start glare, it starts to establish a WebSocket link with the glare model. The glare model randomly selects from red, green, blue and other lights to generate a color list. The anti-fraud scene control module returns the color list to the front-end anti-fraud central control module. After receiving the color list, the front-end anti-fraud central control module prompts the user to start lighting, and the screen displays the corresponding color light, and records and generates a second real-time video stream. At the same time, the second real-time video stream is pushed to the streaming media service module through the WebRTC protocol. The anti-fraud scene control module pulls the second real-time video stream from the streaming media service module, and uses the glare model to perform glare detection on the second real-time video stream. Through the above interaction, the real-time interactivity of glare detection is improved, thereby improving the anti-fraud capability.
[0121] In a feasible implementation manner, the anti-fraud scene control module 30 described in this embodiment is also used to parse the second real-time video stream after pulling the second real-time video stream to obtain a multi-frame color video stream; the anti-fraud scene control module 30 is also used to perform color sequence detection on the color list and the multi-frame color video stream through the glare model.
[0122] In this embodiment, after pulling the second real-time video stream, the anti-fraud scene control module parses each frame of the second real-time video stream in real time to obtain a multi-frame color video stream. Then it is transmitted to the glare model through the WebSocket protocol. The glare model analyzes the multi-frame color video stream to see if it conforms to the order of the color list, and responds to the anti-fraud scene control module through the WebSocket protocol. The anti-fraud scene control module determines whether the color of the face detected by the glare model is in the order of the color list. If the results are consistent, the front-end anti-fraud central control module is notified through the WebSocket protocol. The result is passed, and the second real-time video stream is stopped from being sent to the glare model. Thereby, the accuracy of glare detection is improved by detecting each frame of the glare model.
[0123] In a feasible implementation manner, the front-end anti-fraud central control module 20 described in this embodiment is also used to generate an interaction end instruction after the glare detection result is passed, and send the interaction end instruction to the anti-fraud scene control module 30; the front-end anti-fraud central control module 20 is also used to disconnect the real-time communication link and the full-duplex communication link according to the interaction end instruction; the anti-fraud scene control module 30 is also used to disconnect the video stream link with the streaming media service module 40 according to the interaction end instruction.
[0124] It should be noted that the interaction end instruction is an instruction for the front-end anti-fraud central control module to apply for the end of the current anti-fraud interaction detection after receiving the glare pass result.
[0125] In this embodiment, after the front-end anti-fraud central control module receives the glare pass result, it applies to the anti-fraud scene control module through WebSocket for an interaction end instruction. The front-end anti-fraud central control module closes the WebSocket link to the anti-fraud scene control module and closes the WebRTC link with the streaming media service module. After the anti-fraud scene control module receives the interaction end instruction, it disconnects the RTMP stream link with the streaming media service module and closes the WebSocket link with the action model and the glare model. This ends the entire anti-fraud process.
[0126] After the anti-fraud scene control module of this embodiment receives the action live body instruction started by the front-end anti-fraud central control module, it establishes an RTMP real-time video stream link from the streaming media service module and enables recording. Then it starts to establish a WebSocket link with the action model, and the action model randomly selects from blinking, shaking head, nodding, and opening mouth actions to generate an action list. The anti-fraud scene control module returns the action list to the front-end anti-fraud central control module. After receiving the action list, the front-end anti-fraud central control module prompts the user to perform the corresponding action and records to generate the first real-time video stream. At the same time, the first real-time video stream is pushed to the streaming media service module through the WebRTC protocol. The anti-fraud scene control module pulls the first real-time video stream from the streaming media service module and uses the action model to perform action detection on the first real-time video stream. Through the above interaction, the accuracy and real-time interactivity of action detection are improved. Further, after the anti-fraud scene control module receives the front-end anti-fraud central control module to start the glare live body instruction, it starts to establish a WebSocket link with the glare model, and the glare model randomly selects from red, green, blue and other lights to generate a color list. The anti-fraud scene control module returns the color list to the front-end anti-fraud central control module. After receiving the color list, the front-end anti-fraud central control module prompts the user to start lighting, and the screen displays the corresponding color light, and the recording generates a second real-time video stream. At the same time, the second real-time video stream is pushed to the streaming service module through the WebRTC protocol. The anti-fraud scene control module pulls the second real-time video stream from the streaming service module and uses the glare model to perform glare detection on the second real-time video stream. Through the above interaction, the real-time interactivity of glare detection is improved, thereby improving the anti-fraud capability.
[0127] For example, to help understand the implementation process of the video live anti-fraud system obtained by combining the above-mentioned embodiment 1 and embodiment 2, please refer to Figure 2 , Figure 2 The overall functional diagram provided for the second embodiment of the video live anti-fraud system of this application mainly includes the following steps:
[0128] 1. The front-end anti-fraud central control module initiates a WebSocket link to the anti-fraud scene control module. After the establishment is successful, the anti-fraud scene center returns the WebRTC address and SDP information of the streaming media service module.
[0129] 2. The front-end anti-fraud control module obtains the WebRTC address and SDP information, turns on the camera and initiates a WebRTC link (real-time communication) to the streaming service module. After the streaming service module and the front-end establish WebRTC, it starts transcoding from WebRTC to RTMP and records, and returns a successful establishment message.
[0130] 3. After receiving the successful establishment information of the streaming media service module, the front-end anti-fraud central control module applies to the anti-fraud scene control module to start motion liveness detection through the WebSocket link (full-duplex communication).
[0131] 4. After receiving the live action start instruction from the front-end, the anti-fraud scene control module establishes an RTMP real-time video stream link from the streaming media service module, enables recording, and starts to establish a WebSocket link with the action model. The action list is returned to the front-end anti-fraud central control module.
[0132] 5. The front-end anti-fraud central control module receives the action list and prompts the user to perform the corresponding actions. At the same time, the real-time video stream is pushed to the streaming service module through the WebRTC protocol.
[0133] 6. The anti-fraud scenario control module pulls the real-time video stream from the streaming media service module, and parses each frame in real time, and transmits it to the action model through the WebSocket protocol. The action model analyzes each frame of the video stream to determine whether to perform actions according to the action list, and responds to the anti-fraud scenario control module through the WebSocket protocol. The anti-fraud scenario control module determines the results of the action model analysis and whether all actions have been completed in sequence. If so, the pass condition is met, and the front-end anti-fraud central control module is notified through the WebSocket protocol. The result is passed, and the real-time video stream is stopped from being sent to the action model.
[0134] 7. After receiving the result of the action passing, the front-end anti-fraud central control module applies to the anti-fraud scene control module through WebSocket to start glare liveness detection.
[0135] 8. After receiving the front-end glare live command, the anti-fraud scene control module starts to establish a WebSocket link with the glare model. The glare model randomly generates a sequence from the red, green, and blue light color list. The color list is returned to the front-end anti-fraud central control module.
[0136] 9. The front-end anti-fraud central control module receives the color list and prompts the user to start lighting, and the screen displays the corresponding color light.
[0137] 10. The anti-fraud scene control module pulls the real-time video stream from the streaming media service module, parses each frame in real time, and transmits it to the glare model through the WebSocket protocol. The glare model analyzes each frame of the video stream and responds to the anti-fraud scene control module through the WebSocket protocol. The anti-fraud scene control module determines whether the color of the face detected by the glare model is in the order of the color list. If the results are consistent, the front-end anti-fraud central control module is notified through the WebSocket protocol. The result is passed and the real-time video stream is stopped from being sent to the glare model.
[0138] 11. After receiving the glare pass result, the front-end anti-fraud central control module applies to the anti-fraud scene control module through WebSocket to end the current interaction instruction. The front-end anti-fraud central control module closes the WebSocket linked to the anti-fraud scene control module and closes the streaming media service module linked to WebRTC.
[0139] 12. When the anti-fraud scenario control module receives the end instruction, it disconnects the RTMP stream of the streaming media service module and closes the WebSocket link to the action model and the glare model.
[0140] Reference Figure 3 The video live anti-fraud system of this application provides a video live anti-fraud method. Figure 3 A flow chart of the first embodiment of the live video anti-fraud method of the present application; the system includes a push-pull stream module, a front-end anti-fraud central control module, an anti-fraud scene control module and a streaming media service module.
[0141] In this embodiment, the video live anti-fraud method includes steps S10 to S40:
[0142] Step S10: After the front-end anti-fraud central control module establishes a real-time communication link with the streaming media service module through the push-pull stream module, the action live body instruction is sent to the anti-fraud scene control module.
[0143] It should be noted that the push-pull stream module is a module that realizes the push and pull functions of audio and video data, and can transmit data directly between two users without having to be transferred through a server.
[0144] Exemplarily, the push-pull stream module may include a module that implements push-pull streams based on WebRTC (Web Real-Time Communication) technology (i.e., a WebRTC push-pull stream module), or a module that implements push-pull streams based on RTMP (Real-Time Messaging Protocol) technology. This example is not limited to this.
[0145] Exemplarily, the WebRTC push-pull stream module utilizes the WebRTC protocol to support peer-to-peer communication and can transmit data directly between two users without having to be transferred through a server.
[0146] It can be understood that the WebRTC push-pull stream module can improve communication efficiency and reduce latency, provide support for audio and video streams, and realize functions such as voice calls, video calls, and real-time video streaming transmission.
[0147] In addition, it should be noted that the WebRTC push-pull stream module can automatically adjust the quality and bandwidth usage of the audio and video streams according to network conditions, provide end-to-end encryption, and protect the user's communication content from being eavesdropped or tampered with. It can run in mainstream modern browsers, including Chrome, Firefox, Safari, and Edge, etc., and this embodiment does not limit this.
[0148] It should be noted that the streaming media service module is a module used to realize the real-time transmission and distribution functions of audio and video.
[0149] Exemplarily, the streaming media service module may include a module implemented based on SRS (Simple Realtime Server, a streaming media server software) technology (ie, SRS streaming media service module), or a module implemented based on FFmpeg (Fast ForwardMoving Picture Experts Group) technology, which is not limited in this example.
[0150] For example, the SRS streaming media service module can be used to receive the video stream of the WebRTC protocol for analysis, and then convert it into the RTMP protocol stream for push. It can also be used by the front-end anti-fraud central control module to link the RTMP stream for consumption. In addition, it can also record the real-time video stream for later analysis.
[0151] It should be noted that the front-end anti-fraud central control module is a central control module for anti-fraud integrated in the front-end application.
[0152] Exemplarily, the front-end anti-fraud central control module can be implemented based on SDK (Software Development Kit, a software development kit), which is not limited in this embodiment.
[0153] It is understandable that through the front-end anti-fraud central control module, real-time monitoring, identification and judgment can be carried out on the user interaction interface and operations to identify and prevent potential fraud.
[0154] In addition, it should be noted that the front-end anti-fraud central control module can be used to initiate WebSocket (WebSocketProtocol, full-duplex communication protocol) to interact with the anti-fraud scene control module for command information, receive and execute command information from the anti-fraud scene control module, and process WebRTC real-time video push and pull streams.
[0155] It should be noted that the real-time communication link is a WebRTC link established through the push-pull stream module.
[0156] It is understandable that the real-time communication link utilizes the WebRTC protocol, supports point-to-point communication, and can transmit data directly between two users without having to transit through a server, thereby improving communication efficiency and reducing latency.
[0157] It should be noted that the action liveness instruction is an instruction in the field of identity authentication that requires the user to perform specific actions during the authentication process to confirm that the user is a live real identity.
[0158] For example, the motion liveness instructions may include blinking, opening the mouth, shaking the head, etc., to ensure that the user is a real individual rather than a static image or video.
[0159] It is understandable that fraudulent behaviors such as prostheses, synthetic images or recorded videos can be detected through motion live commands, ensuring that the data in the authentication process is authentic and reliable, and improving the accuracy and security of identity authentication.
[0160] It should be noted that the anti-fraud scene control module is a module used to identify and prevent various fraudulent behaviors in video streams.
[0161] Exemplarily, the anti-fraud scene control module may perform anti-fraud detection on the video stream through a preset motion model or glare model.
[0162] Exemplarily, the anti-fraud scenario control module may include front-end instruction reception and processing, back-end instruction reception and processing, RTMP protocol stream parsing, unified docking action model and glare model, etc., which is not limited in this embodiment.
[0163] Exemplarily, the anti-fraud process of the anti-fraud scene control module may include receiving and establishing WebRTC, processing the activity action list of the action model, starting activity detection, reasoning, and results, processing the glare color list of the glare model, starting glare detection, reasoning, and results, RTMP protocol stream parsing, etc. This example is not limited to this.
[0164] It is understandable that the anti-fraud scenario control module can subscribe to the streaming media service module, receive the RTMP video real-time stream of the streaming media service module, parse each frame of the picture from the real-time stream and send it to the above-mentioned model for processing to identify potential fraud risks.
[0165] In one implementation, after the front-end anti-fraud central control module receives a successful real-time communication link with the streaming media service module, it can apply to the anti-fraud scene control module for a start action live instruction through the WebSocket protocol.
[0166] Step S20: The anti-fraud scenario control module performs motion detection on the first real-time video stream pulled by the streaming media service module using a motion model based on the motion liveness instruction.
[0167] It should be noted that the action model is a model used to detect the action of the user's face.
[0168] For example, the action model may include actions such as blinking, shaking head, nodding, and opening mouth.
[0169] For example, the action model may be randomly selected from various actions to generate an action list. The actions may also be selected in an arithmetic order to generate an action list. Or other methods are used, which are not limited in this embodiment.
[0170] Exemplarily, after the action list is generated, the action list can be returned to the front-end anti-fraud central control module for action detection to generate a first real-time video stream.
[0171] It should be noted that the first real-time video stream is a video stream generated by the user performing corresponding actions in real time according to the action list.
[0172] For example, after receiving the action list, the front-end anti-fraud central control module can prompt the user to perform the corresponding action and record and generate the first real-time video stream. Then, the real-time first real-time video stream can be pushed to the streaming media service module through the WebRTC protocol.
[0173] It should be noted that the specific process of motion detection can parse each frame of the first real-time video stream in real time, and analyze each frame of the video through the motion model to determine whether the action is performed according to the action list. If so, it means that the motion detection result is passed, otherwise, it means that the motion detection result is failed.
[0174] In one embodiment, after the user performs corresponding actions in real time according to the action list and generates a first real-time video stream, the anti-fraud scene control module can use the action model to perform action detection on the first real-time video stream pulled by the streaming media service module. After the action detection passes, the passed result is sent to the front-end anti-fraud central control module.
[0175] Step S30: After the action detection result is passed, the front-end anti-fraud central control module sends the glare liveness instruction to the anti-fraud scene control module.
[0176] It should be noted that the action detection result is the result of the action model analyzing each frame of the first real-time video stream to determine whether an action is performed according to the action list.
[0177] It should be noted that the glare liveness command is an instruction in the field of identity authentication that shines different colors of light on the user's face to confirm that the user is a real live person.
[0178] It is understandable that the user's liveness can be further detected through the glare liveness instruction to improve the anti-fraud capability.
[0179] In one implementation, after the motion detection result is passed, the front-end anti-fraud central control module may apply to the anti-fraud scene control module via the WebSocket protocol for a start of glare liveness instruction.
[0180] Step S40: The anti-fraud scene control module performs glare detection on the second real-time video stream pulled by the streaming media service module based on the glare liveness instruction using a glare model, and sends the glare detection result to the front-end anti-fraud central control module.
[0181] It should be noted that the glare model is a model that detects user liveness through glare.
[0182] Exemplarily, the glare model may include colors such as red, green, and blue.
[0183] For example, the glare model randomly selects from various colors to generate a color list. Alternatively, colors may be selected in an arithmetic order to generate a color list. Alternatively, other methods may be used, which are not limited in this embodiment.
[0184] Exemplarily, after the color list is generated, the color list can be returned to the front-end anti-fraud central control module for glare detection to generate a second real-time video stream.
[0185] It should be noted that the second real-time video stream is a video stream generated by recording on the face of a person through screen lighting.
[0186] For example, after receiving the color list, the front-end anti-fraud central control module shines light on the face through the screen and records to generate a second real-time video stream. Then, the real-time second real-time video stream can be pushed to the streaming service module through the WebRTC protocol.
[0187] It should be noted that the specific process of glare detection can parse each frame of video from the second real-time video stream in real time, and analyze each frame of video through the glare model to see whether it conforms to the order of the color list. If so, it means that the glare detection result passes, otherwise, it means that the glare detection result fails.
[0188] In one embodiment, after the screen displays the color light corresponding to the color list and records and generates the second real-time video stream, the anti-fraud scene control module can use the glare model to perform glare detection on the second real-time video stream pulled by the streaming media service module. After the glare detection passes, the passing result is sent to the front-end anti-fraud central control module, and the anti-fraud verification process ends at this time. Compared with traditional video anti-fraud methods, the above anti-fraud verification process has high timeliness, simple interaction, and varied styles, and can well support different action combinations and glare detection. While increasing the means of anti-fraud, it also improves the user experience.
[0189] This embodiment provides a video live anti-fraud method. After the front-end anti-fraud central control module receives a successful real-time communication link with the streaming media service module, it can apply to the anti-fraud scene control module through the WebSocket protocol to start the action live instruction. Then, after the user performs the corresponding action in real time according to the action list and generates the first real-time video stream, the anti-fraud scene control module can use the action model to perform action detection on the first real-time video stream pulled by the streaming media service module. After the action detection passes, the passing result is sent to the front-end anti-fraud central control module. Then, after the action detection result passes, the front-end anti-fraud central control module can apply to the anti-fraud scene control module through the WebSocket protocol to start the glare live instruction. After the color light corresponding to the color list is displayed on the screen and the second real-time video stream is recorded and generated, the anti-fraud scene control module can use the glare model to perform glare detection on the second real-time video stream pulled by the streaming media service module. After the glare detection passes, the passing result is sent to the front-end anti-fraud central control module, and the anti-fraud verification process ends at this time. Since this embodiment performs online identification of the first real-time video stream and the second real-time video stream of the streaming media service module through the front-end anti-fraud central control module and the anti-fraud scene control module, it has high timeliness and simple interaction, avoids the situation of repeated video uploading in traditional video anti-fraud, improves the efficiency of anti-fraud, and further improves the anti-fraud capability of live video.
[0190] Based on the first embodiment of the video live anti-fraud method of this application, in the second embodiment of this application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated later. Figure 4 , Figure 4 A flow chart of the second embodiment of the video live anti-fraud method of the present application.
[0191] In this example, step S20 includes steps S21 to S24:
[0192] Step S21: The anti-fraud scene control module establishes a video stream link with the streaming media service module based on the action live body instruction.
[0193] It should be noted that the video stream link is a link established through the RTMP protocol that can transmit audio, video and data in real time.
[0194] It is understandable that a real-time, two-way communication link can be established between the anti-fraud scenario control module and the streaming media service module through the video stream link to transmit video data in real time.
[0195] Step S22: The anti-fraud scenario control module receives an action list randomly generated by an action model, and sends the action list to the front-end anti-fraud central control module.
[0196] It should be noted that the action list is a list generated by the action model randomly selecting actions such as blinking, shaking head, nodding, and opening mouth.
[0197] Step S23: the front-end anti-fraud central control module pushes the generated first real-time video stream to the streaming media service module, where the first real-time video stream is generated by the user performing action detection according to the action list.
[0198] Step S24: the anti-fraud scenario control module pulls the first real-time video stream from the streaming media service module through the video stream link, and uses the action model to perform action detection on the first real-time video stream.
[0199] In one embodiment, after the anti-fraud scene control module receives the action live instruction started by the front-end anti-fraud central control module, it establishes an RTMP real-time video stream link from the streaming media service module and enables recording. Then it starts to establish a WebSocket link with the action model, and the action model randomly selects from blinking, shaking head, nodding, and opening mouth actions to generate an action list. The anti-fraud scene control module returns the action list to the front-end anti-fraud central control module. After receiving the action list, the front-end anti-fraud central control module prompts the user to perform the corresponding action and records and generates the first real-time video stream. At the same time, the first real-time video stream is pushed to the streaming media service module through the WebRTC protocol. The anti-fraud scene control module pulls the first real-time video stream from the streaming media service module, and uses the action model to perform action detection on the first real-time video stream. Through the above interaction, the accuracy of action detection and real-time interactivity can be improved.
[0200] In a feasible implementation, step S40 of this embodiment may include the steps of: the anti-fraud scene control module receives a color list randomly generated by a glare model, and sends the color list to the front-end anti-fraud central control module; the front-end anti-fraud central control module pushes the generated second real-time video stream to the streaming media service module, and the second real-time video stream is generated by the user according to the color list; the anti-fraud scene control module pulls the second real-time video stream from the streaming media service module through the video stream link, and uses the glare model to perform glare detection on the second real-time video stream.
[0201] It should be noted that the color list is a list generated by randomly selecting red, green, blue and other color lights from the glare model.
[0202] In this embodiment, after the anti-fraud scene control module receives the instruction from the front-end anti-fraud central control module to start glare, it starts to establish a WebSocket link with the glare model. The glare model randomly selects from red, green, blue and other lights to generate a color list. The anti-fraud scene control module returns the color list to the front-end anti-fraud central control module. After receiving the color list, the front-end anti-fraud central control module prompts the user to start lighting, and the screen displays the corresponding color light, and records and generates a second real-time video stream. At the same time, the second real-time video stream is pushed to the streaming media service module through the WebRTC protocol. The anti-fraud scene control module pulls the second real-time video stream from the streaming media service module, and uses the glare model to perform glare detection on the second real-time video stream. Through the above interaction, the real-time interactivity of glare detection is improved, thereby improving the anti-fraud capability.
[0203] After pulling the second real-time video stream, the anti-fraud scene control module parses each frame of the second real-time video stream in real time to obtain a multi-frame color video stream. Then it is transmitted to the glare model through the WebSocket protocol. The glare model analyzes the multi-frame color video stream to see if it conforms to the order of the color list, and responds to the anti-fraud scene control module through the WebSocket protocol. The anti-fraud scene control module determines whether the color of the face detected by the glare model is in the order of the color list. If the results are consistent, the front-end anti-fraud central control module is notified through the WebSocket protocol. The result is passed, and the second real-time video stream is stopped from being sent to the glare model. Thus, the accuracy of glare detection is improved by detecting each frame of the glare model.
[0204] After the anti-fraud scene control module of this embodiment receives the instruction to start glare from the front-end anti-fraud central control module, it starts to establish a WebSocket link with the glare model. The glare model randomly selects from red, green, blue and other lights to generate a color list. The anti-fraud scene control module returns the color list to the front-end anti-fraud central control module. After receiving the color list, the front-end anti-fraud central control module prompts the user to start lighting, and the screen displays the corresponding color light, and records and generates a second real-time video stream. At the same time, the second real-time video stream is pushed to the streaming media service module through the WebRTC protocol. The anti-fraud scene control module pulls the second real-time video stream from the streaming media service module, and uses the glare model to perform glare detection on the second real-time video stream. Through the above-mentioned glare interaction, the anti-fraud capability is improved.
[0205] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the video live anti-fraud method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0206] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A video live anti-fraud system, characterized in that: The system includes: a push-pull stream module, a front-end anti-fraud central control module, an anti-fraud scene control module, and a streaming media service module; The front-end anti-fraud central control module is used to initiate a full-duplex communication link to the anti-fraud scene control module, and the full-duplex communication link is a WebSocket link; after successful establishment, the anti-fraud scene control module returns the communication address and SDP information of the streaming media service module through the WebSocket link, and the communication address is a WebRTC address; after obtaining the WebRTC address and the SDP information, the front-end anti-fraud central control module turns on the camera function and simultaneously initiates a real-time communication link to the streaming media service module, and the real-time communication link is a WebRTC link; after the streaming media service module and the front-end anti-fraud central control module have established a WebRTC link, they turn on the WebRTC to RTMP transcoding and record, and return a successful establishment; The front-end anti-fraud central control module is used to send the action live body instruction to the anti-fraud scene control module after establishing a real-time communication link with the streaming media service module through the push-pull stream module; The anti-fraud scene control module is used to perform motion detection on the first real-time video stream pulled by the streaming media service module using a motion model based on the motion liveness instruction; The front-end anti-fraud central control module is used to send the glare liveness instruction to the anti-fraud scene control module after the action detection result passes; The anti-fraud scene control module is used to perform glare detection on the second real-time video stream pulled by the streaming media service module based on the glare live body instruction using a glare model, and send the glare detection result to the front-end anti-fraud central control module; Among them, after the anti-fraud scene control module receives the action live instruction sent by the front-end anti-fraud central control module, it establishes an RTMP real-time video stream link with the streaming media service module and enables recording; at the same time, it establishes a WebSocket link with the action model, and the action model randomly selects from blinking, shaking head, nodding, and opening mouth actions to generate an action list; the anti-fraud scene control module returns the action list to the front-end anti-fraud central control module; after receiving the action list, the front-end anti-fraud central control module prompts the user to perform corresponding actions, records and generates a first real-time video stream, and pushes the first real-time video stream to the streaming media service module through the WebRTC link; the anti-fraud scene control module pulls the first real-time video stream from the streaming media service module through the RTMP real-time video stream link, and uses the action model to perform action detection on the first real-time video stream; Among them, after the anti-fraud scene control module receives the front-end anti-fraud central control module's instruction to start glare liveness, it establishes a WebSocket link with the glare model, and the glare model randomly selects from red, green and blue light to generate a color list; the anti-fraud scene control module returns the color list to the front-end anti-fraud central control module; after the front-end anti-fraud central control module receives the color list, it prompts the user to start lighting, the screen displays the corresponding color light, records and generates a second real-time video stream, and pushes the second real-time video stream to the streaming service module through the WebRTC link; the anti-fraud scene control module pulls the second real-time video stream from the streaming service module through the RTMP real-time video stream link, and uses the glare model to perform glare detection on the second real-time video stream.
2. The system according to claim 1, characterized in that The anti-fraud scene control module is further used to parse the first real-time video stream after pulling the first real-time video stream to obtain a multi-frame action video stream; The anti-fraud scene control module is also used to perform action sequence detection on the action list and the multi-frame action video stream through the action model.
3. The system according to claim 1, characterized in that The anti-fraud scene control module is further used to parse the second real-time video stream after pulling the second real-time video stream to obtain a multi-frame color video stream; The anti-fraud scene control module is also used to perform color sequence detection on the color list and the multi-frame color video stream through the glare model.
4. The system according to any one of claims 1 to 3, characterized in that The front-end anti-fraud central control module is also used to generate an interaction end instruction after the glare detection result passes, and send the interaction end instruction to the anti-fraud scene control module; The front-end anti-fraud central control module is further used to disconnect the real-time communication link and the full-duplex communication link according to the interaction end instruction; The anti-fraud scenario control module is also used to disconnect the video stream link with the streaming media service module according to the interaction end instruction.
5. A video live anti-fraud method, characterized in that: The method is applied to a live video anti-fraud system, which includes a push-pull stream module, a front-end anti-fraud central control module, an anti-fraud scene control module, and a streaming media service module; the method includes: The front-end anti-fraud central control module initiates a full-duplex communication link to the anti-fraud scene control module, and the full-duplex communication link is a WebSocket link; after successful establishment, the anti-fraud scene control module returns the communication address and SDP information of the streaming media service module through the WebSocket link, and the communication address is a WebRTC address; after obtaining the WebRTC address and the SDP information, the front-end anti-fraud central control module turns on the camera function and simultaneously initiates a real-time communication link to the streaming media service module, and the real-time communication link is a WebRTC link; after the streaming media service module and the front-end anti-fraud central control module have established a WebRTC link, they turn on the WebRTC to RTMP transcoding and record, and return a successful establishment; After the front-end anti-fraud central control module establishes a real-time communication link with the streaming media service module through the push-pull stream module, the action live body instruction is sent to the anti-fraud scene control module; The anti-fraud scene control module performs motion detection on the first real-time video stream pulled by the streaming media service module using a motion model based on the motion liveness instruction; After the action detection result is passed, the front-end anti-fraud central control module sends the glare liveness instruction to the anti-fraud scene control module; The anti-fraud scene control module performs glare detection on the second real-time video stream pulled by the streaming media service module using a glare model based on the glare live body instruction, and sends the glare detection result to the front-end anti-fraud central control module; Among them, the anti-fraud scene control module uses the action model to perform action detection on the first real-time video stream pulled by the streaming service module based on the action live body instruction, including: after the anti-fraud scene control module receives the action live body instruction sent by the front-end anti-fraud central control module, it establishes an RTMP real-time video stream link with the streaming service module and enables recording; at the same time, it establishes a WebSocket link with the action model, and the action model randomly selects from blinking, shaking head, nodding, and opening mouth actions to generate an action list; the anti-fraud scene control module returns the action list to the front-end anti-fraud central control module; after receiving the action list, the front-end anti-fraud central control module prompts the user to perform corresponding actions, records and generates a first real-time video stream, and pushes the first real-time video stream to the streaming service module through the WebRTC link; the anti-fraud scene control module pulls the first real-time video stream from the streaming service module through the RTMP real-time video stream link, and uses the action model to perform action detection on the first real-time video stream; Among them, the anti-fraud scene control module uses the glare model to perform glare detection on the second real-time video stream pulled by the streaming service module based on the glare live body instruction, including: after the anti-fraud scene control module receives the front-end anti-fraud central control module to start the glare live body instruction, it establishes a WebSocket link with the glare model, and the glare model randomly selects from red, green and blue light to generate a color list; the anti-fraud scene control module returns the color list to the front-end anti-fraud central control module; after the front-end anti-fraud central control module receives the color list, it prompts the user to start lighting, the screen displays the corresponding color light, records and generates a second real-time video stream, and pushes the second real-time video stream to the streaming service module through the WebRTC link; the anti-fraud scene control module pulls the second real-time video stream from the streaming service module through the RTMP real-time video stream link, and uses the glare model to perform glare detection on the second real-time video stream.
