Last updated:
0 purchases
nudeny
Nudeny Implementation #
Classification #
classify #
To classify images in the paths list, you can use the nudeny.classify(List<String>) method.
Parameters
Name
Data Type
Description
paths
List<String>
List of image paths.
Return value Map<dynamic>
import 'package:nudeny/nudeny.dart';
void main() async {
var nudeny = Nudeny();
var classifyResult = await nudeny.classify([ './Nudeny/testing/blackbuck.bmp', './Nudeny/testing/4f6e821141824b9ef81f82e7cf341288.jpg' ]);
print(classifyResult);
}
copied to clipboard
classifyUrl #
To classify images in the urls, you can use the nudeny.classifyUrl(List<String>) method.
Parameters
Name
Data Type
Description
urls
List<String>
List of image urls.
Return value Map<dynamic>
import 'package:nudeny/nudeny.dart';
void main() async {
var nudeny = Nudeny();
var classifyUrlResult = await nudeny.classifyUrl([
"https://filesamples.com/samples/image/jfif/sample1.jfif",
"https://w7.pngwing.com/pngs/895/199/png-transparent-spider-man-heroes-download-with-transparent-background-free-thumbnail.png",
"http://digitalcommunications.wp.st-andrews.ac.uk/files/2019/04/JPEG_compression_Example.jpg"
]);
print(classifyUrlResult);
}
copied to clipboard
Detection #
detect #
to detect images in the paths, you can use the nudeny.detect(List<String>) method
Parameters
Name
Data Type
Description
paths
List<String>
List of image paths.
Return value Map<dynamic>
import 'package:nudeny/nudeny.dart';
void main() async {
var nudeny = Nudeny();
var detectResult = await nudeny.detect([
'./Nudeny/testing/blackbuck.bmp',
'./Nudeny/testing/4f6e821141824b9ef81f82e7cf341288.jpg'
]);
print(detectResult);
}
copied to clipboard
detectUrl #
to detect images in the urls, you can use the nudeny.detectUrl(List<String>) method
Parameters
Name
Data Type
Description
urls
List<String>
List of image urls.
Return value Map<dynamic>
import 'package:nudeny/nudeny.dart';
void main() async {
var nudeny = Nudeny();
var detectUrlResult = await nudeny.detectUrl([
"https://filesamples.com/samples/image/jfif/sample1.jfif",
"https://w7.pngwing.com/pngs/895/199/png-transparent-spider-man-heroes-download-with-transparent-background-free-thumbnail.png",
"http://digitalcommunications.wp.st-andrews.ac.uk/files/2019/04/JPEG_compression_Example.jpg"
]);
print(detectUrlResult);
}
copied to clipboard
Censorship #
censor #
to censor images in the paths, you can use the nudeny.censor(List<String>) method
Parameters
Name
Data Type
Description
paths
List<String>
List of image paths.
Return value Map<dynamic>
import 'package:nudeny/nudeny.dart';
void main() async {
var nudeny = Nudeny();
var censorResult = await nudeny.censor([
'./Nudeny/testing/blackbuck.bmp',
'./Nudeny/testing/4f6e821141824b9ef81f82e7cf341288.jpg'
]);
print(censorResult);
}
copied to clipboard
censorUrl #
to censor images in the urls, you can use the nudeny.censorUrl(List<String>) method
Parameters
Name
Data Type
Description
urls
List<String>
List of image urls.
Return value Map<dynamic>
import 'package:nudeny/nudeny.dart';
void main() async {
var nudeny = Nudeny();
var censorUrlResult = await nudeny.censorUrl([
"https://filesamples.com/samples/image/jfif/sample1.jfif",
"https://w7.pngwing.com/pngs/895/199/png-transparent-spider-man-heroes-download-with-transparent-background-free-thumbnail.png",
"http://digitalcommunications.wp.st-andrews.ac.uk/files/2019/04/JPEG_compression_Example.jpg"
]);
print(censorUrlResult);
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.