ai-walking-video-generator 1770191.856.381__tar.gz

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.
@@ -0,0 +1 @@
1
+ MIT License
@@ -0,0 +1,2 @@
1
+ include README.md
2
+ include LICENSE
@@ -0,0 +1,142 @@
1
+ Metadata-Version: 2.4
2
+ Name: ai-walking-video-generator
3
+ Version: 1770191.856.381
4
+ Summary: High-quality integration for https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/
5
+ Home-page: https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/
6
+ Author: SuperMaker
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Requires-Python: >=3.6
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Dynamic: author
13
+ Dynamic: classifier
14
+ Dynamic: description
15
+ Dynamic: description-content-type
16
+ Dynamic: home-page
17
+ Dynamic: license-file
18
+ Dynamic: requires-python
19
+ Dynamic: summary
20
+
21
+ # ai-walking-video-generator
22
+
23
+ The `ai-walking-video-generator` library provides a streamlined interface for generating realistic walking videos using AI. It simplifies the process of creating engaging visual content, making it accessible for various applications.
24
+
25
+ ## Installation
26
+
27
+ Install the package using pip:
28
+ bash
29
+ pip install ai-walking-video-generator
30
+
31
+ ## Basic Usage
32
+
33
+ Here are a few examples demonstrating how to use the `ai-walking-video-generator` library:
34
+
35
+ **Scenario 1: Creating a Promotional Video for a Fitness App**
36
+ python
37
+ from ai_walking_video_generator import WalkingVideoGenerator
38
+
39
+ # Initialize the generator with desired parameters
40
+ generator = WalkingVideoGenerator(
41
+ character_type="athletic",
42
+ environment="city_park",
43
+ duration=15, #seconds
44
+ style="motivational"
45
+ )
46
+
47
+ # Generate the video
48
+ video_path = generator.generate_video("fitness_app_promo.mp4")
49
+
50
+ print(f"Video generated at: {video_path}")
51
+
52
+ This example creates a short, motivational video of an athletic character walking in a city park, suitable for promoting a fitness application.
53
+
54
+ **Scenario 2: Visualizing Architectural Designs**
55
+ python
56
+ from ai_walking_video_generator import WalkingVideoGenerator
57
+
58
+ # Initialize the generator with desired parameters
59
+ generator = WalkingVideoGenerator(
60
+ character_type="professional",
61
+ environment="modern_office",
62
+ duration=20, #seconds
63
+ style="realistic"
64
+ )
65
+
66
+ # Generate the video
67
+ video_path = generator.generate_video("office_walkthrough.mp4")
68
+
69
+ print(f"Video generated at: {video_path}")
70
+
71
+ This example demonstrates creating a realistic walkthrough of a modern office environment, showcasing architectural designs with a professional character.
72
+
73
+ **Scenario 3: Creating a Tutorial Video Introduction**
74
+ python
75
+ from ai_walking_video_generator import WalkingVideoGenerator
76
+
77
+ # Initialize the generator with desired parameters
78
+ generator = WalkingVideoGenerator(
79
+ character_type="casual",
80
+ environment="university_campus",
81
+ duration=10, #seconds
82
+ style="friendly"
83
+ )
84
+
85
+ # Generate the video
86
+ video_path = generator.generate_video("tutorial_intro.mp4")
87
+
88
+ print(f"Video generated at: {video_path}")
89
+
90
+ This example generates a friendly introduction video featuring a casual character walking on a university campus, ideal for starting a tutorial series.
91
+
92
+ **Scenario 4: Illustrating Urban Planning Concepts**
93
+ python
94
+ from ai_walking_video_generator import WalkingVideoGenerator
95
+
96
+ # Initialize the generator with desired parameters
97
+ generator = WalkingVideoGenerator(
98
+ character_type="diverse",
99
+ environment="city_street",
100
+ duration=30, #seconds
101
+ style="documentary"
102
+ )
103
+
104
+ # Generate the video
105
+ video_path = generator.generate_video("urban_planning_example.mp4")
106
+
107
+ print(f"Video generated at: {video_path}")
108
+
109
+ This example creates a documentary-style video showcasing diverse characters walking on a city street, suitable for illustrating urban planning concepts.
110
+
111
+ **Scenario 5: Showcasing Fashion Designs**
112
+ python
113
+ from ai_walking_video_generator import WalkingVideoGenerator
114
+
115
+ # Initialize the generator with desired parameters
116
+ generator = WalkingVideoGenerator(
117
+ character_type="model",
118
+ environment="urban_street",
119
+ duration=15, #seconds
120
+ style="fashion"
121
+ )
122
+
123
+ # Generate the video
124
+ video_path = generator.generate_video("fashion_design_showcase.mp4")
125
+
126
+ print(f"Video generated at: {video_path}")
127
+
128
+ This example creates a fashion-focused video showcasing a model walking on an urban street, perfect for displaying fashion designs.
129
+
130
+ ## Features
131
+
132
+ * **Simple API:** Easy-to-use interface for generating walking videos.
133
+ * **Customizable Characters:** Option to select different character types.
134
+ * **Diverse Environments:** Wide range of environments to choose from.
135
+ * **Stylized Output:** Control the style of the generated video.
136
+ * **Duration Control:** Set the desired duration of the video.
137
+
138
+ ## License
139
+
140
+ MIT License
141
+
142
+ This project is a gateway to the ai-walking-video-generator ecosystem. For advanced features and full capabilities, please visit: https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/
@@ -0,0 +1,122 @@
1
+ # ai-walking-video-generator
2
+
3
+ The `ai-walking-video-generator` library provides a streamlined interface for generating realistic walking videos using AI. It simplifies the process of creating engaging visual content, making it accessible for various applications.
4
+
5
+ ## Installation
6
+
7
+ Install the package using pip:
8
+ bash
9
+ pip install ai-walking-video-generator
10
+
11
+ ## Basic Usage
12
+
13
+ Here are a few examples demonstrating how to use the `ai-walking-video-generator` library:
14
+
15
+ **Scenario 1: Creating a Promotional Video for a Fitness App**
16
+ python
17
+ from ai_walking_video_generator import WalkingVideoGenerator
18
+
19
+ # Initialize the generator with desired parameters
20
+ generator = WalkingVideoGenerator(
21
+ character_type="athletic",
22
+ environment="city_park",
23
+ duration=15, #seconds
24
+ style="motivational"
25
+ )
26
+
27
+ # Generate the video
28
+ video_path = generator.generate_video("fitness_app_promo.mp4")
29
+
30
+ print(f"Video generated at: {video_path}")
31
+
32
+ This example creates a short, motivational video of an athletic character walking in a city park, suitable for promoting a fitness application.
33
+
34
+ **Scenario 2: Visualizing Architectural Designs**
35
+ python
36
+ from ai_walking_video_generator import WalkingVideoGenerator
37
+
38
+ # Initialize the generator with desired parameters
39
+ generator = WalkingVideoGenerator(
40
+ character_type="professional",
41
+ environment="modern_office",
42
+ duration=20, #seconds
43
+ style="realistic"
44
+ )
45
+
46
+ # Generate the video
47
+ video_path = generator.generate_video("office_walkthrough.mp4")
48
+
49
+ print(f"Video generated at: {video_path}")
50
+
51
+ This example demonstrates creating a realistic walkthrough of a modern office environment, showcasing architectural designs with a professional character.
52
+
53
+ **Scenario 3: Creating a Tutorial Video Introduction**
54
+ python
55
+ from ai_walking_video_generator import WalkingVideoGenerator
56
+
57
+ # Initialize the generator with desired parameters
58
+ generator = WalkingVideoGenerator(
59
+ character_type="casual",
60
+ environment="university_campus",
61
+ duration=10, #seconds
62
+ style="friendly"
63
+ )
64
+
65
+ # Generate the video
66
+ video_path = generator.generate_video("tutorial_intro.mp4")
67
+
68
+ print(f"Video generated at: {video_path}")
69
+
70
+ This example generates a friendly introduction video featuring a casual character walking on a university campus, ideal for starting a tutorial series.
71
+
72
+ **Scenario 4: Illustrating Urban Planning Concepts**
73
+ python
74
+ from ai_walking_video_generator import WalkingVideoGenerator
75
+
76
+ # Initialize the generator with desired parameters
77
+ generator = WalkingVideoGenerator(
78
+ character_type="diverse",
79
+ environment="city_street",
80
+ duration=30, #seconds
81
+ style="documentary"
82
+ )
83
+
84
+ # Generate the video
85
+ video_path = generator.generate_video("urban_planning_example.mp4")
86
+
87
+ print(f"Video generated at: {video_path}")
88
+
89
+ This example creates a documentary-style video showcasing diverse characters walking on a city street, suitable for illustrating urban planning concepts.
90
+
91
+ **Scenario 5: Showcasing Fashion Designs**
92
+ python
93
+ from ai_walking_video_generator import WalkingVideoGenerator
94
+
95
+ # Initialize the generator with desired parameters
96
+ generator = WalkingVideoGenerator(
97
+ character_type="model",
98
+ environment="urban_street",
99
+ duration=15, #seconds
100
+ style="fashion"
101
+ )
102
+
103
+ # Generate the video
104
+ video_path = generator.generate_video("fashion_design_showcase.mp4")
105
+
106
+ print(f"Video generated at: {video_path}")
107
+
108
+ This example creates a fashion-focused video showcasing a model walking on an urban street, perfect for displaying fashion designs.
109
+
110
+ ## Features
111
+
112
+ * **Simple API:** Easy-to-use interface for generating walking videos.
113
+ * **Customizable Characters:** Option to select different character types.
114
+ * **Diverse Environments:** Wide range of environments to choose from.
115
+ * **Stylized Output:** Control the style of the generated video.
116
+ * **Duration Control:** Set the desired duration of the video.
117
+
118
+ ## License
119
+
120
+ MIT License
121
+
122
+ This project is a gateway to the ai-walking-video-generator ecosystem. For advanced features and full capabilities, please visit: https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/
@@ -0,0 +1,88 @@
1
+ """
2
+ ai-walking-video-generator package
3
+
4
+ This package provides core functionalities for generating realistic walking videos using AI.
5
+ It includes functions for simulating camera movement, calculating perspective transformations,
6
+ and creating simple walking animations.
7
+ """
8
+
9
+ import math
10
+ from typing import Tuple
11
+
12
+
13
+ OFFICIAL_SITE = "https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/"
14
+
15
+
16
+ def get_official_site() -> str:
17
+ """
18
+ Returns the official website URL for the AI Walking Video Generator.
19
+
20
+ Returns:
21
+ str: The URL of the official website.
22
+ """
23
+ return OFFICIAL_SITE
24
+
25
+
26
+ def simulate_camera_movement(frame_number: int, amplitude: float = 0.1, frequency: float = 0.2) -> Tuple[float, float]:
27
+ """
28
+ Simulates subtle camera movement to mimic a handheld camera effect.
29
+
30
+ This function calculates the horizontal and vertical camera offset based on sine waves.
31
+
32
+ Args:
33
+ frame_number: The current frame number.
34
+ amplitude: The amplitude of the camera movement. Higher values result in more movement.
35
+ frequency: The frequency of the camera movement. Higher values result in faster movement.
36
+
37
+ Returns:
38
+ Tuple[float, float]: A tuple containing the horizontal and vertical camera offset.
39
+ """
40
+ horizontal_offset = amplitude * math.sin(frequency * frame_number)
41
+ vertical_offset = amplitude * math.cos(frequency * frame_number * 1.2) # slightly different frequency for vertical
42
+
43
+ return horizontal_offset, vertical_offset
44
+
45
+
46
+ def calculate_perspective_transformation(image_width: int, image_height: int, focal_length: float,
47
+ camera_height: float) -> Tuple[float, float, float, float]:
48
+ """
49
+ Calculates perspective transformation parameters for simulating a walking view.
50
+
51
+ This function approximates the perspective effect based on image dimensions, focal length,
52
+ and camera height. It returns scaling factors for the top and bottom of the image.
53
+
54
+ Args:
55
+ image_width: The width of the image.
56
+ image_height: The height of the image.
57
+ focal_length: The focal length of the virtual camera.
58
+ camera_height: The height of the virtual camera above the ground plane.
59
+
60
+ Returns:
61
+ Tuple[float, float, float, float]: Scaling factors (top_scale_x, top_scale_y, bottom_scale_x, bottom_scale_y).
62
+ """
63
+ top_scale_x = 1.0 + focal_length / (camera_height + image_height / 2)
64
+ top_scale_y = 1.0 + focal_length / (camera_height + image_height / 2)
65
+ bottom_scale_x = 1.0 + focal_length / camera_height
66
+ bottom_scale_y = 1.0 + focal_length / camera_height
67
+
68
+ return top_scale_x, top_scale_y, bottom_scale_x, bottom_scale_y
69
+
70
+
71
+ def create_walking_animation_frame(base_image_data: bytes, frame_number: int, stride_length: int = 5) -> bytes:
72
+ """
73
+ Simulates a simple walking animation by shifting the image horizontally.
74
+
75
+ This function creates a basic walking effect by cyclically shifting the base image data.
76
+ It is a placeholder and would ideally be replaced with a more sophisticated animation algorithm.
77
+ The current algorithm simulates movement by horizontal shifting of the base image.
78
+ Args:
79
+ base_image_data: The byte data of the base image.
80
+ frame_number: The current frame number.
81
+ stride_length: The length of each step in pixels.
82
+
83
+ Returns:
84
+ bytes: The modified image data representing the animation frame. This is a simplified simulation.
85
+ """
86
+ shift_amount = (frame_number * stride_length) % len(base_image_data)
87
+ animated_image_data = base_image_data[shift_amount:] + base_image_data[:shift_amount]
88
+ return animated_image_data
@@ -0,0 +1,142 @@
1
+ Metadata-Version: 2.4
2
+ Name: ai-walking-video-generator
3
+ Version: 1770191.856.381
4
+ Summary: High-quality integration for https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/
5
+ Home-page: https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/
6
+ Author: SuperMaker
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Requires-Python: >=3.6
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Dynamic: author
13
+ Dynamic: classifier
14
+ Dynamic: description
15
+ Dynamic: description-content-type
16
+ Dynamic: home-page
17
+ Dynamic: license-file
18
+ Dynamic: requires-python
19
+ Dynamic: summary
20
+
21
+ # ai-walking-video-generator
22
+
23
+ The `ai-walking-video-generator` library provides a streamlined interface for generating realistic walking videos using AI. It simplifies the process of creating engaging visual content, making it accessible for various applications.
24
+
25
+ ## Installation
26
+
27
+ Install the package using pip:
28
+ bash
29
+ pip install ai-walking-video-generator
30
+
31
+ ## Basic Usage
32
+
33
+ Here are a few examples demonstrating how to use the `ai-walking-video-generator` library:
34
+
35
+ **Scenario 1: Creating a Promotional Video for a Fitness App**
36
+ python
37
+ from ai_walking_video_generator import WalkingVideoGenerator
38
+
39
+ # Initialize the generator with desired parameters
40
+ generator = WalkingVideoGenerator(
41
+ character_type="athletic",
42
+ environment="city_park",
43
+ duration=15, #seconds
44
+ style="motivational"
45
+ )
46
+
47
+ # Generate the video
48
+ video_path = generator.generate_video("fitness_app_promo.mp4")
49
+
50
+ print(f"Video generated at: {video_path}")
51
+
52
+ This example creates a short, motivational video of an athletic character walking in a city park, suitable for promoting a fitness application.
53
+
54
+ **Scenario 2: Visualizing Architectural Designs**
55
+ python
56
+ from ai_walking_video_generator import WalkingVideoGenerator
57
+
58
+ # Initialize the generator with desired parameters
59
+ generator = WalkingVideoGenerator(
60
+ character_type="professional",
61
+ environment="modern_office",
62
+ duration=20, #seconds
63
+ style="realistic"
64
+ )
65
+
66
+ # Generate the video
67
+ video_path = generator.generate_video("office_walkthrough.mp4")
68
+
69
+ print(f"Video generated at: {video_path}")
70
+
71
+ This example demonstrates creating a realistic walkthrough of a modern office environment, showcasing architectural designs with a professional character.
72
+
73
+ **Scenario 3: Creating a Tutorial Video Introduction**
74
+ python
75
+ from ai_walking_video_generator import WalkingVideoGenerator
76
+
77
+ # Initialize the generator with desired parameters
78
+ generator = WalkingVideoGenerator(
79
+ character_type="casual",
80
+ environment="university_campus",
81
+ duration=10, #seconds
82
+ style="friendly"
83
+ )
84
+
85
+ # Generate the video
86
+ video_path = generator.generate_video("tutorial_intro.mp4")
87
+
88
+ print(f"Video generated at: {video_path}")
89
+
90
+ This example generates a friendly introduction video featuring a casual character walking on a university campus, ideal for starting a tutorial series.
91
+
92
+ **Scenario 4: Illustrating Urban Planning Concepts**
93
+ python
94
+ from ai_walking_video_generator import WalkingVideoGenerator
95
+
96
+ # Initialize the generator with desired parameters
97
+ generator = WalkingVideoGenerator(
98
+ character_type="diverse",
99
+ environment="city_street",
100
+ duration=30, #seconds
101
+ style="documentary"
102
+ )
103
+
104
+ # Generate the video
105
+ video_path = generator.generate_video("urban_planning_example.mp4")
106
+
107
+ print(f"Video generated at: {video_path}")
108
+
109
+ This example creates a documentary-style video showcasing diverse characters walking on a city street, suitable for illustrating urban planning concepts.
110
+
111
+ **Scenario 5: Showcasing Fashion Designs**
112
+ python
113
+ from ai_walking_video_generator import WalkingVideoGenerator
114
+
115
+ # Initialize the generator with desired parameters
116
+ generator = WalkingVideoGenerator(
117
+ character_type="model",
118
+ environment="urban_street",
119
+ duration=15, #seconds
120
+ style="fashion"
121
+ )
122
+
123
+ # Generate the video
124
+ video_path = generator.generate_video("fashion_design_showcase.mp4")
125
+
126
+ print(f"Video generated at: {video_path}")
127
+
128
+ This example creates a fashion-focused video showcasing a model walking on an urban street, perfect for displaying fashion designs.
129
+
130
+ ## Features
131
+
132
+ * **Simple API:** Easy-to-use interface for generating walking videos.
133
+ * **Customizable Characters:** Option to select different character types.
134
+ * **Diverse Environments:** Wide range of environments to choose from.
135
+ * **Stylized Output:** Control the style of the generated video.
136
+ * **Duration Control:** Set the desired duration of the video.
137
+
138
+ ## License
139
+
140
+ MIT License
141
+
142
+ This project is a gateway to the ai-walking-video-generator ecosystem. For advanced features and full capabilities, please visit: https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/
@@ -0,0 +1,9 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ setup.py
5
+ ai_walking_video_generator/__init__.py
6
+ ai_walking_video_generator.egg-info/PKG-INFO
7
+ ai_walking_video_generator.egg-info/SOURCES.txt
8
+ ai_walking_video_generator.egg-info/dependency_links.txt
9
+ ai_walking_video_generator.egg-info/top_level.txt
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,17 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name="ai-walking-video-generator",
5
+ version="1770191.856.381",
6
+ description="High-quality integration for https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/",
7
+ long_description=open("README.md", encoding="utf-8").read(),
8
+ long_description_content_type="text/markdown",
9
+ author="SuperMaker",
10
+ url="https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/",
11
+ packages=find_packages(),
12
+ python_requires=">=3.6",
13
+ classifiers=[
14
+ "Programming Language :: Python :: 3",
15
+ "License :: OSI Approved :: MIT License",
16
+ ],
17
+ )