Face detection code doesnt work - face-detection

I am currently trying to find the face in a particular image.I am following
this website :
http://www.cognotics.com/opencv/servo_2007_series/part_2/index.html.
I am following the code in this page.But i dont seem to see the option/part
of the code to include my image[ am i supposed to change the argv[1] part in the code to my own image inorder to read my image]
Can someone guide me?
Or is there any better face detection code available?
Thanks

You are supposed to pass your picture as a command line argument.

Related

Vscode is changing the code I wrote after saving the file, why?

[enter image description here](https://i.stack.imgur.com/lON9e.png)
I'm writing code for a task in a react course and after the file is saved it simply changes what I wrote and a bunch of errors appear and o I don't know why. The first pic is what I wrote, and the second one what happened after I saved the file. Can someone tell me why this is happening?
This never happened to any other code I wrote before.
Your VS Code settings are probably set to run a linter (ESLint maybe?) when you save your file. You can check your settings in the VS Code workspace settings: https://code.visualstudio.com/docs/getstarted/settings. If you hover over the red squiggly lines it will hint at the errors in your code.
It's been awhile since I've worked in React, but I think you might need to wrap your return in a string literal (backticks: ``). You also might want to use Typescript or JSX with React.
You can also post a sample on Stackblitz https://stackblitz.com/ if you want more help.

How to save codes on VS Code Mac?

I am using VS Code on a Mac to write ReactJS, however I find that I could not save my code. If I use command and s to save, then the JSX will be a mess, just like shown in the picture:
enter image description here
So how could I solve it? Thank you
I think your code is being saved, but that your code formatting is messing-up your code.
Hit the following combination : Shift+Command+P
This will open a menu on top. Inside that menu type Format Document With..., and select it. It will allow you to format your code with a different auto-format tool. Choose the one that is appropriate for your code i.e. Prettier.

why is hotkeys.trigger not working in a mac?

I am using this command in protractor to undo the text inserted in a certain element. However, it is not working because the text is not undone. Why?
The command used is:
hotkeys.trigger('mod+z',{targetElement: $(properties.homePage.editableText)});
Thanks in advance.
I think you should try protractor-hotkeys package here, As it will help to execute same code on different os. Let me know if you need any sample for this.
also you can refer Question

Can we use gauge/gage in Ionic ? (Cordova)

This is my first post here, so I'm sorry if I'm not in the good section.
My "simple" question is, can we add a gage/gauge (I don't now the exact english spelling), in a Ionic project ?
A thing like that:
https://www.youtube.com/watch?v=w2qrYL0Le24
Or an other exemple:
http://crisbeto.github.io/angular-svg-round-progressbar/
I already tried to insert gauge like that in my project but the gauge never appears, so please, can you help me ?
(The goal is to show to an user a speed for exemple or the batterie life of his smartphone, any importance, juste a jauge who can be incremented or decremented)
Can you explain me please how it works, for example via a Codepen or anything else. I had already tried to search response but I solve anything on that.
I'm french and I am sorry for my language, but thanks in advance for you'r help !
Thanks.
I was able to get this to work:
https://github.com/frapontillo/angular-gage
You must also have the JustGage library and Raphael. Take a look at the example to see it in action. I was able to even make it work in the http://creator.ionic.io app by adding the scripts of angular-gage, JustGage and Raphael (just add a js and paste in the scripts).

How to get more info about a specific attribute?

I guess this is a stupid question, so I apologize in advance but I couldn't find the answer anywhere and I guess I didn't even really know how to search for an answer.
How do I find out more about an attribute (not even sure if that's the right word)? For example, if I do:
listAttr bifrostShape1
then I get a long list of ... attributes? .. one of them is called "particleChannel". I want to know more about "particleChannel" so I tried:
listAttr "bifrostShape1.particleChannel"
got nothing basically - returned: "particleChannel" , so I tried:
getAttr "bifrostShape1.particleChannel"
and I got result: "position"...
this is actually what I think I'm looking for and I want to know more about this, what is this "position"?
searching for "particleChannel" in the reference and online gave me nothing, and trying "listAttr and getAttr of "bifrostShape1.particleChannel.position" gave me an error..
What I'm actually trying to achieve is to get attributes of the particles in a bifrost liquid... but my question is actually: How do I find out more about something when I stumble over it like this? What is the way to find out more about a command or attribute?
This is my favorite way to learn so I really hope that there's a good way to do it in maya.
See this: attributeQuery
You can do a lot of queries about an attribute, see docs in the link.

Resources