jhiggason / yahboomg1tank

ROS2 for YAHBOOM G1 Tank
https://opensar.net
MIT License
9 stars 0 forks source link

1080p Picam vs 480p usb cam #10

Open matt-desmarais opened 7 months ago

matt-desmarais commented 7 months ago

Since my camera mount is messed up I am leaning towards using a pi cam. I followed the instructions here and also installed the picamera2 python api. its a much better camera for $5-$10, it's easier to work with and frees up a usb port. A pan tilt mechanism with the existing servos could be 3d printed, what do you think? I printed a basic mount for now. PXL_20231223_020943921 output

matt-desmarais commented 7 months ago

works with Camera Ros I went through the issues and got it working, its not documented much but it does work!

Screenshot 2023-12-23 at 7 33 50 PM
jhiggason commented 7 months ago

I totally agree getting a better camera on there...but I also think we should try and use the one it comes with as well. The kit cost + raspberry pi is already a bit cost prohibitive for some people so anything we can do to teach folks how to do CV stuff without spending extra money would be beneficial.

I'll probably start with the cruddy one it comes with and then I have one of the new, low light raspberry pi cameras I will set up as well. I think there might be some big benefits to keeping the resolution low when first starting CV projects- particularly Graphics processing power to deal with 1080p vs 480p video. More thoughts on this later +)

jhiggason commented 7 months ago

Oops didnt mean to close this one

matt-desmarais commented 7 months ago

sounds good. I happened to find some replacement parts https://www.thingiverse.com/thing:4606347 https://www.thingiverse.com/thing:5257502

matt-desmarais commented 7 months ago

I got the 480p camera put together. Maybe the picam can be the camera for driving and then the USB cam could be the object recognition/tracking etc camera? I ended up getting the kit on Amazon for $99 plus 20% off https://www.amazon.com/dp/B0BQ716ZS9 Pi 4s are finally consistently in stock for retail price https://rpilocator.com/?country=US&cat=PI4

jhiggason commented 6 months ago

Dang thats a good price. I think I paid 70 for an amazon warehouse model. Sounds like you got the servo thingy together but if your still missing pieces let me know and I can model up the replacement parts.

jhiggason commented 6 months ago

So just FYI- I'm going to enable discussions here then we can move these issues to there instead and leave this for problems with the ROS2 code and other things we need to fix =)