Camouflaged object detection(COD) is an emerging and challenging visual detection task that can recognize and segment objects that perfectly blend into their surroundings. This paper introduces a novel multi-task learning framework(DEENet). It primarily features a dual-branch structure: one branch is the edge enhancement module based on multi-head attention mechanism, and the other branch is the semantic feature extraction module. We effectively utilize the gradient information to integrate two kinds of features through the gradient-induced transition module. Extensive experiments on three challenging test datasets demonstrate that our DEENet outperforms existing state-of-the-art methods.