May-13-2022, 06:08 PM
(May-13-2022, 05:52 PM)jefsummers Wrote: Self modifying code, execution of user supplied code, all generally frowned upon as unsafe. Still, people ride barrels over Niagara Falls (not lately).
You are probably looking for the exec() function.
See this article for instruction and usage.
The exec function as far as I know executes the function immidiately but I want to save the function in a dictionary as a callback for the cv2 library.