openpose python code example
Example 1: np.c_ python
np.c_[np.array([1,2,3]), np.array([4,5,6])]
returns
array([[1, 4],
[2, 5],
[3, 6]])
Example 2: python matplt
import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4])
plt.ylabel('some numbers')
plt.show()
Example 3: random.uniform python
#In contrast to randInt .random.uniform generates a floating number between two variables
# imports random
import random
# randint generates a random integar between the first parameter and the second
print(random.randint(1, 100))
Example 4: glob.glob python
glob.glob("/home/ismail/*.txt")
Example 5: np.vstack python
import numpy as np
a = np.array([1, 2, 3])
b = np.array([2, 3, 4])
np.vstack((a,b))