<< return to Vizycam.com

User Tools

Site Tools


wiki:object_detector_app_3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:object_detector_app_3 [2023/01/05 12:52]
vizycam
wiki:object_detector_app_3 [2023/01/05 16:48] (current)
vizycam
Line 89: Line 89:
 Object Detector will guide you through these steps, reducing the amount of time it typically takes to create a CNN.  ​ Object Detector will guide you through these steps, reducing the amount of time it typically takes to create a CNN.  ​
  
-==== Prerequisites ​for creating a custom CNN ====+==== Prerequisites ====
  
 These prerequisites are important: These prerequisites are important:
Line 287: Line 287:
 This is a new tool, and we'll continue to develop and improve it.  Help us by sending your questions, suggestions,​ and bugs to ''​[email protected]''​ or posting on the [[https://​forum.vizycam.com/​|Vizy Forum]].  ​ This is a new tool, and we'll continue to develop and improve it.  Help us by sending your questions, suggestions,​ and bugs to ''​[email protected]''​ or posting on the [[https://​forum.vizycam.com/​|Vizy Forum]].  ​
  
-===== Using your phone or camera to capture training images =====+===== Using phone or camera to capture training images =====
  
-Using your phone or camera to capture training images can be more convenient than capturing them with Vizy itself.  ​Luckily, this is straightforward -- just follow these steps:+Using phone or camera to capture training images can be more convenient than capturing them with Vizy itself.  ​It'​s ​straightforward -- just follow these steps:
  
-  - **Capture the relevant training pictures with your phone or camera**. ​ This is straightforward with the Google Photos App.  It will automatically upload any pictures that you take on your phone to your Google Photos account. ​ Similarly, you can upload photos from your camera into your Google Photos account by first downloading them into your computer and then uploading them to Google Photos through your browser.  +  - **Capture the relevant training pictures with phone or camera**. ​ This is straightforward with the [[https://​play.google.com/​store/​apps/​details?​id=com.google.android.apps.photos|Google Photos App]].  It will automatically upload any pictures that you take on your phone to your Google Photos account. ​ Similarly, you can upload photos from your camera into your Google Photos account by first downloading them into your computer and then uploading them to Google Photos through your browser.  
-  - **Create an album and copy these pictures into the album**. ​ This can be done from your phone via the Google Photos App or from your computer via a browser.  +  - **Create an album and copy these pictures into the album**. ​ This can be done from your phone via the [[https://​play.google.com/​store/​apps/​details?​id=com.google.android.apps.photos|Google Photos App]] or from your computer via a browser.  
-  - **Share the album with your [[wiki:​google_cloud_setup3#​creating-a-google-account|Vizy'​s Google account]]**. ​ Similarly, you can do this from your phone via the Google Photos ​app or from your computer via a browser. ​ From the album you can click on **share** or click on the context menu to select **share**, then type in the Gmail address of the account you wish to share the album with.  You may need to type in the complete Gmail address associated with your Vizy camera for the account to show up.+  - **Share the album with your [[wiki:​google_cloud_setup3#​creating-a-google-account|Vizy'​s Google account]]**. ​ Similarly, you can do this from your phone via the [[https://​play.google.com/​store/​apps/​details?​id=com.google.android.apps.photos|Google Photos ​App]] or from your computer via a browser. ​ From the album you can click on **share** or click on the context menu to select **share**, then type in the Gmail address of the account you wish to share the album with.  You may need to type in the complete Gmail address associated with your Vizy camera for the account to show up.
   - **Import album pictures into your Object Detector project**. ​ This will copy the images in the Google Photos album into the training set of the currently open project. ​ Start by selecting **Import photos...** from the **File** menu, then type the name of the album into the text box as shown below. ​ {{wiki:​image_1410.jpg}}   - **Import album pictures into your Object Detector project**. ​ This will copy the images in the Google Photos album into the training set of the currently open project. ​ Start by selecting **Import photos...** from the **File** menu, then type the name of the album into the text box as shown below. ​ {{wiki:​image_1410.jpg}}
  
-After clicking on **Import**, Vizy will locate the album, retrieve the images, and add them to the end of the training set, so go to the last page(s) of the training set to see the imported images. ​ Bear in mind that the album name is case-sensitive. ​ If Vizy has trouble finding the album, make sure you can see the album from the Google Photos page while logged in via your Vizy's Google account.  ​You can then [[wiki:​object_detector_app_3#​labeling}label the images]] as before. ​ Easy-peasy! ​+After clicking on **Import**, Vizy will locate the album, retrieve the images, and add them to the end of the training set.  So after it's done, go to the last page(s) of the training set to see the imported images. ​ Bear in mind that the album name is case-sensitive. ​ If Vizy has trouble finding the album, make sure you can see the album from the Google Photos page while logged in via your Vizy's Google account.  ​Once the images are imported, you can [[wiki:​object_detector_app_3#​labeling|label them]] as before. ​ Easy-peasy! ​ 
 + 
 +===== Exporting, importing, and sharing CNN projects ===== 
 + 
 +Through the powers of the Internet (and Google Drive), you can export your project and share your CNN efforts with others. ​ And they can import your project to evaluate, improve, and share it back with you and possibly others. ​ When exporting a project, all of the training set images, models, and settings are zipped up and uploaded to Google Drive. ​ (Note, the detection images are not included when you export a project.) 
 + 
 +==== Exporting a project ==== 
 + 
 +From the **File** menu select **Export project...** to bring up the export dialog. ​ Click the **Export** button. ​ Vizy will then get busy zipping up the project and copying it to Google Drive. ​ When it's finished it will present you will a **Copy share key** button.  
 + 
 +{{wiki:​image_1412.jpg}} 
 + 
 +Pressing this will copy the "share key" to your clipboard. ​ The share key is just a jumble of text.  You can save the key to a text file, email it, etc.  With this key, someone can import your project.  
 + 
 +==== Importing a project ==== 
 + 
 +From the **File** menu select **Import project...** to bring up the import dialog. ​ Copy the share key into the text box and click the **Import** button. ​ Vizy will then get busy downloading the zip file, unzipping, and installing the project. ​ Easy! 
 + 
 +{{wiki:​image_1413.jpg}}
  
-===== Importing, exporting, and sharing CNN projects ===== 
  
-  
 ===== Customized handlers ===== ===== Customized handlers =====
  
-For more advanced users who want to add their own custom features, the Object Detection application has handler code for various events and for text messages. ​ The handler code is in ''/​home/​pi/​vizy/​apps/​object_detector/​handlers.py''​. ​ Note, you can bring up the handler code easily from [[wiki:​vizy_editor#​Text editor|Vizy'​s built-in text editor]] by clicking on the ☰ button in the text editor and selecting ''​handlers.py''​. ​ Note also, once you change ''​handlers.py''​ you can simply click reload/​refresh on your browser and Vizy will automatically restart the application and your code changes will take effect.+For more advanced users who want to add their own custom features, the Object Detection application has handler code for various events and for text messages.  ​For example, Vizy could click a relay, turn on a light, trigger a sprinkler valve, etc. if it sees a particular object. ​The handler code is in ''/​home/​pi/​vizy/​apps/​object_detector/​handlers.py''​. ​ Note, you can bring up the handler code easily from [[wiki:​vizy_editor#​Text editor|Vizy'​s built-in text editor]] by clicking on the ☰ button in the text editor and selecting ''​handlers.py''​. ​ Note also, once you change ''​handlers.py''​ you can simply click reload/​refresh on your browser and Vizy will automatically restart the application and your code changes will take effect.
  
 {{wiki:​image_1213.jpg}} {{wiki:​image_1213.jpg}}
wiki/object_detector_app_3.1672944750.txt.gz · Last modified: 2023/01/05 12:52 by vizycam