Most active commenters
  • zodPod(6)

←back to thread

Raspberry Pi Car Speed Detector

(gregtinkers.wordpress.com)
187 points mhss | 23 comments | | HN request time: 1.663s | source | bottom
1. finnn ◴[] No.11714994[source]
"Linux Car Speed Detector" might be a more accurate description, since nothing about this seems to be specific raspberry pi hardware. Honestly, could just say "Car Speed Detector" since I'd imagine this would be pretty easy to replicate on other platforms and the OS isn't really part of it either.

Really cool project though. Now I want to start playing with OpenCV. I wish i had something more constructive to add :/

replies(6): >>11715278 #>>11715382 #>>11715503 #>>11715937 #>>11716065 #>>11718005 #
2. mayoff ◴[] No.11715278[source]
That it can be done on a Raspberry Pi using the Pi camera is of interest, because cheap small hardware makes it feasible to buy and install hardware dedicated to the task.
replies(1): >>11715377 #
3. ◴[] No.11715377[source]
4. squizzel ◴[] No.11715382[source]
Maybe cut out the "car" because what if a van or truck passes by?!
replies(2): >>11715518 #>>11715533 #
5. zodPod ◴[] No.11715503[source]
I agree. As someone with some small computers laying around but non of which are pis NOR have I any pis available, I saw the title and lost a bit of interest but figured I'd read on anyway. Turns out, the pi isn't even necessary. But then how would you use a buzz word?! lol
6. ptaipale ◴[] No.11715518[source]
Alas, that story about a bypassing Harrier locking its missiles to a speed radar is not true.

http://www.snopes.com/horrors/techno/radar.asp

replies(1): >>11715619 #
7. zodPod ◴[] No.11715533[source]
And it really is more of a measurement device than a detector. The car is there one way or another, it's measuring the speed of it.

Maybe a "Linux Speed Measurer" however that starts to sound like it's related to measuring the speed of your OS.

Maybe "Linux-based External Object Speed Measurer"

replies(2): >>11715840 #>>11717350 #
8. zodPod ◴[] No.11715619{3}[source]
Wow. Reading that story annoyed me. Someone really wrote that with all of those obvious inaccuracies in it and someone actually believed it? THen I remember that people share shit 10x worse than this on FB and I got sad instead of annoyed.

Someone please educate someone. Please. lol

replies(2): >>11715661 #>>11715970 #
9. ptaipale ◴[] No.11715661{4}[source]
Well, at least that Harrier story was somehow good-natured, and not just uneducated filth like the glyphosate thing.
replies(1): >>11716245 #
10. yoavm ◴[] No.11715840{3}[source]
What about "YAM" - Yet Another Measurer?
11. lijason ◴[] No.11715937[source]
Isn't that true for all Raspberry Pi projects by the very nature of Raspberry Pis? They're just a different form factor and cost than other Linux machines, but otherwise are just a Linux box.
replies(2): >>11716044 #>>11716047 #
12. ricardobeat ◴[] No.11715970{4}[source]
Great timing: https://theintercept.com/2016/05/17/new-evidence-about-the-d...
replies(2): >>11716193 #>>11716239 #
13. khedoros ◴[] No.11716044[source]
To a degree. Most Linux boxes don't have a couple dozen programmable IO pins and the other connectivity options for external sensors and such.

In the case of this project, you'd also have to do some modifications on the image-grabbing code. They're using a module that's specific to the Raspberry Pi camera module.

14. finnn ◴[] No.11716047[source]
No. There are some that actually use the Raspberry Pi hardware, such as PiFM[0]. Others merely use GPIO, which of course can work on a number of other SBCs (eg a Beaglebone Black) or anything with GPIOs. The only Raspberry Pi specific thing here is how it connects to the webcam, because the Raspberry Pi doesn't expose the camera as a standard v4l device, they have their own way of doing it.

[0]: https://github.com/ChristopheJacquet/PiFmRds

replies(1): >>11716060 #
15. khedoros ◴[] No.11716060{3}[source]
Well...there is a V4L2 driver for the Pi camera. Strictly speaking, they didn't have to use the picamera module.
16. morganvachon ◴[] No.11716065[source]
Actually this project is pretty specific to the Pi and its camera, though it can of course be modded for other hardware.

"So it just happens that the horizontal distance covered by the Picamera’s image is roughly equal to the distance from the lens. If you are 10 feet from the lens, the image is about 10 feet across, 47 feet from the lens, about 47 feet across, and so on.

Of course, other cameras may have a different field of view and won’t have this easy to determine correspondence."

17. zodPod ◴[] No.11716193{5}[source]
lol shit I picked some random GMO related shareable. Guess I picked the wrong one..
18. zodPod ◴[] No.11716239{5}[source]
That said, the image I linked specifically named Glyphosate while the story you posted appears to be saying that it wasn't Glyphosate, it was the co-formulants that are a problem, unless I'm misunderstanding?
19. zodPod ◴[] No.11716245{5}[source]
That's true!
20. awqrre ◴[] No.11717350{3}[source]
How about "Object speed measured by image processing (extracted from video input)" or osmbipefvi for short....
replies(1): >>11718172 #
21. scottlamb ◴[] No.11718005[source]
I strongly disagree. He made the project on a Raspberry Pi 2 and mentioned how this affected his design in several ways:

* he used Raspbian Jessie (almost but not quite Debian Jessie) and followed instructions for setting up the necessary packages on that distribution

* he tweaked his code to perform adequately on the Pi2 and described the performance limits on that hardware

* his code uses the Raspberry Pi camera library

* he used the Pi camera's field of view in his distance calculations

It's true that you could adapt it to different hardware, a different operating system, a different distance, or a different purpose. Even if you're doing so, it's still useful to have a concrete example to work from. (For example, knowing that the Pi2's performance is marginal for what he's trying to do may help you set expectations for performance of your hardware in your situation.) Without including the specifics you object to, the article would be short, abstract, and basically useless.

22. fudged71 ◴[] No.11718172{4}[source]
This thread is so pedantic it hurts
replies(1): >>11718993 #
23. ◴[] No.11718993{5}[source]