Sane API 的純Python實現,Pyinsane 1.2.0

jopen 11年前發布 | 10K 次閱讀 Pyinsane

Pyinsane是 Sane API (使用ctypes) 的純Python實現和抽象層。它支持Python 2.7 和 Python 3.x, 并且需要Pillow。

代碼被分為3層:

  • rawapi : Ctypes binding to the raw Sane API
  • abstract : An Object-Oriented layer that simplifies the use of the Sane API and try to avoid possible misuse of the Sane API. When scanning, it also takes care of returning a PIL image.
  • abstract_th : The Sane API is not thread-safe and cannot be used in a multi-threaded environment easily. This layer solves this problem but using a fully dedicated thread.
 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!