Go to advanced search

by samaysly
Tue Apr 16, 2019 6:24 am
Forum: Nederlands
Topic: log bijhouden
Replies: 0
Views: 357

log bijhouden

hallo beste, ik heb een script gemaakt dat elke dag word uitgevoerd, maar kan ik hiervan ook een logfile van bijhouden zodat ik ook weet dat het dagelijks word uitgevoerd? er zou dan een bestand moeten worden opgeslagen op de usb drive zodat ik kan zien dat het script is uitgevoerd en wanneer niet. ...
by samaysly
Sun Apr 14, 2019 8:32 pm
Forum: Python
Topic: Python as a time switch
Replies: 2
Views: 136

Re: Python as a time switch

Its always better to start a new thread rather than resurrect one that's 5 years old. But in answer to your question this code will drive a servo connected to gpio 17 from one end of its travel to the other wait 3 seconds and then drive it back to the other end of its travel. import RPi.GPIO as GPI...
by samaysly
Sun Apr 14, 2019 3:11 pm
Forum: Python
Topic: Python as a time switch
Replies: 2
Views: 136

Python as a time switch

hello, i wanne make a automatic feeding thing for the birds a have. i wanne make it with rpi 3 and a servo motor. so for example at 7 am i wanne open the servo for 3 sec and then close it. that every day. so in the script i need the actual time and something that control the servo. can you help me w...
by samaysly
Sun Apr 14, 2019 11:50 am
Forum: Nederlands
Topic: servo motor project met rpi3
Replies: 1
Views: 458

servo motor project met rpi3

beste pi gebruikers, ik zou graag een automatch voerder systeem maken met de rpi 3 en servo motor. ik zou graag smorgens om 7 uur de servo laten opengaan en 3 seconden later weer dicht. dus er zou tijd moeten worden waargenomen in python en om klokslag 7 uur zou de servo moeten opengaan en dan weer ...
by samaysly
Sun Feb 17, 2019 1:30 pm
Forum: Python
Topic: rpicam python saveing a video
Replies: 3
Views: 215

Re: rpicam python saveing a video

#!/usr/bin/python # import the necessary packages from picamera.array import PiRGBArray from picamera import PiCamera import time import cv2 # initialize the camera and grab a reference to the raw camera capture camera = PiCamera() camera.resolution = (640, 432) camera.framerate = 32 rawCapture = Pi...
by samaysly
Sun Feb 17, 2019 9:27 am
Forum: Python
Topic: rpicam python saveing a video
Replies: 3
Views: 215

rpicam python saveing a video

i wanne save or record a video with the pi camera. can you help me with it?

thanks all
by samaysly
Mon Dec 31, 2018 3:46 pm
Forum: Python
Topic: rpicam in my bird house
Replies: 0
Views: 115

rpicam in my bird house

hello all i wanne detect when there is a bird in the brood block from the birds. so what i wanne do is this: i wanne take a photo from the brood block when it's emty, if the live stream is as the photo nothing happened, if there is a bird inside a green led will light up. so i wanne make it with a r...
by samaysly
Wed Nov 28, 2018 4:35 pm
Forum: Python
Topic: building a recognition machine with rpi3
Replies: 60
Views: 6755

Re: building a recognition machine with rpi3

i think this is the code for multiscale matching? # Python program to illustrate # multiscaling in template matching import cv2 import numpy as np # Read the main image img_rgb = cv2.imread('mainimage.jpg') # Convert to grayscale img_gray = cv2.cvtColor(img_rgb, cv2.COLOR_BGR2GRAY) # Read the templa...
by samaysly
Wed Nov 28, 2018 4:32 pm
Forum: Python
Topic: building a recognition machine with rpi3
Replies: 60
Views: 6755

Re: building a recognition machine with rpi3

gordon77 wrote:
Wed Nov 28, 2018 8:52 am
I have used a multiscale technique above BUT you said you couldn't use .shape.

The code you show doesn't do multiscale as far as I can see.
sorry it was the wrong code... i se it now.
by samaysly
Tue Nov 27, 2018 9:08 pm
Forum: Python
Topic: building a recognition machine with rpi3
Replies: 60
Views: 6755

Re: building a recognition machine with rpi3

hello, i looked all over the web searching for the multi scale matching for my code. i dit found something but don't know where to put it in the code. can you help me with it? here is the code: # Python program to illustrate # template matching import cv2 import numpy as np # Read the main image img...
by samaysly
Mon Nov 26, 2018 7:54 pm
Forum: Python
Topic: protect a python code
Replies: 7
Views: 936

Re: protect a python code

carcela wrote:
Mon Nov 26, 2018 4:58 am
Hi,
You can use cython to compile your python code "file.py" to library "file.so" that you can import in your main python program. I use this method last year and it works.
Can you tell me how to compile it with cython? what do i need to do with the code?
by samaysly
Sun Nov 25, 2018 8:08 pm
Forum: Python
Topic: protect a python code
Replies: 7
Views: 936

Re: protect a python code

can i protect it maybe with a password if you wanne open the script?
by samaysly
Sun Nov 25, 2018 7:36 pm
Forum: Python
Topic: protect a python code
Replies: 7
Views: 936

protect a python code

hello all,

i have a python code that i wanne sent to other users, but i wanne hide the code so they don't copie the code and use it for other things.

is this possible to do? i have it on a raspberry pi 3.

please help me with it.
by samaysly
Mon Nov 19, 2018 8:31 pm
Forum: Python
Topic: building a recognition machine with rpi3
Replies: 60
Views: 6755

Re: building a recognition machine with rpi3

thx all

the code at the end works many thx.

but multiscale matching does not work with a bounding box arround?
by samaysly
Sat Nov 17, 2018 8:24 pm
Forum: Python
Topic: building a recognition machine with rpi3
Replies: 60
Views: 6755

Re: building a recognition machine with rpi3

Ok thanks, but I have one question that i can't figher out . how do i stop a program as this, so that all windows close? I'm working with the IDLE from python. I wanne hide the code for others. I made it exetable but the widows don't close if i press any bottem... can someone tell me why?
by samaysly
Sat Nov 17, 2018 3:32 pm
Forum: Python
Topic: building a recognition machine with rpi3
Replies: 60
Views: 6755

Re: building a recognition machine with rpi3

hello, I have a fresh install of debain, in the sctretch version you can not install opencv without the virtualenv. so I'm back on the jessie version. it all works great, only what I'm missing is the template w, h shape. so wath I mean is can you olso do the match in multiscale? Now the object needs...
by samaysly
Fri Nov 16, 2018 5:16 pm
Forum: Python
Topic: building a recognition machine with rpi3
Replies: 60
Views: 6755

Re: building a recognition machine with rpi3

What I mean is is it possible to install opencv without vertualenv in the stertch version?

in the jessie version it's possible to install opencv without virtualenv but I don't know if it can in the stretch version of debain..
by samaysly
Fri Nov 16, 2018 2:14 pm
Forum: Python
Topic: building a recognition machine with rpi3
Replies: 60
Views: 6755

Re: building a recognition machine with rpi3

yes maybe, the only thing i have to now is can i install cv2 olso outside the vertualenv?
by samaysly
Fri Nov 16, 2018 1:46 pm
Forum: Python
Topic: building a recognition machine with rpi3
Replies: 60
Views: 6755

Re: building a recognition machine with rpi3

rpi3 model b
raspbain jessie
by samaysly
Fri Nov 16, 2018 1:40 pm
Forum: Python
Topic: building a recognition machine with rpi3
Replies: 60
Views: 6755

Re: building a recognition machine with rpi3

I did copy your script and past it on my pi but still got this error Traceback (most recent call last): File "/home/pi/Desktop/wow.py", line 9, in <module> GPIO.setup (35,GPIO.OUT) # RED LED RuntimeError: No access to /dev/mem. Try running as root! looks like i have no promission or something.... do...
by samaysly
Fri Nov 16, 2018 1:03 pm
Forum: Python
Topic: building a recognition machine with rpi3
Replies: 60
Views: 6755

Re: building a recognition machine with rpi3

can I set python in the original state, so that i have no modules more? maybe reinstall
by samaysly
Fri Nov 16, 2018 12:19 pm
Forum: Python
Topic: building a recognition machine with rpi3
Replies: 60
Views: 6755

Re: building a recognition machine with rpi3

the first time i opend the test script it worked but the second time i got this error
by samaysly
Fri Nov 16, 2018 11:57 am
Forum: Python
Topic: building a recognition machine with rpi3
Replies: 60
Views: 6755

Re: building a recognition machine with rpi3

when i wanne run the script i get this error.

Traceback (most recent call last):
File "/home/pi/Desktop/relais_setup.py", line 15, in <module>
GPIO.setup (35,GPIO.OUT) # RED LED
RuntimeError: No access to /dev/mem. Try running as root!
by samaysly
Fri Nov 16, 2018 9:58 am
Forum: Python
Topic: building a recognition machine with rpi3
Replies: 60
Views: 6755

Re: building a recognition machine with rpi3

Hello
Here is a photo of nu relayboard.
Hope you can help me so that i can use it

Go to advanced search