Skip to main content

A simple package for quick build PyQt5 app

Project description

SAM-Package

Test open camera


from SEV.cameras import HIK
    
camera = HIK(
    config={
        "id": ""
    }
)

if camera.open() and camera.start_grabbing():
    error, mat = camera.grab()

    assert mat is not None

    if error:
        print(error)
    elif mat is not None:
        print(mat.shape)

camera.close()

Test canvas


import sys
    from SEV.canvas.canvas import Canvas, WindowCanvas
    from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout
    from PyQt5.QtGui import QPixmap

    app = QApplication(sys.argv)
    
    canvas = Canvas()
    canvas.load_pixmap(QPixmap(640, 640))    

    win = QWidget()
    layout = QVBoxLayout(win)
    layout.addWidget(WindowCanvas(canvas, draw=True, zoom=True))

    win.show()
    
    sys.exit(app.exec_())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sevutils-0.0.2.tar.gz (485.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sevutils-0.0.2-py3-none-any.whl (514.0 kB view details)

Uploaded Python 3

File details

Details for the file sevutils-0.0.2.tar.gz.

File metadata

  • Download URL: sevutils-0.0.2.tar.gz
  • Upload date:
  • Size: 485.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.10

File hashes

Hashes for sevutils-0.0.2.tar.gz
Algorithm Hash digest
SHA256 44b35fa578f731691433237c6fa544f647d3bec0f54744ac1a5f12674b2a32a9
MD5 a0edcff3e9a218bad42369056b86e29c
BLAKE2b-256 0760140370891423ae3cb4f2525a911db018b98cb149d3a223ce80453369d469

See more details on using hashes here.

File details

Details for the file sevutils-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: sevutils-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 514.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.10

File hashes

Hashes for sevutils-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6365e570b002396b7a13e0b3901b2c8419aacd38a09c038ba8aaab02fa914909
MD5 273aaa919afdb1daebdba1ecd5de4d44
BLAKE2b-256 8962be1e2ba093a07a237d953141aff982d6a389412d2cbee6d26dca5dd804c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page