> But then I thought that if I had just used that code as is, it probably would have worked but I wouldn't have learned anything about opencv.
A large majority of people would be very, very happy with this. I don't have to know how to fix my car to drive it and thank God for that!
I think it's wonderful that LLMs enable someone to create useful things without understanding what's happening under the hood.
I also hope those people don't claim to be / won't be hired as (senior) software engineers, though.