It may come as a surprise, but outdoor security cameras often use the same USB C cables as most indoor security cameras for power, though they are weatherproofed. Otherwise, wires may connect to mains or to a DVR, which can power the camera through either coaxial or ethernet cables. Other cameras use batteries, which may be replaced or rechargeable. Solar panels are a novel way to charge the batteries.