last year i’ve replaced the borroscope with a simple USB Webcam to make pictures from a higher position so that less pictures are needed to scan the whole bed. I mounted the camera to the cross slide plate instead of the z-axis itself.
Now I’m facing issues to get the position properly calibrated so that farmbot coordinates match to the pictures. Here you can see, that the tools don’t match if they are on the other end of the picture.
If I move the bot right on top of the tools, it seem to match.
Did anyone run into anything similar, or just got experience to explain what happens there?
Found some kind of a solution but ran into the next problem. Tried some changes on the
Calibration Object Separation parameter of the camera calibration which made the tools fit to the picture in every angle.
Now the outer areas of the pictures are seen in the following picture that is taken.
I wonder if I’m able to fix that with the webapp or with the camera position.
Looks like i’ve got it. Now the tools still don’t fit to the picture, but the positioning from bot coordinates to the picture coordinates seem to match. The reason that the tools are not matching is, that they are on a different height level than the soil, so you could either calibrate the camera on the tool grid or the soil bed. Calibrating with the soil bed makes obviously more sense
Next thing is, that the camera reacts really sensitive to sunlight, or light generally. As you can see, plants are mostly just white and its really hard to configure the weed detector so can detect with any weather.
So I tried to change some settings in OpenCV using a modified version of the
The difference is not that great, but the weed detector works better for me now. Those pictures were taken only a few minues after the upper ones in this post.
I’m still not completely fine with the results, so I will mount a LED strip to the gantry and try to make photos at night. Sadly I’ve already changed my electronics to 24V but a stepdown module will probably save the day
I’m just writing this, to keep my experience with cheap USB cams documented .
@Ascend - thank you for documenting this. It seems the issue of height for tool bays is real. You just figured it out more quickly
I haven’t ventured into modifying packages yet but this is interesting to me and I’ll add to my list. In addition, do you mind sharing which camera you used?
@jrwaters Glad to see that it was worth writing down.
Those pictures were made by a Cimkiz A860 Webcam (https://www.amazon.com/-/de/Cimkiz-Webcam-Manual-Computer-Version/dp/B07QM3YGK7/ref=cm_cr_arp_d_product_top?ie=UTF8&language=en_US)
Right now I’m using a borroscope with auto focus (https://www.amazon.de/gp/product/B07L9XD23K/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&language=en_GB&psc=1).
Its important to avoid cameras with a great fisheye effect, but most webcam descriptions are not showing what lense it uses.
I also ordered that cam recently. Can you point me to the “4-pin male 90-degree waterproof connector” which is used on the original camera? Of have you just cut that on the original and soldered it together?
My original cameras never had those fancy M8 4-pin connectors. Instead they had USB plugs. The cam that you ordered has a very long cable with an USB plug that is supposed to be directly plugged in the raspberry. If you need to use the old USB cable for any reason, you can also buy a plug like this: https://shop.murrelektronik.de/en/Connection-Technology/Field-wireable/Signal/MOSA-M8-FEMALE-0-FIELD-WIREABLE-IDC-7000-08391-0000000.html?listtype=search&searchparam=M8+4pol+mosa+90°
This plug can be applied to the new camera cable.