Sane

scanimage:無法辨識的選項

  • May 12, 2022

我想用scanimage和 Brother ADS-1700W 掃描器掃描頁面。我想出的命令如下所示:

scanimage -d "brother5:bus3;dev2" --mode "Black & White" --resolution 300 --AutoDescew=yes --format tiff  >out.tiff

這會產生以下錯誤:

unrecognized option '--AutoDescew'

我的掃描器似乎支持 AutoDescew 選項。我通過執行檢查了這一點

scanimage -h

這給了我以下輸出:

Options specific to device `brother5:bus3;dev2':   :

    --mode 24bit Color[Fast]|Black & White|True Gray|Gray[Error Diffusion] [24bit Color[Fast]]
        Select the scan mode
    --resolution 100|150|200|300|400|600|1200dpi [100]
        Sets the resolution of the scanned image.
    --source Automatic Document Feeder(left aligned)|Automatic Document Feeder(center aligned)|Automatic Document Feeder(left
aligned,Duplex)|Automatic Document Feeder(center aligned,Duplex)|Card
Slot|Card Slot(Duplex) [Automatic Document Feeder(left aligned)]
        Selects the scan source (such as a document-feeder).
    --brightness -50..50% (in steps of 1) [inactive]
        Controls the brightness of the acquired image.
    --contrast -50..50% (in steps of 1) [inactive]
        Controls the contrast of the acquired image.
    --MultifeedDetection[=(yes|no)] [inactive]
        
    --AutoDocumentSize[=(yes|no)] [no] [advanced]
        
    --AutoDeskew[=(yes|no)] [no] [advanced]
        
    --SkipBlankPage[=(yes|no)] [inactive]
        
    --SkipBlankPageSensitivity 0..100% (in steps of 1) [inactive]

為什麼該選項“無法辨識”?它與標記為“高級”的選項有關嗎?

額外的問題:我將如何啟用“非活動”選項?例如SkipBlankPage?我知道我的掃描器支持這個,但我不知道如何啟用它……

選項是--AutoDeskew,您正在嘗試--AutoDescew(‘c’ 而不是 ‘k’)。

引用自:https://unix.stackexchange.com/questions/702256