我试着把一张图片中所有人的脸都变成灰色。虽然我可以检测他们的脸并将他们灰化成较小的垫子,但我无法将灰化的面孔‘复制’到原始垫子上。使得最终结果将具有所有面都为灰色的垫子。
faceDetector.detectMultiScale(mat, faceDetections);
for (Rect rect : faceDetections.toArray())
{
Rect rectCrop = new Rect(rect.x, rect.y, rect.width, rect.height);
我有一个后台服务GpxService
public class GpxService extends Service implements LocationListener {
public boolean is_recording;
...
}
我可以在我的MainActivity中作为后台服务启动此服务:
gpxService = new Intent(MainActivity.this, GpxService.class);
gpxService.setAction(GpxService.START_SERVICE);
// notification, startFore