How to tell if a picture is a plane or a pencil?

when uploading an image, users need to determine whether the picture belongs to a certain type of image, such as an airplane.
the example I found is an image classifier, such as training three classified airplanes, cars, and motorcycles, and then uploading an image to determine which category the image is closest to. But I"m not sure what users will upload. For example, I tested and uploaded a cat, and the answer was an airplane. Obviously I can"t train all the picture categories, and it doesn"t meet our needs.
I want to be able to train aircraft for only one category, and then upload pictures to determine yes or no. The code in the
example uses sckikit-learn "s extreme forest algorithm for clustering, but I checked the api, and found no suitable method.
Methods

Methods

fit(X[, y])    Compute k-means clustering.
fit_predict(X[, y])    Compute cluster centers and predict cluster index for each sample.
fit_transform(X[, y])    Compute clustering and transform X to cluster-distance space.
get_params([deep])    Get parameters for this estimator.
predict(X)    Predict the closest cluster each sample in X belongs to.
score(X[, y])    Opposite of the value of X on the K-means objective.
set_params(**params)    Set the parameters of this estimator.
transform(X)    Transform X to a cluster-distance space.

how should I solve this problem?


if you train the three categories of aircraft, cars and motorcycles, then users send pictures and you predict (X) get three probabilities that should be onehot. You can manually set the probability to be lower than 0.9 or not recognized when a certain value.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e95b6d-47353.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e95b6d-47353.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?