Skip to main content

tjwmd

Project description

tjwmd

Installation

pip install tjwmd

Quick Start

import cv2
from tjwmd import TJWMD
from ultralytics import YOLO

image = cv2.imread('image.jpg')

wmc = YOLO(
    'wmc_model.pt'
)
wmd = YOLO(
    'wmd_model.pt'
)
tjwmd = TJWMD(
    wmc,
    wmc.names.values(),
    wmd
)

r = tjwmd.predict(
    frame_=image,
    num_of_digits=6,
    angle=0,
    wm_counter_conf=0.4,
    wm_digits_conf=0.1
)

if r:
    results, result_img = r
    print(result_img)
    cv2.imwrite('result.jpg', result_img)

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

tjwmd-1.0.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

tjwmd-1.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file tjwmd-1.0.1.tar.gz.

File metadata

  • Download URL: tjwmd-1.0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-41-generic

File hashes

Hashes for tjwmd-1.0.1.tar.gz
Algorithm Hash digest
SHA256 545d010bcbc8ca2772d77aba04177bcd4ae19893b6ac1e4a6ad588e177576126
MD5 bb91b5b91b214a78e65ab54c547d7e7b
BLAKE2b-256 e6bcbfdb793312abbfa322e7c527805bbaccd4c44205755144820b6554df0fe3

See more details on using hashes here.

File details

Details for the file tjwmd-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: tjwmd-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-41-generic

File hashes

Hashes for tjwmd-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4d4a55dfa65de99e53c6c9c96937cacf4d23249ab40b201567e9257d511f822d
MD5 d1eab8b57af5191591ae23690d7bd004
BLAKE2b-256 2a48aec6c01830617718193d7a5d02e9252b1cc4bac695e0a58ecda62858abea

See more details on using hashes here.

Supported by

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