اذهب إلى المحتوى

Mohamed Farahat

الأعضاء
  • المساهمات

    123
  • تاريخ الانضمام

  • تاريخ آخر زيارة

كل منشورات العضو Mohamed Farahat

  1. مرحبا I am so curios to solve this problem, you can achieve this task using the OpenCV library in Python import cv2 def add_images(image1_path, image2_path): # Read the images image1 = cv2.imread(image1_path) image2 = cv2.imread(image2_path) # Ensure both images have the same dimensions image2 = cv2.resize(image2, (image1.shape[1], image1.shape[0])) # Add the images result = cv2.addWeighted(image1, 0.5, image2, 0.5, 0) return result def main(): # Paths to the input images image1_path = "image1.jpg" image2_path = "image2.jpg" # Add the images result_image = add_images(image1_path, image2_path) # Display the resulting image cv2.imshow("Result", result_image) cv2.waitKey(0) cv2.destroyAllWindows() if __name__ == "__main__": main() replace "image1.jpg" and "image2.jpg" with the paths to your actual images This program reads two images, resizes the second image to match the dimensions of the first one, adds them together using cv2.addWeighted()
  2. I have a new game I just finished rock paper scissors but with a different touch please,tell me you opinion, thank you rockPaperScissors.py
  3. I also have a small project that I wrote a while ago for a petrol station cashier, thank you app_print.py I also have one for a parking system made for an actual parking in Barcelona
  4. السلام عليكم Why is it that the python course does not have a part for Python GUI, I think tKinter is a very important tool for developers and end users as it is very user friendly, thank you
  5. I had this idea what do you think. thank you sleepv4.py sorry my keyboard in europe does not write arabic but I have five sleepversions but I thought that the 4th was the best one, thank you
  6. File "C:\Users\mohbc\Taskaty\taskaty\app.py", line 37, in <module> main() File "C:\Users\mohbc\Taskaty\taskaty\app.py", line 34, in main args.func(args) File "C:\Users\mohbc\Taskaty\taskaty\taskController.py", line 64, in display all_tasks = self.list_all_tasks() ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\mohbc\Taskaty\taskaty\taskController.py", line 39, in list_all_tasks title, description, start_date, end_date, done = line.split(', ') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: not enough values to unpack (expected 5, got 4)
×
×
  • أضف...