I am very new to Raspberry Pi, and This is my first time using it. I have read a lot from the documentation on the official website, and I really got great things. After that I installed OpenCV 3 with Non-free Modules from pyimagesearch, and I really recommend anyone new reading this post, and want to install OpenCV to follow up with these amazing well organized steps.

What I want to ask about is how to make my code I made on Python on my PC run on RasPi, can codes be run in parallel, or do I have to put everything in a single .py file and run it ??. Are there any references that I can read from, or anyone can help me ?

Another question, I am not using the Raspberry Pi camera module, just a standard webcam, do I have to write something in the code, like import picamera, or I just write cv2.VideoCapture() and put the number of the port that the camera is connected to between the parenthesis ??

Any help would be appreciated. Thanks in advance

Note: the RasPi is running on Jessie, installed via NOOBS as recommended by the official website

  • Hi Osama, wellcome to RPi board. Do you want write your Python code on your PC and upload to RPi or directly change code in the RPi, i didn't get sorry
    – ahmetertem
    Apr 8, 2016 at 22:17
  • @ahmetertem I have the code already running on my PC, and it's working well, but with the built-in camera in the PC, However, I am using another camera on the RasPi. I can get the code on RasPi from my GitHub page, it's not a big deal
    – Tes3awy
    Apr 8, 2016 at 22:19


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.