<jupyter_start><jupyter_text>Feature Extraction from Image (Pixel Average-Median-Mode)--- Package Name: pixel_features--- Methods: mode_pixel_value(image):This method returns numpy array containing 4 values i.e. channelwise most frequent pixel value and also overall most frequent pixel value. Parameters:- **Image:** It takes a 3 dimensional image as input.--- Example:<jupyter_code>import cv2
from pixel_features import pixel_features
# Creating object by calling class pixel_features
features = pixel_features()

# Using cv2.imread('') to read input image
image = cv2.imread('puppy.jpg')

# Passing image to mode_pixel_value to get most frequent pixel values
mode = features.mode_pixel_value(image)

# Display resulting mode values
print("Mode pixel values are: ", mode)
print("Mode pixel value of blue channel is: ", mode[0])
print("Mode pixel value of green channel is: ", mode[1])
print("Mode pixel value of red channel is: ", mode[2])
print("Mode pixel value of entire image is: ", mode[3])<jupyter_output>Mode pixel values are:  [21 25 21 21]
Mode pixel value of blue channel is:  21
Mode pixel value of green channel is:  25
Mode pixel value of red channel is:  21
Mode pixel value of entire image is:  21
{'fraction_non_alphanumeric': 0.08731466227347612, 'fraction_numerical': 0.02059308072487644, 'mean_word_length': 5.230769230769231, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '422476', 'license': 'MIT', 'n_tokens_mistral': 351, 'n_tokens_neox': 334, 'n_words': 155, 'path': 'Groups/Group_ID_46/Pixel Mean-Median-Mode/Example_pixel_mode.ipynb', 'repo_name': 'shekhar-sharma/DataScience', 'size': '1214'}