Suppliers and brands across the $1.7 trillion global fashion industry are beginning to use AI technology, such as in cameras and sensors that detect defects, to boost production and to reduce their environmental impact, including by monitoring emissions and water use.