After installing all the required stuff, change to the directory containing the program files and compile the pixelmath module by running 2 commands: python setupA.py build sudo python setupA.py install Then run the program with the command: python Rpi2Seek.py To avoid needing "sudo", add a file containing the following line: SUBSYSTEM="usb", ATTRS="0010", GROUP="plugdev" to the directory /etc/udev/rules.d My laptop somehow generated this file with the filename les As for the other question, the image quality with my Python code will be about the same (possibly better) as with the Seek app but the temperatures may/will be off. There are 3 places that you need to search for & change it in the code if you use Stretch (a 4th is commented out). Code: To use this program you will need to have the following "packages" installed on your system: python 2.7 (3+ may work) and pyusb-1.0.0b2 even the version in Raspbian Stretch was not good enough and python-imaging (PIL) 1.1.6 or better and python-imaging-tk (python-pil.imagetk in Stretch?) and python-numpy and python-scipy and ImageMagick(? I think that was just for Fry-kun's original code) ALSO now requires python-opencv and its openCV 2 dependencies Rsaspbian Jessie needed to have libgl1-mesa-dri installed !!!!!Python PIL in Raspbian Stretch uses "ombytes" instead of "omstring", which makes more sense, BUT I am leaving it as fromstring in this code since I am still using "Jessie" and maybe others are too.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |