<?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: Takuma Otake</title>
    <description>The latest articles on DEV Community by Takuma Otake (@bigbamboojp).</description>
    <link>https://dev.to/bigbamboojp</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F99mvlsfu5tfj9m7ku25d.png</url>
      <title>DEV Community: Takuma Otake</title>
      <link>https://dev.to/bigbamboojp</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bigbamboojp"/>
    <language>en</language>
    <item>
      <title>[Python] Extracting characters inside quotes and manipulating strings outside of quotes</title>
      <dc:creator>Takuma Otake</dc:creator>
      <pubDate>Tue, 01 Mar 2022 11:55:00 +0000</pubDate>
      <link>https://dev.to/bigbamboojp/python-extracting-characters-inside-quotes-and-manipulating-strings-outside-of-quotes-3f85</link>
      <guid>https://dev.to/bigbamboojp/python-extracting-characters-inside-quotes-and-manipulating-strings-outside-of-quotes-3f85</guid>
      <description>&lt;p&gt;Hello everybody.&lt;br&gt;
This is an English translation and modification of the article (&lt;a href="https://bigbamboo-jp.hatenablog.com/entry/sstr-introduction" rel="noopener noreferrer"&gt;link&lt;/a&gt;) posted in Japanese in advance.&lt;/p&gt;

&lt;p&gt;When I was programming in Python recently, I had a hard time finding a library for string manipulation without parentheses, so I decided to publish the code I wrote for this purpose in a library.&lt;br&gt;
I'm not sure if there is enough demand for this library, so I'm holding off on releasing it on PyPI.&lt;/p&gt;
&lt;h2&gt;
  
  
  Release site
&lt;/h2&gt;

&lt;p&gt;Project name: Splitable str&lt;br&gt;
Module name: sstr&lt;br&gt;
&lt;a href="https://github.com/bigbamboo-jp/splitable-str" rel="noopener noreferrer"&gt;https://github.com/bigbamboo-jp/splitable-str&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  How to use
&lt;/h2&gt;

&lt;p&gt;Example 1: Extract the words in square brackets in a sentence&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from sstr import sstr

text = "Is this an [apple]? No, it's an [orange]. Then give me a [grape]."
text_ = sstr(text)
surrounded_words = []
for part in text_.divide_and_classify(enclosure=[['[', ']']]):
    if part[1] == True:
        word = part[0]
        surrounded_words.append(word[1:-1])
print(surrounded_words)  # ['apple', 'orange', 'grape']

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example 2: Count the number of "water" in a sentence (exclude the part in double quotes from the search)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from sstr import sstr

text = 'One person said that "water is infinite", but water is finite by any means.'
text_ = sstr(text)
quantity = text_.scount('water', enclosure='"')
print(quantity)  # 1

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can check other usage examples in the &lt;a href="https://github.com/bigbamboo-jp/splitable-str/blob/main/README.md" rel="noopener noreferrer"&gt;README&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Copy VEGAS Pro presets, etc. to another PC</title>
      <dc:creator>Takuma Otake</dc:creator>
      <pubDate>Sat, 29 Jan 2022 15:37:11 +0000</pubDate>
      <link>https://dev.to/bigbamboojp/copy-vegas-pro-presets-etc-to-another-pc-3hh0</link>
      <guid>https://dev.to/bigbamboojp/copy-vegas-pro-presets-etc-to-another-pc-3hh0</guid>
      <description>&lt;p&gt;Hello everybody.&lt;br&gt;
This is an English translation and modification of the article (&lt;a href="https://bigbamboo-jp.hatenablog.com/entry/vpcbt-introduction" rel="noopener noreferrer"&gt;link&lt;/a&gt;) posted in Japanese in advance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;I recently changed my main PC.&lt;br&gt;
I install the software that I always use on the new PC, but some of them need to be migrated.&lt;br&gt;
Chrome and Microsoft Office are linked to the account, so they do it automatically, but for software that does not, you have to export and import the settings yourself.&lt;br&gt;
When I was doing such work leisurely while fighting drowsiness, I realized that it was not straightforward to migrate the settings of the video editing software VEGAS Pro.&lt;br&gt;
Normally, software for creators such as video editing software has a menu for migrating settings, but only VEGAS Pro did not find such a menu.&lt;br&gt;
I had no choice but to ask Google Sensei and he told me to download "Preset Manager 2.0".&lt;br&gt;
However, the software has already been officially distributed, and I had to download it from an unofficial archive site.&lt;br&gt;
At that time, I was already sick, so I just checked for viruses and installed the software from that installer.&lt;br&gt;
&lt;strong&gt;* Good boys should not download programs from suspicious sites.&lt;/strong&gt;&lt;br&gt;
And I used that software to migrate the data, but the only migrated setting was the event FX filter his package.&lt;br&gt;
However, there is no other tool that could be used, so I had no choice but to spend about an hour manually migrating the settings.&lt;br&gt;
This time, the migration was completed, but I don't want to struggle with the same thing a few years later, so I decided to put together the work required to migrate the settings in the program.&lt;/p&gt;

&lt;h2&gt;
  
  
  Main subject
&lt;/h2&gt;

&lt;p&gt;So, this time, I would like to introduce you to &lt;a href="https://github.com/bigbamboo-jp/vegas-pro-cbt" rel="noopener noreferrer"&gt;VEGAS Pro Configuration Backup Tools&lt;/a&gt;.&lt;br&gt;
With this free software, you can back up and restore the effect settings of VEGAS Pro.&lt;br&gt;
The backup targets are "Filter package of each event FX", "Media generator preset", and "Rendering template".&lt;/p&gt;

&lt;h3&gt;
  
  
  How to use
&lt;/h3&gt;

&lt;p&gt;* You must agree to &lt;a href="https://github.com/bigbamboo-jp/vegas-pro-cbt/blob/main/LICENSE" rel="noopener noreferrer"&gt;the license (MIT License)&lt;/a&gt; to use the program.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Download the ZIP file containing the latest program&lt;br&gt;
Download the latest release of "Source code (zip)" on &lt;a href="https://github.com/bigbamboo-jp/vegas-pro-cbt/releases" rel="noopener noreferrer"&gt;this page&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Extract the ZIP file&lt;br&gt;
Right-click the downloaded ZIP file and click "Extract All" to display the extraction wizard.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Find the folder of the item you want to back up from the extracted folders&lt;/p&gt;
&lt;h4&gt;
  
  
  Reference
&lt;/h4&gt;

&lt;p&gt;Filter package of each event FX → Event FX&lt;br&gt;
Media generator preset → OFX Presets&lt;br&gt;
Rendering template → Render Templates&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Execute "save.bat" in the folder of the item you want to back up (operate at the migration source)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Execute the backup file (operate at the migration destination)&lt;br&gt;
* It is necessary to copy the backup file to the migration destination using a USB memory or the like.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Important point
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Not all settings will be migrated (eg event pan / crop presets will not be migrated).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use this program at your own risk.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>How to "Copy" text contained in PC screens and image files</title>
      <dc:creator>Takuma Otake</dc:creator>
      <pubDate>Sun, 26 Dec 2021 18:15:34 +0000</pubDate>
      <link>https://dev.to/bigbamboojp/how-to-copy-the-text-that-appears-on-your-computer-screen-or-image-file-31ib</link>
      <guid>https://dev.to/bigbamboojp/how-to-copy-the-text-that-appears-on-your-computer-screen-or-image-file-31ib</guid>
      <description>&lt;p&gt;Hello everybody.&lt;br&gt;
This is an English translation and modification of the article (&lt;a href="https://bigbamboo-jp.hatenablog.com/entry/cos-introduction-1" rel="noopener noreferrer"&gt;link&lt;/a&gt;) posted in Japanese in advance.&lt;br&gt;
* Because this is the first DEV post, there may be various things that are not good ... I would be grateful if you could let me know in the discussion.&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Sometimes when using a PC, this happens.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1hbd6lz9l0anu86ty6m0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1hbd6lz9l0anu86ty6m0.png" alt="A message box that says something incomprehensible" width="800" height="491"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h6&gt;
  
  
  (Image: EmEditor message dialog)
&lt;/h6&gt;

&lt;p&gt;&lt;strong&gt;"I don't know what it says..."&lt;/strong&gt;&lt;br&gt;
At times like this, most people try to understand the meaning using a translation website. But this is a message dialog.&lt;br&gt;
&lt;strong&gt;After dragging to select a range, right-click and click "Copy"...&lt;/strong&gt;&lt;br&gt;
You can't do that.&lt;br&gt;
So, normally, you have to manually enter it on the translation site, but when it comes to a somewhat long text, it can't be helped anymore. In that case, human beings are creatures who want to make things easier, so you think, "Is there a way to read the characters on the screen?"&lt;br&gt;
This time, I would like to introduce software that makes it easy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Free software: Cloud OCR Snip
&lt;/h2&gt;

&lt;p&gt;The introduction has become long, but this time I will introduce a free software called "Cloud OCR Snip".&lt;br&gt;
The method of reading the characters on the screen is introduced in other blogs, but most of them have problems such as &lt;strong&gt;many steps&lt;/strong&gt; and &lt;strong&gt;poor recognition accuracy&lt;/strong&gt;.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flxuomfpzs1v6unghgpqq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flxuomfpzs1v6unghgpqq.png" alt="Character recognition results with many misrecognitions" width="800" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h6&gt;
  
  
  (Image: The result of character recognition on the language selection page of Wikipedia with GT Text)
&lt;/h6&gt;

&lt;p&gt;In the above results, the texts in Latin alphabet languages are well recognized, but the other texts are broken beyond imagination.&lt;br&gt;
In general, all software that returns the above results use the local character recognition engine for character recognition. Certainly, if it is a simple sentence, it may be read properly, but if it is a slightly complicated sentence, the accuracy will drop at once.&lt;br&gt;
Let's try to recognize the same sentence with Cloud OCR Snip this time.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdiv41928b6ycrotf2dyj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdiv41928b6ycrotf2dyj.png" alt="Character recognition result with almost no misrecognition" width="800" height="315"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h6&gt;
  
  
  (Image: The result of character recognition on the language selection page of Wikipedia with Cloud OCR Snip)
&lt;/h6&gt;

&lt;p&gt;This one reads so well that I can't find any mistakes.&lt;br&gt;
The reason for the difference so far is that the software like the one in the previous example processes the data locally, while this software uses the cloud service to process the data.&lt;br&gt;
Each cloud service requires a computer to do a lot of learning work to improve recognition accuracy, so it performs far better than when it is done locally.&lt;br&gt;
Since this kind of character recognition is a fairly advanced technology, most services charge for it, but the Google Cloud Vision API used in the example above is free up to 1000 times per month (beyond 1000 times, it costs US$1.5 for every 1000 times).&lt;/p&gt;

&lt;h6&gt;
  
  
  * The above information is as of December 2021. Please check &lt;a href="https://cloud.google.com/vision/pricing" rel="noopener noreferrer"&gt;here&lt;/a&gt; for the latest information.
&lt;/h6&gt;

&lt;p&gt;You can also start character recognition by clicking the icon on the right side of the taskbar or pressing a hotkey, so you can easily use it even when you want to check a little.&lt;br&gt;
In summary, Cloud OCR Snip and Google Cloud Vision API make it free and easy to use very accurate character recognition (up to 1000 times a month).&lt;/p&gt;

&lt;h2&gt;
  
  
  Get ready to use
&lt;/h2&gt;

&lt;p&gt;First of all, regarding installation, since this is a developer community site, I will omit the details. Download the installer from &lt;a href="https://github.com/bigbamboo-jp/cloud-ocr-snip/releases" rel="noopener noreferrer"&gt;here&lt;/a&gt; and run it (latest version recommended).&lt;br&gt;
Next is the initial setting, but basically you can finish it by following the instructions on the screen. However, setting up a cloud service is a bit complicated, so I'd like to briefly explain it here.&lt;br&gt;
・When using Google Cloud Vision API&lt;br&gt;
If you search the web with "How to Create Google API JSON Credential" etc., you will reach the support page of paid software with the same function. See it.&lt;br&gt;
* To use the service, you need to set the payment method (credit card and PayPal can be used).&lt;/p&gt;

&lt;h2&gt;
  
  
  Try using
&lt;/h2&gt;

&lt;p&gt;If you left-click the icon in the task tray or press the hotkey (default: Alt key, Shift key, S key at the same time) to specify the area to read, the text on the screen can be recognized and copied.&lt;br&gt;
Also, right-click the icon in the task tray and left-click "Read text from image file" in the displayed menu to display the image file selection dialog. Then select an image and you will be able to recognize and copy the text in the image.&lt;br&gt;
In addition, right-click the icon in the task tray and left-click "Read text from clipboard image" in the displayed menu to recognize the text in the image on the clipboard and copy it.&lt;br&gt;
* If there is no image available on the clipboard, the operation will be blocked.&lt;br&gt;
* This function can also be called by hotkeys (default: Windows key, Shift key, D key at the same time).&lt;/p&gt;

&lt;h3&gt;
  
  
  Use in combination
&lt;/h3&gt;

&lt;p&gt;If you want both the result of character recognition and the scanned image, first take a screenshot with Snip &amp;amp; Sketch (hotkey: Windows key, Shift key, S key simultaneously), and then cloud OCR the image. Load with Snip.&lt;br&gt;
* If you take a screenshot using the hotkey in Snip &amp;amp; Sketch, it will be automatically copied to the clipboard. You can also save the screenshot to a file by clicking the notification that appears when the shot is complete.&lt;/p&gt;

</description>
      <category>cloud</category>
      <category>googlecloud</category>
    </item>
  </channel>
</rss>
