A connection mechanism for detachably installing a carrier device to a supporting device, comprising: a first base fixable on the supporting device; a second base fixable on the carrier device and detachably connected to the first base; a latch movably disposed on the second base, the latch corresponding to the first base; and an operating component disposed on the second base and operably connected to the latch, the operating component selectively driving the latch to move to a locking position so that the second base is locked to the first base, or driving the latch to move to an unlocking position so that the second base is unlocked from the first base, wherein the operating component comprises a first operating part movably disposed on a first portion of the second base and connected to the latch, and the first operating part selectively drives the latch to move to the locking position or drives the latch to move to the unlocking position, wherein a movement direction of the first operating part crosses with a movement direction of the latch, and wherein the first operating part has a first inclined surface driven to abut against the latch so that the movement direction of the first operating part crosses with the movement direction of the latch, characterized in that the first operating part comprises a first operating body having a first slanted slot thereon forming the first inclined surface, wherein the extension direction of the slanted slot slants to the movement direction of the first operating part, the latch comprises a latch body and a pin body, and the pin body is connected to the latch body, movably accommodated in the first slanted slot, and driven to abut against the first inclined surface. a first base fixable on the supporting device; a second base fixable on the carrier device and detachably connected to the first base; a latch movably disposed on the second base, the latch corresponding to the first base; and an operating component disposed on the second base and operably connected to the latch, the operating component selectively driving the latch to move to a locking position so that the second base is locked to the first base, or driving the latch to move to an unlocking position so that the second base is unlocked from the first base, wherein the operating component comprises a first operating part movably disposed on a first portion of the second base and connected to the latch, and the first operating part selectively drives the latch to move to the locking position or drives the latch to move to the unlocking position, wherein a movement direction of the first operating part crosses with a movement direction of the latch, and wherein the first operating part has a first inclined surface driven to abut against the latch so that the movement direction of the first operating part crosses with the movement direction of the latch, characterized in that the first operating part comprises a first operating body having a first slanted slot thereon forming the first inclined surface, wherein the extension direction of the slanted slot slants to the movement direction of the first operating part, the latch comprises a latch body and a pin body, and the pin body is connected to the latch body, movably accommodated in the first slanted slot, and driven to abut against the first inclined surface.