Name | sealwatch JSON |
Version |
2024.3
JSON |
| download |
home_page | None |
Summary | Implementation of modern image steganalysis algorithms |
upload_time | 2024-06-22 20:00:14 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. |
keywords |
image
jpeg
steganalysis
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Contents
The following steganalysis feature implementations are provided:
| Abbreviation | Full name | Dimensionality | Reference | Output format |
|--------------|---------------------------------------------|---------------:|-------------------------------------------------------------|-------------|
| SPAM | Subtractive pixel adjacency matrix | 686 | [Reference](https://doi.org/10.1109/TIFS.2010.2045842) | ordered dict |
| JRM | JPEG rich model | 11255 | [Reference](https://doi.org/10.1117/12.907495) | ordered dict |
| DCTR | Discrete cosine transform residual features | 8000 | [Reference](https://doi.org/10.1109/TIFS.2014.2364918) | 1D array |
| PHARM | Phase-aware projection rich model | 12600 | [Reference](https://doi.org/10.1117/12.2075239) | ordered dict |
| GFR | Gabor filter residual features | 17000 | [Reference](https://dl.acm.org/doi/10.1145/2756601.2756608) | 5D array |
These implementations are based on the [Matlab reference implementations](https://dde.binghamton.edu/download/feature_extractors/) provided by the DDE lab at Binghamton University.
# Usage
Extract features from a single JPEG image
```python
from sealwatch.features.gfr.gfr import extract_gfr_features_from_file
features = extract_gfr_features_from_file("seal1.jpg")
```
Extract features for a directory of JPEG images and store them to a HDF5 file in the output directory.
```bash
python sealwatch/batch_extraction/extract_features.py \
--input_dir input_dir \
--output_dir output_dir \
--feature_type "gfr"
```
After having extracted features from cover and stego images, you can train an FLD ensemble as binary classifier.
```python
import numpy as np
from sealwatch.ensemble_classifier.fld_ensemble_trainer import FldEnsembleTrainer
from sealwatch.ensemble_classifier.load_features import load_and_split_features
cover_features = "cover_features.h5"
stego_features = "stego_features.h5"
train_csv = "train.csv"
test_csv = "test.csv"
cover_features_train, stego_features_train, cover_features_test, stego_features_test = load_and_split_features(
cover_features_filename=cover_features,
stego_features_filename=stego_features,
train_csv=train_csv,
test_csv=test_csv,
)
# Training is faster when arrays are C-contiguous
cover_features_train = np.ascontiguousarray(cover_features_train)
stego_features_train = np.ascontiguousarray(stego_features_train)
# The hyper-parameter search is wrapped inside a trainer class
trainer = FldEnsembleTrainer(
Xc=cover_features_train,
Xs=stego_features_train,
seed=12345,
verbose=1,
)
# Train with hyper-parameter search
trained_ensemble, training_records = trainer.train()
# Concatenate the test features and labels
X_test = np.concatenate((cover_features_test, stego_features_test), axis=0)
y_test = np.concatenate((
-np.ones(len(cover_features_test)),
+np.ones(len(stego_features_test))
), axis=0)
# Calculate test accuracy
test_accuracy = trained_ensemble.score(X_test, y_test)
```
## Feature formats
Note that the feature extractors return different formats: 1D arrays, multi-dimensional arrays, or ordered dicts.
The reason is that feature descriptors are composed of multiple submodels. Retaining the structure allows the user to select a specific submodel. The following snippets show how to flatten the features to a 1D array.
**Multi-dimensional array**
```python
from sealwatch.features.gfr import extract_gfr_features_from_file
# The GFR feature extraction returns a 5-dimensional array:
# - Dimension 0: Phase shifts
# - Dimension 1: Scales
# - Dimension 2: Rotations/Orientations
# - Dimension 3: Number of histograms
# - Dimension 4: Co-occurrences
features = extract_gfr_features_from_file("seal1.jpg")
# Simply flatten to a 1D array
features = features.flatten()
```
**Ordered dict**
```python
from sealwatch.features.pharm import extract_pharm_revisited_features_from_file
from sealwatch.utils.grouping import flatten_single
# The PHARM feature extraction returns an ordered dict
features_grouped = extract_pharm_revisited_features_from_file("seal1.jpg")
# Flatten dict to a 1D array
features = flatten_single(features_grouped)
```
After saving a batch of flattened features to an HDF5 file, you can also re-group them.
```python
from sealwatch.utils.grouping import group_batch
from sealwatch.utils.constants import PHARM_REVISITED
import h5py
# Load the flattened features
with h5py.File("pharm_features.h5", "r") as f:
features_flat = f["features"][()]
# Re-group the flat features
features_grouped = group_batch(features_flat, feature_type=PHARM_REVISITED)
# features_grouped is an ordered dict. The keys are the submodel names. Each value is an array with the shape [num_samples, submodel_size].
```python
from sealwatch.utils.grouping import flatten_single
# PHARM feature extraction returns an ordered dict
features_grouped = extract_pharm_original_features_from_file(**kwargs)
# Flatten dict to a 1D ndarray
features = flatten_single(features_grouped)
# GFR feature extraction returns a 5D ndarray
features_5d = extract_gfr_features_from_file(**kwargs)
# Simply flatten the array
features = features.flatten()
```
# Unit tests and compatibility
For notes on compatibility with previous implementation, see [compatibility.md](compatibility.md).
Raw data
{
"_id": null,
"home_page": null,
"name": "sealwatch",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "image, jpeg, steganalysis",
"author": null,
"author_email": "Martin Benes <martin.benes@uibk.ac.at>, Benedikt Lorch <benedikt.lorch@uibk.ac.at>",
"download_url": "https://files.pythonhosted.org/packages/17/0d/8f2e126495712523c89f2ad852363758523d3bb8a88e30134bd722189e21/sealwatch-2024.3.tar.gz",
"platform": null,
"description": "# Contents\n\nThe following steganalysis feature implementations are provided:\n\n| Abbreviation | Full name | Dimensionality | Reference | Output format |\n|--------------|---------------------------------------------|---------------:|-------------------------------------------------------------|-------------|\n| SPAM | Subtractive pixel adjacency matrix | 686 | [Reference](https://doi.org/10.1109/TIFS.2010.2045842) | ordered dict |\n| JRM | JPEG rich model | 11255 | [Reference](https://doi.org/10.1117/12.907495) | ordered dict |\n| DCTR | Discrete cosine transform residual features | 8000 | [Reference](https://doi.org/10.1109/TIFS.2014.2364918) | 1D array |\n| PHARM | Phase-aware projection rich model | 12600 | [Reference](https://doi.org/10.1117/12.2075239) | ordered dict |\n| GFR | Gabor filter residual features | 17000 | [Reference](https://dl.acm.org/doi/10.1145/2756601.2756608) | 5D array |\n\nThese implementations are based on the [Matlab reference implementations](https://dde.binghamton.edu/download/feature_extractors/) provided by the DDE lab at Binghamton University.\n\n# Usage\n\nExtract features from a single JPEG image\n\n```python\nfrom sealwatch.features.gfr.gfr import extract_gfr_features_from_file\n\nfeatures = extract_gfr_features_from_file(\"seal1.jpg\")\n```\n\nExtract features for a directory of JPEG images and store them to a HDF5 file in the output directory.\n\n```bash\npython sealwatch/batch_extraction/extract_features.py \\\n --input_dir input_dir \\\n --output_dir output_dir \\\n --feature_type \"gfr\" \n```\n\nAfter having extracted features from cover and stego images, you can train an FLD ensemble as binary classifier.\n\n```python\nimport numpy as np\nfrom sealwatch.ensemble_classifier.fld_ensemble_trainer import FldEnsembleTrainer\nfrom sealwatch.ensemble_classifier.load_features import load_and_split_features\n\ncover_features = \"cover_features.h5\"\nstego_features = \"stego_features.h5\"\ntrain_csv = \"train.csv\"\ntest_csv = \"test.csv\"\n\ncover_features_train, stego_features_train, cover_features_test, stego_features_test = load_and_split_features(\n cover_features_filename=cover_features,\n stego_features_filename=stego_features,\n train_csv=train_csv,\n test_csv=test_csv,\n)\n\n# Training is faster when arrays are C-contiguous\ncover_features_train = np.ascontiguousarray(cover_features_train)\nstego_features_train = np.ascontiguousarray(stego_features_train)\n\n# The hyper-parameter search is wrapped inside a trainer class\ntrainer = FldEnsembleTrainer(\n Xc=cover_features_train,\n Xs=stego_features_train,\n seed=12345,\n verbose=1,\n)\n\n# Train with hyper-parameter search\ntrained_ensemble, training_records = trainer.train()\n\n# Concatenate the test features and labels\nX_test = np.concatenate((cover_features_test, stego_features_test), axis=0)\ny_test = np.concatenate((\n -np.ones(len(cover_features_test)),\n +np.ones(len(stego_features_test))\n), axis=0)\n\n# Calculate test accuracy\ntest_accuracy = trained_ensemble.score(X_test, y_test)\n```\n\n## Feature formats\n\nNote that the feature extractors return different formats: 1D arrays, multi-dimensional arrays, or ordered dicts.\nThe reason is that feature descriptors are composed of multiple submodels. Retaining the structure allows the user to select a specific submodel. The following snippets show how to flatten the features to a 1D array.\n\n\n**Multi-dimensional array**\n```python\nfrom sealwatch.features.gfr import extract_gfr_features_from_file\n\n# The GFR feature extraction returns a 5-dimensional array:\n# - Dimension 0: Phase shifts\n# - Dimension 1: Scales\n# - Dimension 2: Rotations/Orientations\n# - Dimension 3: Number of histograms\n# - Dimension 4: Co-occurrences\nfeatures = extract_gfr_features_from_file(\"seal1.jpg\")\n\n# Simply flatten to a 1D array\nfeatures = features.flatten()\n```\n\n**Ordered dict**\n```python\nfrom sealwatch.features.pharm import extract_pharm_revisited_features_from_file\nfrom sealwatch.utils.grouping import flatten_single\n\n# The PHARM feature extraction returns an ordered dict\nfeatures_grouped = extract_pharm_revisited_features_from_file(\"seal1.jpg\")\n\n# Flatten dict to a 1D array\nfeatures = flatten_single(features_grouped)\n```\n\nAfter saving a batch of flattened features to an HDF5 file, you can also re-group them.\n```python\nfrom sealwatch.utils.grouping import group_batch\nfrom sealwatch.utils.constants import PHARM_REVISITED\nimport h5py\n\n# Load the flattened features\nwith h5py.File(\"pharm_features.h5\", \"r\") as f:\n features_flat = f[\"features\"][()]\n\n# Re-group the flat features\nfeatures_grouped = group_batch(features_flat, feature_type=PHARM_REVISITED)\n\n# features_grouped is an ordered dict. The keys are the submodel names. Each value is an array with the shape [num_samples, submodel_size].\n\n```python\nfrom sealwatch.utils.grouping import flatten_single\n\n# PHARM feature extraction returns an ordered dict\nfeatures_grouped = extract_pharm_original_features_from_file(**kwargs)\n\n# Flatten dict to a 1D ndarray\nfeatures = flatten_single(features_grouped)\n\n# GFR feature extraction returns a 5D ndarray\nfeatures_5d = extract_gfr_features_from_file(**kwargs)\n\n# Simply flatten the array\nfeatures = features.flatten()\n```\n\n# Unit tests and compatibility\n\nFor notes on compatibility with previous implementation, see [compatibility.md](compatibility.md).\n",
"bugtrack_url": null,
"license": "Mozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. \"Contributor\" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. \"Contributor Version\" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. \"Contribution\" means Covered Software of a particular Contributor. 1.4. \"Covered Software\" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. \"Incompatible With Secondary Licenses\" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. \"Executable Form\" means any form of the work other than Source Code Form. 1.7. \"Larger Work\" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. \"License\" means this document. 1.9. \"Licensable\" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. \"Modifications\" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. \"Patent Claims\" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. \"Secondary License\" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. \"Source Code Form\" means the form of the work preferred for making modifications. 1.14. \"You\" (or \"Your\") means an individual or a legal entity exercising rights under this License. For legal entities, \"You\" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, \"control\" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an \"as is\" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - \"Incompatible With Secondary Licenses\" Notice --------------------------------------------------------- This Source Code Form is \"Incompatible With Secondary Licenses\", as defined by the Mozilla Public License, v. 2.0.",
"summary": "Implementation of modern image steganalysis algorithms",
"version": "2024.3",
"project_urls": {
"Documentation": "https://sealwatch.readthedocs.io/",
"Homepage": "https://pypi.org/project/sealwatch/",
"Source": "https://github.com/uibk-uncover/sealwatch/"
},
"split_keywords": [
"image",
" jpeg",
" steganalysis"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "14788be10673ddf26b6e5ae832bee6525735288abe614fcf7c321903d86cb8e6",
"md5": "6d68840d5fe506f90d4346cf45bd1860",
"sha256": "753b4bc780ad8e588513bab7cfd3f3c00664cbbdec2a257f253aad78ec9b28a2"
},
"downloads": -1,
"filename": "sealwatch-2024.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6d68840d5fe506f90d4346cf45bd1860",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 85386,
"upload_time": "2024-06-22T20:00:11",
"upload_time_iso_8601": "2024-06-22T20:00:11.955142Z",
"url": "https://files.pythonhosted.org/packages/14/78/8be10673ddf26b6e5ae832bee6525735288abe614fcf7c321903d86cb8e6/sealwatch-2024.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "170d8f2e126495712523c89f2ad852363758523d3bb8a88e30134bd722189e21",
"md5": "b6d8128b92fffc02ee74d407fc08fe56",
"sha256": "9a864675f351b60d21ed135b07598a32759eb0554908d05450d6a5d048ad536b"
},
"downloads": -1,
"filename": "sealwatch-2024.3.tar.gz",
"has_sig": false,
"md5_digest": "b6d8128b92fffc02ee74d407fc08fe56",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 38400459,
"upload_time": "2024-06-22T20:00:14",
"upload_time_iso_8601": "2024-06-22T20:00:14.866781Z",
"url": "https://files.pythonhosted.org/packages/17/0d/8f2e126495712523c89f2ad852363758523d3bb8a88e30134bd722189e21/sealwatch-2024.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-22 20:00:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "uibk-uncover",
"github_project": "sealwatch",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "sealwatch"
}