-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
423 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ build: | |
image: latest | ||
|
||
python: | ||
version: 3.6 | ||
version: 3.7 | ||
pip_install: true | ||
extra_requirements: | ||
- read-the-docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
@misc{Abecassis2011, | ||
title = {OpenCV - Rotation (Deskewing)}, | ||
author = {Abecassis, Felix}, | ||
title = {{OpenCV - Rotation (Deskewing)}}, | ||
year = 2011, | ||
url = {http://felix.abecassis.me/2011/10/opencv-rotation-deskewing/}, | ||
urldate = {2018-10-27}, | ||
year = 2011, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ This Code of Conduct applies within all project spaces, and it also applies when | |
## Enforcement | ||
|
||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting Thomas Mansencal and Michael Mauderer via email at thomas[email protected] and michael@mauderer.me respectively. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. | ||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting Thomas Mansencal and Michael Mauderer via email at thomas@colour-science.org and michael@colour-science.org respectively. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project’s leadership. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,6 @@ About | |
----- | ||
|
||
| **Colour - Checker Detection** by Colour Developers | ||
| Copyright © 2018-2019 – Colour Developers – `colour-[email protected] <colour-[email protected]>`__ | ||
| Copyright © 2018-2020 – Colour Developers – `colour-[email protected] <colour-[email protected]>`__ | ||
| This software is released under terms of New BSD License: https://opensource.org/licenses/BSD-3-Clause | ||
| `https://github.com/colour-science/colour-checker-detection <https://github.com/colour-science/colour-checker-detection>`__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ Colour - Checker Detection | |
|actions| |coveralls| |codacy| |version| | ||
|
||
.. |actions| image:: https://github.com/colour-science/colour-checker-detection/workflows/Continuous%20Integration/badge.svg | ||
.. |actions| image:: https://img.shields.io/github/workflow/status/colour-science/colour-checker-detection/Continuous%20Integration?label=actions&logo=github&style=flat-square | ||
:target: https://github.com/colour-science/colour-checker-detection/actions | ||
:alt: Develop Build Status | ||
.. |coveralls| image:: http://img.shields.io/coveralls/colour-science/colour-checker-detection/develop.svg?style=flat-square | ||
|
@@ -57,22 +57,22 @@ Primary Dependencies | |
|
||
**Colour - Checker Detection** requires various dependencies in order to run: | ||
|
||
- `Python >=3.5 <https://www.python.org/download/releases/>`__ | ||
- `Colour Science <https://www.colour-science.org>`__ | ||
- `opencv-python >=4 <https://pypi.org/project/opencv-python/>`__ | ||
- `python>=3.5 <https://www.python.org/download/releases/>`__ | ||
- `colour-science <https://pypi.org/project/colour-science/>`__ | ||
- `opencv-python>=4 <https://pypi.org/project/opencv-python/>`__ | ||
|
||
Pypi | ||
^^^^ | ||
|
||
Once the dependencies satisfied, **Colour - Checker Detection** can be installed from | ||
Once the dependencies are satisfied, **Colour - Checker Detection** can be installed from | ||
the `Python Package Index <http://pypi.python.org/pypi/colour-checker-detection>`__ by | ||
issuing this command in a shell:: | ||
|
||
pip install colour-checker-detection | ||
pip install --user colour-checker-detection | ||
|
||
The overall development dependencies are installed as follows:: | ||
|
||
pip install 'colour-checker-detection[development]' | ||
pip install --user 'colour-checker-detection[development]' | ||
|
||
Usage | ||
----- | ||
|
@@ -113,6 +113,6 @@ About | |
----- | ||
|
||
| **Colour - Checker Detection** by Colour Developers | ||
| Copyright © 2018-2019 – Colour Developers – `colour-[email protected] <colour-[email protected]>`__ | ||
| Copyright © 2018-2020 – Colour Developers – `colour-[email protected] <colour-[email protected]>`__ | ||
| This software is released under terms of New BSD License: https://opensource.org/licenses/BSD-3-Clause | ||
| `https://github.com/colour-science/colour-checker-detection <https://github.com/colour-science/colour-checker-detection>`__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,13 @@ TODO | |
|
||
- colour_checker_detection/detection/tests/test_segmentation.py | ||
|
||
- Line 207 : # TODO: Unit test is only reproducible on "macOs", skipping other OSes. | ||
- Line 492 : # TODO: Unit test is only reproducible on "macOs", skipping other OSes. | ||
- Line 227 : # TODO: Unit test is only reproducible on "macOs", skipping other OSes. | ||
- Line 517 : # TODO: Unit test is only reproducible on "macOs", skipping other OSes. | ||
|
||
About | ||
----- | ||
|
||
| **Colour - Checker Detection** by Colour Developers | ||
| Copyright © 2018-2019 – Colour Developers – `colour-[email protected] <colour-[email protected]>`__ | ||
| Copyright © 2018-2020 – Colour Developers – `colour-[email protected] <colour-[email protected]>`__ | ||
| This software is released under terms of New BSD License: https://opensource.org/licenses/BSD-3-Clause | ||
| `https://github.com/colour-science/colour-checker-detection <https://github.com/colour-science/colour-checker-detection>`__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,10 +24,10 @@ | |
detect_colour_checkers_segmentation) | ||
|
||
__author__ = 'Colour Developers' | ||
__copyright__ = 'Copyright (C) 2018-2019 - Colour Developers' | ||
__copyright__ = 'Copyright (C) 2018-2020 - Colour Developers' | ||
__license__ = 'New BSD License - https://opensource.org/licenses/BSD-3-Clause' | ||
__maintainer__ = 'Colour Developers' | ||
__email__ = 'colour-[email protected]' | ||
__email__ = 'colour-[email protected]' | ||
__status__ = 'Production' | ||
|
||
__all__ = [ | ||
|
@@ -46,7 +46,7 @@ | |
|
||
__major_version__ = '0' | ||
__minor_version__ = '1' | ||
__change_version__ = '1' | ||
__change_version__ = '2' | ||
__version__ = '.'.join( | ||
(__major_version__, | ||
__minor_version__, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,8 @@ | |
References | ||
---------- | ||
- :cite:`Abecassis2011` : Abecassis, F. (2011). OpenCV - Rotation | ||
(Deskewing). Retrieved October 27, 2018, from | ||
http://felix.abecassis.me/2011/10/opencv-rotation-deskewing/ | ||
(Deskewing). Retrieved October 27, 2018, from http://felix.abecassis.me/\ | ||
2011/10/opencv-rotation-deskewing/ | ||
""" | ||
|
||
from __future__ import division, unicode_literals | ||
|
@@ -26,10 +26,10 @@ | |
from colour.utilities import as_float_array, as_int_array, as_int | ||
|
||
__author__ = 'Colour Developers' | ||
__copyright__ = 'Copyright (C) 2018-2019 - Colour Developers' | ||
__copyright__ = 'Copyright (C) 2018-2020 - Colour Developers' | ||
__license__ = 'New BSD License - https://opensource.org/licenses/BSD-3-Clause' | ||
__maintainer__ = 'Colour Developers' | ||
__email__ = 'colour-[email protected]' | ||
__email__ = 'colour-[email protected]' | ||
__status__ = 'Production' | ||
|
||
__all__ = [ | ||
|
@@ -155,15 +155,15 @@ def swatch_masks(width, height, swatches_h, swatches_v, samples): | |
Examples | ||
-------- | ||
>>> from pprint import pprint | ||
>>> pprint(swatch_masks(16, 8, 4, 2, 1)) | ||
[array([2, 2, 2, 2]), | ||
array([2, 2, 6, 6]), | ||
array([ 2, 2, 10, 10]), | ||
array([ 2, 2, 14, 14]), | ||
array([6, 6, 2, 2]), | ||
array([6, 6, 6, 6]), | ||
array([ 6, 6, 10, 10]), | ||
array([ 6, 6, 14, 14])] | ||
>>> pprint(swatch_masks(16, 8, 4, 2, 1)) # doctest: +ELLIPSIS | ||
[array([2, 2, 2, 2]...), | ||
array([2, 2, 6, 6]...), | ||
array([ 2, 2, 10, 10]...), | ||
array([ 2, 2, 14, 14]...), | ||
array([6, 6, 2, 2]...), | ||
array([6, 6, 6, 6]...), | ||
array([ 6, 6, 10, 10]...), | ||
array([ 6, 6, 14, 14]...)] | ||
""" | ||
|
||
samples = as_int(samples / 2) | ||
|
@@ -520,11 +520,11 @@ def colour_checkers_coordinates_segmentation(image, additional_data=False): | |
... 'colour_checker_detection', 'detection', | ||
... 'IMG_1967.png') | ||
>>> image = read_image(path) | ||
>>> colour_checkers_coordinates_segmentation(image) | ||
>>> colour_checkers_coordinates_segmentation(image) # doctest: +ELLIPSIS | ||
[array([[1065, 707], | ||
[ 369, 688], | ||
[ 382, 226], | ||
[1078, 246]])] | ||
[1078, 246]]...)] | ||
""" | ||
|
||
image = as_8_bit_BGR_image(adjust_image(image, WORKING_WIDTH)) | ||
|
Oops, something went wrong.