Skip to main content

""" This is a demo for cvisp, 开发板、相机等拍摄设备取到的RAW with metadata,可以直接用该工具包进行demosaic,得到RGB图像,以便于展示。 - pip install cvisp - from cvisp.utils import Demosaic_RAW

"""

""" 三种模式,分别为:预览raw图,推理GDIP,预览demosaic(自用) run_demosaic(): return the demosaiced image, (HWC, u16, bmp) run_isp_with_meta(): return the rgb image , (HWC, u8, bmp) run_model(weight_path = './your.pt', model = GDIP(), device = 'cuda:0'): return the output of your model, (HWC, u8, bmp)

完整传参说明:
- Demosaic_RAW(mode : str = None, input_data_path : str = None, show_meta_data : bool = True, 
show_image : bool = False, save_image : bool = True, result_output_dir : str = None):
    mode: defatult = 'simple_dm', choices = ['simple_dm', 'opencv_dm']
    input_data_path: raw图片路径,支持单张图片,如:'./test.dng'
    show_meta_data: show the meta data of the input data, default = True,你可以选择是否展示meta data
    show_image: show the output image, default = False,你可以选择是否展示输出图像
    save_image: save the output image, default = True,你可以选择是否保存输出图像,保存路径为result_output_dir
    result_output_dir: the output dir of the result image, default = './demosaic/',你可以选择保存路径

"""

if name == 'main': for im in glob.glob(image_path_list + '*.dng'): demosaicd_raw = Demosaic_RAW(input_data_path = im).run_model(weight_path = './your.pt', model = GDIP(), device = 'cuda:0') # rgb = Demosaic_RAW(input_data_path = im).run_isp_with_meta() # gdip_out = Demosaic_RAW(input_data_path = im).run_model(weight_path = './your.pt', model = GDIP(), device = 'cuda:0')

Metadata

Release files for caltool 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for caltool 0.1.1
File Size Uploaded Provenance Actions
caltool-0.1.1.tar.gz 4.1 kB Without provenance Details for caltool-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for caltool 0.1.1
File Interpreter ABI Platform Actions
caltool-0.1.1-py3-none-any.whl Python 3 none any Details for caltool-0.1.1-py3-none-any.whl

Total release size: 12.5 kB

Release files / caltool-0.1.1.tar.gz

Download URL caltool-0.1.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
91f9980d91b541a334e82078417d5a275fced3f780115a429798d3452f75ee58
BLAKE2b-256 checksum
How to use checksums
6b2345cc705041705e4973374083c521c9b337a8d12c6df33e83501caa1f7f20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.15 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

Release files / caltool-0.1.1-py3-none-any.whl

Download URL caltool-0.1.1-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a816d67ca2bed343c2014a43f05ec7306368317d0dd7546d93292beec643d00
BLAKE2b-256 checksum
How to use checksums
05a2dc8718fcc2dd798c86691573670a8e8eb6c73c05962050514f40531384c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.15 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

Security for caltool 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page