This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import imutils | |
| import time | |
| import cv2 | |
| min_area = 500 | |
| cap = cv2.VideoCapture(0) | |
| background = None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [](const Math::Vec4<u8>& src, const Math::Vec4<u8>& srcfactor, | |
| const Math::Vec4<u8>& dest, const Math::Vec4<u8>& destfactor) -> Math::Vec4<u8> { | |
| Math::Vec4<int> result; | |
| auto src_result = (src * srcfactor).Cast<int>(); | |
| auto dst_result = (dest * destfactor).Cast<int>(); | |
| result = (src_result + dst_result) / 255; | |
| return Math::Vec4<u8>(MathUtil::Clamp(result.r(), 0, 255), MathUtil::Clamp(result.g(), 0, 255), | |
| MathUtil::Clamp(result.b(), 0, 255), MathUtil::Clamp(result.a(), 0, 255)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 00007FF63D3E9F9E mov edi,dword ptr [rbp+1E0h] | |
| 00007FF63D3E9FA4 mov ecx,edi | |
| 00007FF63D3E9FA6 and ecx,0Fh | |
| 00007FF63D3E9FA9 call Pica::Rasterizer::GetSourceMeta (07FF63D3E9870h) | |
| 00007FF63D3E9FAE mov qword ptr [rbp+270h],rax | |
| 00007FF63D3E9FB5 mov esi,dword ptr [rbp+1F4h] | |
| 00007FF63D3E9FBB mov ecx,esi | |
| 00007FF63D3E9FBD and ecx,0Fh | |
| 00007FF63D3E9FC0 call Pica::Rasterizer::GetSourceMeta (07FF63D3E9870h) | |
| 00007FF63D3E9FC5 mov qword ptr [rbp+278h],rax |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| auto GetSource1Impl = GetSource1[tev_stage_index]; | |
| 00007FF7478CABB9 lea rdx,[rbp+370h] | |
| 00007FF7478CABC0 mov rcx,r8 | |
| 00007FF7478CABC3 call qword ptr [rax] | |
| 00007FF7478CABC5 mov rcx,rax | |
| 00007FF7478CABC8 mov qword ptr [rbp+3A8h],rax |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 00007FF7D31CA6BA mov ecx,dword ptr [rsi+0Ch] | |
| 00007FF7D31CA6BD and ecx,3 | |
| 00007FF7D31CA6C0 mov edx,1 | |
| 00007FF7D31CA6C5 cmp ecx,3 | |
| 00007FF7D31CA6C8 jae Pica::Rasterizer::ProcessTriangleInternal+160Ch (07FF7D31CA6CCh) | |
| 00007FF7D31CA6CA shl edx,cl | |
| 00007FF7D31CA6CC movzx ecx,al | |
| 00007FF7D31CA6CF imul ecx,edx | |
| 00007FF7D31CA6D2 mov dword ptr [rbp+25Ch],ecx | |
| 00007FF7D31CA6D8 mov dword ptr [rbp+264h],0FFh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 00007FF75671A6B8 mov r9d,dword ptr [rsi+0Ch] | |
| 00007FF75671A6BC mov r8d,r9d | |
| 00007FF75671A6BF and r8d,3 | |
| 00007FF75671A6C3 mov edx,1 | |
| 00007FF75671A6C8 cmp r8d,3 | |
| 00007FF75671A6CC jae Pica::Rasterizer::ProcessTriangleInternal+1613h (07FF75671A6D3h) | |
| 00007FF75671A6CE mov ecx,r8d | |
| 00007FF75671A6D1 shl edx,cl | |
| 00007FF75671A6D3 movzx ecx,al | |
| 00007FF75671A6D6 imul ecx,edx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Analisis de envío de paquetes (Paquetes enviados: 4): | |
| Tiempo de llegada promedio por destino para paquete tipo :1 | |
| Destino #0(Nodo 15): 0.012764 | |
| Destino #1(Nodo 16): 0.012764 | |
| Destino #2(Nodo 17): 0.012764 | |
| Tiempo de llegada promedio por destino para paquete tipo :2 | |
| Destino #0(Nodo 15): 0.012517 | |
| Destino #1(Nodo 16): 0.012517 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 3 | |
| 31 32 33 34 35 36 37 | |
| 10 12 16 29 30 | |
| 6 4 3 2 7 7 1 | |
| 0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
| 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
| 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
| 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
| 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0x80, 0x71, 0xec, 0x02, 0x00, 0x00, 0x00, 0x00, 0x64, 0x00, 0x31, 0x04, 0x00, 0x08, 0x00, 0x00, | |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x07, 0x96, 0x98, 0xa4, 0xb0, 0xc8, 0xe0, 0xec, 0x03, | |
| 0x01, 0x0b, 0x05, 0x04, 0x00, 0x01, 0x01, 0x00, 0x07, 0x06, 0x4a, 0x50, 0x00, 0x01, 0x0d, 0x14, | |
| 0x2a, 0x01, 0x00, 0xdd, 0x07, 0x00, 0x1f, 0x32, 0x14, 0x0a, 0x00, 0x00, 0xdd, 0xec, 0x00, 0x1f, | |
| 0x32, 0x15, 0x00, 0x0b, 0x8b, 0x10, 0x00, 0x87, 0x80, 0x00, 0x34, 0x96, 0x51, 0x85, 0x01, 0x04, | |
| 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x7d, 0xe0, | |
| 0x11, 0x5c, 0x4a, 0x17, 0xde, 0x69, 0x46, 0x27, 0x49, 0x2f, 0xa8, 0x28, 0x52, 0xf3, 0xe3, 0x5e, | |
| 0x63, 0xb8, 0xff, 0x02, 0x00, 0x07, 0x32, 0x03, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x86, 0x00, | |
| 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x10, 0x04, 0x00, 0x00, 0x00, 0x53, 0x00, 0x75, 0x00, | |
| 0x62, 0x00, 0x76, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local TAG_VENDOR_SPECIFIC_IE = 0xDD | |
| local uds = Proto("nin_uds", "Nintendo UDS Protocol") | |
| local oui = ProtoField.new("OUI", "nin_uds.oui", ftypes.UINT24, nil, base.HEX) | |
| local oui_type = ProtoField.new("OUI Type", "nin_uds.oui_type", ftypes.UINT8) | |
| local tag20_data = ProtoField.new("Tag 20 data", "nin_uds.tag20.data", ftypes.UINT24, nil, base.HEX) | |
| -- Tag 21 fields | |
| -- NetworkInfo structure fields |