开发者

Php: cut part of image

开发者 https://www.devze.com 2023-04-13 08:16 出处:网络
Hi my problem is the following: I have a jpg or pngimage file, white background. In this image there are many glasses pictures. My goal is to cut every single glasses picture and save in separate file

Hi my problem is the following: I have a jpg or png image file, white background. In this image there are many glasses pictures. My goal is to cut every single glasses picture and save in separate file. Position and siz开发者_如何学JAVAe of glasses pictures can vary. I have windows-based hosting service, can't install any third party software... All this using PHP (I know its not besto choice for these tasks, but i have only PHP there) Thanks!


What you are proposing here amounts to image recognition and analysis. Which is a very challenging area of programming. Its also very computationally expensive - so PHP is far from the ideal platform. That your question is so vague, and that you want to implement this in PHP on a hosted server rather implies that you're a long way out of your depth.

Go grab a copy the Gnu image manipulation program and do it by hand.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号