Earlier quoted context omitted.
Good luck detecting a mosquito optically from a distance of several meters using a cheap camera and Raspberry Pi. Oh and you want to do from a moving drone. That will certainly make it work! Just look at the images in the article - the guy's best result was detecting a black speck appearing on a nearby white wall with some 60-70% reliability (based on his own numbers). So you would be missing a lot of mosquitoes - bu…
All you say is so true... That would make you a spoil sport, burst my bubble... I am going to have a little cry in the corner now. I really wanted a AI powered, laser equipped, mosquito hunting drone for my house. After all, what could possibly go wrong?
Raspberry Pi for Kill Mosquitoes by Laser
191–200 of 262 posts
Re: Raspberry Pi for Kill Mosquitoes by Laser
#192You can do this with sound. A hybrid system even better. I built tech ~10 years ago to track quiet, sound emitting objects in real time to sub CM resolution using microphone arrays. And in one demo I even had a laser pointer mounted on a 2 axis.... "swinging thingie" (sorry, I'm not a mech-E) which would constantly stay pointed on the loudest object in the room, as it moved. Fun stuff. Creepy even. Shame I never foun…
Re: Raspberry Pi for Kill Mosquitoes by Laser
#193Earlier quoted context omitted.
Good luck detecting a mosquito optically from a distance of several meters using a cheap camera and Raspberry Pi. Oh and you want to do from a moving drone. That will certainly make it work! Just look at the images in the article - the guy's best result was detecting a black speck appearing on a nearby white wall with some 60-70% reliability (based on his own numbers). So you would be missing a lot of mosquitoes - bu…
> using a cheap camera even if you had a RED Komodo feeding uncompressed 4K DCI 60fps video to a pci-express bus capture card, the sensor resolution and tiny size of mosquitoes means that unless the lighting conditions are just right, and the mosquito is somehow highlighted against a background, it's going to be very hard to pick them out at distances of 2 or more meters. and that's before you get into the software p…
The paper claims "1 - 5mm" for a mosquito, which seems plausible. Lets pick 5mm out of pure optimism. The new(ism) HQ Raspberry Pi camera modules are 12megapixel ~4000x3000 pixel sensors, if you assume you could recognise a mosquito based on it's flight/movement pattern rather than needing to have an image of the mosquito, maybe having a 2x2 pixel resolution of it might be enough, so you could use an appropriate lens and cover a 5mm x 4000pixel / 2 = 10,000mm or 10m wide by 7.5m tall region. That seems totally do-able. Even up to 4x4 pixel per mosquito at 5m x 3.75m would happily cover the wall of my bedroom with the windows. You _might_ even be able to do that with the cheaper 8 megapixel V2 camera module instead of the HQ one.
The background subtraction is fairly easy to do in OpenCV. Assuming there's not too much moving in the background (I might need to tie back my curtains?) I wonder if the path a mosquito traces out would be distinct enough to detect?
Research (read "the first google hit) suggests mosquitos fly at 1.6-2.4kmh - call it 2 - which is just over half a meter per second, so about 20mm per frame at 25fps, or 8mm per frame at 60fps. If we choose to use the 4px = ~5mm numbers from above, that means if you detect a thing that might be a mosquito, you don't need to search very far around it in the subsequent frame to track it - if it's a mosquito, it's likely to be still there and within 6 or 7 px of where it was in the previous frame. (I've never tried doing this on something so small, but that technique works really well tracking people across multiple frames in a video. See: https://data-flair.training/blogs/python-project-real-time-h... )
I don't think that at least x,y detection of a mosquito in a 12 or 8 megapixel camera is impossible. The 8MP raspi camera has a 63deg horizontal field of view, so that 5m wide assumed view from earlier would be at 5m distance give or take. If you could get your shoot-down laser close enough to your detection camera, you might not need to care about the z axis. The camera module is about 20mm square - at 5m range shooting the laser across the edge of the camera module pcb might be "close enough"? Might not work at short range, though once you're close you could scan the bean around a bit, it'll be super obvious in the camera view when you've got a hit (assuming the background doesn't;t reflect the laser brighter that a lit up mosquito? Great, now I have an excuse to paint my walls with VantaBlack...)
Another idea... Assume a similar setup - a camera aimed at a 5x3.75m cross section of space, with a line laser shining across it (one of those lasers shone through a cylinder that makes a line, like some power tools use to project guidelines). I'd guess it'd be possible (maybe even easy) to distinguish between dust mites and mosquitos lighting up as they cross the line laser? Perhaps have three co-planar line lasers 10mm or 20mm apart to make the timing of aiming your shoot-down laser easier, use the first flash as a detection signal and swivel your galvos to that region, and then use the 2nd/3rd flashes close by to quickly fine tune the aim without needing to swing too far?
(Now I just need to work out which if any of my half finished projects I should stop working on and half finish this one... ;-) )
Re: Raspberry Pi for Kill Mosquitoes by Laser
#194Earlier quoted context omitted.
Would targeting the distinctive mosquito whine be feasible? You could have several bluetooth mikes scattered around the room for good triangulation
There’s a reason bats hunt by sonar instead of vision.
There are a few places here in Sydney where you see a remarkable cloud of bats feeding in bright light - the lights over the harbour bridge and several of the tax buildings bordering the Botanic Gardens regularly have flocks of bats whirling around presumably attracted to all the insects flying in the bright lights...
Re: Raspberry Pi for Kill Mosquitoes by Laser
#195Earlier quoted context omitted.
Yes, at 300mm range, it's just a toy, and mounting a 1W laser with a targeting system on a drone is a terrible idea. I can see ways to make this work, though. You need a good way to tell that you're on target. The way to do that is to use the vision system only as a search radar, to find that there's something to shoot at and approximately where it is. Then point the laser near the target, at low power, and start sca…
> You need a good way to tell that you're on target. The way to do that is to use the vision system only as a search radar, to find that there's something to shoot at and approximately where it is. Then point the laser near the target, at low power, and start scanning around the target. Modulate the outgoing beam, so you can see when it's illuminating something. Get range from time of flight. When you find something…
Re: Raspberry Pi for Kill Mosquitoes by Laser
#196Earlier quoted context omitted.
Shrug, add a nice zoom lens to make it's effective range several meters instead. Of course it would be far sighted but maybe you know most mosquitos will be several meters away anyway. Or have 3 cameras, one for the cm, one for the m and one able to zoom many meters to look at known problem spots like puddles or a bird bath.
An alternative solution would be to genetically engineer bigger mosquitoes. This is why I should not be in charge of anything.
Re: Raspberry Pi for Kill Mosquitoes by Laser
#197I don't think 30cm distance is far enough for much usefulness, feels like commercial viability means at least 1m if not 2m. 30cm is 'put object by the food' use case and not much else, and mosquitos aren't really into food. Perhaps it could work by tent openings but not sure.
Re: Raspberry Pi for Kill Mosquitoes by Laser
#198Earlier quoted context omitted.
> using a cheap camera even if you had a RED Komodo feeding uncompressed 4K DCI 60fps video to a pci-express bus capture card, the sensor resolution and tiny size of mosquitoes means that unless the lighting conditions are just right, and the mosquito is somehow highlighted against a background, it's going to be very hard to pick them out at distances of 2 or more meters. and that's before you get into the software p…
Mosquitos, as we all know, have a highly distinctive auditory signature. A phased microphone array is the only sensible approach to localized mosquito detection. It would probably work reasonably well. The problem is that the entire field is patent encumbered, because Myhrvold's company Intellectual Ventures has done some research on it, and no on in their right mind would go up against those guys.
Re: Raspberry Pi for Kill Mosquitoes by Laser
#199Earlier quoted context omitted.
On Hacker News? Someone has probably already tried it. Possibly even more than one person — I mean, the linked paper isn’t even the first time I’ve seen research into the idea of anti-mosquito lasers, so anti-mosquito water cannons have probably been tried too.
Guilty as charged.
How well/badly dd it work?
Where's the blog post?
:-)
Re: Raspberry Pi for Kill Mosquitoes by Laser
#200Earlier quoted context omitted.
Mosquitos, as we all know, have a highly distinctive auditory signature. A phased microphone array is the only sensible approach to localized mosquito detection. It would probably work reasonably well. The problem is that the entire field is patent encumbered, because Myhrvold's company Intellectual Ventures has done some research on it, and no on in their right mind would go up against those guys.
Yeah, they already did sharks with lasers. IDK what the licensing terms are on that