Git - 忘记切换分支(Git - Forgot to switch branch)
在开始我的项目之前,我忘了切换到新分支,现在我需要将我的更改推送到新分支(而不是主分支),以便另一个分支检查我的工作。 我的工作已经完成,但是保存在当地的主人手中。
我如何将我的更改移动到新的分支中,所以当我推送它时并不会弄乱主分支,而是创建一个新的远程分支?
I forgot to switch to a new branch before beginning my project, and now I need to push my changes to a new branch (not master) in order for another to review my work. My work is finsihed, but saved in my local master.
How can I move my changes into a new branch, so when I push it doesnt mess with the master branch but instead create a new remote branch ?
原文:https://stackoverflow.com/questions/10334820
最满意答案
这与android无关。 如果你想获得包含在图片中的文字,你需要
- 检测图像中的文字位置
- 在找到的文本上执行OCR
这项任务不是微不足道的,需要一些计算资源。 周围有一些OCR库 - 像opencv,tesseract等。我和其他人也开发纯Java开源解决方案:
This is not related to android. If you like to get text contained in image you will need
- detect text position in image
- perform OCR on found text
This task is not trivial and requires some computing resources. There are some OCR libraries around - like opencv, tesseract etc. I and others also develop pure java opensource solution:
相关问答
更多-
您可以使用定义GridView单元格的XML来完成它: image.xml这与android无关。 如果你想获得包含在图片中的文字,你需要 检测图像中的文字位置 在找到的文本上执行OCR 这项任务不是微不足道的,需要一些计算资源。 周围有一些OCR库 - 像opencv,tesseract等。我和其他人也开发纯Java开源解决方案: http://sourceforge.net/projects/javaocr/ This is not related to android. If you like to get text contained in image you will ...由于Android的Scroll不像IOS那样是惯性的 , 因此如果ScrollView包含的元素的total height小于screen height ,则无法显示滚动条。 还有一点需要注意,您需要根据屏幕的Dimensions提供图像的高度,因为ScrollView行为与View行为不同 希望能帮助到你 Since the Scroll in the Android is not Inertial as IOS, therefore you wont be able to visualise the ...
图像上的文字位置(Text position on Image)[2021-09-18]
为了在图像上真正准确地定位文本,我建议您实现自己的Drawable 。 它并没有那么复杂和有据可查。 然后你会得到一个Canvas对象,你可以在其上绘制你的图像和文本,准确地指定放置它的位置。 For really accurate positioning of text upon an image, I'd suggest that you implement your own Drawable. It's not that complicated and well documented. And you ...在Android中读取外部图像(Read external image in Android)[2022-03-16]
来自Android文档 您不应该在UI线程上执行网络操作。 要避免此异常,可以使用AsyncTask来处理您的请求。 imageView = (ImageView) findViewById(R.id.image_view); new AsyncTask(){ @Override protected void onPreExecute() { super.on ... 做到这一点:布尔isclicked = true; btn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub if(isClicked){ firstClick(); isClicked=false }else{ secondC ...正如你设置了android:layout_width="match_parent" , TextView占用了所有的宽度,所以你设置的drawablePadding将不起作用。 所以你需要设置android:layout_width="wrap_content" 。 尝试下面的代码:Android共享文字和图片(Android share text and image)[2022-10-16]
尝试使用 Uri.fromFile(new File("android.resource://com.android.mypackage/drawable/arrow.png")); 绝对的 Uri.parse("android.resource://com.android.mypackage/drawable/arrow.png"); 如果文件描述符有效,它将正常工作。 Try to use Uri.fromFile(new File("android.resource://com.android.m ...我的代码有什么问题? 可能没什么。 ACTION_SEND在一个Intent支持EXTRA_TEXT 或 EXTRA_STREAM ,而不是两者(“......可以有一个EXTRA_TEXT或EXTRA_STREAM字段,包含要发送的数据”)。 一些ACTION_SEND实现将超出所记录的协议并尝试使用它们。 其他人将坚持使用文档化的协议,只使用一个。 在这种情况下,Facebook可能选择坚持使用文档化的协议,只使用一个。 What's wrong in my code? Probably nothing ...我猜问题是关于TextView宽度。您的方法将视图的绘图区域转换为位图。如果隐藏了部分文本,则实际上不会在绘图区域中绘制。 为什么不从TextView获取文本并将其写入画布?您可以使用此方法: canvas.drawText(); 示例代码: Paint paint = new Paint(); paint.setColor(Color.RED); paint.setStyle(Paint.Style.FILL); paint.setAntiAlias(true); paint.setTextSize ...相关文章
更多- Git分支管理
- Bug分支-git入门教程
- 分支管理策略-git入门教程
- 那些年挠头的git
- Feature分支-git入门教程
- 创建与合并分支-git入门教程
- Java分支结构 – if…else/switch
- 创建标签-git入门教程
- 解决冲突-git入门教程
- 多人协作-git入门教程
最新问答
更多- 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
- 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
- OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
- 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
- codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
- 在计算机拍照在哪里进入
- 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
- No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
- 单页应用程序:页面重新加载(Single Page Application: page reload)
- 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)