संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
टेंसरफ़्लो:: ऑप्स:: डिकोडजेपीईजी:: Attrs
#include <image_ops.h>
DecodeJpeg के लिए वैकल्पिक विशेषता सेटर।
सारांश
सार्वजनिक समारोह |
---|
AcceptableFraction (float x) | काटे गए इनपुट को स्वीकार करने से पहले लाइनों का न्यूनतम आवश्यक अंश। |
Channels (int64 x) | डिकोड की गई छवि के लिए रंगीन चैनलों की संख्या। |
DctMethod (StringPiece x) | डीकंप्रेसन के लिए उपयोग किए जाने वाले एल्गोरिदम के बारे में एक संकेत निर्दिष्ट करने वाली स्ट्रिंग। |
FancyUpscaling (bool x) | यदि सत्य है तो क्रोमा विमानों की धीमी लेकिन अच्छी अपस्केलिंग का उपयोग करें (केवल yuv420/422)। |
Ratio (int64 x) | डाउनस्केलिंग अनुपात. |
TryRecoverTruncated (bool x) | यदि सत्य है तो काटे गए इनपुट से एक छवि को पुनर्प्राप्त करने का प्रयास करें। |
सार्वजनिक गुण
स्वीकार्य_अंश_
float tensorflow::ops::DecodeJpeg::Attrs::acceptable_fraction_ = 1.0f
चैनल_
int64 tensorflow::ops::DecodeJpeg::Attrs::channels_ = 0
dct_विधि_
StringPiece tensorflow::ops::DecodeJpeg::Attrs::dct_method_ = ""
फैंसी_अपस्केलिंग_
bool tensorflow::ops::DecodeJpeg::Attrs::fancy_upscaling_ = true
अनुपात_
int64 tensorflow::ops::DecodeJpeg::Attrs::ratio_ = 1
प्रयास करें_पुनर्प्राप्त_करें_छोटा_करें
bool tensorflow::ops::DecodeJpeg::Attrs::try_recover_truncated_ = false
सार्वजनिक समारोह
स्वीकार्य अंश
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::AcceptableFraction(
float x
)
काटे गए इनपुट को स्वीकार करने से पहले लाइनों का न्यूनतम आवश्यक अंश।
डिफ़ॉल्ट 1
चैनल
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::Channels(
int64 x
)
डिकोड की गई छवि के लिए रंगीन चैनलों की संख्या।
डिफ़ॉल्ट 0 है
Dctविधि
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::DctMethod(
StringPiece x
)
डीकंप्रेसन के लिए उपयोग किए जाने वाले एल्गोरिदम के बारे में एक संकेत निर्दिष्ट करने वाली स्ट्रिंग।
डिफ़ॉल्ट "" है जो सिस्टम-विशिष्ट डिफ़ॉल्ट पर मैप होता है। वर्तमान में मान्य मान ["INTEGER_FAST", "INTEGER_ACCURATE"] हैं। संकेत को नजरअंदाज किया जा सकता है (उदाहरण के लिए, आंतरिक जेपीईजी लाइब्रेरी ऐसे संस्करण में बदल जाती है जिसमें वह विशिष्ट विकल्प नहीं होता है।)
डिफ़ॉल्ट रूप से ""
फैंसीअपस्केलिंग
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::FancyUpscaling(
bool x
)
यदि सत्य है तो क्रोमा विमानों की धीमी लेकिन अच्छी अपस्केलिंग का उपयोग करें (केवल yuv420/422)।
डिफ़ॉल्ट सत्य पर
अनुपात
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::Ratio(
int64 x
)
डाउनस्केलिंग अनुपात.
डिफ़ॉल्ट 1
पुनर्प्राप्त करने का प्रयास करेंछोटा किया गया
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::TryRecoverTruncated(
bool x
)
यदि सत्य है तो काटे गए इनपुट से एक छवि को पुनर्प्राप्त करने का प्रयास करें।
डिफ़ॉल्ट से असत्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# tensorflow::ops::DecodeJpeg::Attrs Struct Reference\n\ntensorflow::ops::DecodeJpeg::Attrs\n==================================\n\n`#include \u003cimage_ops.h\u003e`\n\nOptional attribute setters for [DecodeJpeg](/versions/r2.3/api_docs/cc/class/tensorflow/ops/decode-jpeg#classtensorflow_1_1ops_1_1_decode_jpeg).\n\nSummary\n-------\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------------------------------|---------------|\n| [acceptable_fraction_](#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs_1a0b10d4d030a8ca14ac7570161190c83a)` = 1.0f` | `float` |\n| [channels_](#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs_1a18e020f1e5ff8cfbd4d78478415d1ddb)` = 0` | `int64` |\n| [dct_method_](#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs_1a56dbd1f5b3b6ad2f2f6109d261a1b2c0)` = \"\"` | `StringPiece` |\n| [fancy_upscaling_](#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs_1a8e1e67750ce05d148e582c0da4a2279e)` = true` | `bool` |\n| [ratio_](#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs_1a9e510e74b3307b51218f9ba73bb88299)` = 1` | `int64` |\n| [try_recover_truncated_](#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs_1aa2cf39a88d8a81dcb7db8e5a5e0d370e)` = false` | `bool` |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AcceptableFraction](#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs_1ad1f15f47beae81c3372f7be5fc7b66d2)`(float x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/decode-jpeg/attrs#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs) The minimum required fraction of lines before a truncated input is accepted. |\n| [Channels](#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs_1a0548d6add8de1fae308c6043ae78bc4f)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/decode-jpeg/attrs#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs) Number of color channels for the decoded image. |\n| [DctMethod](#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs_1a6e0f2e6e3603c3b5a4f87f99e01fb7f4)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/decode-jpeg/attrs#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs) string specifying a hint about the algorithm used for decompression. |\n| [FancyUpscaling](#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs_1a0ae0fb6313dea00cfcaa043461f9435f)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/decode-jpeg/attrs#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs) If true use a slower but nicer upscaling of the chroma planes (yuv420/422 only). |\n| [Ratio](#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs_1abfd175cdcf500dba69dc39803e8fdebf)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/decode-jpeg/attrs#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs) Downscaling ratio. |\n| [TryRecoverTruncated](#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs_1a91511d57ca206a8096ab617a176fca3c)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/decode-jpeg/attrs#structtensorflow_1_1ops_1_1_decode_jpeg_1_1_attrs) If true try to recover an image from truncated input. |\n\nPublic attributes\n-----------------\n\n### acceptable_fraction_\n\n```scdoc\nfloat tensorflow::ops::DecodeJpeg::Attrs::acceptable_fraction_ = 1.0f\n``` \n\n### channels_\n\n```scdoc\nint64 tensorflow::ops::DecodeJpeg::Attrs::channels_ = 0\n``` \n\n### dct_method_\n\n```scdoc\nStringPiece tensorflow::ops::DecodeJpeg::Attrs::dct_method_ = \"\"\n``` \n\n### fancy_upscaling_\n\n```scdoc\nbool tensorflow::ops::DecodeJpeg::Attrs::fancy_upscaling_ = true\n``` \n\n### ratio_\n\n```scdoc\nint64 tensorflow::ops::DecodeJpeg::Attrs::ratio_ = 1\n``` \n\n### try_recover_truncated_\n\n```scdoc\nbool tensorflow::ops::DecodeJpeg::Attrs::try_recover_truncated_ = false\n``` \n\nPublic functions\n----------------\n\n### AcceptableFraction\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::AcceptableFraction(\n float x\n)\n``` \nThe minimum required fraction of lines before a truncated input is accepted.\n\nDefaults to 1 \n\n### Channels\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::Channels(\n int64 x\n)\n``` \nNumber of color channels for the decoded image.\n\nDefaults to 0 \n\n### DctMethod\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::DctMethod(\n StringPiece x\n)\n``` \nstring specifying a hint about the algorithm used for decompression.\n\nDefaults to \"\" which maps to a system-specific default. Currently valid values are \\[\"INTEGER_FAST\", \"INTEGER_ACCURATE\"\\]. The hint may be ignored (e.g., the internal jpeg library changes to a version that does not have that specific option.)\n\nDefaults to \"\" \n\n### FancyUpscaling\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::FancyUpscaling(\n bool x\n)\n``` \nIf true use a slower but nicer upscaling of the chroma planes (yuv420/422 only).\n\nDefaults to true \n\n### Ratio\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::Ratio(\n int64 x\n)\n``` \nDownscaling ratio.\n\nDefaults to 1 \n\n### TryRecoverTruncated\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::TryRecoverTruncated(\n bool x\n)\n``` \nIf true try to recover an image from truncated input.\n\nDefaults to false"]]