Skip to main content

Posts

Image Identify using machine learning in Python.

#pip install imageai #pip install Tensorflow #pip install keras from  imageai.Prediction  import  ImagePrediction import  os from  keras.models  import  load_model Givenimage= "picc.jpg" execution_path=os.getcwd() #print(execution_path) prediction = ImagePrediction() prediction.setModelTypeAsSqueezeNet() prediction.setModelPath(os.path.join(execution_path,  "squeezenet_weights_tf_dim_ordering_tf_kernels.h5" )) prediction.loadModel() predictions, probabilities = prediction.predictImage(os.path.join(execution_path, Givenimage), result_count= 3  ) for  eachPrediction, eachProbability  in   zip (predictions, probabilities):      print (eachPrediction ,  " : "  , eachProbability)   Result: WARNING:tensorflow:11 out of the last 11 calls to <function Model.make_predict_function.<locals>.predict_function at 0x7f941e211598> tr...

Read The Hacker News in efficient way using Python Programming.

import  requests from  bs4  import  BeautifulSoup  import  pprint url= 'https://news.ycombinator.com/' url2= 'https://news.ycombinator.com/news?p=2' res=requests.get(url) res2=requests.get(url2) soup=BeautifulSoup(res.text, 'html.parser' ) soup2=BeautifulSoup(res2.text, 'html.parser' ) links=soup.select( '.storylink' ) subtext=soup.select( '.subtext' ) links2=soup2.select( '.storylink' ) subtext2=soup2.select( '.subtext' ) def   sorting_votes ( hnlist ):    return   sorted (hnlist,key= lambda  k:k[ 'votes' ],reverse= True ) megalinks=links + links2 megasubtext=subtext+subtext2 def   custom_hn ( links , subtext ):   hn=[]    for  idx,item  in   enumerate (links):     title=links[idx].getText()     href=links[idx].get( 'href' , None )     vote=subtext[idx].select( '.score' )           if...

Bamboo chair using cad.

Make a Translator using python?

CODE : pip install translate create a new script file eg. english in the same directory. from translate import Translator translator=Translator( to_lang = "hi" ) with open ( './english.txt' , 'r' ) as file2: text=file2.read() translation=translator.translate(text) print(translation) or another way  jj= str ( input ( 'enter th english' )) from translate import Translator translator=Translator( to_lang = "hi" ) with open ( './english.txt' , 'w' ) as file2: file2.write( f'-- { jj } ' ) with open ( './english.txt' , 'r' ) as file2: text = file2.read() translation=translator.translate(text) print (translation) DEMO:

Join Telegram group Link of qrioxity!

                                                                       join    TELEGRAM

How to control Google chrome jumping Dinosaur game by using Arduino?

Equipment; 1) An Arduino Uno board 2) A Photo resistive sensor(LDR) [analoge or digital] 3) Jumper wires. 4) A Servo motor 9g. 5) Servo motors attachments. 6) Breadboard. How it works; LDR is attached on the screen by which it can read the difference between the black spot(Cactus in the game) and bright spot(no obstacle). For identifying the black spots precisely we have a little bit set the sensitivity of the LDR sensor and brightness of the screen accordingly. This LDR data take as a digital input and control the servo motor as a digital output. Arduino Programming; #include <Servo.h>   Servo myservo;  // create servo object to control a servo // twelve servo objects can be created on most boards   int pos = 0; // variable to store the servo position const  int ldr=7;  const int mot=9;  //--Serial.begin(9600);  void setup() {  myservo.attach(9); // attaches the servo on pin 9 to the servo obj...

Views of Pallithura Beach, Trivandrum, Kerala

These are some views of Pallithura Beach in Kerala. This beach is not so much famous so there is less crowd as you can see in the pictures. But the beach was great.

why viscous fluids is run out with the solid surface or stick on the surface when inclined the glasses?

Unofficial answers are also welcome. Let's leave your discussion on comment section.

Separate negative and positive value from the array using structure function in LabVIEW

Find an Element of a particular position of 2D array in Lab VIEW

4. Application of Structures function For the 2D array as shown, do the followings without using array functions: a) Get the array size b) Extract an element (i,j) c) Extract a row i d) Extract a column j #indexing is off for both the loop # selecting Last Value

Reverse an array using Structure loop in LabVIEW

5. Reverse Array Reverse the input array given below using structures function

Use of formula loop plot of graph y=sin(x)/x and y=sin(x^2)/x in LabVIEW

1. Formula loop Using formula loop compute y for the following two functions: 𝑦1 = sin(x)/x and 𝑦2 = sin(x2)/x where x varies from 0 to 10 in step of 0.05. Plot 𝑦1 & 𝑦2 vs. x in a single XY graph. Use For Loop and Formula loop for this problem.

Find Factorial of a number using for loop in LabVIEW

 #After 16 factorial the value will become negative, due to having insufficient digit storage. 

Projectile motion using LabVIEW

A projectile is projected with a velocity of V (in m/s) and at an angle  (in degree) to the horizontal. Build a VI to compute (i) Maximum height reached (in meters), (ii) Time of flight (in seconds) and (iii) Range of the projectile (in meters).

How to make dice game by using LabVIEW?

8. Dice Game (Exercise) In a board game a pair of dice (one is 6 sided and the other is 12 sided) is rolled. You win when there is a matching number, or the sum of the numbers rolled is equal to 18. In this problem we would like to build a VI that will do the following: i) Rolls the pair of dice every 100ms and displays the numbers rolled ii) A digital indicator displays the number of times dice rolled iii) An LED glows when you win iv) A digital indicator displays the number of wins v) Program stops after exactly100 rolls.

How to find diagonal element by structure function using LabVIEW?

#indexing is off for while loop #indexing is on for For loop

IIT kanpur,Aerospace (Aerodynamics) Direct Ph,D interview experiences.

INTERVIEW EXPERIENCE IN AEROSPACE(aerodynamics) AT IIT KANPUR FOR DIRECT PhD  My self *********, I have completed my B.Tech (from Mechanical Engineering) in 2018. I wrote GATE 2018 as well as 2019 and got a decent score. B.tech CGPA was moderate. for PhD programme your GATE score and CGPA not really matter a lot it is just a screening and cutoff purpose, but the thing is you have to really passionate about what you are going to do, you need to really strong in your basic engineering and math, Especially in-depth knowledge of your subject of the domain(not necessary bounded by GATE syllabus)  Domains are broadly classified as AERODYNAMICS     Fluid mechanics, Aerofoil theory, Basic of Turbulences, Heat Transfer Flow separation and    Engineering Maths, FLIGHT MECHANICS AND CONTROL   Mechanics, Fluid mechanics, Aerofoil theory, some control system, Engineering Maths. STRUCTURE AND AEROELASTICITY   Strength of materials, Theory ...

Views of Rann of Kachch, Gujarat

Do you know why sin(X)=X at X limit tense to Zero or when X becomes very small?

Here I would like to  answer this question graphically,  this is y=sin(X) graph  Here blue line indicates y=x curve          Red curve Indicates y= sin(x) by comparing both curves in one frame we can clearly understand the value of y-axis will become equal for a certain range. Beyond that, the value far differs as we can see from the graph.  That is why we can wright sin(x)=x @ x tends to zero. conclusion  hence prove lim sinx/x=1 @x tends to 0