multiwhacamole


Namemultiwhacamole JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/multiwhacamole
SummaryDetects differences between a Single Image and a List of Images (multiprocessing)
upload_time2023-11-12 23:57:30
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords multiprocessing differences image
VCS
bugtrack_url
requirements a_cv2_easy_resize a_cv_imwrite_imread_plus a_pandas_ex_apply_ignore_exceptions multicv2resize multiprocca numexpr numpy opencv_python pandas
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Detects differences between a Single Image and a List of Images (multiprocessing)

## pip install multiwhacamole

### Tested against Python 3.11 / Windows 10

## INPUT 

### 0.png

![](https://github.com/hansalemaos/screenshots/blob/main/imagedifference/0.png?raw=true)

### 1.png

![](https://github.com/hansalemaos/screenshots/blob/main/imagedifference/1.png?raw=true)


### 2.png

![](https://github.com/hansalemaos/screenshots/blob/main/imagedifference/2.png?raw=true)

## OUTPUT - comparison with 0.png 

### 0.png

![](https://github.com/hansalemaos/screenshots/blob/main/imagedifference/diff/0.png?raw=true)

### 1.png

![](https://github.com/hansalemaos/screenshots/blob/main/imagedifference/diff/1.png?raw=true)

### 2.png

![](https://github.com/hansalemaos/screenshots/blob/main/imagedifference/diff/2.png?raw=true)


```python

import cv2
from multiwhacamole import finddifferences
picturelist = [
	r"C:\Users\hansc\Downloads\dfsdfsdf\0.png",
	r"C:\Users\hansc\Downloads\dfsdfsdf\1.png",
	r"C:\Users\hansc\Downloads\dfsdfsdf\2.png",

]
singlepicture = r"C:\Users\hansc\Downloads\dfsdfsdf\0.png"
df = finddifferences(singlepicture, picturelist,
					 percentage=10,
					 interpolation=cv2.INTER_NEAREST,
					 cpus=5,
					 chunks=1,
					 draw_output=True,
					 usecache=True,
					 print_stdout=False,
					 print_stderr=True,
					 draw_color=(255, 255, 0),
					 thickness=2,
					 thresh=3,
					 maxval=255,
					 save_folder='c:\\testrecognition'
					 )

print(df)

#   aa_start_x aa_start_y aa_end_x aa_end_y aa_center_x aa_center_y aa_width aa_height aa_area                    aa_screenshot  aa_img_index
# 0       <NA>       <NA>     <NA>     <NA>        <NA>        <NA>     <NA>      <NA>    <NA>  [[[253 249 247]\n  [253 249 247             0
# 1         60        780      200      900         130         840      140       120   16800  [[[253 249 247]\n  [253 249 247             1
# 2        620        740      750      870         685         805      130       130   16900  [[[253 249 247]\n  [253 249 247             1
# 3         70        640      200      770         135         705      130       130   16900  [[[253 249 247]\n  [253 249 247             1
# 4       1060        370     1600      710        1330         540      540       340  183600  [[[253 249 247]\n  [253 249 247             1
# 5         10          0      250       90         130          45      240        90   21600  [[[253 249 247]\n  [253 249 247             1
# 6        580        640      620      750         600         695       40       110    4400  [[[  0 255 255]\n  [  0 255 255             2
# 7          0        300     1600      900         800         600     1600       600  960000  [[[  0 255 255]\n  [  0 255 255             2
# 8        900          0     1040       80         970          40      140        80   11200  [[[  0 255 255]\n  [  0 255 255             2
# 9          0          0      810       90         405          45      810        90   72900  [[[  0 255 255]\n  [  0 255 255             2


# If the DataFrame takes too long to print due to the screenshots, use: https://github.com/hansalemaos/PrettyColorPrinter
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/multiwhacamole",
    "name": "multiwhacamole",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "multiprocessing,differences,image",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/74/c1/8cc7215e9a3b80e14201f872aad4ac41889edddfac6460167467f96ca3e7/multiwhacamole-0.10.tar.gz",
    "platform": null,
    "description": "\r\n# Detects differences between a Single Image and a List of Images (multiprocessing)\r\n\r\n## pip install multiwhacamole\r\n\r\n### Tested against Python 3.11 / Windows 10\r\n\r\n## INPUT \r\n\r\n### 0.png\r\n\r\n![](https://github.com/hansalemaos/screenshots/blob/main/imagedifference/0.png?raw=true)\r\n\r\n### 1.png\r\n\r\n![](https://github.com/hansalemaos/screenshots/blob/main/imagedifference/1.png?raw=true)\r\n\r\n\r\n### 2.png\r\n\r\n![](https://github.com/hansalemaos/screenshots/blob/main/imagedifference/2.png?raw=true)\r\n\r\n## OUTPUT - comparison with 0.png \r\n\r\n### 0.png\r\n\r\n![](https://github.com/hansalemaos/screenshots/blob/main/imagedifference/diff/0.png?raw=true)\r\n\r\n### 1.png\r\n\r\n![](https://github.com/hansalemaos/screenshots/blob/main/imagedifference/diff/1.png?raw=true)\r\n\r\n### 2.png\r\n\r\n![](https://github.com/hansalemaos/screenshots/blob/main/imagedifference/diff/2.png?raw=true)\r\n\r\n\r\n```python\r\n\r\nimport cv2\r\nfrom multiwhacamole import finddifferences\r\npicturelist = [\r\n\tr\"C:\\Users\\hansc\\Downloads\\dfsdfsdf\\0.png\",\r\n\tr\"C:\\Users\\hansc\\Downloads\\dfsdfsdf\\1.png\",\r\n\tr\"C:\\Users\\hansc\\Downloads\\dfsdfsdf\\2.png\",\r\n\r\n]\r\nsinglepicture = r\"C:\\Users\\hansc\\Downloads\\dfsdfsdf\\0.png\"\r\ndf = finddifferences(singlepicture, picturelist,\r\n\t\t\t\t\t percentage=10,\r\n\t\t\t\t\t interpolation=cv2.INTER_NEAREST,\r\n\t\t\t\t\t cpus=5,\r\n\t\t\t\t\t chunks=1,\r\n\t\t\t\t\t draw_output=True,\r\n\t\t\t\t\t usecache=True,\r\n\t\t\t\t\t print_stdout=False,\r\n\t\t\t\t\t print_stderr=True,\r\n\t\t\t\t\t draw_color=(255, 255, 0),\r\n\t\t\t\t\t thickness=2,\r\n\t\t\t\t\t thresh=3,\r\n\t\t\t\t\t maxval=255,\r\n\t\t\t\t\t save_folder='c:\\\\testrecognition'\r\n\t\t\t\t\t )\r\n\r\nprint(df)\r\n\r\n#   aa_start_x aa_start_y aa_end_x aa_end_y aa_center_x aa_center_y aa_width aa_height aa_area                    aa_screenshot  aa_img_index\r\n# 0       <NA>       <NA>     <NA>     <NA>        <NA>        <NA>     <NA>      <NA>    <NA>  [[[253 249 247]\\n  [253 249 247             0\r\n# 1         60        780      200      900         130         840      140       120   16800  [[[253 249 247]\\n  [253 249 247             1\r\n# 2        620        740      750      870         685         805      130       130   16900  [[[253 249 247]\\n  [253 249 247             1\r\n# 3         70        640      200      770         135         705      130       130   16900  [[[253 249 247]\\n  [253 249 247             1\r\n# 4       1060        370     1600      710        1330         540      540       340  183600  [[[253 249 247]\\n  [253 249 247             1\r\n# 5         10          0      250       90         130          45      240        90   21600  [[[253 249 247]\\n  [253 249 247             1\r\n# 6        580        640      620      750         600         695       40       110    4400  [[[  0 255 255]\\n  [  0 255 255             2\r\n# 7          0        300     1600      900         800         600     1600       600  960000  [[[  0 255 255]\\n  [  0 255 255             2\r\n# 8        900          0     1040       80         970          40      140        80   11200  [[[  0 255 255]\\n  [  0 255 255             2\r\n# 9          0          0      810       90         405          45      810        90   72900  [[[  0 255 255]\\n  [  0 255 255             2\r\n\r\n\r\n# If the DataFrame takes too long to print due to the screenshots, use: https://github.com/hansalemaos/PrettyColorPrinter\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Detects differences between a Single Image and a List of Images (multiprocessing)",
    "version": "0.10",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/multiwhacamole"
    },
    "split_keywords": [
        "multiprocessing",
        "differences",
        "image"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f7e4e9b2990ca59a45e564f1c3469dfb7b72d74a06fdd296281ac41a80670d72",
                "md5": "8fc15d54070c48a5539ab7fda60acdc7",
                "sha256": "c0005672ef1f5310bdfd617d5b84e9a62be109d2e9b82daca56336a309b40511"
            },
            "downloads": -1,
            "filename": "multiwhacamole-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8fc15d54070c48a5539ab7fda60acdc7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 59919,
            "upload_time": "2023-11-12T23:57:28",
            "upload_time_iso_8601": "2023-11-12T23:57:28.313050Z",
            "url": "https://files.pythonhosted.org/packages/f7/e4/e9b2990ca59a45e564f1c3469dfb7b72d74a06fdd296281ac41a80670d72/multiwhacamole-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "74c18cc7215e9a3b80e14201f872aad4ac41889edddfac6460167467f96ca3e7",
                "md5": "991e6399dfb79c026dbeccaf8277fe27",
                "sha256": "dd56dc74679a3fcfcbfc2d1685aaf270a6b2fb996757f728f349a3281f60b700"
            },
            "downloads": -1,
            "filename": "multiwhacamole-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "991e6399dfb79c026dbeccaf8277fe27",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 59470,
            "upload_time": "2023-11-12T23:57:30",
            "upload_time_iso_8601": "2023-11-12T23:57:30.246178Z",
            "url": "https://files.pythonhosted.org/packages/74/c1/8cc7215e9a3b80e14201f872aad4ac41889edddfac6460167467f96ca3e7/multiwhacamole-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-12 23:57:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "multiwhacamole",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "a_cv2_easy_resize",
            "specs": []
        },
        {
            "name": "a_cv_imwrite_imread_plus",
            "specs": []
        },
        {
            "name": "a_pandas_ex_apply_ignore_exceptions",
            "specs": []
        },
        {
            "name": "multicv2resize",
            "specs": []
        },
        {
            "name": "multiprocca",
            "specs": []
        },
        {
            "name": "numexpr",
            "specs": []
        },
        {
            "name": "numpy",
            "specs": []
        },
        {
            "name": "opencv_python",
            "specs": []
        },
        {
            "name": "pandas",
            "specs": []
        }
    ],
    "lcname": "multiwhacamole"
}
        
Elapsed time: 0.13607s