narixius / faceapp-php Goto Github PK
View Code? Open in Web Editor NEWFaceApp PHP API wrapper
License: MIT License
FaceApp PHP API wrapper
License: MIT License
Hi NarimanMov,
Thanks for this codes, it really helps a lot.
I know this is an unofficial wrap API. So I need to know is it unlimited for sending request FaceApp API?
When we use true
parameter $FaceApp->applyFilter($photoCode, $filter, true);
How can we define a size for the croped output file?
Hi,
Iam getting error in faceapp.php line 68.
Error display like this :
PHP Fatal error: Uncaught Exception: Too many requests. Please try again later. in FaceApp-PHP-master/FaceApp/faceapp.php:68
It works in localhost. but when i uploaded in my server, this message showed "Default value for parameters with a class type hint can only be NULL in /home/sajjadam/public_html/faceapp/api/faceapp.php on line 22"
Hello i juest added live proxy, but it showing "Unknown Error : 0"
Hi!
I have got no response. "no response...!"
Is there something changed with the FaceApp?
Thanks
Why Im getting this? Is there any limitation?
New image returns with label over face saying "Please update to the newest version of FaceApp". Is there a workaround?
Hi,
Iam getting error in faceapp.php line 76 and 77, No method or null error.
Is there any dependcies i need to install?
Thanks
Hello,
script does Not working when i give link on image path.
Actual code :
$FaceApp = new FaceApp("DIR.'/test/1.jpg'");
My Code:
$FaceApp = new FaceApp('https://i.imgur.com/aeuwLpOg.jpg');
I want use two filters so I have modified my code as follows
<?php
require('FaceApp/faceapp.php');
try {
$FaceApp = new FaceApp(__DIR__.'/test/image.jpg');
$photoCode = $FaceApp->getPhotoCode();
$filter = 'old';
$FaceApp->applyFilter($photoCode, $filter, true);
if ($FaceApp->savePhoto(__DIR__.'/test/image_old.jpg')) {
$FaceApp2 = new FaceApp(__DIR__.'/test/image_old.jpg');
$photoCode2 = $FaceApp2->getPhotoCode();
$filter2 = 'smile';
$FaceApp2->applyFilter($photoCode2, $filter2, true);
if ($FaceApp2->savePhoto(__DIR__.'/test/image_old_smile.jpg')) {
header('Content-Type: image/jpeg');
readfile(__DIR__.'/test/image_old_smile.jpg');
}
}
} catch (Exception $e) {
exit($e->getMessage());
}
but some reason second filter 'smile' doesn't seem to work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.