Quantcast
Channel: Raspberry Pi Forums
Browsing all 1225 articles
Browse latest View live

Python • Bluetooth device not listed on pacmd list links

I got the following code in python to connect to bluetooth and list all sinks devicestake note that I am running this upon startup using cron jobI got 2 device connected to Pi Zero 2 A bluetooth...

View Article


Python • Re: Prove this so called phyton expert wrong.

Anyone? I was hoping this was a easy fix.Statistics: Posted by webdiddy — Tue May 07, 2024 9:29 pm

View Article


Python • use GPU in raspberry pi 5

I'm using Raspberry Pi 5Running the detect.py code in object_detection of TensorFlowLight and looking up cpu and gpu usage with taskmanager, the gpu usage for Python items was 0%.In addition, as a...

View Article

Python • Re: use GPU in raspberry pi 5

I think the question is does TensorFlowLite use the GPU. You should ask the provider.Statistics: Posted by DS256 — Tue May 07, 2024 1:18 pm

View Article

Python • Saving bayer image from camera in a raw format

Hi.I’ve been looking for a way to solve my problem and even though I found a partial solution, I’m still missing a key element.I’ve got a Basler CCD camera connected to a Pi5 via GigE. I’m using the...

View Article


Python • Re: Saving bayer image from camera in a raw format

Pypylon gives me the option to debayer the raw image and turn it into a variety of formats like jpg, png or tiff, but I want to export them to DNG or any other user friendly raw format.What are you...

View Article

Python • Main file @ Desktop/startup import files in Documents

I have a Python program - /home/rpi/Desktop/startup/myProg.py - so that it starts when I boot up.Due to not really knowing what I'm doing and scope creep, everything is in myProg.py, but I would like...

View Article

Python • Re: Main file @ Desktop/startup import files in Documents

Set the environment variable PYTHONPATH to include the desired directory before running the script.Change the cwd to the desired directory before running the scriptUse pythons OS module to manipluate...

View Article


Python • Re: [SOLVED] Script execution speed, RFID reader system

Hi. This project is of interest to me. Can you share more about what you are doing and perhaps some code examples? Do you have a GIT repo maybe?Statistics: Posted by plumby101 — Thu May 09, 2024 7:47 pm

View Article


Python • End or pause the facial recognise process with OpenCV

I have been trying to write a python script with the following process:1. Show first frame of a sprite sheet (successful)2. Delay face detection for 10 seconds (successful)3. If face is recognised as...

View Article

Python • Coding leds brighten when mechanical switches are held or pressed down.

I want to code five single color leds to to be dimmed when the corresponding mechanical switches arent being pressed. I then want them to be fully bright when I am pressing or holding down the...

View Article

Python • Re: Coding leds brighten when mechanical switches are held or...

I want to code five single color leds to to be dimmed when the corresponding mechanical switches arent being pressed. I then want them to be fully bright when I am pressing or holding down the...

View Article

Python • Re: End or pause the facial recognise process with OpenCV

You may want to ask on the OpenCV forum here https://forum.opencv.org/Statistics: Posted by DS256 — Fri May 10, 2024 4:34 pm

View Article


Python • Re: gpiozero RuntimeError: Cannot determine SOC universal base address

Sorry did not read the service part. The guide to all things startup is here: viewtopic.php?t=314455Statistics: Posted by neilgl — Sat May 11, 2024 4:39 pm

View Article

Python • Python file automatic start up, on booting

Hi Anyone knows if a Python file (*.py), can be started up automatic on booting? Or need to be a “*.exe” file?I tried the ‘etc/rc.local’ startup solution, but nothing happened. (No error in...

View Article


Python • Re: Python file automatic start up, on booting

yes, i start a *.py at start.you haven't provided enough info to help you.Statistics: Posted by kerry_s — Sat May 11, 2024 9:04 pm

View Article

Python • Re: Issue with 2 python scripts running simultaneously

Hi,Sorry for the delay and thank you for your help.It is working good in my tests.Statistics: Posted by marciano — Sun May 12, 2024 12:29 am

View Article


Python • RSS BeautifulSoup timout error

This code works ok for a few minutes then stops with a timeout error Here's the code:Code: from time import time, sleepfrom bs4 import BeautifulSoupimport requestsfrom random import randrangewhile...

View Article

Python • Re: RSS BeautifulSoup timout error

Can't tell which line is causing the timeout. Looks like it could be one of the following from error lines reported:url = requests.get('https://feeds.bbci.co.uk/news/uk/rss.xml', timeout = 22...

View Article

Python • Re: Can't install tensorflow pi 4

The last command (pip install tensorflow) produced this error:Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simpleERROR: Could not find a version that satisfies the requirement...

View Article
Browsing all 1225 articles
Browse latest View live