DEV: Reduce megapixel requirement for auto image captioning (#754)
This commit is contained in:
parent
23b88537d9
commit
867cd54556
|
@ -84,10 +84,10 @@ export default apiInitializer("1.25.0", (api) => {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
// Checks if image is small (≤ 0.4 MP)
|
// Checks if image is small (≤ 0.1 MP)
|
||||||
function isSmallImage(width, height) {
|
function isSmallImage(width, height) {
|
||||||
const megapixels = (width * height) / 1000000;
|
const megapixels = (width * height) / 1000000;
|
||||||
return megapixels <= 0.4;
|
return megapixels <= 0.1;
|
||||||
}
|
}
|
||||||
|
|
||||||
function needsImprovedCaption(caption) {
|
function needsImprovedCaption(caption) {
|
||||||
|
|
Loading…
Reference in New Issue