首頁>Club>
2
回覆列表
  • 1 # 416782235

    1. 打開AI左側的工具欄,點擊“畫板工具”快捷鍵是“shift+O”。

    2. 在屬性欄上可以看到文件的“寬”和“高”,單擊其中的一個圖形。

    3. 或者查看單個圖形的大小。

    4. 再次單擊整個文檔,在屬性的寬和高上輸入你要的尺寸。

    5. 看文件被精確尺寸了呢,文檔中的矢量圖形可以隨意改變它的大小。

  • 2 # RH9158

    在AI中,要知道圖像的長寬大小信息,通常是通過圖像處理庫或者AI庫提供的函數來實現的。以下是一些常用的獲取圖像長寬大小的方法:

    1.使用Python的PIL庫:

    ```

    from PIL import Image

    image = Image.open('image.jpg')

    width, height = image.size

    print(width, height)

    ```

    2.使用OpenCV庫:

    ```

    import cv2

    image = cv2.imread('image.jpg')

    height, width, channels = image.shape

    print(height, width)

    ```

    3.使用TensorFlow庫:

    ```

    import tensorflow as tf

    image = tf.io.read_file('image.jpg')

    image = tf.image.decode_jpeg(image, channels=3)

    shape = tf.shape(image)

    height, width = shape[0], shape[1]

    print(height, width)

    ```

    以上是一些常用的獲取圖像長寬大小的方法,具體實現方式依賴於所使用的圖像處理或AI庫。

  • 中秋節和大豐收的關聯?
  • 自動麻將機開機無反應?