Skip to content
Advertisement

Tag: c++

Get image from a fingerprint using Python and Ctypes

I’m trying to get an image from the fingerprint scanner Futronic FS88h, here is what I’ve been doing until now. With this I’m able to check if the finger is present and it actually retrieves some info, but I need to get the image from the device and I’m not quite sure how to do it, I’ve been trying this:

Calling C++ function which accepts and returns std::string from Python

I’m trying to call C++ function using ctypes. The function declaration looks like As Python can not interact with C++ directly, I have created a C-wrapper for this function as follows And Python wrapper But when I try to call Python wrapper with some bytes passed as param, for example It fails with the following error I’m not very good

parameter difference between C++ and Python

C++ Python I think their code should return same result however C ++ result is Python result is i don’t understand why variable’s address isn’t changed in Python while variable’s address is changed in C++ Answer i don’t understand why variable’s address isn’t changed in Python while variable’s address is changed in C++. Because in python, we pass an object

c++ equivalent to python self.attribute = ObjectInstance()

i want to know if there is an equivalent way of doing this in c++: Answer self.b in C++ could be this->b, but also just b as this is implicit in C++. However, in C++, you have to declare (member) variables, while in Python you create them by assigning to them and the type of the variable is determinated by

Advertisement