Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::PersonVehicleDetectionConfig.
Message describing PersonVehicleDetectionConfig.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#enable_people_counting
defenable_people_counting()->::Boolean
Returns
(::Boolean) — At least one of enable_people_counting and enable_vehicle_counting fields
must be set to true.
Whether to count the appearances of people, output counts have 'people' as
the key.
#enable_people_counting=
defenable_people_counting=(value)->::Boolean
Parameter
value (::Boolean) — At least one of enable_people_counting and enable_vehicle_counting fields
must be set to true.
Whether to count the appearances of people, output counts have 'people' as
the key.
Returns
(::Boolean) — At least one of enable_people_counting and enable_vehicle_counting fields
must be set to true.
Whether to count the appearances of people, output counts have 'people' as
the key.
#enable_vehicle_counting
defenable_vehicle_counting()->::Boolean
Returns
(::Boolean) — Whether to count the appearances of vehicles, output counts will have
'vehicle' as the key.
#enable_vehicle_counting=
defenable_vehicle_counting=(value)->::Boolean
Parameter
value (::Boolean) — Whether to count the appearances of vehicles, output counts will have
'vehicle' as the key.
Returns
(::Boolean) — Whether to count the appearances of vehicles, output counts will have
'vehicle' as the key.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Vision AI V1 API - Class Google::Cloud::VisionAI::V1::PersonVehicleDetectionConfig (v1.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.1 (latest)](/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-PersonVehicleDetectionConfig)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/1.1.0/Google-Cloud-VisionAI-V1-PersonVehicleDetectionConfig)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision_ai-v1/1.0.1/Google-Cloud-VisionAI-V1-PersonVehicleDetectionConfig)\n- [0.4.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.4.0/Google-Cloud-VisionAI-V1-PersonVehicleDetectionConfig)\n- [0.3.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.3.0/Google-Cloud-VisionAI-V1-PersonVehicleDetectionConfig)\n- [0.2.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.2.0/Google-Cloud-VisionAI-V1-PersonVehicleDetectionConfig)\n- [0.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.1.0/Google-Cloud-VisionAI-V1-PersonVehicleDetectionConfig) \nReference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::PersonVehicleDetectionConfig.\n\nMessage describing PersonVehicleDetectionConfig. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #enable_people_counting\n\n def enable_people_counting() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- At least one of enable_people_counting and enable_vehicle_counting fields must be set to true. Whether to count the appearances of people, output counts have 'people' as the key.\n\n### #enable_people_counting=\n\n def enable_people_counting=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- At least one of enable_people_counting and enable_vehicle_counting fields must be set to true. Whether to count the appearances of people, output counts have 'people' as the key. \n**Returns**\n\n- (::Boolean) --- At least one of enable_people_counting and enable_vehicle_counting fields must be set to true. Whether to count the appearances of people, output counts have 'people' as the key.\n\n### #enable_vehicle_counting\n\n def enable_vehicle_counting() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Whether to count the appearances of vehicles, output counts will have 'vehicle' as the key.\n\n### #enable_vehicle_counting=\n\n def enable_vehicle_counting=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Whether to count the appearances of vehicles, output counts will have 'vehicle' as the key. \n**Returns**\n\n- (::Boolean) --- Whether to count the appearances of vehicles, output counts will have 'vehicle' as the key."]]