step 1: run the followng command in terminal
sudo apt-get upadate && sudo apt-get dist-upgrade
step 2: download node.js for linux by typing the followng command
step 1: run the followng command in terminal
sudo apt-get upadate && sudo apt-get dist-upgrade
step 2: download node.js for linux by typing the followng command
A complete, cross-platform solution to record, convert and stream audio and video. Compiling for the Raspberry Pi takes a little more patience and care. Took lots of time to fully implement it on Pi using USB webcam. However, We also like to include support for H264 video, which needs to be installed before compiling FFmpeg. But one can skip this and simply move on to install FFmpeg only.
Important Information
From FFmpeg - ffserver has been removed. It's mean if we install latest version of FFmpeg, we won't get ffserver. However, let's download FFmpeg 3.4.4 "Cantor". We've downloaded and remane it only ffmpeg
and save to Pi desktop. It has ffserver into it. However, it's a tar.xz
file and we need to extract it. After extracting, name it simply ffmpeg. To extract, first install xz-utils package.
sudo apt-get install xz-utils
and use following command to extr
# For using the same code in either Python 2 or 3 | |
from __future__ import print_function | |
## Note: Python 2 users, use raw_input() to get player input. Python 3 users, use input() | |
''' | |
Step 1: Write a function that can print out a board. Set up your board as a list, where each index 1-9 corresponds with a number on a number pad, so you get a 3 by 3 board representation. | |
''' |
Step One : Download Gennymotion
Step Two : Download Genymotion-ARM-Translation and drag and drop on the running enulator. Sometimes you need to do it manually.
Step Three : Downlaod following Droid infd app , then drag and drop on the emulator - it should open properly. Then tab to 'System' tab and see 'Instruction set' - it might be x86 architecture.
Step Four : Ddownload proper GAPPS packages by seleting the proper paremeter such as 'Platform' 'Android' 'Variant' and donload the file - then drag and drop it on the emulator. It should successfully flash. Reboot emulator.
Install all of them and using putty remotely access to raspberry pi. We need to configure something.Type following command to edit a config file.
sudo nano /etc/ssh/ssh_config
following item need to change..
apt-get update
Synchronizes the list of packages on your system to the list in the repositories. Use it before installing new packages to make sure you are installing the latest version.
apt-get upgrade
Upgrades all of the software packages you have installed.
clear
Clears previously run commands and text from the terminal screen.
# Capture the mouse click events in Python and OpenCV | |
''' | |
-> draw shape on any image | |
-> reset shape on selection | |
-> crop the selection | |
run the code : python capture_events.py --image image_example.jpg | |
''' |
# One Way | |
word_string = input("Input a word: ") | |
while word_string[0].lower() not in ['a','e','i','o','u']: | |
word_string = word_string[1:] + word_string[0:1] | |
else: | |
print(word_string + 'ay') | |
Python 2.7 is the only supported version in 2.x series. Python 3.x releases follow Numpy releases. For example Python 3.3 is no longer supported by Numpy so support for it has been dropped in opencv-python, too.
Currently, builds for following Python versions are provided: