Yes, you can certainly use getPerspectiveTransform and warpPerspective functions if you know where the wanted corners are in the input image (like the corners of the credit card in your example.) It will work using either C or Python API. It all boils down to the question on how you can find the four corner points for the transform.
In a local development environment, Python tools are loaded from your plugins/tool directory, which you have correctly done. Such local plugins aren't however automatically included in created packages because there is no reliable way to find out what is actually needed by the Python code.
To create a package that contains a Python tool you need to copy the *toolplugin.py file to the analysisapp/ directory of your project. See here for an example. The example contains .tool files, but toolplugin.py files work as well.
One more thing: it is a good idea to register your Python tools with the name of your component as the namespace. That is, if you use "com.acme.python/0" as the namespace, that should also be the full component ID of your component. Importing stuff from other components won't work properly otherwise.
C:\Program Files\VisionAppster\bin>va-pkg list
Component ID Version Name Installation
com.visionappster.extensions.python 3.8.6 User
system.drivers 3.0.0 Built-in
system.engine 3.0.0 Built-in
system.tools 3.0.0 Built-in
python:numpy 1.21.3 numpy User
python:opencv-python 126.96.36.199 opencv-python User