<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Yogi khoirul Anwar</title>
    <description>The latest articles on DEV Community by Yogi khoirul Anwar (@yogipratama1).</description>
    <link>https://dev.to/yogipratama1</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F894837%2F02b27218-0b43-42b7-bec4-af2abd17b533.jpeg</url>
      <title>DEV Community: Yogi khoirul Anwar</title>
      <link>https://dev.to/yogipratama1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yogipratama1"/>
    <language>en</language>
    <item>
      <title>Access ip camera android and display to our monitor using java</title>
      <dc:creator>Yogi khoirul Anwar</dc:creator>
      <pubDate>Thu, 18 Aug 2022 04:16:00 +0000</pubDate>
      <link>https://dev.to/hash-id/access-ip-camera-android-and-display-to-our-monitor-using-java-hd3</link>
      <guid>https://dev.to/hash-id/access-ip-camera-android-and-display-to-our-monitor-using-java-hd3</guid>
      <description>&lt;p&gt;Hi developers, today we will make a cctv monitoring using java language. Did you know how java can acces ip of cctv camera? It’s sound so attractive, right? &lt;br&gt;
Okay, in this article. We will realize how to access ip of cctv using java language 😁 &lt;br&gt;
First time, we need to prepare some tools to make it perfect. There are :&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Text editor. The text editor we will using netbeans 8.1 IDE.&lt;/li&gt;
&lt;li&gt;Javacv library. You can download opencv library on &lt;a href="https://github.com/junaid67/ip-camera-java-cv-libraries.git"&gt;https://github.com/junaid67/ip-camera-java-cv-libraries.git&lt;/a&gt; . And then you have to extract download folder in your pc&lt;/li&gt;
&lt;li&gt;Ip webcam application to get ip of camera. You can get and install it in playstore .&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Okay, let’s start it.&lt;br&gt;
We must make a project on netbeans. To make a new project you can use &lt;code&gt;ctrl+shif+n&lt;/code&gt; with your keyboard . Then you will see the project options, select the java application as shown below. After that click next.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5PHu4uiZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8vvwb1sb1luqerrz18bc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5PHu4uiZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8vvwb1sb1luqerrz18bc.png" alt="Image description" width="614" height="427"&gt;&lt;/a&gt;&lt;br&gt;
After that give project name with &lt;code&gt;konekcctv&lt;/code&gt;, then &lt;code&gt;click finish button&lt;/code&gt; to make a new project. Please see this image below.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Gijh-2cj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ny4fobr3lquny7mxy3nd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Gijh-2cj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ny4fobr3lquny7mxy3nd.png" alt="Image description" width="656" height="456"&gt;&lt;/a&gt;&lt;br&gt;
When finished, a new workspace or new project will shown as image below.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8SFUXPK3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jyfrunjc17yofhmtgedn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8SFUXPK3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jyfrunjc17yofhmtgedn.png" alt="Image description" width="880" height="457"&gt;&lt;/a&gt;&lt;br&gt;
In the &lt;code&gt;konekcctv.java&lt;/code&gt; source code file, there is a konekcctv class and a main class that is used to execute the program code that will be created.&lt;br&gt;
After that, we need to add the javacv library that we have downloaded in the project folder. &lt;br&gt;
First, right-click on the libraries folder, then select add jar/folder and choose all of extracted javacv library in your pc.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bTFFkk07--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lm22ym6b0s1g9kbv6gaq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bTFFkk07--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lm22ym6b0s1g9kbv6gaq.png" alt="Image description" width="386" height="383"&gt;&lt;/a&gt;&lt;br&gt;
After the libraries are imported, all javacv libraries will appear in the libraries folder. See the image below.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Hmxk4KWi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9mkhtl5aff2iojkk68ty.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Hmxk4KWi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9mkhtl5aff2iojkk68ty.png" alt="Image description" width="373" height="486"&gt;&lt;/a&gt;&lt;br&gt;
After everything is done, the next step is to start coding.&lt;br&gt;
First we need to import the javacv library which was added in the libraries folder earlier. We import outside the konekcctv class,&lt;br&gt;
&lt;code&gt;Import com.googlecode.javacv.canvasframe;&lt;br&gt;
Import com.googlecode.javacv.opencvframegrabber;&lt;br&gt;
Import com.googlecode.javacv.cpp.opencv_core.iplimage;&lt;/code&gt;&lt;br&gt;
Please see as shown below,&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Ax9_BFyP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/awrhsmtrpyjcl8jxvne3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Ax9_BFyP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/awrhsmtrpyjcl8jxvne3.png" alt="Image description" width="700" height="295"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Import function &lt;code&gt;com.googlecode.javacv.canvasframe;&lt;/code&gt; is to display the capture frame on our pc screen.&lt;/li&gt;
&lt;li&gt;Then import &lt;code&gt;com.googlecode.javacv.opencvframegrabber;&lt;/code&gt; we use to retrieve where the video is. Video can be a ready-made video or video from an ip camera.&lt;/li&gt;
&lt;li&gt;And import &lt;code&gt;com.googlecode.javacv.cpp.opencv_core.iplimage;&lt;/code&gt; is to get the ip address of the camera or cctv used.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After finished of importing,&lt;br&gt;
We will make a function to connect ip camera and display of video in camera to our pc as shown below,&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public static void main(String[] args) throws FrameGrabber.Exception {
    OpenCVFrameGrabber frameGrabber = new OpenCVFrameGrabber("http://192.168.87.96:8080/video?dummy=param.mjpg");
    frameGrabber.setFormat("mjpeg");
    frameGrabber.start();
    IplImage iPimg = frameGrabber.grab();
    CanvasFrame canvasFrame = new CanvasFrame("Camera");
    canvasFrame.setCanvasSize(iPimg.width(), iPimg.height());

    while (canvasFrame.isVisible() &amp;amp;&amp;amp; (iPimg = frameGrabber.grab()) != null) {
        canvasFrame.showImage(iPimg);
    }
    frameGrabber.stop();
    canvasFrame.dispose();
    System.exit(0);
}`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bChMDwUp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8k92d0b2kd01kzxloa0y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bChMDwUp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8k92d0b2kd01kzxloa0y.png" alt="Image description" width="880" height="408"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The first thing to do is to create a framegrabber variable to get the video file by calling the camera's ip address using &lt;br&gt;
&lt;code&gt;opencvframegrabber.&lt;br&gt;
opencvframegrabber framegrabber = new opencvframegrabber("http://192.168.0.2:8080/video?dummy=param.mjpg");&lt;/code&gt;&lt;br&gt;
&lt;code&gt;http://192.168.0.2:8080/video?dummy=param.mjpg&lt;/code&gt; is the ip camera address on the ip camera in android application. Each application has its own ip, so match the ip camera with the ip camera on your own device.&lt;/p&gt;

&lt;p&gt;Then we set the format of the video to be displayed on our pc with the code &lt;code&gt;framegrabber.setformat("mjpeg");&lt;/code&gt;&lt;br&gt;
and the frame grabber is executed with the code &lt;code&gt;framegrabber.start();&lt;/code&gt;&lt;br&gt;
Then to return the ip image or ip camera we create a variable &lt;code&gt;ipimg = framegrabber.grab();&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Framegrabber.grab()&lt;/code&gt; is used to return the ip of the framegrabber. &lt;/p&gt;

&lt;p&gt;Then we will display the capture of the ip camera with&lt;br&gt;
&lt;code&gt;canvasframe canvasframe = new canvasframe("camera");&lt;/code&gt;&lt;br&gt;
&lt;code&gt;canvasframe.setcanvassize(ipimg.width(), ipimg.height());&lt;/code&gt;&lt;br&gt;
We need to create a canvasframe variable like the source code above. The canvasframe will be used to make the size of the camera view on our pc screen.&lt;br&gt;
And the last step is to create a function to display frames on our pc screen as follows:&lt;br&gt;
&lt;code&gt;While (canvasframe.isvisible() &amp;amp;&amp;amp; (ipimg = framegrabber.grab()) != null) {&lt;br&gt;
            canvasframe.showimage(ipimg);&lt;br&gt;
        }&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;After everything is done, we can run the file in the run project section of netbeans, or we can use the shortcut &lt;code&gt;shif+f6&lt;/code&gt; . But before running the project, the ip camera application on android needs to be turned on first. Then our android and pc need to use the same network otherwise this framegrabber will not find the ip of the camera that has been activated.&lt;/p&gt;

&lt;p&gt;This image below is the result of running application,&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bim8PjOm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xybbo7klih56emstkdwc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bim8PjOm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xybbo7klih56emstkdwc.png" alt="Image description" width="588" height="586"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Good Luck!! 😁&lt;/p&gt;

</description>
      <category>opencv</category>
      <category>java</category>
    </item>
    <item>
      <title>Sistem Yang Aman Dan Berkualitas</title>
      <dc:creator>Yogi khoirul Anwar</dc:creator>
      <pubDate>Wed, 20 Jul 2022 04:11:09 +0000</pubDate>
      <link>https://dev.to/hash-id/sistem-yang-aman-dan-berkualitas-5cf2</link>
      <guid>https://dev.to/hash-id/sistem-yang-aman-dan-berkualitas-5cf2</guid>
      <description>&lt;p&gt;Sistem adalah suatu kumpulan atau himpunan dari suatu unsur, komponen, atau variabel yang terorganisasi, saling berinteraksi, saling tergantung satu sama lain dan terpadu” Menurut Sutabri (2012:3). Sebuah sistem banyak digunakan oleh perusahaan-perusahaan di Indonesia maupun dunia mulai dari perusahaan kecil hingga perusahaan raksasa. Namun sebuah sistem yang dimiliki tiap perusahaan memiliki keamanan dan kualitas yang berbeda-beda. Hal tersebut dipengaruhi oleh dana yang dianggarkan oleh perusahaan untuk mendanai keamanan dan kualitas dari sistem mereka. Semakin tinggi dana yang dianggarkan,maka sistem akan semakin berkualitas. Namun dari segi keamanan belum tentu sebuah sistem benar-benar aman. Banyak hacker-hacker handal yang sangat&lt;br&gt;
mudahnya membajak sebuah situs yang dikenal sangat aman, seperti yang dikutip dari &lt;a href="https://www.cnnindonesia.com/nasional/20210223131459-20-609784/hendropriyonousul-tni-rekrut-remaja-ri-pembobol-situs-nasa.%E2%80%9C"&gt;&lt;/a&gt; yaitu bocah berusia 16 tahun asal Tangerang bernama Putera Adji Adhari yang sempat membobol situs keamanan NASA. Diketahui, Putera memiliki keterampilan di bidang komputerisasi secara otodidak. Ia terampil mencari kelemahan sistem dari suatu instansi, lalu menginformasikannya ke instansi terkait agar dapat memperbaikinya. &lt;/p&gt;

&lt;p&gt;Dilansir dari &lt;a href="https://antariksa.republika.co.id/posts/72049/anggaran-nasa-tahun2022-rp-354-triliun-apa-saja-programnya-"&gt;&lt;/a&gt; , DPR dan Senat Amerika Serikat telah menyelesaikan rancangan anggaran pengeluaran omnibus untuk tahun fiskal 2022. Mereka akan memberi NASA anggaran sebesar 24 miliar dan 760 juta dolar AS di bawah anggaran pemerintah. Jika dirupiahkan, anggaran Badan Antariksa Amerika itu untuk tahun ini sebesar Rp 354 triliun . &lt;/p&gt;

&lt;p&gt;Dalam berita tersebut, dapat diketahui setinggi apapun dana yang dikeluarkan untuk mengamankan sebuah sistem, tidak akan pernah ada sistem yang 100 persen aman kecuali sistem tersebut digunakan secara offline. &lt;/p&gt;

</description>
      <category>systems</category>
      <category>security</category>
    </item>
  </channel>
</rss>
