zwiekszenie dokladnosci

This commit is contained in:
shaaqu 2020-05-20 10:48:46 +02:00
parent 4b8c560be9
commit ea4f66531d
5 changed files with 20 additions and 10 deletions

View File

@ -19,14 +19,12 @@
<select /> <select />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="828778c9-9d97-422f-a727-18ddbd059b85" name="Default Changelist" comment="fun created"> <list default="true" id="828778c9-9d97-422f-a727-18ddbd059b85" name="Default Changelist" comment="recognizing but training must be improved">
<change afterPath="$PROJECT_DIR$/coder/rocognizer.py" afterDir="false" /> <change afterPath="$PROJECT_DIR$/coder/test5.jpg" afterDir="false" />
<change afterPath="$PROJECT_DIR$/coder/test1.jpg" afterDir="false" /> <change afterPath="$PROJECT_DIR$/coder/test5.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/coder/test3.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/coder/test9.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/coder/image.py" beforeDir="false" afterPath="$PROJECT_DIR$/coder/image.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/coder/image.py" beforeDir="false" afterPath="$PROJECT_DIR$/coder/image.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/coder/train.py" beforeDir="false" afterPath="$PROJECT_DIR$/coder/train_nn.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/coder/test3.png" beforeDir="false" afterPath="$PROJECT_DIR$/coder/test3.png" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -250,7 +248,7 @@
<workItem from="1589814601057" duration="4208000" /> <workItem from="1589814601057" duration="4208000" />
<workItem from="1589844260514" duration="777000" /> <workItem from="1589844260514" duration="777000" />
<workItem from="1589845066174" duration="177000" /> <workItem from="1589845066174" duration="177000" />
<workItem from="1589888090669" duration="19744000" /> <workItem from="1589888090669" duration="20680000" />
</task> </task>
<task id="LOCAL-00001" summary="create Shelf"> <task id="LOCAL-00001" summary="create Shelf">
<created>1589815443652</created> <created>1589815443652</created>
@ -294,7 +292,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1589952979012</updated> <updated>1589952979012</updated>
</task> </task>
<option name="localTasksCounter" value="7" /> <task id="LOCAL-00007" summary="recognizing but training must be improved">
<created>1589955873104</created>
<option name="number" value="00007" />
<option name="presentableId" value="LOCAL-00007" />
<option name="project" value="LOCAL" />
<updated>1589955873104</updated>
</task>
<option name="localTasksCounter" value="8" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
@ -320,7 +325,8 @@
<MESSAGE value="train.py" /> <MESSAGE value="train.py" />
<MESSAGE value="img to 1d array" /> <MESSAGE value="img to 1d array" />
<MESSAGE value="fun created" /> <MESSAGE value="fun created" />
<option name="LAST_COMMIT_MESSAGE" value="fun created" /> <MESSAGE value="recognizing but training must be improved" />
<option name="LAST_COMMIT_MESSAGE" value="recognizing but training must be improved" />
</component> </component>
<component name="WindowStateProjectService"> <component name="WindowStateProjectService">
<state x="115" y="162" key="#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog" timestamp="1589923610328"> <state x="115" y="162" key="#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog" timestamp="1589923610328">
@ -347,6 +353,10 @@
<screen x="0" y="0" width="1536" height="824" /> <screen x="0" y="0" width="1536" height="824" />
</state> </state>
<state x="277" y="57" key="SettingsEditor/0.0.1536.824@0.0.1536.824" timestamp="1589845139218" /> <state x="277" y="57" key="SettingsEditor/0.0.1536.824@0.0.1536.824" timestamp="1589845139218" />
<state x="361" y="145" key="Vcs.Push.Dialog.v2" timestamp="1589955889829">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state x="361" y="145" key="Vcs.Push.Dialog.v2/0.0.1536.824@0.0.1536.824" timestamp="1589955889829" />
<state x="54" y="145" width="672" height="678" key="search.everywhere.popup" timestamp="1589918982407"> <state x="54" y="145" width="672" height="678" key="search.everywhere.popup" timestamp="1589918982407">
<screen x="0" y="0" width="1536" height="824" /> <screen x="0" y="0" width="1536" height="824" />
</state> </state>

View File

@ -47,7 +47,7 @@ rows, cols = img.shape
for i in range(rows): for i in range(rows):
for j in range(cols): for j in range(cols):
k = img[i, j] k = img[i, j]
if k > 100: if k == 255:
k = 0 # brak czarnego k = 0 # brak czarnego
else: else:
k = 1 k = 1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

BIN
coder/test5.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
coder/test5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB