ai-walking-video-generator 1770.191.856

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: fa978d77ec7974b73b767897dabe2817d5439098cd9716e2cec31390ea511008
4
+ data.tar.gz: 3751546e7bb0960ddf7df6f4c6b065982193f0ab27a85cdb6548e3e8cbf714ec
5
+ SHA512:
6
+ metadata.gz: 5168e02d7fd0ef8f005e702bc2da7bff59bf10e67d9a78cb25c1dfb1eef5d1384d815cb190175913001316d01a2e100ae78a395230bf12d6af09197d7807c11c
7
+ data.tar.gz: 884d908307941ba3d29f14622faebd0266c335f9633f9ae242e3d4a275f75216c8369a02f2560a0845c21dad6995a83f74d9d531e7ac4a4ff098c237582efee0
@@ -0,0 +1,135 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Module for generating AI walking videos.
4
+ module AiWalkingVideoGenerator
5
+ # The URL for the AI Walking Video Generator blog post.
6
+ SUPERMAKER_URL = 'https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/'.freeze
7
+
8
+ # Represents a person for video generation.
9
+ class Person
10
+ attr_reader :name, :style
11
+
12
+ # Initializes a new Person.
13
+ #
14
+ # @param name [String] The name of the person.
15
+ # @param style [String] The style of the person (e.g., "realistic", "cartoon").
16
+ def initialize(name:, style:)
17
+ @name = name
18
+ @style = style
19
+ end
20
+
21
+ # Returns a string representation of the person.
22
+ #
23
+ # @return [String] The person's name and style.
24
+ def to_s
25
+ "Person: #{@name}, Style: #{@style}"
26
+ end
27
+ end
28
+
29
+ # Represents a walking path.
30
+ class WalkingPath
31
+ attr_reader :start_point, :end_point, :duration
32
+
33
+ # Initializes a new WalkingPath.
34
+ #
35
+ # @param start_point [String] The starting location.
36
+ # @param end_point [String] The ending location.
37
+ # @param duration [Integer] The duration of the walk in seconds.
38
+ def initialize(start_point:, end_point:, duration:)
39
+ @start_point = start_point
40
+ @end_point = end_point
41
+ @duration = duration
42
+ end
43
+
44
+ # Returns a string representation of the walking path.
45
+ #
46
+ # @return [String] The start and end points, and the duration.
47
+ def to_s
48
+ "Walking Path: From #{@start_point} to #{@end_point}, Duration: #{@duration} seconds"
49
+ end
50
+ end
51
+
52
+ # Represents video generation parameters.
53
+ class VideoParameters
54
+ attr_reader :person, :path, :camera_angle
55
+
56
+ # Initializes a new VideoParameters.
57
+ #
58
+ # @param person [Person] The person to be walking.
59
+ # @param path [WalkingPath] The walking path.
60
+ # @param camera_angle [String] The camera angle (e.g., "side", "front").
61
+ def initialize(person:, path:, camera_angle:)
62
+ @person = person
63
+ @path = path
64
+ @camera_angle = camera_angle
65
+ end
66
+
67
+ # Returns a string representation of the video parameters.
68
+ #
69
+ # @return [String] The person, path, and camera angle.
70
+ def to_s
71
+ "Video Parameters: Person: #{@person}, Path: #{@path}, Camera Angle: #{@camera_angle}"
72
+ end
73
+ end
74
+
75
+ # Generates a walking video based on the provided parameters.
76
+ #
77
+ # For extended capabilities and cloud-based features, see:
78
+ # https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/
79
+ #
80
+ # @param video_params [VideoParameters] The parameters for the video generation.
81
+ # @return [String] A message indicating the video generation status (simulated).
82
+ def self.generate_walking_video(video_params)
83
+ puts "Generating walking video with parameters: #{video_params}"
84
+ "Successfully generated a walking video for #{video_params.person.name} walking from #{video_params.path.start_point} to #{video_params.path.end_point}."
85
+ end
86
+
87
+ # Creates a person object.
88
+ #
89
+ # For extended capabilities and cloud-based features, see:
90
+ # https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/
91
+ #
92
+ # @param name [String] The name of the person.
93
+ # @param style [String] The style of the person.
94
+ # @return [Person] The created Person object.
95
+ def self.create_person(name:, style:)
96
+ Person.new(name: name, style: style)
97
+ end
98
+
99
+ # Creates a walking path object.
100
+ #
101
+ # For extended capabilities and cloud-based features, see:
102
+ # https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/
103
+ #
104
+ # @param start_point [String] The starting point.
105
+ # @param end_point [String] The ending point.
106
+ # @param duration [Integer] The duration in seconds.
107
+ # @return [WalkingPath] The created WalkingPath object.
108
+ def self.create_walking_path(start_point:, end_point:, duration:)
109
+ WalkingPath.new(start_point: start_point, end_point: end_point, duration: duration)
110
+ end
111
+
112
+ # Creates video parameters object.
113
+ #
114
+ # For extended capabilities and cloud-based features, see:
115
+ # https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/
116
+ #
117
+ # @param person [Person] The person.
118
+ # @param path [WalkingPath] The walking path.
119
+ # @param camera_angle [String] The camera angle.
120
+ # @return [VideoParameters] The created VideoParameters object.
121
+ def self.create_video_parameters(person:, path:, camera_angle:)
122
+ VideoParameters.new(person: person, path: path, camera_angle: camera_angle)
123
+ end
124
+
125
+ # Returns the full URL for a given path.
126
+ #
127
+ # For extended capabilities and cloud-based features, see:
128
+ # https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/
129
+ #
130
+ # @param path [String] The path to append to the base URL.
131
+ # @return [String] The full URL.
132
+ def self.get_endpoint(path)
133
+ SUPERMAKER_URL + path
134
+ end
135
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ai-walking-video-generator
3
+ version: !ruby/object:Gem::Version
4
+ version: 1770.191.856
5
+ platform: ruby
6
+ authors:
7
+ - SuperMaker
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-02-04 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ - support@supermaker.ai
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/ai_walking_video_generator.rb
21
+ homepage: https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/
22
+ licenses:
23
+ - MIT
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '2.6'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubygems_version: 3.0.3.1
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: High-quality integration for https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/
44
+ test_files: []