Posts

Showing posts with the label python

Face Mask Detector using Deep Learning (PyTorch) and Computer Vision (OpenCV)

Image
Overview The World Health Organization (WHO) reports suggest that the two main routes of transmission of the COVID-19 virus are respiratory droplets and physical contact. Respiratory droplets are generated when an infected person coughs or sneezes. Any person in close contact (within 1 m) with someone who has respiratory symptoms (coughing, sneezing) is at risk of being exposed to potentially infective respiratory droplets. Droplets may also land on surfaces where the virus could remain viable; thus, the immediate environment of an infected individual can serve as a source of transmission (contact transmission). Wearing a medical mask is one of the prevention measures that can limit the spread of certain respiratory viral diseases, including COVID-19. In this study, medical masks are defined as surgical or procedure masks that are flat or pleated (some are shaped like cups); they are affixed to the head with straps. They are tested for balanced high filtration, adequate breathability a...

Selenium : Element is not clickable at point (X,Y)

Now a days most of them using selenium as one of the scraping tool due to its build in library and community support. Even though many of us feel its hard to implement in selenium.  In my previous post  explained how  effectively we can use the selenium in different use cases. Most of us known selenium is a automation testing tool. Currently people using this as most successful scraping methodology.  The most scraping tools are developed with the help of selenium only.  For example Scrapy . To know more about how to crawl a website follow this post http://ramakavanan.blogspot.com/2017/09/website-crawl-or-scraping-with-selenium.html. Issue: One day I started to crawl  Cricbuzz website. In the middle of crawling, The crawler should move to the next page. So I want not click the " next "  button in the pagination list.  But the crawler throws the issue like WebDriverException : Message : Element is not clickable at point ( 91...

Pyhton auto post to blogger using Google blogger API

Image
    Here we are going to see the end to end flow of auto post into blogger using python and google blogger API.     For example , if you want to show the currency value against the $ in your blog, It is hard to update an hour/day wise by manual. To solve this we can generate the python script to update the blog information through the google blogger API. We have the many use case using python automation concept. In fact, We can automate the blog writing through the below script combined with the content/webs-crawler . The web crawler link is attached here. It will useful for us to reduce the time consumption and work load.  Over view: Python code automatically post to blogger and publish the post with out human intervention. Approaches: Google oauth2 authentication Google blogger V3 API  (python client library) Python program to automate Prerequisite: Python 2.7, or 3.4 or higher Blogger account - Create the blogger account ...

Send Push Notification to iPhone via Python

Image
Notification is the big picture of current day to day applications. So today we are going to look into iPhone push notification. We already seen how to send email notification using python. The to hot topic we are going to deep is How to send push notification to iPhone's . Description     Here we are going to use the Apple push notification service. Through python code we have to send the notification to Apple service with device id . Once we send the notification to apple service, they will take care to deliver this notification to appropriate device. Pre-Requesting  We must enable APNS service. To follow this link to enable the APNS service. APNS will generate the certificate after enable the service. Sample code The below code snapshot will have the sample code for to send push notification to IOS device through the apple sandbox mode in testing purpose, 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 ...