Go to advanced search

by guyver2
Sat May 18, 2019 12:30 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [python] MCP3021 resolution
Replies: 3
Views: 468

Re: [python] MCP3021 resolution

It wasn't as soon as I expected but I finally got the chance to try your solution and it worked very nicely. I now have a value in the expected range [0-1023] instead of [0-15].

Thanks a lot.
by guyver2
Thu May 02, 2019 10:58 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [python] MCP3021 resolution
Replies: 3
Views: 468

Re: [python] MCP3021 resolution

Thank you very much, I'll try that as soon as possible and come back to tell you if it worked out.
by guyver2
Tue Apr 23, 2019 12:36 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [python] MCP3021 resolution
Replies: 3
Views: 468

[python] MCP3021 resolution

Hi everyone, I'm trying to read, through i2c and via python, values from a potentiometer using a very simple ADC, the MCP3021. The datasheet claims 10 bits of precision but I can only get values from 0 to 15, which is you know, 4 bits of precision... I was wondering if I'm doing something wrong here...
by guyver2
Thu Apr 27, 2017 4:55 pm
Forum: Camera board
Topic: record video and power off
Replies: 5
Views: 1504

Re: record video and power off

Dammit, I kinda knew it but was hoping for an alternative solution.
thanks for the information
by guyver2
Thu Apr 27, 2017 3:31 pm
Forum: Camera board
Topic: record video and power off
Replies: 5
Views: 1504

record video and power off

For a project I'm working on I want to start recording video from the camera as soon as the pi boots up and stop when it's powered down. The pi will be headless and hard shutdown (sudden power off) can happen anytime. I tried multiple solutions , some kind of work, but none of them is working reliab...
by guyver2
Tue Dec 08, 2015 9:00 am
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 42870

Re: Volunteers to assist with this project: Honey Bee Counte

when I said the code run real time last summer, it was for the very first version reading from a video stream and with downsampled images. When I actually ran it on my raspberry with the camera I got a huge frame drop. Since I do not have a beehive to get proper image feed I just updated the code to...
by guyver2
Fri Dec 04, 2015 1:31 pm
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 42870

Re: Volunteers to assist with this project: Honey Bee Counte

yep, that's a bug indeed. at this point kp is always the last blob detected. Thanks I'll update the code in github.
by guyver2
Fri Dec 04, 2015 10:36 am
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 42870

Re: Volunteers to assist with this project: Honey Bee Counte

Well no, I'm the one being sorry... I forgot the image was resized to 640x480. When I wrote the code, I was working on much bigger images...
by guyver2
Fri Dec 04, 2015 10:22 am
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 42870

Re: Volunteers to assist with this project: Honey Bee Counte

if the video size is 176x144, why is the entry size bigger ? It doesn't matter for the code but it just make little sense :) Looking at the start of your video we can see that the two first objects are well detected as going in. The counter increments once their track is lost (the code allows a wind...
by guyver2
Fri Dec 04, 2015 9:45 am
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 42870

Re: Volunteers to assist with this project: Honey Bee Counte

well yeah, that's a strange behaviour :?
it almost seems like the entry box is not at the right position... Could you send me the original video, or even just a sample and also the position you gave to the box ?
by guyver2
Fri Dec 04, 2015 9:34 am
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 42870

Re: Volunteers to assist with this project: Honey Bee Counte

Hi, I haven't touched the code for a while now but I remember this issue. I didn't care too much as it goes both ways. From my first post : Bees are counted as soon as they show in one image, hence some bees get counted multiple time as IN and OUT as they wander around the entrance. It shouldn't be ...
by guyver2
Tue Aug 11, 2015 2:30 pm
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 42870

Re: Volunteers to assist with this project: Honey Bee Counte

Ok, I updated the file and made some quick test on my RPI compute module (wich is not as powerful as a regular one). The bad news is that it doesn't run very fast, using the camera module takes a good part of the cpu time and the framerate dropped to 5-ish using the same parameters as before... I ca...
by guyver2
Mon Aug 10, 2015 9:39 am
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 42870

Re: Volunteers to assist with this project: Honey Bee Counte

Sorry for the delay (holidays...) No, it doesn't take the picamera feed as input, yet. What I meant by real-time, is that the code processes each frame faster than 1/25th of a second, hence it doesn't suffer from lag. I'll make another version of the code that will take the feed from a picamera inst...
by guyver2
Fri Jul 31, 2015 7:14 am
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 42870

Re: Volunteers to assist with this project: Honey Bee Counte

it already runs in real time (on my pi model B). As for the easy marking of the entrance, that can be done. Today it only requiers you to feed in 4 numbers, if you manage to run the code, I guess you can also get those numbers right :) One other improvement would be to display the entrance to make s...
by guyver2
Mon May 18, 2015 8:08 am
Forum: Compute Module
Topic: Compute module with two cameras
Replies: 1
Views: 756

Re: Compute module with two cameras

reading the documentation could be a good starting point. https://www.raspberrypi.org/documentation/hardware/computemodule/cmio-camera.md Then from a programming point of view, the Picamera python module provides a buggy stereo support. (as of today, it doesn't work a t all). If you get any luck wit...
by guyver2
Mon May 18, 2015 8:02 am
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 42870

Re: Volunteers to assist with this project: Honey Bee Counte

I was thinking to record at 90 fps but do you think 60 would be enough? the more images the better. If it's too much, it's always possible to drop images while processing. How much effort would it be for you to modify the code to take live input from the Raspberry Pi camera module as opposed to pro...
by guyver2
Tue May 12, 2015 3:48 pm
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 42870

Re: Volunteers to assist with this project: Honey Bee Counte

here it is, The code is python only. Depedencies : numpy opencv (cv2) the code is still under heavy development. You can tweak a few parameters around line 154 : # input video file cap = cv2.VideoCapture('bees1.h264') # morphological structuring element to clean the image kernel = cv2.getStructuring...
by guyver2
Tue May 12, 2015 3:31 pm
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 42870

Re: Volunteers to assist with this project: Honey Bee Counte

well, no, as I am currently working on it. Uploading right now
by guyver2
Tue May 12, 2015 2:03 pm
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 42870

Re: Volunteers to assist with this project: Honey Bee Counte

Here is a first shot at computing the INs and OUTs from one of your video. I still get some errors from bees flying away very quickly from the hive entrance but it's a good start :) Most of the issues I'm having come from the motion and I downgraded images to 640x480 anyway. So I think it would be v...
by guyver2
Tue May 12, 2015 7:51 am
Forum: Camera board
Topic: STICKY: Volunteers to assist with project: Honey Bee Counter
Replies: 56
Views: 42870

Re: Volunteers to assist with this project: Honey Bee Counte

well, I'm getting there I think. It's still work in progress and far from perfect but I should be able to achieve decent precision in real time.
Image
by guyver2
Sat Mar 14, 2015 4:46 pm
Forum: Compute Module
Topic: CAM1 not detected on CMIO board with default dt-blob.dts
Replies: 96
Views: 16587

Re: CAM1 not detected on CMIO board with default dt-blob.dts

Any chance you blew the gpio pins earlier when you were using the display adapter? I was told that can damage things, but I'm not sure which side it would damage (the pi or the camera). I don't think so. The initial dts file used to work for some times after changing from display to camera adapter....
by guyver2
Fri Mar 13, 2015 2:38 pm
Forum: Compute Module
Topic: CAM1 not detected on CMIO board with default dt-blob.dts
Replies: 96
Views: 16587

Re: CAM1 not detected on CMIO board with default dt-blob.dts

ok here it is and, spoiler alert, it stopped working... I re-ran all the commands even the obvious ones and here are the outputs. Now if nobody minds I going back to the buggy file that shouldn't work but actually is the only thing that allows me to get stuff done. cat /proc/cpuinfo [email protected] ~ $...
by guyver2
Fri Mar 13, 2015 2:00 pm
Forum: Compute Module
Topic: CAM1 not detected on CMIO board with default dt-blob.dts
Replies: 96
Views: 16587

Re: CAM1 not detected on CMIO board with default dt-blob.dts

And what happens when you use a dt-blob that makes sense (http://goo.gl/lozvZB)? All the same output, please. will send this asap [email protected] { function = "output"; termination = "no_pulling"; }; // CAMERA 1 LED PIN ENABLE [email protected] { function = "output"; termination = "no_pulling"; }; // CAMERA 1 LED PIN ...
by guyver2
Fri Mar 13, 2015 10:26 am
Forum: Compute Module
Topic: CAM1 not detected on CMIO board with default dt-blob.dts
Replies: 96
Views: 16587

Re: CAM1 not detected on CMIO board with default dt-blob.dts

ok, here it is : cat /proc/cpuinfo [email protected] ~ $ cat /proc/cpuinfo processor : 0 model name : ARMv6-compatible processor rev 7 (v6l) BogoMIPS : 2.00 Features : half thumb fastmult vfp edsp java tls CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xb76 CPU revision : 7 Hard...
by guyver2
Thu Mar 12, 2015 2:12 pm
Forum: Compute Module
Topic: CAM1 not detected on CMIO board with default dt-blob.dts
Replies: 96
Views: 16587

Re: CAM1 not detected on CMIO board with default dt-blob.dts

Please don't try 'guessing' the right values. The documentation is 100% accurate, with the correct pins and sample files. I haven't tried it recently, so there may very well be a recent software upgrade that broke it (very unlikely), but I can't support random dts files with guessed values. If the ...

Go to advanced search