XPVI


NameXPVI JSON
Version 0.0.4 PyPI version JSON
download
home_page
SummaryGet and save custom variables "to" a usb video device
upload_time2023-06-01 03:28:23
maintainer
docs_urlNone
authorKarrson Heumann
requires_python
license
keywords python video audio camera microphone data
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # XPVI (0.0.4)

 Cross Platform Video Info

Get and save custom system-wide variables "to" a usb video device or filepath.

Also works with audio devices, very useful for saving calibration data.

Can also get a device index from it's name and vice-versa.

# Install

You will get an error if not admin,

but assuming you are an admin...

 => pip install XPVI

# Docs

 => XPVI(.bat or .sh)

...

syntax:

v* (get_all_video_devices)

a* (get_all_audio_devices)

v2i name (get_id_from_video_device)

a2i name (get_id_from_audio_device)

i2v id (get_video_device_from_id)

i2a id (get_audio_device_from_id)

set name key value (set_value)

set name key "NULL" (delete_key)

get name key (get_value)

get name "ALL" (get_values)

# Error Handling

 Not everyone has FFMPEG, but it's required for this to work.

So in every app that calls the XPVI cli (which is the only official way to interface with it),

it should first call XPVI itself and check if the word "syntax" is contained 

(case may change in the future, so check should be case-insensitive)...

If it contains it, there were no errors.

Otherwise, there was an error in the installation 

(maybe FFMPEG is missing for example, but we can't be sure)

and so we need to show a message box with the XPVI command's output.

# Example

 => XPVI.bat v*

...

[(0, 'c922 Pro Stream Webcam'), (1, 'OBS Virtual Camera')]

Now we know that 'c922 Pro Stream Webcam' is our video device...

=> XPVI.bat v2i "c922 Pro Stream Webcam"

...

0

INDEX = XPVI command output

#Great! We finally have a way to use a specific camera with opencv!

cap = cv2.VideoCapture(INDEX) 

... (INSERT CAMERA CALIBRATION CODE) ...

=> XPVI.bat set "c922 Pro Stream Webcam" fx (INSERT FOCAL X DATA)

...

=> XPVI.bat get "c922 Pro Stream Webcam" fx

...

(INSERT FOCAL X DATA)
            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "XPVI",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,video,audio,camera,microphone,data",
    "author": "Karrson Heumann",
    "author_email": "<mail@example.com>",
    "download_url": "https://files.pythonhosted.org/packages/13/08/e958cae655a303362cbd7232c2705ce8c83513b91baf557ac8b45d2a1079/XPVI-0.0.4.tar.gz",
    "platform": null,
    "description": "# XPVI (0.0.4)\n\n Cross Platform Video Info\n\nGet and save custom system-wide variables \"to\" a usb video device or filepath.\n\nAlso works with audio devices, very useful for saving calibration data.\n\nCan also get a device index from it's name and vice-versa.\n\n# Install\n\nYou will get an error if not admin,\n\nbut assuming you are an admin...\n\n => pip install XPVI\n\n# Docs\n\n => XPVI(.bat or .sh)\n\n...\n\nsyntax:\n\nv* (get_all_video_devices)\n\na* (get_all_audio_devices)\n\nv2i name (get_id_from_video_device)\n\na2i name (get_id_from_audio_device)\n\ni2v id (get_video_device_from_id)\n\ni2a id (get_audio_device_from_id)\n\nset name key value (set_value)\n\nset name key \"NULL\" (delete_key)\n\nget name key (get_value)\n\nget name \"ALL\" (get_values)\n\n# Error Handling\n\n Not everyone has FFMPEG, but it's required for this to work.\n\nSo in every app that calls the XPVI cli (which is the only official way to interface with it),\n\nit should first call XPVI itself and check if the word \"syntax\" is contained \n\n(case may change in the future, so check should be case-insensitive)...\n\nIf it contains it, there were no errors.\n\nOtherwise, there was an error in the installation \n\n(maybe FFMPEG is missing for example, but we can't be sure)\n\nand so we need to show a message box with the XPVI command's output.\n\n# Example\n\n => XPVI.bat v*\n\n...\n\n[(0, 'c922 Pro Stream Webcam'), (1, 'OBS Virtual Camera')]\n\nNow we know that 'c922 Pro Stream Webcam' is our video device...\n\n=> XPVI.bat v2i \"c922 Pro Stream Webcam\"\n\n...\n\n0\n\nINDEX = XPVI command output\n\n#Great! We finally have a way to use a specific camera with opencv!\n\ncap = cv2.VideoCapture(INDEX) \n\n... (INSERT CAMERA CALIBRATION CODE) ...\n\n=> XPVI.bat set \"c922 Pro Stream Webcam\" fx (INSERT FOCAL X DATA)\n\n...\n\n=> XPVI.bat get \"c922 Pro Stream Webcam\" fx\n\n...\n\n(INSERT FOCAL X DATA)",
    "bugtrack_url": null,
    "license": "",
    "summary": "Get and save custom variables \"to\" a usb video device",
    "version": "0.0.4",
    "project_urls": null,
    "split_keywords": [
        "python",
        "video",
        "audio",
        "camera",
        "microphone",
        "data"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1308e958cae655a303362cbd7232c2705ce8c83513b91baf557ac8b45d2a1079",
                "md5": "691a65a0a07bc00e975a90d3ab064c3c",
                "sha256": "bc83bb49e7e2ba073d627768eb6c072eacc0a7f944c3bb88ed8f95954b54515d"
            },
            "downloads": -1,
            "filename": "XPVI-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "691a65a0a07bc00e975a90d3ab064c3c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4321,
            "upload_time": "2023-06-01T03:28:23",
            "upload_time_iso_8601": "2023-06-01T03:28:23.409200Z",
            "url": "https://files.pythonhosted.org/packages/13/08/e958cae655a303362cbd7232c2705ce8c83513b91baf557ac8b45d2a1079/XPVI-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-01 03:28:23",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "xpvi"
}
        
Elapsed time: 0.08950s