39
A simple image edge detection method
General steps:
The third step is the most critical. There are many ways to directly contrast the adjacent brightness.
Instructions:
composer require lizhichao/one-img
$img_path = '1.jpg';
$img = new \OneImg\Border();
$img->setImg($img_path)
->scale(300, 300)
->outline()
->save(); //Output to browser

39