Entradas

Mostrando las entradas de abril, 2018

Install OpenCV python 3

pip3 install opencv - python

Raspberry PI 3 - [HINDI]How To Enable Serial Port (UART) PART-1 | Serial Port | UART 2017

link Command : Step-1 sudo nano /boot/config.txt enable_uart=1 sudo reboot Step-2 sudo systemctl stop serial-getty@ttyS0.service Step-3 sudo systemctl disable serial-getty@ttyS0.service sudo reboot Step-4 sudo nano /boot/cmdline.txt Remove : console=serial0,115200 Step-5 sudo nano /boot/config.txt #add dtoverlay=pi3-miniuart-bt sudo reboot

fingerprint

Imagen
https://learn.sparkfun.com/tutorials/fingerprint-scanner-gt-521fxx-hookup-guide Hardware Overview Features The GT-521F32 and GT-521F52 have a lot in common with the previous models. They have the same protocol commands and packet structure. Code that was implemented for previous models should be functionally the same. The fingerprint scanner has the ability to: Enroll a Fingerprint Identify a Fingerprint Capable of 360° Recognition However, there are a few differences in the boards. These include: Different Board Layout 4x Mounting Holes 2x JST SH Connectors Touch Interface One significant difference to keep in mind when integrating the fingerprint scanner in a project is the number of fingerprints that the device can hold. The GT-521F32 costs less but it can hold only 200 fingerprints. The GT-521F52 is slightly more expensive but it can hold 3000 fingerprints. Technical Specs GT-521F32 / GT-521F52 CPU

How to Execute a Script at Startup on the Raspberry Pi

Imagen
The Raspberry Pi computer is a great tool for creating all kinds of interesting DIY projects and computer-powered builds. Whether it be used as a media center, web server, gaming console, or simply a computer, there are countless reasons why you might need a particular program or script to automatically startup when the Raspberry Pi desktop loads. While there are as many ways to run scripts at startup as there are uses for the Raspberry Pi, executing a script when the desktop environment boots is the easiest method with the most versatility. Configure your Raspberry Pi 1 Understand the requirements and how it works.  This method requires the PIXEL desktop environment with the latest version of the Raspbian Jessie operating system. It is achieved by editing an "autostart" file that runs commands at startup in the LXDE desktop environment, which is the framework the Raspberry Pi's PIXEL desktop is built on. This method is preferred in scenarios where: your script

Install tensorflow en windows

pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.7.0-py3-none-any.whl

Tkinter tkFileDialog module

Imagen
Tkinter tkFileDialog module tkFileDialog  is a module with open and save dialog functions. Instead of implementing those in  Tkinter GUI  on your own. Related courses Tkinter GUI Application Development Projects Overview An overview of file dialogs: Function Parameters Purpose .askopenfilename Directory, Title, Extension To  open  file: Dialog that requests selection of an existing file. .asksaveasfilename Directory, Title, Extension) To  save  file: Dialog that requests creation or replacement of a file. .askdirectory None To  open directory Tkinter Open File The  askopenfilename  function to creates an file dialog object. The extensions are shown in the bottom of the form (Files of type). The code below will simply show the dialog and return the filename.  If a user presses cancel the filename is empty. On a Windows machine change the initialdir to “C:\”. Python 2.7 version: from Tkinter import * from Tkinter import * import Tkinter , Tkconstants ,

Install pyqt4

apt install python3-pyqt4 E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

GUI visual to Python

For ubuntu pyuic5 -x -o ./gui.py ./gui.ui For windows pyuic5 -x -o .\gui.py .\gui.ui

How to install and run qt-designer for python

sudo apt-get install python-qt4 qt4-designer sudo apt install pyqt4-dev-tools pyuic4 -x -o ./example.py ./example.ui   type on your Terminal designer - qt4 or if /usr/bin isn't included in your PATH: / usr / bin / designer - qt4 sudo apt-get install python3-pyqt5