they're similar, but used in different situations.
认为 is more like how you think of sth, your opion about sth,
以为 is your assumption of sth, and it's often used when you found out your assumption is not true,
however you can still use 以为 to express your opion, but 认为 can only be a guessing, whether it's true is unknown.