Python • Re: Strange behavior of time
I try to manipulate the time and get these errors on raspberry pi.Running these on my mac in python no problems.What is wrong?Code: current_time = time.localtime() ^^^^^^^^^^^^^^AttributeError: 'Time'...
View ArticlePython • Camera Window won't jump out
Hi there, currently I am working a drowsiness detector. Which using Raspberry Pi 4 model B, alarm buzzer and Picamera. However when I run the code, it will stuck at this situation:[0:34:42.880149413]...
View ArticlePython • Re: RPI freezes by running this code
I found that the freezing is caused by code in the motion.py file. How to stop it?Statistics: Posted by mart1nek — Thu Feb 01, 2024 5:42 pm
View ArticlePython • Re: Camera Window won't jump out
this works on my pi5... note my change in predictor pathCode: from imutils.video import VideoStreamfrom imutils import face_utilsfrom threading import Threadimport numpy as npfrom gpiozero import...
View ArticlePython • AttributeError: 'NoneType' object has no attribute 'shape'
Hi everyone, first of all, thanks for ur attention on my post, i really need some guidance from you guys. I faced some issue currently and I wish to get some help from experienced maker. I am working...
View ArticlePython • Re: AttributeError: 'NoneType' object has no attribute 'shape'
Does cv2 video capture work?from https://docs.opencv.org/4.x/dd/d43/tuto ... splay.htmlCode: cap = cv.VideoCapture(0)if not cap.isOpened(): print("Cannot open camera") exit()seems useful piece ofcode...
View ArticlePython • Is Python the best choice, instead of C or C#?
Hello everyone,I am relatively new to Raspberry Pi. I have previously worked on a project where I had to port a C# project onto the Raspberry Pi Zero 2 W, and this proved to be very troublesome as it...
View ArticlePython • Re: Is Python the best choice, instead of C or C#?
In my opinion you are correct.Python is always my preferred choice on the Pi.Statistics: Posted by rpiMike — Fri Feb 02, 2024 9:54 pm
View ArticlePython • Pyserial / USB Connection / Arduino / Freeze
Description:1.The issue only happens when I open too many Arduino ports at the same time.2.The mouse and keyboard did not respond, but the program keeps running.3.Once I unplug and plug the USB hub,...
View ArticlePython • Need some help with Wordle game
Hello, I have this python code working in Thonny but want to add "WINNER!" TEXT and make a gpio pin go high for 1 second when the game is won.The GAME_OVER section starts on line 137 not sure how to...
View ArticlePython • Re: Need some help with Wordle game
Please use the Code option when showing Code.Statistics: Posted by gordon77 — Sat Feb 03, 2024 3:46 pm
View ArticlePython • Can I go back to jessie
I recently updated 2 of my Raspberry pi's to bullseye and it has not gone well. First off, a crontab instruction that has worked well on jessie for a number of years, does not run.Today I have tried...
View ArticlePython • Re: Can I go back to jessie
I recently updated 2 of my Raspberry pi's to bullseye and it has not gone well. First off, a crontab instruction that has worked well on jessie for a number of years, does not run.Today I have tried...
View ArticlePython • having trouble with micropython and ssd1306
Im trying to get a 1.3 inch i2c ssd1306 display to work with a pi pico w. I am trying to use Thonny ide. I can not get any libraries to work. It always seems to fail on the line "display =...
View ArticlePython • Re: having trouble with micropython and ssd1306
I don't suppose you'd care to post the error messages you are seeing?Better still, google them yourself and see if they give you some insight.Statistics: Posted by ame — Sun Feb 04, 2024 5:29 am
View ArticlePython • Re: Cannot open camera by index
Which OS ?As I said here viewtopic.php?t=364806 cv2.videocapture(0) won't work on Bullseye or Bookworm AFAIK, neither will RPI.GPIO on bookwormStatistics: Posted by gordon77 — Sun Feb 04, 2024 11:00 am
View ArticlePython • FileNotFoundError when trying to import picamera module through...
My program, which imports the picamera module was running smoothly when I ran it through Astro-Pi-Replay just until a few changes that I made to it. Now, even when I try to run a version of the...
View ArticlePython • Re: FileNotFoundError when trying to import picamera module through...
Are you running Thonny on a Windows 10 PC ?Also, how did you install picamera - it only functions correctly on a Pi.Statistics: Posted by neilgl — Sun Feb 04, 2024 5:06 pm
View ArticlePython • How to lock AWB with Picamera2 API
Hi,I would like to lock AWB and AE with picamera2, with the following implementation, it looks AWB, AE is still working. Is it possible to lock AE/AWB by Picamera2 API.Following is the test code I...
View ArticlePython • Re: AttributeError: 'NoneType' object has no attribute 'shape'
Sir:Q1 can you open the camera?Q2 Which camera?Q3 Which OS(bookwworm, Bullseye, ...)?Q4 Is your title appropriate? Statistics: Posted by dbrion1 — Mon Feb 05, 2024 3:42 am
View Article