what is the difference between frame and framework?

what is the difference between frame and framework? Accroding to Longman, frame means"the main ideas, facts etc that sth is based on" while framework means “a set of ideas, rules, or beliefs from which sth is developed or on which decisions are based”.

Frame - Common use - A wooden/plastic structure which protects a photo/any painting.

Framework -(Software/Coding) - A group of re-usable steps to achieve/complete a
task. The sequence of steps is a very important point
here.

Framework -(Science) - A process to achieve/complete/test/prove any fact.

This last item maybe re-defined up to some extent.