คำเตือน: API นี้เลิกใช้แล้วและจะถูกลบออกใน TensorFlow เวอร์ชันอนาคตหลังจากที่ การแทนที่ มีเสถียรภาพ

StatelessSampleDistortedBoundingBox.Options

StatelessSampleDistortedBoundingBox.Options ระดับคงที่สาธารณะ

คุณลักษณะที่จำเป็นสำหรับการ StatelessSampleDistortedBoundingBox

วิธีการสาธารณะ

StatelessSampleDistortedBoundingBox.Options
areaRange (รายการ <ลอย> areaRange)
StatelessSampleDistortedBoundingBox.Options
aspectRatioRange (รายการ <ลอย> aspectRatioRange)
StatelessSampleDistortedBoundingBox.Options
maxAttempts (Long maxAttempts)
StatelessSampleDistortedBoundingBox.Options
useImageIfNoBoundingBoxes (บูลีน useImageIfNoBoundingBoxes)

วิธีการสืบทอด

วิธีการสาธารณะ

ประชาชน StatelessSampleDistortedBoundingBox.Options areaRange (รายการ <ลอย> areaRange)

พารามิเตอร์
พื้นที่ช่วง พื้นที่ครอบตัดของรูปภาพต้องมีเศษส่วนของรูปภาพที่ให้มาภายในช่วงนี้

ประชาชน StatelessSampleDistortedBoundingBox.Options aspectRatioRange (รายการ <ลอย> aspectRatioRange)

พารามิเตอร์
มุมมองอัตราส่วนช่วง พื้นที่ครอบตัดของรูปภาพต้องมีอัตราส่วนกว้างยาว = กว้าง / สูงภายในช่วงนี้

ประชาชน StatelessSampleDistortedBoundingBox.Options maxAttempts (Long maxAttempts)

พารามิเตอร์
maxAttempts จำนวนครั้งที่พยายามสร้างพื้นที่ครอบตัดของรูปภาพตามข้อจำกัดที่ระบุ หลังจาก `max_attempts` ล้มเหลว ให้ส่งคืนรูปภาพทั้งหมด

ประชาชน StatelessSampleDistortedBoundingBox.Options useImageIfNoBoundingBoxes (บูลีน useImageIfNoBoundingBoxes)

พารามิเตอร์
useImageIfNoBoundingBoxes ควบคุมพฤติกรรมหากไม่มีกรอบล้อมรอบ ถ้าเป็นจริง ให้สมมติกล่องขอบเขตโดยนัยที่ครอบคลุมอินพุตทั้งหมด หากเป็นเท็จ ทำให้เกิดข้อผิดพลาด