The invention discloses a camera device and an automobile. The camera device comprises a shell, an
optical filter, a control panel, a lens and a
light source part. The shell comprises a front shell, a middle plate and a rear shell, the front shell and the rear shell are detachably connected, and the middle plate is located in an inner cavity of the shell and fixedly connected with the front shell. The
optical filter is fixedly installed on the front end face of the front shell. The control plate is detachably installed on the rear end face of the middle plate. The lens is fixedly installed on the middle plate and electrically connected with the control panel, and the front end of the lens penetrates through the front shell and the
optical filter. The
light source piece is fixedly installed on the front end face of the middle plate and electrically connected with the control panel. The
light filter is used for filtering light of the
light source piece. When the control panel is installed, the rear shell is detached, the control panel is installed on the middle plate, at the moment, the lens, the optical filter and the light source piece are kept relatively fixed, it is avoided that the imaging precision is affected due to relative movement, meanwhile, it is guaranteed that the lens and the front shell are relatively fixed, it is avoided that the precision is affected due to manual reassembly, and therefore the imaging precision of the camera device is guaranteed.