Go to advanced search

by samaysly
Sun Feb 17, 2019 1:30 pm
Forum: Python
Topic: rpicam python saveing a video
Replies: 3
Views: 47

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: 47

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: 73

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: 59
Views: 4871

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: 59
Views: 4871

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: 59
Views: 4871

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: 618

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: 618

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: 618

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: 59
Views: 4871

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: 59
Views: 4871

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: 59
Views: 4871

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: 59
Views: 4871

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: 59
Views: 4871

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: 59
Views: 4871

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: 59
Views: 4871

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: 59
Views: 4871

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: 59
Views: 4871

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: 59
Views: 4871

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: 59
Views: 4871

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
by samaysly
Thu Nov 15, 2018 10:48 pm
Forum: Python
Topic: building a recognition machine with rpi3
Replies: 59
Views: 4871

Re: building a recognition machine with rpi3

what i wanne make is something the for now works with a display but after a while a wanne make a green and red light to it, if it match the green light go on else the red. maybe a way to do that? Try this... import cv2 import numpy as np import os,subprocess import time import RPi.GPIO as GPIO GPIO...
by samaysly
Tue Nov 13, 2018 6:38 pm
Forum: Troubleshooting
Topic: Connecting to a 7inch HDMI LCD
Replies: 9
Views: 2956

Re: Connecting to a 7inch HDMI LCD

samaysly wrote:
Tue Nov 13, 2018 6:03 pm
hello all,

Can anyone tell me way this is happening to my new display? I bought it on aliexpresse
found what was wrong with it, but now I have another question.

someone know how to fix this?
by samaysly
Tue Nov 13, 2018 6:32 pm
Forum: Python
Topic: building a recognition machine with rpi3
Replies: 59
Views: 4871

Re: building a recognition machine with rpi3

what i wanne make is something the for now works with a display but after a while a wanne make a green and red light to it, if it match the green light go on else the red.

maybe a way to do that?
by samaysly
Tue Nov 13, 2018 6:03 pm
Forum: Troubleshooting
Topic: Connecting to a 7inch HDMI LCD
Replies: 9
Views: 2956

Re: Connecting to a 7inch HDMI LCD

hello all,

Can anyone tell me way this is happening to my new display? I bought it on aliexpresse

Go to advanced search