วันนี้จะขอพูดถึงเครื่องมือตัวหนึ่ง 😃
ของโลกการเขียนซอฟต์แวร์ที่ชื่อ Selenium
คนละชื่อกับ Selenium ในตารางธาตุวิชาเคมีนะ
.
Selenium แห่งโลกซอฟต์แวร์
มันเป็นเครื่องมือและไลบรารี่ในคราวเดียวกัน
เอาไว้ควบคุมบราวเซอร์อัตโนมัติ
.
เวลาพูดถึงเครื่องมือ หรือ tool 🔧⚒
จะไม่เหมือนสว่านในการก่อสร้างนะ
ที่ช่วยทำอัตโนมัติทุกอย่าง จนสบายมือ ไม่เหนื่อย
.
selenium ถูกนิยามเป็น tool ก็จริง
แต่เราต้องมานั่งเขียนโปรแกรมอยู่ดี
ต้องทำงานถึก นั่งพิมพ์ดีด
ต้องเขียนโค้ดเพื่อควบคุมหน้าเว็บด้วยสองมือ
.
ประโยชน์
🐵 1) จุดประสงค์หลักที่มันเกิดขึ้นมา
เขาเอาไว้ใช้ทำ test suite เป็นสำคัญ
พูดง่ายๆ ทำเทสหน้าเว็บไซต์อัตโนมัตินั่นแหละ
.
เช่นเราสามารถเขียนโปรแกรมใส่รหัสผ่าน กดล็อกอิน
คลิกลิงค์โน่นนี้อัตโนมัติ ทดสอบเว็บไซต์ได้เลย
ใครทำเทสอัตโนมัติ นิยมมาก
.
🐼 2) ถ้าจะประยุกต์แอดวานซ์หน่อย
ก็เอาไปทำโรบอทควบคุมเว็บไซต์อัตโนมัติ
เช่น เขียนโปรแกรมให้มันเข้าเว็บ ไปเล่นหุ้นให้เอง
.
แต่นั้นแหละครับมันก็สามารถเอาไปใช้ในทางไม่ดีได้เช่นกัน 😰
เหมือนดาบสองคมเนอะ
.
Selenium รองรับได้หลายบราวเซอร์ดังๆ หลายเจ้า เช่น
Chrom(ium), Firefox, Internet Explorer, Opera, และ Safari
.
แต่ข้อแม้ยุ่งยากนิดหนึ่ง 😠
เราต้องดาวน์โหลด webdriver แต่ละเว็บบราวเซอร์มาก่อน
ถึงจะเขียนโปรแกรมใช้งานบราวเซอร์ยี่ห้อนั้นได้ดั่งใจนึก
(บราวเซอร์คนละยี่ห้อ คนละเวอร์ชั่น ก็คนละ webdriver นะ)
.
ปัจจุบันมันรองรับหลายภาษาเขียนโปรแกรมดังหลายตัว เช่น
Python, Java, C#, JavaScript, Ruby, PHP, Perl
.
สนใจไปศึกษาเพิ่มเติมได้ที่
https://www.selenium.dev/documentation/en/
.
ตัวอย่างรูปที่เห็นตามโพสต์
เป็นโค้ดของภาษา Python
(ต้องมี webdriver ในกรณีนี้เป็นของ Chrome)
จุดประสงค์เอาไว้ล็อกอินหน้า facebook
โดยไม่ต้องกรอกรหัสผ่านให้ปวดมือ
.
เขียนโค้ดสั้นๆ แค่นี้แหละ
เป็นไงเห็นแล้วง่ายไหม?
.
✍ เขียนโดย โปรแกรมเมอร์ไทย thai programmer
Today I'll talk about one tool 😃
of the software writing world named Selenium
Different name with Selenium in the chemical periodic table.
.
Selenium of the Software World
It's a tool and a library at the same time
To control the automatic browser
.
Time to talk about tools or tools 🔧⚒
Won't be like a span in construction.
The one that helps automate everything until it's comfortable. Not tired.
.
Selenium is defined as tool. It's true.
But we have to sit on programming anyway.
Got to work. Sitting in typing.
Code must be written to control webpage with two hands.
.
Benefits
🐵 1) The main purpose for which it happened.
It's important to use test suite
Easy to say. Automatic website test.
.
Like we can program password press log in
Click this link automatically. Test the website.
Who made the autograph test so popular
.
🐼 2) If I want to apply, add to my inbox.
It's going to automate website controller robot
Like programming, let's get on the web, play stocks for yourself.
.
But that's it. It can be used in a bad way too. 😰
It's like a two-edged sword.
.
Selenium supports many loud browsers, such as
Chrom(ium), Firefox, Internet Explorer, Opera, และ Safari
.
But a bit of a complication 😠
We need to download each webdriver before.
Even if I could write a program to use that brand of browser, I would like to think.
(Different brand of browser, different version, different webdriver)
.
Currently, it supports many languages. Many famous programming such as.
Python, Java, C #, JavaScript, Ruby, PHP, Perl
.
If you are interested in studying more, please visit.
https://www.selenium.dev/documentation/en/
.
preview photos seen by post
The code of Python language
(Webdriver is required. In this case, it's Chrome)
The purpose is to log in facebook page.
Without filling the password for hand pain
.
Write a short code just this.
How is it? It's easy to see?
.
✍ Written by Thai programmer thai coderTranslated
同時也有10000部Youtube影片,追蹤數超過2,910的網紅コバにゃんチャンネル,也在其Youtube影片中提到,...
「python use version」的推薦目錄:
- 關於python use version 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的精選貼文
- 關於python use version 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的精選貼文
- 關於python use version 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最佳解答
- 關於python use version 在 コバにゃんチャンネル Youtube 的最讚貼文
- 關於python use version 在 大象中醫 Youtube 的精選貼文
- 關於python use version 在 大象中醫 Youtube 的最佳貼文
- 關於python use version 在 How do I tell a Python script to use a particular version - Stack ... 的評價
- 關於python use version 在 actions/setup-python: Set up your ... - GitHub 的評價
- 關於python use version 在 Python Version Configuration • reticulate 的評價
- 關於python use version 在 Getting Started With pyenv to Manage Multiple Python Versions 的評價
- 關於python use version 在 Specifying python version in run-python - Emacs Stack ... 的評價
python use version 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的精選貼文
🤓 น้องๆ รู้ไหมครับว่า computer vision
อ่านว่า "คอมพิวเตอร์วิชั่น"
เป็นศาสตร์ทางคอมชั้นสูงอีกแขนงหนึ่ง
ที่ทำให้คอมพิวเตอร์มองเห็นได้ดุจดังตามนุษย์
เป็นไงฟังแล้วเท่ห์มั๊ยละ
.
ปกติมนุษย์เวลาเห็นวัตถุ สิ่งของ สิ่งมีชีวิต อยู่ในรูป หรือในวีดีโอ
เช่น เห็นปูุ๊บก็จะบอกได้ทันทีว่า
ในรูปหรือวีดีโอมีหมา แมว แก้วน้ำ แจกัน ฯลฯ
เรื่องแบบนี้สำหรับคน ถือว่าโคตรรรรรรรรรง่ายๆ
.
แต่ทว่าในมุมของคอมพิวเตอร์
มันยากมากกกกกกกกกกกกกก
.
ถ้าคอมมันทำได้ก็ถือว่าฉลาดมากแล้ว
ถือว่า intelligent เป็นสิ่งอัจฉริยะในมุมของคอม
ซึ่งการแยกแยะว่าสิ่งที่อยู่ในรูปว่ามันเป็นอะไร
ภาษาอังกฤษเรียกว่า classification (แยกแยะประเภท)
.
สำหรับศาสตร์ computer vision 💻 💻
มันแตกแขนงได้หลายเทคนิค หลายสาย
แต่ในโพสต์นี้จะพูดถึงเฉพาะแค่ 2 เรื่อง เท่านั้นได้แก่
.
☑ 1) การทำ Object detection
เป็นการตรวจจจับวัตถุในรูป
ในมุมการ classification มันแค่บอกว่าสิ่งในรูปคืออะไร
แต่ Object detection จะไม่ใช่แค่บอกว่าสิ่งที่อยู่ในรูปคืออะไรเท่านั้น
.
😲 😲 มันเหมือนอัพเกรตจากความสามารถ classification
เพื่อพัฒนาไปตีกล่องสี่เหลี่ยมล้อมรอบ (ภาษาอังกฤษเรียกว่า Box)
ตีกล่องเพื่อบอกตำแหน่งสิ่งที่มันตรวจจับในรูปหรือในวีดีโอได้ ...โอ้วแม่เจ้าจะเทพไปถึงไหน
.
.
☑ 2) การทำ Segmentation
จะแอดวานซ์จาก Object detection
เหมือนเป็นเวอร์ชั่นอัพเกรตอีกต่อหนึ่ง
.
คือมันไม่ได้ตีกรอบล้อมรอบวัตถุนะ
แต่มันจะยิ่งกว่านั้น
...ก็คือมันจะไฮไลท์ (ฝรั่งบอกว่า mask)
....มันจะระบุพื้นที่วัตถุ สิ่งของ ที่มันตรวจจับได้ (เหมือนเราแรงงานไปยังวัตถุนั้น ๆ)
.
.
ซึ่งศาสตร์ computer vision ปัจจุบันนี้
นิยมเอา AI (ปัญญาประดิษฐ์) มาใช้งาน
จริงมันก็ทำอย่างอื่นได้นอกจากสองเรื่องที่ผ่าน เช่น
pose estimation ตรวจจับจุดต่างๆ ของมนุษย์ แบบกล่องสองผี 💀💀 💀 ....จนปรึ้นๆๆ น่ากลัวหรือเปล่า เป็นต้น
.
และมีข่าวดีสำหรับใครที่สนใจเขียนโปรแกรม 👏 👏
สำหรับงาน Object Detection กับ Segmentaion
ผมทำตัวอย่างการใช้งานไว้แล้ว
มี 5 แบบ ลองเข้าไปดูโค้ดได้ที่นี้
.
🔥 1. การช้งานไลบรารี่ imageai ตรวจจับวัตถุในรูป
https://colab.research.google.com/…/1uQnZfPlRhplvcZKWiXn1je…
🔥 2. การใช้งานไลบรารี่ pixellib ตรวจจับวัตถุในรูป
https://colab.research.google.com/…/1llWzReE3rS9wDfSGGm8M7R…
🔥 3. การใช้ไลบรารี่ Tensorflow ตัวอย่างของ Google ตรวจจับวัตถุในรูป
https://colab.research.google.com/…/12K-4uQ1tAvOukLb1-lwXx4…
🔥 4. การใช้ไลบรารี่ Detectron2 ของเฟสบุ๊ค ตรวจจับวัตถุในรูป
https://colab.research.google.com/…/1jnWFADFdZHz1LSyfXVKHY3…
🔥 5 ตัวอย่างการใช้โมเดล Msk RCNN ตรวจจับวัตถุในรูป
https://colab.research.google.com/…/1JGRIMQ1YSdMXkEZdC6QNGb…
.
ปล. มีแต่โค้ด python เพราะต้องทำใจอะนะ
เพราะงานด้านนี้ ภาษานี้คืออันดับหนึ่งในงาน AI ณ ห่วงเวลานี้
(สามารถไปอ่านตำราเรียน ม.1-2-3 มีเนื้อหา python อยู่ในตำรา)
.
.
+++++ขอประชาสัมพันธ์ (ขายของ)
📔 หนังสือ "ปัญญาประดิษฐ์ (AI) ไม่ยาก" เข้าใจได้ด้วยเลขม. ปลาย (เนื้อหาภาษาไทย)
.
ถ้าสนใจสั่งซื้อเล่ม 1 ก็สั่งซื้อได้ที่ (เล่มอื่นๆ กำลังทยอยตามมา)
👉 https://www.mebmarket.com/web/index.php…
.
ขออภัยยังไม่มีเล่มกระดาษจำหน่าย มีแต่ ebook
.
ส่วนตัวอย่างหนังสือ ก็ดูได้ลิงค์นี้
👉 https://www.dropbox.com/s/fg8l38hc0k9b…/chapter_example.pdf…
.
✍เขียนโดย โปรแกรมเมอร์ไทย thai programmer
🤓 Do you know that computer vision?
Read ′′ Computer Vision ′′
It's another elite computer science.
That makes computers visible as human eyes.
How are you? Are you cool?
.
Normally humans see objects of living things in the photo or video.
Such as seeing a crab, I can tell you right away.
In the picture or video, there are dogs, cats, mug, vase etc.
This kind of thing for people is considered simple.
.
But in the corner of computer
It's very difficult.
.
If a computer can do it, it's very clever.
Intelligent is considered genius in the corner of the computer.
Which digest what's in the picture is what it is.
English is called classification (type digest)
.
For computer vision science 💻 💻
It's broken. Many tricks. Many lines.
But in this post, it's only about 2 stories.
.
☑ 1) Object detection
Detection of the objects in the photo
In classification angle, it just says what is in the picture.
But Object detection won't just say what's in the picture.
.
😲 😲 It's like an upgrade from ability classification.
To develop, hit a square box, surround (English is called Box).
Hit the box to spot what it detects in the photo or video... Oh my god how can it be?
.
.
☑ 2) Making Segmentation
Will admin from Object detection
It's like another upgrade version.
.
Well, it doesn't hit the frame surrounding the object.
But it will be more than that.
... Well, it's going to be highlighted (Foreigner says mask)
.... It will identify the areas, objects, things that they detect (like we labor to that object).
.
.
The science of computer vision nowadays.
Popular to use AI (Artificial Intelligence)
True, it can do anything else but two things that pass, e.g.
pose estimation detects different points of human in two ghost box. 💀💀 💀 💀 💀.... so bad, scary, etc.
.
And some good news for anyone who is interested in programming 👏 👏
For Object Detection with Segmentaion
I made an example of use.
There are 5 designs. Check out the code here.
.
🔥 1. Imageai library work. Detection of objects in the photo.
https://colab.research.google.com/drive/1uQnZfPlRhplvcZKWiXn1jeytJIFEVLkV
🔥 2. usage of pixellib libraries. Detect objects in the photo.
https://colab.research.google.com/drive/1llWzReE3rS9wDfSGGm8M7RQ25jeEfSIi
🔥 3. uses of Tensorflow's Tensorflow library. A sample of Google detects objects in the photo.
https://colab.research.google.com/drive/12K-4uQ1tAvOukLb1-lwXx4bnXkeQupTk
🔥 4. Facebook's Detectron2 Library Uses rūp Objects Detector
https://colab.research.google.com/drive/1jnWFADFdZHz1LSyfXVKHY3fIwuY5F_uo
🔥 5 examples of using Msk RCN model. Detect objects in the photo.
https://colab.research.google.com/drive/1JGRIMQ1YSdMXkEZdC6QNGbI722tEQJTE
.
Ps. There are only code python because I need to get over it.
Because of this side job, this language is number one in AI event. At this time, I'm
(Can go to read textbooks. 1-2-3 python content in the textbook)
.
.
+++++ Public relations (selling items)
📔 The book ′′ Artificial Intelligence (AI) is not difficult It can be understood by the number. Tipping (Thai language content)
.
If you are interested in ordering book 1, you can order at (other books are gradually following).
👉 https://www.mebmarket.com/web/index.php?action=BookDetails&data=YToyOntzOjc6InVzZXJfaWQiO3M6NzoiMTcyNTQ4MyI7czo3OiJib29rX2lkIjtzOjY6IjEwODI0NiI7fQ&fbclid=IwAR11zxJea0OnJy5tbfIlSxo4UQmsemh_8TuBF0ddjJQzzliMFFoFz1AtTo4
.
Sorry, no paper books available. Only ebooks.
.
Personal like the book. You can see this link.
👉 https://www.dropbox.com/s/fg8l38hc0k9b0md/chapter_example.pdf?dl=0
.
✍ Written by Thai programmer thai coderTranslated
python use version 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最佳解答
วันนี้จะขอพูดถึงเครื่องมือตัวหนึ่ง 😃
ของโลกการเขียนซอฟต์แวร์ที่ชื่อ Selenium
คนละชื่อกับ Selenium ในตารางธาตุวิชาเคมีนะ
.
Selenium แห่งโลกซอฟต์แวร์
มันเป็นเครื่องมือและไลบรารี่ในคราวเดียวกัน
เอาไว้ควบคุมบราวเซอร์อัตโนมัติ
.
เวลาพูดถึงเครื่องมือ หรือ tool 🔧⚒
จะไม่เหมือนสว่านในการก่อสร้างนะ
ที่ช่วยทำอัตโนมัติทุกอย่าง จนสบายมือ ไม่เหนื่อย
.
selenium ถูกนิยามเป็น tool ก็จริง
แต่เราต้องมานั่งเขียนโปรแกรมอยู่ดี
ต้องทำงานถึก นั่งพิมพ์ดีด
ต้องเขียนโค้ดเพื่อควบคุมหน้าเว็บด้วยสองมือ
.
ประโยชน์
🐵 1) จุดประสงค์หลักที่มันเกิดขึ้นมา
เขาเอาไว้ใช้ทำ test suite เป็นสำคัญ
พูดง่ายๆ ทำเทสหน้าเว็บไซต์อัตโนมัตินั่นแหละ
.
เช่นเราสามารถเขียนโปรแกรมใส่รหัสผ่าน กดล็อกอิน
คลิกลิงค์โน่นนี้อัตโนมัติ ทดสอบเว็บไซต์ได้เลย
ใครทำเทสอัตโนมัติ นิยมมาก
.
🐼 2) ถ้าจะประยุกต์แอดวานซ์หน่อย
ก็เอาไปทำโรบอทควบคุมเว็บไซต์อัตโนมัติ
เช่น เขียนโปรแกรมให้มันเข้าเว็บ ไปเล่นหุ้นให้เอง
.
แต่นั้นแหละครับมันก็สามารถเอาไปใช้ในทางไม่ดีได้เช่นกัน 😰
เหมือนดาบสองคมเนอะ
.
Selenium รองรับได้หลายบราวเซอร์ดังๆ หลายเจ้า เช่น
Chrom(ium), Firefox, Internet Explorer, Opera, และ Safari
.
แต่ข้อแม้ยุ่งยากนิดหนึ่ง 😠
เราต้องดาวน์โหลด webdriver แต่ละเว็บบราวเซอร์มาก่อน
ถึงจะเขียนโปรแกรมใช้งานบราวเซอร์ยี่ห้อนั้นได้ดั่งใจนึก
(บราวเซอร์คนละยี่ห้อ คนละเวอร์ชั่น ก็คนละ webdriver นะ)
.
ปัจจุบันมันรองรับหลายภาษาเขียนโปรแกรมดังหลายตัว เช่น
Python, Java, C#, JavaScript, Ruby, PHP, Perl
.
สนใจไปศึกษาเพิ่มเติมได้ที่
https://www.selenium.dev/documentation/en/
.
ตัวอย่างรูปที่เห็นตามโพสต์
เป็นโค้ดของภาษา Python
(ต้องมี webdriver ในกรณีนี้เป็นของ Chrome)
จุดประสงค์เอาไว้ล็อกอินหน้า facebook
โดยไม่ต้องกรอกรหัสผ่านให้ปวดมือ
.
เขียนโค้ดสั้นๆ แค่นี้แหละ
เป็นไงเห็นแล้วง่ายไหม?
.
✍ เขียนโดย โปรแกรมเมอร์ไทย thai programmer
Today I'll talk about one tool 😃
of the software writing world named Selenium
Different name with Selenium in the chemical periodic table.
.
Selenium of the Software World
It's a tool and a library at the same time
To control the automatic browser
.
Time to talk about tools or tools 🔧⚒
Won't be like a span in construction.
The one that helps automate everything until it's comfortable. Not tired.
.
Selenium is defined as tool. It's true.
But we have to sit on programming anyway.
Got to work. Sitting in typing.
Code must be written to control webpage with two hands.
.
Benefits
🐵 1) The main purpose for which it happened.
It's important to use test suite
Easy to say. Automatic website test.
.
Like we can program password press log in
Click this link automatically. Test the website.
Who made the autograph test so popular
.
🐼 2) If I want to apply, add to my inbox.
It's going to automate website controller robot
Like programming, let's get on the web, play stocks for yourself.
.
But that's it. It can be used in a bad way too. 😰
It's like a two-edged sword.
.
Selenium supports many loud browsers, such as
Chrom(ium), Firefox, Internet Explorer, Opera, และ Safari
.
But a bit of a complication 😠
We need to download each webdriver before.
Even if I could write a program to use that brand of browser, I would like to think.
(Different brand of browser, different version, different webdriver)
.
Currently, it supports many languages. Many famous programming such as.
Python, Java, C #, JavaScript, Ruby, PHP, Perl
.
If you are interested in studying more, please visit.
https://www.selenium.dev/documentation/en/
.
preview photos seen by post
The code of Python language
(Webdriver is required. In this case, it's Chrome)
The purpose is to log in facebook page.
Without filling the password for hand pain
.
Write a short code just this.
How is it? It's easy to see?
.
✍ Written by Thai programmer thai coderTranslated
python use version 在 actions/setup-python: Set up your ... - GitHub 的推薦與評價
This action sets up a Python environment for use in actions by: optionally installing and adding to PATH a version of Python that is already installed in the ... ... <看更多>
python use version 在 Python Version Configuration • reticulate 的推薦與評價
It is not uncommon for several version of Python (and several conda or ... a version which includes the first Python package imported via the import() ... ... <看更多>
python use version 在 How do I tell a Python script to use a particular version - Stack ... 的推薦與評價
... <看更多>
相關內容