@@ -742,179 +742,179 @@ async function localizeObjectsGCS(gcsUri) {
742
742
require ( `yargs` ) // eslint-disable-line
743
743
. demand ( 1 )
744
744
. command (
745
- ` faces <fileName>` ,
746
- ` Detects faces in a local image file.` ,
745
+ ' faces <fileName>' ,
746
+ ' Detects faces in a local image file.' ,
747
747
{ } ,
748
748
opts => detectFaces ( opts . fileName )
749
749
)
750
750
. command (
751
- ` faces-gcs <bucketName> <fileName>` ,
752
- ` Detects faces in an image in Google Cloud Storage.` ,
751
+ ' faces-gcs <bucketName> <fileName>' ,
752
+ ' Detects faces in an image in Google Cloud Storage.' ,
753
753
{ } ,
754
754
opts => detectFacesGCS ( opts . bucketName , opts . fileName )
755
755
)
756
756
. command (
757
- ` labels <fileName>` ,
758
- ` Detects labels in a local image file.` ,
757
+ ' labels <fileName>' ,
758
+ ' Detects labels in a local image file.' ,
759
759
{ } ,
760
760
opts => detectLabels ( opts . fileName )
761
761
)
762
762
. command (
763
- ` labels-gcs <bucketName> <fileName>` ,
764
- ` Detects labels in an image in Google Cloud Storage.` ,
763
+ ' labels-gcs <bucketName> <fileName>' ,
764
+ ' Detects labels in an image in Google Cloud Storage.' ,
765
765
{ } ,
766
766
opts => detectLabelsGCS ( opts . bucketName , opts . fileName )
767
767
)
768
768
. command (
769
- ` landmarks <fileName>` ,
770
- ` Detects landmarks in a local image file.` ,
769
+ ' landmarks <fileName>' ,
770
+ ' Detects landmarks in a local image file.' ,
771
771
{ } ,
772
772
opts => detectLandmarks ( opts . fileName )
773
773
)
774
774
. command (
775
- ` landmarks-gcs <bucketName> <fileName>` ,
776
- ` Detects landmarks in an image in Google Cloud Storage.` ,
775
+ ' landmarks-gcs <bucketName> <fileName>' ,
776
+ ' Detects landmarks in an image in Google Cloud Storage.' ,
777
777
{ } ,
778
778
opts => detectLandmarksGCS ( opts . bucketName , opts . fileName )
779
779
)
780
- . command ( ` text <fileName>` , ` Detects text in a local image file.` , { } , opts =>
780
+ . command ( ' text <fileName>' , ' Detects text in a local image file.' , { } , opts =>
781
781
detectText ( opts . fileName )
782
782
)
783
783
. command (
784
- ` text-gcs <bucketName> <fileName>` ,
785
- ` Detects text in an image in Google Cloud Storage.` ,
784
+ ' text-gcs <bucketName> <fileName>' ,
785
+ ' Detects text in an image in Google Cloud Storage.' ,
786
786
{ } ,
787
787
opts => detectTextGCS ( opts . bucketName , opts . fileName )
788
788
)
789
789
. command (
790
- ` logos <fileName>` ,
791
- ` Detects logos in a local image file.` ,
790
+ ' logos <fileName>' ,
791
+ ' Detects logos in a local image file.' ,
792
792
{ } ,
793
793
opts => detectLogos ( opts . fileName )
794
794
)
795
795
. command (
796
- ` logos-gcs <bucketName> <fileName>` ,
797
- ` Detects logos in an image in Google Cloud Storage.` ,
796
+ ' logos-gcs <bucketName> <fileName>' ,
797
+ ' Detects logos in an image in Google Cloud Storage.' ,
798
798
{ } ,
799
799
opts => detectLogosGCS ( opts . bucketName , opts . fileName )
800
800
)
801
801
. command (
802
- ` properties <fileName>` ,
803
- ` Detects image properties in a local image file.` ,
802
+ ' properties <fileName>' ,
803
+ ' Detects image properties in a local image file.' ,
804
804
{ } ,
805
805
opts => detectProperties ( opts . fileName )
806
806
)
807
807
. command (
808
- ` properties-gcs <bucketName> <fileName>` ,
809
- ` Detects image properties in an image in Google Cloud Storage.` ,
808
+ ' properties-gcs <bucketName> <fileName>' ,
809
+ ' Detects image properties in an image in Google Cloud Storage.' ,
810
810
{ } ,
811
811
opts => detectPropertiesGCS ( opts . bucketName , opts . fileName )
812
812
)
813
813
. command (
814
- ` safe-search <fileName>` ,
815
- ` Detects safe search properties in a local image file.` ,
814
+ ' safe-search <fileName>' ,
815
+ ' Detects safe search properties in a local image file.' ,
816
816
{ } ,
817
817
opts => detectSafeSearch ( opts . fileName )
818
818
)
819
819
. command (
820
- ` safe-search-gcs <bucketName> <fileName>` ,
821
- ` Detects safe search properties in an image in Google Cloud Storage.` ,
820
+ ' safe-search-gcs <bucketName> <fileName>' ,
821
+ ' Detects safe search properties in an image in Google Cloud Storage.' ,
822
822
{ } ,
823
823
opts => detectSafeSearchGCS ( opts . bucketName , opts . fileName )
824
824
)
825
825
. command (
826
- ` crops <fileName>` ,
827
- ` Detects crop hints in a local image file.` ,
826
+ ' crops <fileName>' ,
827
+ ' Detects crop hints in a local image file.' ,
828
828
{ } ,
829
829
opts => detectCropHints ( opts . fileName )
830
830
)
831
831
. command (
832
- ` crops-gcs <bucketName> <fileName>` ,
833
- ` Detects crop hints in an image in Google Cloud Storage.` ,
832
+ ' crops-gcs <bucketName> <fileName>' ,
833
+ ' Detects crop hints in an image in Google Cloud Storage.' ,
834
834
{ } ,
835
835
opts => detectCropHintsGCS ( opts . bucketName , opts . fileName )
836
836
)
837
837
. command (
838
- ` web <fileName>` ,
839
- ` Finds similar photos on the web for a local image file.` ,
838
+ ' web <fileName>' ,
839
+ ' Finds similar photos on the web for a local image file.' ,
840
840
{ } ,
841
841
opts => detectWeb ( opts . fileName )
842
842
)
843
843
. command (
844
- ` web-gcs <bucketName> <fileName>` ,
845
- ` Finds similar photos on the web for an image in Google Cloud Storage.` ,
844
+ ' web-gcs <bucketName> <fileName>' ,
845
+ ' Finds similar photos on the web for an image in Google Cloud Storage.' ,
846
846
{ } ,
847
847
opts => detectWebGCS ( opts . bucketName , opts . fileName )
848
848
)
849
849
. command (
850
- ` web-geo <fileName>` ,
851
- ` Detects web entities with improved results using geographic metadata` ,
850
+ ' web-geo <fileName>' ,
851
+ ' Detects web entities with improved results using geographic metadata' ,
852
852
{ } ,
853
853
opts => detectWebGeo ( opts . fileName )
854
854
)
855
855
. command (
856
- ` web-geo-gcs <bucketName> <fileName>` ,
857
- ` Detects web entities with improved results using geographic metadata` ,
856
+ ' web-geo-gcs <bucketName> <fileName>' ,
857
+ ' Detects web entities with improved results using geographic metadata' ,
858
858
{ } ,
859
859
opts => detectWebGeoGCS ( opts . bucketName , opts . fileName )
860
860
)
861
861
. command (
862
- ` fulltext <fileName>` ,
863
- ` Extracts full text from a local image file.` ,
862
+ ' fulltext <fileName>' ,
863
+ ' Extracts full text from a local image file.' ,
864
864
{ } ,
865
865
opts => detectFulltext ( opts . fileName )
866
866
)
867
867
. command (
868
- ` fulltext-gcs <bucketName> <fileName>` ,
869
- ` Extracts full text from an image in Google Cloud Storage.` ,
868
+ ' fulltext-gcs <bucketName> <fileName>' ,
869
+ ' Extracts full text from an image in Google Cloud Storage.' ,
870
870
{ } ,
871
871
opts => detectFulltextGCS ( opts . bucketName , opts . fileName )
872
872
)
873
873
. command (
874
- ` pdf <bucketName> <fileName> <outputPrefix>` ,
875
- ` Extracts full text from a pdf file` ,
874
+ ' pdf <bucketName> <fileName> <outputPrefix>' ,
875
+ ' Extracts full text from a pdf file' ,
876
876
{ } ,
877
877
opts => detectPdfText ( opts . bucketName , opts . fileName , opts . outputPrefix )
878
878
)
879
879
. command (
880
- ` localize-objects <fileName>` ,
881
- ` Detects Objects in a local image file` ,
880
+ ' localize-objects <fileName>' ,
881
+ ' Detects Objects in a local image file' ,
882
882
{ } ,
883
883
opts => localizeObjects ( opts . fileName )
884
884
)
885
885
. command (
886
- ` localize-objects-gcs <gcsUri>` ,
887
- ` Detects Objects Google Cloud Storage Bucket` ,
886
+ ' localize-objects-gcs <gcsUri>' ,
887
+ ' Detects Objects Google Cloud Storage Bucket' ,
888
888
{ } ,
889
889
opts => localizeObjectsGCS ( opts . gcsUri )
890
890
)
891
- . example ( ` node $0 faces ./resources/face_no_surprise.jpg` )
892
- . example ( ` node $0 faces-gcs my-bucket your-image.jpg` )
893
- . example ( ` node $0 labels ./resources/wakeupcat.jpg` )
894
- . example ( ` node $0 labels-gcs my-bucket your-image.jpg` )
895
- . example ( ` node $0 landmarks ./resources/landmark.jpg` )
896
- . example ( ` node $0 landmarks-gcs my-bucket your-image.jpg` )
897
- . example ( ` node $0 text ./resources/wakeupcat.jpg` )
898
- . example ( ` node $0 text-gcs my-bucket your-image.jpg` )
899
- . example ( ` node $0 logos ./resources/logos.png` )
900
- . example ( ` node $0 logos-gcs my-bucket your-image.jpg.png` )
901
- . example ( ` node $0 properties ./resources/landmark.jpg` )
902
- . example ( ` node $0 properties-gcs my-bucket your-image.jpg` )
903
- . example ( ` node $0 safe-search ./resources/wakeupcat.jpg` )
904
- . example ( ` node $0 safe-search-gcs my-bucket your-image.jpg` )
905
- . example ( ` node $0 crops ./resources/wakeupcat.jpg` )
906
- . example ( ` node $0 crops-gcs my-bucket your-image.jpg` )
907
- . example ( ` node $0 web ./resources/wakeupcat.jpg` )
908
- . example ( ` node $0 web-gcs my-bucket your-image.jpg` )
909
- . example ( ` node $0 web-geo ./resources/city.jpg` )
910
- . example ( ` node $0 web-geo-gcs my-bucket your-image.jpg` )
911
- . example ( ` node $0 fulltext ./resources/wakeupcat.jpg` )
912
- . example ( ` node $0 fulltext-gcs my-bucket your-image.jpg` )
913
- . example ( ` node $0 pdf my-bucket my-pdf.pdf results` )
914
- . example ( ` node $0 localize-objects ./resources/duck_and_truck.jpg` )
915
- . example ( ` node $0 localize-objects-gcs gs://bucket/bucketImage.png` )
891
+ . example ( ' node $0 faces ./resources/face_no_surprise.jpg' )
892
+ . example ( ' node $0 faces-gcs my-bucket your-image.jpg' )
893
+ . example ( ' node $0 labels ./resources/wakeupcat.jpg' )
894
+ . example ( ' node $0 labels-gcs my-bucket your-image.jpg' )
895
+ . example ( ' node $0 landmarks ./resources/landmark.jpg' )
896
+ . example ( ' node $0 landmarks-gcs my-bucket your-image.jpg' )
897
+ . example ( ' node $0 text ./resources/wakeupcat.jpg' )
898
+ . example ( ' node $0 text-gcs my-bucket your-image.jpg' )
899
+ . example ( ' node $0 logos ./resources/logos.png' )
900
+ . example ( ' node $0 logos-gcs my-bucket your-image.jpg.png' )
901
+ . example ( ' node $0 properties ./resources/landmark.jpg' )
902
+ . example ( ' node $0 properties-gcs my-bucket your-image.jpg' )
903
+ . example ( ' node $0 safe-search ./resources/wakeupcat.jpg' )
904
+ . example ( ' node $0 safe-search-gcs my-bucket your-image.jpg' )
905
+ . example ( ' node $0 crops ./resources/wakeupcat.jpg' )
906
+ . example ( ' node $0 crops-gcs my-bucket your-image.jpg' )
907
+ . example ( ' node $0 web ./resources/wakeupcat.jpg' )
908
+ . example ( ' node $0 web-gcs my-bucket your-image.jpg' )
909
+ . example ( ' node $0 web-geo ./resources/city.jpg' )
910
+ . example ( ' node $0 web-geo-gcs my-bucket your-image.jpg' )
911
+ . example ( ' node $0 fulltext ./resources/wakeupcat.jpg' )
912
+ . example ( ' node $0 fulltext-gcs my-bucket your-image.jpg' )
913
+ . example ( ' node $0 pdf my-bucket my-pdf.pdf results' )
914
+ . example ( ' node $0 localize-objects ./resources/duck_and_truck.jpg' )
915
+ . example ( ' node $0 localize-objects-gcs gs://bucket/bucketImage.png' )
916
916
. wrap ( 120 )
917
917
. recommendCommands ( )
918
- . epilogue ( ` For more information, see https://cloud.google.com/vision/docs` )
918
+ . epilogue ( ' For more information, see https://cloud.google.com/vision/docs' )
919
919
. help ( )
920
920
. strict ( ) . argv ;
0 commit comments