mirror of
https://github.com/Ladebeze66/ragflow_preprocess.git
synced 2026-02-04 15:00:26 +01:00
15 lines
330 B
Python
15 lines
330 B
Python
from collections import namedtuple
|
|
|
|
import cv2
|
|
|
|
|
|
NativeMethodPatchedResult = namedtuple("NativeMethodPatchedResult",
|
|
("py", "native"))
|
|
|
|
|
|
def testOverwriteNativeMethod(arg):
|
|
return NativeMethodPatchedResult(
|
|
arg + 1,
|
|
cv2.utils._native.testOverwriteNativeMethod(arg)
|
|
)
|