此插件绝对需要PHP> = 5.3。 strong> p>This extension plugin for started out just as a little experiment.
这个扩展插件最初只是一个小实验。
I wanted to toy with face detection in images.
我想玩弄图像中的人脸检测。
I found this great little PHP library by Karthik Tharavaad that did just that.
我通过 Karthik Tharavaad 找到了一个很棒的PHP小库。
It works well for the most part but it is way too slow to be used for doing face detection on the fly.
它在大多数情况下都能很好地工作,但是它太慢了,无法即时进行人脸检测。
Then I remembered that TechCruch released a library called TechCruch 发布了一个名为
async-task" rel="nofollow">WP Asynchronous Tasks.
async-task“ rel =” nofollow“> WP异步任务。
What this neat little library does is allow intensive processes, you know, such as face detection, be processed asynchronously.
这个精巧的小程序库所做的是允许密集处理,例如人脸检测,可以异步处理。
After a short while I had the face detection running in background tasks.
片刻之后,我在后台任务中运行了人脸检测。
These background task could probably be more optimized but this is probably good enough for a first release.
这些后台任务可能会得到更优化,但是对于第一个版本来说可能已经足够了。 p>
Read this carefully…
仔细阅读... p>
Limitations:
限制:
1. The first time an image in Connections is accessed, it will be processed in the background and until the image is finished processing, the image will be scaled and cropped from the center origin which is the default behavior.
1.第一次访问Connections中的图像时,将在后台对其进行处理,直到图像完成处理为止,图像将从中心原点开始缩放和裁剪,这是默认行为。
2. The face detection library can only detect a single face.
2.人脸检测库只能检测单个人脸。
So I suggest this extension only be used for people directories.
因此,我建议将此扩展名仅用于人员目录。
3. The images should be clean and bright with the person facing as straight as possible for the best results.
3.图像应整洁明亮,人物应尽可能直着面对,以获得最佳效果。
4. This very well could slow down the server for a period of time if there are a large number of images in the process queue.
4.如果进程队列中有大量映像,这很好会使服务器在一段时间内变慢。
5. And … use at your own risk.
5.而且…使用风险自负。 p>
Checkout the screenshots.
签出屏幕截图。 p>
Here are other great extensions that enhance your expirence with the Connections Business Directory:
还有其他一些很棒的扩展,可以通过Connections Business Directory增强您的过期时间: p>
Utility
实用程序 p>